:root {
  --alabaster: #f6f1ea;
  --paper: #fffdf9;
  --ink: #263027;
  --sage: #9aa88a;
  --sage-dark: #647257;
  --clay: #b98a6f;
  --line: #d8d0c5;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Jost", Arial, sans-serif;
  --pad: clamp(1.15rem, 5vw, 5rem);
  --max: 1360px;
  --shadow: 0 18px 50px rgba(66, 54, 42, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden;
  overflow-x: clip; /* avoid body becoming a scroll container (Safari scroll clamp) */ background: var(--alabaster); color: var(--ink); font-family: var(--body); }
img { display: block; width: 100%; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 20; padding: .75rem 1rem; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: grid; place-items: center; gap: 1.1rem; padding: 1.5rem var(--pad) 1.25rem; border-bottom: 1px solid var(--line); text-align: center; }
.wordmark { display: grid; text-decoration: none; }
.wordmark span { font-family: var(--display); font-size: clamp(2.7rem, 7vw, 4.8rem); font-weight: 600; line-height: .7; }
.wordmark small { margin-top: .75rem; font-size: .56rem; font-weight: 600; letter-spacing: .23em; text-transform: uppercase; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem clamp(.8rem, 4vw, 3.2rem); }
.site-header nav a { font-size: .67rem; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

.hero { max-width: var(--max); margin-inline: auto; display: grid; place-items: center; padding: clamp(2.5rem, 6vw, 5.5rem) var(--pad) clamp(5rem, 10vw, 9rem); text-align: center; }
.arch-photo { width: min(100%, 760px); aspect-ratio: 4 / 4.45; overflow: hidden; border-radius: 50% 50% 1.2rem 1.2rem / 38% 38% 1.2rem 1.2rem; background: var(--sage); box-shadow: var(--shadow); }
.arch-photo img { height: 100%; object-fit: cover; object-position: 53% 50%; }
.hero-copy { position: relative; width: min(100%, 870px); margin-top: clamp(2.2rem, 5vw, 4.2rem); }
.hero-copy > p:first-child, .section-heading > p, .ritual > div > p:first-child, .gift > div > p, .booking-copy > p { margin: 0; color: var(--sage-dark); font-size: .65rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: .8rem 0 1rem; font-family: var(--display); font-size: clamp(4rem, 13vw, 9rem); font-weight: 500; line-height: .82; }
.hero-intro { max-width: 570px; margin: 0 auto 2rem; color: #526052; font-size: clamp(.92rem, 2vw, 1.15rem); line-height: 1.8; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; padding: .85rem 1.25rem; font-size: .69rem; font-weight: 600; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.button-clay { border-color: var(--clay); background: var(--clay); color: var(--ink); }
.button-outline { border-color: var(--sage-dark); color: var(--ink); }
.button-light { border-color: var(--paper); background: var(--paper); color: var(--ink); }

.section { max-width: var(--max); margin-inline: auto; padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.section-heading { display: grid; gap: 1.2rem; margin-bottom: clamp(3rem, 7vw, 6rem); }
.section-heading h2, .ritual h2, .gift h2, .booking h2 { margin: 0; font-family: var(--display); font-size: clamp(2.7rem, 7vw, 6.4rem); font-weight: 500; line-height: .97; text-wrap: balance; }
.treatment-groups { display: grid; gap: 4rem; }
.treatment-group h3 { margin: 0 0 1.5rem; padding-bottom: .75rem; border-bottom: 1px solid var(--sage); color: var(--sage-dark); font-family: var(--display); font-size: 2.3rem; font-weight: 600; }
.treatment-group ul { margin: 0; padding: 0; list-style: none; }
.treatment-group li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.treatment-group li > div { min-width: 0; display: flex; align-items: baseline; }
.treatment-group strong { flex: 0 1 auto; font-family: var(--display); font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 600; }
.dots { min-width: .8rem; flex: 1; margin: 0 .6rem .26rem; border-bottom: 1px dotted var(--sage-dark); }
.treatment-group b { flex: 0 0 auto; font-size: .78rem; font-weight: 500; }
.treatment-group li p { margin: .35rem 0 0; color: #667064; font-size: .7rem; }

.ritual { display: grid; gap: 2.5rem; padding: clamp(5rem, 10vw, 9rem) var(--pad); background: var(--sage); color: #172018; }
.ritual-mark { width: min(44vw, 250px); aspect-ratio: 1; display: grid; place-content: center; align-self: center; justify-self: center; border: 1px solid rgba(23,32,24,.55); border-radius: 50% 50% 0 0; font-family: var(--display); font-size: clamp(5rem, 18vw, 11rem); line-height: 1; }
.ritual > div:last-child { max-width: 820px; }
.ritual h2 { margin-top: 1.2rem; }
.ritual-copy { max-width: 600px; margin: 2rem 0; line-height: 1.8; }
.ritual a { display: inline-flex; gap: .8rem; padding-bottom: .35rem; border-bottom: 1px solid currentColor; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }

.centered { place-items: center; text-align: center; }
.centered > p:last-child { max-width: 600px; margin: 0; color: #667064; line-height: 1.7; }
.pass-grid { display: grid; gap: 1.2rem; align-items: stretch; }
.pass-card { min-width: 0; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pass-card header { min-height: 178px; display: grid; align-content: end; padding: 2.4rem 1.4rem 1.5rem; border-radius: 50% 50% 0 0 / 38% 38% 0 0; background: #e3e8dd; text-align: center; }
.pass-card.featured header { background: var(--sage); }
.pass-card header p { margin: 0 0 .5rem; font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pass-card h3 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; line-height: 1; }
.pass-body { flex: 1; display: flex; flex-direction: column; padding: 1.6rem; }
.pass-price { margin: 0; font-family: var(--display); font-size: 2.5rem; font-weight: 600; }
.pass-card ul { margin: 1.3rem 0 2rem; padding: 0; list-style: none; color: #596355; font-size: .78rem; line-height: 2; }
.pass-card li::before { content: "—"; margin-right: .6rem; color: var(--clay); }
.pass-card .button { width: 100%; margin-top: auto; }

.stats { display: grid; background: var(--paper); border-block: 1px solid var(--line); }
.stats > div { min-width: 0; padding: 2.8rem var(--pad); text-align: center; border-bottom: 1px solid var(--line); }
.stat-number { display: block; font-family: var(--display); font-size: clamp(4rem, 12vw, 7rem); font-weight: 600; line-height: .8; white-space: nowrap; }
.stats p { margin: 1rem 0 0; color: var(--sage-dark); font-size: .62rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }

.gift { display: grid; gap: 2rem; align-items: center; padding: clamp(4.5rem, 8vw, 7rem) var(--pad); background: var(--clay); color: var(--ink); }
.gift > div > p { color: var(--ink); }
.gift h2 { max-width: 750px; margin-top: 1rem; }
.gift .button { justify-self: start; }

.booking { display: grid; gap: 4rem; }
.booking-copy > p:last-child { max-width: 510px; color: #647061; line-height: 1.8; }
.booking h2 { margin-top: 1rem; }
.booking form { align-self: end; display: grid; gap: 1.25rem; padding: clamp(1.4rem, 4vw, 3rem); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field-row { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { color: var(--sage-dark); font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.field label span { text-transform: none; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 0; padding: .9rem; background: var(--alabaster); color: var(--ink); }
.field textarea { resize: vertical; }
.booking button { width: 100%; }
.form-success { margin: 0; padding: .8rem; border-left: 3px solid var(--sage-dark); background: #e7ecdf; }

footer { display: grid; gap: 2.2rem; padding: 3.5rem var(--pad); background: var(--ink); color: #ecede7; }
footer h2 { margin: 0 0 .9rem; color: #aeb8a3; font-family: var(--body); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
footer p, footer address { margin: .3rem 0; color: #c3c9bf; font-size: .74rem; font-style: normal; line-height: 1.7; }
footer > div > a { display: block; width: fit-content; margin-top: .35rem; font-size: .74rem; }
.footer-brand > a { font-family: var(--display); font-size: 4.5rem !important; line-height: .8; text-decoration: none; }

@media (min-width: 620px) {
  .arch-photo { aspect-ratio: 4 / 4; }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking button { width: fit-content; min-width: 210px; }
  footer { grid-template-columns: 1.5fr repeat(3, 1fr); }
}

@media (min-width: 780px) {
  .site-header { padding-top: 2rem; }
  .section-heading:not(.centered) { grid-template-columns: minmax(160px, .35fr) 1fr; align-items: start; }
  .treatment-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
  .ritual { grid-template-columns: minmax(220px, .45fr) minmax(0, 1.55fr); align-items: center; }
  .pass-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats > div { border-right: 1px solid var(--line); border-bottom: 0; }
  .stats > div:last-child { border-right: 0; }
  .gift { grid-template-columns: 1fr auto; }
  .gift .button { justify-self: end; }
  .booking { grid-template-columns: minmax(0, .8fr) minmax(380px, 1.2fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .site-header nav a, .ritual a { transition: color .2s ease, background-color .2s ease, transform .2s ease; }
  .button:hover { transform: translateY(-2px); }
  .button-outline:hover { background: var(--sage-dark); color: #fff; }
  .site-header nav a:hover { color: var(--clay); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* iOS Safari fix: date inputs have an intrinsic minimum width that overflows
   their container on real iPhones (invisible in desktop emulation, which uses
   Chrome's engine, not WebKit's UA styles). Kill the intrinsic sizing. */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

/* Standard: back-to-top button with scroll-progress ring */
.btt-button {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(17, 17, 17, 0.85); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.btt-button.btt-visible { opacity: 1; visibility: visible; transform: none; }
.btt-button:focus-visible { outline: 3px solid #b98a6f; outline-offset: 3px; }
.btt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.btt-ring circle { fill: none; stroke-width: 3; }
.btt-ring-track { stroke: rgba(255, 255, 255, 0.22); }
.btt-ring-fill { stroke: #b98a6f; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; stroke-linecap: round; }
.btt-arrow { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .btt-button { transition: none; } }
