/* ============================================================
   CARDIA — Heart Institute Template
   Design: Premium warm-clinical · Ink navy + garnet + ECG teal
   Type:   Fraunces (display) + Plus Jakarta Sans (body)
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Palette */
  --navy:      #0c1e3e;
  --navy-2:    #122a52;
  --garnet:    #d0324c;
  --garnet-dk: #b02440;
  --rose:      #e8607a;
  --teal:      #12a594;
  --ink:       #14213d;
  --slate:     #55627a;
  --muted:     #8793a8;
  --line:      #e6ebf3;
  --cream:     #f4f7fb;
  --cream-2:   #eef3fa;
  --white:     #ffffff;
  --wa:        #25d366;

  /* Typography */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:    "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --container: 1200px;
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(12,30,62,.06);
  --shadow:    0 14px 40px rgba(12,30,62,.10);
  --shadow-lg: 0 30px 70px rgba(12,30,62,.16);
  --ease:      cubic-bezier(.22,.61,.36,1);
}

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

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

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; color: var(--navy); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 92%); margin-inline: auto; }

/* ---------- 3. Reusable atoms ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--garnet); margin-bottom: 18px;
}
.eyebrow--light { color: var(--rose); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--garnet); box-shadow: 0 0 0 4px rgba(208,50,76,.14); }
.eyebrow--light .eyebrow__dot { background: var(--rose); box-shadow: 0 0 0 4px rgba(232,96,122,.2); }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--cream); }
.section--dark { background: var(--navy); color: #cdd7ea; }
.section--dark .section__title { color: #fff; }

.section__head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); }
.section__lead { color: var(--slate); margin-top: 16px; font-size: 1.08rem; }
.section--dark .section__lead { color: #9fb0cc; }

/* Buttons */
.btn {
  --pad: 13px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad); border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn--lg { --pad: 16px 30px; font-size: 1rem; }
.btn--sm { --pad: 9px 16px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--solid { background: var(--garnet); color: #fff; box-shadow: 0 10px 24px rgba(208,50,76,.28); }
.btn--solid:hover { background: var(--garnet-dk); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(208,50,76,.34); }
.btn--outline { border: 1.5px solid var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--ghost { color: var(--navy); padding-inline: 12px; }
.btn--ghost:hover { color: var(--garnet); }
.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.28); }
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37,211,102,.34); }

/* ---------- 4. Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px 0; transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.nav.is-scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); padding: 10px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { border-radius: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--display); font-size: 1.28rem; font-weight: 600; color: var(--navy); }
.brand__sub { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--garnet); font-weight: 600; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: var(--rose); }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: .95rem; font-weight: 500; color: var(--slate); position: relative; padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--garnet);
  transition: width .25s var(--ease); border-radius: 2px;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--navy); }
.nav__links a.is-active::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s var(--ease); }
.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); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; padding: clamp(120px, 16vw, 180px) 0 clamp(70px, 9vw, 110px);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(18,165,148,.10), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(208,50,76,.08), transparent 55%),
    var(--cream);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 500; }
.hero__desc { color: var(--slate); font-size: 1.14rem; margin: 22px 0 30px; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__trust { display: flex; gap: 32px; margin-top: 42px; flex-wrap: wrap; }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--display); font-size: 1.7rem; color: var(--navy); font-weight: 600; }
.hero__trust span { font-size: .84rem; color: var(--muted); }

.hero__media { position: relative; }
.hero__imgwrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 5/6;
}
.hero__imgwrap img { width: 100%; height: 100%; object-fit: cover; }

/* Signature ECG overlay */
.ecg {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  background: rgba(12,30,62,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 12px 16px;
}
.ecg svg { width: 100%; height: 46px; display: block; }
.ecg__line { stroke: var(--teal); filter: drop-shadow(0 0 6px rgba(18,165,148,.6)); stroke-dasharray: 620; stroke-dashoffset: 620; animation: ecg-draw 3.4s linear infinite; }
@keyframes ecg-draw { to { stroke-dashoffset: -620; } }
.ecg__label { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: #dbe6f5; font-size: .78rem; letter-spacing: .04em; }
.ecg__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(18,165,148,.55); } 50% { box-shadow: 0 0 0 7px rgba(18,165,148,0); } }

.hero__badge {
  position: absolute; top: 26px; left: -26px; background: #fff; border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.hero__badge-num { font-family: var(--display); font-size: 1.9rem; color: var(--garnet); font-weight: 600; line-height: 1; }
.hero__badge-lbl { font-size: .78rem; color: var(--muted); max-width: 8em; margin-top: 4px; }

/* ---------- 6. Counters ---------- */
.counters { background: var(--navy); }
.counters__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding: clamp(38px,5vw,56px) 0; }
.counter { text-align: center; padding: 8px 12px; position: relative; }
.counter + .counter::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: rgba(255,255,255,.12); }
.counter__num { font-family: var(--display); font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 600; color: #fff; line-height: 1; }
.counter__num .suffix { color: var(--rose); }
.counter__label { color: #9fb0cc; font-size: .9rem; margin-top: 8px; letter-spacing: .02em; }

/* ---------- 7. About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px,5vw,72px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about__stat {
  position: absolute; right: -18px; bottom: -22px; background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 190px;
}
.about__stat-num { font-family: var(--display); font-size: 2rem; font-weight: 600; color: var(--rose); display: block; line-height: 1; }
.about__stat-lbl { font-size: .82rem; color: #b8c5db; margin-top: 6px; display: block; }
.about__copy p { color: var(--slate); font-size: 1.06rem; }
.about__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 26px 0 30px; }
.about__list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink); font-size: .96rem; }
.about__list li::before {
  content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 50%; background: rgba(18,165,148,.14);
  color: var(--teal); display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 2px;
}

/* ---------- 8. Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden;
}
.service::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--garnet), var(--rose));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
  background: rgba(208,50,76,.09); margin-bottom: 20px;
}
.service__title { font-size: 1.28rem; margin-bottom: 10px; }
.service__desc { color: var(--slate); font-size: .96rem; }

/* ---------- 9. Doctors ---------- */
.doctors__tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 40px; }
.search { position: relative; flex: 1; min-width: 260px; max-width: 400px; color: var(--muted); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.search input {
  width: 100%; padding: 14px 16px 14px 44px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search input:focus { border-color: var(--garnet); box-shadow: 0 0 0 4px rgba(208,50,76,.1); outline: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-size: .85rem; font-weight: 500; color: var(--slate); transition: .2s var(--ease);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.doctors__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.doctor {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.doctor:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doctor__photo { position: relative; aspect-ratio: 4/4.2; overflow: hidden; background: var(--cream-2); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.doctor:hover .doctor__photo img { transform: scale(1.05); }
.doctor__spec {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  color: var(--garnet); font-size: .74rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .06em;
}
.doctor__body { padding: 22px 22px 26px; }
.doctor__name { font-size: 1.24rem; }
.doctor__qual { color: var(--muted); font-size: .84rem; margin: 3px 0 14px; }
.doctor__meta { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.doctor__meta div { display: flex; justify-content: space-between; font-size: .88rem; }
.doctor__meta dt { color: var(--muted); }
.doctor__meta dd { color: var(--navy); font-weight: 600; text-align: right; }
.doctors__empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 1.05rem; }

/* ---------- 10. Why choose us ---------- */
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px,5vw,64px); align-items: start; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why__card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 26px 24px; transition: background .3s var(--ease), transform .3s var(--ease);
}
.why__card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.why__icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(232,96,122,.16); color: var(--rose); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px; }
.why__card h3 { color: #fff; font-size: 1.16rem; margin-bottom: 8px; }
.why__card p { color: #9fb0cc; font-size: .92rem; }

/* ---------- 11. Facilities ---------- */
.facilities__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.facility {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 22px; transition: .3s var(--ease);
}
.facility:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.facility__icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: rgba(18,165,148,.1); color: var(--teal); display: grid; place-items: center; font-size: 1.4rem; }
.facility h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--navy); }
.facility p { font-size: .84rem; color: var(--muted); }

/* ---------- 12. Process ---------- */
.process__steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.process__step { position: relative; padding-top: 20px; }
.process__step::before {
  content: counter(step, decimal-leading-zero); counter-increment: step;
  font-family: var(--display); font-size: 2.6rem; color: var(--garnet); font-weight: 600; display: block; line-height: 1;
}
.process__step::after {
  content: ""; position: absolute; top: 34px; left: 64px; right: -22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.process__step:last-child::after { display: none; }
.process__step h3 { font-size: 1.18rem; margin: 16px 0 8px; }
.process__step p { color: var(--slate); font-size: .92rem; }

/* ---------- 13. Booking ---------- */
.book__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px,5vw,60px); align-items: start; }
.book__aside p { color: var(--slate); margin-bottom: 26px; }
.hours { background: var(--cream); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.hours__title { font-family: var(--body); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.hours__list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.hours__list li:last-child { border-bottom: none; }
.hours__list .day { color: var(--slate); }
.hours__list .time { font-weight: 600; color: var(--navy); }
.hours__list .time.closed { color: var(--garnet); }

.emergency { display: flex; align-items: center; gap: 14px; background: rgba(208,50,76,.06); border: 1px solid rgba(208,50,76,.18); border-radius: var(--radius); padding: 16px 20px; }
.emergency__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--garnet); color: #fff; display: grid; place-items: center; }
.emergency__label { display: block; font-size: .8rem; color: var(--slate); }
.emergency__num { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--garnet); }

.book__formwrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px,4vw,40px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fdfdfe;
  color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--garnet); box-shadow: 0 0 0 4px rgba(208,50,76,.1); outline: none; background: #fff; }
.field textarea { resize: vertical; }
.field input.invalid, .field select.invalid { border-color: var(--garnet); background: #fff6f7; }
.form__note { margin-top: 14px; font-size: .92rem; text-align: center; }
.form__note.ok { color: var(--teal); font-weight: 600; }
.form__note.err { color: var(--garnet); font-weight: 600; }

/* ---------- 14. Testimonials ---------- */
.testi__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.testi__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; }
.testi__quote { font-size: 3.4rem; font-family: var(--display); color: rgba(208,50,76,.16); line-height: .6; height: 24px; }
.testi__text { color: var(--slate); font-size: 1rem; margin: 8px 0 22px; }
.testi__stars { color: #f0a500; margin-bottom: 16px; letter-spacing: 2px; }
.testi__person { display: flex; align-items: center; gap: 12px; }
.testi__person img { width: 46px; height: 46px; border-radius: 50%; }
.testi__name { font-weight: 700; color: var(--navy); font-size: .95rem; }
.testi__role { font-size: .8rem; color: var(--muted); }

/* ---------- 15. FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px,5vw,60px); align-items: start; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; text-align: left; font-family: var(--display); font-size: 1.14rem; color: var(--navy); font-weight: 500;
}
.faq__q .plus { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; position: relative; transition: .3s var(--ease); }
.faq__q .plus::before, .faq__q .plus::after { content: ""; position: absolute; background: var(--garnet); border-radius: 2px; }
.faq__q .plus::before { width: 11px; height: 2px; }
.faq__q .plus::after { width: 2px; height: 11px; transition: transform .3s var(--ease); }
.faq__item.is-open .plus { background: var(--garnet); border-color: var(--garnet); }
.faq__item.is-open .plus::before, .faq__item.is-open .plus::after { background: #fff; }
.faq__item.is-open .plus::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { color: var(--slate); padding-bottom: 22px; font-size: .98rem; }

/* ---------- 16. Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery__item { overflow: hidden; border-radius: var(--radius-sm); position: relative; box-shadow: var(--shadow-sm); }
.gallery__item:nth-child(1) { grid-row: span 2; }
.gallery__item:nth-child(6) { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12,30,62,.25)); opacity: 0; transition: opacity .3s var(--ease); }
.gallery__item:hover::after { opacity: 1; }

/* ---------- 17. Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,60px); align-items: stretch; }
.contact__list { display: grid; gap: 20px; margin: 26px 0 28px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__ic { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; font-size: 1.1rem; }
.contact__k { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact__v { display: block; color: var(--navy); font-weight: 600; }
a.contact__v:hover { color: var(--garnet); }
.contact__social { display: flex; gap: 10px; }
.contact__social a {
  width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); display: grid; place-items: center;
  color: var(--navy); transition: .25s var(--ease);
}
.contact__social a:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-3px); }

.contact__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.map {
  height: 100%; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(18,165,148,.1), transparent 40%),
    repeating-linear-gradient(0deg, var(--cream-2) 0 39px, #e2e9f4 39px 40px),
    repeating-linear-gradient(90deg, var(--cream-2) 0 39px, #e2e9f4 39px 40px);
  color: var(--muted); text-align: center; padding: 20px;
}
.map__pin { color: var(--garnet); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 18. Footer ---------- */
.footer { background: var(--navy); color: #9fb0cc; padding: clamp(56px,7vw,84px) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__tag { margin: 18px 0 20px; max-width: 26em; font-size: .95rem; }
.footer__col h4 { color: #fff; font-family: var(--body); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer__col a, .footer__addr { display: block; color: #9fb0cc; padding: 6px 0; font-size: .94rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* ---------- 19. Floating buttons ---------- */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.4);
  animation: wa-bob 3s ease-in-out infinite; transition: transform .25s var(--ease);
}
.fab-wa:hover { transform: scale(1.08); }
@keyframes wa-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.fab-top {
  position: fixed; right: 24px; bottom: 88px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease);
}
.fab-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-top:hover { background: var(--garnet); }

/* ---------- 20. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid, .about__grid, .why__grid, .book__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .services__grid, .doctors__grid, .testi__grid, .facilities__grid { grid-template-columns: repeat(2,1fr); }
  .process__steps { grid-template-columns: repeat(2,1fr); }
  .process__step:nth-child(2)::after { display: none; }
  .hero__badge { left: 0; }
  .about__media { max-width: 520px; }
  .why__list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82%); background: #fff; flex-direction: column;
    padding: 90px 32px 32px; gap: 6px; box-shadow: var(--shadow-lg); transform: translateX(100%);
    transition: transform .35s var(--ease); z-index: 99;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__actions .nav__call { display: none; }
  .nav__toggle { display: flex; z-index: 100; }
  .counters__grid { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .counter:nth-child(2)::before { display: none; }
  .services__grid, .doctors__grid, .testi__grid, .facilities__grid, .why__list { grid-template-columns: 1fr; }
  .about__list { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery__item:nth-child(1), .gallery__item:nth-child(6) { grid-row: auto; grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__trust { gap: 22px; }
  .about__stat { right: 0; }
}

@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
  .doctors__tools { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
}

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 23. Print ---------- */
@media print {
  .nav, .fab-wa, .fab-top, .hero__cta, .book__formwrap { display: none; }
  body { font-size: 12px; }
}
