/* =========================================
   1. FONTS & GLOBAL VARIABLES
   ========================================= */

@font-face {
  font-family: Aeonik;
  src: url(https://cdn.prod.website-files.com/66de2f1572bcf866302fd41c/66de30ccf3500ac59b739099_Aeonik-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Fragment";
  src: url(https://cdn.prod.website-files.com/66de2f1572bcf866302fd41c/66de30cc730b040270305ffa_PPFragment-SerifRegular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
    /* --- COLORS --- */
    --swatch--light: #F3EFE2;
    --swatch--dark: #1e1005;
    --swatch--dark-secondary: #585254;
    --swatch--brand: #C1AE7C;
    --swatch--transparent: #fff0;

    /* Theme Assignments */
    --theme--background: var(--swatch--light);
    --theme--text: var(--swatch--dark);
    --theme--border: var(--swatch--dark-secondary);

    /* --- TYPOGRAPHY --- */
    --font--primary-family: "PP Fragment", sans-serif;
    --font--secondary-family: Aeonik, sans-serif;
    --text-main--font-size: 1rem;
    --text-small--font-size: 0.875rem;
    --text-xsmall--font-size: 0.75rem;
    
    /* --- SPACING & SIZES --- */
    --padding-horizontal--main: 3rem;
    --padding-vertical--main: 7rem;
    --padding-vertical--small: 5rem;
    --grid-gap--main: 1rem;
    --border-width--main: 1px;
    --max-width--main: none; 

    /* --- GRID CALCS --- */
    --column-count: 10;
    --grid-main: repeat(var(--column-count), minmax(0, 1fr));
    --grid-5: repeat(5, minmax(0, 1fr));

    /* --- FOOTER SPECIFIC SPACING --- */
    --space-xs: 0.5rem;
    --space-sm: 1.5rem;
    --space-md: 3rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* --- FOOTER FONT ALIASES --- */
    --font-serif: var(--font--primary-family);
    --font-sans: var(--font--secondary-family);

    /* --- FOOTER COLOR MAPPINGS --- */
    /* Maps footer-specific vars to global theme vars */
    --color-bg: var(--theme--background);
    --color-text: var(--theme--text);
    --color-border: var(--theme--border);
    --color-text-muted: var(--swatch--dark-secondary);
}

[data-theme="light"] {
    --theme--background: var(--swatch--light); /* Beige */
    --theme--text: var(--swatch--dark);        /* Dark Brown */
    --theme--border: rgba(30, 16, 5, 0.2);
    
    /* --- ADD THESE FOOTER MAPPINGS --- */
    --color-bg: var(--theme--background);
    --color-text: var(--theme--text);
    --color-border: var(--theme--border);
    --color-text-muted: var(--swatch--dark-secondary);

    /* Invert buttons for light theme */
    --button--background: var(--swatch--dark);
    --button--text: var(--swatch--light);
    --button--border: var(--swatch--dark);
    --button--background-hover: transparent;
    --button--text-hover: var(--swatch--dark);
}

/* 2. Define what happens when data-theme is "dark" */
[data-theme="dark"] {
    --theme--background: var(--swatch--dark);  /* Dark Brown */
    --theme--text: var(--swatch--light);       /* Beige */
    --theme--border: rgba(251, 240, 218, 0.2);

    /* --- ADD THESE FOOTER MAPPINGS --- */
    --color-bg: var(--theme--background);
    --color-text: var(--theme--text);
    --color-border: var(--theme--border);
    /* Make muted text lighter so it is visible on dark background */
    --color-text-muted: rgba(251, 240, 218, 0.6); 

    /* Standard buttons for dark theme */
    --button--background: var(--swatch--light);
    --button--text: var(--swatch--dark);
    --button--border: var(--swatch--light);
    --button--background-hover: transparent;
    --button--text-hover: var(--swatch--light);
}

[data-theme] {
    background-color: var(--theme--background);
    color: var(--theme--text);
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */

html { -webkit-text-size-adjust: 100%; font-family: sans-serif; }
body { margin: 0; background-color: var(--theme--background); color: var(--theme--text); font-family: var(--font--secondary-family); -webkit-font-smoothing: antialiased; }
*, *:before, *:after { box-sizing: border-box; }
img { max-width: 100%; display: inline-block; vertical-align: middle; border: 0; }
a { text-decoration: none; color: inherit; background-color: transparent; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; font-weight: inherit; font-size: inherit; }
button, input, select, textarea { color: inherit; font: inherit; margin: 0; }
svg { display: block; } 
figure { margin: 0; }

/* =========================================
   3. UTILITY CLASSES
   ========================================= */

.nav-css-u-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: var(--padding-vertical--main) var(--padding-horizontal--main);
    max-width: var(--max-width--main);
    position: relative;
}

.nav-css-u-grid-custom {
    display: grid;
    grid-template-columns: var(--grid-main);
    grid-column-gap: var(--grid-gap--main);
    grid-row-gap: var(--grid-gap--main);
}

.nav-css-u-grid-subgrid {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: auto / span 1;
}

/* Flex Utilities */
.nav-css-u-vflex-center-center { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.nav-css-u-vflex-left-top { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; }
.nav-css-u-vflex-left-between { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.nav-css-u-vflex-right-between { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.nav-css-u-hflex-left-top { display: flex; flex-direction: row; justify-content: flex-start; align-items: flex-start; }
.nav-css-u-hflex-center-center { display: flex; flex-direction: row; justify-content: center; align-items: center; }
.nav-css-u-hflex-left-center { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; }

/* Positioning & Visuals */
.nav-css-u-cover-absolute { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.nav-css-u-overflow-clip { overflow: clip; }
.nav-css-u-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.nav-css-u-text-transform-uppercase { text-transform: uppercase; }
.nav-css-u-gap-large { gap: 4rem; }
.nav-css-u-gap-medium { gap: 2rem; }
.nav-css-u-gap-small { gap: 1rem; }
.nav-css-u-gap-xsmall { gap: 0.5rem; }
.nav-css-u-gap-main { gap: 1rem; }

/* Lines */
.nav-css-line_wrapper { width: 100%; height: 1px; }
.nav-css-line_wrapper.nav-css-is-abs { position: absolute; bottom: 0; left: 0; z-index: 2; }
.nav-css-line { background-color: var(--theme--border); width: 100%; height: 100%; }

/* Headings */
.nav-css-g_heading {
    font-family: var(--font--primary-family);
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 400;
    text-transform: uppercase;
}

/* Buttons */
.nav-css-btn_main_wrap {
    padding: 0.5rem 1.5rem;
    border-radius: 100vw;
    background-color: var(--swatch--brand);
    color: var(--swatch--light);
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
}

.nav-css-btn_main_text {
    font-family: var(--font--primary-family);
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
}

.nav-css-btn_whipe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--swatch--dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.nav-css-btn_main_wrap:hover .nav-css-btn_whipe {
    transform: scaleX(1);
}

/* =========================================
   4. NAVIGATION
   ========================================= */

.nav-css-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 999;
    color: var(--theme--text);
    mix-blend-mode: difference; 
    background-color: transparent;
    
    display: flex;

    /* backdrop-filter: blur(2px); */
    /* -webkit-backdrop-filter: blur(2px); */
    
    /* 3. help Safari handle the stacking context better */
    isolation: isolate;
}

.nav-css-nav_container.nav-css-u-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-css-nav_logo_wrap { width: 4rem; }
.nav-css-nav_logo_svg { width: 100%; fill: currentColor; }
.nav-css-nav_links_wrap { display: flex; gap: 2.5rem; }

.nav-css-nav_link_item {
    font-family: var(--font--secondary-family);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: currentColor;
    transition: opacity 0.3s ease;
}
.nav-css-nav_link_item:hover { opacity: 0.6; }

#node-nav {
    align-self: center
}
/* =========================================
   HAMBURGER & MOBILE MENU STYLES
   ========================================= */

/* 1. Hamburger Button (Hidden on Desktop) */
.nav-toggle-btn {
    display: none; /* Default hidden */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 3rem;
    height: 3rem;
    z-index: 1002; /* Above everything */
    position: relative;
    color: currentColor;
    grid-column: 12; /* Places it far right in your grid */
}

.hamburger-box {
    display: block;
    width: 2rem;
    height: 1rem;
    position: relative;
    margin: 0 auto;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hamburger-line.line-top { top: 0; }
.hamburger-line.line-btm { bottom: 0; }

/* Hamburger Active State (Turns into X) */
.nav-toggle-btn.is-active .line-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.nav-toggle-btn.is-active .line-btm {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


body:has(.nav-mobile-menu.is-active) .nav-css-nav {
    z-index: 1001; 
    background-color: var(--swatch--dark);
    mix-blend-mode: normal; 
    color: var(--swatch--light);    
    border-bottom: 1px solid rgba(251, 240, 218, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--swatch--dark);
    color: var(--swatch--light);
    z-index: 1000; /* Behind logo/button (1001+) but above page */
    padding-top: 6rem; /* Space for header */
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    
    /* Animation State: Hidden */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Mobile Menu Active State */
.nav-mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-mobile-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--padding-horizontal--main);
}

.nav-mobile-links-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.nav-mobile-link {
    font-family: var(--font--primary-family);
    font-size: 3rem; /* Big text for mobile */
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--swatch--light);
    opacity: 0; /* Hidden for stagger animation */
    transform: translateY(20px);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Stagger Animation Delay for links when active */
.nav-mobile-menu.is-active .nav-mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.nav-mobile-menu.is-active .nav-mobile-link:nth-child(1) { transition-delay: 0.1s; }
.nav-mobile-menu.is-active .nav-mobile-link:nth-child(2) { transition-delay: 0.2s; }
.nav-mobile-menu.is-active .nav-mobile-link:nth-child(3) { transition-delay: 0.3s; }
.nav-mobile-menu.is-active .nav-mobile-link:nth-child(4) { transition-delay: 0.4s; }

.nav-mobile-footer {
    border-top: 1px solid rgba(251, 240, 218, 0.2);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font--secondary-family);
    font-size: 0.875rem;
    text-transform: uppercase;
}


/* =========================================
   MEDIA QUERY: TABLET & MOBILE (< 991px)
   ========================================= */
@media screen and (max-width: 991px) {
    /* Hide Desktop Links */
    .nav-css-nav_links_wrap {
        display: none !important;
    }

    /* Show Hamburger Button */
    .nav-toggle-btn {
        display: block;
        grid-column: auto; /* Reset grid placement if needed */
    }
    
    /* Adjust container to push button to right */
    .nav-css-nav_container.nav-css-u-grid-custom {
        display: flex;
        justify-content: space-between;
    }

  
}

/* =========================================
   MOBILE CONTROLS (Pill + Hamburger)
   ========================================= */
.nav-mobile-controls {
    display: none; /* Hidden on Desktop */
    grid-column: 12;
    align-items: center;
    gap: 1rem;
}

/* The Pill Button Trigger */
.hero-popup-trigger {
    background-color: var(--swatch--brand);
    color: var(--swatch--light);
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-family: var(--font--secondary-family);
    font-size: 0.75rem; /* Small & tasteful */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 1003; /* Higher than hamburger */
}

.hero-popup-trigger:active {
    transform: scale(0.95);
}

@media screen and (max-width: 991px) {
    .nav-mobile-controls {
        display: flex; /* Show on mobile */
    }
    
    /* Ensure the hamburger button sits properly in flex container */
    .nav-toggle-btn {
        grid-column: auto; 
        width: 2.5rem; /* Slight adjustment */
    }
}

/* =========================================
   5. FOOTER LAYOUT
   ========================================= */
.site-footer {
  color: var(--color-text);
  font-family: var(--font-sans);
  padding: var(--space-xl) var(--space-lg) var(--space-md);
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

/* Main Grid: Nav (Left) + Content (Right) */
.footer-main {
  display: grid;
  grid-template-columns: 5fr 5fr; /* 40% Left, 60% Right */
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* Navigation (Left Column) */
.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  font-family: var(--font-serif);
  text-transform: uppercase;
  position: relative;
}

.nav-num {
  font-size: 1rem;
  width: 2ch;
}

.nav-link {
  font-size: 4.5rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
  line-height: 1.1; 
  display: block; 
}

.nav-link:hover {
  opacity: 0.7;
}

/* Info Content (Right Column) */
.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-graphic svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--color-text);
}

.footer-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  font-style: normal;
}

.detail-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start; 
}

.detail-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-family: var(--font-serif);
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.detail-link, 
.detail-text {
  color: var(--color-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: color 0.3s;
}

.detail-link:hover {
  color: var(--color-text);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Footer Bottom */
.footer-divider {
  border: none; 
  border-top: 1px solid var(--color-border); 
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  opacity: 0.3;
  width: 100vw; 
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.legal-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  text-align: right;
}

.legal-links a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

.legal-links a:hover {
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  font-size: 0.75rem;
  text-transform: uppercase;
  line-height: 1.4;
  padding-bottom: var(--space-md);
}

/* --- FOOTER LAPTOP FIXES (Max Width 1700px) --- */
@media screen and (max-width: 1700px) {
    
    /* 1. Reduce Spacing Variables */
    /* Scoping these to the footer ensures we don't break layout elsewhere */
    .site-footer {
        --space-xl: 4rem;      /* Reduced from 8rem */
        --space-lg: 2.5rem;    /* Reduced from 4rem */
        --space-md: 1.5rem;    /* Reduced from 3rem */
        padding-top: var(--space-xl);
        padding-bottom: var(--space-md);
    }

    /* 2. Shrink Main Navigation Links */
    .nav-link {
        font-size: 2.5rem;  
    }

    /* 3. Adjust Footer Grid columns */
    /* Keep the split but ensure gap isn't huge */
    .footer-main {
        gap: 3rem;             /* Manually tighten the gap between Nav and Info */
    }

    /* 4. Scale Down Right Column Text */
    .detail-label {
        font-size: 0.9rem;     /* Slightly smaller labels */
    }
    
    .detail-link, 
    .detail-text {
        font-size: 0.8rem;
    }

    /* 5. Tame the decorative SVG */
    .footer-graphic svg {
        max-width: 80%;        /* Stops the logo/graphic from being overwhelming */
    }
}

/* =========================================
   6. RESPONSIVE QUERIES
   ========================================= */

/* Tablet (Landscape) & Mobile */
@media screen and (max-width: 1024px) {
    /* Footer Adjustments */
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .site-footer {
        padding: var(--space-md);
    }
    .footer-details {
        gap: var(--space-md);
    }
}

@media screen and (max-width: 991px) {
    /* Nav Adjustments */
    :root { --column-count: 6; }
    .nav-css-nav_links_wrap { display: none; }
}

/* Mobile Portrait */
@media screen and (max-width: 768px) {
    :root { 
        --padding-horizontal--main: 1rem; 
        --space-xl: 4rem;
        --space-lg: 2rem;
    }

    /* Footer Mobile */
    .footer-details {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
    .legal-links {
        grid-template-columns: 1fr;
        text-align: left;
        gap: var(--space-xs);
    }
    .nav-link {
        font-size: 1.5rem;
    }
}

/* =========================================
   LOADER STYLES
   ========================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.loader_panel {
  background-color: var(--swatch--light);
  width: 50%;
  height: 100%;
  position: relative;
}

.loader_logo {
  position: absolute;
  z-index: 3;
  color: var(--swatch--dark);
  width: 7vw;
}

.panel_inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.u-hflex-left-stretch {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
}

.u-hflex-right-stretch {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: stretch;
}

.line.is-panel-inner-l,
.line.is-pannel-inner-r {
  position: absolute;
  width: 1px;
  height: 100%;
  background-color: var(--theme--border);
}

.line.is-panel-l,
.line.is-panel-r {
  width: 1px;
  height: 100%;
  background-color: var(--theme--border);
}

/* nav-footer.css */

/* Special styling for the Contact Button in the Navbar */
.nav-css-nav_link_item.is-contact-btn {
    background-color: var(--swatch--brand); /* Gold #C1AE7C */
    color: var(--swatch--light) !important; /* Beige #F3EFE2 */
    padding: 0.7rem 1.6rem;
    border-radius: 100vw;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-left: 1rem;
    
    /* Crucial: Your nav has 'mix-blend-mode: difference'. 
       We set this to 'normal' so the gold color stays gold 
       and doesn't invert against the background images.
    */
    mix-blend-mode: normal; 
}

/* Hover State */
.nav-css-nav_link_item.is-contact-btn:hover {
    background-color: var(--swatch--dark); /* Dark Brown #1e1005 */
    color: var(--swatch--light) !important;
    transform: translateY(-2px);
    opacity: 1; /* Override the 0.6 opacity from base link hover */
}

/* Mobile Tweak: Ensure it looks normal in the hamburger menu */
@media screen and (max-width: 991px) {
    .nav-mobile-links-list .nav-css-nav_link_item.is-contact-btn {
        background-color: transparent;
        padding: 0;
        margin-left: 0;
        color: inherit !important;
        font-size: 3rem; /* Matches mobile link size */
    }
}

/* =========================================
   DESKTOP SLIDE-IN PANEL (Global)
   ========================================= */

.desktop-slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 55vw;
    height: 100vh;
    background-color: var(--swatch--light); /* Beige Background */
    color: var(--swatch--dark);
    z-index: 9999;
    padding: 4rem 5rem;
    overflow-y: auto;

    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);

    /* Variables override to ensure input lines are visible */
    --theme--border: rgba(30, 16, 5, 0.2);
    --theme--text: #835834;
}

.desktop-slide-panel.is-open {
    transform: translateX(0%);
}

.desktop-slide-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(4px);
}

.desktop-slide-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Prevent scrolling on body when panel is open */
body:has(.desktop-slide-panel.is-open) {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* Close Button */
.desktop-close-btn {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: transparent;
    border: none;
    color: var(--swatch--dark);
    text-transform: uppercase;
    font-family: var(--font--secondary-family);
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    z-index: 10;
}

/* Panel Header Styling (Start Your Journey) */
.panel-header-wrap {
    margin-bottom: 3rem;
    padding-right: 2rem;
    color: var(--swatch--dark);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hide header when cal.com step is active */
.desktop-slide-panel:has(.msf-step.active-step #my-cal-inline-desktop) .panel-header-wrap {
    display: none;
}

.desktop-slide-panel .g_heading {
    font-family: var(--font--primary-family);
    font-size: 5rem;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--swatch--dark);
}

.desktop-slide-panel .g_paragraph_wrap h2 {
    font-family: var(--font--secondary-family);
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 400;
    max-width: 30ch;
    margin: 0;
    opacity: 0.8;
    color: var(--swatch--dark);
}

/* Form Layout Fixes */
.desktop-form-inner .form_field_wrap {
    width: 100%;
}

/* Responsive adjustment for laptop screens */
@media screen and (max-width: 1400px) {
    .desktop-slide-panel .g_heading {
        font-size: 4rem;
    }
}

/* Hide on Mobile */
@media screen and (max-width: 991px) {
    .desktop-slide-panel,
    .desktop-slide-overlay {
        display: none !important;
    }
}

/* =========================================
   SCOPED CONTACT FORM STYLES
   (Applies only inside .desktop-slide-panel)
   ========================================= */

/* 1. Form Grids & Layout */
.desktop-slide-panel .form_group {
    margin-bottom: 2.5rem;
}

.desktop-slide-panel .form_grid_2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.desktop-slide-panel .form_grid_1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.desktop-slide-panel .form_field_wrap {
    width: 100%;
    position: relative;
}

/* 2. Typography & Labels */
.desktop-slide-panel .form_group_title {
    font-size: 0.85rem;
    font-family: var(--font--secondary-family);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1.5rem;
    color: var(--swatch--dark);
    opacity: 0.6;
}

.desktop-slide-panel .form_label {
    display: block;
    font-family: var(--font--secondary-family);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--swatch--dark);
}

/* 3. Inputs (Underline Style) */
.desktop-slide-panel .form_input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(131, 88, 52, 0.3);
    color: var(--swatch--dark);
    padding: 0.5rem 0 1rem 0;
    font-family: var(--font--secondary-family);
    font-size: 1.5rem;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.desktop-slide-panel .form_input:focus {
    border-bottom-color: var(--swatch--dark);
}

.desktop-slide-panel .form_input::placeholder {
    color: var(--swatch--dark);
    opacity: 0.4;
}

.desktop-slide-panel .form_input.is-textarea {
    min-height: 80px;
    resize: vertical;
}

/* 4. Radio Buttons */
.desktop-slide-panel .form_radio_group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.desktop-slide-panel .form_radio_field {
    display: inline-block;
    cursor: pointer;
    position: relative;
    margin-bottom: 0;
}

.desktop-slide-panel .w-radio-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

.desktop-slide-panel .form_radio_label {
    display: inline-block;
    padding: 0.5rem 0;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    color: rgba(131, 88, 52, 0.5);
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.desktop-slide-panel .form_radio_field:hover .form_radio_label {
    color: var(--swatch--dark);
}

.desktop-slide-panel .form_radio_field input:checked + .form_radio_label {
    color: var(--swatch--dark);
    font-weight: 500;
    border-bottom: 1px solid var(--swatch--dark);
}

/* 5. Buttons (Brown Pill Style) */
.desktop-slide-panel .msf-nav-buttons {
    margin-top: 4rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.desktop-slide-panel .btn_main_wrap {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background-color: #9c7443;
    border: 1px solid #9c7443;
}

.desktop-slide-panel .btn_main_text {
    color: #ffffff;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.desktop-slide-panel .btn_main_wrap.is-secondary {
    background-color: transparent;
    border: 1px solid var(--swatch--dark);
}

.desktop-slide-panel .btn_main_wrap.is-secondary .btn_main_text {
    color: var(--swatch--dark);
}

.desktop-slide-panel .btn_main_wrap.is-secondary:hover {
    background-color: var(--swatch--dark);
}

.desktop-slide-panel .btn_main_wrap.is-secondary:hover .btn_main_text {
    color: #ffffff;
}

.desktop-slide-panel .btn_submit_input_real {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    width: 100%;
    height: 100%;
}

/* =========================================
   MULTI-STEP FORM LOGIC (Essential)
   ========================================= */

/* By default, hide all steps */
.msf-step {
    display: none;
}

/* Only show the step that has the 'active-step' class */
.msf-step.active-step {
    display: block;
    animation: fadeIn 0.5s ease-out;
    width: 100%;
}

/* Animation for smoother step transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar Styling */
.msf-progress {
    width: 100%;
    height: 2px;
    background-color: rgba(30, 16, 5, 0.1);
    margin-bottom: 2rem;
}

.msf-progress-bar {
    height: 100%;
    background-color: var(--swatch--brand); /* Gold Color */
    width: 0%;
    transition: width 0.4s ease;
}

/* Thank You Message Logic */
.msf-thank-you {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.msf-thank-you:not(.hidden) {
    display: block !important;
    animation: fadeIn 0.5s ease-out;
}

#my-cal-inline-desktop {
    width: 100%;
    height: 550px;     /* Adjust this value to control how tall the box is */
    overflow-y: auto;  /* Forces the scrollbar when content overflows */
    
    /* Optional: Makes the scrollbar look cleaner on some browsers */
    scrollbar-width: thin; 
    border-radius: 8px;
}