/* HEADER */
.header{
  position:fixed;
  top:0;left:0;right:0;
  height:var(--header-h-mobile);
  background:color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid transparent;
  z-index:var(--z-header);
  transition:border-color .25s, box-shadow .25s, background .25s;
}
.header.is-scrolled{
  border-bottom-color:var(--border);
  background:color-mix(in srgb, var(--bg) 96%, transparent);
  box-shadow:var(--shadow-soft);
}
.header__inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 20px;
  max-width:var(--container);
  margin:0 auto;
}
@media (min-width:768px){
  .header{height:var(--header-h);}
  .header__inner{padding:0 32px;}
}

/* BRAND */
.brand{display:inline-flex;align-items:center;gap:12px;color:var(--text);text-decoration:none;}
.brand-mark{
  width:40px;height:40px;
  display:grid;place-items:center;
  color:var(--accent);
  background:color-mix(in srgb, var(--accent) 12%, var(--bg));
  border-radius:10px;
  flex-shrink:0;
}
.brand-mark svg{width:24px;height:24px;display:block;}
.brand-text{display:flex;flex-direction:column;line-height:1;gap:2px;}
.brand-name{font-family:var(--ff-display);font-weight:600;font-size:1.22rem;letter-spacing:-0.01em;color:var(--text);}
.brand-tag{font-family:var(--ff-ui);font-size:0.66rem;text-transform:uppercase;letter-spacing:0.16em;color:var(--text-mute);font-weight:600;}

/* NAV desktop */
.nav-desktop{display:none;}
@media (min-width:1024px){
  .nav-desktop{
    display:flex;
    align-items:center;
    gap:28px;
  }
  .nav-desktop a{
    font-family:var(--ff-ui);
    font-size:0.96rem;
    color:var(--text);
    font-weight:500;
    position:relative;
    padding:6px 0;
  }
  .nav-desktop a::after{
    content:"";position:absolute;left:0;right:0;bottom:0;
    height:1px;background:var(--accent);
    transform:scaleX(0);
    transition:transform .25s;
    transform-origin:left;
  }
  .nav-desktop a:hover::after{transform:scaleX(1);}
}

/* HEADER CTA (desktop only) */
.header .header__cta{display:none !important;}
@media (min-width:1024px){
  .header .header__cta{
    display:inline-flex !important;
    align-items:center;gap:8px;
    padding:10px 18px;
    background:var(--accent);color:#fff;
    border-radius:999px;
    font-family:var(--ff-ui);font-size:0.92rem;font-weight:600;
  }
  .header .header__cta:hover{background:var(--accent-2);}
}

/* BURGER (fixed top-right, child of body) */
.burger{
  position:fixed;
  top:calc((var(--header-h-mobile) - 44px) / 2);
  right:14px;
  width:44px;height:44px;
  display:grid;place-items:center;
  background:transparent;border:0;cursor:pointer;
  z-index:1300;
}
.burger span{
  position:relative;display:block;
  width:22px;height:2px;background:var(--text);
  transition:background .2s, transform .25s;
}
.burger span::before,.burger span::after{
  content:"";position:absolute;left:0;width:22px;height:2px;background:var(--text);
  transition:transform .25s, top .25s;
}
.burger span::before{top:-7px;}
.burger span::after{top:7px;}
.burger.is-open span{background:transparent;}
.burger.is-open span::before{top:0;transform:rotate(45deg);}
.burger.is-open span::after{top:0;transform:rotate(-45deg);}
@media (min-width:1024px){.burger{display:none;}}

/* MENU MOBILE (direct child of body) */
.menu-mobile{
  position:fixed;
  top:0;left:0;
  width:100%;
  height:100dvh;
  background:var(--bg);
  z-index:1100;
  padding:calc(var(--header-h-mobile) + 24px) 24px 40px;
  display:flex;
  flex-direction:column;
  gap:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  transform:translateY(-100%);
  opacity:0;
  visibility:hidden;
  transition:transform .35s ease, opacity .35s ease, visibility 0s linear .35s;
}
.menu-mobile.is-open{
  transform:translateY(0);
  opacity:1;
  visibility:visible;
  transition:transform .35s ease, opacity .35s ease;
}
.menu-mobile > a:not(.btn){
  display:block;
  padding:18px 0;
  font-family:var(--ff-display);
  font-size:1.5rem;
  color:var(--text);
  border-bottom:1px solid var(--border);
}
.menu-mobile > a:not(.btn):last-of-type{border-bottom:0;}
.menu-cta{
  display:flex;flex-direction:column;gap:12px;
  margin-top:22px;
}
.menu-meta{
  margin-top:28px;
  padding-top:20px;
  border-top:1px solid var(--border);
  font-family:var(--ff-ui);
  font-size:0.88rem;
  color:var(--text-2);
  line-height:1.65;
}
.menu-meta strong{display:block;color:var(--text);font-weight:600;margin-bottom:4px;}
@media (min-width:1024px){
  .burger{display:none;}
  .menu-mobile{display:none;}
}

/* FOOTER */
.footer{
  background:var(--primary);
  color:#E8DDD2;
  padding:64px 0 32px;
  margin-top:0;
}
.footer__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:36px;
}
@media (min-width:768px){
  .footer__grid{grid-template-columns:1.4fr 1fr 1fr 1fr;gap:48px;}
}
.footer h4{
  font-family:var(--ff-display);
  color:#fff;
  font-size:1.1rem;
  margin-bottom:14px;
  letter-spacing:0.01em;
}
.footer p,.footer li,.footer a{color:#D6C7B8;font-size:0.92rem;line-height:1.7;}
.footer a:hover{color:#fff;}
.footer__brand .brand-name{color:#fff;}
.footer__brand .brand-tag{color:#C4B19E;}
.footer__brand .brand-mark{
  color:var(--accent-2);
  background:color-mix(in srgb, #fff 8%, transparent);
}
.footer__brand-desc{margin-top:14px;font-size:0.92rem;max-width:32ch;}
.footer__bottom{
  margin-top:40px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,0.10);
  display:flex;
  flex-direction:column;
  gap:12px;
  font-size:0.84rem;
  color:#A89684;
}
.footer__bottom a{color:#D6C7B8;}
.footer__bottom a:hover{color:#fff;text-decoration:underline;}
@media (min-width:768px){
  .footer__bottom{flex-direction:row;align-items:center;justify-content:space-between;}
}
.footer ul li{padding:4px 0;}

/* FAB mobile */
.fab{
  position:fixed;
  bottom:20px;right:16px;
  display:inline-flex;align-items:center;gap:10px;
  padding:14px 22px;
  background:var(--accent);
  color:#fff;
  border-radius:999px;
  font-family:var(--ff-ui);font-size:0.96rem;font-weight:600;
  box-shadow:0 10px 28px rgba(126,63,44,0.45);
  z-index:var(--z-fab);
  opacity:0;
  transform:translateY(16px);
  pointer-events:none;
  transition:opacity .3s, transform .3s;
}
.fab.is-visible{opacity:1;transform:translateY(0);pointer-events:auto;}
.fab svg{width:18px;height:18px;}
@media (min-width:1024px){.fab{display:none;}}
