/* ==========================================================================
   Components — cards · editorial sections · features · journey · faq · forms
   ========================================================================== */

/* ---------- generic card ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 32px);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-300));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #D6E5F0; }
.card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); border: 1px solid #DCEBF6; color: var(--blue);
  margin-bottom: 20px; transition: background .35s var(--ease), color .35s var(--ease), transform .45s var(--ease);
}
.card-icon svg { width: 24px; height: 24px; }
.card:hover .card-icon { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px) rotate(-3deg); }
.card h3 { font-size: 1.115rem; margin-bottom: 10px; letter-spacing: -.016em; line-height: 1.28; }
.card p { font-size: .915rem; line-height: 1.7; color: var(--body); margin-bottom: 0; }
.card .link-arrow { margin-top: 18px; font-size: .855rem; }

/* treatment index card (specialities grid) */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: clamp(16px, 1.8vw, 22px); }
.svc { padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-lg); }
.svc .svc-no {
  position: absolute; right: 22px; top: 20px; font-family: var(--font-head); font-size: .78rem;
  font-weight: 800; letter-spacing: .06em; color: #C8DAE7;
}
.svc p { min-height: 0; }

/* ---------- feature (large image) cards ---------- */
.feat-grid { display: grid; gap: clamp(18px, 2.2vw, 26px); grid-template-columns: repeat(2, minmax(0,1fr)); }
.feat {
  position: relative; display: block; border-radius: var(--r-xl); overflow: hidden;
  background: var(--ink); min-height: 380px; isolation: isolate;
}
.feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .9s var(--ease); }
.feat::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(10,31,46,.05) 22%, rgba(10,31,46,.80) 100%);
  transition: background .45s var(--ease);
}
.feat:hover img { transform: scale(1.055); }
.feat:hover::before { background: linear-gradient(180deg, rgba(10,31,46,.20) 12%, rgba(10,31,46,.88) 100%); }
.feat-body { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 2.8vw, 36px); color: #fff; }
.feat-body .eyebrow { color: var(--blue-300); margin-bottom: 12px; }
.feat-body .eyebrow::before { background: var(--blue-300); }
.feat-body h3 { color: #fff; font-size: clamp(1.28rem, 2vw, 1.62rem); margin-bottom: 10px; }
.feat-body p { color: rgba(255,255,255,.80); font-size: .915rem; margin-bottom: 0; max-width: 44ch; }
.feat-body .feat-cta {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 20px;
  font-family: var(--font-head); font-weight: 700; font-size: .885rem; color: #fff;
  opacity: .92; transition: gap .3s var(--ease), opacity .3s var(--ease);
}
.feat:hover .feat-cta { gap: 14px; opacity: 1; }
.feat-cta svg { width: 16px; height: 16px; }
.feat.tall { min-height: 470px; }

/* ---------- dark / blue feature section ---------- */
.dark-band { background: var(--ink); color: rgba(255,255,255,.72); position: relative; overflow: hidden; }
.dark-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 420px at 88% 0%, rgba(30,123,196,.26) 0%, rgba(30,123,196,0) 62%),
    radial-gradient(620px 400px at 4% 100%, rgba(140,196,232,.14) 0%, rgba(140,196,232,0) 60%);
}
.dark-band .wrap { position: relative; }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band p { color: rgba(255,255,255,.72); }
.dark-band .lead { color: rgba(255,255,255,.80); }
.comfort-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 34px; }
.comfort-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px;
  border-radius: var(--r-md); background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10); transition: background .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.comfort-item:hover { background: rgba(255,255,255,.10); transform: translateY(-4px); border-color: rgba(140,196,232,.42); }
.comfort-item svg { width: 21px; height: 21px; color: var(--blue-300); flex: none; margin-top: 3px; }
.comfort-item b { display: block; color: #fff; font-family: var(--font-head); font-size: .985rem; margin-bottom: 4px; }
.comfort-item span { font-size: .875rem; line-height: 1.65; }

/* ---------- editorial feature rows ---------- */
.editorial { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.03fr); gap: clamp(30px, 5vw, 78px); align-items: center; }
.editorial.rev { grid-template-columns: minmax(0,1.03fr) minmax(0,1fr); }
.editorial.rev .ed-media { order: 2; }
.ed-copy h2 { margin: 18px 0 20px; }
.ed-copy > p { margin-bottom: 18px; }
.ed-list { display: grid; gap: 13px; margin: 26px 0 30px; }
.ed-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; line-height: 1.65; }
.ed-list li svg { width: 19px; height: 19px; flex: none; color: var(--blue); margin-top: 3px; }
.ed-list li b { color: var(--ink); }

.pill-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 30px; }
.pill {
  padding: 8px 16px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line);
  font-size: .83rem; font-weight: 600; color: var(--ink-2); transition: all .28s var(--ease);
}
.pill:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px, 2vw, 24px); }
.why {
  padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-lg); background: #fff;
  border: 1px solid var(--line); transition: transform .38s var(--ease), box-shadow .38s var(--ease), background .38s var(--ease);
}
.why:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why svg { width: 25px; height: 25px; color: var(--blue); margin-bottom: 18px; }
.why h3 { font-size: 1.055rem; margin-bottom: 9px; }
.why p { font-size: .9rem; margin: 0; }

/* ---------- journey timeline ---------- */
.journey { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.journey::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 31px; height: 1.5px;
  background: linear-gradient(90deg, var(--line), #CFE3F1 50%, var(--line));
}
.step { position: relative; text-align: center; padding-top: 0; }
.step-dot {
  width: 62px; height: 62px; margin: 0 auto 22px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--blue);
  position: relative; z-index: 1; transition: all .38s var(--ease);
}
.step:hover .step-dot { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 14px 30px -14px rgba(30,123,196,.6); }
.step h3 { font-size: 1.06rem; margin-bottom: 9px; }
.step p { font-size: .89rem; margin: 0; }
.step .step-k { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .18em; color: var(--muted); margin-bottom: 8px; }

/* ---------- doctor ---------- */
.doctor-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(30px, 5vw, 74px); align-items: center; }
.doctor-portrait { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--off); aspect-ratio: 4/5; }
.doctor-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.doctor-portrait .dp-frame {
  position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.30); border-radius: 20px; pointer-events: none;
}
.cred-list { display: grid; gap: 0; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.cred-list li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.cred-list li span:first-child { color: var(--muted); font-weight: 600; }
.cred-list li span:last-child { color: var(--ink); font-weight: 650; text-align: right; }

/* ---------- testimonial / review placeholder ---------- */
.quote-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(30px, 3.4vw, 46px); box-shadow: var(--shadow-sm);
}
.quote-card > svg { width: 34px; height: 34px; color: #CFE3F1; margin-bottom: 18px; }
.quote-card p { font-family: var(--font-head); font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: var(--ink); line-height: 1.62; font-weight: 600; letter-spacing: -.012em; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.faq-item:hover { border-color: #D6E5F0; }
.faq-item[open] { border-color: #CFE3F1; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 21px clamp(20px, 2.2vw, 28px); text-align: left;
  font-family: var(--font-head); font-size: 1.005rem; font-weight: 700; color: var(--ink); letter-spacing: -.012em;
}
.faq-q .fq-i {
  width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--blue-50);
  display: grid; place-items: center; color: var(--blue); transition: all .35s var(--ease);
}
.faq-q .fq-i svg { width: 15px; height: 15px; transition: transform .38s var(--ease); }
.faq-item[open] .faq-q .fq-i { background: var(--blue); color: #fff; }
.faq-item[open] .faq-q .fq-i svg { transform: rotate(45deg); }
.faq-a { padding: 0 clamp(20px, 2.2vw, 28px) 24px; }
.faq-a p { font-size: .925rem; margin: 0; max-width: 74ch; }
.faq-a .ph-block { margin-top: 4px; }

.faq-cats { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.faq-cats button {
  padding: 9px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff;
  font-size: .845rem; font-weight: 600; color: var(--ink-2); transition: all .28s var(--ease);
}
.faq-cats button:hover { border-color: var(--blue); color: var(--blue); }
.faq-cats button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--ink) 0%, #14405F 52%, var(--blue-700) 100%);
  padding: clamp(36px, 5vw, 68px); color: #fff;
}
.cta-band::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(140,196,232,.28) 0%, rgba(140,196,232,0) 66%);
}
.cta-band h2 { color: #fff; margin: 16px 0 18px; max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 56ch; }
.cta-band .btn-row { margin-top: 30px; position: relative; z-index: 1; }
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.cta-side { display: grid; gap: 12px; }
.cta-side a, .cta-side div {
  display: flex; align-items: center; gap: 13px; padding: 15px 18px; border-radius: var(--r-md);
  background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.12);
  font-size: .895rem; font-weight: 600; color: #fff; transition: all .3s var(--ease);
}
.cta-side a:hover { background: rgba(255,255,255,.14); transform: translateX(4px); }
.cta-side svg { width: 18px; height: 18px; color: var(--blue-300); flex: none; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(26px, 3vw, 44px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .845rem; font-weight: 650; color: var(--ink); letter-spacing: -.005em; }
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #FCFDFE; color: var(--ink);
  font-size: .93rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field textarea { min-height: 122px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(30,123,196,.10);
}
.field .hint { font-size: .78rem; color: var(--muted); }
.field .err { font-size: .79rem; color: #C0392B; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #E0A9A2; background: #FEFAF9; }
.field.has-error .err { display: block; }
.form-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.form-note { font-size: .8rem; color: var(--muted); max-width: 46ch; }
.form-success {
  display: none; margin-top: 24px; padding: 22px 24px; border-radius: var(--r-md);
  background: var(--blue-50); border: 1px solid #CFE3F1;
}
.form-success.is-on { display: block; }
.form-success b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.03rem; margin-bottom: 7px; }
.form-success p { font-size: .885rem; margin: 0 0 14px; }
.form-success dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; font-size: .855rem; }
.form-success dt { color: var(--muted); }
.form-success dd { margin: 0; color: var(--ink); font-weight: 600; }

/* ---------- contact info cards ---------- */
.info-card { display: flex; gap: 15px; padding: 20px 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: all .35s var(--ease); }
.info-card:hover { border-color: #CFE3F1; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.info-card .ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none; background: var(--blue-50);
  display: grid; place-items: center; color: var(--blue);
}
.info-card svg { width: 20px; height: 20px; }
.info-card b { display: block; font-family: var(--font-head); font-size: .945rem; color: var(--ink); margin-bottom: 3px; }
.info-card p { font-size: .87rem; margin: 0; line-height: 1.6; }

.map-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  min-height: 320px; background: linear-gradient(140deg, #EDF4F9, #F7FAFC);
  display: grid; place-items: center; text-align: center; padding: 30px;
}
.map-frame .map-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
}
.map-frame .map-body { position: relative; }

/* ---------- stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: #fff; padding: 28px 24px; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; color: var(--ink); line-height: 1.05; letter-spacing: -.03em; }
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------- reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .78s var(--ease), transform .78s var(--ease); will-change: opacity, transform; }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="zoom"] { transform: scale(.965); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .card:hover, .why:hover, .btn:hover, .step:hover .step-dot, .info-card:hover, .comfort-item:hover { transform: none !important; }
  .feat:hover img, .hero-frame img { transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-frame { aspect-ratio: 16/12; }
  .float-card { right: 12px; }
  .float-card.alt { left: 12px; }
  .why-grid, .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .journey { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px 22px; }
  .journey::before { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cta-inner, .doctor-grid, .editorial, .editorial.rev { grid-template-columns: 1fr; }
  .editorial.rev .ed-media { order: 0; }
  .mobile-cta { display: flex; }
  .site-footer { padding-bottom: 74px; }
  body { padding-bottom: 0; }
  .to-top { bottom: 84px; }
}
@media (max-width: 760px) {
  :root { --sec-y: clamp(52px, 11vw, 72px); }
  body { font-size: 16px; }
  .topbar .topbar-links { display: none; }
  .topbar .wrap { justify-content: center; }
  .section-head.split { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .g-2, .g-3, .g-4, .why-grid, .comfort-grid, .form-grid, .feat-grid, .trust-grid, .stat-row { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust-item + .trust-item::before { display: none; }
  .trust-item { border-top: 1px solid var(--line-2); padding: 22px 14px; }
  .trust-item:nth-child(-n+2) { border-top: 0; }
  .journey { grid-template-columns: 1fr; text-align: left; gap: 4px; }
  .journey::before { display: none; }
  .step { text-align: left; padding-left: 76px; padding-block: 16px; position: relative; }
  .step::after { content: ""; position: absolute; left: 30px; top: 70px; bottom: -6px; width: 1.5px; background: var(--line); }
  .step:last-child::after { display: none; }
  .step-dot { position: absolute; left: 0; top: 14px; margin: 0; width: 60px; height: 60px; }
  .feat, .feat.tall { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn-row .btn { flex: 1 1 auto; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .form-foot .btn { width: 100%; }
  .float-card { padding: 13px 16px; min-width: 142px; }
  .float-card b { font-size: 1.28rem; }
  .img-stack .img-frame + .img-frame { width: 46%; right: -6px; bottom: -18px; }
  .badge-float { left: -6px; }
  .quote-card, .cta-band, .form-card { border-radius: var(--r-lg); }
  .to-top { right: 16px; bottom: 82px; width: 42px; height: 42px; }
}
@media (max-width: 400px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item:nth-child(2) { border-top: 1px solid var(--line-2); }
  .brand-text b { font-size: .98rem; }
  .btn { padding: 14px 22px; }
  .mobile-cta .btn-icon { width: 46px; }
}
@media print {
  .site-header, .topbar, .mobile-cta, .to-top, .scroll-progress, .mobile-nav { display: none !important; }
}
