/* ===============================================================================
   GOODEARTH — SHARED STYLES
   Extracted common CSS across index.html, work7.html, lake4.html
   =============================================================================== */

/* ================= CSS VARIABLES & BASE ================= */
@font-face {
    font-family: 'Petrona';
    src: url('assets/fonts/Petrona-Roman.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: fallback;
}

@font-face {
    font-family: 'Petrona';
    src: url('assets/fonts/Petrona-Italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: fallback;
}

:root {
    --font-serif: 'Petrona', Georgia, serif;
    --font-sans: 'Nunito', 'Montserrat', sans-serif;
    --bg-color: #F9F4EA;
    --text-color: #123D33;
    --ink: #123D33;
    --on-ink: #F9F4EA;        /* text on any dark surface */
    --footer-text: #EAF2A0;   /* except the footer, which keeps the lime */
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    caret-color: transparent;
}

input, textarea, select, [contenteditable], [contenteditable="true"] {
    caret-color: auto;
}

body, html {
    width: 100%;
    max-width: 100%;
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: clip;
}



/* ================= HEADER ================= */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s ease, border-color 0.4s ease;
}

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

.header-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.25rem clamp(1rem, 2.5vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 70px;
    transition: padding 0.4s ease, min-height 0.4s ease;
}

.logo {
    position: static;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    z-index: 1200;
}
.logo:hover { opacity: 0.75; }
.logo img { height: clamp(34px, 4vw, 44px); width: auto; max-width: 280px; display: block; transition: filter 0.4s ease, opacity 0.3s ease; }
/* By default on cream/light pages, show the dark/color brand logo */
.logo .logo-dark { display: block; }
.logo .logo-light { display: none; }

/* In dark-themed headers or over video on desktop, show the cream logo */
@media (min-width: 769px) {
    header.theme-video:not(.nav-open) .logo .logo-dark,
    header.theme-dark:not(.nav-open) .logo .logo-dark,
    body.dark-theme header:not(.theme-light):not(.nav-open) .logo .logo-dark {
        display: none !important;
    }

    header.theme-video:not(.nav-open) .logo .logo-light,
    header.theme-dark:not(.nav-open) .logo .logo-light,
    body.dark-theme header:not(.theme-light):not(.nav-open) .logo .logo-light {
        display: block !important;
    }
}

/* Desktop nav */
nav {
    position: static;
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 2.5rem);
}
nav a {
    text-decoration: none; font-size: clamp(0.72rem, 0.85vw, 0.85rem); text-transform: uppercase;
    letter-spacing: 1.5px; font-weight: 500; transition: color 0.4s ease, opacity 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 0.2rem;
}
nav a:hover { opacity: 0.6; }
nav a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    background: rgba(18, 61, 51, 0.08);
    border: 1px solid rgba(18, 61, 51, 0.22);
    color: var(--ink);
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1200;
    transition: all 0.3s ease;
}
.menu-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.menu-toggle .menu-icon {
    width: 16px;
    height: 11px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.menu-toggle .menu-icon span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: currentColor;
    border-radius: 1px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    transform-origin: center;
}

header.theme-video .menu-toggle,
header.theme-dark .menu-toggle,
header.scrolled .menu-toggle,
body.dark-theme .menu-toggle {
    background: rgba(249, 244, 234, 0.12);
    border-color: rgba(249, 244, 234, 0.32);
    color: #F9F4EA;
}

/* Open state for mobile menu */
header.nav-open .menu-toggle {
    background: rgba(18, 61, 51, 0.08) !important;
    border-color: rgba(18, 61, 51, 0.22) !important;
    color: #123D33 !important;
}
header.nav-open .menu-toggle .menu-icon span {
    background-color: #123D33 !important;
}
header.nav-open .menu-toggle .menu-icon span:first-child {
    transform: translateY(4.75px) rotate(45deg);
}
header.nav-open .menu-toggle .menu-icon span:last-child {
    transform: translateY(-4.75px) rotate(-45deg);
}
/* ================= FLOATING HOME BUTTON ================= */
.floating-home-btn {
    position: fixed;
    bottom: max(1.75rem, env(safe-area-inset-bottom, 1.75rem));
    left: max(1.75rem, env(safe-area-inset-left, 1.75rem));
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 61, 51, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(249, 244, 234, 0.28);
    color: #F9F4EA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(18, 61, 51, 0.2);
    z-index: 950;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
                background-color 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease,
                opacity 0.25s ease,
                visibility 0.25s ease;
}

.floating-home-btn svg {
    width: 19px;
    height: 19px;
    display: block;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.25s ease;
}

.floating-home-btn:hover {
    background: #123D33;
    color: #EAF2A0;
    border-color: #EAF2A0;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(18, 61, 51, 0.35);
}

.floating-home-btn:hover svg {
    transform: scale(1.08);
}

.floating-home-btn:focus-visible {
    outline: 2px solid #EAF2A0;
    outline-offset: 3px;
}

/* Hide floating home button when any modal overlay or dialog is active, or mobile drawer is open */
body.modal-open .floating-home-btn,
.modal-overlay.active ~ .floating-home-btn,
body:has(.modal-overlay.active) .floating-home-btn,
header.nav-open ~ .floating-home-btn,
body:has(header.nav-open) .floating-home-btn,
html.no-scroll .floating-home-btn,
body.no-scroll .floating-home-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.8);
}

@media (max-width: 900px) {
    .floating-home-btn {
        bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
        left: max(1.25rem, env(safe-area-inset-left, 1.25rem));
        width: 42px;
        height: 42px;
    }
    body:has(.floating-action-bar.visible) .floating-home-btn,
    .has-fab-visible .floating-home-btn {
        bottom: calc(max(1.25rem, env(safe-area-inset-bottom, 1.25rem)) + 4.5rem);
    }
    .floating-home-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media print {
    .floating-home-btn {
        display: none !important;
    }
}

/* ================= SCROLL TO TOP ARROW BUTTON ================= */
.scroll-top-btn {
    position: fixed;
    bottom: max(1.75rem, env(safe-area-inset-bottom, 1.75rem));
    right: max(1.75rem, env(safe-area-inset-right, 1.75rem));
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 61, 51, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(249, 244, 234, 0.28);
    color: #F9F4EA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(18, 61, 51, 0.2);
    z-index: 950;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.25s ease;
}

.scroll-top-btn:hover {
    background: #123D33;
    color: #EAF2A0;
    border-color: #EAF2A0;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(18, 61, 51, 0.4);
}

.scroll-top-btn:hover svg {
    transform: translateY(-2px);
}

.scroll-top-btn:focus-visible {
    outline: 2px solid #EAF2A0;
    outline-offset: 3px;
}

/* Hide scroll-to-top button when modal overlay is open */
body.modal-open .scroll-top-btn,
.modal-overlay.active ~ .scroll-top-btn,
body:has(.modal-overlay.active) .scroll-top-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.8);
}

@media (max-width: 900px) {
    .scroll-top-btn {
        bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
        right: max(1.25rem, env(safe-area-inset-right, 1.25rem));
        width: 42px;
        height: 42px;
    }
    body:has(.floating-action-bar.visible) .scroll-top-btn,
    .has-fab-visible .scroll-top-btn {
        bottom: calc(max(1.25rem, env(safe-area-inset-bottom, 1.25rem)) + 4.5rem);
    }
    .scroll-top-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media print {
    .scroll-top-btn {
        display: none !important;
    }
}

/* ================= FLOATING ACTION BUTTONS ================= */
.floating-action-bar {
    position: fixed; bottom: 2rem; left: 50%; transform: translate(-50%, 50px);
    display: flex; gap: 1rem; z-index: 1000; opacity: 0; visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.floating-action-bar.visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.floating-action-bar.hidden { transform: translate(-50%, 50px); opacity: 0; visibility: hidden; }

/* Hide floating action bar when mobile nav drawer is open */
header.nav-open ~ .floating-action-bar,
body:has(header.nav-open) .floating-action-bar,
html.no-scroll .floating-action-bar,
body.no-scroll .floating-action-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate(-50%, 50px) !important;
}

.fab-btn {
    background: #EAF2A0; color: #123D33; padding: 1rem 2rem;
    border-radius: 50px; font-family: var(--font-sans); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    white-space: nowrap; border: 1px solid transparent; cursor: pointer;
}
/* both CTAs share the one lime/ink pairing; the outline keeps an ink ring
   so there is still a primary/secondary read, using no extra colour */
.fab-btn.outline { background: #EAF2A0; color: #123D33; border-color: #123D33; }
.fab-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(18, 61, 51, 0.30); }
/* Get In Touch reads as the dark field; Our Works stays the lime pill */
.floating-action-bar .fab-btn:not(.outline) { background: #123D33; color: #EAF2A0; border-color: #123D33; }
.floating-action-bar .fab-btn:not(.outline):hover { background: #0E3129; color: #EAF2A0; }
/* no opacity on hover - it let the backdrop bleed through and pulled both
   buttons off the #123D33 / #F9F4EA pair */


/* ================= CONTACT MODAL ================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 61, 51, 0.75); backdrop-filter: blur(8px);
    z-index: 2000; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: #EAF2A0; color: #123D33; width: 620px; height: 620px; border-radius: 50%; position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: translateY(30px) scale(0.95); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 30px 60px rgba(18, 61, 51, 0.45); padding: 2rem;
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(18, 61, 51, 0.25);
    background: rgba(18, 61, 51, 0.08);
    color: #123D33;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 20;
    padding: 0;
}
.modal-close:hover {
    background: #123D33;
    color: #EAF2A0;
    transform: scale(1.08);
}

.form-wrapper { width: 65%; display: flex; flex-direction: column; align-items: center; }
.modal-content h2 { font-family: var(--font-serif); font-size: 2.2rem; margin-bottom: 0.2rem; font-weight: 400; text-align: center; }
.modal-content .subtext { text-align: center; font-size: 0.75rem; color: rgba(18, 61, 51, 0.72); font-family: var(--font-sans); margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1rem; width: 100%; display: flex; flex-direction: column; }
.form-group input {
    width: 100%; padding: 0.6rem 0; border: none; border-bottom: 1px solid rgba(18, 61, 51, 0.28);
    font-family: var(--font-sans); font-size: 0.85rem; background: transparent; color: #123D33; transition: border-color 0.3s ease;
}
.form-group input::placeholder { color: rgba(18, 61, 51, 0.55); text-transform: uppercase; letter-spacing: 1px; font-size: 0.7rem; }
.form-group input:focus { outline: none; border-bottom: 1px solid #123D33; }

::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.5; transition: 0.2s; filter: invert(0); }
::-webkit-calendar-picker-indicator:hover { opacity: 1; }
/* the picker icon is dark artwork: fine on the light modal, invisible on
   the dark footer, so invert it there */
.footer-form-side input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.7; }
.footer-form-side input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

.submit-btn {
    width: 70%; margin: 1rem auto 0; background: #123D33; color: #F9F4EA; padding: 0.8rem;
    border: none; border-radius: 50px; font-family: var(--font-sans); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 2px; cursor: pointer; font-weight: 600; transition: opacity 0.3s ease;
}
.submit-btn:hover { opacity: 0.8; }
.privacy-policy { font-size: 0.55rem; color: rgba(18, 61, 51, 0.62); margin: 1rem auto 0; line-height: 1.4; text-align: center; }

.direct-contact { text-align: center; margin-top: 1.5rem; font-size: 0.7rem; color: rgba(18, 61, 51, 0.62); font-family: var(--font-sans); }
.direct-contact a { color: #123D33; text-decoration: none; font-weight: 500; margin: 0 5px; transition: opacity 0.3s ease; }
.direct-contact a:hover { opacity: 0.5; }


/* ================= FOOTER ================= */
/* Arup-style: tagline + contact left, form right, nav row between rules,
   copyright + logo on the baseline, social beneath. */
.big-footer {
    background-color: #123D33; color: #EAF2A0; padding: 4.5rem 4rem 2rem;
    display: flex; flex-direction: column; position: relative; z-index: 10; border-top: 1px solid #395E47;
}
.big-footer > * { max-width: 1400px; margin-left: auto; margin-right: auto; width: 100%; }

.footer-top {
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 5rem;
    margin-bottom: 3rem;
}

.footer-info-side { display: flex; flex-direction: column; }

/* Tagline - the Arup statement slot */
/* the mission: the opening in cream, the three aims in lime */
.footer-tagline {
    font-family: var(--font-serif); font-size: clamp(1.9rem, 2.6vw, 2.6rem); font-weight: 400;
    line-height: 1.2; color: #F9F4EA; max-width: 22ch; margin-bottom: 2.5rem;
}
.footer-tagline span { color: #EAF2A0; }

/* Contact block sits under the tagline */
.footer-contact { display: flex; flex-direction: column; gap: 0.45rem; margin-top: auto; }
.footer-contact-line {
    font-family: var(--font-sans); font-size: 0.85rem; color: #EAF2A0;
    text-decoration: none; width: fit-content; max-width: 100%;
    overflow-wrap: anywhere; word-break: break-word; transition: opacity 0.3s ease;
}
.footer-contact-line:hover { opacity: 0.6; }
.footer-address { line-height: 1.55; color: #AEBF81; font-size: 0.82rem; font-family: var(--font-sans); margin-top: 0.6rem; overflow-wrap: anywhere; word-break: break-word; }
.footer-directions {
    font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase;
    color: #EAF2A0; text-decoration: underline; width: fit-content; margin-top: 0.35rem;
}
.footer-directions:hover { opacity: 0.6; }

/* Nav row, spread between two hairlines */
/* NOTE: overrides the global `nav { position: absolute }` header rule,
   which would otherwise pull this row out of flow. */
.footer-nav {
    position: static; right: auto; top: auto;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
    border-top: 1px solid #2C5340; border-bottom: 1px solid #2C5340;
    padding: 1.1rem 0; margin-bottom: 1.5rem;
}
.footer-nav a {
    font-family: var(--font-sans); font-size: 0.82rem; color: #EAF2A0;
    text-decoration: none; transition: opacity 0.3s ease;
    text-transform: none; letter-spacing: normal; font-weight: 400;
}
.footer-nav a:hover { opacity: 0.55; }

/* Baseline: copyright left, logo right */
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; margin-bottom: 1.5rem;
}
.footer-copyright { font-size: 0.75rem; color: #AEBF81; font-family: var(--font-sans); margin: 0; }
.footer-logo { height: 26px; width: auto; opacity: 0.95; }
.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}
.footer-logo-link:hover {
    opacity: 0.75;
}
.footer-logo-link:focus-visible {
    outline: 2px solid #EAF2A0;
    outline-offset: 4px;
    border-radius: 4px;
}
.footer-logo-link .footer-logo {
    display: block;
}

/* Social beneath, bottom-left */
.footer-social .social-icons, .footer-social { display: flex; gap: 1.1rem; align-items: center; }
.social-icons { display: flex; gap: 1.1rem; align-items: center; }
.social-icons a { color: #EAF2A0; display: inline-flex; }
.social-icons svg { width: 19px; height: 19px; fill: currentColor; transition: transform 0.3s ease; }
.social-icons a:hover svg { transform: translateY(-3px); }

.contact-icon { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.5; fill: none; }

/* Form Side in Footer */
.footer-form-side { background: transparent; padding: 0; }
.footer-form-side h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.65rem; font-weight: 400; line-height: 1.2; }
.footer-form-side .subtext { font-size: 0.72rem; color: #AEBF81; font-family: var(--font-sans); margin-bottom: 1.1rem; }
.footer-form-side .form-group label { color: #AEBF81; display: none; }
.footer-form-side .form-group input {
    width: 100%; border: none; border-bottom: 1px solid #AEBF81; padding: 0.55rem 0; font-size: 0.85rem; color: #EAF2A0; background: transparent; margin-bottom: 0.2rem;
}
.footer-form-side .form-group input::placeholder { color: #AEBF81; text-transform: uppercase; letter-spacing: 1px; font-size: 0.7rem;}
.footer-form-side .form-group input:focus { outline: none; border-bottom-color: #EAF2A0; }
.footer-form-side .submit-btn { width: auto; padding: 0.8rem 2.25rem; margin-left: 0; margin-top: 0.9rem; background: #EAF2A0; color: #123D33; border-radius: 50px; font-family: var(--font-sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; cursor: pointer; transition: background 0.3s ease;}
.footer-form-side .submit-btn:hover { background: #AEBF81; }
.footer-form-side .privacy-policy { font-size: 0.62rem; color: #AEBF81; }


/* ================= SHARED MOBILE RESPONSIVENESS ================= */
/* ================= SHARED MOBILE RESPONSIVENESS ================= */
@media (max-width: 900px) {
    :root {
        --mobile-header-height: 58px;
    }

    header#main-header,
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: var(--mobile-header-height, 58px) !important;
        min-height: var(--mobile-header-height, 58px) !important;
        background: #F9F4EA !important;
        border-bottom: 1px solid rgba(18, 61, 51, 0.12) !important;
        box-shadow: 0 2px 14px rgba(18, 61, 51, 0.05) !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 1100 !important;
        transition: none !important;
    }

    .header-inner {
        padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)) !important;
        height: 100% !important;
        min-height: var(--mobile-header-height, 64px) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .logo {
        position: static !important;
        display: inline-flex !important;
        align-items: center !important;
        min-height: 48px !important;
        flex: 0 0 auto !important;
    }

    /* On mobile, the header background is ALWAYS cream (#F9F4EA).
       The dark green brand logo must ALWAYS display, regardless of scrolled/theme state. */
    header .logo .logo-dark,
    header.theme-video .logo .logo-dark,
    header.theme-dark .logo .logo-dark,
    header.theme-light .logo .logo-dark,
    header.scrolled .logo .logo-dark,
    body.dark-theme header .logo .logo-dark {
        display: block !important;
        height: clamp(40px, 9.5vw, 45px) !important;
        width: auto !important;
        max-width: 270px !important;
        display: block !important;
        filter: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    header .logo .logo-light,
    header.theme-video .logo .logo-light,
    header.theme-dark .logo .logo-light,
    header.theme-light .logo .logo-light,
    header.scrolled .logo .logo-light,
    body.dark-theme header .logo .logo-light {
        display: none !important;
    }

    header.nav-open .logo .logo-dark {
        display: block !important;
    }
    header.nav-open .logo .logo-light {
        display: none !important;
    }

    /* Enhanced tap target & prominent menu toggle button */
    .menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 8px !important;
        color: #123D33 !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 1200 !important;
        transition: background-color 0.2s ease !important;
    }

    .menu-toggle:hover {
        background: rgba(18, 61, 51, 0.08) !important;
    }

    .menu-toggle:focus-visible {
        outline: 2px solid #123D33 !important;
        outline-offset: 2px !important;
    }

    .menu-toggle .menu-label {
        display: none !important;
    }

    .menu-toggle .menu-icon {
        width: 28px !important;
        height: 18px !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .menu-toggle .menu-icon span {
        display: block !important;
        width: 100% !important;
        height: 2.25px !important;
        background-color: #123D33 !important;
        border-radius: 2px !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
        transform-origin: center !important;
    }

    header.nav-open .menu-toggle {
        color: #123D33 !important;
        background: rgba(18, 61, 51, 0.08) !important;
    }

    header.nav-open .menu-toggle .menu-icon span {
        background-color: #123D33 !important;
    }

    header.nav-open .menu-toggle .menu-icon span:first-child {
        transform: translateY(8px) rotate(45deg) !important;
    }

    header.nav-open .menu-toggle .menu-icon span:last-child {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    /* Deliberate GoodEarth architectural drawer */
    header nav {
        position: fixed !important;
        top: var(--mobile-header-height, 64px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: calc(100vh - var(--mobile-header-height, 64px)) !important;
        height: calc(100dvh - var(--mobile-header-height, 64px)) !important;
        background: #F9F4EA !important;
        border-top: 1px solid rgba(18, 61, 51, 0.1) !important;
        box-shadow: 0 20px 40px rgba(18, 61, 51, 0.12) !important;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
        max-width: 100vw !important;
        gap: 0 !important;
        z-index: 1050 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-8px) !important;
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s !important;
        padding: 1.5rem max(24px, env(safe-area-inset-right)) 3rem max(24px, env(safe-area-inset-left)) !important;
        margin: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    header.nav-open nav {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    header nav a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 54px !important;
        padding: 0.95rem 0 !important;
        border-bottom: 1px solid rgba(18, 61, 51, 0.08) !important;
        box-sizing: border-box !important;
        text-shadow: none !important;
        font-family: var(--font-serif) !important;
        font-size: clamp(1.5rem, 5.2vw, 2rem) !important;
        font-weight: 400 !important;
        color: #123D33 !important;
        text-transform: none !important;
        letter-spacing: -0.01em !important;
        text-decoration: none !important;
        transition: color 0.2s ease, transform 0.2s ease !important;
    }

    header nav a::before {
        counter-increment: nav-counter;
        content: "";
        display: none;
    }

    header nav a::after {
        content: "→";
        font-family: var(--font-sans);
        font-size: 1.25rem;
        font-weight: 300;
        color: rgba(18, 61, 51, 0.35);
        margin-left: auto;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    header.nav-open nav a:hover,
    header.nav-open nav a:focus-visible {
        color: #0E3129 !important;
    }

    header.nav-open nav a:hover::after,
    header.nav-open nav a:focus-visible::after {
        transform: translateX(6px);
        color: #123D33;
    }

    /* Drawer Footer for Studio Contact Info */
    .nav-drawer-footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(18, 61, 51, 0.12);
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .ndf-label {
        display: block;
        font-family: var(--font-sans);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: rgba(18, 61, 51, 0.55);
        margin-bottom: 0.5rem;
    }

    .ndf-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-family: var(--font-sans);
        font-size: 0.88rem;
        color: #123D33;
        text-decoration: none;
        margin-bottom: 0.4rem;
        font-weight: 500;
    }

    .ndf-link:hover {
        color: #0E3129;
        text-decoration: underline;
    }

    .ndf-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 0.5rem;
        padding: 0.85rem 1.6rem;
        border-radius: 50px;
        background: #123D33;
        color: #EAF2A0;
        border: 1px solid #123D33;
        font-family: var(--font-sans);
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .ndf-btn:hover {
        background: #0E3129;
        transform: translateY(-2px);
    }

    @media (prefers-reduced-motion: reduce) {
        header nav {
            transition: none !important;
            transform: none !important;
        }
        .menu-toggle .menu-icon span {
            transition: none !important;
        }
    }

    /* Scroll offset ensuring persistent header never obscures anchors or headings */
    section,
    footer,
    main {
        scroll-margin-top: calc(var(--mobile-header-height, 58px) + 8px);
    }

    .stats-section {
        padding-top: clamp(4.5rem, 9vw, 6rem) !important;
        scroll-margin-top: var(--mobile-header-height, 58px) !important;
    }

    .floating-action-bar { width: min(92%, 400px); justify-content: center; }
    .fab-btn { padding: 0.8rem 1.4rem; font-size: 0.72rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

    .modal-content {
        width: min(92vw, 460px);
        height: auto;
        min-height: auto;
        max-height: 90dvh;
        max-height: 90vh;
        border-radius: 28px;
        padding: 2.25rem clamp(1.2rem, 4vw, 2rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    .form-wrapper { width: 100%; max-width: 360px; }
    .modal-content h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); margin-bottom: 0.35rem; }
    .modal-content .subtext { font-size: 0.72rem; margin-bottom: 1.2rem; }
    .form-group { margin-bottom: 0.85rem; }
    .submit-btn { width: 100%; padding: 0.85rem; margin-top: 0.6rem; min-height: 44px; }
    .privacy-policy { font-size: 0.55rem; margin-top: 0.85rem; }

    .big-footer { padding: clamp(2.5rem, 6vh, 4rem) clamp(1.25rem, 4vw, 2.5rem) 1.5rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2rem; }
    .footer-tagline { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 1.75rem; max-width: 22ch; }
    .footer-contact { margin-top: 0; }
    .footer-form-side { padding: 0; }
    .footer-form-side .submit-btn { width: 100%; min-height: 44px; }
    .footer-nav { justify-content: flex-start; gap: 0.75rem 1.75rem; }
    .footer-nav a { min-height: 40px; display: inline-flex; align-items: center; }
    .footer-bottom { flex-direction: row; align-items: center; }
    .footer-logo { height: 22px; }
}

@media (max-width: 540px) {
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1.25rem;
    }
}
