/* B.A.B.E. Hair Salon — Shared Stylesheet */

/* ─── Script font (White Angelica) ───────────────────── */
@font-face {
  font-family: 'White Angelica';
  src: url('fonts/WhiteAngelica.woff2') format('woff2'),
       url('fonts/WhiteAngelica.woff')  format('woff'),
       url('fonts/WhiteAngelica.ttf')   format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Design tokens (colors from logo palette) ───────── */
:root {
  --gold:       #C4A06C;
  --gold-dark:  #9C7A4C;
  --gold-mid:   #D9B27B;
  --gold-light: #F9E3C1;

  --cream:      #FDFAF6;
  --cream-mid:  #F0E8DC;
  --sand:       #E5CEAE;

  --charcoal:   #1e1b18;
  --taupe:      #6e5c50;
  --text:       #1e1b18;
  --text-light: #6b5c4e;
  --white:      #ffffff;

  --ff-serif:  'Cormorant Garamond', Georgia, serif;
  --ff-sans:   'DM Sans', system-ui, -apple-system, sans-serif;
  --ff-script: 'White Angelica', cursive;

  --nav-h:   160px;
  --max-w:   1200px;
  --pad-x:   clamp(1.5rem, 5vw, 5rem);
  --gap-sec: clamp(4rem, 8vw, 7rem);
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; padding: 0; }
address { font-style: normal; }

/* ─── Layout ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section       { padding: var(--gap-sec) 0; }
.section--mid  { background: var(--cream-mid); }
.section--dark { background: var(--charcoal); color: var(--white); }

/* ─── Typography ─────────────────────────────────────── */
.h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--charcoal);
}
.h3 {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
}
.section--dark .h2,
.section--dark .h3 { color: var(--white); }
.lead {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.85;
  max-width: 52ch;
  margin-top: 1rem;
}
.section--dark .lead { color: rgba(255,255,255,0.6); }

/* Inner page hero */
.page-hero {
  padding: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem)) 0 clamp(2.5rem, 5vw, 4rem);
}
.page-hero .h2 { max-width: 22ch; }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s, color 0.2s;
  white-space: nowrap;
  touch-action: manipulation;
  cursor: pointer;
  min-height: 44px;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: #111; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--charcoal); border: 1px solid var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-outline-light { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); }

/* ─── HEADER ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  background: var(--cream);
  transition: box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--sand);
}

/* Logo + Book Now row */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.25rem var(--pad-x) 0.75rem;
}
.logo { display: block; }
.logo img { height: 80px; width: auto; display: block; mix-blend-mode: multiply; }

.header-book-btn {
  position: absolute;
  right: var(--pad-x);
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  border: 1px solid var(--gold);
  padding: 0.6rem 1.4rem;
  transition: background 0.2s, color 0.2s;
}
.header-book-btn:hover { background: var(--gold); color: var(--white); }

/* Nav row */
.header-nav-wrap {
  border-top: 1px solid var(--sand);
  display: flex;
  justify-content: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 0.65rem var(--pad-x);
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--charcoal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.hamburger {
  display: none;
  position: absolute;
  right: var(--pad-x);
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  touch-action: manipulation;
}
.hamburger span {
  display: block;
  height: 1px;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease), opacity 0.3s;
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--cream);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  display: none;
  overscroll-behavior: contain;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .btn { font-size: 0.72rem; margin-top: 0.5rem; }

/* Sticky mobile booking bar */
.mobile-sticky-book {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 190;
  background: var(--gold);
  color: var(--white);
  text-align: center;
  padding: 1rem var(--pad-x);
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s;
  touch-action: manipulation;
  min-height: 54px;
}
.mobile-sticky-book:hover { background: var(--gold-dark); }
.mobile-sticky-book:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }

/* ─── Script accent (Sacramento) ─────────────────────── */
.script-accent {
  font-family: var(--ff-script);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

/* ─── Cert chips (extensions + team pages) ───────────── */
.cert-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cert-chip {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--sand);
}

/* ─── FOOTER ─────────────────────────────────────────── */
.site-footer { background: var(--charcoal); padding: 3.5rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { margin-bottom: 1rem; }
.footer-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; }
.footer-tagline { font-size: 0.85rem; font-weight: 400; color: rgba(255,255,255,0.60); line-height: 1.7; max-width: 26ch; margin-bottom: 1.5rem; }
.footer-col-title { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.50); margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.87rem; font-weight: 400; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-mid); }
.footer-hours { font-size: 0.87rem; color: rgba(255,255,255,0.55); margin-top: 0.25rem; }
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.footer-social { display: flex; gap: 1.25rem; }
.footer-social a { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-social a:hover { color: var(--gold-mid); }

/* ─── Scroll reveal (motion-safe only) ──────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  }
  .reveal.visible { opacity: 1; transform: none; }
  .d1 { transition-delay: 0.1s; }
  .d2 { transition-delay: 0.2s; }
  .d3 { transition-delay: 0.3s; }
}

/* ─── Responsive: shared elements ────────────────────── */
@media (max-width: 880px) {
  :root { --nav-h: 100px; }
  .logo img            { height: 64px; }
  .header-nav-wrap     { display: none; }
  .header-book-btn     { display: none; }
  .hamburger           { display: flex; }
  .mobile-nav          { display: flex; }
  .mobile-sticky-book  { display: block; }
  body                 { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }

  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 580px) {
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-brand  { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
