@charset "UTF-8";
/* =========================================================
   SAHYADRI MULTISPECIALITY HOSPITAL
   Design system + page styles
   ---------------------------------------------------------
   01 Tokens          08 Hero              15 Story
   02 Reset & base    09 Quick actions     16 Reviews
   03 Typography      10 Trust strip       17 CTA + forms
   04 Buttons         11 About             18 Gallery
   05 Sections        12 Specialities      19 Location
   06 Media slots     13 Why choose        20 Footer
   07 Header & nav    14 Doctors/Facilities 21 Utilities
   ========================================================= */

/* =========================================================
   01. TOKENS
   ========================================================= */
:root {
  /* Brand */
  --primary:      #0B5C8E;
  --primary-dark: #073B5C;
  --primary-deep: #062B44;
  --primary-tint: #E8F1F8;
  --secondary:      #159A9C;
  --secondary-dark: #0E7375;
  --secondary-tint: #E3F5F5;
  --emergency:      #D62828;
  --emergency-dark: #A81E1E;
  --emergency-tint: #FDECEC;

  /* Neutrals */
  --bg:      #F6FAFC;
  --bg-alt:  #EFF5F9;
  --white:   #FFFFFF;
  --navy:    #072436;
  --text:    #172B3A;
  --muted:   #64748B;
  --line:    #E1EBF2;
  --line-2:  #CEDDE8;

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-hero:  clamp(2.05rem, 1.35rem + 3.1vw, 3.85rem);
  --fs-h1:    clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem);
  --fs-h2:    clamp(1.55rem, 1.2rem + 1.6vw, 2.5rem);
  --fs-h3:    clamp(1.12rem, 1rem + 0.5vw, 1.4rem);
  --fs-lead:  clamp(1rem, 0.96rem + 0.3vw, 1.16rem);
  --fs-body:  1rem;
  --fs-sm:    0.9375rem;
  --fs-xs:    0.8125rem;

  /* Space */
  --gap:      clamp(16px, 2.2vw, 28px);
  --section:  clamp(58px, 7.5vw, 108px);
  --wrap:     1240px;

  /* Shape */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Elevation */
  --sh-xs: 0 1px 2px rgba(7, 36, 54, .05);
  --sh-sm: 0 2px 8px rgba(7, 36, 54, .06), 0 1px 2px rgba(7, 36, 54, .04);
  --sh:    0 10px 30px rgba(7, 36, 54, .08), 0 2px 6px rgba(7, 36, 54, .04);
  --sh-lg: 0 24px 60px rgba(7, 36, 54, .14), 0 6px 16px rgba(7, 36, 54, .06);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .38s;

  --header-h: 74px;
}

/* =========================================================
   02. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--primary); color: #fff; }

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--primary-dark);
  color: #fff;
  border-radius: 0 0 var(--r-xs) var(--r-xs);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================
   03. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.022em;
  color: var(--primary-deep);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 750; }
h3 { font-size: var(--fs-h3); }

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--secondary-dark);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--secondary);
  flex: none;
}
.eyebrow--light { color: #7FD6D8; }
.eyebrow--light::before { background: #7FD6D8; }
.eyebrow--center { justify-content: center; }

.num { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* =========================================================
   04. BUTTONS
   ========================================================= */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  --btn-bd: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 24px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-xs);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: -.005em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.btn:active { transform: translateY(0); }
.btn .ico { flex: none; }

.btn--primary:hover  { --btn-bg: var(--primary-dark); --btn-bd: var(--primary-dark); }
.btn--secondary { --btn-bg: var(--secondary); --btn-bd: var(--secondary); }
.btn--secondary:hover { --btn-bg: var(--secondary-dark); --btn-bd: var(--secondary-dark); }
.btn--emergency { --btn-bg: var(--emergency); --btn-bd: var(--emergency); }
.btn--emergency:hover { --btn-bg: var(--emergency-dark); --btn-bd: var(--emergency-dark); }

.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--primary-dark); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--primary-tint); --btn-bd: var(--primary); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.42); }
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: #fff; }

.btn--white { --btn-bg: #fff; --btn-fg: var(--primary-dark); --btn-bd: #fff; }
.btn--white:hover { --btn-bg: var(--primary-tint); --btn-bd: var(--primary-tint); }

.btn--sm  { min-height: 42px; padding: 9px 16px; font-size: .875rem; }
.btn--xs  { min-height: 40px; padding: 8px 14px; font-size: .8125rem; border-width: 1px; gap: 6px; }
.btn--lg  { min-height: 58px; padding: 17px 32px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--primary);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: gap .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.link-arrow:hover { gap: 12px; border-bottom-color: var(--secondary); color: var(--primary-dark); }

/* Give inline arrow links a full-size touch target on touch devices. */
@media (pointer: coarse) {
  .link-arrow { padding-block: 9px 8px; }
}

/* =========================================================
   05. LAYOUT & SECTIONS
   ========================================================= */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 36px);
}
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(42px, 5.5vw, 74px); }
.section--tinted { background: var(--bg); }
.section--alt    { background: var(--bg-alt); }
.section--navy   { background: var(--primary-deep); color: rgba(255,255,255,.82); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--line-top { border-top: 1px solid var(--line); }

/* Faint medical-cross field used behind tinted sections */
.section--pattern::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .28;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent 72%);
  pointer-events: none;
}
.section--pattern > .wrap { position: relative; z-index: 1; }

.section-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: var(--fs-lead); margin-bottom: 0; }

.section-head--split {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 20px; max-width: none;
}
.section-head--split > div { max-width: 640px; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* =========================================================
   06. MEDIA SLOTS
   ========================================================= */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg-alt);
  aspect-ratio: var(--slot-ratio, 4 / 3);
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .7s var(--ease);
}
.media__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 20px 16px;
  background: linear-gradient(transparent, rgba(6, 32, 48, .82));
  color: #fff; font-size: var(--fs-xs); font-weight: 550;
}

/* Designed placeholder for photographs not yet supplied */
.media--placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(11, 92, 142, .035) 10px 11px),
    linear-gradient(160deg, var(--primary-tint), var(--secondary-tint));
  border: 1px dashed var(--line-2);
  color: var(--primary);
  text-align: center;
  padding: 18px;
}
.media__mark {
  width: 34px; height: 34px;
  background: currentColor;
  opacity: .3;
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6Z'/%3E%3C/svg%3E");
          mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6Z'/%3E%3C/svg%3E");
}
.media__label { font-size: var(--fs-sm); font-weight: 650; color: var(--primary-dark); }
.media__hint  { font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* Decorative slot: sits behind headline copy, so it carries no label
   and stays dark enough for white text to hold its contrast. */
.media--placeholder.is-decorative {
  border: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, .022) 18px 19px),
    radial-gradient(ellipse 90% 70% at 78% 24%, #12628F 0%, transparent 62%),
    linear-gradient(150deg, #0B4B72, #062A42 62%);
}

/* =========================================================
   07. EMERGENCY BAR, HEADER & NAVIGATION
   ========================================================= */
.emergency-bar {
  background: var(--primary-deep);
  color: rgba(255,255,255,.9);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.emergency-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 44px; padding-block: 6px; flex-wrap: wrap;
}
.emergency-bar__note {
  display: flex; align-items: center; gap: 9px;
  margin: 0; font-weight: 550; letter-spacing: .01em;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #FF6B6B; flex: none;
  box-shadow: 0 0 0 0 rgba(255, 107, 107, .7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(255, 107, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}
.emergency-bar__actions { display: flex; align-items: center; gap: 14px; }
.emergency-bar__phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 650; font-variant-numeric: tabular-nums;
  color: #fff; padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.emergency-bar__phone:hover { border-bottom-color: rgba(255,255,255,.5); }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 4px 24px rgba(7, 36, 54, .09); }
.site-header__inner {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
  transition: min-height .3s var(--ease);
}
.site-header.is-stuck .site-header__inner { min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { color: var(--primary); display: block; flex: none; }
.brand__mark svg { width: 38px; height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-size: 1.16rem; font-weight: 800;
  letter-spacing: -.03em; color: var(--primary-deep);
}
.brand__sub {
  font-size: .625rem; font-weight: 650;
  letter-spacing: .13em; text-transform: uppercase; color: var(--secondary-dark);
}

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(2px, .8vw, 8px); }
.nav__link {
  position: relative;
  display: block;
  padding: 10px 11px;
  font-size: .9rem; font-weight: 550;
  color: #35505F;
  border-radius: var(--r-xs);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute;
  left: 11px; right: 11px; bottom: 4px; height: 2px;
  background: var(--secondary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .26s var(--ease);
}
.nav__link:hover { color: var(--primary-dark); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-current { color: var(--primary-dark); font-weight: 650; }
.nav__link.is-current::after { transform: scaleX(1); }

.site-header__cta { display: flex; align-items: center; gap: 10px; flex: none; }

.header-call, .menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--line-2);
  background: var(--white);
  color: var(--primary-dark);
  cursor: pointer;
  flex: none;
}
.header-call:hover, .menu-toggle:hover { border-color: var(--primary); background: var(--primary-tint); }
.menu-toggle__bars { display: block; width: 20px; }
.menu-toggle__bars i {
  display: block; height: 2px; border-radius: 2px;
  background: currentColor; margin: 4px 0;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav { position: fixed; inset: 0; z-index: 120; }
.mobile-nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(7, 36, 54, .5);
  opacity: 0; transition: opacity .3s var(--ease);
}
.mobile-nav.is-open::before { opacity: 1; }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  display: flex; flex-direction: column;
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  background: var(--white);
  box-shadow: var(--sh-lg);
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.mobile-nav__title {
  font-size: .75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.mobile-nav__close {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--r-xs);
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
}
.mobile-nav__list { margin-bottom: 18px; }
.mobile-nav__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px;
  font-size: 1.02rem; font-weight: 600;
  color: var(--primary-deep);
  border-bottom: 1px solid var(--line);
}
.mobile-nav__list a .ico { color: var(--line-2); }
.mobile-nav__list a[aria-current="page"] { color: var(--secondary-dark); }
.mobile-nav__actions { display: grid; gap: 10px; margin-top: auto; }
.mobile-nav__meta {
  display: flex; align-items: center; gap: 7px;
  margin: 16px 0 0; font-size: var(--fs-xs); color: var(--muted);
}

/* =========================================================
   08. HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(560px, 82vh, 780px);
  padding-block: clamp(48px, 8vw, 96px);
  background: var(--primary-deep);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg .media { height: 100%; width: 100%; border-radius: 0; aspect-ratio: auto; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__bg .media--placeholder { border: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 33, 51, .94) 0%, rgba(6, 33, 51, .82) 38%, rgba(6, 33, 51, .42) 68%, rgba(6, 33, 51, .3) 100%),
    linear-gradient(to top, rgba(6, 33, 51, .6), transparent 45%);
}
.hero__inner { position: relative; z-index: 1; max-width: 700px; color: #fff; }
.hero h1 {
  font-size: var(--fs-hero);
  color: #fff;
  letter-spacing: -.032em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: #7FD6D8; }
.hero__lead {
  font-size: clamp(1rem, .95rem + .35vw, 1.18rem);
  color: rgba(255,255,255,.86);
  max-width: 54ch;
  margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero__trust {
  display: flex; flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero__trust li {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 550;
  color: rgba(255,255,255,.9);
}
.hero__trust .ico { color: #7FD6D8; flex: none; }

.hero__card {
  position: absolute; right: clamp(18px, 4vw, 36px); bottom: 0;
  z-index: 2;
  display: none;
  width: 268px;
  padding: 22px;
  background: rgba(255,255,255,.97);
  border-radius: var(--r) var(--r) 0 0;
  box-shadow: var(--sh-lg);
}
.hero__card h2 {
  font-size: .75rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--secondary-dark); margin-bottom: 14px;
}
.hero__card dl { margin: 0; display: grid; gap: 12px; }
.hero__card div { display: flex; gap: 11px; align-items: flex-start; }
.hero__card .ico { color: var(--primary); flex: none; margin-top: 2px; }
.hero__card dt { font-size: var(--fs-xs); color: var(--muted); }
.hero__card dd { margin: 0; font-size: var(--fs-sm); font-weight: 650; color: var(--primary-deep); }

/* Inner-page hero */
.page-hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px);
  background: var(--primary-deep);
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 85% 0%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 90% at 85% 0%, #000, transparent 70%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: var(--fs-lead); max-width: 62ch; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 18px; font-size: var(--fs-xs);
  color: rgba(255,255,255,.62);
}
.crumbs a { color: rgba(255,255,255,.82); }
.crumbs a:hover { color: #7FD6D8; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: rgba(255,255,255,.35); }

/* =========================================================
   09. QUICK ACTION CARDS
   ========================================================= */
.quick {
  position: relative;
  margin-top: clamp(-64px, -5vw, -40px);
  z-index: 5;
  padding-bottom: var(--section);
}
.quick__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
}
.qcard {
  display: flex; flex-direction: column;
  gap: 8px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--white);
  transition: background-color .28s var(--ease);
}
.qcard:hover { background: #FBFDFE; }
.qcard__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 6px;
  border-radius: var(--r-xs);
  background: var(--primary-tint);
  color: var(--primary);
}
.qcard--emergency .qcard__icon { background: var(--emergency-tint); color: var(--emergency); }
.qcard h3 { font-size: 1.06rem; margin-bottom: 2px; }
.qcard p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 14px; }
.qcard .link-arrow, .qcard .btn { margin-top: auto; align-self: flex-start; }
.qcard--emergency .link-arrow { color: var(--emergency); }
.qcard--emergency .link-arrow:hover { border-bottom-color: var(--emergency); color: var(--emergency-dark); }

/* =========================================================
   10. TRUST STRIP
   ========================================================= */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(50%, 172px), 1fr));
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-block: 1px solid var(--line);
}
.trust__item { text-align: center; padding-inline: 8px; }
.trust__item .ico { color: var(--secondary); margin: 0 auto 10px; }
.trust__value {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem);
  font-weight: 800; letter-spacing: -.03em;
  color: var(--primary-deep);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.trust__label {
  display: block; margin-top: 5px;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .04em; color: var(--muted);
}

/* =========================================================
   11. ABOUT / SPLIT SECTIONS
   ========================================================= */
.split {
  display: grid;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}
.split__media { position: relative; }
.split__media .media { box-shadow: var(--sh); }
.split--reverse .split__text { order: -1; }

/* Accent frame behind the about photograph */
.split__media--framed::before {
  content: ""; position: absolute;
  left: -14px; bottom: -14px;
  width: 56%; height: 62%;
  border: 2px solid var(--secondary);
  border-radius: var(--r);
  z-index: 0;
  opacity: .5;
}
.split__media--framed .media { position: relative; z-index: 1; }

.split__badge {
  position: absolute; z-index: 2;
  right: clamp(-8px, -1vw, 0px); bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  padding: 15px 20px;
  background: var(--white);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-lg);
  max-width: 260px;
}
.split__badge .ico { color: var(--emergency); flex: none; }
.split__badge strong { display: block; font-size: var(--fs-sm); color: var(--primary-deep); }
.split__badge span { font-size: var(--fs-xs); color: var(--muted); }

.checklist { display: grid; gap: 13px; margin: 26px 0 30px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: var(--fs-sm); color: #3A5568;
}
.checklist .ico {
  flex: none; margin-top: 2px;
  color: var(--secondary-dark);
  padding: 3px;
  background: var(--secondary-tint);
  border-radius: 50%;
  width: 22px; height: 22px;
}

/* =========================================================
   12. SPECIALITY CARDS
   ========================================================= */
.spec-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.spec-card::before {
  content: ""; position: absolute;
  top: -1px; left: -1px; right: -1px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform .34s var(--ease);
}
.spec-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--line-2); }
.spec-card:hover::before { transform: scaleX(1); }
.spec-card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 16px;
  border-radius: var(--r-xs);
  background: var(--primary-tint);
  color: var(--primary);
  transition: background-color .28s var(--ease), color .28s var(--ease);
}
.spec-card:hover .spec-card__icon { background: var(--primary); color: #fff; }
.spec-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.spec-card p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 16px; }
.spec-card .link-arrow { margin-top: auto; align-self: flex-start; }

.badge-pending {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  margin-bottom: 12px;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  border: 1px solid var(--line-2);
  font-size: .6875rem; font-weight: 650;
  letter-spacing: .06em; text-transform: uppercase;
  /* Darker than --muted: at 11px this needs the full 4.5:1 on a tint. */
  color: #475569;
}
.badge-pending::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--secondary);
}

/* =========================================================
   13. WHY CHOOSE
   ========================================================= */
.why-card {
  display: flex; gap: 16px;
  padding: clamp(20px, 2.2vw, 26px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: box-shadow .28s var(--ease), transform .28s var(--ease);
}
.why-card:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.why-card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: var(--r-xs);
  background: var(--secondary-tint);
  color: var(--secondary-dark);
}
.why-card h3 { font-size: 1rem; margin-bottom: 5px; }
.why-card p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* =========================================================
   14. DOCTORS & FACILITIES
   ========================================================= */
.doc-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: box-shadow .28s var(--ease), transform .28s var(--ease);
}
.doc-card:hover { box-shadow: var(--sh); transform: translateY(-4px); }
.doc-card__photo {
  position: relative;
  aspect-ratio: 4 / 4.3;
  background: linear-gradient(165deg, var(--primary-tint), var(--secondary-tint));
  display: grid; place-items: center;
  overflow: hidden;
}
.doc-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-card__avatar { width: 76px; height: 76px; color: var(--primary); opacity: .34; }
.doc-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.doc-card h3 { font-size: 1.05rem; margin-bottom: 3px; }
.doc-card__qual { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 10px; }
.doc-card__spec {
  display: inline-flex; align-self: flex-start;
  padding: 4px 10px; margin-bottom: 12px;
  border-radius: var(--r-pill);
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-size: var(--fs-xs); font-weight: 650;
}
.doc-card__timing {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: var(--fs-xs); color: var(--muted);
  padding-top: 12px; margin-bottom: 16px;
  border-top: 1px solid var(--line);
}
.doc-card__timing .ico { flex: none; margin-top: 1px; }
.doc-card .btn { margin-top: auto; }

.fac-card {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}
.fac-card .media { border-radius: 0; }
.fac-card:hover .media img { transform: scale(1.05); }
.fac-card__body { padding: 18px 20px 22px; }
.fac-card h3 { font-size: 1.02rem; margin-bottom: 5px; }
.fac-card p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* =========================================================
   15. IMAGE STORY SECTION
   ========================================================= */
.story-grid { display: grid; gap: 14px; }
.story-tile { position: relative; overflow: hidden; border-radius: var(--r); }
.story-tile .media { border-radius: var(--r); height: 100%; }
.story-tile:hover .media img { transform: scale(1.05); }
.story-tile__overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 46px 24px 22px;
  background: linear-gradient(transparent, rgba(6, 32, 48, .88));
  color: #fff;
  pointer-events: none;
}
.story-tile__overlay .eyebrow { margin-bottom: 6px; color: #7FD6D8; }
.story-tile__overlay .eyebrow::before { background: #7FD6D8; }
.story-tile__overlay h3 { color: #fff; font-size: clamp(1.05rem, .95rem + .5vw, 1.5rem); margin: 0; }
.story-tile--lg .story-tile__overlay { padding: 60px 30px 28px; }

/* =========================================================
   16. REVIEWS
   ========================================================= */
.rating-block {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
}
.rating-block__score { text-align: center; padding-right: clamp(18px, 3vw, 34px); border-right: 1px solid var(--line); }
.rating-block__value {
  display: block; font-size: 3rem; font-weight: 800;
  letter-spacing: -.04em; line-height: 1; color: var(--primary-deep);
  font-variant-numeric: tabular-nums;
}
.rating-block__of { font-size: var(--fs-xs); color: var(--muted); }
.rating-block__meta { flex: 1; min-width: 200px; }
.rating-block__meta p { font-size: var(--fs-sm); color: var(--muted); margin: 6px 0 0; }

.stars { display: inline-flex; gap: 3px; }
.star svg { fill: var(--line-2); display: block; }
.star.is-full svg { fill: #F5A524; }
.star.is-half svg { fill: url(#halfStar); }
.star.is-half { position: relative; overflow: hidden; }
.star.is-half::after {
  content: ""; position: absolute; inset: 0 0 0 50%;
  background: var(--white);
  -webkit-mask: none; mix-blend-mode: normal;
  opacity: 0;
}
.star.is-half svg { fill: #F5A524; clip-path: inset(0 50% 0 0); }

.review-card {
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.review-card .ico-quote { color: var(--secondary); opacity: .45; margin-bottom: 12px; }
.review-card p { font-size: var(--fs-sm); color: #3A5568; line-height: 1.72; }
.review-card__foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
}
.review-card__avatar {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--primary-tint); color: var(--primary-dark);
  font-weight: 700; font-size: var(--fs-sm);
}
.review-card__name { font-size: var(--fs-sm); font-weight: 650; color: var(--primary-deep); }
.review-card__when { font-size: var(--fs-xs); color: var(--muted); }

/* Designed empty state */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 6px;
  padding: clamp(34px, 5vw, 56px) clamp(20px, 4vw, 40px);
  background: var(--white);
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
}
.empty-state__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 10px;
  border-radius: 50%;
  background: var(--primary-tint); color: var(--primary);
}
.empty-state h3 { margin-bottom: 4px; }
.empty-state p { color: var(--muted); font-size: var(--fs-sm); max-width: 52ch; margin-bottom: 20px; }

/* =========================================================
   17. CTA BAND + FORMS
   ========================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  isolation: isolate;
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg .media { height: 100%; border-radius: 0; aspect-ratio: auto; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(7, 59, 92, .96) 0%, rgba(7, 59, 92, .88) 45%, rgba(21, 154, 156, .62) 100%);
}
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: clamp(22px, 4vw, 48px);
  padding-block: clamp(46px, 6vw, 82px);
  color: #fff;
}
.cta-band__inner h2 { color: #fff; margin-bottom: 10px; max-width: 18ch; }
.cta-band__inner p { color: rgba(255,255,255,.84); max-width: 46ch; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.emergency-panel {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 26px;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--r);
  background: linear-gradient(120deg, #8E1414, var(--emergency));
  color: #fff;
  overflow: hidden;
}
.emergency-panel::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px);
  pointer-events: none;
}
.emergency-panel > * { position: relative; }
.emergency-panel h2 { color: #fff; margin-bottom: 6px; }
.emergency-panel p { color: rgba(255,255,255,.9); margin: 0; }
.emergency-panel__phone {
  display: block; margin-top: 10px;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 800; letter-spacing: -.02em;
  color: #fff; font-variant-numeric: tabular-nums;
}

/* Forms */
.form-card {
  padding: clamp(24px, 3.2vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
}
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-sm); font-weight: 600; color: var(--primary-deep);
}
.field .req { color: var(--emergency); margin-left: 2px; }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }

.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-xs);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  appearance: none;
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 18px;
  padding-right: 42px;
}
.input:hover, .select:hover, .textarea:hover { border-color: #B4CBDA; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 92, 142, .13);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--emergency);
  background: var(--emergency-tint);
}
.field__error {
  display: none;
  font-size: var(--fs-xs); font-weight: 600; color: var(--emergency-dark);
}
.field__error.is-shown { display: block; }

.form-consent {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: var(--fs-xs); color: var(--muted);
}
.form-consent input {
  width: 20px; height: 20px; flex: none; margin-top: 1px;
  accent-color: var(--primary);
}

.alert {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 24px;
  border-radius: var(--r-xs);
  border: 1px solid;
  font-size: var(--fs-sm);
}
.alert .ico { flex: none; margin-top: 2px; }
.alert strong { display: block; margin-bottom: 2px; }
.alert--success { background: var(--secondary-tint); border-color: #9FDCDD; color: #0B5052; }
.alert--error   { background: var(--emergency-tint); border-color: #F3B9B9; color: #8A1A1A; }
.alert--info    { background: var(--primary-tint); border-color: #BAD6E7; color: var(--primary-dark); }
.alert ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }

.form-aside {
  display: grid; gap: 14px;
  align-content: start;
}
.info-card {
  display: flex; gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.info-card .ico { color: var(--primary); flex: none; margin-top: 2px; }
.info-card h3 { font-size: .98rem; margin-bottom: 3px; }
.info-card p, .info-card a { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.info-card a { color: var(--primary); font-weight: 600; }
.info-card a:hover { text-decoration: underline; }

/* =========================================================
   18. GALLERY + LIGHTBOX
   ========================================================= */
.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.gallery-item {
  position: relative;
  display: block;
  border: 0; padding: 0;
  background: none;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: zoom-in;
  width: 100%;
}
.gallery-item .media { border-radius: var(--r-sm); }
.gallery-item:hover .media img { transform: scale(1.06); }
.gallery-item__veil {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(7, 43, 68, .42);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.gallery-item:hover .gallery-item__veil,
.gallery-item:focus-visible .gallery-item__veil { opacity: 1; }
.gallery-item__veil span {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--primary-dark);
}
.gallery-item[data-unavailable] { cursor: default; }
.gallery-item[data-unavailable]:hover .gallery-item__veil { opacity: 0; }

.lightbox { position: fixed; inset: 0; z-index: 200; }
.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 20, 32, .92);
  opacity: 0; transition: opacity .28s var(--ease);
}
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox__dialog {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: clamp(16px, 5vw, 56px);
  opacity: 0; transform: scale(.97);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.lightbox.is-open .lightbox__dialog { opacity: 1; transform: scale(1); }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox__figure img {
  max-width: 100%; max-height: 78vh;
  border-radius: var(--r-sm);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  margin-inline: auto;
}
.lightbox__figure figcaption {
  margin-top: 14px;
  color: rgba(255,255,255,.78);
  font-size: var(--fs-sm);
}
.lightbox__btn {
  position: absolute;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.24); }
.lightbox__btn--close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.lightbox__btn--prev  { left: clamp(10px, 2.5vw, 28px);  top: 50%; transform: translateY(-50%); }
.lightbox__btn--next  { right: clamp(10px, 2.5vw, 28px); top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev:hover, .lightbox__btn--next:hover { transform: translateY(-50%) scale(1.06); }

/* =========================================================
   19. INSTAGRAM + LOCATION
   ========================================================= */
.social-band {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 20%, rgba(21,154,156,.1), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(11,92,142,.1), transparent 42%),
    var(--white);
}
.social-band__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; flex: none;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, #833AB4, #E1306C 55%, #F77737);
  color: #fff;
}
.social-band__text h2 { font-size: var(--fs-h3); margin-bottom: 3px; }
.social-band__text p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.social-band__handle { font-weight: 650; color: var(--primary-dark); }

.map-embed {
  position: relative;
  width: 100%;
  /* No min-height here: paired with aspect-ratio it would force a
     minimum *width* and push the page into horizontal scroll. */
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  box-shadow: var(--sh-sm);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-embed noscript { display: block; padding: 24px; }

.location-list { display: grid; gap: 16px; margin-bottom: 26px; }
.location-list__row { display: flex; gap: 14px; align-items: flex-start; }
.location-list .ico { color: var(--secondary-dark); flex: none; margin-top: 3px; }
.location-list dt {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.location-list dd { margin: 0; font-size: var(--fs-sm); font-weight: 550; color: var(--primary-deep); }
.location-list dd a:hover { color: var(--primary); }

/* =========================================================
   20. FOOTER + MOBILE ACTION BAR
   ========================================================= */
.site-footer {
  position: relative;
  padding-top: clamp(48px, 6vw, 78px);
  background: var(--primary-deep);
  color: rgba(255,255,255,.68);
  font-size: var(--fs-sm);
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}
.footer-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding-bottom: clamp(32px, 4vw, 48px);
}
.footer-col--brand { max-width: 340px; }
.brand--footer .brand__mark { color: #7FD6D8; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__sub { color: rgba(255,255,255,.55); }
.footer-about { margin: 16px 0 18px; line-height: 1.7; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; color: rgba(255,255,255,.86);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.footer-social a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }

.footer-head {
  font-size: .75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; margin-bottom: 16px;
}
.footer-list { display: grid; gap: 11px; }
.footer-list a { transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer-list a:hover { color: #7FD6D8; padding-left: 4px; }

.footer-contact { display: grid; gap: 14px; margin-bottom: 20px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; line-height: 1.6; }
.footer-contact .ico { color: #7FD6D8; flex: none; margin-top: 2px; }
.footer-contact a:hover { color: #7FD6D8; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px;
  padding-block: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--fs-xs);
}
.footer-copy { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a:hover { color: #7FD6D8; }

.footer-disclaimer {
  padding-block: 0 26px;
  font-size: .75rem;
  line-height: 1.7;
  color: rgba(255,255,255,.44);
  max-width: 90ch;
}
.footer-disclaimer a { color: rgba(255,255,255,.7); border-bottom: 1px solid rgba(255,255,255,.3); }

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: none;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(7, 36, 54, .1);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  flex: 1;
  min-height: 62px;
  padding: 8px 4px;
  font-size: .6875rem; font-weight: 650;
  color: var(--primary-dark);
  border-right: 1px solid var(--line);
}
.action-bar__item:last-child { border-right: 0; }
.action-bar__item:active { background: var(--primary-tint); }
.action-bar__item--emergency { background: var(--emergency); color: #fff; border-right-color: var(--emergency-dark); }
.action-bar__item--emergency:active { background: var(--emergency-dark); }

/* =========================================================
   21. PROSE / LEGAL PAGES + 404 + UTILITIES
   ========================================================= */
.prose { max-width: 78ch; }
.prose h2 { font-size: clamp(1.24rem, 1.1rem + .6vw, 1.6rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; }
.prose p, .prose li { color: #3A5568; line-height: 1.8; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1.2em; display: grid; gap: 8px; }
.prose a { color: var(--primary); border-bottom: 1px solid var(--line-2); }
.prose a:hover { border-bottom-color: var(--primary); }
.prose__updated {
  display: inline-block; margin-bottom: 26px; padding: 6px 12px;
  border-radius: var(--r-pill); background: var(--bg-alt);
  font-size: var(--fs-xs); color: var(--muted);
}

.notfound { text-align: center; padding-block: clamp(64px, 10vw, 130px); }
.notfound__code {
  display: block;
  font-size: clamp(4.5rem, 3rem + 9vw, 9rem);
  font-weight: 800; letter-spacing: -.05em; line-height: .9;
  color: var(--primary-tint);
}
.notfound h1 { margin-top: -.28em; }
.notfound p { margin-inline: auto; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: clamp(28px, 4vw, 44px); }
.center-cta { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

/* Reveal on scroll.
   With JavaScript disabled, the <noscript> block in the document head
   overrides these rules so every section is simply visible. */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 640px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, minmax(180px, 1fr));
  }
  .story-tile--lg { grid-row: span 2; }
  .trust { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1fr 1.12fr; }
  .split--wide-media { grid-template-columns: 1.12fr 1fr; }
  .hero__card { display: block; }
  .form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 3vw, 40px); align-items: start; }
  .contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
  .location-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 4vw, 52px); align-items: center; }
}

@media (min-width: 1024px) {
  .story-grid { grid-template-columns: 1.5fr 1fr; }
}

/* --- Compact desktop header: eight nav links plus two CTAs only
       just fit at 1280, so tighten spacing before that point. --- */
@media (max-width: 1400px) {
  .site-header__inner { gap: 14px; }
  .nav__link { padding: 10px 8px; font-size: .8625rem; }
  .nav__link::after { left: 8px; right: 8px; }
  /* The phone number stays one tap away as an icon-only button. */
  .site-header__cta .btn--ghost { padding-inline: 11px; }
  .site-header__cta .btn--ghost span { display: none; }
}

/* --- Tablet / mobile navigation switch --- */
@media (max-width: 1200px) {
  .nav { display: none; }
  .site-header__cta { display: none; }
  .header-call, .menu-toggle { display: flex; }
  .site-header__inner { justify-content: space-between; }
  .site-header__inner .brand { margin-right: auto; }
}

@media (max-width: 900px) {
  body { padding-bottom: 62px; }
  .action-bar { display: flex; }
  .split--reverse .split__text { order: 0; }
  .rating-block__score { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 16px; width: 100%; }
  .quick { margin-top: clamp(-40px, -4vw, -28px); }
}

@media (max-width: 720px) {
  .emergency-bar__inner { justify-content: center; text-align: center; }
  .emergency-bar__note { width: 100%; justify-content: center; }
  .emergency-bar__actions { width: 100%; justify-content: center; }
  .hero { min-height: auto; padding-block: 56px 64px; }
  .hero__actions .btn { flex: 1 1 190px; }
  .cta-band__actions .btn { flex: 1 1 200px; }
  .split__badge { position: static; margin-top: -34px; margin-inline: 16px; max-width: none; }
  /* A 16:9 map is too short to be useful on a phone. */
  .map-embed { aspect-ratio: 4 / 3; }
  .lightbox__btn--prev { left: 8px; }
  .lightbox__btn--next { right: 8px; }
}

@media (max-width: 480px) {
  :root { --gap: 14px; }
  .emergency-bar__phone span { font-size: .8125rem; }
  .brand__mark svg { width: 34px; height: 34px; }
  .brand__name { font-size: 1.05rem; }
  .brand__sub { font-size: .5625rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  /* Reset the row-layout basis: in a column, flex-basis sets height. */
  .hero__actions .btn,
  .cta-band__actions .btn { flex: 0 0 auto; width: 100%; }
  .cta-band__actions { flex-direction: column; align-items: stretch; }
  .hero__trust { gap: 8px 16px; }
  .hero__trust li { font-size: .8125rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
  .action-bar__item { font-size: .625rem; }
  .rating-block__value { font-size: 2.5rem; }
  .form-card { padding: 20px 16px; }
}

/* --- 320px: the narrowest width worth supporting. The brand
       lock-up and two icon buttons stop fitting side by side. --- */
@media (max-width: 400px) {
  .wrap { padding-inline: 14px; }
  .site-header__inner { gap: 8px; }
  .header-call, .menu-toggle { width: 42px; height: 42px; }
  .brand { gap: 8px; }
  .brand__sub { font-size: .5rem; letter-spacing: .1em; }
}

@media (max-width: 360px) {
  .action-bar__item span { font-size: .5625rem; }
  .emergency-bar__actions .btn--xs span { display: none; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1rem; }
}

/* =========================================================
   PRINT & MOTION PREFERENCES
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .media img { transition: none; }
}

@media print {
  .emergency-bar, .site-header, .action-bar, .mobile-nav, .lightbox,
  .cta-band, .map-embed { display: none !important; }
  body { padding-bottom: 0; color: #000; }
  .section { padding-block: 18px; }
  a[href^="tel:"]::after { content: " (" attr(href) ")"; }
}
