/* =============================================================
   PAGES — section styles.
    1. Hero            2. Trust strip      3. Closing CTA band
    4. Care cards      5. USP blocks       6. Stats / counters
    7. Day timeline    8. Gallery + lightbox
    9. Testimonials   10. Pricing teaser  11. Accordion / FAQ
   12. Comparison     13. Team cards      14. Rooms
   15. Editorial (Life)  16. Steps & process
   17. Contact + form
   ============================================================= */

/* ---------- 1. HERO ---------- */
.hero {
  position: relative;
  background: var(--cream);
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-7);
  overflow: hidden;
}
.hero::before {
  /* soft sand wash behind the copy, keeps it off pure cream */
  content: ""; position: absolute; inset: 0 0 38% 0;
  background: linear-gradient(180deg, var(--sand) 0%, rgba(237,230,216,0) 100%);
  opacity: .8; pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: var(--sp-5); align-items: center; }

@media (min-width: 1024px) {
  .hero { padding-top: var(--sp-8); padding-bottom: var(--sp-9); }
  .hero__inner { grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 4vw, 4.5rem); }
}

.hero__copy { max-width: 36rem; }
.hero h1 { font-size: var(--fs-display); margin-bottom: var(--sp-3); }
.hero h1 em {
  font-style: normal;
  color: var(--sage-deep);
  /* warm underline that sits behind the words */
  background: linear-gradient(180deg, transparent 62%, var(--gold-soft) 62%, var(--gold-soft) 92%, transparent 92%);
}
.hero__lead { font-size: var(--fs-lead); color: var(--muted); margin-bottom: var(--sp-5); }
.hero .btn-row { margin-bottom: var(--sp-4); }
@media (max-width: 639px) {
  .hero .btn-row .btn { width: 100%; }
  .hero .btn--lg { min-height: 54px; font-size: var(--fs-body); }
}

/* Trust line that must be visible without scrolling */
.hero__trustline {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

/* Photo side */
.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  aspect-ratio: 4 / 5;
  background: var(--sand);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile: photo first and compact, so the headline, both buttons and the
   trust line all still fit on one phone screen without scrolling. */
@media (max-width: 1023px) {
  .hero__media { order: -1; }
  .hero__frame { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
  /* the 4:5 front-desk photo in a wide frame: keep the sign (25-40% down) and the desk top */
  .hero__frame img { object-position: 50% 25%; }
}
/* Phones: every element of the hero shrinks a little so the headline,
   both buttons AND the trust line clear the fold on a 390x844 screen. */
@media (max-width: 639px) {
  .hero { padding-top: var(--sp-4); }
  .hero__inner { gap: var(--sp-4); }
  .hero__frame { aspect-ratio: 2.2 / 1; }
  .hero .eyebrow { font-size: .8125rem; letter-spacing: .09em; margin-bottom: var(--sp-2); }
  .hero .eyebrow::before { width: 20px; }
  .hero h1 { margin-bottom: var(--sp-2); }
  .hero__lead { font-size: 1.0625rem; margin-bottom: var(--sp-4); }
  .hero .btn-row { gap: var(--sp-2); margin-bottom: var(--sp-3); }

  /* The trust line stops being pills and becomes one compact run of
     facts, so it clears the sticky action bar on a 375x812 screen. */
  .hero__trustline { padding-top: var(--sp-3); gap: var(--sp-2) var(--sp-4); }
  .hero__trustline .badge {
    background: none; box-shadow: none; padding: 0;
    font-size: .875rem; font-weight: 500; color: var(--muted);
  }
  .hero__trustline .badge svg { color: var(--sage-deep); }
}

/* Floating caption card on the photo. Hidden on phones, where the same
   fact appears as a badge in the trust line instead. */
.hero__note { display: none; }
@media (min-width: 1024px) {
  .hero__note {
    position: absolute; right: calc(var(--sp-5) * -1); bottom: var(--sp-6); max-width: 19rem;
    display: flex; align-items: center; gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border-radius: var(--r-md);
    box-shadow: var(--sh-2);
    font-size: var(--fs-sm); line-height: 1.45; color: var(--bark);
  }
}
.hero__note strong { display: block; }

/* ---------- 2. TRUST STRIP ---------- */
.trust { background: var(--sage-tint); }
.trust__grid { display: grid; gap: var(--sp-5); }
@media (min-width: 560px)  { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .trust__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .trust__grid { grid-template-columns: repeat(6, 1fr); } }
.trust__item { display: flex; gap: var(--sp-3); align-items: flex-start; }
@media (min-width: 1200px) { .trust__item { flex-direction: column; gap: var(--sp-3); } }
.trust__item h3 { font-family: var(--font-body); font-size: var(--fs-body); font-weight: 600; margin: 0 0 2px; }
.trust__item p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.trust__icon { color: var(--sage-dark); }
.trust__icon svg { width: 34px; height: 34px; }

/* ---------- 3. CLOSING CTA BAND ---------- */
.cta-band {
  position: relative;
  background: var(--sage-dark);
  color: #ECEADF;
  overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -8%; top: -30%;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.20), rgba(201,162,39,0) 68%);
  pointer-events: none;
}
.cta-band__inner { position: relative; display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.35fr 1fr; gap: var(--sp-8); } }
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-3); }
.cta-band p { color: #D8D8CB; }
.cta-band .btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .cta-band .btn-row { justify-content: flex-end; } }

/* The 5-step journey, repeated at the foot of every page */
.journey {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: var(--fs-sm); color: #C9CBBC;
}
.journey__step { display: inline-flex; align-items: center; gap: var(--sp-2); }
.journey__step b { color: var(--white); font-weight: 600; }
.journey__sep { color: var(--gold); }

/* ---------- 4. CARE-TYPE CARDS ---------- */
.care-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 620px)  { .care-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .care-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) {
  .care-grid { grid-template-columns: repeat(6, 1fr); }
  /* five cards over six columns: 2+2+2 then 2+2 centred beats one orphan */
  .care-grid > :nth-child(1), .care-grid > :nth-child(2), .care-grid > :nth-child(3) { grid-column: span 2; }
  .care-grid > :nth-child(4) { grid-column: 2 / span 2; }
  .care-grid > :nth-child(5) { grid-column: 4 / span 2; }
}
.care-card { padding: var(--sp-5); gap: var(--sp-3); }
.care-card h3 { font-size: var(--fs-h4); }
.care-card p { font-size: var(--fs-sm); line-height: 1.6; }
.care-card__go {
  margin-top: auto; padding-top: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 600; color: var(--sage-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.care-card__go::after { content: "\2192"; transition: transform var(--t-base) var(--ease); }
@media (hover: hover) { .care-card:hover .care-card__go::after { transform: translateX(4px); } }

/* ---------- 5. USP BLOCKS ---------- */
.usp { display: grid; gap: var(--sp-5); }
@media (min-width: 640px)  { .usp { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .usp { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6) var(--sp-7); } }
.usp__item { display: flex; flex-direction: column; gap: var(--sp-3); }
.usp__item h3 { font-size: var(--fs-h4); margin: 0; }
.usp__item p { color: var(--muted); margin: 0; }

/* ---------- 6. STATS / COUNTERS ---------- */
.stats { display: grid; gap: var(--sp-5); text-align: center; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  display: block;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  line-height: 1; color: var(--sage-dark);
  margin-bottom: var(--sp-2);
}
.stat__label { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.section--dark .stat__num { color: var(--gold-soft); }
.section--dark .stat__label { color: #C9CBBC; }

/* ---------- 7. "A DAY AT SUNHEAL" TIMELINE ---------- */
.timeline {
  position: relative;
  /* 24px minimum, so a heading can never reach the next column. */
  --timeline-gap: var(--sp-5);
}

/* Mobile and tablet: vertical, rail down the left */
.timeline__track { position: relative; padding-left: 44px; }
.timeline__rail {
  position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px;
  background: var(--sand-deep); border-radius: 2px; overflow: hidden;
}
.timeline__progress { position: absolute; inset: 0; background: var(--sage); }
.timeline__item { position: relative; padding-bottom: var(--sp-6); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -44px; top: 2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--sage-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-dark);
}
.timeline__dot svg { width: 17px; height: 17px; }
.timeline__time {
  display: block; font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .04em; color: var(--gold-deep); margin-bottom: 2px;
}
.timeline__item h3 { font-size: var(--fs-h4); margin: 0 0 var(--sp-2); }
.timeline__item p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* ---- Horizontal layouts ----
   Shared by the three-row and the nine-across arrangements below. Every
   time label is now a single short time ("7am"), so it no longer needs
   the two-line reserve it had when "Through the night" was one of them. */
@media (min-width: 768px) {
  .timeline__item h3 {
    font-size: 1.0625rem; font-family: var(--font-body); font-weight: 600;
    overflow-wrap: break-word;
  }
  .timeline__item p { font-size: .875rem; overflow-wrap: break-word; }
  .timeline__time { line-height: 1.3; }
}

/* From tablet up: three rows of three. The day has nine moments, which
   splits evenly into 3 x 3 and never leaves a short last row; nine across
   at these widths would leave each column too narrow to read.
   Deliberately NOT bounded with max-width: 1439px - a viewport is not
   always a whole number of CSS pixels, and at exactly 1439 neither query
   matched, dropping the whole timeline back to the mobile list. The
   nine-across block below simply overrides this one. */
@media (min-width: 768px) {
  .timeline__track {
    padding-left: 0; padding-top: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--timeline-gap);
    row-gap: var(--sp-8);
  }
  /* The single full-width rail only suits one row, so each item carries its
     own segment, joined across the gap so a row still reads as one line. */
  .timeline__rail { display: none; }
  .timeline__item { padding-bottom: 0; padding-top: 58px; }
  .timeline__dot { left: 50%; top: 6px; transform: translateX(-50%); }
  .timeline__item::before {
    content: ""; position: absolute; top: 21px; height: 2px;
    left: calc(var(--timeline-gap) / -2); right: calc(var(--timeline-gap) / -2);
    background: var(--sand-deep);
  }
  /* nth-child counts the rail too (it is the track's first child), so
     the first item of each row is child 2, 5, 8 and the last is 4, 7, 10. */
  .timeline__item:nth-child(3n+2)::before { left: 0; }
  .timeline__item:nth-child(3n+1)::before { right: 0; }
}

/* Large desktop: all nine across, with the drawn rail running through them.
   Every property the two-row block set is undone here. */
@media (min-width: 1440px) {
  .timeline__track {
    padding-left: 0; padding-top: 58px;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    column-gap: var(--timeline-gap);
    row-gap: 0;
  }
  .timeline__rail {
    display: block;
    left: 0; right: 0; top: 21px; bottom: auto; width: auto; height: 2px;
  }
  .timeline__progress { transform-origin: left center; transform: scaleX(var(--draw, 0)); }
  .timeline__item { padding-bottom: 0; padding-top: 0; }
  .timeline__item::before { display: none; }
  .timeline__dot { left: 50%; top: -52px; transform: translateX(-50%); }
}

/* ---------- 8. GALLERY + LIGHTBOX ---------- */
.gallery { display: grid; gap: var(--sp-3); }
@media (min-width: 600px)  { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); } }
.gallery__item {
  position: relative; display: block; padding: 0; border: 0;
  background: var(--sand); border-radius: var(--r-md);
  overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
@media (hover: hover) { .gallery__item:hover img { transform: scale(1.05); } }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-3);
  background: linear-gradient(180deg, rgba(43,37,30,0), rgba(43,37,30,.78));
  color: #fff; font-size: var(--fs-sm); font-weight: 500; text-align: left;
}

/* Phones: swipeable carousel with dots instead of a grid */
@media (max-width: 599px) {
  .gallery.is-carousel {
    display: flex; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    gap: var(--sp-3);
  }
  .gallery.is-carousel::-webkit-scrollbar { display: none; }
  .gallery.is-carousel .gallery__item { flex: 0 0 82%; scroll-snap-align: center; }
}
.gallery-dots { display: none; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-4); }
/* "Show more photos" under a gallery that shows its first few (gallery.js) */
.gallery-more { margin: var(--sp-5) 0 0; max-width: none; text-align: center; }
@media (max-width: 599px) { .gallery-dots.is-on { display: flex; } }
.gallery-dots button {
  width: 30px; height: 30px; padding: 0; border: 0; background: none;
  display: grid; place-items: center;
}
.gallery-dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sand-deep);
  transition: background-color var(--t-fast) var(--ease), width var(--t-fast) var(--ease);
}
.gallery-dots button[aria-current="true"]::before { background: var(--sage-deep); width: 22px; border-radius: 4px; }

/* Category filter */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.filter {
  min-height: 44px; padding: 0 var(--sp-4);
  background: var(--white); color: var(--bark);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.filter:hover { border-color: var(--sage-soft); }
.filter[aria-pressed="true"] { background: var(--sage-deep); color: var(--white); border-color: var(--sage-deep); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  display: grid; place-items: center;
  padding: var(--sp-4);
  background: rgba(30,26,22,.92);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.lightbox.is-open {
  opacity: 1; visibility: visible;
  transition: opacity var(--t-base) var(--ease), visibility 0s linear 0s;
}
.lightbox__fig { margin: 0; max-width: min(1100px, 100%); max-height: 100%; text-align: center; }
.lightbox__img {
  max-width: 100%; max-height: 74vh; width: auto; margin-inline: auto;
  border-radius: var(--r-md); background: #2a2622;
  transform: scale(.96); transition: transform var(--t-base) var(--ease-out);
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__cap { color: #EDE9E1; font-size: var(--fs-sm); margin-top: var(--sp-4); }
.lightbox__count { display: block; color: #A9A296; font-size: var(--fs-xs); margin-top: 4px; }
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; border: 0;
  font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center;
}
.lightbox__btn:hover { background: rgba(255,255,255,.26); }
.lightbox__prev { left: max(10px, 2vw); }
.lightbox__next { right: max(10px, 2vw); }
.lightbox__close { position: absolute; top: max(10px, 2vh); right: max(10px, 2vw); transform: none; }
@media (max-width: 599px) {
  .lightbox__btn { width: 46px; height: 46px; top: auto; bottom: max(14px, 3vh); transform: none; }
  .lightbox__prev { left: 22%; }
  .lightbox__next { right: 22%; }
}

/* ---------- 9. TESTIMONIALS ---------- */
.quotes { display: grid; gap: var(--sp-4); }
@media (min-width: 760px)  { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
/* margin: 0 - a <blockquote> keeps the browser's 40px side margins otherwise,
   which pushed the cards in from the section heading */
.quote { margin: 0; padding: var(--sp-5); background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.quote__mark { font-family: var(--font-head); font-size: 2.5rem; line-height: 1; color: var(--gold); display: block; margin-bottom: var(--sp-2); }
.quote p { font-size: var(--fs-body); color: var(--ink); margin: 0 0 var(--sp-4); }
.quote__by { font-size: var(--fs-sm); color: var(--muted); font-style: normal; }
.quote__by b { display: block; color: var(--bark); font-style: normal; }
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-deep); }
.rating svg { width: 15px; height: 15px; }

/* ---------- 10. PRICING TEASER ---------- */
.pricing { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1fr 1.05fr; gap: var(--sp-8); } }
.price-lead {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  color: var(--bark); line-height: 1.15; margin-bottom: var(--sp-3);
}
.price-lead small { display: block; font-family: var(--font-body); font-size: var(--fs-body); font-weight: 500; color: var(--muted); margin-top: var(--sp-2); }
.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.includes li { display: flex; gap: var(--sp-3); align-items: flex-start; margin: 0; font-size: var(--fs-body); }
.includes svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--sage-deep); }

/* ---------- 11. ACCORDION ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) 0; min-height: 60px;
  background: none; border: 0; text-align: left;
  font-family: var(--font-head); font-size: var(--fs-h4); font-weight: 500; color: var(--bark);
  line-height: 1.35;
}
.acc__btn:hover { color: var(--sage-dark); }
.acc__icon {
  position: relative;
  flex: none; width: 28px; height: 28px; margin-top: 2px;
  border-radius: 50%; background: var(--sage-tint); color: var(--sage-dark);
  display: grid; place-items: center;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.acc__icon::before { content: ""; position: absolute; width: 11px; height: 2px; background: currentColor; border-radius: 2px; }
.acc__icon::after  { content: ""; position: absolute; width: 2px; height: 11px; background: currentColor; border-radius: 2px; transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease); }
.acc__btn[aria-expanded="true"] .acc__icon { background: var(--sage-deep); color: var(--white); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: scaleY(0); opacity: 0; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-base) var(--ease); }
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner > div { padding: 0 0 var(--sp-5); max-width: 65ch; }
.acc__inner p { color: var(--muted); }
.acc__inner p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .acc__panel { transition: none; } }

.faq-group { margin-bottom: var(--sp-8); }
.faq-group:last-child { margin-bottom: 0; }
.faq-group__head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.faq-group__head h2 { margin: 0; }

/* ---------- 12. COMPARISON (Why Sunheal) ---------- */
.compare__card { padding: var(--sp-5); border-radius: var(--r-lg); }
.compare__card--worry { background: var(--sand); border: 1px solid var(--sand-deep); }
.compare__card--answer { background: var(--white); box-shadow: var(--sh-2); border-left: 4px solid var(--sage); }
.compare__label {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.compare__label svg { width: 15px; height: 15px; }
.compare__card--worry .compare__label { color: #8A5A2B; }
.compare__card--answer .compare__label { color: var(--sage-dark); }
.compare__card h3 { font-size: var(--fs-h4); }
.compare__card p:last-child { margin-bottom: 0; }
.compare-row { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-5); }
@media (min-width: 900px) { .compare-row { grid-template-columns: 1fr 1.1fr; gap: var(--sp-5); align-items: stretch; } }

/* ---------- 13. TEAM CARDS ---------- */
.team-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 560px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }
.team-card__frame { aspect-ratio: 1 / 1; }
.team-card__role {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0;
}
.team-card h3 { font-size: var(--fs-h4); margin: 0; }
.team-card__cred { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.team-card__quote {
  font-size: var(--fs-sm); color: var(--ink); margin: 0;
  padding-top: var(--sp-3); border-top: 1px solid var(--line); font-style: italic;
}
.team-card__langs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: var(--fs-xs); font-weight: 600;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--sage-tint); color: var(--sage-dark);
}

/* Featured cards: doctor and nurse manager */
.lead-team { display: grid; gap: var(--sp-5); }
@media (min-width: 760px) { .lead-team { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); } }
.lead-card { display: grid; gap: var(--sp-5); align-items: center; background: var(--white); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-2); }
@media (min-width: 480px) { .lead-card { grid-template-columns: 150px 1fr; } }
.lead-card__frame { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1/1; background: var(--sand); }
.lead-card__frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 14. ROOMS ---------- */
.room { display: grid; gap: var(--sp-5); align-items: center; margin-bottom: var(--sp-8); }
.room:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .room { grid-template-columns: 1.15fr 1fr; gap: var(--sp-7); }
  .room:nth-child(even) .room__media { order: 2; }
}
.room__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 4/3; background: var(--sand); }
.room__media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-2); }
@media (min-width: 560px) { .checklist { grid-template-columns: repeat(2, 1fr); } }
.checklist li { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-sm); margin: 0; }
.checklist svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--sage); }

/* ---------- 15. EDITORIAL (Life at Sunheal) ---------- */
.editorial { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) {
  .editorial { grid-template-columns: repeat(12, 1fr); gap: var(--sp-6) var(--sp-7); }
  .editorial__media { grid-column: 1 / span 7; }
  .editorial__copy  { grid-column: 8 / span 5; }
  .editorial--flip .editorial__media { grid-column: 6 / span 7; grid-row: 1; }
  .editorial--flip .editorial__copy  { grid-column: 1 / span 5; grid-row: 1; }
}
/* No suitable real photo yet: the text takes a comfortable reading width
   instead of sitting in the narrow column beside an empty gap. */
@media (min-width: 900px) {
  .editorial--solo .editorial__copy,
  .editorial--solo.editorial--flip .editorial__copy { grid-column: 1 / span 8; }
}
.editorial + .editorial { margin-top: var(--section-y); }
.editorial__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); background: var(--sand); }
.editorial__media img { width: 100%; height: auto; display: block; }
/* The caption sits inside the rounded, clipped photo frame, so it needs its
   own inset or the first letter is cut by the corner. */
.editorial__caption { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-3); padding-inline: var(--sp-4); }
.editorial__copy h2 { margin-bottom: var(--sp-3); }

/* Weekly activity grid */
.week { overflow-x: auto; scrollbar-width: thin; padding-bottom: var(--sp-2); }
.week__grid { display: grid; gap: var(--sp-3); }
@media (min-width: 760px) { .week__grid { grid-template-columns: repeat(7, minmax(130px, 1fr)); } }
.week__day { background: var(--white); border-radius: var(--r-md); padding: var(--sp-4); box-shadow: var(--sh-1); }
.week__name { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 var(--sp-3); }
.week__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.week__list li { font-size: var(--fs-sm); color: var(--muted); margin: 0; line-height: 1.45; }
.week__list b { display: block; color: var(--bark); font-weight: 600; font-size: .8125rem; }

/* ---------- 16. STEPS AND PROCESS ---------- */
.steps { display: grid; gap: var(--sp-4); }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .steps--5 { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; padding: var(--sp-5); background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.step__n {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sage-deep); color: var(--white);
  font-size: var(--fs-sm); font-weight: 700;
  margin-bottom: var(--sp-3);
}
.step h3 { font-size: var(--fs-h4); margin: 0 0 var(--sp-2); }
.step p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.section--dark .step { background: rgba(255,255,255,.07); box-shadow: none; }
.section--dark .step h3 { color: var(--white); }
.section--dark .step p { color: #C9CBBC; }
.section--dark .step__n { background: var(--gold); color: #3A2F08; }

/* ---------- 17. CONTACT AND FORM ---------- */
.contact-grid { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.05fr; gap: var(--sp-8); } }
.map-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); background: var(--sand); aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.info-list li { display: flex; gap: var(--sp-4); margin: 0; }
.info-list h3 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.info-list p { margin: 0; }

.form-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: var(--sp-5); }
@media (min-width: 640px) { .form-card { padding: var(--sp-7); } }
.field { margin-bottom: var(--sp-5); }
.field label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--sp-2); color: var(--bark); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--cream);
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  font-size: var(--fs-body); color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.field textarea { min-height: 104px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23635A50%27 stroke-width=%272%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M6 9l6 6 6-6%27/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus { background: var(--white); border-color: var(--sage); }
.field .err { display: none; font-size: var(--fs-sm); color: #A33A15; margin-top: 6px; font-weight: 500; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #A33A15; }
.field.is-invalid .err { display: block; }
.form-note { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-4); }
.form-success {
  display: none;
  padding: var(--sp-6); text-align: center;
  background: var(--sage-tint); border-radius: var(--r-md);
}
.form-success.is-on { display: block; }
.form-success .ibubble { margin: 0 auto var(--sp-4); background: var(--white); }
form.is-sent { display: none; }

/* Footer social icons */
.footer__social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer__social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #E8E5DA;
}
.footer__social a:hover { background: rgba(255,255,255,.2); }
.footer__social svg { width: 20px; height: 20px; }

/* Section-break image band, parallax on desktop only */
.band { position: relative; height: clamp(180px, 26vw, 340px); overflow: hidden; background: var(--sand); }
.band img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }

/* Deep-link anchors clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 60px); }

/* A quiet aside for copy that deserves emphasis without alarm.
   (Replaces the amber build-note styling on published content.) */
.callout {
  font-size: var(--fs-body);
  color: var(--muted);
  background: var(--sage-tint);
  border-left: 3px solid var(--sage);
  border-radius: var(--r-sm);
  padding: var(--sp-4) var(--sp-5);
  max-width: var(--maxw-text);
}

/* ---------- 404 PAGE ---------- */
.nf { padding-block: var(--section-y); }
.nf__inner { max-width: 60ch; }
.nf h1 { margin-bottom: var(--sp-4); }
.nf .lead { margin-bottom: var(--sp-7); }
.nf__actions { flex-wrap: wrap; gap: var(--sp-3); }

.nf__count {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5);
  color: var(--muted); font-size: var(--fs-sm);
}
.nf__count p { margin: 0; }
.nf__num {
  display: inline-block; min-width: 1.4em; text-align: center;
  font-variant-numeric: tabular-nums;          /* no jitter as it counts */
  color: var(--bark); font-weight: 700;
}
.nf__stay {
  background: transparent; border: 0; padding: 0;
  color: var(--sage-deep); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px;
  cursor: pointer; min-height: 44px;
}
.nf__stay:hover { color: var(--bark); }


/* ---------- CLIENT CONTENT: small additions ---------- */

/* Founders without a photograph yet: their initials, set like the
   headings, on the same sand square the photo would sit in. */
.lead-card__frame--mono {
  display: flex; align-items: center; justify-content: center;
  background: var(--sage-tint);
}
.lead-card__frame--mono span {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  letter-spacing: .04em; color: var(--sage-deep);
}

/* Life: the sample menu */
.menu-title { font-size: var(--fs-h4); margin: var(--sp-6) 0 var(--sp-3); }
.menu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.menu-list li { margin: 0; padding-left: var(--sp-4); border-left: 2px solid var(--sage-soft); }
.menu-list strong { display: block; font-size: var(--fs-sm); letter-spacing: .04em; color: var(--sage-deep); }

/* Life: the activity list, as tiles */
.activities {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px)  { .activities { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .activities { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.activity {
  margin: 0; padding: var(--sp-5) var(--sp-3);
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--sh-1);
  text-align: center; font-weight: 600; color: var(--sage-dark);
  overflow-wrap: break-word;
  display: flex; align-items: center; justify-content: center;   /* one- and two-line labels line up */
}

/* Contact: "We usually reply within an hour" under the WhatsApp buttons */
.wa-reply { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: var(--muted); }

/* Contact: social links */
.social-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }

/* Contact: documents and what to bring, under the admission steps */
.adm-lists { display: grid; gap: var(--sp-6); margin-top: var(--sp-7); }
@media (min-width: 700px) { .adm-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adm-lists h3 { font-size: var(--fs-h4); margin: 0 0 var(--sp-3); }
.adm-lists ul { margin: 0; padding-left: 1.2em; }
.adm-lists li { margin: 0 0 var(--sp-2); }
.section--dark .adm-lists li, .section--dark .adm-lists p { color: #D8D8CB; }

/* Founder cards, tablet range: two cards side by side leave each about
   330px, and a 150px frame left the text 112px - narrower than one long
   Malay word ("berperikemanusiaan"), which pushed the card off-screen.
   A smaller frame here gives the words room, and minmax(0, 1fr) means the
   text column can wrap but never force the card wider than its column. */
.lead-card > .stack { min-width: 0; overflow-wrap: break-word; }
@media (min-width: 480px) { .lead-card { grid-template-columns: 150px minmax(0, 1fr); } }
@media (min-width: 760px) and (max-width: 1099.98px) {
  .lead-card { grid-template-columns: 96px minmax(0, 1fr); }
}

/* Contact: the visit is three steps now (appointment, see, quotation) */
@media (min-width: 700px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
