/* ─────────────────────────────────────────────────────────────────────────
   Angela Neff Studios — one stylesheet.
   Tokens follow docs/BRAND.md. Mobile is the design; desktop is the
   adaptation. No dark mode on purpose: the photographs set the ground.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --ink: #1C1917;
  --ink-muted: #6B625B;
  --bg: #FBF9F6;
  --surface: #FFFFFF;
  --line: #E7E1DA;
  --accent: #A65D3F;
  --accent-dark: #8A4A30;
  --accent-soft: #F4E7E0;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 12px 32px rgba(28, 25, 23, .07);
  --shadow-lg: 0 2px 6px rgba(28, 25, 23, .06), 0 24px 60px rgba(28, 25, 23, .16);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; letter-spacing: -.015em; margin: 0; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 720px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  font: inherit;
  font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; flex-direction: column;
  padding: 13px 22px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 9px 18px; min-height: 40px; font-size: 15px; }
.btn--lg { padding: 16px 30px; min-height: 56px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--quiet { background: none; border: none; color: var(--ink-muted); padding: 8px; min-height: 40px; }
.btn--quiet:hover { color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
/* .btn sets display:inline-flex, which would otherwise beat the [hidden]
   attribute and leave a back arrow on the first step. */
.btn[hidden] { display: none; }
.btn__label { line-height: 1.2; }
.btn__sub { font-size: 13px; color: var(--ink-muted); font-weight: 400; line-height: 1.2; }

.link { color: var(--accent); text-underline-offset: 3px; }

/* ── Top bar ──────────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 249, 246, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.wordmark {
  font-family: var(--display); font-size: 18px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; margin-right: auto; line-height: 1.15;
}
.wordmark span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); font-family: var(--ui); }
.topnav { display: none; gap: 26px; }
.topnav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.topnav a:hover { color: var(--accent); }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { padding: 44px 0 8px; }
.hero__inner { display: grid; gap: 32px; }
.hero h1 { font-size: clamp(34px, 8.5vw, 62px); text-wrap: balance; }
.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-muted); margin-top: 18px; max-width: 34ch; }
.hero__actions { display: grid; gap: 12px; margin-top: 28px; }
.hero__note { font-size: 14px; color: var(--ink-muted); margin-top: 14px; }

/* ── Photo placeholders ───────────────────────────────────────────────── */

.shot {
  margin: 0;
  aspect-ratio: var(--ratio, 4 / 5);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 2px, transparent 2px 9px),
    linear-gradient(150deg, #EFE6DE 0%, #E4D8CF 45%, #D9CCC3 100%);
  border: 1px solid var(--line);
}
.shot__brief {
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: #8A7C71; text-align: center; padding: 0 18px; line-height: 1.7;
}
.shot--hero { box-shadow: var(--shadow); }

/* ── Trust strip ──────────────────────────────────────────────────────── */

.strip { border-block: 1px solid var(--line); margin-top: 44px; background: var(--surface); }
.strip__inner {
  display: flex; gap: 12px 34px; flex-wrap: wrap; justify-content: center;
  padding-block: 16px; font-size: 13.5px; color: var(--ink-muted);
}
.strip__inner span { display: inline-flex; align-items: center; gap: 8px; }
.strip__inner span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ── Sections ─────────────────────────────────────────────────────────── */

.section { padding: 64px 0; }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section__title { font-size: clamp(26px, 5vw, 38px); }
.section__lede { color: var(--ink-muted); margin-top: 12px; max-width: 46ch; }

.split { display: grid; gap: 30px; align-items: center; }
.split__copy p { color: var(--ink-muted); }
.split__copy .section__title { margin-bottom: 18px; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink); font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 15px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ── Gallery ──────────────────────────────────────────────────────────── */

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 68vw; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 26px var(--gutter) 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery .shot { scroll-snap-align: center; }

/* ── Pricing ──────────────────────────────────────────────────────────── */

.menu { display: grid; gap: 16px; margin-top: 32px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex; flex-direction: column;
  position: relative;
}
.card--featured { border-color: var(--accent); box-shadow: var(--shadow); }
.card__ribbon {
  position: absolute; top: -11px; left: 24px;
  background: var(--accent); color: #fff;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin: 0;
}
.card__name { font-size: 22px; }
.card__price { font-family: var(--display); font-size: 42px; line-height: 1; margin: 10px 0 0; letter-spacing: -.02em; }
.card__blurb { color: var(--ink-muted); margin-top: 12px; font-size: 15px; }
.card__includes { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 8px; font-size: 15px; }
.card__includes li { padding-left: 18px; position: relative; color: var(--ink-muted); }
.card__includes li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 1px; background: var(--ink-muted); }
.card__makeup {
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 13.5px; font-weight: 500;
  padding: 9px 14px; border-radius: var(--radius-sm);
  margin: auto 0 18px;
}
.menu__addons { margin-top: 26px; color: var(--ink-muted); font-size: 15px; max-width: 60ch; }

/* ── Steps ────────────────────────────────────────────────────────────── */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: grid; gap: 26px; }
.steps li { counter-increment: step; padding-left: 52px; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark);
  font-family: var(--display); font-size: 17px;
}
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--ink-muted); margin: 0; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 34px 18px 0; position: relative;
  font-weight: 500; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 25px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(-135deg); top: 29px; }
.faq p { color: var(--ink-muted); margin: 0 0 18px; padding-right: 20px; }

/* ── Studio + footer ──────────────────────────────────────────────────── */

address { font-style: normal; font-size: 18px; margin-bottom: 14px; }
.hours { font-size: 15px; }
.split__copy .btn { margin-top: 12px; }

.foot { border-top: 1px solid var(--line); padding: 30px 0; margin-bottom: 84px; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-size: 14px; color: var(--ink-muted); }
.foot p { margin: 0; }

/* ── Sticky book bar (mobile) ─────────────────────────────────────────── */

.bookbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(251, 249, 246, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  transition: transform .25s ease;
}
.bookbar[hidden] { display: block; transform: translateY(110%); }

/* ── Booking sheet ────────────────────────────────────────────────────── */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(28, 25, 23, .45);
  display: grid; align-items: end;
  animation: fade .2s ease;
}
.sheet-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes rise { from { transform: translateY(3%); opacity: .6 } to { transform: none; opacity: 1 } }

.sheet {
  background: var(--bg);
  width: 100%;
  max-height: 94dvh;
  display: flex; flex-direction: column;
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow-lg);
  animation: rise .24s ease;
  overflow: hidden;
}

.sheet__head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.sheet__title { font-family: var(--display); font-size: 18px; margin: 0 auto 0 0; }
.sheet__progress { display: flex; gap: 5px; margin-right: 4px; }
.sheet__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.sheet__dot[data-on] { background: var(--accent); }

.sheet__body { overflow-y: auto; padding: 20px var(--gutter) 24px; flex: 1; }
.sheet__foot {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  display: grid; gap: 10px;
}
.sheet__summary { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sheet__summary strong { font-weight: 500; }
.sheet__summary span { color: var(--ink-muted); }

.step__title { font-size: 22px; margin-bottom: 6px; }
.step__hint { color: var(--ink-muted); font-size: 14.5px; margin-bottom: 20px; }

/* Session picker */
.pick { display: grid; gap: 10px; }
.pick__option {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px;
  text-align: left; font: inherit; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.pick__option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pick__name { font-weight: 600; font-size: 16.5px; }
.pick__price { font-family: var(--display); font-size: 21px; }
.pick__meta { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-muted); }

.addons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font: inherit; font-size: 14px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 9px 15px; min-height: 42px;
}
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }

.subhead { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin: 26px 0 0; }

/* Date + time picker */
.days {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82px; gap: 8px;
  overflow-x: auto; padding-bottom: 6px; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.days::-webkit-scrollbar { display: none; }
.day {
  font: inherit; cursor: pointer; scroll-snap-align: start;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 4px;
  display: grid; gap: 1px; text-align: center; min-height: 74px;
}
.day[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.day__weekday { font-size: 11px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-muted); }
.day__number { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.day__month { font-size: 11px; color: var(--ink-muted); }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 14px; }
.time {
  font: inherit; font-size: 15px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 6px; min-height: 46px;
}
.time[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.tz { font-size: 13px; color: var(--ink-muted); margin-top: 14px; }

/* Details form */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  padding: 13px 14px; min-height: 48px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: #B3261E; }
.field__error { font-size: 13px; color: #B3261E; min-height: 0; }
.field__error:empty { display: none; }

.notice {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px;
  font-size: 14px; color: var(--ink-muted); margin-bottom: 18px;
}
.notice strong { color: var(--ink); font-weight: 500; }

.formerror {
  background: #FCEDEB; border: 1px solid #F0C6C0; color: #8C1D18;
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px; margin-bottom: 16px;
}
.formerror[hidden] { display: none; }

/* Done */
.done { text-align: center; padding: 22px 0 8px; }
.done__mark {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--accent-soft); display: grid; place-items: center;
}
.done__mark::after {
  content: ""; width: 21px; height: 11px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg) translate(2px, -3px);
}
.done h2 { font-size: 26px; margin-bottom: 10px; }
.done__when { font-size: 18px; margin-bottom: 6px; }
.done p { color: var(--ink-muted); }
.done__recap {
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin: 22px 0 4px;
  display: grid; gap: 9px; font-size: 15px;
}
.done__row { display: flex; justify-content: space-between; gap: 14px; }
.done__row span { color: var(--ink-muted); }

.empty { color: var(--ink-muted); font-size: 15px; padding: 18px 0; }

/* ── Wider screens ────────────────────────────────────────────────────── */

@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .hero { padding: 76px 0 20px; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
  .hero__actions { grid-auto-flow: column; justify-content: start; gap: 14px; }
  .section { padding: 92px 0; }
  .gallery { grid-auto-columns: 300px; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
  .menu { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--reverse .shot { order: 2; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .topnav { display: flex; }
  /* Both selectors: .bookbar[hidden] outranks a bare .bookbar, so the
     mobile slide-out rule would otherwise keep a box here. */
  .bookbar, .bookbar[hidden] { display: none; }
  .foot { margin-bottom: 0; }

  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet { max-width: 560px; margin-inline: auto; border-radius: 18px; max-height: 88dvh; }
  .sheet__foot { border-radius: 0 0 18px 18px; }
}

@media (min-width: 1000px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; gap: 20px; padding-inline: var(--gutter); max-width: var(--wrap); margin-inline: auto; }
}
