/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Brand */
    --teal-dim:     rgba(122, 154, 154, .4);

    /* Dark (footer + mobile nav) */
    --black:        #111111;
    --dark:         #2a2a2a;
    --mid:          rgba(255, 255, 255, .62);
    --bright:       rgba(255, 255, 255, .95);

    /* Light desktop header + dropdown */
    --drop-bg:      #FDFCFA;
    --drop-hover:   rgba(26, 26, 26, .035);
    --drop-rule:    #EBE8E2;
    --bar-bg:       #F3F1EC;
    --bar-rule:     #EBE8E2;
    --lbl-color:    #8A9CA6;

    /* Shared spacing */
    --col-h:  28px;
    --link-py: 10px;
}


/* ============================================
   DESKTOP HEADER
   .header--transparent = over hero (default)
   .header--solid       = scrolled / non-hero pages
   .header--hidden      = scroll-down hide
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 300;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, transform .4s ease;
}

.header--hidden { transform: translateY(-100%); }

.header--solid {
    background: #FDFCFA;
    border-bottom-color: #EBE8E2;
}

/* ── Logo ── */
.header-logo {
    height: 52px;
    width: auto;
    display: block;
    transition: filter .3s ease;
}
/* Transparent state — white logo (PNG is white) */
.header--transparent .header-logo,
.header:not(.header--solid) .header-logo { filter: none; }
/* Solid state — invert to black */
.header--solid .header-logo { filter: brightness(0); }


/* ── Nav bar ── */
.nav {
    display: flex;
    align-items: stretch;
    height: 80px;
    margin-left: 8px;
}

.ni {
    position: relative;
    display: flex;
    align-items: center;
}

.nl {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 15px;
    height: 100%;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
    /* Transparent state — white links */
    color: rgba(255, 255, 255, .82);
}
.header--solid .nl { color: rgba(26, 26, 26, .62); }
.nl:hover, .ni:hover > .nl { border-bottom-color: transparent; }
.header--solid .nl:hover,
.header--solid .ni:hover > .nl  { color: #1A1A1A !important; }
.header--transparent .nl:hover,
.header--transparent .ni:hover > .nl { color: #fff !important; }


/* ── Arrow chevron ── */
.arr {
    width: 7px;
    height: 7px;
    position: relative;
    flex-shrink: 0;
    margin-top: 1px;
}
.arr::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 5px; height: 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform .25s;
}
.ni:hover .arr::after { transform: translate(-50%, -30%) rotate(-135deg); }


/* ── CTA button ── */
.header__cta {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 10px 22px;
    text-decoration: none;
    transition: border-color .25s, color .25s, background .25s;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    /* Transparent state */
    border: 1px solid rgba(255, 255, 255, .35);
    color: rgba(255, 255, 255, .82);
}
.header__cta:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(122, 154, 154, .08);
}
.header--solid .header__cta {
    background: #1A1A1A;
    color: #fff;
    border-color: #1A1A1A;
}
.header--solid .header__cta:hover {
    background: var(--teal);
    border-color: var(--teal);
}


/* ── Hamburger ── */
.menu-toggle {
    display: none;
    width: 28px; height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1003;
}
.menu-toggle__bar {
    display: block;
    position: absolute;
    left: 0;
    width: 100%; height: 1.5px;
    background: #fff;
    transition: all .3s ease, background .3s ease;
    transform-origin: center;
}
.header--solid .menu-toggle__bar { background: #1A1A1A; }
.menu-toggle__bar:nth-child(1) { top: 2px; }
.menu-toggle__bar:nth-child(2) { top: 9px; }
.menu-toggle__bar:nth-child(3) { top: 16px; }
.menu-toggle--open .menu-toggle__bar { background: #fff !important; }
.menu-toggle--open .menu-toggle__bar:nth-child(1) { top: 9px; transform: rotate(45deg); }
.menu-toggle--open .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle--open .menu-toggle__bar:nth-child(3) { top: 9px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
    .nav { display: none; }
    .header__cta { display: none; }
    .menu-toggle { display: block; }
}


/* ============================================
   DESKTOP DROPDOWN — LIGHT STYLE
   ============================================ */
.drop {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--drop-bg);
    border: 1px solid var(--drop-rule);
    border-top: 2px solid var(--teal);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .06);
    opacity: 0;
    visibility: hidden;
    transition: opacity .17s ease, transform .17s ease, visibility .17s;
    pointer-events: none;
    overflow: hidden;
}
.ni:hover > .drop {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.drop-two    { display: grid; grid-template-columns: 1fr 1fr; min-width: 480px; }
.drop-three  { display: grid; grid-template-columns: 1fr 1fr 1fr; min-width: 690px; }
.drop-single { min-width: 260px; }

/* Column */
.col { padding: 22px 0 0; }
.col + .col { border-left: 1px solid var(--drop-rule); }

/* Section label */
.lbl {
    display: block;
    padding: 0 var(--col-h) 12px;
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--lbl-color);
    user-select: none;
}

/* Link */
.lnk {
    display: block;
    padding: var(--link-py) var(--col-h);
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.35;
    color: #3A3A3A;
    text-decoration: none;
    transition: color .11s, background .11s, box-shadow .11s;
}
.lnk:hover {
    color: #1A1A1A;
    background: var(--drop-hover);
    box-shadow: inset 3px 0 0 var(--teal);
}
.lnk--muted { color: rgba(26, 26, 26, .4); font-variant-numeric: tabular-nums; }
.lnk--muted:hover { color: #3A3A3A; }

/* View-all bar — linen strip spanning all columns */
.bar {
    grid-column: 1 / -1;
    background: var(--bar-bg);
    border-top: 1px solid var(--bar-rule);
    display: flex;
}
.va {
    flex: 1;
    display: block;
    padding: 13px var(--col-h) 14px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--teal);
    text-decoration: none;
    transition: color .13s, background .13s;
}
.va:hover { color: var(--teal-light); background: rgba(122, 154, 154, .06); }
.va + .va  { border-left: 1px solid var(--bar-rule); }


/* ============================================
   MOBILE NAV — 3-panel slide system
   ============================================ */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    font-family: 'Source Sans 3', sans-serif;
}
.mobile-nav--open { opacity: 1; visibility: visible; }

.mobile-nav__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #1a2828 0%, #111111 55%, #131a1a 100%);
}
.mobile-nav__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, .55);
}

.mobile-nav__panels {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
}

/* Individual panel */
.mnav-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}
.mnav-panel--l1              { transform: translateX(0); }
.mnav-panel--l1.slide-out    { transform: translateX(-100%); }
.mnav-panel--l2              { transform: translateX(100%); }
.mnav-panel--l2.slide-in     { transform: translateX(0); }
.mnav-panel--l2.slide-out    { transform: translateX(-100%); }
.mnav-panel--l3              { transform: translateX(100%); }
.mnav-panel--l3.slide-in     { transform: translateX(0); }

/* Panel header bar */
.mnav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 80px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.mnav-logo {
    height: 52px;
    width: auto;
    margin-left: 8px;
    display: block;
}
.mnav-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: 'Source Sans 3', sans-serif;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s;
}
.mnav-close:hover { color: var(--teal); }
.mnav-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.mnav-back {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, .55);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: 'Source Sans 3', sans-serif;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s;
}
.mnav-back:hover { color: #fff; }
.mnav-back svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.mnav-back-row { margin-bottom: 12px; }

.mnav-back-row .mnav-back{
    margin-left: auto;
}

/* Panel section title */
.mnav-section-title {
    font-family: 'Beausite Grand', Georgia, serif;
    font-weight: 300;
    font-size: 18px;
    color: rgba(255, 255, 255, .9);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 15px 28px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* Scrollable menu body */
.mnav-menu {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.mnav-menu::-webkit-scrollbar { display: none; }

.mnav-item { border-bottom: 1px solid rgba(255, 255, 255, .05); }

.mnav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 28px;
    font-size: 19px;
    font-weight: 300;
    color: rgba(255, 255, 255, .75);
    font-family: 'Source Sans 3', sans-serif;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color .2s;
    -webkit-tap-highlight-color: transparent;
}
.mnav-link:hover { color: var(--teal); }
.mnav-link svg {
    width: 15px; height: 15px;
    stroke: rgba(255, 255, 255, .3);
    stroke-width: 1.5;
    fill: none;
    flex-shrink: 0;
}

/* Sub-section content (L2 / L3) */
.mnav-sub-section { padding: 6px 0; }
.mnav-sub-section + .mnav-sub-section {
    border-top: 1px solid rgba(255, 255, 255, .07);
    margin-top: 2px;
    padding-top: 8px;
}

.mnav-sub-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--teal);
    opacity: .8;
    padding: 8px 28px 10px;
}

.mnav-sub-link {
    display: block;
    padding: 9px 28px;
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color .18s, padding-left .18s;
}
.mnav-sub-link:hover { color: #fff; padding-left: 36px; }
.mnav-sub-link--viewall {
    color: var(--teal);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding-top: 13px;
    padding-bottom: 13px;
}
.mnav-sub-link--viewall:hover { color: var(--teal-light); padding-left: 28px; }

/* Panel footer */
.mnav-footer {
    flex-shrink: 0;
    padding: 12px 24px 13px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .4s ease .25s, transform .4s ease .25s;
}
.mobile-nav--open .mnav-footer { opacity: 1; transform: translateY(0); }

.mnav-contact-row { display: flex; gap: 8px; margin-bottom: 10px; }

.mnav-contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: none;
    transition: border-color .25s, color .25s, background .25s;
    cursor: pointer;
    font-family: 'Source Sans 3', sans-serif;
}
.mnav-contact-btn:hover {
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
    background: rgba(255, 255, 255, .06);
}
.mnav-contact-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.mnav-follow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    transition: border-color .25s, color .25s, background .25s;
}
.mnav-follow:hover {
    border-color: var(--teal-dim);
    color: var(--teal);
    background: rgba(122, 154, 154, .06);
}
.mnav-follow svg { width: 18px; height: 18px; }

/* Staggered entrance animation for L1 items */
.mobile-nav--open .mnav-item:nth-child(1) .mnav-link { animation: mnavIn .38s ease .06s both; }
.mobile-nav--open .mnav-item:nth-child(2) .mnav-link { animation: mnavIn .38s ease .10s both; }
.mobile-nav--open .mnav-item:nth-child(3) .mnav-link { animation: mnavIn .38s ease .14s both; }
.mobile-nav--open .mnav-item:nth-child(4) .mnav-link { animation: mnavIn .38s ease .18s both; }
.mobile-nav--open .mnav-item:nth-child(5) .mnav-link { animation: mnavIn .38s ease .22s both; }
.mobile-nav--open .mnav-item:nth-child(6) .mnav-link { animation: mnavIn .38s ease .26s both; }

@keyframes mnavIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .header { padding: 0 24px; }
}
