/* ==========================================================================
   Dr Teeth Clinics — Landing Experience
   Design system: clean clinical white base, deep teal trust colour,
   brand cyan + gold sampled from the clinic logo.
   Zero dependencies. Motion mirrors the Dentaire reference template.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --primary:        #0E384C;   /* deep teal — headings, dark sections */
  --primary-soft:   #16506C;
  --accent:         #0A7CB0;   /* dental blue — CTAs (4.6:1 on white) */
  --accent-dark:    #08658F;
  --brand-cyan:     #00A8E8;   /* logo blue — icons, graphic accents */
  --gold:           #E9A722;   /* logo gold — stars, small accents */
  --gold-soft:      #FBF1DC;

  /* Neutrals */
  --ink:            #0E384C;
  --body:           #527282;   /* body copy */
  --muted:          #7B95A3;
  --white:          #FFFFFF;
  --tint:           #EFF8FF;   /* pale blue section wash */
  --tint-warm:      #F8FAFB;
  --line:           #E3EDF3;
  --line-dark:      #FFFFFF1F;
  --error:          #D64545;
  --success:        #1E9E6A;

  /* Type */
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --radius:    16px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 2px 10px rgba(14, 56, 76, .06);
  --shadow:    0 4px 30px rgba(14, 56, 76, .08);
  --shadow-lg: 0 20px 60px rgba(14, 56, 76, .12);

  /* Rhythm */
  --section-y: 100px;
  --gutter: 24px;
  --maxw: 1200px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Same reasoning as .hero — clip, so the body never becomes a scroll box. */
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.4rem); }
h4 { font-size: 1.0625rem; }

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

a { color: var(--accent); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--primary); color: #fff; padding: 12px 20px;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--tint); }
.section--warm { background: var(--tint-warm); }
.section--dark { background: var(--primary); color: #CBDCE5; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--tight { padding-block: 70px; }

.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   4. Section headings
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-cyan);
}
.section--dark .eyebrow {
  color: #7FD4F5;
  background: rgba(255, 255, 255, .07);
  border-color: var(--line-dark);
}

.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.0625rem; }
.section--dark .section-head p { color: #A9C4D1; }

.headline em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.headline em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .04em;
  height: .18em;
  background: var(--gold);
  opacity: .28;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease) .5s;
}
.is-visible .headline em::after,
.headline.is-visible em::after { transform: scaleX(1); }
.section--dark .headline em { color: #7FD4F5; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease);
}
/* Sweep fill — mirrors the reference template's button hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(10, 124, 176, .28);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(14, 56, 76, .28); }

.btn--gold { background: var(--gold); color: #3A2A05; }
.btn--gold::before { background: var(--primary); }
.btn--gold:hover { color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--line);
}
.btn--outline:hover { color: #fff; border-color: var(--primary); }

.btn--ghost-light {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: var(--line-dark);
}
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { color: var(--primary); border-color: #fff; }

.btn--white { background: #fff; color: var(--primary); }
.btn--white::before { background: var(--accent); }
.btn--white:hover { color: #fff; }

.btn--block { width: 100%; }
.btn--lg { padding: 18px 38px; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease),
              padding .4s var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 6px 26px rgba(14, 56, 76, .09);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding-block: 10px;
  transition: min-height .4s var(--ease);
}
.site-header.is-stuck .header-inner { min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img {
  width: 54px; height: 54px;
  object-fit: contain;
  transition: width .4s var(--ease), height .4s var(--ease);
}
.site-header.is-stuck .brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-size: 1.1875rem; font-weight: 700;
  color: var(--primary); letter-spacing: -.02em;
}
.brand-tag {
  font-size: .625rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: .9375rem; font-weight: 500; color: var(--primary);
  position: relative; padding-block: 6px;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--primary); font-size: .9375rem;
  white-space: nowrap;
}
.header-phone .icon-circle {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tint); color: var(--accent);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.header-phone:hover { color: var(--accent); }
.header-phone:hover .icon-circle {
  background: var(--accent); color: #fff; transform: scale(1.06);
}
.header-phone span small {
  display: block; font-size: .625rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer;
  padding: 0; place-items: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--primary); position: relative;
  transition: background .25s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 2px; border-radius: 2px; background: var(--primary);
  transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Hero — mirrors the reference "book appointment" split layout
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: 90px;
  background: var(--tint);
  /* `clip` — never `hidden`. An overflow:hidden box is a scroll container, so
     jumping to #book (which lives in here) would scroll the hero's own
     contents and wedge the headline under the fixed header. `clip` contains
     the decorative glows without creating that scroll container. */
  overflow: hidden;
  overflow: clip;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
/* soft brand glows */
.hero::before {
  width: 620px; height: 620px;
  top: -280px; right: -180px;
  background: radial-gradient(circle, rgba(0, 168, 232, .16), transparent 68%);
}
.hero::after {
  width: 520px; height: 520px;
  bottom: -300px; left: -200px;
  background: radial-gradient(circle, rgba(233, 167, 34, .14), transparent 68%);
}
.hero > .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 { margin-bottom: 20px; }
.hero-lead { font-size: 1.0625rem; max-width: 34em; margin-bottom: 28px; }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 10px;
  font-size: .8125rem; font-weight: 600; color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.hero-badge svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* Google-style rating block from the reference hero */
.rating-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 22px;
  margin-top: 28px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.rating-strip > * + * {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.rating-block { display: flex; align-items: center; gap: 12px; }
.rating-copy a { color: var(--accent); font-weight: 600; }
.rating-copy a:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .rating-strip > * + * { padding-left: 0; border-left: 0; }
}
.rating-score {
  font-size: 1.75rem; font-weight: 700; color: var(--primary); line-height: 1;
}
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars svg { width: 17px; height: 17px; }
.rating-copy { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.rating-copy strong { display: block; color: var(--primary); font-size: .875rem; }

/* --------------------------------------------------------------------------
   8. Appointment form card
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 38px;
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--brand-cyan), var(--accent) 55%, var(--gold));
}
.form-card__head { text-align: center; margin-bottom: 26px; }
.form-card__head h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card__head p { font-size: .9375rem; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .8125rem; font-weight: 600; color: var(--primary);
}
.field label .req { color: var(--error); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--ink);
  background: var(--tint-warm);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23527282' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: #9BB0BC; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 124, 176, .12);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); background: #FFF7F7; }

.field-error {
  font-size: .75rem; color: var(--error); font-weight: 500;
  min-height: 0; display: none;
}
.field.has-error .field-error { display: block; }

.form-note {
  font-size: .75rem; color: var(--muted); text-align: center;
  margin-top: 14px; line-height: 1.6;
}
.form-note svg {
  width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px;
  color: var(--success);
}

.form-status {
  margin-top: 14px; padding: 13px 16px; border-radius: 12px;
  font-size: .875rem; font-weight: 500; display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: #E8F7F0; color: #14684A; border: 1px solid #B7E5D1; }
.form-status--err { background: #FDECEC; color: #A32828; border: 1px solid #F5C6C6; }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading .btn-label { visibility: hidden; }
.btn.is-loading::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   9. Info strip (phone / hours / location)
   -------------------------------------------------------------------------- */
.info-strip { background: var(--primary); padding-block: 46px; }
.info-strip .grid { gap: 26px; }
.info-item { display: flex; align-items: center; gap: 16px; }
.info-item + .info-item { position: relative; }
.info-icon {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .09);
  border: 1px solid var(--line-dark);
  color: #7FD4F5;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.info-item:hover .info-icon {
  background: var(--brand-cyan); color: var(--primary); transform: translateY(-3px);
}
.info-icon svg { width: 24px; height: 24px; }
.info-item h3 {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #86A7B6; margin-bottom: 3px;
}
.info-item p { color: #fff; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
.info-item a { color: #fff; }
.info-item a:hover { color: #7FD4F5; }

/* --------------------------------------------------------------------------
   10. Service cards
   -------------------------------------------------------------------------- */
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              border-color .45s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tint);
}
.service-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.07); }
.service-card__num {
  position: absolute; top: 14px; left: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .95);
  color: var(--accent); font-weight: 700; font-size: .875rem;
  box-shadow: var(--shadow-sm);
}
.service-card__body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.service-card__body h3 { margin-bottom: 10px; }
.service-card__body p { font-size: .9375rem; margin-bottom: 18px; }
.service-card__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 600; color: var(--accent);
}
.service-card__link svg {
  width: 16px; height: 16px;
  transition: transform .35s var(--ease);
}
.service-card:hover .service-card__link svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   11. Feature / benefit cards
   -------------------------------------------------------------------------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--accent);
  margin-bottom: 18px;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.feature-card:hover .feature-icon {
  background: var(--accent); color: #fff; transform: rotate(-6deg) scale(1.05);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.feature-card p { font-size: .9375rem; margin: 0; }

.section--dark .feature-card {
  background: rgba(255, 255, 255, .05);
  border-color: var(--line-dark);
}
.section--dark .feature-card p { color: #A9C4D1; }
.section--dark .feature-icon { background: rgba(255, 255, 255, .09); color: #7FD4F5; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .9375rem;
}
.checklist li::before {
  content: "";
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  margin-top: 2px;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7CB0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--dark .checklist li { color: #BDD4DE; }
.section--dark .checklist li::before {
  background-color: rgba(255, 255, 255, .1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FD4F5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   12. Media / image frames
   -------------------------------------------------------------------------- */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 4 / 3; }

.media-stack { position: relative; padding-bottom: 60px; padding-right: 50px; }
.media-stack__main { aspect-ratio: 4 / 4.6; }
.media-stack__inset {
  position: absolute;
  right: 0; bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  border: 6px solid #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-stack__inset img { width: 100%; height: 100%; object-fit: cover; }

/* Floating stat badge over imagery */
.stat-badge {
  position: absolute;
  left: -18px; top: 34px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 13px;
  z-index: 3;
}
.stat-badge__num {
  font-size: 1.9rem; font-weight: 700; color: var(--accent); line-height: 1;
}
.stat-badge__label {
  font-size: .75rem; font-weight: 600; color: var(--primary);
  line-height: 1.35; text-transform: uppercase; letter-spacing: .05em;
}

/* --------------------------------------------------------------------------
   13. Doctor card
   -------------------------------------------------------------------------- */
.doctor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px 1fr;
  box-shadow: var(--shadow);
}
.doctor-card__media { position: relative; background: var(--tint); min-height: 340px; }
.doctor-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor-card__body { padding: 36px; }
.doctor-card__body h3 { font-size: 1.5rem; margin-bottom: 4px; }
.doctor-role {
  display: inline-block; font-size: .8125rem; font-weight: 600;
  color: var(--accent); letter-spacing: .04em; margin-bottom: 16px;
}
.doctor-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-size: .75rem; font-weight: 600; color: var(--primary);
  background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 6px 13px;
}

/* --------------------------------------------------------------------------
   14. Counters
   -------------------------------------------------------------------------- */
.counter-item { text-align: center; }
.counter-num {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
  font-weight: 700; color: #fff; line-height: 1;
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.counter-num .suffix { color: var(--gold); }
.counter-item p {
  margin: 10px 0 0; font-size: .875rem; color: #A9C4D1;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
}

/* --------------------------------------------------------------------------
   15. Steps ("what to expect")
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 24px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.step__num {
  counter-increment: step;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tint); color: var(--accent);
  font-weight: 700; font-size: 1.0625rem;
  border: 1px solid var(--line);
}
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.step p { font-size: .9375rem; margin: 0; }

/* --------------------------------------------------------------------------
   16. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: 14px; }
.acc-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.acc-item.is-open { box-shadow: var(--shadow); border-color: transparent; }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: inherit; font-size: 1.0625rem; font-weight: 600;
  color: var(--primary); text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 22px 24px;
  transition: color .3s var(--ease);
}
.acc-trigger:hover { color: var(--accent); }
.acc-icon {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tint); color: var(--accent);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.acc-icon svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.acc-item.is-open .acc-icon { background: var(--accent); color: #fff; }
.acc-item.is-open .acc-icon svg { transform: rotate(180deg); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p {
  padding: 0 24px 24px;
  font-size: .9375rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   17. Testimonials
   -------------------------------------------------------------------------- */
.slider { position: relative; }
.slider__track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 20px;
  margin: -6px -2px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 calc((100% - 52px) / 3);
  scroll-snap-align: start;
  min-width: 0;
}

.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.quote-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.quote-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--accent);
  margin-bottom: 18px;
}
.quote-mark svg { width: 20px; height: 20px; }
.quote-card blockquote {
  margin: 0 0 22px; font-size: .9375rem; line-height: 1.8; flex: 1;
}
.quote-author { display: flex; align-items: center; gap: 13px; }
.quote-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 1rem;
}
.quote-author strong { display: block; color: var(--primary); font-size: .9375rem; }
.quote-author span { font-size: .8125rem; color: var(--muted); }

.slider__nav { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.slider__btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--primary);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.slider__btn:hover:not(:disabled) {
  background: var(--accent); color: #fff; border-color: var(--accent);
  transform: translateY(-2px);
}
.slider__btn:disabled { opacity: .35; cursor: default; }
.slider__btn svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   18. Parallax CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding-block: 110px;
  background: var(--primary);
  overflow: hidden;
  text-align: center;
  color: #CBDCE5;
}
.cta-band__bg {
  position: absolute; inset: -12% 0;
  background-size: cover;
  background-position: center;
  opacity: .17;
  will-change: transform;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 56, 76, .82), rgba(14, 56, 76, .93));
}
.cta-band > .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { max-width: 620px; margin: 0 auto 32px; color: #B9D0DB; font-size: 1.0625rem; }

/* --------------------------------------------------------------------------
   19. Map & contact
   -------------------------------------------------------------------------- */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--tint);
  min-height: 100%;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
}

.contact-list { display: grid; gap: 22px; margin-bottom: 28px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row .info-icon {
  background: var(--tint); border-color: var(--line); color: var(--accent);
  width: 50px; height: 50px;
}
.contact-row:hover .info-icon { background: var(--accent); color: #fff; }
.contact-row h3 {
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px; font-weight: 600;
}
.contact-row p { color: var(--primary); font-weight: 600; margin: 0; line-height: 1.55; }
.contact-row a { color: var(--primary); }
.contact-row a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--primary);
  color: #93B2C1;
  padding-top: 70px;
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 50px;
  padding-bottom: 50px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: #7E9EAE; }
.site-footer h4 {
  color: #fff; font-size: 1rem; margin-bottom: 20px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-links a { color: #93B2C1; }
.footer-links a:hover { color: #7FD4F5; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: .8125rem;
}
.footer-bottom p { margin: 0; }
.footer-disclaimer {
  font-size: .75rem; line-height: 1.65; color: #7E9EAE;
  border-top: 1px solid var(--line-dark);
  padding-block: 20px;
}

/* Build credit — sits at the very bottom of every page */
.credit {
  border-top: 1px solid var(--line-dark);
  padding-block: 24px 28px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}
.credit-tech {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .01em;
  color: #7E9EAE;
}
.credit-tech svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.credit-by {
  display: inline-flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 9px;
  font-size: .9375rem; font-weight: 700; color: #C6DAE4;
}
.credit-brand {
  font-size: 1.1875rem; font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(95deg, #F9A8D4 0%, #EC4899 48%, #F43F5E 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  transition: filter .3s var(--ease);
}
/* Keep the gradient text readable if background-clip is unsupported. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .credit-brand { color: #F472B6; background: none; }
}
a.credit-brand:hover { filter: brightness(1.12) saturate(1.1); }
.credit-sparkle { color: var(--gold); font-size: 1rem; line-height: 1; }

@media (max-width: 480px) {
  .credit-by { font-size: .875rem; }
  .credit-brand { font-size: 1.0625rem; }
  .credit-tech { font-size: .75rem; }
}

/* Standalone strip for pages without the full footer */
.credit--bare {
  background: var(--primary);
  border-top: 0;
  padding-block: 26px;
}

/* --------------------------------------------------------------------------
   21. Floating actions — WhatsApp + mobile call bar
   -------------------------------------------------------------------------- */
.float-actions {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 8px 26px rgba(14, 56, 76, .3);
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.float-btn:hover { transform: scale(1.08) translateY(-2px); color: #fff; }
.float-btn svg { width: 30px; height: 30px; }
.float-btn--wa { background: #25D366; }
.float-btn--wa::after {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse-ring 2.4s var(--ease) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.float-btn--top {
  background: #fff; color: var(--primary);
  border: 1px solid var(--line);
  width: 46px; height: 46px;
  margin-inline: auto;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.float-btn--top svg { width: 20px; height: 20px; }
.float-btn--top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Tooltip label on desktop */
.float-btn__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--primary);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.float-btn:hover .float-btn__label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Sticky mobile call/book bar */
.mobile-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 95;
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 22px rgba(14, 56, 76, .1);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-bar .btn { flex: 1; padding: 14px 10px; font-size: .875rem; }

/* --------------------------------------------------------------------------
   22. Motion — reference-template vocabulary, dependency-free
   -------------------------------------------------------------------------- */

/* Everything below is gated behind `html.js`, set by an inline snippet in the
   document head. If JavaScript is unavailable or fails, no content is ever
   hidden — the page simply renders without motion. */

/* Scroll reveal */
.js [data-anim] {
  opacity: 0;
  transition:
    opacity .9s var(--ease) var(--anim-delay, 0s),
    transform .9s var(--ease) var(--anim-delay, 0s);
  will-change: opacity, transform;
}
.js [data-anim="fade-up"]    { transform: translateY(42px); }
.js [data-anim="fade-down"]  { transform: translateY(-32px); }
.js [data-anim="fade-left"]  { transform: translateX(48px); }
.js [data-anim="fade-right"] { transform: translateX(-48px); }
.js [data-anim="zoom-in"]    { transform: scale(.9); }
.js [data-anim="fade"]       { transform: none; }

.js [data-anim].is-visible {
  opacity: 1;
  transform: none;
}

/* Image curtain wipe — the reference's .reveal effect */
[data-anim="reveal"] { position: relative; overflow: hidden; }
.js [data-anim="reveal"] { opacity: 1; }
.js [data-anim="reveal"]::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--tint);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1.1s var(--ease) var(--anim-delay, 0s);
  z-index: 2;
}
.js [data-anim="reveal"] img {
  transform: scale(1.22);
  transition: transform 1.4s var(--ease) var(--anim-delay, 0s);
}
.js [data-anim="reveal"].is-visible::after { transform: scaleX(0); }
.js [data-anim="reveal"].is-visible img { transform: scale(1); }

/* Character-stagger headline — the reference's text-anime-style-2 */
.js .split-text { visibility: hidden; }
.js .split-text.is-split { visibility: visible; }
.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateX(16px);
  will-change: opacity, transform;
}
.split-text.is-visible .char {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.split-text .word { display: inline-block; white-space: nowrap; }

/* Staggered children */
[data-stagger] > * { --anim-delay: calc(var(--i, 0) * .1s); }

/* On stacked layouts a horizontal entrance would push the page wider than the
   viewport before it plays, so sideways reveals become vertical ones. */
@media (max-width: 992px) {
  .js [data-anim="fade-left"],
  .js [data-anim="fade-right"] { transform: translateY(42px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-anim] { opacity: 1 !important; transform: none !important; }
  .js [data-anim="reveal"]::after { display: none; }
  .js [data-anim="reveal"] img { transform: none !important; }
  .js .split-text, .split-text .char { visibility: visible; opacity: 1; transform: none; }
  .cta-band__bg { transform: none !important; }
}

/* --------------------------------------------------------------------------
   23. Breadcrumb (service pages)
   -------------------------------------------------------------------------- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .8125rem; color: var(--muted); margin-bottom: 18px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--primary); font-weight: 600; }
.crumbs .sep { opacity: .5; }

/* --------------------------------------------------------------------------
   24. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.lead { font-size: 1.0625rem; }
.small { font-size: .875rem; }

/* --------------------------------------------------------------------------
   25. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --section-y: 84px; }
  .hero-grid { gap: 44px; }
  .doctor-card { grid-template-columns: 260px 1fr; }
  .slide { flex-basis: calc((100% - 26px) / 2); }
}

@media (max-width: 992px) {
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(14, 56, 76, .1);
    padding: 8px 24px 20px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .nav-toggle { display: grid; }

  .hero { padding-top: 120px; padding-bottom: 70px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 640px; }
  .form-card { padding: 30px 24px; }

  .split { grid-template-columns: 1fr; gap: 44px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  .doctor-card { grid-template-columns: 1fr; }
  .doctor-card__media { min-height: 320px; max-height: 420px; }

  .media-stack { padding-bottom: 46px; padding-right: 36px; }
  .stat-badge { left: 0; }
}

@media (max-width: 768px) {
  :root { --section-y: 68px; --gutter: 20px; }

  body { padding-bottom: 74px; } /* room for the sticky mobile bar */
  .mobile-bar { display: flex; }
  .float-actions { bottom: 88px; right: 16px; }
  .float-btn { width: 52px; height: 52px; }
  .float-btn svg { width: 26px; height: 26px; }
  .float-btn__label { display: none; }

  .header-phone span { display: none; }
  .header-actions .btn { display: none; }

  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .slide { flex-basis: 88%; }

  .info-strip { padding-block: 34px; }
  .cta-band { padding-block: 76px; }

  .media-stack { padding-bottom: 0; padding-right: 0; }
  .media-stack__inset { display: none; }
  .stat-badge { position: static; margin-top: 16px; display: inline-flex; }

  .step { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .map-frame iframe { min-height: 320px; }
}

@media (max-width: 480px) {
  .grid--2 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .mobile-bar .btn { width: auto; }
  .hero-badges .hero-badge { font-size: .75rem; }
  .rating-strip { gap: 10px; }
}

/* Print — keep the contact details useful on paper */
@media print {
  .site-header, .float-actions, .mobile-bar, .map-frame, .slider__nav { display: none !important; }
  .js [data-anim] { opacity: 1 !important; transform: none !important; }
  .js .split-text, .split-text .char { visibility: visible !important; opacity: 1 !important; }
}
