/* =============================================
   RESET & BASE
   ============================================= */

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

body, html { margin: 0; padding: 0; }

body {
    font-family: 'Georgia', serif;
    overflow-x: hidden;
    width: 100%;
}

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

::placeholder { color: #999; text-transform: lowercase; }


/* =============================================
   PRELOADER
   ============================================= */


#preloader::after {
    content: "LOADING...";
    font-family: 'Georgia', serif;
    letter-spacing: 5px;
    color: #c5a48a;
}


/* =============================================
   ANNOUNCEMENT BAR
   ============================================= */

.announcement-bar {
    background-color: #111;
    color: #ffffff;
    overflow: hidden;
    height: 30px;
    display: flex;
    align-items: center;
    font-family: 'Georgia', serif;
    position: sticky;
    top: 0;
    z-index: 1001;
    width: 100%;
    transition: top 0.35s ease, opacity 0.35s ease;
}

.announcement-track {
    display: flex;
    width: 300%;
    animation: slide-banner 12s infinite ease-in-out;
}

.announcement-slide {
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

@keyframes slide-banner {
    0%, 30%   { transform: translateX(0); }
    33%, 63%  { transform: translateX(-100%); }
    66%, 96%  { transform: translateX(-200%); }
    100%      { transform: translateX(0); }
}


/* =============================================
   HEADER
   ============================================= */

.bare-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;              /* comfortable desktop header */
    background-color: #012105;
    font-family: 'Georgia', serif;
    box-sizing: border-box;
    width: 100%;
    position: sticky;
    top: 30px;
    z-index: 1000;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Scroll-hide state — JS adds this class on scroll down */
.bare-header.scrolled-down {
    transform: translateY(calc(-100% - 50px));
    opacity: 0;
    pointer-events: none;
}

.header-hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

/* Announcement bar — slides away by moving top upward (transform ignored on sticky) */
.announcement-bar.scrolled-down,
.announcement-bar.header-hidden {
    top: -30px;
    opacity: 0;
    pointer-events: none;
}

/* Logo — larger across all sizes */
.logo { display: flex; align-items: center; }
.logo a { display: block; line-height: 0; }
.logo-img { height: 80px; width: auto; transition: opacity 0.3s ease; }
.logo-img:hover { opacity: 0.8; transform: scale(1.02); }

/* =============================================
   NAV — DESKTOP (horizontal bar)
   ============================================= */

/* Desktop nav links row */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Treatment Roadmap — stacked two lines on desktop */
.nav-links li a[href="road.html"] {
    text-align: center;
    line-height: 1.2;
    white-space: normal;
    max-width: 80px;
}

/* =============================================
   NAV CLOSE BUTTON — hidden until panel opens
   ============================================= */
.nav-close-btn { display: none; }

/* =============================================
   NAV PANEL LOGO WRAP — hidden until panel opens
   ============================================= */
.nav-panel-logo-wrap { display: none; }

/* =============================================
   FULL-SCREEN NAV OVERLAY — .nav-links.active
   Triggered at ALL screen widths by JS
   ============================================= */
.nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background-color: #012105;
    z-index: 9999;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow-y: auto;
}

/* Logo wrap — centered at top, no border, clean breathing room */
.nav-links.active .nav-panel-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 40px 32px;
    box-sizing: border-box;
    margin: 0;
}

/* Logo image — white, comfortably sized */
.nav-panel-logo {
    display: block;
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* X close button — top-left, subtle */
.nav-links.active .nav-close-btn {
    display: block;
    position: fixed;
    top: 22px;
    left: 28px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 4px 8px;
    z-index: 10000;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: color 0.2s ease;
}

.nav-links.active .nav-close-btn:hover { color: rgba(255,255,255,0.9); }

/* Nav item rows — no dividers, clean spacing like the reference */
.nav-links.active li {
    list-style: none;
    width: 100%;
    border: none;
}

/* Nav link text — lighter weight, generous padding, left-aligned */
.nav-links.active li a {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 22px;
    font-weight: 300;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 14px 50px;
    text-align: left;
    white-space: normal;
    max-width: none;
    line-height: 1.3;
    transition: color 0.25s ease, letter-spacing 0.25s ease;
    border-left: 3px solid transparent;
}

/* Hover — brighter white + subtle left accent line, no movement */
.nav-links.active li a:hover {
    color: rgba(255, 255, 255, 1);
    letter-spacing: 4px;
    border-left: 3px solid rgba(255,255,255,0.4);
}

/* Suppress the desktop underline animation inside the overlay */
.nav-links.active a::after {
    display: none;
}



/* Menu Toggle — hidden on desktop, consistently styled whenever shown */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 6px;
    margin: 0;
    width: 32px;
    height: 22px;
    position: relative;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: opacity 0.2s ease;
}

/* Three hamburger lines via span + pseudo-elements */
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 2px;
    transition: opacity 0.2s ease;
    content: '';
}

.menu-toggle span {
    top: 50%;
    transform: translateY(-50%);
    content: none;
}

.menu-toggle span::before {
    top: -8px;
}

.menu-toggle span::after {
    bottom: -8px;
    top: auto;
}

.menu-toggle:hover span,
.menu-toggle:hover span::before,
.menu-toggle:hover span::after {
    opacity: 0.5;
}

.menu-toggle:focus,
.menu-toggle:focus-visible {
    outline: none;
    box-shadow: none;
}


/* =============================================
   HEADER — RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
    .bare-header {
        top: 30px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 4px 15px;
    }

    /* Show menu button */
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    /* Hide the horizontal nav links — replaced by the fullscreen overlay */
    .nav-links:not(.active) {
        display: none !important;
    }
}


@media (max-width: 900px) {
    .logo-img { height: 65px; }
}

@media (max-width: 600px) {
    .announcement-bar { height: 26px; }
    .announcement-bar.scrolled-down,
    .announcement-bar.header-hidden { top: -26px; }
    .announcement-slide { font-size: 10px; letter-spacing: 1px; }
    .bare-header { top: 26px; }
    .logo-img { height: 34px; }
    /* Hamburger icon sizing on small mobile */
    .menu-toggle { width: 26px; height: 18px; }
}

/* iPhone 12 Pro and smaller — overrides 600px above */
@media (max-width: 390px) {
    .logo-img { height: 24px; }
    .bare-header { padding: 10px 14px; }
    .menu-toggle { width: 22px; height: 15px; }
}


/* =============================================
   FOOTER
   ============================================= */

.site-footer {
    background-color: #e4ded4;
    font-family: 'Georgia', serif;
    color: #333;
    padding: 60px 40px 20px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
}

.footer-newsletter { width: 35%; }
.footer-tagline { font-size: 16px; margin-bottom: 10px; }
.footer-subtext { color: #666; margin-bottom: 20px; line-height: 1.4; }

.newsletter-form {
    display: flex;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

.email-input { flex-grow: 1; border: none; padding: 15px 20px; outline: none; }

.subscribe-btn {
    background: none;
    border: none;
    padding: 0 25px;
    font-weight: bold;
    cursor: pointer;
    border-left: 1px solid #eee;
}

.privacy-note { font-size: 12px; color: #888; }

.footer-nav-grid {
    display: flex;
    width: 60%;
    justify-content: space-between;
    border-left: 1px solid #ccc;
    padding-left: 40px;
}

.nav-column h4 {
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #000;
}

.nav-column a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #555;
    margin-bottom: 15px;
}

.nav-column p { display: block; color: #555; margin-bottom: 12px; }
.nav-column a:hover { color: #000; }
.nav-column i { font-size: 20px; width: 24px; text-align: center; }

.footer-bottom {
    border-top: 1px solid #ccc;
    padding: 30px 0;
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.footer-bottom-wrapper { display: flex; align-items: center; gap: 15px; }

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover { opacity: 0.7; }

.footer-bottom-logo {
    max-width: 200px;
    height: auto;
    opacity: 0.9;
    display: block;
    border: none;
}

.footer-legal-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 4px;
}

.region-selector,
.copyright { margin: 0; font-size: 16px; color: #666; }


/* =============================================
   FOOTER — RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .site-footer { padding: 50px 30px 20px; }
    .footer-newsletter { width: 38%; }
    .footer-nav-grid { width: 58%; padding-left: 25px; gap: 10px; }
    .nav-column h4 { font-size: 11px; }
    .nav-column a, .nav-column p { font-size: 12px; margin-bottom: 10px; }
}

@media (max-width: 830px) {
    .site-footer { padding: 40px 20px; }
    .footer-top { flex-direction: column; padding-bottom: 0; }
    .footer-newsletter { width: 100%; margin-bottom: 15px; }
    .footer-nav-grid {
        width: 100%;
        border-left: none;
        padding: 15px 10px 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px 10px;
    }
    .nav-column { flex: unset; min-width: unset; padding: 0 10px; }
    .nav-column h4 { font-size: 13px; margin-bottom: 12px; }
    .nav-column a, .nav-column p { font-size: 13px; }
    .footer-bottom { padding: 15px 20px; }
    .footer-bottom-wrapper { justify-content: center; width: 100%; }
}

@media (max-width: 768px) {
    .footer-newsletter { width: 100%; }
    .footer-nav-grid {
        border-left: none;
        padding: 10px 10px 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 10px;
    }
    .nav-column { padding: 0 10px; }
    .footer-bottom-wrapper { flex-direction: column; text-align: center; gap: 6px; }
    .region-selector, .copyright { font-size: 13px; text-align: center; }
}


/* =============================================
   POPUP / WAITLIST
   ============================================= */

.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup-overlay.active { display: flex; }

.popup-content {
    background: white;
    width: 95%;
    max-width: 850px;
    display: flex;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    color: #333;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}

.popup-left { width: 50%; background: #f0f0f0; }
.popup-left img { width: 100%; height: 100%; object-fit: cover; display: block; }

.popup-right {
    width: 50%;
    padding: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-right h2 { font-family: 'Georgia', serif; letter-spacing: 2px; margin-bottom: 15px; font-size: 22px; }
.popup-right p { font-size: 14px; margin-bottom: 25px; color: #444; line-height: 1.5; }

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.floating-group { position: relative; width: 100%; }

.floating-group input {
    width: 100%;
    padding: 16px 12px;
    border: 1px solid #000;
    border-radius: 8px;
    background: transparent;
    outline: none;
    font-size: 16px;
    box-sizing: border-box;
}

.floating-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 5px;
    color: #999;
    font-size: 16px;
    transition: 0.2s ease all;
    pointer-events: none;
}

.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 12px;
    color: #000;
    transform: translateY(-50%) scale(0.9);
}

.full-submit {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
    font-size: 14px;
    letter-spacing: 1px;
}

.full-submit:hover { background: #333; }

.no-thanks-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    margin-top: 20px;
}

#no-thanks-check {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 1px solid #d3d3d3;
    background-color: #fff;
    cursor: pointer;
    margin: 0;
}

.no-thanks {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'Georgia', serif;
    font-size: 14px;
    font-weight: 100;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
    cursor: pointer;
}

/* Popup — Mobile */
@media (max-width: 768px) {
    .popup-content {
        flex-direction: column;
        width: 90%;
        max-height: 90vh;
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 20px;
    }

    .popup-left { width: 100%; height: 160px; flex-shrink: 0; }

    .popup-right {
        width: 100%;
        padding: 30px 45px;
        box-sizing: border-box;
        flex-direction: column;
        align-items: center;
    }

    .popup-right h2 { font-size: 20px; margin-bottom: 5px; }
    .popup-right p { font-size: 14px; margin-bottom: 15px; }
    .popup-form { width: 100%; gap: 12px; }
    .floating-group input { padding: 12px 10px; font-size: 15px; }
    .floating-group label { font-size: 14px; }
    .full-submit { padding: 12px; font-size: 14px; }
    .no-thanks-container { margin-top: 15px; }
}


/* =============================================
   INSTAGRAM GRID
   ============================================= */

.bsb-insta-wrapper {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    clear: both;
}

.bsb-insta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.bsb-insta-title {
    font-family: 'Georgia', serif;
    font-weight: 500;
    font-size: 45px;
    line-height: 45px;
    color: #000;
    margin: 0;
    text-transform: uppercase;
}

.bsb-insta-actions { display: flex; align-items: center; gap: 20px; }

.bsb-insta-btn {
    font-family: 'Georgia', serif;
    border: 1px solid #000;
    padding: 12px 25px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-block;
}

.bsb-insta-btn:hover { background: #000; color: #fff; }

.bsb-insta-grid { display: flex; gap: 15px; padding: 0 10px; }

.bsb-insta-item {
    flex: 1;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
}

.bsb-insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.bsb-insta-item:hover img { transform: scale(1.05); }

@media (max-width: 768px) {
    .bsb-insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .bsb-insta-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .bsb-insta-title { font-size: 32px; }
}
