/* ============================================================
   Salon Catherine — Foundation (tokens · base · fonts · nav · footer)
   Cinematic-Luxe · Near-Black + Gold/Champagne + Plum + Cream
   ============================================================ */

/* ---------- Self-hosted fonts (Zero-Tracking, no Google CDN) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

:root {
  /* Brand palette — Black + Gold Luxe */
  --c-ink:        #14101a;   /* near-black, violet-leaning */
  --c-ink-2:      #1c1622;   /* slightly lifted surface */
  --c-plum:       #3a2533;   /* deep aubergine / secondary surface */
  --c-plum-soft:  #4a3142;
  --c-gold:       #c8a96a;   /* champagne / gold accent */
  --c-gold-bright:#e0c690;
  --c-gold-deep:  #a98c4f;
  --c-cream:      #f7f2ec;   /* light surface */
  --c-cream-2:    #efe7dc;
  --c-cream-mute: #d8cdbf;   /* muted cream text on dark */

  /* text */
  --c-on-dark:        #ede6dd;
  --c-on-dark-mute:   #b7ab9c;
  --c-on-dark-faint:  #8a7f72;
  --c-on-light:       #2a2230;
  --c-on-light-mute:  #6a5f6a;

  /* fonts */
  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* type scale */
  --size-h1: clamp(2.6rem, 6vw, 5rem);
  --size-h2: clamp(2rem, 4.4vw, 3.6rem);
  --size-h3: clamp(1.4rem, 2.4vw, 2.1rem);

  /* spacing */
  --gap-xs: 0.5rem;
  --gap-sm: 0.85rem;
  --gap-md: 1.4rem;
  --gap-lg: 2.2rem;
  --gap-xl: 3.6rem;
  --gap-2xl: 6rem;

  --shell: 1240px;
  --shell-tight: 880px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-on-light);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
p { max-width: 68ch; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3.5rem); }
.shell-tight { max-width: var(--shell-tight); margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 2rem); }
section { padding: clamp(3.5rem, 9vw, 7rem) 0; position: relative; }

.eyebrow {
  display: inline-block; font-family: var(--f-body); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--c-gold-deep);
}
.eyebrow.on-dark { color: var(--c-gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--f-body); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95rem 1.8rem; border-radius: var(--radius);
  transition: all 0.4s var(--ease); cursor: pointer; border: 1px solid transparent;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-primary { background: var(--c-gold); color: var(--c-ink); }
.btn-primary:hover { background: var(--c-gold-bright); box-shadow: 0 12px 36px -12px rgba(200,169,106,0.6); }
.btn-ghost { border-color: rgba(200,169,106,0.55); color: var(--c-gold); background: transparent; }
.btn-ghost:hover { background: rgba(200,169,106,0.1); border-color: var(--c-gold); }
.btn-ghost.on-light { color: var(--c-on-light); border-color: rgba(58,37,51,0.35); }
.btn-ghost.on-light:hover { background: rgba(58,37,51,0.06); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), padding 0.4s var(--ease);
  padding: 1.3rem 0; border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(20,16,26,0.86); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(200,169,106,0.16); padding: 0.85rem 0;
}
.nav-inner { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3.5rem); display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; flex-direction: column; line-height: 1; }
.nav-brand .mark { font-family: var(--f-display); font-weight: 500; font-size: 1.55rem; letter-spacing: 0.02em; color: var(--c-cream); }
.nav-brand .mark em { color: var(--c-gold); font-style: italic; }
.nav-brand .sub { font-family: var(--f-body); font-size: 0.58rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--c-on-dark-faint); margin-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a {
  font-family: var(--f-body); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-on-dark-mute);
  position: relative; padding: 4px 0; transition: color 0.3s var(--ease);
}
.nav-menu a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--c-gold); transition: width 0.35s var(--ease); }
.nav-menu a:hover, .nav-menu a.active { color: var(--c-cream); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a.nav-cta {
  background: var(--c-gold); color: var(--c-ink); padding: 0.7rem 1.4rem; border-radius: var(--radius);
  letter-spacing: 0.12em;
}
.nav-menu a.nav-cta::after { display: none; }
.nav-menu a.nav-cta:hover { background: var(--c-gold-bright); color: var(--c-ink); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: transparent; border: 0; }
.nav-burger span { width: 24px; height: 2px; background: var(--c-cream); transition: 0.3s var(--ease); }
.nav-mobile { display: none; }

@media (max-width: 920px) {
  .nav-menu { display: none; }
  .nav-burger { display: flex; }
  .nav { background: rgba(20,16,26,0.92); backdrop-filter: blur(12px); border-bottom-color: rgba(200,169,106,0.14); }
  .nav-mobile {
    display: block; max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease);
    background: var(--c-ink); border-top: 1px solid rgba(200,169,106,0.12);
  }
  .nav-mobile.open { max-height: 460px; }
  .nav-mobile a { display: block; padding: 0.9rem clamp(1.2rem, 5vw, 3.5rem); font-family: var(--f-body); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-on-dark-mute); border-bottom: 1px solid rgba(200,169,106,0.07); }
  .nav-mobile a:hover { color: var(--c-gold); }
}

/* ============================================================
   HERO — Cinematic v2 (crossfade + ken-burns + dust + haze + char reveal)
   ============================================================ */
.hero-cinematic {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; background: var(--c-ink);
}
.hero-cinematic .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; will-change: transform, opacity;
}
.hero-cinematic .bg-1 { animation: kenburns 26s ease-in-out infinite alternate, fade3 27s linear infinite; }
.hero-cinematic .bg-2 { animation: kenburns 26s ease-in-out infinite alternate -8.5s, fade3 27s linear infinite -9s; }
.hero-cinematic .bg-3 { animation: kenburns 26s ease-in-out infinite alternate -17s, fade3 27s linear infinite -18s; }
@keyframes fade3 {
  0% { opacity: 0; } 4% { opacity: 1; } 30% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes kenburns { 0% { transform: scale(1.06) translate(0,0); } 100% { transform: scale(1.18) translate(-1.5%, -2%); } }

/* gradient + plum tint overlay for legibility + brand colour */
.hero-cinematic::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(20,16,26,0.55) 0%, rgba(20,16,26,0.32) 38%, rgba(20,16,26,0.82) 100%),
    linear-gradient(115deg, rgba(58,37,51,0.4) 0%, rgba(20,16,26,0.1) 60%);
}
.hero-cinematic .haze {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(60% 50% at 20% 25%, rgba(200,169,106,0.18), transparent 70%);
}
.hero-cinematic .vignette {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 220px 60px rgba(0,0,0,0.6);
}
.hero-cinematic .dust { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0.55; }
.hero-cinematic .dust span {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(224,198,144,0.9); box-shadow: 0 0 6px 1px rgba(224,198,144,0.5);
  animation: drift 26s linear infinite;
}
@keyframes drift {
  0% { transform: translateY(20px) translateX(0); opacity: 0; }
  10% { opacity: 0.85; } 90% { opacity: 0.4; }
  100% { transform: translateY(-120px) translateX(30px); opacity: 0; }
}
.letterbox { position: absolute; left: 0; right: 0; height: 52px; z-index: 5; background: var(--c-ink); pointer-events: none; }
.letterbox.top { top: 0; } .letterbox.bottom { bottom: 0; }

.hero-inner { position: relative; z-index: 6; padding-top: 70px; padding-bottom: 40px; }
.hero-eyebrow {
  font-family: var(--f-body); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--c-gold); margin-bottom: var(--gap-md);
  opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease) 0.2s forwards;
}
.hero-title {
  font-family: var(--f-display); font-weight: 500; color: var(--c-cream);
  font-size: clamp(3rem, 9vw, 7rem); line-height: 0.98; letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4); margin-bottom: var(--gap-md);
}
.hero-title em { font-style: italic; color: var(--c-gold); }
.hero-title .char { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(36px) rotateX(-30deg); }
.hero-cinematic.in-view .hero-title .char { animation: charIn 0.8s var(--ease) forwards; }
@keyframes charIn { to { opacity: 1; filter: blur(0); transform: none; } }
.hero-sub {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem); color: var(--c-cream-mute); max-width: 46ch;
  margin-bottom: var(--gap-lg);
  opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease) 0.55s forwards;
}
.hero-lede {
  font-size: 0.98rem; color: var(--c-on-dark-mute); max-width: 42ch; margin-bottom: var(--gap-lg);
  opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease) 0.7s forwards;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease) 0.9s forwards; }
.hero-meta {
  display: flex; align-items: center; gap: 1rem; margin-top: var(--gap-lg);
  font-family: var(--f-body); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--c-on-dark-faint);
  opacity: 0; animation: fadeUp 1s var(--ease) 1.1s forwards;
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-gold); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 6;
  font-family: var(--f-body); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--c-on-dark-faint); animation: cuePulse 2.4s ease-in-out infinite;
}
@keyframes cuePulse { 0%,100% { opacity: 0.4; transform: translateX(-50%) translateY(0); } 50% { opacity: 1; transform: translateX(-50%) translateY(6px); } }

/* ============================================================
   Scroll reveal primitives + progress bar
   ============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--c-gold-deep), var(--c-gold-bright)); z-index: 200; }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.rule-hair { height: 1px; background: linear-gradient(90deg, transparent, var(--c-gold), transparent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--c-ink); color: var(--c-on-dark-mute); padding: clamp(3rem,7vw,5rem) 0 2rem; border-top: 1px solid rgba(200,169,106,0.12); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--gap-xl); }
.footer-brand .mark { font-family: var(--f-display); font-size: 2rem; color: var(--c-cream); margin-bottom: var(--gap-sm); }
.footer-brand .mark em { color: var(--c-gold); font-style: italic; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 { font-family: var(--f-body); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--c-gold); margin-bottom: var(--gap-md); }
.footer-col a { display: block; font-size: 0.88rem; padding: 0.3rem 0; color: var(--c-on-dark-mute); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--c-cream); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--gap-xl); padding-top: var(--gap-lg); border-top: 1px solid rgba(200,169,106,0.1); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--c-on-dark-faint); }
.footer-bottom a { color: var(--c-on-dark-mute); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--c-gold); }
.footer-zero { font-size: 0.7rem; letter-spacing: 0.06em; color: var(--c-on-dark-faint); margin-top: 1rem; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--gap-lg); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Demo notice pill ---------- */
.demo-pill {
  position: fixed; bottom: 14px; left: 14px; z-index: 150;
  background: rgba(20,16,26,0.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(200,169,106,0.35); border-radius: 999px;
  padding: 0.5rem 1rem; font-family: var(--f-body); font-size: 0.66rem; letter-spacing: 0.05em;
  color: var(--c-gold); max-width: min(78vw, 360px); line-height: 1.4;
}
.demo-pill strong { color: var(--c-cream); font-weight: 600; }

/* ---------- Sticky mobile booking CTA ---------- */
.sticky-book {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 140;
  padding: 0.7rem 1rem; padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(20,16,26,0.94); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(200,169,106,0.22);
}
.sticky-book a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%;
  background: var(--c-gold); color: var(--c-ink); font-family: var(--f-body); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.85rem; border-radius: var(--radius); }
@media (max-width: 920px) { .sticky-book { display: block; } body { padding-bottom: 64px; } .demo-pill { bottom: 72px; } }

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-title .char { opacity: 1 !important; filter: none !important; transform: none !important; }
  .hero-cinematic .bg-1 { opacity: 1 !important; }
  .hero-eyebrow, .hero-sub, .hero-lede, .hero-actions, .hero-meta { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
