/* Header & Nav */
/* Global overflow & scrollbar stability */
html{overflow-x:hidden}
body{overflow-x:hidden}
#site-header{
  position:sticky;
  top:0;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(0,0,0,.04);
  z-index:40;
  transition:background-color .25s ease,box-shadow .25s ease,backdrop-filter .25s ease,border-color .25s ease;
  backdrop-filter:saturate(140%) blur(14px)
}
#site-header.is-scrolled{background:rgba(255,255,255,.98);box-shadow:0 18px 34px rgba(15,15,15,.08);border-color:rgba(0,0,0,.08)}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px clamp(20px,3vw,36px)
}
.nav a.logo{display:flex;align-items:center;gap:12px;font-weight:600;color:var(--text);font-size:1.05rem;letter-spacing:.01em}
.nav a.logo span{font-family:"Playfair Display","Times New Roman",serif;font-weight:600;font-size:1.15rem;color:var(--brand-ink)}
.nav img{height:36px;width:auto}
.nav ul{display:flex;gap:18px;list-style:none;margin:0;padding:0;font-size:1rem}
.nav ul li{position:relative}
.nav ul li a{
  display:flex;
  align-items:center;
  padding:8px 0;
  color:var(--text);
  font-weight:500;
  letter-spacing:.01em;
  position:relative
}
.nav ul li a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:100%;
  height:2px;
  background:linear-gradient(135deg,var(--brand-rust),var(--brand-rust-deep));
  transform:scaleX(0);
  transform-origin:0 50%;
  transition:transform .25s ease;
  border-radius:999px
}
.nav ul li a:hover::after,.nav ul li a:focus-visible::after{transform:scaleX(1)}

/* Dropdown Styles */
.nav .dropdown-menu{
  position:absolute;
  top:100%;
  left:0;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:12px;
  box-shadow:0 18px 40px rgba(10,10,10,.12);
  min-width:240px;
  opacity:0;
  visibility:hidden;
  transform:translateY(-8px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
  z-index:50;
  list-style:none;
  margin:0;
  padding:12px 0;
  display:block
}
.nav .dropdown-menu > li{display:block;width:100%}
.nav .dropdown:hover .dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}
.nav .dropdown-menu li{margin:0}
.nav .dropdown-menu li a{padding:10px 18px;color:var(--text);display:flex;border-radius:0;transition:background-color .2s ease,color .2s ease}
.nav .dropdown-menu li a:hover{background-color:var(--brand-ivory);color:var(--brand-rust)}

/* Ensure dropdown stays visible when hovering over the menu */
.nav .dropdown-menu:hover{opacity:1;visibility:visible;transform:translateY(0)}

/* Add a small gap to prevent dropdown from closing when moving mouse */
.nav .dropdown-menu::before{content:'';position:absolute;top:-8px;left:0;right:0;height:8px}

.mobile-toggle{
  display:none;
  width:46px;
  height:46px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  font-size:1.4rem;
  line-height:1;
  cursor:pointer;
  transition:box-shadow .2s ease,transform .2s ease;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow-subtle)
}
.mobile-toggle:hover{transform:translateY(-1px);box-shadow:var(--shadow-soft)}

/* Footer */
#site-footer{
  background:radial-gradient(120% 120% at 50% 0%,#1d1916 0%,#0d0d0d 58%,#050505 100%);
  color:#f5f3ef;
  margin-top:0;
  position:relative;
  overflow:hidden
}
#site-footer::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(100% 90% at 50% 0%,rgba(255,255,255,.08) 0%,rgba(255,255,255,0) 70%);
  pointer-events:none;
  mix-blend-mode:screen;
  opacity:.7
}
#site-footer a{color:#f6f3ee}
.footer-cta{
  padding:clamp(56px,10vw,96px) clamp(20px,4vw,32px) clamp(28px,6vw,64px)
}
.footer-cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:clamp(24px,4vw,48px);
  background:linear-gradient(135deg,#fbf7f2,#ffffff 60%,#f1e8de 100%);
  color:#1a1815;
  border-radius:32px;
  padding:clamp(32px,5vw,56px);
  border:1px solid rgba(23,21,19,.08);
  box-shadow:0 22px 44px rgba(13,13,13,.12);
  position:relative;
  overflow:hidden
}
.footer-cta-inner::after{
  content:"";
  position:absolute;
  inset:-20% -10% auto;
  height:120%;
  background:radial-gradient(circle at 20% 20%,rgba(255,182,129,.35) 0%,rgba(255,182,129,0) 55%);
  pointer-events:none
}
.footer-cta-copy{
  flex:1 1 320px;
  max-width:540px;
  position:relative;
  z-index:1
}
.footer-cta-eyebrow{
  margin:0 0 10px;
  font-size:.9rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(23,21,19,.6)
}
.footer-cta-copy h2{
  color:#1f1b18;
  margin-bottom:12px
}
.footer-cta-text{
  margin:0;
  color:rgba(26,24,21,.72);
  font-size:1.05rem;
  max-width:48ch
}
.footer-cta-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
  position:relative;
  z-index:1
}
.footer-cta-actions .btn{
  width:100%;
  min-width:220px;
  max-width:280px;
  padding:15px 28px
}
.footer-main{
  position:relative;
  padding:clamp(42px,6vw,72px) 0 clamp(34px,5vw,62px);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter:blur(4px)
}
.footer-inner{
  display:grid;
  grid-template-columns:minmax(280px,1.3fr) 1fr;
  gap:clamp(28px,5vw,52px);
  padding:0 clamp(20px,4vw,32px);
  align-items:flex-start
}
.footer-brand{
  display:flex;
  flex-direction:column;
  gap:18px;
  position:relative
}
.footer-logo{
  max-width:190px;
  width:100%;
  height:auto;
  opacity:.8;
  filter:drop-shadow(0 16px 36px rgba(0,0,0,.4));
  transition:opacity .2s ease
}
.footer-logo:hover{opacity:1}
.footer-brand h3{
  font-size:1.5rem;
  color:#fff;
  margin:0 0 6px
}
.footer-brand .muted{color:rgba(245,243,239,.8);margin:0 0 12px}
.footer-meta{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-style:normal;
  color:rgba(245,243,239,.75);
  font-size:.98rem
}
.footer-contact{
  display:flex;
  flex-wrap:wrap;
  gap:10px
}
.contact-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid rgba(245,243,239,.28);
  background:rgba(245,243,239,.06);
  color:#f6f3ee;
  font-weight:600;
  font-size:.98rem;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
  box-shadow:0 10px 24px rgba(0,0,0,.12)
}
.contact-chip:hover{
  background:rgba(245,243,239,.12);
  border-color:rgba(245,243,239,.45);
  color:#fff
}
.footer-badges{
  list-style:none;
  margin:6px 0 0;
  padding:0;
  display:flex;
  flex-wrap:nowrap;
  gap:12px;
  color:rgba(245,243,239,.7);
  font-size:.95rem
}
.footer-badges li{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 14px 26px rgba(0,0,0,.12)
}
.footer-badges li::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--brand-rust),var(--brand-rust-deep));
  box-shadow:0 0 10px rgba(184,90,42,.45)
}
.footer-nav{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(20px,3vw,32px)
}
.footer-nav-group h3{
  font-size:1.2rem;
  color:#fff;
  margin-bottom:12px
}
.footer-nav-group ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px
}
.footer-nav-group a{
  color:rgba(246,243,238,.8);
  font-size:.97rem;
  font-weight:500;
  letter-spacing:.01em;
  transition:color .2s ease,transform .2s ease
}
.footer-nav-group a:hover{
  color:#fff;
  transform:translateX(4px)
}
.footer-legal{
  padding:18px 0 28px
}
.footer-legal-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 clamp(20px,4vw,32px);
  font-size:.92rem;
  color:rgba(246,243,238,.65)
}
.footer-legal-inner span:last-child{font-style:italic;letter-spacing:.04em}

/* Footer CTA */
.footer-cta-inner p{margin:0;color:rgba(23,21,19,.7);max-width:48ch}

@media (min-width:900px){
  .footer-cta-actions{
    flex-direction:row;
    align-items:center
  }
  .footer-cta-actions .btn{
    width:auto;
    min-width:0;
    max-width:none
  }
}

/* Inline trust badges */
.trust-inline{display:flex;flex-wrap:wrap;gap:8px 12px;list-style:none;margin:10px 0 0;padding:0}
.trust-inline li{border:1px solid var(--brand-stone);border-radius:999px;padding:6px 10px;background:#fff;color:#333}

.cta-sticky{
  position:fixed;
  right:18px;
  bottom:22px;
  box-shadow:0 20px 40px rgba(0,0,0,.18);
  padding:14px 26px;
  z-index:45
}

@media (max-width:800px){
  .nav{padding:12px clamp(18px,4vw,28px)}
  .nav ul{
    display:none;
    flex-direction:column;
    position:absolute;
    top:100%;
    left:20px;
    right:20px;
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    box-shadow:0 18px 32px rgba(0,0,0,.14);
    z-index:50;
    padding:22px 20px;
    border-radius:18px;
    gap:12px
  }
  .nav ul.show{display:flex}
  .nav ul li a{padding:6px 0}
  .mobile-toggle{display:inline-flex}
  .nav .dropdown-menu{
    position:static;
    opacity:1;
    visibility:visible;
    transform:none;
    box-shadow:none;
    border:none;
    border-top:1px solid rgba(0,0,0,.06);
    border-radius:0;
    margin:12px 0 6px;
    padding:10px 0
  }
  .nav .dropdown-menu li a{padding:8px 12px;font-size:.95rem}
  .footer-cta-inner{flex-direction:column;align-items:flex-start}
  .footer-cta-copy{width:100%}
  .footer-cta-actions{width:100%}
  .footer-cta-actions .btn{max-width:none}
  .footer-inner{
    grid-template-columns:1fr;
    gap:38px;
    text-align:left
  }
  .footer-nav{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:28px
  }
  .footer-nav-group a:hover{transform:none}
  .footer-legal-inner{
    flex-direction:column;
    align-items:flex-start;
    font-size:.9rem
  }
}

@media (max-width:580px){
  .footer-cta{
    padding:clamp(42px,14vw,68px) clamp(16px,6vw,28px)
  }
  .footer-cta-inner{
    border-radius:28px;
    padding:clamp(28px,10vw,42px)
  }
  .footer-cta-copy{text-align:center}
  .footer-cta-actions{align-items:center}
  .footer-cta-actions .btn{min-width:0}
  .footer-inner{
    text-align:center
  }
  .footer-contact{justify-content:center}
  .footer-badges{justify-content:center}
  .footer-nav{justify-items:center}
  .footer-nav-group h3{margin-left:auto;margin-right:auto}
  .footer-legal{
    padding:12px 0 24px
  }
  .footer-legal-inner{
    padding:0 clamp(16px,6vw,24px)
  }
}
