/* Shared styles for the public site, the booking page and the cancel page.
   Fonts are system stacks, so nothing loads from a font service. */

:root {
  color-scheme: light;
  --cream: #f9f6f0;
  --paper: #fffdf9;
  --ink: #2c221e;
  --muted: #6b5d54;
  --taupe: #7a6b61;
  --tan: #d4a381;
  --copper: #c4895f;
  --copper-deep: #8a5a3a;
  --sage: #73907f;
  --sage-deep: #4d6657;
  --line: #e6dccf;
  --error: #9b2c1f;
  --error-bg: #fbeee9;
  --ok-bg: #eef3ef;
  --focus: #8a5a3a;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, P052, "URW Palladio L", "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

main { flex: 1; }

img { max-width: 100%; }

a { color: var(--copper-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a[href^="tel:"] { white-space: nowrap; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 5.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 44rem; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--ink); color: var(--cream); border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--cream); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: block;
  font: 600 0.74rem/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Header */

.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.brand:hover { color: var(--ink); }
.monogram {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 1px solid var(--tan); border-radius: 50%;
  font: italic 500 1.1rem/1 var(--serif); color: var(--copper-deep); letter-spacing: 0.02em;
}
.brand-logo { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; }
.brand-name { font: 500 1.45rem/1.1 var(--serif); }
.brand-sub { display: block; font: 600 0.66rem/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.site-nav ul { display: flex; gap: 6px 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--copper); }

@media (max-width: 559px) {
  .site-nav { display: none; }
}

/* Buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 28px;
  font: 600 1rem/1.2 var(--sans); letter-spacing: 0.02em;
  color: var(--cream); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: #46362f; color: var(--cream); }
.button[disabled] { opacity: 0.55; cursor: default; }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--taupe); }
.button-quiet:hover { background: var(--paper); color: var(--ink); }
.button-small { min-height: 40px; padding: 8px 18px; font-size: 0.92rem; }
.link-button {
  background: none; border: 0; padding: 4px 0; font: inherit; font-size: 0.95rem;
  color: var(--copper-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-button:hover { color: var(--ink); }

/* Home: hero */

.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero::before,
.hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -220px; top: -160px; border: 1px solid var(--tan); opacity: 0.7; }
.hero::after { width: 360px; height: 360px; right: -120px; top: -60px; background: radial-gradient(circle at 35% 35%, #f1e4d6, rgba(249, 246, 240, 0) 70%); }
.hero .wrap { position: relative; z-index: 1; }
@media (max-width: 559px) {
  .hero { padding: 44px 0 56px; }
  .hero::before { width: 300px; height: 300px; right: -170px; top: -120px; }
  .hero::after { width: 220px; height: 220px; right: -110px; top: -70px; }
}
.hero h1 { max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--copper-deep); }
.hero .lead { font-size: 1.12rem; max-width: 34rem; color: var(--ink); margin: 22px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* The home page keeps the intro short so the service cards come first. */
.hero-short { padding: 40px 0 36px; }
.hero-short h1 { max-width: none; font-size: clamp(2.3rem, 7vw, 3.4rem); }
.hero-short .lead { margin: 14px 0 0; }
@media (max-width: 559px) {
  .hero-short { padding: 30px 0 26px; }
}

/* Sections */

.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 32px; max-width: 40rem; }
.section-head p { color: var(--muted); margin: 12px 0 0; }

.rule {
  display: flex; align-items: center; gap: 14px; color: var(--tan); margin: 0 0 18px;
}
.rule::before { content: ""; width: 36px; height: 1px; background: var(--copper); }

.section-services { padding-top: 44px; }

/* Service cards: one column on a phone, two on a tablet, four on a desktop. */

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (min-width: 960px) {
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(44, 34, 30, 0.05), 0 6px 18px rgba(44, 34, 30, 0.06);
}
.card.is-chosen { border-color: var(--copper-deep); box-shadow: 0 0 0 1px var(--copper-deep); }
.card-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #e9e2d9; }
.card-photo-blank { aspect-ratio: 4 / 3; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; min-width: 0; }
.card-name { font: 500 1.3rem/1.2 var(--serif); }
.card-desc { margin: 0; font-size: 0.93rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.card-desc.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.card-more { align-self: flex-start; padding: 0; font-size: 0.88rem; }
.card-time { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 0.9rem; color: var(--ink); }
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-price { font: 500 1.35rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.card-book { min-height: 40px; padding: 8px 22px; }

/* On a phone the photo sits beside the text, as on Amy's earlier booking page. */
@media (max-width: 559px) {
  .card { flex-direction: row; }
  .card-photo { width: 36%; flex: none; height: auto; aspect-ratio: auto; align-self: stretch; }
  .card-body { padding: 12px 14px 14px; }
  .card-name { font-size: 1.2rem; }
  .card-foot { padding-top: 10px; }
}

.services-note { margin: 24px 0 0; color: var(--muted); font-size: 0.95rem; }

/* Visit */

.visit-grid { display: grid; gap: 28px; }
@media (min-width: 760px) {
  .visit-grid { grid-template-columns: repeat(3, 1fr); }
}
.visit-card { padding: 26px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.visit-card h3 { margin-bottom: 10px; }
.visit-card p { margin: 0 0 6px; }
.visit-card address { font-style: normal; }

.cta-band { padding: 72px 0; text-align: center; border-top: 1px solid var(--line); background: var(--paper); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin: 0 auto 28px; max-width: 32rem; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 18px; }
@media (min-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
}
.footer-name { font: 500 1.3rem/1.2 var(--serif); color: var(--ink); margin: 0 0 6px; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 4px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }

/* Booking and cancel pages */

.page-head { padding: 44px 0 20px; }
.page-head h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.page-head p { color: var(--muted); margin: 14px 0 0; max-width: 36rem; }

.steps { list-style: none; margin: 0 0 64px; padding: 0; display: grid; gap: 16px; }

.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px;
}
@media (min-width: 560px) {
  .step { padding: 28px 30px; }
}
.step[data-state="upcoming"] { background: transparent; }
.step[data-state="upcoming"] .step-title { color: var(--taupe); }
.step-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.step-title { font-size: 1.5rem; display: flex; align-items: baseline; gap: 12px; }
.step-num { font: 600 0.74rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-deep); }
.step-summary { margin: 6px 0 0; color: var(--ink); }
.step-body { margin-top: 20px; }
.step-body[hidden], .step-summary[hidden] { display: none; }
.step-body .services-note { margin-top: 18px; }

/* Step 1 holds the card grid, so the booking page is wide on step 1 and narrow for steps 2 and 3. */

.book-wrap { max-width: 44rem; }
body[data-step="1"] .book-wrap { max-width: 68rem; }
@media (min-width: 560px) {
  body[data-step="1"] #step-service { padding: 28px 24px; }
}
#step-service .card { background: var(--cream); }

/* The chosen service once step 1 is done: a small photo, the name, the time and the price. */
.service-summary { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.service-summary-photo { width: 88px; height: 66px; flex: none; object-fit: cover; border-radius: 8px; }
.service-summary-text { display: grid; gap: 2px; min-width: 0; }
.service-summary-name { font: 500 1.2rem/1.2 var(--serif); }
.service-summary-meta { font-size: 0.92rem; color: var(--muted); }

/* Days and times */

.tz-note { font-size: 0.92rem; color: var(--muted); margin: 0 0 16px; }
.range-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.range-label { font: 500 1.15rem/1.2 var(--serif); }
.range-buttons { display: flex; gap: 8px; }

.day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.day-grid .weekday { text-align: center; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-bottom: 2px; }
.day {
  width: 100%; min-height: 50px; padding: 6px 2px; display: grid; place-items: center; gap: 0;
  font: 500 1.05rem/1.1 var(--serif); color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.day small { display: block; font: 500 0.62rem/1.2 var(--sans); letter-spacing: 0.06em; color: var(--muted); }
.day:hover { border-color: var(--tan); }
.day[data-open="false"] { color: #a2958b; background: transparent; border-style: dashed; }
.day[data-open="false"] small { color: #a2958b; }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.day[aria-pressed="true"] small { color: #e9dccd; }
.day-blank { min-height: 50px; }

.times-head { font-size: 1.2rem; margin: 0 0 12px; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.time {
  width: 100%; min-height: 44px; padding: 8px 6px; font: 500 0.95rem/1 var(--sans); color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.time:hover { border-color: var(--copper-deep); }
.time[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.state { padding: 18px 18px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); color: var(--ink); }
.state p:last-child { margin-bottom: 0; }
.state-error { background: var(--error-bg); border-color: #efcfc4; }
.state-loading { color: var(--muted); display: flex; gap: 12px; align-items: center; }
.state-loading::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid var(--tan); border-top-color: transparent; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .state-loading::before { animation: none; }
  * { transition: none !important; }
}

.notice { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--error-bg); border: 1px solid #efcfc4; }
.notice[hidden] { display: none; }

/* Form */

.form-grid { display: grid; gap: 18px; }
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #cdbfb1; border-radius: 10px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 6px 0 0; color: var(--error); font-size: 0.9rem; font-weight: 600; }
.field-error:empty { display: none; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 0.95rem; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--copper-deep); }
.consent label { font-weight: 400; margin: 0; }
.consent .field-error { grid-column: 2; }

/* The honeypot sits off screen; people never see it, simple bots fill it. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.turnstile-slot:empty { display: none; }
.form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.form-actions .muted { font-size: 0.9rem; color: var(--muted); margin: 0; }

.summary-list { margin: 0 0 22px; padding: 16px 18px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); display: grid; gap: 6px 18px; grid-template-columns: auto 1fr; }
.summary-list dt { color: var(--muted); font-size: 0.9rem; }
.summary-list dd { margin: 0; }

/* Result panels */

.panel { margin: 0 0 64px; padding: 34px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 560px) {
  .panel { padding: 40px 40px; }
}
.panel h2 { margin-bottom: 14px; }
.panel-ok { border-top: 3px solid var(--sage); }
.panel-warn { border-top: 3px solid var(--copper); }
.panel .summary-list { margin-top: 22px; }
.panel-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.status-pill {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: var(--ok-bg); color: var(--sage-deep);
}
.status-pill[data-status="pending"] { background: #f6ece2; color: var(--copper-deep); }
.status-pill[data-status="cancelled"],
.status-pill[data-status="declined"] { background: #efe9e4; color: var(--muted); }

/* 404 */

.lost { padding: 96px 0; text-align: center; }
.lost p { color: var(--muted); margin: 18px auto 30px; max-width: 30rem; }
.lost .hero-actions { justify-content: center; }
.step-actions { margin-top: 18px; }
.step-actions[hidden] { display: none; }
