/* ==========================================================================
   SUNSHINE AESTHETIC CLINIC — SITE LAYOUT
   Editorial, image-driven, exceptional whitespace. Mobile-first.
   Builds on the design-system tokens/components.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--content-padding-inline);
}

/* Larger, more editorial body type than the print-spec 9–11pt, for screen */
body { font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.0625rem); }
.body-text, p { font-size: inherit; }

/* Section rhythm — generous, unhurried */
main > section { padding-block: clamp(4rem, 10vw, 8.5rem); }

/* Shared section head */
.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: var(--space-3) 0 0;
}
.section-head__title em { font-style: italic; color: var(--color-champagne-tan-deep); }
.section-head__lead { margin-top: var(--space-4); color: var(--color-text-muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-champagne-tan-deep);
}

/* Image placeholder — swap for real imagery later.
   Sits in the clinic's true tonal range: warm ivory plaster with a soft honey
   wash and the faintest botanical breath. NOT mint — real photography here is
   cream, brass and wood, and the placeholders must not mislead the composition. */
.img-placeholder {
  position: relative;
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(233, 206, 140, 0.30), transparent 60%),
    radial-gradient(90% 80% at 85% 90%, rgba(206, 229, 208, 0.28), transparent 65%),
    linear-gradient(160deg, #EFE7DA 0%, #E3D8C6 55%, #D6C6AE 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.img-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(94,69,75,0.03) 22px 23px);
  pointer-events: none;
}
.img-placeholder__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-rosewood);
  opacity: 0.5;
  z-index: 1;
}

/* ---------------------------------------------------------------- HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color var(--duration-standard) var(--ease-signature),
              box-shadow var(--duration-standard) var(--ease-signature),
              padding var(--duration-standard) var(--ease-signature);
  padding-block: var(--space-4);
}
.site-header.is-scrolled {
  background-color: rgba(243, 240, 215, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--color-champagne-tan-20);
  padding-block: var(--space-2);
}
.site-header__inner {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--content-padding-inline);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.brand { display: flex; align-items: center; gap: var(--space-3); margin-right: auto; }
.brand__mark {
  height: 38px; width: 38px; display: block; border-radius: 9px;
  transition: transform var(--duration-slow) var(--ease-signature);
}
.brand:hover .brand__mark { transform: scale(1.06); }
.is-scrolled .brand__mark { height: 32px; width: 32px; }

/* Full brand logo (face + lotus + script) — the real logo */
.brand__logo {
  height: 58px; width: auto; display: block;
  filter: drop-shadow(0 1px 1px rgba(59,42,46,0.22));
  transition: transform var(--duration-slow) var(--ease-signature),
              height var(--duration-standard) var(--ease-signature);
}
.brand:hover .brand__logo { transform: scale(1.03); }
.is-scrolled .brand__logo { height: 46px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.brand__sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3px;
}
.is-scrolled .brand__name { font-size: 1.2rem; }
.nav { display: none; gap: var(--space-5); }
.nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cocoa-ink);
  position: relative;
  padding-block: 4px;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--color-champagne-tan-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--duration-standard) var(--ease-signature);
}
.nav a:hover::after { transform: scaleX(1); }
.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--color-cocoa-ink);
  transition: transform var(--duration-standard) var(--ease-signature),
              opacity var(--duration-micro) linear;
}
.nav.is-open { display: flex; }

/* ---------------------------------------------------------------- HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background: var(--color-warm-alabaster); /* warm fallback while the video loads — never black */
}
.hero__img {
  width: 100%; height: 120%;
  object-fit: cover;      /* fill the frame, crop gracefully — portrait video, full-bleed */
  object-position: center;
  will-change: transform;
  animation: hero-zoom 20s var(--ease-standard) infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(59,42,46,0.15) 0%,
    rgba(59,42,46,0.05) 40%,
    rgba(94,69,75,0.72) 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 46rem; padding-inline: var(--content-padding-inline); }
.hero .eyebrow { color: var(--color-whisper-mint); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-butter-cream);
  font-size: clamp(2.6rem, 1.6rem + 5.4vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: var(--space-3) 0 var(--space-4);
}
.hero__title em { font-style: italic; color: var(--color-champagne-tan); }
.hero__lead {
  color: rgba(243, 240, 215, 0.86);
  max-width: 34rem;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
  margin-bottom: var(--space-5);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn--on-media {
  color: var(--color-butter-cream);
  border-color: rgba(243,240,215,0.6);
  background: rgba(243,240,215,0.06);
  backdrop-filter: blur(4px);
}
.btn--on-media:hover {
  background: var(--color-butter-cream);
  color: var(--color-cocoa-ink);
  border-color: var(--color-butter-cream);
}

/* Floating elements — soft, slow, ambient */
.hero__float {
  position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(2px); opacity: 0.5;
  will-change: transform;
}
.hero__float--1 {
  width: 220px; height: 220px; top: 18%; right: 8%;
  background: radial-gradient(circle at 30% 30%, rgba(206,229,208,0.9), transparent 70%);
  animation: float-a 14s var(--ease-standard) infinite alternate;
}
.hero__float--2 {
  width: 160px; height: 160px; bottom: 24%; left: 6%;
  background: radial-gradient(circle at 30% 30%, rgba(216,179,132,0.7), transparent 70%);
  animation: float-b 18s var(--ease-standard) infinite alternate;
}
@keyframes float-a { from { transform: translate(0,0); } to { transform: translate(-30px, 40px); } }
@keyframes float-b { from { transform: translate(0,0); } to { transform: translate(24px, -32px); } }

.hero__scroll {
  display: none; /* hidden on mobile/touch — collides with the CTA row and is redundant. Shown on desktop. */
  position: absolute; bottom: var(--space-5); left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(243,240,215,0.5);
  border-radius: var(--radius-pill); z-index: 1;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 8px; border-radius: 2px; background: var(--color-butter-cream);
  animation: scroll-dot 2s var(--ease-signature) infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- TRUST */
.trust { background: var(--color-warm-alabaster); padding-block: clamp(3rem, 6vw, 5rem) !important; }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-4);
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
  line-height: 1;
  color: var(--color-rosewood);
  font-variant-numeric: lining-nums;
}
.stat__label {
  display: block; margin-top: var(--space-2);
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------- SERVICES */
.tiles { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.tile {
  position: relative;
  display: block;
  min-height: 62vw;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.tile__img {
  position: absolute; inset: 0; height: 100%; width: 100%;
  object-fit: cover; object-position: center; /* fill + crop the tile, subject centred */
  transition: transform var(--duration-slow) var(--ease-signature);
}
.tile::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(59,42,46,0) 30%, rgba(94,69,75,0.82) 100%);
  transition: opacity var(--duration-standard) var(--ease-signature);
}
.tile__body {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--space-5);
  color: var(--color-butter-cream);
}
.tile__index {
  font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--color-whisper-mint); margin-bottom: var(--space-2);
}
.tile__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); line-height: 1; margin: 0 0 var(--space-2);
}
.tile__desc {
  font-family: var(--font-body); font-weight: 300;
  max-width: 26rem; color: rgba(243,240,215,0.85);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-signature),
              opacity var(--duration-slow) var(--ease-signature),
              margin var(--duration-slow) var(--ease-signature);
}
.tile__link {
  color: var(--color-champagne-tan);
  margin-top: var(--space-3);
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--duration-standard) var(--ease-signature),
              transform var(--duration-standard) var(--ease-signature);
}
.tile:hover .tile__img { transform: scale(1.06); }
.tile:hover .tile__desc { max-height: 8rem; opacity: 1; margin-top: var(--space-1); }
.tile:hover .tile__link { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------- BEFORE & AFTER */
.results { background: var(--color-warm-alabaster); }
.compare {
  position: relative; max-width: 60rem; margin-inline: auto;
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: var(--color-butter-cream);
  box-shadow: var(--shadow-card);
}
.compare__frame {
  position: relative; width: 100%; aspect-ratio: 4/3;
  border-radius: var(--radius-md); overflow: hidden;
  user-select: none; touch-action: pan-y;
}
.compare__after, .compare__beforeImg { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare__before {
  position: absolute; inset: 0; width: 50%;
  overflow: hidden; border-right: 2px solid var(--color-butter-cream);
}
.compare__beforeImg {
  width: 100vw; max-width: none;
  filter: saturate(0.7) brightness(0.95);
}
.compare__before .img-placeholder { background: linear-gradient(135deg, #cfc4bd, #b9a9a3); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--color-butter-cream); transform: translateX(-1px); z-index: 3;
  pointer-events: none;
}
.compare__handle-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-butter-cream); box-shadow: var(--shadow-card);
  display: grid; place-items: center;
}
.compare__handle-grip::before {
  content: '‹ ›'; letter-spacing: 2px; font-size: 0.9rem; color: var(--color-rosewood);
}
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; z-index: 4; margin: 0;
  background: transparent; /* UA default is white; keep zero stark white in the build */
  -webkit-appearance: none; appearance: none;
}
.compare__tag {
  position: absolute; bottom: var(--space-3); z-index: 3;
  font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: rgba(59,42,46,0.55); color: var(--color-butter-cream); backdrop-filter: blur(4px);
}
.compare__tag--before { left: var(--space-3); }
.compare__tag--after { right: var(--space-3); }

/* ---------------------------------------------------------------- DOCTOR (single feature) */
.doctor { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: center; }
.doctor__portrait {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); width: 100%;
}
.doctor__meta { display: flex; flex-direction: column; align-items: flex-start; }
.doctor__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem); margin: 0; }
.doctor__role {
  display: block; margin-top: var(--space-1);
  font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-champagne-tan-deep);
}
.doctor__bio { margin: var(--space-4) 0; color: var(--color-text-muted); max-width: 34rem; }
.doctor__facts {
  list-style: none; margin: 0 0 var(--space-5); padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
}
.doctor__facts li {
  font-family: var(--font-body); font-size: 0.8rem; color: var(--color-text-muted);
  display: flex; align-items: baseline; gap: 6px;
}
.doctor__factNum {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  color: var(--color-rosewood); line-height: 1;
}

/* ---------------------------------------------------------------- TESTIMONIALS */
.voices { background: var(--color-whisper-mint-10); }
.voices__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.voice { background: var(--color-butter-cream); text-align: left; padding: var(--space-6); }
.voice__quote {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); line-height: 1.35;
  margin: 0 0 var(--space-4); color: var(--color-cocoa-ink);
}
.voice__by { display: flex; flex-direction: column; gap: 2px; }
.voice__name { font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; }
.voice__meta { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-muted); }
.voice__verified { color: var(--color-velvet-emerald); } /* punctuation use — a tick, not a field */

/* ---------------------------------------------------------------- FAQ */
.faq__layout { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.faq__intro { margin-bottom: 0; }
.faq__item { border-bottom: 1px solid var(--color-champagne-tan-20); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  cursor: pointer; list-style: none;
  padding: var(--space-4) 0;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--color-cocoa-ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--color-champagne-tan-deep);
}
.faq__icon::before { width: 16px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 16px; transition: transform var(--duration-standard) var(--ease-signature); }
.faq__item[open] .faq__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a {
  overflow: hidden;
  max-width: 46rem;
  padding-bottom: var(--space-4);
}
.faq__a p { color: var(--color-text-muted); margin: 0; }

/* ---------------------------------------------------------------- FINAL CTA */
.finale {
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(94,69,75,0.85), transparent 60%),
    var(--color-rosewood);
  color: var(--color-butter-cream);
  text-align: center;
}
.finale__inner { max-width: 44rem; margin-inline: auto; }
.finale__eyebrow { color: var(--color-whisper-mint); }
.finale__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 1.5rem + 3.6vw, 4rem); line-height: 1.05;
  letter-spacing: -0.01em; margin: var(--space-3) 0 var(--space-4);
  color: var(--color-butter-cream);
}
.finale__title em { font-style: italic; color: var(--color-champagne-tan); }
.finale__lead { color: rgba(243,240,215,0.82); margin-bottom: var(--space-6); }
.finale__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; align-items: center; }
.btn--on-authority { color: var(--color-butter-cream); }
.btn--on-authority::after { background: var(--color-champagne-tan); }

/* ---------------------------------------------------------------- FOOTER */
.site-footer { background: var(--color-rosewood); color: var(--color-butter-cream); padding-block: clamp(3rem, 6vw, 5rem) var(--space-5); }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.brand__name--footer { color: var(--color-butter-cream); font-size: 1.5rem; }
.site-footer__tag { color: rgba(243,240,215,0.7); margin-top: var(--space-2); max-width: 22rem; }
.site-footer__col { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.site-footer__head {
  font-family: var(--font-body); font-weight: 500; font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-whisper-mint);
  margin-bottom: var(--space-1);
}
.site-footer__col a { color: rgba(243,240,215,0.8); font-size: 0.9rem; transition: color var(--duration-micro) linear; }
.site-footer__col a:hover { color: var(--color-champagne-tan); }
/* Visit-column body text (opening hours) — cream on rosewood, was inheriting dark body colour */
.site-footer__col p { color: rgba(243,240,215,0.8); }
.site-footer__base {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: var(--space-4);
  border-top: 1px solid rgba(243,240,215,0.15);
}
.site-footer__base .body-text { color: rgba(243,240,215,0.6); font-size: 0.8rem; }

/* ---------------------------------------------------------------- REVEAL (JS-driven) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-signature), transform 0.9s var(--ease-signature); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================ RESPONSIVE */
@media (min-width: 600px) {
  .voices__grid { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 30vw; }
  .doctor { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-7); }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .hero__scroll { display: block; } /* room returns on desktop — content is left-aligned, cue sits clear */
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .voices__grid { grid-template-columns: repeat(3, 1fr); }
  .tile { min-height: 26rem; }
  .faq__layout { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-8); }
  .faq__intro { position: sticky; top: 6rem; align-self: start; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img, .hero__float, .hero__scroll span,
  .signature-gradient-bg { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
