/* =========================================================
   Dr. Dipan Saha — Diabetologist
   ========================================================= */
:root {
  /* Red & white theme (variable names kept from the original palette) */
  --navy: #FF003F;        /* primary red – buttons, headings, brand */
  --navy-2: #e00037;      /* primary hover */
  --navy-deep: #6b001b;   /* deep maroon – dark sections, footer */
  --teal: #d10036;        /* slightly deeper red for small text – passes WCAG AA on white */        /* accent red – eyebrows, links, highlights */
  --teal-2: #ffd6e0;      /* light accent used on dark/red backgrounds */
  --mint: #ffebf0;        /* soft red tint */
  --sand: #fbf7f7;        /* off-white section background */
  --coral: #a3002a;
  --gold: #c9a227;
  --ink: #2a1a1c;
  --muted: #6e5d60;
  --line: #f0e1e3;
  --white: #fff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(11, 59, 79, .22);
  --shadow-lg: 0 30px 60px -20px rgba(11, 59, 79, .35);

  --ff-display: "Fraunces", Georgia, serif;
  --ff-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  overflow-x: clip;   /* safety net: never allow sideways scrolling */
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1, h2 { font-family: var(--ff-display); font-weight: 600; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--teal); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  text-decoration: none !important;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-accent { background: var(--teal-2); color: var(--navy-deep); }
.btn-accent:hover { background: #45d3c5; box-shadow: 0 12px 30px -10px rgba(255,0,63,.6); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .9rem;
}
.eyebrow-light { color: var(--teal-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.3); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); text-decoration: none !important; }
.brand-mark { color: var(--navy); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 600; }
.brand-text small { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.brand-light, .brand-light .brand-mark { color: #fff; }
.brand-light .brand-mark { color: var(--teal-2); }
.brand-light small { color: rgba(255,255,255,.65); }

.main-nav { display: flex; align-items: center; gap: 1.7rem; }
.main-nav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .95rem; position: relative; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--teal); transition: width .25s;
}
.main-nav a:not(.btn):hover { text-decoration: none; }
.main-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(255,0,63,.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(107,0,27,.08), transparent 60%),
    linear-gradient(180deg, #fbfdfc, var(--sand));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); margin-bottom: .4em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.2rem; }

.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .9rem .4rem .4rem; font-size: .85rem; color: var(--ink);
}
.hero-badges li span {
  background: var(--mint); color: var(--teal); font-weight: 700; font-size: .72rem;
  border-radius: 999px; padding: .25rem .55rem;
}
.hero-badges b { color: var(--gold); }

.hero-visual { position: relative; }
.doctor-card {
  background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); overflow: hidden;
  max-width: 420px; margin-left: auto;
}
.doctor-photo {
  aspect-ratio: 4/4.2;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,0,63,.55), transparent 55%),
    linear-gradient(150deg, var(--navy), var(--navy-deep));
  display: grid; place-items: center;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.doctor-photo.has-photo { aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); }
.photo-placeholder {
  font-family: var(--ff-display); font-size: 6rem; color: rgba(255,255,255,.9);
  width: 200px; height: 200px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
}
.doctor-meta { padding: 1.4rem 1.6rem 1.6rem; }
.doctor-meta h2 { font-size: 1.45rem; margin-bottom: .2rem; }
.doctor-meta p { margin: 0 0 .8rem; color: var(--muted); font-size: .92rem; }
.meta-row { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--navy); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }

.float-chip {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: .75rem 1rem; display: flex; flex-direction: column; line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}
.float-chip strong { color: var(--navy); font-size: .95rem; }
.float-chip span { color: var(--muted); font-size: .78rem; }
.chip-a { top: 12%; left: -4%; border-left: 4px solid var(--teal-2); }
.chip-b { bottom: 18%; right: -6%; border-left: 4px solid var(--coral); animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Strip ---------- */
.strip { background: var(--navy); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip-grid > div { padding: 28px 22px; border-right: 1px solid rgba(255,255,255,.1); }
.strip-grid > div:last-child { border-right: 0; }
.strip strong { display: block; font-family: var(--ff-display); font-size: 1.8rem; color: var(--teal-2); font-weight: 600; }
.strip span { font-size: .88rem; color: rgba(255,255,255,.75); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tint { background: var(--sand); }
.section-dark {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(255,0,63,.15), transparent 60%),
    var(--navy-deep);
  color: rgba(255,255,255,.85);
}
.section-dark .section-title { color: #fff; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 620px; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .section-sub { margin-inline: auto; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.about-body p { color: #3b525c; font-size: 1.04rem; }
.check-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 2rem; font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .25rem; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23FF003F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.7rem 1.5rem;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.08rem; margin: 1rem 0 .45rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(4n+2) .card-icon { background: #ffebf0; }
.card:nth-child(4n+2) .card-icon svg { stroke: var(--coral); }
.card:nth-child(4n+3) .card-icon { background: #f7eef0; }
.card:nth-child(4n+3) .card-icon svg { stroke: var(--navy); }

/* Qualifications */
.qual-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.reg-box {
  margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.reg-box > div { background: var(--sand); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.reg-box small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.reg-box strong { font-size: 1.15rem; color: var(--navy); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  transition: box-shadow .2s, transform .2s;
}
.timeline li:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 1.3rem; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal);
}
.timeline li.gold { border-color: rgba(201,162,39,.5); background: linear-gradient(90deg, #fffbea, #fff); }
.timeline li.gold::before { border-color: var(--gold); background: var(--gold); }
.timeline h3 { font-size: 1.08rem; margin: .25rem 0 .1rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .9rem; }
.tl-tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.gold .tl-tag { color: #9c7c10; }

/* ---------- Reviews ---------- */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 40px; }
.reviews-head .section-sub { margin-bottom: 0; }
.reviews-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.reviews-actions .btn-ghost { background: #fff; }
.reviews-widget { min-height: 160px; }
.reviews-fallback {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 2.4rem 1.5rem; text-align: center;
}
/* hide the fallback card once the Trustindex widget has rendered */
.reviews-widget:has(.ti-widget) .reviews-fallback { display: none; }
.reviews-fallback .stars { color: #fbbc05; font-size: 1.6rem; letter-spacing: .2em; }
.reviews-fallback p { color: var(--muted); margin: .6rem 0 1.2rem; }

/* ---------- Booking ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.book-intro p { font-size: 1.05rem; }
.steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; }
.steps li { display: flex; align-items: center; gap: 1rem; }
.steps b {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,0,63,.15); color: var(--teal-2); font-size: .95rem;
}
.book-contact { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.4rem; }
.book-contact p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.6); }
.book-contact a { font-family: var(--ff-display); font-size: 1.7rem; color: #fff; }

.book-form {
  background: #fff; color: var(--ink); border-radius: 24px; padding: 2rem;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.book-form fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
.book-form legend { font-weight: 700; color: var(--navy); margin-bottom: .8rem; font-size: .98rem; }

.date-strip {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.date-btn {
  flex: none; scroll-snap-align: start;
  width: 72px; padding: .7rem 0; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: inherit; color: var(--ink); transition: .2s;
}
.date-btn small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.date-btn strong { font-size: 1.35rem; line-height: 1.1; }
.date-btn:hover:not(:disabled) { border-color: var(--teal); }
.date-btn[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.date-btn[aria-checked="true"] small { color: rgba(255,255,255,.7); }
.date-btn:disabled { opacity: .4; cursor: not-allowed; background: var(--sand); }

.slot-group-label { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .3rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot-grid .muted { grid-column: 1 / -1; margin: 0; font-size: .92rem; }
.slot-btn {
  padding: .6rem .4rem; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .88rem; color: var(--ink);
  transition: .2s;
}
.slot-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.slot-btn[aria-checked="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.slot-btn:disabled { text-decoration: line-through; opacity: .4; cursor: not-allowed; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-full { grid-column: 1 / -1; }
.field > span { font-size: .85rem; font-weight: 600; color: #3b525c; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .98rem; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfc;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(255,0,63,.12); background: #fff;
}
.field input.invalid { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.1); }

.seg { display: inline-flex; background: var(--sand); border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .55rem 1.1rem; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: .2s; }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.seg input:focus-visible + span { outline: 2px solid var(--teal); }

.form-error {
  background: #fdecec; color: #b42318; border-radius: 10px; padding: .75rem 1rem; font-size: .9rem; margin-bottom: 1rem;
}
.form-note { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; text-align: center; }

/* ---------- Clinic ---------- */
.clinic-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: stretch; }
.chambers { display: grid; gap: 14px; margin-top: 1.6rem; }
.chamber {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; background: #fff;
}
.chamber.primary { border-color: rgba(255,0,63,.45); background: linear-gradient(135deg, var(--mint), #fff 70%); }
.chamber-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.chamber h3 { font-size: 1.15rem; margin: .25rem 0 .35rem; }
.chamber-addr { margin: 0 0 .6rem; color: var(--muted); font-size: .93rem; }
.chamber-hours { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 .8rem; font-size: .92rem; }
.chamber-hours svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; }
.chamber-links { display: flex; gap: 1.2rem; font-weight: 600; font-size: .9rem; }
.book-alt { font-size: .92rem; color: rgba(255,255,255,.65); }
.book-alt a { color: var(--teal-2); }
.info-list { display: grid; gap: 1.3rem; margin: 1.6rem 0 2rem; }
.info-item { display: flex; gap: 1rem; }
.info-item h3 { font-size: .98rem; margin: 0 0 .15rem; }
.info-item p { margin: 0; color: var(--muted); }
.info-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--mint); display: grid; place-items: center; }
.info-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clinic-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.map-wrap { border-radius: 24px; overflow: hidden; min-height: 420px; box-shadow: var(--shadow); background: var(--sand); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line);
  padding: 0 1.4rem; transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 0; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--teal); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal), var(--navy));
  color: #fff; padding: 64px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer-note { margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.disclaimer { color: rgba(255,255,255,.5); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(50,6,10,.6); backdrop-filter: blur(4px);
  animation: fade .25s ease;
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative; background: #fff; border-radius: 24px; padding: 2.2rem 2rem 1.8rem;
  max-width: 460px; width: 100%; text-align: center; box-shadow: var(--shadow-lg);
  animation: pop .3s cubic-bezier(.2,1.3,.5,1);
}
.modal-check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--mint); color: var(--teal); display: grid; place-items: center;
}
.modal-card h3 { font-family: var(--ff-display); font-size: 1.5rem; }
#modalSummary { background: var(--sand); border-radius: 12px; padding: .9rem 1rem; font-size: .95rem; text-align: left; }
.modal-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.2rem; }
.modal-close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--sand); font-size: 1.4rem; cursor: pointer; color: var(--muted); line-height: 1;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .about-grid, .qual-grid, .book-grid, .clinic-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .doctor-card { margin: 0 auto; }
  .chip-a { left: 2%; }
  .chip-b { right: 2%; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.2rem;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-grid > div:nth-child(2) { border-right: 0; }
  .strip-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .hero { padding: 40px 0 64px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .book-form { padding: 1.4rem; }
  .hero-actions .btn { width: 100%; }
  .float-chip { display: none; }
  .reg-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-inner { flex-direction: column; text-align: center; }
  .brand-text small { display: none; }
}

/* =========================================================
   Red & white theme – contrast tweaks on red/maroon areas
   ========================================================= */
.btn-accent { background: #fff; color: var(--navy); }
.btn-accent:hover { background: #fff0f4; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); }
.strip strong { color: #fff; }
.strip span { color: rgba(255,255,255,.82); }
.strip-grid > div { border-color: rgba(255,255,255,.18) !important; }
.eyebrow-light { color: #ffb3c6; }
.steps b { background: rgba(255,255,255,.14); color: #fff; }
.book-alt a { color: #ffc2d1; }
.section-dark {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(160deg, #b0002b, var(--navy-deep));
}
.cta-band { background: linear-gradient(120deg, var(--navy-2), var(--navy-deep)); }
.site-footer { background: #3a000f; }
.brand-light .brand-mark { color: #fff; }
.chip-a { border-left-color: var(--navy); }
.chip-b { border-left-color: var(--gold); }
.hero {
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(255,0,63,.10), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(255,0,63,.05), transparent 60%),
    linear-gradient(180deg, #fff, var(--sand));
}
h1, h2, h3, h4 { color: #2a1a1c; }
h1 em, h2 em { color: var(--navy); }
.section-dark .section-title, .cta-inner h2 { color: #fff; }
.brand { color: var(--navy); }
.doctor-meta h2, .reg-box strong, .faq summary, .float-chip strong, .book-form legend { color: var(--navy); }

/* ---------- Production QA fixes ---------- */
.book-form, .book-intro, .hero-copy, .hero-visual, .clinic-grid > *, .about-grid > *, .qual-grid > * { min-width: 0; }
img, iframe, svg { max-width: 100%; }
/* visually-hidden radio inputs inside the New/Follow-up toggle */
.seg label { position: relative; }
.field .seg input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer;
}
@media (max-width: 560px) {
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .slot-btn { font-size: .82rem; padding: .6rem .2rem; }
}

/* iOS zooms into inputs under 16px – keep them at 16px */
.field input, .field select, .field textarea { font-size: 16px; }
