/* ============================================================
   GLAM & GLOW · shared site styles
   Design tokens + base typography + global components.
   ============================================================ */

@import url("/shared/signup.css");

:root {
  /* === Brand: matched to the real Bank Street salon === */
  --navy:    #1a2a4a;   /* the reception wall colour */
  --navy-deep: #0f1c36;
  --navy-dim:  #2a3e64;
  --gold:    #c9a961;   /* the Glam & Glow lettering */
  --gold-warm: #d4b878;
  --gold-deep: #9c7f3e;
  --cream:   #f8f3ec;
  --paper:   #fbf7f1;
  --line:    #d4c5b0;
  --tan:     #c8a888;
  --tan-deep:#8a6a3f;
  --cocoa:   #2d1f15;
  --cocoa-dim:#5a4838;
  /* legacy --coral aliased to gold for brand cohesion (was the v3 cream/coral palette) */
  --coral:     #c9a961;
  --coral-deep:#9c7f3e;
  --green:   #7ba87a;
  --shadow-warm: 0 24px 60px -20px rgba(26, 42, 74, 0.30);
  --shadow-soft: 0 18px 50px -18px rgba(15, 28, 54, 0.22);
  --shadow-gold: 0 20px 50px -16px rgba(201, 169, 97, 0.35);
  --max-w: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --transition-smooth: 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Lenis CSS removed — see site.js. Native scroll only. */

body {
  background: var(--cream);
  color: var(--cocoa);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.display { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; line-height: 1.02; letter-spacing: -0.01em; }
.display em { color: var(--gold); font-style: italic; font-weight: 400; }
.script { font-family: 'Italianno', cursive; font-weight: 400; }
.micro { font-size: 11px; letter-spacing: 0.45em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.eyebrow { font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(70px, 11vh, 130px) 0; }
.section.tight { padding: clamp(50px, 7vh, 84px) 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--navy); color: var(--cream); }
.section.dark .display { color: var(--cream); }
.section.dark p { color: rgba(248,243,236,0.82); }

.hairline { display: block; width: 60px; height: 1px; background: var(--gold); opacity: 0.7; margin: 18px 0; }

/* ── Skip-to-content (accessibility floor) ─────────────── */
.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--cocoa); color: var(--cream);
  padding: 9px 14px; font-size: 13px; z-index: 1000;
  text-decoration: none; border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* ── Site nav ───────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248, 243, 236, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  transition: background var(--transition-smooth);
}
.site-nav.scrolled { background: rgba(248, 243, 236, 0.98); }
.site-nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cocoa);
  text-decoration: none;
}
.brand i { color: var(--gold); font-style: normal; padding: 0 0.05em; }
.nav-links {
  display: flex; gap: clamp(14px, 2.5vw, 28px);
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--cocoa-dim);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute;
  left: 0; bottom: -4px; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--cocoa); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--cocoa); }
.nav-cta {
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 9px 18px;
  background: var(--cocoa);
  color: var(--cream);
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: var(--gold); color: var(--navy); transform: scale(1.04); }
.nav-cta.nav-cta-wa { background: #25D366; color: white; }
.nav-cta.nav-cta-wa:hover { background: #1ebe57; color: white; transform: scale(1.04); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--cocoa); border-radius: 999px;
  width: 36px; height: 36px;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--cocoa);
}
.nav-toggle svg { width: 16px; height: 16px; }

@media (max-width: 880px) {
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 80%);
    background: var(--cream);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.35s var(--transition-smooth);
    z-index: 70;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 13px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { font-size: 11px; padding: 8px 14px; }
}

/* ── Hero (re-usable) ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(80px, 14vh, 140px) var(--gutter) clamp(60px, 9vh, 100px);
  overflow: hidden;
  color: var(--cream);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,31,21,0.20) 0%, rgba(45,31,21,0.55) 50%, rgba(45,31,21,0.78) 100%);
  pointer-events: none;
}
.hero-overlay {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero-place {
  font-size: 11px; letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(248,243,236,0.82);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(50px, 8.5vw, 124px);
  color: var(--cream);
  max-width: 16ch;
  font-weight: 200;
}
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 300; }
.hero .meta {
  display: flex; flex-wrap: wrap; gap: 28px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(248,243,236,0.85);
  margin-top: 28px;
}
.hero .meta span { display: flex; align-items: center; gap: 8px; }
.hero .meta span + span::before {
  content: "·"; color: var(--gold); font-size: 22px; line-height: 0;
}

/* Word reveal */
.word-reveal { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word-reveal .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.word-reveal.in-view .word {
  animation: word-up 0.9s cubic-bezier(0.18, 0.7, 0.1, 1) forwards;
}

@keyframes word-up {
  to { transform: translateY(0); opacity: 1; }
}

/* Generic reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.18, 0.7, 0.1, 1), transform 0.85s cubic-bezier(0.18, 0.7, 0.1, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-stagger] { transition-delay: calc(var(--stagger, 0) * 80ms); }

/* ── Pull quote ────────────────────────────────────────── */
.pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.4;
  color: var(--cocoa);
  border-left: 2px solid var(--gold);
  padding-left: 28px;
  max-width: 760px;
}
.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tan-deep);
  margin-top: 18px;
  font-weight: 500;
}

/* ── Button ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  background: var(--cocoa);
  color: var(--cream);
  text-decoration: none;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border: none; cursor: pointer;
  font-family: inherit;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn:hover { background: var(--gold); transform: scale(1.04); box-shadow: var(--shadow-warm); }
.btn.btn-gold { background: var(--gold); color: var(--navy); }
.btn.btn-gold:hover { background: var(--gold-warm); color: var(--navy-deep); }
.btn.btn-coral { background: var(--gold); color: var(--navy); } /* legacy alias */
.btn.btn-coral:hover { background: var(--gold-warm); color: var(--navy-deep); }
.btn.btn-outline { background: transparent; color: var(--cocoa); border: 1px solid var(--cocoa); }
.btn.btn-outline:hover { background: var(--cocoa); color: var(--cream); }
.btn.btn-large { padding: 20px 44px; font-size: 13px; }
.btn::after { content: "→"; font-family: 'Inter', sans-serif; letter-spacing: 0; }

/* Magnetic button refines via JS (translate based on pointer) */
.magnetic { transition: transform 0.18s ease-out; }

/* ── Cards (service + general) ─────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.svc-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 26px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--gold); }
.svc-card .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.svc-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; }
.svc-card .price { font-size: 14px; color: var(--gold); font-weight: 500; white-space: nowrap; }
.svc-card .duration { display: inline-block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tan-deep); margin-bottom: 12px; }
.svc-card p { font-size: 13px; color: var(--cocoa-dim); line-height: 1.6; }

/* ── Marquee band ──────────────────────────────────────── */
.marquee {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(38px, 7vw, 96px);
  white-space: nowrap;
  padding: clamp(50px, 8vh, 100px) 0;
  color: var(--gold);
  font-weight: 300;
  opacity: 0.92;
  overflow: hidden;
}
.marquee-track { display: inline-block; will-change: transform; padding-left: 100%; }
.marquee-track span { padding: 0 2vw; }
.marquee-track span::after { content: "·"; padding-left: 4vw; }

/* ── Reviews ───────────────────────────────────────────── */
.review-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 28px 26px;
  border-radius: 4px;
  position: relative;
  transition: transform 0.3s;
}
.review-card:hover { transform: translateY(-2px); }
.review-card .stars { color: var(--gold); font-size: 14px; letter-spacing: 0.1em; margin-bottom: 10px; }
.review-card .quote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; line-height: 1.5; color: var(--cocoa); }
.review-card .author { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tan-deep); margin-top: 16px; font-weight: 500; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(60px, 8vh, 100px) 0 36px;
  margin-top: clamp(60px, 8vh, 100px);
  position: relative;
  overflow: hidden;
}
.site-footer::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 320px; height: 320px; border-radius: 999px;
  background: var(--gold); opacity: 0.08; filter: blur(60px);
  pointer-events: none;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: 6vh;
  border-bottom: 1px solid rgba(248,243,236,0.15);
}
.site-footer h4 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; margin-bottom: 14px; }
.site-footer h4 em { color: var(--gold); font-style: italic; }
.site-footer .col h5 { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
.site-footer .col, .site-footer .col p { font-size: 13px; line-height: 1.85; color: rgba(248,243,236,0.78); font-weight: 300; }
.site-footer .col a { color: inherit; text-decoration: none; transition: color 0.2s; }
.site-footer .col a:hover { color: var(--gold); }
.site-footer .meta-row {
  padding-top: 30px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(248,243,236,0.5);
}
.site-footer .meta-row a { color: rgba(248,243,236,0.5); text-decoration: none; }
.site-footer .meta-row a:hover { color: var(--gold); }

@media (max-width: 800px) {
  .site-footer .grid { grid-template-columns: 1fr; }
}

/* ── Sticky mobile CTA bar (Call · WhatsApp · Book) ───── */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(248,243,236,0.12);
  padding: 10px 10px env(safe-area-inset-bottom, 10px);
  gap: 8px;
  z-index: 80;
  box-shadow: 0 -8px 24px -8px rgba(45,31,21,0.30);
}
.mobile-cta a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  background: rgba(248,243,236,0.08);
  color: var(--cream);
  text-decoration: none;
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid rgba(248,243,236,0.12);
}
.mobile-cta a.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream);
}
.mobile-cta a:active { transform: scale(0.97); }
.mobile-cta svg { width: 14px; height: 14px; }

@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 78px; }
}

/* ── Cookie banner ─────────────────────────────────────── */
.cookie-banner {
  position: fixed; left: 12px; bottom: 12px;
  max-width: 380px;
  background: var(--navy); color: var(--cream);
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  z-index: 90;
  box-shadow: var(--shadow-warm);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin-bottom: 10px; color: rgba(248,243,236,0.85); }
.cookie-banner button {
  background: var(--gold); color: var(--cream);
  border: none; padding: 8px 16px; border-radius: 999px;
  font: inherit; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; cursor: pointer;
}
@media (max-width: 720px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 86px; max-width: none; }
}

/* ── Scroll progress bar ───────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--gold);
  z-index: 99;
  transition: width 0.1s linear;
}

/* ── Utility ───────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.no-select { user-select: none; }

/* prefer-reduced-motion: kill all motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .word-reveal .word { opacity: 1; transform: none; }
}
