/*
 * Type scale: --fs-heading (section headings) and --fs-text (everything else),
 * plus --heading-padding/--heading-margin/--text-padding/--text-margin/
 * --image-padding/--image-margin, are set from the admin Typography settings
 * in layouts/site.blade.php. Components with their own bespoke spacing
 * (hero, quote, split, etc.) keep their own per-section fields and are not
 * driven by these global defaults.
 */

/* ===== 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; padding: var(--image-padding, 0); margin: var(--image-margin, 0); }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; margin: var(--heading-margin, 0) 0; padding: var(--heading-padding, 0); line-height: 1.2; }
p { margin: 0 0 var(--text-margin, 18px); padding: var(--text-padding, 0); }
.container { width: 100%; max-width: 1440px; 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; }
.main-nav a { color: var(--nav-color, #fff); text-decoration: none; white-space: nowrap; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { opacity: .75; }
.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: 1440px; 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; color: var(--secondary); }

/* ===== Split ===== */
.s-split-inner { display: flex; max-width: 1440px; margin: 0 auto; }
.s-split-left .s-split-inner { 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; color: var(--secondary); }
.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 var(--text-margin, 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-section { max-width: 1440px; margin: 0 auto; }
.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; cursor: zoom-in; }
.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; }
.s-gallery-cta { text-align: center; padding: 32px 20px 0; }

/* ===== Lightbox ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0, 0, 0, .92);
    display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 88vw; max-height: 84vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0;
    cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close { top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; font-size: 20px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: 14px; }

/* ===== 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 var(--text-margin, 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: 1440px; 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; }

/* ===== Platform cards ===== */
.s-platforms { padding: 72px 20px; }
.s-platforms-inner { max-width: 1440px; margin: 0 auto; }
.s-platforms-title { font-size: 30px; font-weight: 600; margin: 0 0 12px; text-align: center; color: var(--primary); }
.s-platforms-subtitle { text-align: center; color: var(--text); opacity: .75; max-width: 620px; margin: 0 auto 48px; }
.s-platforms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.s-platform-card { background: #fff; border: 1px solid #e7e1db; border-radius: 8px; padding: 36px; box-shadow: 0 4px 20px rgba(34, 32, 30, .08); text-align: center; }
.s-platform-icon { font-size: 34px; color: var(--accent); margin-bottom: 16px; }
.s-platform-card h3 { margin: 0 0 10px; font-size: 22px; font-weight: 600; color: var(--primary); }
.s-platform-card p { color: var(--text); opacity: .8; margin: 0 0 var(--text-margin, 20px); }

/* ===== Footer ===== */
.site-footer { padding: 56px 20px 24px; color: rgba(255, 255, 255, .82); }
.newsletter-row { max-width: 1440px; margin: 0 auto 48px; }
.newsletter h4 { font-size: var(--fs-heading); font-weight: 600; margin-bottom: 22px; color: #fff; }
.newsletter { max-width: 560px; }
.newsletter .btn { font-weight: 700; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; max-width: 1440px; margin: 0 auto; }
.footer-about img.footer-logo-img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-about p { margin: 0; color: rgba(255, 255, 255, .72); }
.footer-links-col h4 { color: #fff; font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.footer-links-col a { display: block; margin-bottom: 8px; color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-links-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom { max-width: 1440px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; font-size: 13px; color: rgba(255, 255, 255, .55); }

.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) {
    .s-platforms-grid { grid-template-columns: repeat(2, 1fr); }

    .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; }

    .s-hero h1 { font-size: 32px; }
    .s-tiles { flex-direction: column; }
    .s-split-inner, .s-split-left .s-split-inner, .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; }
    .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 16px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; }
    .s-features { padding: 90px 20px; }
    .s-contact-form { padding: 50px 0; }
    .s-contact-image { margin-bottom: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    .social-bar {
        position: static;
        top: auto; right: auto; transform: none;
        flex-direction: row; justify-content: center;
        width: 100%; padding: 10px 0;
    }
    .chat-button { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
@media (max-width: 600px) {
    .s-platforms-grid { grid-template-columns: 1fr; }
}
