/* ==========================================================================
   Senyum Dental Clinic — sample site stylesheet
   One file, no build step. Design tokens live in :root and are reused
   everywhere; change them once to re-skin the whole site.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */

:root {
  /* brand */
  --navy: #1E2552;
  --navy-soft: #3A4170;
  --lilac: #E4C8F0;
  --lilac-light: #F5EAFA;
  --white: #FFFFFF;
  --bg: #FAFAFC;
  --accent: #29B6D8;

  /* service card pastels */
  --card-pink: #FDD3F4;
  --card-peach: #FCC98E;
  --card-blue: #B9BEFB;
  --card-cyan: #22B8DA;
  --card-coral: #FB9B96;
  --card-mint: #A9F9D0;

  /* supporting */
  --line: #E8E8F0;
  --muted: #5F668C;

  /* radii */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* spacing + layout */
  --container: 1200px;
  --header-h: 78px;
  --gutter: 16px;
  --section-y: clamp(64px, 8vw, 128px);

  /* elevation */
  --shadow-sm: 0 2px 10px rgba(30, 37, 82, 0.06);
  --shadow-md: 0 10px 30px rgba(30, 37, 82, 0.08);
  --shadow-lg: 0 24px 60px rgba(30, 37, 82, 0.12);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;
}

/* ------------------------------------------------------------ base reset -- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy-soft);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
blockquote, figure { margin: 0; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

/* ------------------------------------------------------------- typography -- */

.display {
  font-size: clamp(2.5rem, 6.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.08;
}

.h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.h4 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

.accent-serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--navy-soft);
  max-width: 56ch;
}

.muted { color: var(--muted); }

/* --------------------------------------------------------------- layout -- */

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

.section { padding-block: var(--section-y); }
.section--tint { background: var(--lilac-light); }
.section--soft { background: var(--white); }

.section--dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark .lead { color: rgba(255, 255, 255, 0.78); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head--split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  gap: 32px;
}
.section-head--left {
  align-items: flex-start;
  text-align: left;
}
.section-head h2 { max-width: 18ch; }
.section-head--split h2,
.section-head--left h2 { max-width: 24ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.eyebrow svg { flex: none; color: var(--accent); }
.section--dark .eyebrow { color: rgba(255, 255, 255, 0.9); }

/* --------------------------------------------------------------- buttons -- */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-circle: var(--white);
  --btn-arrow: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 6px 6px 6px 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background 0.25s var(--ease);
}

.btn__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--btn-circle);
  color: var(--btn-arrow);
  transition: transform var(--dur) var(--ease);
}
.btn__arrow svg { transition: transform var(--dur) var(--ease); }

.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__arrow { transform: rotate(-45deg); }
.btn:active { transform: translateY(0); }

.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--navy);
  --btn-circle: var(--navy);
  --btn-arrow: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  --btn-circle: var(--navy);
  --btn-arrow: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(30, 37, 82, 0.16);
}

.btn--sm { min-height: 48px; padding-left: 20px; font-size: 0.95rem; }
.btn--sm .btn__arrow { width: 36px; height: 36px; }

.btn--full { width: 100%; justify-content: space-between; }

/* text link with an animated underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-weight: 500;
  color: var(--navy);
  position: relative;
}
.link-arrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { transition: transform 0.4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- header -- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 11px;
}
/* The scrolled background sits on a pseudo-element so the only animated
   property is opacity - no blur, no layout, no repaint of the header. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(252, 251, 254, 0.94);
  box-shadow: 0 1px 0 rgba(30, 37, 82, 0.07);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { position: relative; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.logo svg { flex: none; }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.05); }
.logo__mark { transition: transform 0.4s var(--ease); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.nav a {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--navy);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav a:hover { background: rgba(255, 255, 255, 0.85); }
.nav a[aria-current='page'] {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: rotate(-45deg); }

/* full-screen mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 96px var(--gutter) 40px;
  background: linear-gradient(160deg, var(--lilac-light), var(--white) 60%);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  padding: 14px 4px;
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.03em;
  border-bottom: 1px solid rgba(30, 37, 82, 0.08);
}
.mobile-menu a.btn {
  margin-top: 28px;
  align-self: flex-start;
  padding: 6px 6px 6px 26px;
  border-bottom: 0;
  font-size: 1rem;
  color: var(--btn-fg);
}

body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(28px, 4vw, 64px));
  padding-bottom: clamp(56px, 7vw, 110px);
  background:
    radial-gradient(120% 90% at 18% 0%, var(--lilac) 0%, rgba(228, 200, 240, 0.45) 38%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, var(--lilac-light) 0%, var(--bg) 62%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  left: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 182, 216, 0.16), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
}

.hero h1 { margin-bottom: 22px; }

.hero__badge {
  display: inline-grid;
  place-items: center;
  width: clamp(46px, 4.8vw, 70px);
  height: clamp(46px, 4.8vw, 70px);
  margin-right: 0.42em;
  vertical-align: -0.12em;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(30, 37, 82, 0.12);
  outline: 2px dashed rgba(30, 37, 82, 0.28);
  outline-offset: 4px;
}
.hero__badge svg { width: 58%; height: 58%; }

.hero__actions { margin-top: 30px; }

.hero__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 5vw, 60px);
}

.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 22px 16px 16px;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}
.info-card:hover { transform: translateY(-4px); }
.info-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--card-pink);
  color: var(--navy);
}
.info-card__title {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}
.info-card p,
.info-card a {
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy-soft);
}
.info-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 560px;
}
.hero__media img {
  width: 100%;
  border-radius: 220px 220px var(--r-lg) var(--r-lg);
  -webkit-mask-image: linear-gradient(180deg, #000 0 56%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0 56%, rgba(0, 0, 0, 0) 100%);
}

/* On wide screens the portrait runs past the container and is clipped by the
   section, so it bleeds off the right edge the way the reference does. */
@media (min-width: 1100px) {
  .hero__media {
    justify-self: start;
    width: calc(100% + 7vw);
    max-width: none;
  }
}

/* ---------------------------------------------------------- membership -- */

.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.plan h2 { margin-bottom: 26px; }

.avatar-stack {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.avatar-stack__row { display: flex; }
.avatar-stack img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.avatar-stack img + img { margin-left: -16px; }
.avatar-stack span { font-size: 0.95rem; font-weight: 500; color: var(--navy); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.stat {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.stat__value {
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.stat p { font-size: 0.97rem; margin: 0; }

/* stats band (about page) */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: clamp(32px, 4vw, 52px);
  border-radius: var(--r-lg);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}
.stat-band .stat__value { color: var(--white); }
.stat-band p { font-size: 0.95rem; }

/* ---------------------------------------------------------- service card -- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 26px 84px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--tint) 0%, var(--white) 78%);
  box-shadow: var(--shadow-sm);
  text-align: center;
  overflow: hidden;
  transition: transform var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-8px); }
.service-card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.service-card__price-label { font-size: 0.85rem; color: var(--navy-soft); }
.service-card__price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.service-card__art {
  width: min(210px, 68%);
  height: auto;
  margin: 20px auto 0;
  transition: transform var(--dur) var(--ease);
}
.service-card:hover .service-card__art { transform: translateY(-6px) scale(1.04); }
.service-card .btn {
  position: absolute;
  left: 50%;
  bottom: 24px;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.service-card:hover .btn,
.service-card:focus-within .btn { opacity: 1; transform: translate(-50%, 0); }

.service-card--mint { --tint: var(--card-mint); }
.service-card--cyan { --tint: var(--card-cyan); }
.service-card--peach { --tint: var(--card-peach); }
.service-card--coral { --tint: var(--card-coral); }
.service-card--pink { --tint: var(--card-pink); }
.service-card--blue { --tint: var(--card-blue); }

/* ----------------------------------------------------------- how it works -- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.step + .step { margin-top: 34px; }
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { font-size: 1rem; max-width: 46ch; }
.step__num {
  display: inline-block;
  margin-right: 10px;
  color: var(--accent);
}

.media-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.glass-card {
  position: absolute;
  left: 22px;
  bottom: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-md);
  color: var(--navy);
}
.glass-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--white);
  color: var(--accent);
}
.glass-card strong { display: block; font-size: 1.4rem; letter-spacing: -0.03em; }
.glass-card span { font-size: 0.88rem; color: var(--navy-soft); }
.glass-card__slot {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ---------------------------------------------------------- doctor cards -- */

.doctor-card {
  position: relative;
  padding: 0 0 28px;
  border-radius: var(--r-lg);
  background: #F4F4F8;
  overflow: hidden;
}
.doctor-card__arc {
  position: relative;
  height: 340px;
  margin: 26px 22px 0;
  border-radius: 180px 180px 18px 18px;
  background: var(--arc);
  overflow: hidden;
}
/* The portrait sits inside the arc but a little narrower, so the pastel reads
   as a halo around the dentist rather than being hidden behind the photo. */
.doctor-card__arc img {
  position: absolute;
  left: 8%;
  bottom: 0;
  width: 84%;
  height: 90%;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 150px 150px 0 0;
  transition: transform 0.6s var(--ease);
}
.doctor-card:hover .doctor-card__arc img { transform: scale(1.05); }
.doctor-card__plate {
  position: relative;
  margin: -58px 26px 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.doctor-card__plate h3 { font-size: 1.2rem; margin-bottom: 2px; }
.doctor-card__plate p { font-size: 0.92rem; margin: 0; color: var(--muted); }
.doctor-card .btn {
  margin: 18px auto 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.doctor-card:hover .btn,
.doctor-card:focus-within .btn { opacity: 1; transform: translateY(0); }
.doctor-card--pink { --arc: var(--card-pink); }
.doctor-card--coral { --arc: var(--card-coral); }
.doctor-card--mint { --arc: var(--card-mint); }
.doctor-card--blue { --arc: var(--card-blue); }

/* --------------------------------------------------------------- reviews -- */

.reviews {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.rating {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.rating strong {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
}
.rating > span { font-size: 1.3rem; color: var(--muted); }

.slider { position: relative; overflow: hidden; }
.slider__track {
  display: flex;
  gap: 20px;
  width: max-content;
}
.slider__track.is-animating { animation: marquee 34s linear infinite; animation-play-state: paused; }
.slider__track.is-animating.is-playing { animation-play-state: running; }
.slider:hover .slider__track.is-animating,
.slider:focus-within .slider__track.is-animating { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 10px)); }
}

.review {
  flex: none;
  width: min(340px, 78vw);
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review__head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.review__head strong { display: block; font-size: 0.98rem; color: var(--navy); }
.review__head span { font-size: 0.84rem; color: var(--muted); }
.stars { display: flex; gap: 2px; color: #F5A623; margin-bottom: 10px; }
.review p { font-size: 1rem; color: var(--navy-soft); }

/* ------------------------------------------------------------------- faq -- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.faq__aside {
  position: sticky;
  top: 110px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.faq__aside img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: 20px;
}
.faq__aside h3 { font-size: 1.25rem; margin-bottom: 8px; }
.faq__aside p { font-size: 0.97rem; margin-bottom: 20px; }

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 64px;
  padding: 20px 4px;
  border: 0;
  background: none;
  text-align: left;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
  cursor: pointer;
}
.accordion__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lilac-light);
  color: var(--navy);
  transition: transform 0.35s var(--ease), background 0.25s;
}
.accordion__trigger[aria-expanded='true'] .accordion__icon {
  transform: rotate(45deg);
  background: var(--navy);
  color: var(--white);
}
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.accordion__panel > div { overflow: hidden; }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel p { padding: 0 4px 24px; max-width: 62ch; }

/* ------------------------------------------------------------- post cards -- */

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease);
}
.post-card:hover { transform: translateY(-6px); }
.post-card__media { overflow: hidden; }
.post-card__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--muted); }
.tag {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--lilac-light);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 500;
}
.post-card h3 { font-size: 1.22rem; }
.post-card h3 a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.post-card p { font-size: 0.97rem; }
.post-card .link-arrow { margin-top: auto; }

/* --------------------------------------------------------------- cta band -- */

.cta-band {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}
.cta-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(30, 37, 82, 0.72), rgba(30, 37, 82, 0.28));
}
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 4.5vw, 64px);
}
.cta-band__copy h2 { color: var(--white); }
.cta-band__copy p { color: rgba(255, 255, 255, 0.82); margin-top: 16px; }

/* ----------------------------------------------------------------- forms -- */

.form-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.form-card h3,
.form-card h2 { font-size: 1.35rem; margin-bottom: 6px; }
.form-card > p { font-size: 0.95rem; margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background-color: var(--bg);
  color: var(--navy);
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231E2552' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background-color: var(--white);
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #A3A9C4; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #D64545; background-color: #FEF6F6; }
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #C93B3B;
}
.field.has-error .field__error { display: block; }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 15px 22px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast svg { flex: none; color: var(--card-mint); }

/* --------------------------------------------------------- page banners -- */

.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(40px, 5vw, 72px)) clamp(40px, 5vw, 72px);
  background:
    radial-gradient(90% 120% at 12% 0%, var(--lilac) 0%, rgba(228, 200, 240, 0.35) 40%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(180deg, var(--lilac-light), var(--bg));
  text-align: center;
}
.page-hero .lead { margin-inline: auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--muted);
}
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb a:hover { color: var(--navy); }

.banner-img {
  width: 100%;
  height: clamp(240px, 34vw, 430px);
  object-fit: cover;
  border-radius: var(--r-lg);
}

/* ---------------------------------------------------------- value cards -- */

.value-card {
  padding: 30px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}
.value-card:hover { transform: translateY(-6px); }
.value-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--tint, var(--lilac-light));
  color: var(--navy);
}
.value-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value-card p { font-size: 0.97rem; margin: 0; }

/* -------------------------------------------------------------- gallery -- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery button {
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery button:hover img { transform: scale(1.07); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(16, 20, 46, 0.92);
}
.lightbox[open] { display: grid; }
.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 86vh;
  border-radius: var(--r-md);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1.4rem;
  cursor: pointer;
}

/* --------------------------------------------------------- services rows -- */

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.service-row + .service-row { margin-top: clamp(48px, 6vw, 96px); }
.service-row--flip .service-row__media { order: 2; }
.service-row__media {
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--tint, var(--lilac-light)), var(--white));
  display: grid;
  place-items: center;
  padding: 36px;
  min-height: 320px;
}
.service-row__media img { width: min(260px, 70%); }
.service-row h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.service-row__price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--lilac-light);
  color: var(--navy);
  font-weight: 500;
}
.check-list { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
}
.check-list svg { flex: none; margin-top: 3px; color: var(--accent); }

/* ---------------------------------------------------------------- article -- */

.article {
  max-width: 740px;
  margin-inline: auto;
}
.article h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 44px 0 14px;
}
.article h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.article p { font-size: 1.08rem; line-height: 1.75; }
.article ul { list-style: none; display: grid; gap: 10px; margin: 18px 0 24px; }
.article ul li { display: flex; gap: 10px; font-size: 1.05rem; }
.article ul li::before { content: '—'; color: var(--accent); flex: none; }
.article blockquote {
  margin: 32px 0;
  padding: 26px 30px;
  border-radius: var(--r-md);
  background: var(--lilac-light);
  font-size: 1.15rem;
  color: var(--navy);
}

.author-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.author-box img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box h3 { font-size: 1.05rem; margin-bottom: 2px; }
.author-box p { font-size: 0.93rem; margin: 0; }

/* ---------------------------------------------------------- contact bits -- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.contact-card {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}
.contact-card:hover { transform: translateY(-5px); }
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 15px;
  background: var(--tint, var(--card-pink));
  color: var(--navy);
}
.contact-card h3,
.contact-card h2 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: 0.97rem; margin: 0; }
.contact-card a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-card a:hover { color: var(--navy); text-decoration: underline; }

#map {
  height: clamp(300px, 42vw, 460px);
  border-radius: var(--r-lg);
  background: var(--lilac-light);
  z-index: 0;
}

.aside-card {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.aside-card h3,
.aside-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.aside-card dl { margin: 0 0 22px; font-size: 0.97rem; }
.aside-card dt { font-weight: 500; color: var(--navy); margin-top: 12px; }
.aside-card dt:first-child { margin-top: 0; }
.aside-card dd { margin: 2px 0 0; }
.aside-card dd a { display: inline-flex; align-items: center; min-height: 44px; }

/* ------------------------------------------------------------------- 404 -- */

.notfound {
  background:
    radial-gradient(90% 100% at 50% 0%, var(--lilac) 0%, rgba(228, 200, 240, 0.3) 38%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, var(--lilac-light), var(--bg) 60%);
  display: grid;
  place-items: center;
  min-height: 72vh;
  padding-block: calc(var(--header-h) + 60px) 60px;
  text-align: center;
}
.notfound__code {
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin-bottom: 8px;
}
.notfound img { width: min(200px, 44vw); margin: 0 auto 18px; }

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(48px, 6vw, 80px) 28px;
}
.site-footer h4,
.footer-heading {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255, 255, 255, 0.7); transition: color 0.2s; }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.95rem; max-width: 34ch; }
.footer-list { list-style: none; display: grid; gap: 2px; font-size: 0.95rem; }
.footer-list li { display: flex; align-items: center; min-height: 40px; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.socials a:hover { background: var(--accent); color: var(--white); transform: translateY(-3px); }
.footer-bottom a { display: inline-block; padding-block: 12px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.87rem;
}

/* ------------------------------------------------------- whatsapp button -- */

.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42);
  transition: transform 0.3s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); }
/* The old infinite pulse kept a compositor animation alive on every page for
   the whole visit. The ring now only expands on hover or focus. */
.wa-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.45;
  transform: scale(1);
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease);
  z-index: -1;
}
.wa-fab:hover::before,
.wa-fab:focus-visible::before { transform: scale(1.6); opacity: 0; }
.wa-fab__tip {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 0.84rem;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.wa-fab:hover .wa-fab__tip,
.wa-fab:focus-visible .wa-fab__tip { opacity: 1; transform: translateX(0); }

/* On touch devices there is no hover, so the card CTAs that normally reveal on
   hover are shown permanently — otherwise they are unreachable. */
@media (hover: none), (max-width: 900px) {
  .service-card .btn { opacity: 1; transform: translate(-50%, 0); }
  .doctor-card .btn { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ animation -- */
/* Initial hidden states are applied only when JS is running, so the page is
   fully readable with JS disabled or if GSAP fails to load.                  */

.js-anim [data-reveal] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim [data-reveal] { opacity: 1 !important; transform: none !important; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .slider__track.is-animating { animation: none; }
}

/* ----------------------------------------------------------- breakpoints -- */

@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq__aside { position: static; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
  .faq__aside img { height: 220px; margin-bottom: 0; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid,
  .plan,
  .steps,
  .reviews,
  .service-row,
  .cta-band__inner { grid-template-columns: minmax(0, 1fr); }
  .service-row--flip .service-row__media { order: 0; }
  .hero__media { justify-self: center; max-width: 420px; }
  .hero__media img { border-radius: var(--r-lg); -webkit-mask-image: none; mask-image: none; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps .media-frame { max-height: 420px; }
}

@media (max-width: 640px) {
  :root { --section-y: clamp(52px, 12vw, 80px); }
  .card-grid,
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .faq__aside { grid-template-columns: 1fr; }
  .faq__aside img { height: 240px; }
  .hero__cards { grid-template-columns: minmax(0, 1fr); }
  .glass-card { flex-wrap: wrap; }
  .glass-card__slot { margin-left: 0; }
  .author-box { flex-direction: column; text-align: center; }
  .mobile-menu a { font-size: 1.6rem; }
  .wa-fab { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
