/* Dela Cruz Family Clinic: sample 4-page site by Wensie Works */
:root {
  --page: #f7f1e7;
  --paper: #fffdf9;
  --ink: #1d2b29;
  --body: #44534f;
  --teal: #1e6f6b;
  --teal-hover: #185a57;
  --soft-teal: #dcebe8;
  /* Text terracotta: 5.8:1 on the cream, 5.4:1 on the warm glow at the top */
  --terra: #9a4423;
  --soft-terra: #f3dfd3;
  --line: #e6dccd;
  /* Section bands: the soft teal and soft terracotta laid over the cream */
  --tint: #ebeee7;
  --blush: #f6ebe0;
  /* Footer text on the ink: 9.6:1 and 6.4:1 */
  --on-ink: #d3dedb;
  --on-ink-soft: #a3b6b1;
  --max: 74rem;
  --gutter: clamp(16px, 4vw, 32px);
  --space: clamp(4rem, 2.5rem + 5vw, 7rem);
  --radius: 20px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 16px; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1200px 520px at 8% -10%, rgba(220, 235, 232, 0.7), transparent 60%) no-repeat,
    radial-gradient(900px 440px at 100% 0%, rgba(243, 223, 211, 0.55), transparent 55%) no-repeat,
    var(--page);
  color: var(--body);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }

a { color: var(--teal); }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.5rem + 3.5vw, 4.5rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.85rem); }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.sample :focus-visible,
.foot :focus-visible,
.band :focus-visible { outline-color: #fff; }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; outline: 3px solid var(--teal); outline-offset: 3px; box-shadow: 0 0 0 9px #fff; } /* white halo: the ring reads on the dark banner too */

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sample {
  margin: 0;
  padding: 8px var(--gutter);
  background: var(--ink);
  color: #e8f0ee;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}
.sample a { color: #fff; font-weight: 600; }

/* Header: pinned from 640px up; on phones its two rows would take too much of the screen */
.top {
  position: relative;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px max(var(--gutter), calc((100% - var(--max)) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 0.85rem + 0.5vw, 1.12rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand svg { width: 28px; height: 28px; color: var(--teal); flex: none; }
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 500;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--body);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--teal);
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--teal-hover); color: #fff; }
.btn-small { min-height: 44px; padding: 10px 16px; font-size: 0.95rem; }
.btn-line {
  background: transparent;
  color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--teal);
}
.btn-line:hover {
  background: var(--soft-teal);
  color: var(--teal-hover);
}
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--soft-teal); color: var(--teal-hover); }
.btn-wide { width: 100%; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.more svg { width: 18px; height: 18px; flex: none; }

.eyebrow {
  margin-bottom: 18px;
  color: var(--terra);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lead {
  max-width: 34rem;
  margin: 22px 0 0;
  color: var(--body);
  font-size: clamp(1.15rem, 1rem + 0.45vw, 1.25rem);
  line-height: 1.6;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head p { max-width: 36rem; margin-top: 14px; }

/* Soft photo shapes: a rounded photo with a soft blob behind it */
.soft-shape {
  position: relative;
  isolation: isolate;
}
.soft-shape::before {
  content: "";
  position: absolute;
  inset: 7% -5% -7% 5%;
  z-index: -1;
  background: var(--soft-teal);
  border-radius: 42% 58% 48% 52% / 48% 42% 58% 52%;
}
.soft-shape.soft-terra::before {
  inset: 6% 4% -9% -6%;
  background: var(--soft-terra);
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
}
.soft-shape img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  background: var(--soft-teal);
}
/* The soft shapes reach past their photos; clip them sideways without breaking the sticky header */
main { overflow-x: clip; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Home hero: the text starts level with the photo, and its trust line closes level with the booking card */
.hero { padding: clamp(1.75rem, 0.5rem + 3vw, 3rem) 0 var(--space); }
.hero-grid {
  display: grid;
  gap: 48px;
}
.hero-copy { display: flex; flex-direction: column; }
.hero h1 { max-width: 12ch; }
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.trust svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
  flex: none;
}
.hero-visual { position: relative; }
.hero-visual .soft-shape img { aspect-ratio: 3 / 2; }

/* Booking card */
.book-card {
  position: relative;
  margin: -56px 12px 0;
  padding: clamp(20px, 1rem + 1vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -16px rgba(29, 43, 41, 0.16);
  container-type: inline-size;
}
.book-title { font-size: 1.5rem; }
.book-card > p:not(.book-hint) {
  margin-top: 6px;
  font-size: 0.95rem;
}
.book-hint {
  margin-top: 14px;
  font-size: 0.95rem;
  text-align: center;
}
.book-hint a { white-space: nowrap; }

/* Forms */
.form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.form > * { grid-column: 1 / -1; min-width: 0; }
/* Name and mobile share a row once the card is wide enough */
@container (min-width: 400px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form > .field-half { grid-column: auto; }
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #d9cdbb;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--soft-teal);
  border-color: var(--teal);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
}

/* Sections */
.block { padding: var(--space) 0; }
.block-paper { background: var(--paper); }
.block-tint { background: var(--tint); }
.block-soft { background: var(--blush); }

/* Services on the home page: the heading on the side, a ruled list beside it */
.service-split {
  display: grid;
  gap: 8px 48px;
}
.service-side .more { margin-top: 18px; }
.service-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.service-list svg {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  margin-top: 3px;
  color: var(--teal);
}
.service-list p { max-width: 30rem; }

/* Numbered steps with thin rules */
.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 12px;
  padding: 28px 0;
  border-top: 1px solid rgba(29, 43, 41, 0.14);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  color: var(--terra);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.steps strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
}
.steps span { display: block; max-width: 26rem; }

/* Photo and text side by side */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
.split h2 + p { margin-top: 18px; }
.split p { max-width: 32rem; }

/* Team */
.people {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.person {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .person:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -12px rgba(29, 43, 41, 0.14);
  }
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--soft-teal);
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  flex: none;
}
.person strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.person .role {
  display: block;
  margin-top: 6px;
  color: var(--terra);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.person .bio { margin-top: 12px; }

/* Reviews: one large quote, two short ones beside it */
.quotes {
  display: grid;
  gap: 0 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.quote { padding: 28px 0; border-top: 1px solid var(--line); }
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--terra);
}
.stars svg { width: 16px; height: 16px; }
.quote blockquote {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.quote cite {
  display: block;
  margin-top: 14px;
  color: var(--body);
  font-size: 0.95rem;
  font-style: normal;
}
.quote-lead { border-top: 0; padding-top: 0; }
.quote-lead blockquote {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.quote-lead blockquote::before {
  content: "\201C";
  display: block;
  height: 0.62em;
  color: var(--terra);
  font-size: 2.2em;
  line-height: 1;
}

/* FAQ */
.faq-split {
  display: grid;
  gap: 8px 48px;
}
.faq { border-bottom: 1px solid rgba(29, 43, 41, 0.14); }
.faq details { border-top: 1px solid rgba(29, 43, 41, 0.14); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 20px 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(30, 111, 107, 0.35);
  color: var(--teal);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--teal); }
.faq details p {
  max-width: 36rem;
  padding: 0 48px 22px 0;
}

/* Visit */
.visit {
  display: grid;
  gap: 48px;
  align-items: center;
}
.visit-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.hours {
  max-width: 440px;
  margin: 28px 0 0;
  padding: 0;
}
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.hours div:last-child { border-bottom: 1px solid var(--line); }
.hours dt { color: var(--ink); font-weight: 600; }
.hours dd { margin: 0; text-align: right; }
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft-teal);
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.open-badge.is-closed {
  background: var(--soft-terra);
  color: var(--terra);
}
.open-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.visit-meta {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.visit-meta strong { color: var(--ink); }
.visit-meta a { color: inherit; }
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.visit .soft-shape img { aspect-ratio: 4 / 5; }

/* Inner page heads */
.page-head { padding: clamp(2.5rem, 1rem + 4vw, 4.5rem) 0 var(--space); }
.page-head-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.page-head .soft-shape img { aspect-ratio: 5 / 4; }
.about-copy { max-width: 34rem; margin-top: 18px; }

/* Services page: a ruled price list with the payment note beside it */
.price-split {
  display: grid;
  gap: 40px 64px;
  align-items: start;
}
.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.price-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.price-list p { max-width: 28rem; margin-top: 6px; }
.price {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}
.price small {
  display: block;
  margin-top: 4px;
  color: var(--body);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
}
.note {
  padding: 24px;
  background: var(--soft-teal);
  border-radius: var(--radius);
  color: var(--ink);
}
.note svg { width: 26px; height: 26px; margin-bottom: 12px; color: var(--teal); }
.info-boxes {
  display: grid;
  gap: 16px 64px;
}
.info-box { padding-top: 24px; border-top: 2px solid var(--ink); }
.info-box h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.85rem); }
.info-box ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.info-box li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
}
.info-box li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--teal);
}

/* A closing band in teal */
.band {
  padding: clamp(3.5rem, 2rem + 5vw, 6rem) 0;
  background: var(--teal);
  color: #fff;
}
.band-inner {
  display: grid;
  gap: 24px 48px;
  align-items: center;
}
.band h2 { color: #fff; }
.band p { margin-top: 12px; color: #e3f0ee; font-size: 1.15rem; }

/* About: points with thin rules */
.points {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.points li { padding: 28px 0; border-top: 1px solid rgba(29, 43, 41, 0.14); }
.points svg { width: 28px; height: 28px; margin-bottom: 16px; color: var(--teal); }
.points strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
}
.points span { display: block; max-width: 24rem; margin-top: 8px; }

/* About: inside the clinic, one tall photo and two beside it */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft-teal);
}
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Contact */
.contact-head { padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.info-grid {
  display: grid;
  margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.info-grid li { padding: 22px 0; border-top: 1px solid var(--line); }
.info-grid strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.info-grid .open-badge { letter-spacing: 0; text-transform: none; }
.info-grid a { color: var(--ink); }
.info-grid span { display: block; }
.contact-split {
  display: grid;
  gap: 40px;
  align-items: stretch;
}
.contact-split .soft-shape img { height: 100%; aspect-ratio: 4 / 5; }
.contact-split .book-card { margin: 0; }
.emergency {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 32px 0 0;
  font-size: 0.95rem;
}
.emergency svg { width: 20px; height: 20px; margin-top: 3px; color: var(--terra); flex: none; }

/* Request sent */
.sent {
  display: grid;
  place-items: center;
  padding: var(--space) 0;
  text-align: center;
}
.sent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--soft-teal);
  color: var(--teal);
}
.sent-icon svg { width: 34px; height: 34px; }
.sent .lead { margin-left: auto; margin-right: auto; }
.sent .actions { justify-content: center; }

/* Footer */
.foot {
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.95rem;
}
.foot a { color: #fff; }
.foot-grid {
  display: grid;
  gap: 36px 48px;
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem);
  padding-bottom: 48px;
}
.foot .brand { color: #fff; margin-right: 0; }
.foot .brand svg { color: #9fd3cb; }
.foot-brand p { max-width: 20rem; margin-top: 14px; }
.foot-title,
.inner-page .foot-title {
  margin-bottom: 14px;
  color: var(--on-ink-soft);
  font: 600 0.78rem/1.4 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.foot-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-list li + li { margin-top: 6px; }
.foot-pages a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
}
.foot-pages a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--on-ink-soft);
  font-size: 0.875rem;
}

/* Motion */
.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
}
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.book-rise {
  animation: bookRise 0.7s ease both;
}
@keyframes bookRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}
.open-badge.is-open .open-dot {
  animation: pulseDot 1.6s ease-in-out infinite;
}
/* A slow 1.02 zoom on photo hover */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .soft-shape img,
  .gallery img { transition: transform 0.9s ease; }
  .soft-shape:hover img,
  .gallery figure:hover img { transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready,
  .reveal-in,
  .book-rise,
  .person,
  .btn,
  .open-badge.is-open .open-dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 559px) {
  .nav { order: 1; width: 100%; justify-content: space-between; gap: 8px; }
  .actions .btn,
  .visit-actions .btn { flex: 1 1 100%; }
  .faq details p { padding-right: 0; }
}

@media (min-width: 640px) {
  html { scroll-padding-top: 88px; }
  .top { position: sticky; padding-top: 12px; padding-bottom: 12px; }
  .people { grid-template-columns: repeat(3, 1fr); }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .info-boxes { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: repeat(3, 1fr); border-bottom: 0; }
  .info-grid li { padding: 24px 28px 4px; border-top: 0; border-left: 1px solid var(--line); }
  .info-grid li:first-child { padding-left: 0; border-left: 0; }
  .gallery { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery figure:first-child { grid-column: auto; grid-row: span 2; }
  .gallery img { aspect-ratio: auto; min-height: 220px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(48px, 5vw, 80px);
    align-items: stretch;
  }
  .hero .actions { margin-bottom: 40px; }
  .trust { margin-top: auto; }
  .book-card { margin: -88px 28px 0; }
  .service-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .service-side { position: sticky; top: 120px; align-self: start; }
  .service-list li:nth-child(-n + 2) { border-top: 0; padding-top: 6px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px 40px 4px;
    border-top: 0;
    border-left: 1px solid rgba(29, 43, 41, 0.14);
  }
  .steps li:first-child { padding-left: 0; border-left: 0; }
  .steps li::before { margin-bottom: 28px; font-size: 3rem; }
  .steps span { margin-top: 10px; }
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 96px); }
  .quotes { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .quote-lead { grid-row: span 2; padding-right: 24px; }
  .quotes .quote:nth-child(2) { border-top: 0; padding-top: 0; }
  .faq-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .visit { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 96px); }
  .page-head-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 96px); }
  .price-split { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .price-aside { position: sticky; top: 120px; }
  .band-inner { grid-template-columns: 1fr auto; }
  .points { grid-template-columns: repeat(3, 1fr); }
  .points li {
    padding: 6px 40px 4px;
    border-top: 0;
    border-left: 1px solid rgba(29, 43, 41, 0.14);
  }
  .points li:first-child { padding-left: 0; border-left: 0; }
  .contact-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 72px); }
  .foot-grid { grid-template-columns: 1.6fr 1.2fr 1.2fr 0.8fr; }
}

/* Keep the committed inner-page layout while the home page uses its new design. */
body.inner-page {
  --max: 1160px;
  --gutter: 16px;
  display: block;
  flex-direction: row;
  min-height: 0;
  background:
    radial-gradient(1200px 500px at 8% -10%, rgba(220, 235, 232, 0.7), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(243, 223, 211, 0.55), transparent 55%),
    var(--page);
  font: 400 16px/1.6 var(--font-body);
}
.inner-page main { flex: initial; }
.inner-page h1,
.inner-page h2,
.inner-page h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: wrap;
}
.inner-page h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); text-wrap: balance; }
.inner-page h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); font-weight: 600; }
.inner-page h3 { font-size: 1.12rem; font-weight: 600; }
.inner-page .wrap { max-width: var(--max); }
.inner-page .top {
  gap: 12px 20px;
  max-width: none;
  margin: 0;
  padding: 14px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
.inner-page .brand { gap: 10px; font-size: 1.05rem; line-height: inherit; }
.inner-page .nav { gap: 20px; }
.inner-page .nav a { display: block; min-height: 0; padding: 4px 0; }
.inner-page .btn { min-height: 0; padding: 12px 22px; }
.inner-page .btn-small { padding: 8px 16px; font-size: 0.95rem; }
.inner-page .btn:hover { transform: none; }
.inner-page .lead {
  max-width: 36em;
  margin: 14px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}
.inner-page .actions { margin-top: 28px; }
.inner-page .soft-shape::before { inset: 8% -6% -8% 6%; }
.inner-page .soft-shape.soft-terra::before { inset: 6% 4% -10% -8%; }
.inner-page .soft-shape img { aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.inner-page .book-card {
  margin: -72px 16px 0;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(29, 43, 41, 0.08);
  container-type: normal;
}
.inner-page .book-card h2,
.inner-page .book-card .book-title { font-size: 1.35rem; }
.inner-page .book-card > p { margin-top: 8px; font-size: 0.95rem; }
.inner-page .form { grid-template-columns: none; margin-top: 18px; }
.inner-page .form > * { grid-column: auto; min-width: auto; }
.inner-page .field input,
.inner-page .field select,
.inner-page .field textarea { min-height: 0; border-color: var(--line); }
.inner-page .block { padding: 64px 0; }
.inner-page .block-tint { background: rgba(220, 235, 232, 0.45); }
.inner-page .cards {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.inner-page .card {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.inner-page .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--soft-teal);
  color: var(--teal);
  border: 1px solid rgba(30, 111, 107, 0.18);
}
.inner-page .card-icon svg { width: 22px; height: 22px; }
.inner-page .card p { margin-top: 8px; font-size: 0.95rem; }
.inner-page .price-pill {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft-teal);
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 600;
}
.inner-page .split { gap: 28px; }
.inner-page .split p { margin-top: 12px; max-width: 36em; }
.inner-page .people { margin: 28px 0 0; }
.inner-page .person {
  gap: 14px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.inner-page .avatar { width: 72px; height: 72px; }
.inner-page .person strong {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: inherit;
  letter-spacing: normal;
}
.inner-page .person .role {
  margin-top: 2px;
  font-size: 0.92rem;
  letter-spacing: normal;
  text-transform: none;
}
.inner-page .person .bio { margin-top: 8px; font-size: 0.95rem; }
.inner-page .open-badge { margin-top: 16px; font-size: 0.9rem; line-height: inherit; }
.inner-page .page-head { padding: 40px 0 8px; }
.inner-page .note {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  color: inherit;
  font-size: 0.95rem;
}
.inner-page .info-boxes { gap: 16px; margin-top: 32px; }
.inner-page .info-box {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.inner-page .info-box h2 { font-size: 1.25rem; }
.inner-page .info-box ul { margin: 14px 0 0; padding: 0 0 0 1.15em; list-style: disc; }
.inner-page .info-box li { position: static; padding: 0; border: 0; }
.inner-page .info-box li + li { margin-top: 8px; }
.inner-page .info-box li::before { content: none; }
.inner-page .cta-box {
  margin-top: 48px;
  padding: 36px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.inner-page .cta-box p { margin: 10px auto 22px; max-width: 32em; }
.inner-page .about-copy { max-width: 40em; margin-top: 8px; }
.inner-page .about-copy p + p { margin-top: 14px; }
.inner-page .about-photo-wrap { margin-top: 32px; max-width: 720px; }
.inner-page .about-photo-wrap img { aspect-ratio: 16 / 10; }
.inner-page .gallery { grid-template-columns: none; grid-template-rows: none; margin: 28px 0 0; }
.inner-page .gallery img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
.inner-page .points { grid-template-columns: none; gap: 16px; margin: 28px 0 0; }
.inner-page .points li {
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.inner-page .points strong { font-family: inherit; font-size: inherit; line-height: inherit; }
.inner-page .points span { max-width: none; margin-top: 4px; }
.inner-page .info-grid { gap: 16px; margin: 28px 0 0; border-bottom: 0; }
.inner-page .info-grid li,
.inner-page .info-grid li:first-child {
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.inner-page .info-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.inner-page .info-grid a { color: var(--teal); }
.inner-page .info-grid span { display: inline; }
.inner-page .info-grid .open-badge { display: inline-flex; }
.inner-page .contact-split { margin-top: 36px; gap: 28px; align-items: start; }
.inner-page .contact-split .soft-shape img { height: auto; aspect-ratio: 4 / 3; }
.inner-page .contact-split .book-card { margin: 0; box-shadow: 0 12px 32px rgba(29, 43, 41, 0.07); }
.inner-page .emergency { display: block; margin: 28px 0 0; }
.inner-page .sent { display: block; padding: 64px 0 80px; }
.inner-page .reveal-in { transition-duration: 0.55s; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .inner-page .card:hover,
  .inner-page .person:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(29, 43, 41, 0.08);
  }
  .inner-page .soft-shape img { transition: none; }
  .inner-page .soft-shape:hover img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .inner-page .card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
@media (min-width: 640px) {
  .inner-page .cards { grid-template-columns: repeat(2, 1fr); }
  .inner-page .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .inner-page .cards { grid-template-columns: repeat(3, 1fr); }
  .inner-page .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .inner-page .contact-split { grid-template-columns: 0.95fr 1.05fr; gap: 40px; }
  .inner-page .book-card { margin: -48px 24px 0; }
  .inner-page .gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .inner-page .nav { order: 1; width: 100%; justify-content: space-between; gap: 8px; }
  .inner-page .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .inner-page .btn { min-height: 44px; }
  .inner-page .top .btn-small { margin-left: auto; min-height: 44px; }
  .inner-page .actions .btn { flex: 1 1 100%; }
  .inner-page .field input,
  .inner-page .field select,
  .inner-page .field textarea { min-height: 44px; }
}
