/* ============================================================
   HORIZON HEALTH CLINIC — Design tokens
   Concept: a literal "horizon line" — the soft edge where sky
   meets ground at dawn — used as a recurring signature motif
   (hero backdrop, section dividers, loading states). Palette
   stays blue/white per brand, with a whisper of dawn-glow used
   only inside the horizon motif itself.
   ============================================================ */

:root{
  /* core blue/white brand */
  --ink: #12283F;
  --slate: #47586B;
  --slate-soft: #6B7C8E;
  --primary: #046BD2;
  --primary-dark: #034E96;
  --primary-deep: #073763;
  --sky: #EAF4FF;
  --mist: #F5F9FC;
  --white: #FFFFFF;
  --line: #E1E9F0;

  /* signature dawn glow — used sparingly, only in horizon motif */
  --dawn: #FFD9A8;
  --dawn-soft: #FFE9CC;

  /* status */
  --good: #1C8A5C;
  --good-bg: #E9F7F0;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(18,40,63,0.06), 0 1px 1px rgba(18,40,63,0.04);
  --shadow-md: 0 8px 24px rgba(18,40,63,0.08);
  --shadow-lg: 0 20px 48px rgba(18,40,63,0.14);

  --content-width: 1180px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1{ font-size: clamp(1.9rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2{ font-size: clamp(1.55rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
h3{ font-size: 1.3rem; }
p{ margin: 0 0 1em; }

.container{
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 560px){
  .container{ padding: 0 18px; }
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow::before{
  content: "";
  width: 18px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible{ outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.btn-primary{ background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline{ background: transparent; color: var(--primary-deep); border-color: var(--line); }
.btn-outline:hover{ border-color: var(--primary); color: var(--primary); }
.btn-ghost-light{ background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost-light:hover{ background: rgba(255,255,255,0.24); }
.btn-lg{ padding: 16px 34px; font-size: 1.02rem; }
.btn-block{ width: 100%; }

/* ---------- header ---------- */
.top-bar{
  background: var(--primary-deep);
  color: #dceaff;
  font-size: 0.85rem;
}
.top-bar .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.top-bar .top-links{ display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar a{ color: #dceaff; }
.top-bar a:hover{ color: #fff; }
.top-bar .badge-open{
  display: inline-flex; align-items: center; gap: 6px;
  color: #bdeccd; font-weight: 600;
}
.badge-open::before{
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #3fd685; box-shadow: 0 0 0 3px rgba(63,214,133,0.25);
}

.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
  gap: 20px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{ width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.brand-text{ font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.brand-text small{ display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; color: var(--slate-soft); letter-spacing: 0.03em; }

.main-nav{ display: flex; align-items: center; gap: 8px; }
.main-nav a{
  padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; color: var(--slate);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active{ background: var(--sky); color: var(--primary-deep); }
.header-cta{ display: flex; align-items: center; gap: 12px; }
.header-cta .phone-link{ font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.nav-toggle{ display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg{ width: 26px; height: 26px; color: var(--ink); }

@media (max-width: 900px){
  .main-nav{
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 90px 24px 24px; gap: 4px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform 0.25s ease;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{ padding: 14px 16px; }
  .nav-toggle{ display: block; }
  .header-cta .phone-link span{ display: none; }
}

/* ---------- horizon motif ---------- */
.horizon-divider{
  position: relative; height: 64px; overflow: hidden;
}
.horizon-divider svg{ position: absolute; inset: 0; width: 100%; height: 100%; }

.hero{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--sky) 62%, var(--dawn-soft) 100%);
  padding: 64px 0 0;
}
.hero-inner{
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding-bottom: 72px;
}
.hero-copy .eyebrow{ margin-bottom: 18px; }
.hero-copy p.lead{ font-size: 1.12rem; max-width: 46ch; }
.hero-actions{ display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats{ display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div{ font-family: var(--font-display); font-size: 1.6rem; color: var(--primary-deep); font-weight: 600; }
.hero-stats span{ display: block; font-family: var(--font-body); font-size: 0.8rem; color: var(--slate-soft); font-weight: 500; margin-top: 2px; }

.hero-art{ position: relative; }
.hero-art .sun{
  position: absolute; left: 50%; top: 8%; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--dawn) 60%, transparent 72%);
  transform: translateX(-50%);
  filter: blur(0.5px);
}
.hero-photo{
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  aspect-ratio: 4/5;
}
.hero-photo img{ width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(0deg, rgba(7,55,99,0.55), transparent);
}
.hero-photo-caption{
  position: absolute; left: 20px; bottom: 18px; color: #fff; z-index: 2;
}
.hero-photo-caption strong{ display: block; font-family: var(--font-display); font-size: 1.15rem; }
.hero-photo-caption span{ font-size: 0.85rem; opacity: 0.9; }

.hero-horizon-line{
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 1;
}

/* ---------- trust strip ---------- */
.trust-strip{
  background: var(--primary-deep);
  color: #eaf4ff;
}
.trust-strip .container{
  display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center;
  padding: 22px 24px;
}
.trust-item{ display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 500; }
.trust-item svg{ width: 20px; height: 20px; flex-shrink: 0; color: var(--dawn); }

/* ---------- sections ---------- */
section{ padding: 88px 0; }
.section-mist{ background: var(--mist); }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- service cards ---------- */
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px){ .grid-3{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .grid-3, .grid-2{ grid-template-columns: 1fr; } .hero-inner{ grid-template-columns: 1fr; } }

.card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe1f5; }
.card .icon-wrap{
  width: 52px; height: 52px; border-radius: 14px; background: var(--sky); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .icon-wrap svg{ width: 26px; height: 26px; }
.card h3{ margin-bottom: 8px; }
.card p{ font-size: 0.95rem; margin-bottom: 0; }
.card ul{ margin: 10px 0 0; padding-left: 18px; font-size: 0.92rem; }
.card ul li{ margin-bottom: 4px; }
.card-link{ display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--primary); font-size: 0.92rem; }

/* ---------- reveal on scroll ---------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(120deg, var(--primary-deep), var(--primary-dark));
  color: #fff; border-radius: var(--radius-lg);
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band h2{ color: #fff; margin-bottom: 8px; }
.cta-band p{ color: #cfe2f7; margin-bottom: 0; max-width: 46ch; }
.cta-band::after{
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--dawn) 0%, transparent 70%); opacity: 0.35;
}

/* ---------- footer ---------- */
.site-footer{ background: var(--ink); color: #b9c8d8; padding: 64px 0 28px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4{ color: #fff; font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a{ color: #b9c8d8; }
.footer-grid a:hover{ color: #fff; }
.footer-grid ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-brand p{ font-size: 0.92rem; max-width: 32ch; }
.footer-bottom{
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: #7e91a6;
}
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------- skip link / focus ---------- */
.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 12px 18px;
  z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--primary-dark); outline-offset: 2px;
}

/* ---------- page hero (inner pages) ---------- */
.page-hero{
  background: linear-gradient(180deg, var(--sky), #fff);
  padding: 56px 0 40px; text-align: left;
}
.breadcrumb{ font-size: 0.85rem; color: var(--slate-soft); margin-bottom: 14px; }
.breadcrumb a{ color: var(--primary); }

/* ---------- accordion (services detail) ---------- */
.accordion-item{ border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 14px; overflow: hidden; background: #fff; }
.accordion-item summary{
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 600;
}
.accordion-item summary::-webkit-details-marker{ display: none; }
.accordion-item summary .plus{
  width: 28px; height: 28px; border-radius: 50%; background: var(--sky); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: 16px;
}
.accordion-item[open] summary .plus{ transform: rotate(45deg); }
.accordion-body{ padding: 0 24px 22px; color: var(--slate); }
.accordion-body ul{ padding-left: 20px; }
.accordion-body li{ margin-bottom: 6px; }

/* ---------- doctor bio page ---------- */
.bio-layout{ display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.bio-photo{ position: sticky; top: 110px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.credential-list{ list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.credential-list li{ display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.credential-list svg{ width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 900px){ .bio-layout{ grid-template-columns: 1fr; } .bio-photo{ position: static; max-width: 340px; } }

/* ---------- doctors page ---------- */
.doctor-card{
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-sm); margin-bottom: 32px;
}
.doctor-card:hover{ box-shadow: var(--shadow-md); }
.doctor-photo-wrap{ border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.doctor-photo-wrap img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.avatar-placeholder{
  width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--sky), var(--dawn-soft));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.avatar-placeholder span{
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 600; color: var(--primary-deep);
}
.doctor-tag{
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--primary); background: var(--sky); padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
}
@media (max-width: 780px){ .doctor-card{ grid-template-columns: 1fr; padding: 24px; } }

.contact-layout{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.info-card{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.info-row{ display: flex; gap: 14px; margin-bottom: 18px; }
.info-row:last-child{ margin-bottom: 0; }
.info-row svg{ width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.info-row strong{ display: block; color: var(--ink); font-size: 0.95rem; }
.info-row span, .info-row div{ font-size: 0.92rem; }
.map-embed{ border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe{ width: 100%; height: 320px; border: 0; display: block; }
@media (max-width: 900px){ .contact-layout{ grid-template-columns: 1fr; } }

/* ---------- forms (contact + booking shared bits) ---------- */
.field{ margin-bottom: 20px; }
.field label{ display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .hint{ font-size: 0.8rem; color: var(--slate-soft); margin-top: 6px; }
.field input, .field select, .field textarea{
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: 0.96rem; color: var(--ink); background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(4,107,210,0.12); outline: none;
}
.field textarea{ resize: vertical; min-height: 110px; }
.field.error input, .field.error select, .field.error textarea{ border-color: #d1453b; }
.field .error-msg{ display: none; color: #d1453b; font-size: 0.82rem; margin-top: 6px; }
.field.error .error-msg{ display: block; }
.row-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .row-2{ grid-template-columns: 1fr; } }

/* ---------- booking wizard ---------- */
.booking-shell{
  max-width: 780px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.booking-steps{
  display: flex; background: var(--mist); border-bottom: 1px solid var(--line); padding: 22px 32px;
}
.step-marker{
  flex: 1; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: var(--slate-soft);
  position: relative;
}
.step-marker .num{
  width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 0.82rem; color: var(--slate-soft);
  flex-shrink: 0; transition: all 0.2s ease;
}
.step-marker.active .num{ background: var(--primary); border-color: var(--primary); color: #fff; }
.step-marker.active{ color: var(--ink); }
.step-marker.done .num{ background: var(--good); border-color: var(--good); color: #fff; }
.step-marker:not(:last-child)::after{
  content: ""; position: absolute; top: 14px; left: calc(50% + 30px); right: calc(-50% + 14px); height: 2px; background: var(--line);
}
.step-marker.done:not(:last-child)::after{ background: var(--good); }
@media (max-width: 640px){ .step-marker span.label{ display: none; } .booking-steps{ padding: 18px; } }

.booking-body{ padding: 40px; }
.booking-panel{ display: none; }
.booking-panel.active{ display: block; animation: fadein 0.3s ease; }
@keyframes fadein{ from{ opacity: 0; transform: translateY(6px); } to{ opacity: 1; transform: translateY(0); } }

.option-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 560px){ .option-grid{ grid-template-columns: 1fr; } }
.option-card{
  border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 18px; cursor: pointer;
  display: flex; align-items: flex-start; gap: 12px; transition: border-color 0.15s ease, background 0.15s ease;
}
.option-card:hover{ border-color: var(--primary); }
.option-card input{ margin-top: 3px; accent-color: var(--primary); }
.option-card strong{ display: block; color: var(--ink); font-size: 0.95rem; }
.option-card span{ font-size: 0.85rem; color: var(--slate-soft); }
.option-card.selected{ border-color: var(--primary); background: var(--sky); }

.time-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
@media (max-width: 560px){ .time-grid{ grid-template-columns: repeat(3, 1fr); } }
.time-slot{
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 6px; text-align: center;
  font-size: 0.85rem; font-weight: 600; color: var(--slate); cursor: pointer; background: #fff;
  transition: all 0.15s ease;
}
.time-slot:hover{ border-color: var(--primary); }
.time-slot.selected{ background: var(--primary); border-color: var(--primary); color: #fff; }
.time-slot.unavailable{ opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.booking-footer{
  display: flex; justify-content: space-between; align-items: center; padding: 24px 40px;
  border-top: 1px solid var(--line); background: var(--mist);
}
@media (max-width: 640px){ .booking-body{ padding: 26px 20px; } .booking-footer{ padding: 20px; } }

.summary-list{ list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.summary-list li{ display: flex; justify-content: space-between; padding: 14px 18px; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
.summary-list li:last-child{ border-bottom: none; }
.summary-list li strong{ color: var(--ink); }

.confirm-screen{ text-align: center; padding: 20px 0 8px; }
.confirm-screen .check-circle{
  width: 74px; height: 74px; border-radius: 50%; background: var(--good-bg); color: var(--good);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
}
.confirm-screen .check-circle svg{ width: 36px; height: 36px; }

.progress-note{ font-size: 0.85rem; color: var(--slate-soft); margin-top: 6px; }

/* ============================================================
   MOBILE REFINEMENTS — tightened spacing, better touch targets,
   decluttered header/top-bar, and layout fixes for phones.
   ============================================================ */

/* ---- top bar: too many items crowd small screens ---- */
@media (max-width: 680px){
  .top-bar{ font-size: 0.78rem; }
  .top-bar .container{ padding-top: 7px; padding-bottom: 7px; gap: 6px 14px; }
  .top-bar .top-links{ gap: 12px; }
  .top-bar a[href^="mailto"]{ display: none; } /* email link — phone + badge are enough on mobile */
  .top-bar > .container > div:last-child{ display: none; } /* "Mon–Fri..." — repeated in trust strip below */
}
@media (max-width: 420px){
  .top-bar .badge-open{ display: none; } /* keep just the phone number when truly tight */
}

/* ---- header: shrink logo/lockup, give nav a cleaner mobile drawer ---- */
@media (max-width: 900px){
  .site-header .container{ padding-top: 10px; padding-bottom: 10px; }
  .brand img{ width: 36px; height: 36px; }
  .brand-text{ font-size: 1rem; }
  .brand-text small{ font-size: 0.68rem; }
  .header-cta{ gap: 8px; }
  .header-cta .btn-primary{ padding: 10px 16px; font-size: 0.88rem; }
  .main-nav{ top: 0; padding-top: 84px; }
  .main-nav a{ font-size: 1.02rem; }
}
@media (max-width: 380px){
  .header-cta .phone-link{ display: none; } /* icon-only phone link removed on very narrow screens — call CTA still in top bar + trust strip */
}

/* ---- hero ---- */
@media (max-width: 900px){
  .hero{ padding-top: 40px; }
  .hero-inner{ padding-bottom: 56px; gap: 36px; }
}
@media (max-width: 640px){
  .hero-inner{ text-align: left; }
  .hero-photo{ aspect-ratio: 5/4; max-height: 340px; }
  .hero-stats{ gap: 22px; }
  .hero-stats div{ font-size: 1.3rem; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; }
  .hero-horizon-line{ height: 50px; }
}

/* ---- trust strip: stack into a clean single column list on phones ---- */
@media (max-width: 700px){
  .trust-strip .container{ flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 24px; }
  .trust-item{ font-size: 0.88rem; }
}

/* ---- section rhythm: 88px is far too much whitespace on a phone ---- */
@media (max-width: 900px){
  section{ padding: 60px 0; }
}
@media (max-width: 480px){
  section{ padding: 44px 0; }
  .section-head{ margin-bottom: 32px; }
}

/* ---- cards ---- */
@media (max-width: 640px){
  .card{ padding: 22px; }
  .grid-3{ gap: 16px; }
}

/* ---- CTA band ---- */
@media (max-width: 640px){
  .cta-band{ padding: 32px 24px; flex-direction: column; align-items: flex-start; text-align: left; gap: 20px; }
  .cta-band .btn{ width: 100%; }
}

/* ---- bio / doctor page ---- */
@media (max-width: 900px){
  .bio-photo{ max-width: 280px; margin: 0 auto; }
}

/* ---- services accordion ---- */
@media (max-width: 640px){
  .accordion-item summary{ padding: 16px 18px; font-size: 0.98rem; }
  .accordion-body{ padding: 0 18px 18px; }
}

/* ---- contact page ---- */
@media (max-width: 640px){
  .info-card{ padding: 20px; }
  .map-embed iframe{ height: 240px; }
}

/* ---- booking wizard: more breathing room + bigger tap targets ---- */
@media (max-width: 640px){
  .booking-steps{ padding: 16px 14px; }
  .step-marker .num{ width: 26px; height: 26px; font-size: 0.78rem; }
  .booking-body{ padding: 22px 16px; }
  .booking-footer{ padding: 16px; gap: 10px; }
  .booking-footer .btn{ padding: 13px 18px; font-size: 0.92rem; flex: 1; }
  .option-card{ padding: 14px; }
  .time-grid{ grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .time-slot{ padding: 12px 4px; font-size: 0.8rem; min-height: 44px; }
}
@media (max-width: 380px){
  .time-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* ---- forms: larger inputs = easier mobile typing, no iOS zoom-on-focus ---- */
@media (max-width: 640px){
  .field input, .field select, .field textarea{ font-size: 16px; padding: 12px 14px; }
}

/* ---- footer ---- */
@media (max-width: 640px){
  .site-footer{ padding: 44px 0 22px; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---- generic: prevent any oversized inline images/icons from blowing out layout ---- */
img, svg{ max-width: 100%; height: auto; }
.icon-wrap svg, .info-row svg, .credential-list svg, .trust-item svg{ height: auto; }
