/* ============================================================
   Hair by Sol — storefront design system
   Brand: warm cream + rose-gold/mauve, elegant serif + clean sans.
   Mobile-first; tokens drive everything so the admin can re-theme later.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Official brand palette */
  --cream: #f7f2ec;
  --blush: #e8d7ce;
  --rose: #c79a94;            /* dusty rose — brand accent */
  --rose-strong: #985f57;     /* deepened rose — accessible fills/links */
  --rose-deep: #7f4d46;       /* hover / small text */
  --taupe: #b9ada2;           /* warm taupe — decorative */
  --espresso: #2d231f;

  --bg: var(--cream);
  --bg-alt: #f0e6dd;
  --card: #ffffff;
  --text: var(--espresso);
  --text-muted: #6e6058;
  --accent: var(--rose);
  --accent-strong: var(--rose-strong);
  --accent-soft: var(--blush);
  --gold: #c2a36b;
  --line: #e7dacf;
  --danger: #b4574e;
  --ok: #5f8a6b;

  --shadow-sm: 0 4px 14px -8px rgba(45, 35, 31, .28);
  --shadow: 0 22px 48px -28px rgba(45, 35, 31, .42);

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --max: 1140px;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; letter-spacing: .2px; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent-strong); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(var(--max), 92%); margin-inline: auto; }
.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--accent-strong);
}
.muted { color: var(--text-muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center; line-height: 1; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--rose-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 241, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 1rem;
}
.brand { display: flex; align-items: baseline; gap: .4rem; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand span { color: var(--accent); }
.nav-links { display: none; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .98rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-strong); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; min-width: 44px; min-height: 44px; padding: .55rem;
}
.nav-toggle .bars { position: relative; width: 24px; height: 16px; display: block; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 7px; }
.nav-toggle .bars span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer — overlay panel that slides down under the sticky header */
.mobile-menu {
  display: flex; flex-direction: column; gap: .1rem;
  position: fixed; top: 70px; left: 0; right: 0; z-index: 45;
  max-height: calc(100dvh - 70px); overflow-y: auto;
  background: rgba(250, 246, 241, .98); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: .6rem 6% 1.6rem;
  transform: translateY(-14px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear .28s;
}
.mobile-menu.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s; }
.mobile-menu a:not(.btn) { padding: .95rem .4rem; font-size: 1.08rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { margin-top: .9rem; }
.mobile-menu a:not(.btn):active { background: var(--accent-soft); }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 40; background: rgba(45, 35, 31, .42);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), visibility 0s linear .28s;
}
.nav-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .28s var(--ease); }
body.nav-open { overflow: hidden; }
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(250, 246, 241, .96); }

@media (max-width: 859px) {
  /* The account / sign-in links live in the mobile menu, so keep the top bar to
     brand + Book Now + hamburger and stop the brand from wrapping. */
  .nav-actions [data-auth] { display: none !important; }
  .nav { gap: .6rem; }
}

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 80% 0%, var(--accent-soft) 0%, transparent 55%),
    linear-gradient(160deg, #fbf6f1 0%, #f3e7df 100%);
}
.hero-inner { display: grid; gap: 2rem; padding: clamp(2.5rem, 7vw, 5rem) 0; align-items: center; }
.hero h1 { margin-bottom: .25em; }
.hero .lede { font-size: 1.15rem; color: var(--text-muted); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-meta { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; color: var(--text-muted); font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero-meta b { color: var(--text); font-weight: 600; }
.hero-art {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(150deg, var(--accent-soft), var(--accent) 120%);
  position: relative; overflow: hidden; display: grid; place-items: center;
}
.hero-art .monogram { font-family: var(--font-head); font-size: clamp(3rem, 12vw, 7rem); color: rgba(255,255,255,.8); font-weight: 700; }
.hero-art.has-image { background-size: cover; background-position: center; }
.hero-art.has-image .monogram { display: none; }
/* Crossfading hero photos: stacked layers, one visible at a time. */
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero-slide.active { opacity: 1; }
.hero-art .avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: 0 16px 36px -16px rgba(45, 35, 31, .5); }

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 60ch; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; }

/* ---------- Service menu ---------- */
.cat-block { margin-bottom: 2.6rem; }
.cat-block h3 { font-size: 1.6rem; color: var(--accent-strong); margin-bottom: .2em; }
.cat-block .cat-desc { color: var(--text-muted); margin-bottom: 1.2rem; }
.service-list { display: grid; gap: .8rem; }
.service-row {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.05rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.service-row:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.service-row .s-name { font-weight: 600; }
.service-row .s-desc { color: var(--text-muted); font-size: .9rem; margin-top: .15rem; }
.service-row .s-meta { text-align: right; white-space: nowrap; }
.service-row .s-price { font-weight: 700; font-size: 1.05rem; }
.service-row .s-dur { color: var(--text-muted); font-size: .85rem; }

/* ---------- Cards grid (featured services) ---------- */
.grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--accent-strong); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery-item {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer; font: inherit;
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; position: relative;
  background: linear-gradient(150deg, var(--accent-soft), var(--bg-alt));
  -webkit-tap-highlight-color: transparent;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty {
  grid-column: 1 / -1; text-align: center; color: var(--text-muted);
  padding: 2.5rem; border: 1px dashed var(--line); border-radius: var(--radius-md);
}

/* ---------- Reviews ---------- */
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.5rem; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .5rem; }
.review-card .who { margin-top: .8rem; font-weight: 600; }
.reviews-empty { max-width: 560px; margin: 0 auto; }

/* Continuous reviews marquee — ~3 across on desktop, scrolling forever */
.rev-marquee { overflow: hidden; }
.rev-marquee.rev-single { display: flex; justify-content: center; }
.rev-marquee.rev-single .rev-mcard { margin-right: 0; }
.rev-marquee.rev-scrollable { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; }
.rev-marquee.rev-scrollable .rev-mcard { scroll-snap-align: start; }
.rev-marquee-track { display: flex; width: max-content; animation: rev-scroll linear infinite; }
.rev-marquee.rev-paused .rev-marquee-track { animation-play-state: paused; }
.rev-mcard { flex: 0 0 auto; width: clamp(255px, 82vw, 300px); margin-right: 1.25rem; }
@media (min-width: 640px) { .rev-mcard { width: clamp(280px, 45vw, 330px); } }
@media (min-width: 980px) { .rev-mcard { width: clamp(300px, 30vw, 360px); } }
.rev-mcard .review-card {
  height: 100%; display: flex; flex-direction: column; justify-content: center;
  text-align: center; padding: 1.9rem 1.7rem;
}
.rev-mcard .review-card:hover { transform: none; }   /* no lift — it'd clip against overflow:hidden */
.rev-mcard .review-card p { margin: 0; line-height: 1.65; color: var(--text); }
.rev-mcard .stars { font-size: 1.15rem; margin-bottom: .7rem; }
.rev-mcard .review-card .who { margin-top: 1rem; color: var(--accent-strong); }
@keyframes rev-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .rev-marquee-track { animation: none; } }

/* ---------- Footer ---------- */
.site-footer { background: #271f1b; color: #e9ddd3; padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer a { color: #e9ddd3; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-soft); margin: 0 0 .8rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #b6a89d; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; }
.footer-credit { margin-top: 1rem; text-align: center; font-size: .8rem; color: #9c8e83; }
.footer-credit a { color: #cbbfae; font-weight: 600; }
.footer-credit a:hover { color: #fff; }

/* ---------- Forms / auth ---------- */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 2.5rem 0; }
.auth-card { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.checkbox { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--text-muted); }
.checkbox input { width: auto; margin-top: .2rem; }
.form-note { font-size: .9rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }
.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 1rem; }
.alert-error { background: #fbeae8; color: var(--danger); border: 1px solid #f0cfca; }
.alert-ok { background: #e9f2ec; color: var(--ok); border: 1px solid #cfe3d6; }

/* ---------- Booking wizard ---------- */
.wizard { padding: 1.5rem 0 4rem; }
.steps { display: flex; gap: .4rem; margin-bottom: 1.8rem; }
.steps .dot { flex: 1; height: 4px; border-radius: 999px; background: var(--line); transition: background .3s ease; }
.steps .dot.active { background: var(--accent); }
.step-title { margin-bottom: .3em; }
.step-sub { color: var(--text-muted); margin-bottom: 1.5rem; }

.pick { display: grid; gap: .7rem; }
.pick-item {
  width: 100%; text-align: left; background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius-md); padding: 1rem 1.15rem; cursor: pointer; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem; transition: all .15s ease;
  font-family: inherit; color: var(--text);
}
.pick-item:hover { border-color: var(--accent); }
.pick-item.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--shadow-sm); }
.pick-item .p-name { display: block; font-weight: 600; }
.pick-item .p-meta { display: block; color: var(--text-muted); font-size: .88rem; margin-top: .15rem; }
.pick-item .p-price { font-weight: 700; white-space: nowrap; }
.pick-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.pick-item.selected .pick-check { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .7rem; }
.slot {
  min-height: 48px; padding: .9rem .5rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; font-weight: 600; font-family: inherit; color: var(--text);
  transition: all .15s ease;
}
.slot:hover { border-color: var(--accent); }
.slot.selected { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }

.daybar { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .6rem; margin-bottom: 1.2rem; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.day {
  flex: 0 0 auto; width: 64px; padding: .7rem .4rem; border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: #fff; text-align: center; cursor: pointer; font-family: inherit; color: var(--text); transition: all .15s ease;
  scroll-snap-align: start;
}
.day:hover:not(:disabled) { border-color: var(--accent); }
.day.selected { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.day:disabled { opacity: .4; cursor: not-allowed; }
.day .dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.day .dnum { font-size: 1.25rem; font-weight: 700; font-family: var(--font-head); }

/* sticky booking summary bar */
.summary-bar {
  position: sticky; bottom: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 1rem 0; margin-top: 1.5rem;
}
.summary-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.summary-bar .sum-info { font-size: .9rem; }
.summary-bar .sum-info b { display: block; font-size: 1.05rem; }

.review-line { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.review-line:last-child { border-bottom: none; }
.review-total { display: flex; justify-content: space-between; padding-top: .9rem; font-weight: 700; font-size: 1.15rem; }

/* ---------- Confirmation ---------- */
.confirm-hero { text-align: center; padding: 3rem 0 1rem; }
.confirm-badge { width: 76px; height: 76px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.confirm-badge svg { width: 38px; height: 38px; }
.detail-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); max-width: 520px; margin: 1.5rem auto; }
.detail-row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: none; }
.detail-row .k { color: var(--text-muted); }
.detail-row .v { font-weight: 600; text-align: right; }

/* ---------- Account ---------- */
.appt-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.2rem 1.3rem; margin-bottom: .9rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.appt-card .when { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.badge { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-confirmed { background: #e9f2ec; color: var(--ok); }
.badge-completed { background: var(--accent-soft); color: var(--accent-strong); }
.badge-cancelled, .badge-noshow { background: #fbeae8; color: var(--danger); }

.spinner { width: 26px; height: 26px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; margin: 2rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ============================================================
   Motion & hair-stylist micro-interactions
   ============================================================ */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes floatIn { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes stepIn { from { transform: translateX(16px); } to { transform: none; } }
@keyframes riseIn { from { transform: translateY(18px); } to { transform: none; } }
@keyframes sparkle { 0%, 100% { opacity: .3; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.05) rotate(28deg); } }
@keyframes travel { 0% { left: 2%; } 100% { left: 88%; } }
@keyframes snipT { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(-13deg); } }
@keyframes snipB { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(13deg); } }

@media (prefers-reduced-motion: no-preference) {
  /* Leave-fade on navigation (transient; never leaves content hidden). */
  body.page-leave { opacity: 0 !important; transition: opacity .14s var(--ease); }

  /* Transform-only entrances — content stays visible even if animations are paused. */
  .reveal-init { transform: translateY(20px); }
  .reveal-init.reveal-in { transform: none; transition: transform .6s var(--ease); }

  .hero h1 { animation: riseIn .7s var(--ease) both; }
  .hero .lede { animation: riseIn .7s var(--ease) .08s both; }
  .hero-cta { animation: riseIn .7s var(--ease) .16s both; }
  .hero-meta { animation: riseIn .7s var(--ease) .24s both; }
  .hero-art { animation: riseIn .9s var(--ease) .1s both; }

  .wizard-step.step-anim { animation: stepIn .4s var(--ease) both; }
}

/* hover micro-interactions */
.card, .service-row, .pick-item, .appt-card, .review-card, .gallery-item, .btn {
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.card:hover, .review-card:hover { transform: translateY(-3px); }
.btn-primary:hover, .btn-lg:hover { transform: translateY(-2px); }
.gallery-item img { transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }

/* hero sparkles */
.hero-art .spark { position: absolute; color: #fff; opacity: .85; pointer-events: none; animation: sparkle 2.6s ease-in-out infinite; }
.hero-art .spark.s1 { top: 24%; left: 28%; font-size: 1.3rem; }
.hero-art .spark.s2 { bottom: 26%; right: 28%; font-size: 1.9rem; animation-delay: .7s; }
.hero-art .spark.s3 { top: 42%; right: 24%; font-size: .95rem; animation-delay: 1.3s; }

/* scissors icon */
.snip-icon { display: inline-block; line-height: 0; }
.snip-icon svg { width: 100%; height: 100%; display: block; }
.snip-icon .blade-t, .snip-icon .blade-b { transform-box: view-box; transform-origin: 15.2px 12px; }
.snip-icon.snip .blade-t { animation: snipT .45s var(--ease); }
.snip-icon.snip .blade-b { animation: snipB .45s var(--ease); }
.snip-icon.snip-loop .blade-t { animation: snipT .7s var(--ease) infinite; }
.snip-icon.snip-loop .blade-b { animation: snipB .7s var(--ease) infinite; }

/* cut-loader: scissors travels and snips along a dashed line */
.cut-loader { position: relative; height: 44px; margin: 1rem 0 .6rem; }
.cut-loader .line { position: absolute; top: 50%; left: 6px; right: 6px; border-top: 2px dashed var(--taupe); }
.cut-loader .trav { position: absolute; top: 50%; left: 2%; width: 34px; height: 26px; margin-top: -13px; color: var(--accent-strong); animation: travel 1.5s var(--ease) infinite alternate; }
.cut-loader .label { position: absolute; width: 100%; text-align: center; top: 100%; margin-top: .4rem; font-size: .88rem; color: var(--text-muted); }

/* scissors marker on the wizard progress bar */
.steps { position: relative; padding-top: 8px; }
.steps .snip-marker { position: absolute; top: 10px; transform: translate(-50%, -50%); width: 26px; height: 20px; color: var(--accent-strong); transition: left .45s var(--ease); pointer-events: none; }

/* confirmation sparkle */
.confirm-badge { position: relative; }
.confirm-badge .spark { position: absolute; color: var(--accent); font-size: 1.1rem; animation: sparkle 2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .cut-loader .trav, .snip-icon.snip-loop .blade-t, .snip-icon.snip-loop .blade-b, .hero-art .spark, .confirm-badge .spark { animation: none; }
}

/* ============================================================
   Mobile UX overhaul (audit-driven)
   ============================================================ */
body { -webkit-tap-highlight-color: transparent; }
.btn, .pick-item, .slot, .day, .gallery-item, .nav-toggle, .book-bar { touch-action: manipulation; }
.pick-item:active, .slot:active, .day:not(:disabled):active { transform: scale(.97); }
.gallery-item:active { transform: scale(.98); }

/* Don't let hover states "stick" after a tap on touch devices */
@media (hover: none) {
  .card:hover, .review-card:hover, .btn-primary:hover, .btn-lg:hover { transform: none; }
  .gallery-item:hover img { transform: none; }
  .service-row:hover { border-color: var(--line); box-shadow: none; }
}

/* Visible focus for keyboard / switch users */
.btn:focus-visible, .pick-item:focus-visible, .slot:focus-visible, .day:focus-visible,
.gallery-item:focus-visible, .nav-links a:focus-visible, .mobile-menu a:focus-visible,
.nav-toggle:focus-visible, .book-bar:focus-visible {
  outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: var(--radius-sm);
}

/* Persistent mobile "Book Now" bar (injected by app.js on storefront pages) */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; gap: .4rem;
  padding: 1rem 1.2rem calc(1rem + env(safe-area-inset-bottom));
  background: var(--accent-strong); color: #fff; font-family: var(--font-body);
  font-weight: 600; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 -8px 24px -12px rgba(45, 35, 31, .5); border-radius: 18px 18px 0 0;
}
.book-bar span { font-weight: 500; opacity: .85; font-size: .9rem; }
.book-bar:active { background: var(--rose-deep); }

/* Gallery lightbox — image always centered; nav buttons are edge overlays */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(39, 31, 27, .93); backdrop-filter: blur(6px);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
body.lb-open { overflow: hidden; }
.lb-stage { margin: 0; display: grid; place-items: center; gap: .9rem; padding: 1rem; width: 100%; min-width: 0; overflow: hidden; }
.lb-img { max-width: 88vw; max-height: 76vh; width: auto; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); object-fit: contain; }
.lb-cap { color: #f3e7df; font-size: .95rem; text-align: center; max-width: 42ch; padding: 0 1rem; }
.lb-close { position: absolute; top: calc(.6rem + env(safe-area-inset-top)); right: .8rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; z-index: 2; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; z-index: 2; display: grid; place-items: center; }
.lb-prev { left: .4rem; }
.lb-next { right: .4rem; }
.lightbox.hidden { display: none !important; }
@keyframes lbOpen { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lbInRight { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes lbInLeft { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }

/* Booking page entrance — soften the load-in */
@keyframes bookRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .wizard > .container { animation: bookRise .55s var(--ease) backwards; }
  .pick .pick-item { animation: bookRise .45s var(--ease) backwards; }
}

/* ---- Mobile layout (<= 859px) ---- */
@media (max-width: 859px) {
  .hero .hero-art { order: -1; aspect-ratio: 16/10; max-height: 46vh; background-position: center; }
  .hero-inner { gap: 1.4rem; }
  /* About avatar shouldn't sit inside a giant empty box */
  .about-art { aspect-ratio: auto !important; background: none !important; box-shadow: none !important; padding: 1rem 0 !important; }
  /* Drop blur on sticky surfaces (Android scroll jank) */
  .site-header { backdrop-filter: none; background: var(--cream); }
  .summary-bar { backdrop-filter: none; background: #fff; }
  /* room for the sticky book bar so it never covers the footer (only on pages
     that actually have the bar — not the wizard/confirmation) */
  body.has-book-bar { padding-bottom: 66px; }
  body.has-book-bar .book-bar { display: flex; }
}

/* ---- Small phones (<= 480px) ---- */
@media (max-width: 480px) {
  .section { padding: 2.4rem 0; }
  .section-head { margin-bottom: 1.6rem; }
  .hero-inner { padding: 1.5rem 0; }
  /* Book is a full-width block; "View Services" becomes a quiet link */
  .hero-cta { flex-direction: column; align-items: stretch; gap: .5rem; }
  .hero-cta .btn-primary { width: 100%; }
  .hero-cta .btn-ghost.btn-lg { border: none; background: none; text-decoration: underline; font-size: 1rem; padding: .55rem; }
  .hero-meta { gap: .45rem 1.2rem; margin-top: 1.4rem; }
  .card { padding: 1.15rem; }
  .cat-block { margin-bottom: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-menu, .nav-backdrop, .nav-toggle .bars span { transition: none !important; }
  .pick-item:active, .slot:active, .day:active, .gallery-item:active { transform: none; }
  .lightbox:not(.hidden) .lb-img { animation: none; }
}
