/* =========================================================================
   EZER CONSULT — DESIGN SYSTEM
   Traditional, professional corporate styling. No decorative gradients,
   no emoji iconography. Poppins throughout. Subtle glass (backdrop-blur)
   is used only on the sticky navigation and floating stat cards, never as
   a background wash.
   ========================================================================= */

:root {
    /* Brand palette — sampled directly from the client's logo file (#4E2D7A deep
     purple, #662D91 mid violet, #BD82BB light lilac) and contrast-checked
     against WCAG AA. Variable names kept stable from the original build so
     every page/partial that references them picks up the real brand
     automatically — only the values changed. */
    --color-navy: #4E2D7A; /* primary — matches the logo exactly, 10.6:1 vs white */
    --color-navy-700: #3E2264; /* deeper shade for footer/hover depth */
    --color-navy-600: #662D91; /* mid violet — logo's swoosh tone */
    --color-teal: #662D91; /* links/icons — 8.9:1 vs white */
    --color-sky: #8A5BB8; /* lighter violet — secondary accent/hover */
    --color-lilac: #BD82BB; /* logo's light lilac — decorative use only (icon chips, badges on dark) */
    --color-gold: #936B24; /* CTA accent — darkened from the deck gold to clear 4.5:1 with white text */
    --color-gold-dark: #6E501A;
    --color-ink: #1D1526;
    --color-body: #3D3547;
    --color-muted: #6F6579;
    --color-white: #FFFFFF;
    --color-bg-soft: #F7F5FA;
    --color-bg-alt: #EFEAF5;
    --color-border: #E2DCEB;
    --color-success: #1E7B4D;
    --color-error: #B3261E;
    --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(78, 45, 122, 0.10);
    --shadow-md: 0 6px 20px rgba(78, 45, 122, 0.12);
    --shadow-lg: 0 16px 40px rgba(78, 45, 122, 0.20);
    --container-width: 1200px;
    --header-height: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-body);
    background: var(--color-white);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-body);
    color: var(--color-navy);
    margin: 0 0 0.6em;
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.1rem, 3.6vw, 3.1rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 1em;
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: 3px solid var(--color-sky);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 88px 0;
}

.section-tight {
    padding: 56px 0;
}

.section-alt {
    background: var(--color-bg-soft);
}

.section-navy {
    background: var(--color-navy);
    color: rgba(255,255,255,0.88);
}

    .section-navy h2, .section-navy h3 {
        color: var(--color-white);
    }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    margin-bottom: 14px;
}

.section-navy .eyebrow {
    color: #E6C589;
}

.section-head {
    max-width: 720px;
    margin-bottom: 48px;
}

    .section-head.centered {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

.lede {
    font-size: 1.1rem;
    color: var(--color-muted);
}

.section-navy .lede {
    color: rgba(255,255,255,0.75);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
    white-space: nowrap;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    background: var(--color-gold);
    color: var(--color-white);
}

    .btn-primary:hover {
        background: var(--color-gold-dark);
    }

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.55);
}

    .btn-outline:hover {
        background: rgba(255,255,255,0.12);
        border-color: #fff;
    }

.btn-outline-navy {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

    .btn-outline-navy:hover {
        background: var(--color-navy);
        color: #fff;
    }

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.85rem;
}

.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--header-height);
    display: flex;
    align-items: center;
    /* No backdrop-filter directly on this element — see .site-header::before below.
     backdrop-filter on an ancestor turns it into a containing block for any
     position:fixed descendant (the mobile .main-nav panel lives inside this
     header for desktop flex layout purposes), which was collapsing the mobile
     menu down to the header's own height instead of the full viewport. */
}

    .site-header::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        border-bottom: 1px solid transparent;
        box-shadow: none;
        transition: border-color .25s ease, box-shadow .25s ease;
    }

    .site-header.is-scrolled::before {
        border-bottom-color: rgba(20, 10, 35, 0.09);
        box-shadow: 0 1px 0 rgba(20,10,35,0.03), 0 8px 24px rgba(78,45,122,0.08);
    }

    .site-header .container {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 46px;
    width: auto;
    flex-shrink: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .brand-mark img {
        width: 100%;
        height: auto;
    }

.brand-text {
    line-height: 1.1;
}

    .brand-text .brand-name {
        display: block;
        font-weight: 700;
        font-size: 1.08rem;
        color: var(--color-navy);
        letter-spacing: 0.01em;
    }

    .brand-text .brand-tagline {
        display: block;
        font-size: 0.68rem;
        color: var(--color-muted);
        letter-spacing: 0.12em;
        text-transform: uppercase;
        margin-top: 2px;
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

    .main-nav a {
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        color: var(--color-ink);
        font-weight: 600;
        font-size: 0.92rem;
        transition: background-color .15s ease, color .15s ease;
    }

        .main-nav a:hover, .main-nav a.active {
            background: rgba(78,45,122,0.09);
            color: var(--color-navy);
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .header-actions .btn {
        padding: 10px 20px;
    }

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    transition: background-color .15s ease;
}

    .icon-btn:hover {
        background: rgba(255,255,255,0.22);
    }

.site-header .icon-btn {
    background: rgba(78,45,122,0.06);
    color: var(--color-navy);
    border: 1px solid rgba(78,45,122,0.14);
}

    .site-header .icon-btn:hover {
        background: rgba(78,45,122,0.12);
    }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(78,45,122,0.22);
    border-radius: var(--radius-sm);
    width: 44px;
    height: 40px;
    color: var(--color-navy);
    align-items: center;
    justify-content: center;
}

@media (max-width: 980px) {
    .main-nav {
        position: fixed;
        inset: var(--header-height) 0 0 0;
        background: var(--color-navy);
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        gap: 2px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease;
        overflow-y: auto;
    }

        .main-nav.open {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .main-nav a {
            padding: 14px 16px;
            font-size: 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            color: rgba(255,255,255,0.85);
        }

            .main-nav a:hover, .main-nav a.active {
                background: rgba(255,255,255,0.08);
                color: #fff;
            }

    .nav-toggle {
        display: inline-flex;
    }

    .header-actions .btn-outline-navy {
        display: none;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--color-navy); /* flat fallback shown until a media layer loads */
    color: #fff;
    padding: 110px 0 100px;
    overflow: hidden;
}

/* Background media layer: home page uses a slider (multiple .hero-slide images
   cross-fading) or a <video>; interior pages can drop in a single <img> here.
   If no media is supplied, .hero simply shows as the flat brand-purple fallback
   above — never a gradient. */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--color-navy); /* instant fallback while media decodes, avoids a flash of empty space */
}

    .hero-media img, .hero-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 25%;
    }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
    background-position: center 25% !important;
}

    .hero-slide.is-active {
        opacity: 1;
    }

/* Single flat overlay (not a gradient) so hero text stays legible over any
   photo/video without muddying the brand color underneath it. */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(46,26,77,0.66);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.hero-eyebrow {
    color: #E6C589;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .8rem;
    margin-bottom: 18px;
}

.hero h1 {
    color: #fff;
    margin-bottom: 22px;
}

.hero .lede {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.hero-panel {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-radius: var(--radius-lg);
    padding: 34px;
}

.hero-panel-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #E6C589;
    margin-bottom: 20px;
    font-weight: 600;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.stat-item .stat-figure {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.68);
    margin-top: 6px;
}

/* Hero quick-contact card (homepage) */
.hero-contact-intro {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.72);
    margin: 0 0 20px;
}

.hero-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.hero-contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: background-color .15s ease;
}

    .hero-contact-row:hover {
        background: rgba(255,255,255,0.10);
    }

.hero-contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #E6C589;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-contact-icon svg {
        width: 18px;
        height: 18px;
    }

.hero-contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-contact-row-title {
    font-weight: 600;
    color: #fff;
    font-size: 0.94rem;
}

.hero-contact-row-sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Slider dots (home page only) */
.hero-slide-dots {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    margin-top: 40px;
}

    .hero-slide-dots button {
        width: 26px;
        height: 4px;
        border-radius: 2px;
        border: none;
        padding: 0;
        background: rgba(255,255,255,0.35);
        cursor: pointer;
        transition: background-color .2s ease;
    }

        .hero-slide-dots button.is-active {
            background: var(--color-gold);
        }

@media (max-width: 980px) {
    .hero {
        padding: 84px 0 64px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero .lede {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 68px 0 48px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

        .hero-cta .btn {
            width: 100%;
            justify-content: center;
        }

    .hero-panel {
        padding: 24px;
    }

    .stat-item .stat-figure {
        font-size: 1.6rem;
    }
}

.marquee-strip {
    background: var(--color-bg-soft);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 32px 0;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 0 140px;
}

.marquee-label {
    display: block;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 22px;
}

.client-logo-track {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.client-logo-row {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    animation: client-logo-scroll 30s linear infinite;
}

.client-logo-track:hover .client-logo-row {
    animation-play-state: paused;
}

.client-logo-row img {
    height: 42px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    flex-shrink: 0;
}

@keyframes client-logo-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) {
    .client-logo-row {
        gap: 34px;
    }

        .client-logo-row img {
            height: 32px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .client-logo-row {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
}

/* ---------- Cards ---------- */
.grid {
    display: grid;
    gap: 28px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 980px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

    .card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
        border-color: transparent;
    }

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-soft);
    color: var(--color-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

    .card-icon svg {
        width: 26px;
        height: 26px;
    }

.card h3 {
    margin-bottom: 10px;
    font-size: 1.12rem;
}

.card p {
    color: var(--color-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--color-teal);
}

    .card-link svg {
        width: 15px;
        height: 15px;
        transition: transform .15s ease;
    }

.card:hover .card-link svg {
    transform: translateX(3px);
}

/* Service cards on navy sections */
.section-navy .card {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    .section-navy .card h3 {
        color: #fff;
    }

    .section-navy .card p {
        color: rgba(255,255,255,0.72);
    }

.section-navy .card-icon {
    background: rgba(255,255,255,0.1);
    color: #E6C589;
}

/* ---------- Process / approach steps ---------- */
.step-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    counter-reset: step;
}

@media (max-width: 900px) {
    .step-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .step-list {
        grid-template-columns: 1fr;
    }
}

.step {
    position: relative;
    padding: 30px 24px 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
}

.step-number {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--color-gold-dark);
    margin-bottom: 12px;
    display: block;
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step p {
    font-size: .9rem;
    color: var(--color-muted);
    margin: 0;
}

/* ---------- Values / mission / vision ---------- */
.value-card {
    text-align: center;
    padding: 40px 26px;
}

    .value-card .card-icon {
        margin: 0 auto 20px;
    }

/* ---------- Testimonial / quote ---------- */
.quote-block {
    border-left: 3px solid var(--color-gold);
    padding-left: 24px;
    font-size: 1.15rem;
    color: var(--color-navy);
    font-weight: 500;
}

/* ---------- Forms ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

    .field.full {
        grid-column: 1 / -1;
    }

    .field label {
        font-weight: 600;
        font-size: 0.88rem;
        color: var(--color-navy);
    }

    .field .hint {
        font-size: 0.78rem;
        color: var(--color-muted);
    }

    .field input[type=text],
    .field input[type=email],
    .field input[type=tel],
    .field input[type=number],
    .field input[type=date],
    .field input[type=file],
    .field select,
    .field textarea {
        padding: 13px 14px;
        border: 1.5px solid var(--color-border);
        border-radius: var(--radius-sm);
        font-family: var(--font-body);
        font-size: 0.95rem;
        color: var(--color-ink);
        background: #fff;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

    .field textarea {
        resize: vertical;
        min-height: 130px;
    }

        .field input:focus, .field select:focus, .field textarea:focus {
            border-color: var(--color-teal);
            box-shadow: 0 0 0 3px rgba(21,96,130,0.14);
            outline: none;
        }

    .field .field-validation-error, .validation-summary-errors {
        color: var(--color-error);
        font-size: 0.82rem;
    }

    .field input.input-validation-error, .field select.input-validation-error, .field textarea.input-validation-error {
        border-color: var(--color-error);
    }

.validation-summary-errors ul {
    list-style: disc;
    padding-left: 20px;
}

.validation-summary-errors {
    background: #FBEAE9;
    border: 1px solid #F1C4C1;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.alert-success {
    background: #E7F5EC;
    border: 1px solid #B7E0C5;
    color: var(--color-success);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    font-weight: 500;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.captcha-question {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--color-navy);
    white-space: nowrap;
}

/* ---------- Careers ---------- */
.filter-bar {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }
}

.filter-bar .field {
    margin-bottom: 0;
}

.job-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 26px 28px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
    transition: box-shadow .18s ease, border-color .18s ease;
}

    .job-card:hover {
        box-shadow: var(--shadow-md);
        border-color: transparent;
    }

    .job-card h3 {
        margin-bottom: 8px;
        font-size: 1.12rem;
    }

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.85rem;
    color: var(--color-muted);
}

    .job-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.job-tag {
    display: inline-block;
    background: var(--color-bg-soft);
    color: var(--color-teal);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 20px;
    margin-right: 6px;
}

.job-deadline {
    font-size: 0.8rem;
    color: var(--color-gold-dark);
    font-weight: 600;
    margin-top: 8px;
}

@media (max-width: 700px) {
    .job-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--color-muted);
}

    .empty-state svg {
        width: 56px;
        height: 56px;
        margin: 0 auto 18px;
        color: var(--color-border);
    }

/* ---------- Job detail ---------- */
.job-detail-header {
    background: var(--color-navy);
    color: #fff;
    padding: 64px 0 48px;
}

    .job-detail-header .job-meta span {
        color: rgba(255,255,255,0.75);
    }

    .job-detail-header .job-meta svg {
        color: #E6C589;
    }

    .job-detail-header h1 {
        color: #fff;
        margin-bottom: 14px;
    }

.job-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    padding: 56px 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 900px;
}

@media (max-width: 900px) {
    .job-body {
        grid-template-columns: 1fr;
    }
}

.job-sidebar {
    align-self: start;
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 26px;
}

    .job-sidebar dl {
        margin: 0;
    }

    .job-sidebar dt {
        font-size: 0.76rem;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: var(--color-muted);
        margin-top: 16px;
    }

        .job-sidebar dt:first-child {
            margin-top: 0;
        }

    .job-sidebar dd {
        margin: 4px 0 0;
        font-weight: 600;
        color: var(--color-navy);
    }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.72);
    padding: 72px 0 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-grid h4 {
    color: #fff;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 18px;
}

.footer-grid ul li {
    margin-bottom: 11px;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-about p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 10px;
}

    .footer-bottom a {
        color: rgba(255,255,255,0.6);
    }

.floating-actions {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 800;
}

    .floating-actions .icon-btn {
        width: 52px;
        height: 52px;
        background: var(--color-gold);
        border-color: transparent;
        box-shadow: var(--shadow-lg);
    }

        .floating-actions .icon-btn.whatsapp {
            background: #25D366;
        }

        .floating-actions .icon-btn:hover {
            filter: brightness(1.06);
        }

.breadcrumb {
    font-size: 0.83rem;
    color: var(--color-muted);
    margin-bottom: 20px;
}

    .breadcrumb a {
        color: var(--color-teal);
    }

    .breadcrumb span {
        margin: 0 8px;
        color: var(--color-border);
    }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-gold);
    color: #fff;
    padding: 12px 18px;
    z-index: 2000;
    border-radius: 0 0 var(--radius-sm) 0;
}

    .skip-link:focus {
        left: 0;
    }

.page-header {
    background: var(--color-navy) center 25% / cover no-repeat;
    color: #fff;
    padding: 96px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .page-header::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(46,26,77,0.70); /* flat overlay — keeps any background photo legible without a gradient */
        pointer-events: none;
    }

    .page-header .container {
        position: relative;
        z-index: 1;
    }

    .page-header h1, .page-header .eyebrow, .page-header .lede {
        animation: page-header-in .7s ease both;
    }

    .page-header .eyebrow {
        animation-delay: 0s;
    }

    .page-header h1 {
        animation-delay: .08s;
    }

    .page-header .lede {
        animation-delay: .16s;
    }

@keyframes page-header-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header h1 {
    color: #fff;
    margin-bottom: 12px;
}

.page-header .lede {
    color: rgba(255,255,255,0.78);
    max-width: 680px;
    margin: 0 auto;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.media-frame {
    aspect-ratio: 4 / 3; /* reserves layout space before the image loads — avoids reflow */
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-soft); /* instant fallback while the image decodes */
}

    .media-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Branded placeholder panel — used wherever real photography isn't in place
   yet. Designed to look intentional (not an empty box): soft dot-grid
   texture, a flat lilac accent circle, the real logo mark, and a gold
   accent bar. Swap for a real <img> inside .media-frame the moment
   photography is available; no other markup changes needed. */
.media-placeholder {
    aspect-ratio: 4/3;
    min-height: 260px;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid var(--color-gold);
}

    .media-placeholder::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(var(--color-border) 1.4px, transparent 1.4px);
        background-size: 24px 24px;
        opacity: 0.7;
    }

.media-placeholder-accent {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: var(--color-lilac);
    opacity: 0.22;
    bottom: -100px;
    right: -70px;
}

.media-placeholder-badge {
    position: relative;
    z-index: 1;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .media-placeholder-badge img {
        width: 58%;
        height: auto;
    }


.check-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.check-list svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-teal);
    margin-top: 2px;
}

.table-simple {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

    .table-simple th, .table-simple td {
        text-align: left;
        padding: 12px 14px;
        border-bottom: 1px solid var(--color-border);
    }

    .table-simple th {
        color: var(--color-navy);
        font-weight: 600;
        background: var(--color-bg-soft);
    }

.badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.badge-published {
    background: #E7F5EC;
    color: var(--color-success);
}

.badge-draft {
    background: #EFF3F6;
    color: var(--color-muted);
}

.badge-closed {
    background: #FBEAE9;
    color: var(--color-error);
}

.badge-archived {
    background: #F0EBE0;
    color: var(--color-gold-dark);
}

.skeleton {
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
}

/* ---------- Scroll-reveal (the [data-reveal] attribute is set throughout the
   markup and site.js toggles .is-visible via IntersectionObserver — this is
   the animation those hooks actually drive) ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--reveal-delay, 0s);
}

    [data-reveal].is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--color-gold);
    z-index: 1200;
    transition: width .1s linear;
}

/* ---------- Page loader ---------- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(78,45,122,0.55); /* flat color — backdrop-filter over the whole
       viewport was forcing the browser to keep re-compositing everything behind
       it (including in-flight hero/media images) on every frame while they were
       still decoding, which is exactly the wrong moment to add extra paint cost */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .45s ease, visibility .45s ease;
}

    .page-loader.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.page-loader-panel {
    position: relative;
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.page-loader-mark {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

    .page-loader-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        animation: loader-pulse 1.1s ease-in-out infinite;
    }

@keyframes loader-pulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: .75;
    }

    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

.page-loader-ring {
    position: absolute;
    inset: 14px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    border-top-color: rgba(255,255,255,0.85);
    border-right-color: rgba(255,255,255,0.25);
    animation: loader-spin .9s linear infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Nav dropdowns (grouped/organised top nav) ---------- */
.nav-item-dropdown {
    position: relative;
}

    .nav-item-dropdown > .nav-trigger {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        color: var(--color-ink);
        font-weight: 600;
        font-size: 0.92rem;
        cursor: pointer;
        background: none;
        border: none;
        font-family: inherit;
    }

        .nav-item-dropdown > .nav-trigger svg {
            width: 12px;
            height: 12px;
            transition: transform .18s ease;
            opacity: 0.6;
        }

    .nav-item-dropdown:hover > .nav-trigger, .nav-item-dropdown.open > .nav-trigger, .nav-trigger.active {
        background: rgba(78,45,122,0.09);
        color: var(--color-navy);
    }

        .nav-item-dropdown.open > .nav-trigger svg, .nav-item-dropdown:hover > .nav-trigger svg {
            transform: rotate(180deg);
        }

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 190px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.nav-item-dropdown:hover .nav-dropdown-panel,
.nav-item-dropdown.open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-body);
    font-weight: 500;
    font-size: 0.87rem;
    white-space: nowrap;
}

    .nav-dropdown-panel a:hover {
        background: var(--color-bg-soft);
        color: var(--color-navy);
    }

.nav-dropdown-panel hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 5px 4px;
}

@media (max-width: 980px) {
    .nav-item-dropdown > .nav-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        color: rgba(255,255,255,0.55);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-weight: 600;
        cursor: default;
        pointer-events: none; /* section label only — always expanded below, nothing to toggle */
    }

        .nav-item-dropdown > .nav-trigger svg {
            display: none;
        }

    .nav-dropdown-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.04);
        display: block;
        min-width: 0;
        padding: 4px 0 8px;
    }

        .nav-dropdown-panel a {
            color: rgba(255,255,255,0.85);
            white-space: normal;
            padding: 12px 20px;
            font-size: 0.95rem;
        }

            .nav-dropdown-panel a:hover {
                background: rgba(255,255,255,0.06);
                color: #fff;
            }

        .nav-dropdown-panel hr {
            border-top-color: rgba(255,255,255,0.1);
        }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}
