/* Shared site header + mobile drawer, matching index.html (extracted from style.css).
   Variables are scoped so they don't clash with page styles. */
.site-header, .mobile-drawer {
  /* Color — OKLCH for perceptual consistency */
  --ink-0:   oklch(0.08 0.012 250);   /* near-black with blue undertone */
  --ink-1:   oklch(0.12 0.016 250);   /* page bg */
  --ink-2:   oklch(0.16 0.020 250);   /* card surface */
  --ink-3:   oklch(0.22 0.024 250);   /* elevated surface / border */
  --ink-4:   oklch(0.32 0.028 250);   /* divider strong */

  --bone:    oklch(0.96 0.012 85);    /* warm white text */
  --bone-2:  oklch(0.82 0.014 85);    /* secondary text */
  --bone-3:  oklch(0.62 0.012 85);    /* muted text */

  --gold:    oklch(0.78 0.13 78);     /* champagne gold accent */
  --gold-2:  oklch(0.88 0.10 82);     /* highlight gold */
  --gold-3:  oklch(0.62 0.13 70);     /* deep gold (hover) */

  --indigo:  oklch(0.42 0.18 270);    /* Troca brand indigo from logo */

  /* Layout */
  --max:     1280px;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --radius:  6px;
  --radius-lg: 14px;

  /* Type scale (fluid) */
  --text-xs:    clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm:    clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base:  clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg:    clamp(1.125rem, 1.08rem + 0.25vw, 1.25rem);
  --text-xl:    clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-2xl:   clamp(2rem, 1.7rem + 1.6vw, 3rem);
  --text-3xl:   clamp(2.75rem, 2.2rem + 2.8vw, 4.5rem);
  --text-hero:  clamp(3.25rem, 2.4rem + 4.2vw, 6.25rem);

  /* Spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px; --s-32: 128px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);

  /* Easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--bone);
  font-feature-settings: "ss01", "cv02", "cv11";
  -webkit-font-smoothing: antialiased;
}
:where(.site-header, .mobile-drawer) :where(*) { box-sizing: border-box; margin: 0; padding: 0; }
:where(.site-header, .mobile-drawer) :where(a) { color: inherit; text-decoration: none; }
:where(.site-header, .mobile-drawer) :where(ul) { list-style: none; }
:where(.site-header) :where(img) { display: block; }
:where(.site-header) :where(button) { font: inherit; color: inherit; background: none; cursor: pointer; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: var(--s-5) var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 400ms var(--ease), backdrop-filter 400ms var(--ease), padding 400ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: oklch(0.08 0.012 250 / 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding-top: var(--s-3); padding-bottom: var(--s-3);
  border-bottom-color: oklch(1 0 0 / 0.06);
}
.brand { display: flex; align-items: center; gap: var(--s-3); color: var(--bone); }
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 500; letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.foot-brand .brand-logo { height: 32px; max-width: 240px; margin-bottom: var(--s-5); }
@media (max-width: 480px) {
  .brand-name { font-size: 1.2rem; letter-spacing: 0.04em; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-logo { height: 22px; max-width: 170px; }
}
.nav { display: flex; align-items: center; gap: var(--s-8); }
.nav-links { display: flex; gap: var(--s-8); }
.nav a { font-size: var(--text-sm); color: var(--bone-2); transition: color 200ms; }
.nav a:hover { color: var(--gold); }
/* Active page indicator: brighter gold + medium weight */
.nav a[aria-current="page"] {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.01em;
}
/* Header CTA: dark text on gold for contrast (overrides .nav a above) */
.nav a.btn-primary { color: var(--ink-0); }
.nav a.btn-primary:hover { color: var(--ink-0); }
.nav a.btn-primary[aria-current="page"] { color: var(--ink-0); font-weight: 600; }
/* ---- Mobile menu (hamburger + drawer) ---- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(231, 222, 207, 0.25);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  z-index: 100;
  transition: border-color 200ms, background 200ms;
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav a.header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 420px) {
  .header-cta .arrow { display: none; }
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bone-2);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease, background 200ms;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--gold);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--gold);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 88px 24px 32px;
  background: rgba(10, 12, 16, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 222, 207, 0.12);
  transform: translateY(-100%);
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
  max-height: 100vh;
  overflow-y: auto;
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-drawer-links li { display: block; }
.mobile-drawer-links a {
  display: block;
  padding: 14px 8px;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--bone-2);
  border-bottom: 1px solid rgba(231, 222, 207, 0.08);
  transition: color 200ms;
}
.mobile-drawer-links a:hover { color: var(--gold); }
.mobile-drawer-links a.btn-primary {
  margin-top: var(--s-3);
  text-align: center;
  border-bottom: none;
  color: var(--ink-0);
}
body.menu-open { overflow: hidden; }
:where(.site-header, .mobile-drawer) .btn {
  font-family: inherit; text-transform: none; border: 0; text-align: center; line-height: 1.5;
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 14px 26px;
  font-size: var(--text-sm); font-weight: 500;
  border-radius: 999px;
  transition: transform 250ms var(--ease), background 250ms var(--ease), color 250ms var(--ease), box-shadow 250ms var(--ease);
  letter-spacing: 0.02em; white-space: nowrap;
}
:where(.site-header, .mobile-drawer) .btn-primary {
  background: var(--gold);
  color: var(--ink-0);
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.05), 0 8px 28px oklch(0.78 0.13 78 / 0.18);
}
:where(.site-header, .mobile-drawer) .btn-primary:hover { background: var(--gold-2); transform: translateY(-1px); box-shadow: 0 12px 36px oklch(0.78 0.13 78 / 0.28); }
:where(.site-header, .mobile-drawer) .btn-ghost {
  background: transparent; color: var(--bone);
  border: 1px solid oklch(1 0 0 / 0.22);
}
:where(.site-header, .mobile-drawer) .btn-ghost:hover { background: oklch(1 0 0 / 0.06); border-color: var(--gold); color: var(--gold); }
:where(.site-header, .mobile-drawer) .btn-sm { padding: 10px 18px; font-size: var(--text-xs); }
:where(.site-header, .mobile-drawer) .btn .arrow { display: inline-block; transition: transform 250ms var(--ease); }
:where(.site-header, .mobile-drawer) .btn:hover .arrow { transform: translateX(3px); }
