/*
 * Type scale: --fs-heading (section headings) and --fs-text (everything else)
 * are set from the admin Theme settings in layouts/site.blade.php.
 */

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Wix Madefor Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: var(--fs-text);
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; margin: 0; line-height: 1.2; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Buttons & forms ===== */
.btn {
    display: inline-block;
    padding: 10px 26px;
    font: 500 var(--fs-text)/1.4 'Wix Madefor Text', sans-serif;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: opacity .2s, background .2s, color .2s;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { opacity: .85; }
.btn-light { background: #fff; color: var(--primary); min-width: 180px; }
.btn-light:hover { background: rgba(255,255,255,.85); }
.btn-block { display: block; width: 100%; text-align: center; }

.line-field { display: block; margin-bottom: 20px; }
.line-field span { display: block; margin-bottom: 6px; }
.line-field input, .line-field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    padding: 8px 0;
    font: inherit;
    color: inherit;
    outline: none;
    resize: vertical;
}
.line-field input:focus, .line-field textarea:focus { border-bottom-width: 2px; }
.check { display: flex; align-items: center; gap: 12px; margin: 4px 0 20px; }
.check input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-success { padding: 12px 0; font-weight: 500; }
.form-error { color: #c0392b; margin: -8px 0 12px; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; height: 90px; gap: 30px; }
.header-logo img { height: 76px; width: auto; }
.header-logo { color: #fff; text-decoration: none; font-weight: 600; flex-shrink: 0; }
.main-nav { display: flex; gap: 30px; margin-left: auto; margin-right: auto; }
.main-nav a { color: #fff; text-decoration: none; white-space: nowrap; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: #aeb6c9; }
.header-login { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; white-space: nowrap; }
.nav-toggle, .nav-burger { display: none; }

/* ===== Hero ===== */
.s-hero {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff;
    padding: 60px 20px;
    overflow: hidden;
}
.s-hero-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; }
.s-hero-overlay { position: absolute; inset: 0; background: #000; }
.s-hero-inner { position: relative; }
.s-hero h1 { font-size: 47px; font-weight: 700; max-width: 760px; margin: 0 auto 55px; }
.s-hero-logo { width: 460px; max-width: 80vw; margin: 0 auto; }

/* ===== Tiles ===== */
.s-tiles { display: flex; }
.s-tile {
    flex: 1;
    min-height: 152px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; text-align: center; padding: 20px;
    transition: filter .2s;
}
.s-tile:hover { filter: brightness(1.08); }
.s-tile h2 { font-size: var(--fs-heading); font-weight: 600; }
.s-tile p { margin: 8px 0 0; }

/* ===== Quote band ===== */
.s-quote { padding: 60px 20px; text-align: center; }
.s-quote-inner { max-width: 960px; margin: 0 auto; }
.s-quote-text {
    font-family: 'Wix Madefor Display', 'Wix Madefor Text', sans-serif;
    font-style: italic; font-weight: 400;
    font-size: 34px; line-height: 1.24; margin: 0;
}
.s-quote-caption { margin: 18px 0 0; }

/* ===== Split ===== */
.s-split { display: flex; }
.s-split-left { flex-direction: row-reverse; }
.s-split-text { display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 40px; }
.s-split-text-inner { max-width: 520px; }
.s-split h2 { font-size: var(--fs-heading); font-weight: 600; line-height: 1.3; }
.s-split-sub { font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 500; margin: 6px 0 22px; line-height: 1.3; }
.s-split-body { line-height: 1.65; margin: 26px 0 0; }
.s-split-image { background-size: cover; background-position: center; min-height: 300px; }

/* ===== Page header ===== */
.s-page-header { display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.s-page-header h1 { font-size: 72px; font-weight: 600; }
.event-meta { margin: 14px 0 0; }

/* ===== Rich text ===== */
.s-rich { padding: 50px 20px 60px; }
.s-rich-inner { margin: 0 auto; }
.prose { line-height: 1.6; }
.prose p { margin: 0 0 1.2em; }
.prose h1, .prose h2, .prose h3 { font-size: var(--fs-heading); font-weight: 600; margin: 1.1em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--accent); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .accent { color: #ED1C24; }

/* ===== Gallery collage ===== */
.s-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1.45fr;
    grid-template-rows: 250px 18px 138px 18px 360px;
    gap: 0 30px;
    padding: 0 22px 0 0;
}
.s-gallery div { overflow: hidden; }
.s-gallery img { width: 100%; height: 100%; object-fit: cover; }
.s-gallery .g1 { grid-column: 1; grid-row: 1; }
.s-gallery .g2 { grid-column: 2; grid-row: 1; }
.s-gallery .g3 { grid-column: 3; grid-row: 1 / 4; }
.s-gallery .g4 { grid-column: 1 / 3; grid-row: 3 / 6; }
.s-gallery .g5 { grid-column: 3; grid-row: 5; }

/* ===== CTA band ===== */
.s-cta { padding: 44px 20px 46px; text-align: center; }
.s-cta h2 { font-family: 'Wix Madefor Display', sans-serif; font-weight: 400; font-size: var(--fs-heading); margin-bottom: 18px; }

/* ===== Centered text ===== */
.s-centered { text-align: center; padding: 60px 20px 24px; }
.s-centered h2 { font-size: var(--fs-heading); font-weight: 600; margin-bottom: 14px; }
.s-centered p { max-width: 780px; margin: 0 auto 24px; }
.s-centered .btn { min-width: 180px; }

/* ===== Image banner ===== */
.s-image-banner img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Features on colour ===== */
.s-features { padding: 170px 20px; text-align: center; display: flex; flex-direction: column; gap: 70px; }
.s-feature h3 { font-size: var(--fs-heading); font-weight: 600; }
.s-feature h3 a { text-decoration: none; }
.s-feature p { margin: 8px 0 0; }

/* ===== Contact ===== */
/* Contained to the same column as the header/footer (.container) */
.s-contact { display: flex; min-height: 640px; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.s-contact-form { flex: 1; padding: 70px 50px 70px 0; }
.s-contact-form h2 { font-size: var(--fs-heading); font-weight: 600; margin-bottom: 18px; }
.s-contact-intro { margin: 0 0 30px; }
.s-contact-image { flex: 1; background-size: cover; background-position: center; }

/* ===== Events ===== */
.s-events { max-width: 900px; margin: 0 auto; padding: 60px 20px 45px; }
.s-event {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 44px 2px; border-top: 1px solid #ccc;
    color: #000;
}
.s-event:last-child { border-bottom: 1px solid #ccc; }
.s-event-title { text-decoration: none; }
.s-event-title:hover { text-decoration: underline; }
.s-event .btn { white-space: nowrap; }
.s-events-empty { text-align: center; }

.event-detail { max-width: 1100px; margin: 0 auto; padding: 60px 20px; display: grid; grid-template-columns: 1fr 360px; gap: 50px; }
.event-image { width: 100%; margin-bottom: 24px; }
.event-register { border: 1px solid #ddd; padding: 26px; align-self: start; }
.event-detail h3 { font-size: var(--fs-heading); margin-bottom: 18px; }

/* ===== Advisory board ===== */
.s-board { padding: 70px 20px 60px; }
.s-board-inner { max-width: 1000px; margin: 0 auto; }
.s-board h1 { font-size: 60px; font-weight: 600; margin: 0 0 24px -3px; }
.s-board-intro { line-height: 1.6; color: #222; }
.s-board-intro p { margin: 0 0 1.2em; }
.s-board h2 { font-size: var(--fs-heading); font-weight: 500; margin: 44px 0 12px; color: #222; }
.s-board ul { margin: 0 0 10px; padding-left: 38px; line-height: 1.6; color: #222; }
.s-board li a { text-decoration: underline; }
.s-board li a:hover { color: var(--accent); }

/* ===== Footer ===== */
.footer-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; padding: 88px 20px 100px; }
.footer-about h4, .newsletter h4 { font-size: var(--fs-heading); font-weight: 600; margin-bottom: 22px; }
.footer-about p { margin: 0; }
.newsletter { max-width: 560px; }
.newsletter .btn { font-weight: 700; }
.footer-bar { color: #fff; }
.footer-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 90px; padding-top: 12px; padding-bottom: 12px; }
.footer-logo img { height: 56px; width: auto; }
.footer-legal { text-align: right; line-height: 1.6; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links a + a::before { content: '|'; margin: 0 10px; }

.social-bar {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; padding: 6px 0; z-index: 40;
}
.social-bar a { color: #fff; width: 42px; height: 38px; display: grid; place-items: center; }
.social-bar a:hover { opacity: .75; }

.chat-button {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    width: 64px; height: 64px; background: var(--accent);
    display: grid; place-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .main-nav { gap: 20px; }
}
@media (max-width: 900px) {
    .header-inner { height: 70px; }
    .header-logo img { height: 56px; }
    .nav-burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; order: 3; }
    .nav-burger span { width: 26px; height: 2px; background: #fff; }
    .main-nav {
        display: none; position: absolute; top: 70px; left: 0; right: 0;
        flex-direction: column; gap: 0; background: #000; padding: 10px 20px 20px;
    }
    .main-nav a { padding: 12px 0; }
    .nav-toggle:checked ~ .main-nav { display: flex; }
    .header-login { margin-left: auto; }
    .header-login span { display: none; }

    .s-hero h1 { font-size: 32px; }
    .s-tiles { flex-direction: column; }
    .s-split, .s-split-left, .s-contact { flex-direction: column; }
    .s-split-image, .s-contact-image { min-height: 300px; }
    .s-page-header h1 { font-size: 44px; }
    .s-quote-text { font-size: 24px; }
    .s-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 12px; padding: 0 12px; }
    .s-gallery div { grid-column: auto !important; grid-row: auto !important; height: 220px; }
    .s-gallery .g4 { grid-column: 1 / 3 !important; }
    .s-features { padding: 90px 20px; }
    .s-contact-form { padding: 50px 0; }
    .s-contact-image { margin-bottom: 40px; }
    .s-board h1 { font-size: 40px; }
    .s-event { flex-direction: column; align-items: flex-start; padding: 28px 2px; }
    .event-detail { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; padding: 60px 20px; }
    .footer-bar-inner { flex-direction: column; gap: 10px; padding: 16px 20px; }
    .footer-legal { text-align: center; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}
