/* =========================================================================
   CARDIOCORE — Cardiology Clinic Template
   Design system: "Clinical Vitals"
   Deep navy + clinical white + steel blue, single restrained pulse-red.
   Display: Space Grotesk · Body: IBM Plex Sans · Data: IBM Plex Mono
   Signature: live animated ECG trace.
   ========================================================================= */

/* ------------------------------ TOKENS ---------------------------------- */
:root {
  --navy:      #0C1E38;
  --navy-800:  #0A1830;
  --navy-700:  #12294a;
  --ink:       #14243D;
  --blue:      #2C6BED;
  --blue-600:  #1F55C9;
  --sky:       #EAF1FC;
  --pulse:     #F0475A;   /* used ONLY for heartbeat / emergency */
  --slate:     #56698A;
  --slate-300: #8A99B3;
  --paper:     #FFFFFF;
  --clinical:  #F4F7FB;
  --line:      #DEE6F1;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --container: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 3px rgba(12,30,56,.06), 0 6px 16px -10px rgba(12,30,56,.18);
  --shadow: 0 20px 48px -24px rgba(12,30,56,.30);
  --shadow-lg: 0 34px 70px -30px rgba(12,30,56,.42);
  --ring: 0 0 0 3px rgba(44,107,237,.30);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------ RESET ----------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input,select,textarea { font: inherit; color: inherit; }
.mono { font-family: var(--font-mono); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 200; background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: 8px; transition: top .2s var(--ease); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* --------------------------- TYPOGRAPHY --------------------------------- */
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .95rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--pulse); border-radius: 2px; }
.section__lede { color: var(--slate); font-size: 1.05rem; max-width: 52ch; margin-top: .85rem; }
.section__head { max-width: 620px; margin-bottom: clamp(2rem, 4.5vw, 3.2rem); }

/* ----------------------------- BUTTONS ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.55rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: .62rem 1.1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 26px -12px rgba(44,107,237,.7); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(44,107,237,.8); }
.btn--outline { border: 1.5px solid rgba(255,255,255,.28); color: #fff; }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn--wa { background: rgba(37,211,102,.16); color: #7ee6a5; border: 1.5px solid rgba(37,211,102,.35); }
.btn--wa:hover { background: #25D366; color: #05230f; border-color: #25D366; transform: translateY(-2px); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.4rem; font-weight: 600; color: var(--blue); }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ------------------------------- NAV ------------------------------------ */
.nav { position: sticky; top: 0; z-index: 100; transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.nav:not(.is-stuck) { background: transparent; }
.nav:not(.is-stuck) .nav__links a { color: rgba(255,255,255,.82); }
.nav:not(.is-stuck) .nav__links a:hover,
.nav:not(.is-stuck) .nav__links a.active { color: #fff; }
.nav:not(.is-stuck) .brand__name { color: #fff; }
.nav:not(.is-stuck) .brand__mark { color: var(--pulse); }
.nav:not(.is-stuck) .nav__phone { color: rgba(255,255,255,.85); }
.nav:not(.is-stuck) .nav__toggle span { background: #fff; }
.nav.is-stuck { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }

.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand__mark { color: var(--pulse); display: inline-flex; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }

.nav__links { display: flex; gap: .1rem; align-items: center; }
.nav__links a { padding: .5rem .8rem; border-radius: 7px; font-size: .92rem; font-weight: 500; color: var(--slate); transition: color .2s var(--ease), background .2s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: var(--blue); }

.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__phone { font-size: .9rem; font-weight: 500; color: var(--ink); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .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); }

/* ------------------------------- HERO ----------------------------------- */
.hero {
  position: relative; background: var(--navy); color: #fff;
  padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3.5rem, 7vw, 6rem);
  margin-top: -72px; padding-top: calc(72px + clamp(2rem, 5vw, 3.5rem));
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 80% 10%, rgba(44,107,237,.28), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(240,71,90,.12), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .eyebrow { color: var(--pulse); }
.hero .eyebrow::before { background: var(--pulse); }
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.3rem, 5.2vw, 3.8rem); line-height: 1.05; letter-spacing: -.03em;
  margin: .4rem 0 1.1rem; color: #fff;
}
.hero__desc { color: rgba(255,255,255,.76); font-size: 1.1rem; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 1.5rem; }
.hero__status {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .88rem;
  color: rgba(255,255,255,.8); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: .5rem .9rem; border-radius: 999px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-300); position: relative; flex-shrink: 0; }
.hero__status.open .dot, .hours__badge.open .dot { background: #37d979; }
.hero__status.open .dot::after, .hours__badge.open .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #37d979; animation: ping 2s var(--ease) infinite;
}
.hero__status.closed .dot, .hours__badge.closed .dot { background: var(--pulse); }
@keyframes ping { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }

/* ---- Vitals monitor (signature) ---- */
.monitor {
  background: linear-gradient(180deg, #0e2242, #0b1c36);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.3rem; box-shadow: var(--shadow-lg);
}
.monitor__head { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; letter-spacing: .14em; color: rgba(255,255,255,.55); }
.monitor__live { display: inline-flex; align-items: center; gap: .4rem; color: var(--pulse); }
.monitor__live .dot { background: var(--pulse); }
.monitor__live .dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--pulse); animation: ping 1.6s var(--ease) infinite; }

.ecg-wrap { position: relative; overflow: hidden; }
.ecg-wrap--hero { height: 118px; margin: .9rem 0; border-radius: 8px; background:
  linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.03)),
  repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 26px),
  repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 26px);
}
.ecg-wrap--hero::before, .ecg-wrap--hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 42px; z-index: 2; pointer-events: none;
}
.ecg-wrap--hero::before { left: 0; background: linear-gradient(90deg, #0b1c36, transparent); }
.ecg-wrap--hero::after { right: 0; background: linear-gradient(270deg, #0b1c36, transparent); }
.ecg-svg { width: 100%; height: 100%; display: block; }
.ecg-path { stroke: var(--pulse); filter: drop-shadow(0 0 6px rgba(240,71,90,.55)); animation: ecgscroll 3s linear infinite; }
@keyframes ecgscroll { from { transform: translateX(0); } to { transform: translateX(-180px); } }

.monitor__readout { display: flex; align-items: flex-end; gap: 1.5rem; padding: .3rem .4rem 0; }
.vital { display: flex; flex-direction: column; }
.vital__num { font-size: 2.4rem; font-weight: 600; color: #fff; line-height: 1; letter-spacing: -.02em; }
.vital--sm .vital__num { font-size: 1.15rem; color: rgba(255,255,255,.9); }
.vital__unit { font-size: .66rem; letter-spacing: .12em; color: rgba(255,255,255,.5); margin-top: .35rem; }
.vital__num small { font-size: .55em; }
.monitor__foot { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .74rem; letter-spacing: .06em; color: rgba(255,255,255,.6); }

/* ------------------------- ACCREDITATION -------------------------------- */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust__inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; padding-block: 1.4rem; }
.trust__label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-300); white-space: nowrap; }
.trust__logos { display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem; align-items: center; }
.trust__logos li { font-family: var(--font-display); font-weight: 600; color: var(--slate); opacity: .8; font-size: .95rem; display: flex; align-items: center; gap: .45rem; }
.trust__logos li::before { content: "✚"; color: var(--blue); }

/* ------------------------------ STATS ----------------------------------- */
.stats { background: var(--clinical); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-block: clamp(2.5rem,5vw,3.5rem); }
.stat { background: var(--paper); text-align: center; padding: clamp(1.6rem, 3vw, 2.4rem) 1rem; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.stat__num .suffix { color: var(--pulse); }
.stat__label { display: block; margin-top: .6rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; color: var(--slate); text-transform: uppercase; }

/* --------------------------- SECTION BG --------------------------------- */
.section { padding-block: var(--section-y); }
.about { background: var(--paper); }
.services { background: var(--clinical); }
.doctors { background: var(--paper); }
.why { background: var(--clinical); }
.facilities { background: var(--paper); }
.process { background: var(--clinical); }
.booking { background: var(--paper); }
.testimonials { background: var(--clinical); }
.gallery { background: var(--paper); }
.faq { background: var(--clinical); }
.contact { background: var(--paper); }

/* ------------------------------ ABOUT ----------------------------------- */
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__stat {
  position: absolute; right: -14px; bottom: -18px; background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-lg); text-align: center;
  border: 1px solid rgba(255,255,255,.08);
}
.about__stat-num { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--pulse); line-height: 1; }
.about__stat-label { font-size: .74rem; color: rgba(255,255,255,.7); }
.about__text p { color: var(--slate); margin-bottom: 1rem; }
.about__points { display: grid; gap: .7rem; margin: 1.3rem 0 .3rem; }
.about__points li { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; color: var(--ink); }
.about__points li::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; border-radius: 50%; background: var(--sky); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4 10-10' fill='none' stroke='%232C6BED' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 13px; background-repeat: no-repeat; background-position: center; }

/* ----------------------------- SERVICES --------------------------------- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.service {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; position: relative; overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.service::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .3s var(--ease); }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: scaleY(1); }
.service__icon { width: 48px; height: 48px; border-radius: 11px; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 1.1rem; }
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); margin-bottom: .45rem; letter-spacing: -.01em; }
.service p { color: var(--slate); font-size: .92rem; }

/* ----------------------------- DOCTORS ---------------------------------- */
.doctors__tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2.2rem; }
.search { display: flex; align-items: center; gap: .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .1rem .3rem .1rem .9rem; min-width: 270px; flex: 1 1 260px; max-width: 340px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.search:focus-within { border-color: var(--blue); box-shadow: var(--ring); }
.search__icon { color: var(--slate-300); }
.search input { border: 0; background: none; padding: .65rem .3rem; width: 100%; outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { padding: .5rem .95rem; border-radius: 999px; font-size: .82rem; font-weight: 500; border: 1px solid var(--line); color: var(--slate); background: var(--paper); transition: all .2s var(--ease); }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.doctors__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.doctor { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.doctor:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.doctor__photo { aspect-ratio: 1/1; background: var(--sky); overflow: hidden; position: relative; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor__tag { position: absolute; left: 10px; top: 10px; background: rgba(12,30,56,.85); color: #fff; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em; padding: .3rem .6rem; border-radius: 6px; backdrop-filter: blur(4px); }
.doctor__body { padding: 1.15rem 1.2rem 1.3rem; }
.doctor__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.doctor__qual { color: var(--blue); font-weight: 600; font-size: .78rem; margin-top: .1rem; }
.doctor__meta { margin-top: .85rem; display: grid; gap: .4rem; font-size: .82rem; color: var(--slate); }
.doctor__meta span { display: flex; gap: .5rem; align-items: center; }
.doctor__meta svg { width: 14px; height: 14px; color: var(--pulse); flex-shrink: 0; }
.doctors__empty { text-align: center; color: var(--slate); padding: 2rem; font-family: var(--font-mono); }

/* --------------------------- EMERGENCY BAND ----------------------------- */
.emergency { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding-block: clamp(3rem, 6vw, 4.5rem); }
.ecg-wrap--band { position: absolute; inset: 0; height: 100%; opacity: .28; }
.ecg-wrap--band .ecg-path { stroke: var(--pulse); }
.emergency__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.emergency .eyebrow { color: var(--pulse); }
.emergency .section__title { color: #fff; }
.emergency__text p { color: rgba(255,255,255,.72); max-width: 42ch; margin-top: .6rem; }
.emergency__call {
  display: grid; gap: .15rem; background: var(--pulse); color: #fff; text-align: center;
  padding: 1.3rem 2.2rem; border-radius: var(--radius); position: relative; box-shadow: 0 20px 44px -18px rgba(240,71,90,.7);
  transition: transform .2s var(--ease);
}
.emergency__call:hover { transform: translateY(-3px); }
.emergency__pulse { position: absolute; inset: 0; border-radius: var(--radius); border: 2px solid var(--pulse); animation: ping 2.2s var(--ease) infinite; }
.emergency__label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.emergency__num { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }

/* --------------------------- WHY CHOOSE US ------------------------------ */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.why__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.why__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.why__icon { width: 46px; height: 46px; border-radius: 11px; background: var(--navy); color: var(--pulse); display: grid; place-items: center; margin-bottom: 1rem; }
.why__icon svg { width: 22px; height: 22px; }
.why__card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: .4rem; }
.why__card p { color: var(--slate); font-size: .9rem; }

/* ---------------------------- FACILITIES -------------------------------- */
.facilities__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.facility { display: flex; align-items: center; gap: .85rem; padding: 1.05rem 1.2rem; background: var(--clinical); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .22s var(--ease), border-color .22s var(--ease); }
.facility:hover { transform: translateY(-3px); border-color: var(--blue); }
.facility__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 9px; background: var(--paper); border: 1px solid var(--line); color: var(--blue); display: grid; place-items: center; }
.facility__icon svg { width: 20px; height: 20px; }
.facility span:last-child { font-weight: 500; font-size: .92rem; }

/* ----------------------------- PROCESS ---------------------------------- */
.process__timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; position: relative; }
.process__timeline::before { content: ""; position: absolute; top: 26px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: left; }
.step__num { width: 54px; height: 54px; border-radius: 13px; background: var(--paper); border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; position: relative; z-index: 1; margin-bottom: 1.1rem; box-shadow: var(--shadow-sm); transition: background .25s var(--ease), color .25s var(--ease); }
.step:hover .step__num { background: var(--blue); color: #fff; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: .35rem; }
.step p { color: var(--slate); font-size: .9rem; max-width: 26ch; }

/* ------------------------- BOOKING + HOURS ------------------------------ */
.booking__inner { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.form { margin-top: 1.7rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field__opt { color: var(--slate-300); font-weight: 400; }
.field input, .field select, .field textarea { padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--clinical); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); background: var(--paper); }
.field.invalid input, .field.invalid select { border-color: var(--pulse); }
.field__error { color: var(--pulse); font-size: .76rem; margin-top: .3rem; min-height: 1em; }
.form__note { text-align: center; color: var(--slate); font-size: .76rem; margin-top: .85rem; }
.form__success { margin-top: 1rem; background: var(--sky); border: 1px solid var(--blue); color: var(--blue-600); padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: .93rem; }

.hours { position: sticky; top: 96px; }
.hours__card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); }
.hours__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.hours__card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: #fff; }
.hours__badge { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .72rem; padding: .3rem .6rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.hours__badge.open { color: #6ff0a2; } .hours__badge.closed { color: #ff8b96; }
.hours__list li { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.hours__list li:last-child { border-bottom: 0; }
.hours__list .day { color: rgba(255,255,255,.7); }
.hours__list .time { font-family: var(--font-mono); font-size: .82rem; color: #fff; }
.hours__list .time.closed { color: var(--pulse); }
.hours__list li.today { position: relative; }
.hours__list li.today .day { color: #fff; font-weight: 600; }
.hours__note { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .74rem; color: var(--pulse); letter-spacing: .04em; }

/* --------------------------- TESTIMONIALS ------------------------------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.testimonial { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; }
.testimonial__stars { color: var(--pulse); letter-spacing: 2px; margin-bottom: .8rem; font-size: .95rem; }
.testimonial__quote { color: var(--ink); font-size: .98rem; margin-bottom: 1.3rem; flex: 1; }
.testimonial__author { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.testimonial__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--sky); }
.testimonial__name { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .92rem; }
.testimonial__role { font-family: var(--font-mono); font-size: .74rem; color: var(--slate); }

/* ------------------------------ GALLERY --------------------------------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: .9rem; }
.gallery__item { overflow: hidden; border-radius: var(--radius-sm); position: relative; border: 1px solid var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12,30,56,.4)); opacity: 0; transition: opacity .3s var(--ease); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

/* -------------------------------- FAQ ----------------------------------- */
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.faq__list { display: grid; gap: .7rem; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .25s var(--ease); }
.faq__item.open { border-color: var(--blue); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; text-align: left; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .98rem; }
.faq__q .plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__q .plus::before, .faq__q .plus::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; transition: transform .3s var(--ease); }
.faq__q .plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__q .plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__item.open .plus::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { padding: 0 1.4rem 1.3rem; color: var(--slate); }

/* ------------------------------ CONTACT --------------------------------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: stretch; }
.contact__list { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list .ci { width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; background: var(--sky); color: var(--blue); display: grid; place-items: center; }
.contact__list .ci svg { width: 20px; height: 20px; }
.contact__list .lbl { display: block; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-300); }
.contact__list .val { font-weight: 500; color: var(--ink); }
.contact__social { display: flex; gap: .6rem; margin-top: 1.7rem; }
.contact__social a, .footer__social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--slate); transition: all .22s var(--ease); font-weight: 600; font-size: .85rem; }
.contact__social a:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-3px); }

.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 360px; }
.map-placeholder { height: 100%; min-height: 360px; display: grid; place-content: center; justify-items: center; gap: .5rem; text-align: center; padding: 2rem; color: var(--slate);
  background: linear-gradient(rgba(244,247,251,.9), rgba(244,247,251,.9)),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 38px), var(--clinical); }
.map-placeholder__pin { color: var(--pulse); }
.map-placeholder p { font-weight: 600; color: var(--ink); font-size: .82rem; letter-spacing: .04em; }

/* ------------------------------ FOOTER ---------------------------------- */
.footer { background: var(--navy-800); color: rgba(255,255,255,.66); padding-top: clamp(3rem, 6vw, 4.2rem); }
.footer__inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 2.4rem; padding-bottom: 2.4rem; }
.footer__brand p { margin: 1rem 0 1.3rem; max-width: 34ch; font-size: .9rem; }
.footer__social { display: flex; gap: .55rem; }
.footer__social a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.footer__social a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.footer__col h4 { color: rgba(255,255,255,.5); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; font-weight: 500; }
.footer__col li { margin-bottom: .6rem; }
.footer__col a, .footer__col li { font-size: .9rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer__credit strong { color: var(--pulse); }

/* -------------------------- FLOATING / TO-TOP --------------------------- */
.fab-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 16px; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.6); transition: transform .22s var(--ease); }
.fab-whatsapp:hover { transform: translateY(-3px) scale(1.04); }
.to-top { position: fixed; right: 22px; bottom: 88px; z-index: 90; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue); }

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

/* ------------------------------ RESPONSIVE ------------------------------ */
@media (max-width: 1024px) {
  .services__grid, .why__grid, .facilities__grid, .doctors__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: .8rem var(--gutter) 1.3rem; box-shadow: var(--shadow); border-top: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 99; }
  .nav__links.open { transform: translateY(0); }
  .nav:not(.is-stuck) .nav__links a { color: var(--slate); }
  .nav__links a { padding: .85rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__toggle { display: flex; }
  .nav__phone, .nav__cta { display: none; }

  .hero__inner { grid-template-columns: 1fr; }
  .monitor { max-width: 460px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 500px; }
  .booking__inner { grid-template-columns: 1fr; }
  .hours { position: static; }
  .faq__inner, .contact__inner { grid-template-columns: 1fr; }
  .process__timeline { grid-template-columns: 1fr 1fr; }
  .process__timeline::before { display: none; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .emergency__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .services__grid, .why__grid, .facilities__grid, .doctors__grid, .process__timeline, .stats__grid, .footer__inner { grid-template-columns: 1fr; }
  .footer__col a, .footer__col li, .contact__list .val { overflow-wrap: anywhere; }
  .form__row { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
  .monitor__readout { gap: 1rem; }
  .vital__num { font-size: 2rem; }
  .emergency__call { width: 100%; }
}
