/* ==========================================================================
   Khan Cardiology — Design System
   Brand: Teal #7A99AC (PMS 5425C) · Dark Navy #253746 (PMS 7546C)
   ========================================================================== */

:root {
  /* Brand */
  --teal: #7A99AC;
  --teal-600: #6a8a9e;
  --teal-700: #557588;
  --teal-50: #eef3f6;
  --teal-100: #dde7ec;
  --navy: #253746;
  --navy-800: #1c2b37;
  --navy-900: #14202a;

  /* Neutrals */
  --white: #ffffff;
  --bg: #fbfcfd;
  --surface: #ffffff;
  --surface-2: #f5f7f9;
  --line: #e6ebee;
  --line-strong: #d4dce1;
  --ink: #1f2a33;
  --ink-2: #3a4a57;
  --ink-3: #5e6f7c;
  --ink-4: #8a98a3;

  /* Semantic */
  --success: #2e7d5b;
  --danger: #b3261e;
  --focus: #7A99AC;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Fraunces', 'Source Serif Pro', Georgia, 'Times New Roman', serif;

  /* Sizing */
  --container: 1200px;
  --container-wide: 1320px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20,32,42,.06), 0 1px 1px rgba(20,32,42,.04);
  --shadow: 0 8px 24px -8px rgba(20,32,42,.12), 0 2px 6px rgba(20,32,42,.05);
  --shadow-lg: 0 24px 48px -16px rgba(20,32,42,.18), 0 8px 16px -8px rgba(20,32,42,.08);

  /* Motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .3, 1);
  --dur-fast: .18s;
  --dur: .32s;
  --dur-slow: .6s;
}

/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--navy); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); line-height: 1.65; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: currentColor; opacity: .8;
}

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-dark { background: var(--navy); color: rgba(255,255,255,.85); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .eyebrow { color: var(--teal); }
.section-tinted { background: var(--surface-2); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  font-weight: 600; font-size: .96rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform var(--dur) var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-800); color: #fff; box-shadow: var(--shadow); }

.btn-accent {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-accent:hover { background: var(--teal-600); color: #fff; box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--surface); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.32);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  padding-left: .5rem; padding-right: .5rem;
}
.btn-ghost:hover { color: var(--teal-700); }

.btn-lg { padding: 1.05rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== Header / Navigation ===== */
.site-header {
  position: relative; z-index: 10;
  background: linear-gradient(180deg, #0d1820 0%, #12202a 100%);
  border-bottom: 1px solid rgba(122,153,172,.15);
  box-shadow: 0 2px 24px rgba(0,0,0,.40);
}
/* Force-visible nav contents on every page, regardless of any other rule. */
.site-header .nav-brand img { filter: brightness(0) invert(1); }
.site-header .nav-list a { color: rgba(255,255,255,.78); }
.site-header .nav-list a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-header .nav-list a.is-active { color: #fff; }
/* Lock nav button sizing so it doesn't drift between pages */
.site-header .nav-cta .btn {
  font-family: var(--font-sans) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  padding: .75rem 1.25rem !important;
  line-height: 1 !important;
}
/* "Send an enquiry" outline button — light on dark */
.site-header .nav-cta .btn-outline {
  color: rgba(255,255,255,.88) !important;
  border-color: rgba(255,255,255,.30) !important;
  background: transparent !important;
}
.site-header .nav-cta .btn-outline:hover {
  border-color: rgba(255,255,255,.7) !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 93px;                                  /* taller to host bigger logo */
}
.nav-brand {
  display: block;
  text-decoration: none;
  line-height: 1;
}
.brand-khan {
  display: block;
  font: 700 22px/1 var(--font-sans);
  color: var(--teal);
  letter-spacing: -.025em;
}
.brand-cardiology {
  display: block;
  font: 400 22px/1 var(--font-sans);
  color: rgba(255,255,255,.80);
  letter-spacing: -.025em;
  margin-top: 2px;
}
.nav-brand::after {
  content: '';
  display: block;
  width: 100px;
  height: 10px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath fill='none' stroke='%237A99AC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M0,13 L35,13 L39,13 L42,7 L43,20 L47,0 L50,18 L53,13 L100,13'/%3E%3C%2Fsvg%3E") no-repeat 0/100% 100%;
}
.nav-list {
  display: flex; align-items: center; gap: 4px;
  list-style: none; padding: 0; margin: 0;
}
.nav-list a {
  position: relative;
  display: inline-block;
  padding: .55rem .9rem;
  border-radius: 999px;
  /* Lock typography so it cannot drift between pages */
  font-family: var(--font-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  color: var(--ink-2);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav-list a:hover { color: var(--navy); background: var(--surface-2); }
.nav-list a.is-active { color: var(--navy); }
.nav-list a.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 18px; height: 2px; background: var(--teal); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: #fff;
  position: relative; transition: transform var(--dur) var(--ease-in-out), opacity var(--dur) var(--ease-out);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: #fff;
  transition: transform var(--dur) var(--ease-in-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-list, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-accent { display: inline-flex; }
}
@media (max-width: 540px) {
  .nav-cta .btn-accent { display: none; }
}
/*
.mobile-nav {
  position: fixed; inset: 110px 0 0 0;
  background: var(--white);
  padding: 24px;
  transform: translateY(-110%);
  transition: transform var(--dur) var(--ease-in-out);
  z-index: 40;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); }

*/

.mobile-nav {
  position: fixed;
  inset: 76px 0 0 0;
  background: #0f1c26;
  padding: 24px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform var(--dur) var(--ease-in-out),
    opacity var(--dur) var(--ease-out),
    visibility 0s linear var(--dur);
  z-index: 40;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
@media (min-width: 981px) {
  .mobile-nav {
    display: none;
  }
}
.mobile-nav ul { list-style: none; padding: 0; margin: 0 0 24px; }
.mobile-nav li + li { border-top: 1px solid rgba(255,255,255,.1); }
.mobile-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px; color: rgba(255,255,255,.88); font-size: 1.15rem; font-weight: 500;
}
.mobile-nav a::after { content: '→'; opacity: .5; }
.mobile-nav .btn { width: 100%; margin-top: 8px; }
.mobile-nav .btn-outline {
  color: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.30);
  background: transparent;
}
.mobile-nav .btn-outline:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* ===== Header overlay mode (transparent over dark hero) ===== */
body.has-hero-overlay .site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
}
body.has-hero-overlay { padding-top: 0; }
body.has-hero-overlay .site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(15,26,35,.55) 0%, rgba(15,26,35,0) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.has-hero-overlay .site-header:not(.is-scrolled) .nav-brand img { filter: brightness(0) invert(1); }
body.has-hero-overlay .site-header:not(.is-scrolled) .nav-list a { color: rgba(255,255,255,.82); }
body.has-hero-overlay .site-header:not(.is-scrolled) .nav-list a:hover { background: rgba(255,255,255,.08); color: #fff; }
body.has-hero-overlay .site-header:not(.is-scrolled) .nav-list a.is-active { color: #fff; }
body.has-hero-overlay .site-header:not(.is-scrolled) .nav-list a.is-active::after { background: #fff; }
body.has-hero-overlay .site-header:not(.is-scrolled) .btn-outline {
  color: #fff; border-color: rgba(255,255,255,.36); background: transparent;
}
body.has-hero-overlay .site-header:not(.is-scrolled) .btn-outline:hover {
  border-color: #fff; background: rgba(255,255,255,.08); color: #fff;
}
body.has-hero-overlay .site-header:not(.is-scrolled) .nav-toggle { border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.04); }
body.has-hero-overlay .site-header:not(.is-scrolled) .nav-toggle span,
body.has-hero-overlay .site-header:not(.is-scrolled) .nav-toggle span::before,
body.has-hero-overlay .site-header:not(.is-scrolled) .nav-toggle span::after { background: #fff; }

/* When the header has scrolled past hero, restore the solid white look
   even though the body still has the overlay class.
   Using !important + opaque background to bulletproof against any cache/specificity edge cases. */
body.has-hero-overlay .site-header.is-scrolled {
  background: #ffffff !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(20,32,42,.04), 0 10px 24px -16px rgba(20,32,42,.14);
  transition: none !important;   /* snap instantly so there is no invisible window */
}
body.has-hero-overlay .site-header.is-scrolled .nav-brand img { filter: none !important; }
body.has-hero-overlay .site-header.is-scrolled .nav-list a { color: var(--ink-2) !important; }
body.has-hero-overlay .site-header.is-scrolled .nav-list a:hover { color: var(--navy) !important; background: var(--surface-2); }
body.has-hero-overlay .site-header.is-scrolled .nav-list a.is-active { color: var(--navy) !important; }
body.has-hero-overlay .site-header.is-scrolled .nav-list a.is-active::after { background: var(--teal); }
body.has-hero-overlay .site-header.is-scrolled .btn-outline {
  color: var(--navy) !important; border-color: var(--line-strong) !important; background: transparent !important;
}
body.has-hero-overlay .site-header.is-scrolled .btn-outline:hover {
  border-color: var(--navy) !important; color: var(--navy) !important; background: var(--surface) !important;
}
body.has-hero-overlay .site-header.is-scrolled .nav-toggle { border-color: var(--line-strong) !important; background: transparent !important; }
body.has-hero-overlay .site-header.is-scrolled .nav-toggle span,
body.has-hero-overlay .site-header.is-scrolled .nav-toggle span::before,
body.has-hero-overlay .site-header.is-scrolled .nav-toggle span::after { background: var(--navy) !important; }

/* ===== Hero (legacy split layout, kept for fallback) ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 110% -10%, rgba(122,153,172,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(37,55,70,.06), transparent 60%),
    linear-gradient(180deg, #fbfcfd 0%, #f5f8fa 100%);
  padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
}

/* ===== Full-screen immersive hero ===== */
.hero-fs {
  position: relative;
  min-height: calc(100svh - 110px);
  min-height: calc(100vh - 110px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 75% 35%, rgba(122,153,172,.28) 0%, rgba(122,153,172,.08) 35%, transparent 65%),
    radial-gradient(80% 60% at 15% 85%, rgba(122,153,172,.14) 0%, transparent 60%),
    linear-gradient(135deg, #0d1820 0%, #14202a 35%, #1c2b37 70%, #253746 100%);
}
.hero-fs::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(122,153,172,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,153,172,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 25%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}
.hero-fs::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,24,32,0) 70%, rgba(13,24,32,.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-fs-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-fs-bg svg { width: 100%; height: 100%; display: block; }

.hero-fs-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(60px, 8vh, 100px);
  padding-bottom: clamp(80px, 12vh, 140px);
  /* horizontal padding intentionally omitted — inherits from .container (24px each side) */
}
@media (max-width: 980px) {
  .hero-fs-inner { grid-template-columns: 1fr; }
  .hero-fs .hero-fs-visual { display: none; }
}

.hero-fs h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  margin: 0 0 1rem;
  line-height: 1.05;
  text-shadow: 0 1px 30px rgba(0,0,0,.25);
}
.hero-fs h1 .accent {
  color: #b8d2e0;
  font-style: italic;
  font-weight: 400;
}
.hero-fs .lede {
  color: rgba(255,255,255,.82);
  max-width: 560px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}
.hero-fs .hero-tag {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(10px);
}
.hero-fs .hero-tag .pulse-dot { background: #8ec3a4; }
.hero-fs .hero-tag .pulse-dot::after { border-color: #8ec3a4; }

.hero-fs .hero-cta .btn-primary {
  background: #fff; color: var(--navy); border-color: #fff;
}
.hero-fs .hero-cta .btn-primary:hover { background: rgba(255,255,255,.92); color: var(--navy); }
.hero-fs .hero-cta .btn-outline {
  color: #fff; border-color: rgba(255,255,255,.4); background: transparent;
}
.hero-fs .hero-cta .btn-outline:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }

.hero-fs .hero-trust {
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero-fs .hero-trust .stat .num { color: #fff; }
.hero-fs .hero-trust .stat .label { color: rgba(255,255,255,.6); }

/* Visual stage */
.hero-fs-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
}
.hero-fs-visual svg { width: 100%; height: 100%; overflow: visible; }

/* Realistic heart render overlay */
.hero-fs-render {
  position: absolute;
  top: 50%; right: max(4%, calc((100% - 1200px) / 2));
  width: clamp(360px, 38vw, 600px);
  aspect-ratio: 1 / 1;
  z-index: 1;
  pointer-events: none;
  animation: heroHeartFloat 6.5s ease-in-out infinite;
}
.hero-fs-render-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-box: fill-box;
  transform-origin: center;
  filter:
    drop-shadow(0 40px 80px rgba(122,153,172,.50))
    drop-shadow(0 0 40px rgba(122,153,172,.30))
    drop-shadow(0 0 6px rgba(255,255,255,.15));
  animation: heroHeartPulse 1.3s ease-in-out infinite;
}
@keyframes heroHeartFloat {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(calc(-50% - 14px)); }
}
@keyframes heroHeartPulse {
  0%, 28%, 62%, 100% { transform: scale(1); }
  10%   { transform: scale(1.028); }
  38%   { transform: scale(1.018); }
}
/* Once the realistic image loads, hide the SVG fallback heart inside the bg SVG */
html.has-heart-image .hf-heart-pulse { display: none !important; }
/* Tablet / phone responsiveness */
@media (max-width: 980px) {
  .hero-fs-render { right: -8%; width: 70vw; opacity: .5; }
}
@media (max-width: 720px) {
  .hero-fs-render { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fs-render, .hero-fs-render-img { animation: none !important; transform: translateY(-50%); }
}

/* Heart pulse (SVG fallback) */
.hf-heart-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: hfHeartbeat 1.3s ease-in-out infinite;
}
@keyframes hfHeartbeat {
  0%, 28%, 62%, 100% { transform: scale(1); }
  10%   { transform: scale(1.035); }
  18%   { transform: scale(1.0); }
  38%   { transform: scale(1.025); }
}

/* Coronary draw */
.hf-vessel {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: hfDraw 2.6s var(--ease-out) forwards;
}
.hf-vessel.v1 { animation-delay: .2s; }
.hf-vessel.v2 { animation-delay: .55s; }
.hf-vessel.v3 { animation-delay: .85s; }
.hf-vessel.v4 { animation-delay: 1.05s; }
.hf-vessel.v5 { animation-delay: .7s; }
.hf-vessel.v6 { animation-delay: .6s; }
.hf-vessel.v7 { animation-delay: 1.2s; }
.hf-vessel.v8 { animation-delay: 1.0s; }
.hf-vessel.v9 { animation-delay: 1.1s; }
.hf-vessel.v10 { animation-delay: 1.4s; }
@keyframes hfDraw { to { stroke-dashoffset: 0; } }

/* Lumen highlights pulse with the heartbeat */
.hf-lumen {
  transform-box: fill-box;
  transform-origin: center;
  animation: hfLumen 1.3s ease-in-out infinite;
}
@keyframes hfLumen {
  0%, 28%, 62%, 100% { opacity: .35; }
  10%   { opacity: .85; }
  38%   { opacity: .7; }
}

/* Scan rings */
.hf-ring {
  fill: none;
  stroke: rgba(122,153,172,.28);
  transform-box: fill-box;
  transform-origin: center;
}
.hf-ring.r1 { animation: hfFloat 7s ease-in-out infinite; }
.hf-ring.r2 { animation: hfFloat 9s ease-in-out -2s infinite reverse; }
.hf-ring.r3 { animation: hfRotate 80s linear infinite; }
@keyframes hfFloat {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .2;  transform: scale(1.04); }
}
@keyframes hfRotate { to { transform: rotate(360deg); } }

/* Sweep beam */
.hf-sweep {
  transform-box: fill-box;
  transform-origin: center;
  animation: hfSweep 6s linear infinite;
  opacity: .35;
  mix-blend-mode: screen;
}
@keyframes hfSweep {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ECG strip */
.hf-ecg-line {
  fill: none;
  stroke: #b8d2e0;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(184,210,224,.7));
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: hfDraw 3.2s var(--ease-out) .8s forwards, hfEcgLoop 3.2s linear 4s infinite;
}
@keyframes hfEcgLoop {
  0% { stroke-dashoffset: 1400; }
  100% { stroke-dashoffset: 0; }
}

/* Floating data chips (re-used hero-chip but light-on-dark) */
.hero-fs .hero-chip {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-fs .hero-chip .dot { background: #8ec3a4; box-shadow: 0 0 0 4px rgba(142,195,164,.18); }

/* Scroll cue */
.hero-fs-cue {
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.7); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
}
.hero-fs-cue .line {
  width: 1px; height: 36px; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0));
  animation: hfCue 2.2s ease-in-out infinite;
}
@keyframes hfCue {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; }
  50%      { transform: scaleY(1);  transform-origin: top; opacity: 1; }
}

@media (max-width: 720px) {
  .hero-fs-bg { opacity: .55; }
  .hero-fs-cue { display: none; }
  .hero-fs-inner { padding-top: clamp(110px, 22vh, 160px); padding-bottom: clamp(60px, 8vh, 100px); }
}

/* Laptop viewports (~680–780px tall): reduce bottom padding so trust stats stay in view */
@media (max-height: 780px) and (min-width: 721px) {
  .hero-fs-inner { padding-bottom: clamp(40px, 5vh, 60px); }
}

@media (prefers-reduced-motion: reduce) {
  .hf-heart-pulse, .hf-ring, .hf-sweep, .hero-fs-cue .line { animation: none !important; }
  .hf-vessel, .hf-ecg-line { stroke-dashoffset: 0 !important; animation: none !important; }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .45rem .8rem .45rem .55rem;
  background: rgba(122,153,172,.12);
  border: 1px solid rgba(122,153,172,.28);
  border-radius: 999px;
  color: var(--teal-700);
  font-size: .82rem; font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero-tag .pulse-dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 999px; background: var(--teal);
}
.hero-tag .pulse-dot::after {
  content: ''; position: absolute; inset: -6px; border-radius: 999px;
  border: 2px solid var(--teal);
  animation: pulse 2.4s var(--ease-out) infinite;
  opacity: 0;
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--teal-700); font-style: italic; font-weight: 400; }
.hero .lede { max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-trust {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 28px 36px;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.hero-trust .stat .num {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 500;
  color: var(--navy); display: block; line-height: 1.05;
}
.hero-trust .stat .label {
  font-size: .85rem; color: var(--ink-3);
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
.hero-orb {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #eef3f6 35%, #d6e2e9 70%, #b9cdd7 100%);
  border-radius: 50%;
  box-shadow:
    inset 0 -40px 80px rgba(20,32,42,.18),
    inset 0 30px 60px rgba(255,255,255,.7),
    0 30px 80px -30px rgba(37,55,70,.4);
  overflow: hidden;
}
.hero-orb::before {
  content: ''; position: absolute; inset: 12%;
  border-radius: 50%;
  background: conic-gradient(from 220deg, rgba(122,153,172,.0), rgba(122,153,172,.55), rgba(37,55,70,.3), rgba(122,153,172,.0));
  filter: blur(28px);
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-rings {
  position: absolute; inset: -10%;
  pointer-events: none;
}
.hero-rings circle {
  fill: none;
  stroke: rgba(122,153,172,.5);
  stroke-width: 1;
}
.hero-rings .r1 { animation: ringFloat 8s ease-in-out infinite; }
.hero-rings .r2 { animation: ringFloat 11s ease-in-out infinite reverse; }
.hero-rings .r3 { stroke-dasharray: 4 8; animation: ringRotate 60s linear infinite; transform-origin: 50% 50%; }
@keyframes ringFloat {
  0%, 100% { opacity: .65; transform: scale(1); transform-origin: 50% 50%; }
  50%      { opacity: .25; transform: scale(1.04); }
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.hero-ecg {
  position: absolute; left: 4%; right: 4%; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-ecg path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 4s var(--ease-out) .4s forwards, ecgLoop 4s linear 4.4s infinite;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.6));
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ecgLoop {
  0%   { stroke-dashoffset: 1200; }
  100% { stroke-dashoffset: 0; }
}

.hero-heart {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.hero-heart svg {
  width: 38%;
  filter: drop-shadow(0 18px 30px rgba(37,55,70,.25));
  animation: heartbeat 1.2s var(--ease-in-out) infinite;
  transform-origin: 50% 55%;
}
@keyframes heartbeat {
  0%, 25%, 60%, 100% { transform: scale(1); }
  10%   { transform: scale(1.06); }
  18%   { transform: scale(1.0); }
  35%   { transform: scale(1.04); }
  45%   { transform: scale(1.0); }
}

.hero-chip {
  position: absolute;
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .85rem;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: .82rem; font-weight: 600; color: var(--navy);
  backdrop-filter: blur(6px);
  animation: floatChip 6s ease-in-out infinite;
}
.hero-chip .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--success); box-shadow: 0 0 0 4px rgba(46,125,91,.18); }
/* Default (legacy hero) positioning */
.hero-chip.c1 { top: 8%; left: -2%; }
.hero-chip.c2 { bottom: 10%; right: -4%; animation-delay: -2s; }
.hero-chip.c3 { top: 50%; right: -2%; animation-delay: -4s; }

/* When chips live inside the heart-image container, anchor them to its bounds */
.hero-fs-render .hero-chip { z-index: 4; }
.hero-fs-render .hero-chip.c1 { top: 6%;   left: -6%;   bottom: auto; right: auto; }
.hero-fs-render .hero-chip.c2 { bottom: 8%; right: -4%;  top: auto;    left: auto; }
.hero-fs-render .hero-chip.c3 { top: 48%;  right: -8%;  bottom: auto; left: auto; }
@media (max-width: 1100px) {
  .hero-fs-render .hero-chip.c1 { left: 0; }
  .hero-fs-render .hero-chip.c2 { right: 0; }
  .hero-fs-render .hero-chip.c3 { right: 0; }
}
@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ===== Cards ===== */
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: var(--shadow);
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.card:hover .icon { background: var(--teal); color: #fff; }
.card h3 { margin-bottom: .35em; font-size: 1.2rem; font-family: var(--font-sans); font-weight: 600; }
.card p  { color: var(--ink-3); margin-bottom: 0; }
.card .more {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 16px; font-weight: 600; font-size: .92rem; color: var(--teal-700);
}
.card .more .arrow { transition: transform var(--dur) var(--ease-out); }
.card:hover .more .arrow { transform: translateX(3px); }

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.feature-row.reverse { grid-template-columns: .95fr 1.05fr; }
.feature-row.reverse .feature-media { order: -1; }
@media (max-width: 880px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: initial; }
}
.feature-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(37,55,70,0) 60%, rgba(37,55,70,.18) 100%);
  pointer-events: none;
}
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list .check {
  flex: none;
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--teal-50); color: var(--teal-700);
  display: grid; place-items: center;
  margin-top: 2px;
}

/* Service detail card */
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.service-card:hover { transform: translateY(-2px); border-color: var(--teal); }
.service-card .label {
  font-size: .78rem; font-weight: 600; color: var(--teal-700);
  letter-spacing: .12em; text-transform: uppercase;
}
.service-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; margin: 0; }
.service-card p { color: var(--ink-3); margin: 0; font-size: .96rem; }

/* ===== Locations ===== */
.location-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.location-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.location-card .map {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.location-card .map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; filter: grayscale(.3) contrast(1.02);
}
.location-card .body { padding: 22px 24px 24px; }
.location-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; margin-bottom: .35rem; }
.location-card .addr { color: var(--ink-3); margin: 0 0 14px; font-size: .94rem; line-height: 1.5; }
.location-card .links { display: flex; gap: 8px; flex-wrap: wrap; }
.location-card .links a {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .85rem; font-weight: 600;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
}
.location-card .links a:hover { border-color: var(--navy); }

/* ===== CTA Banner ===== */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 60%, #2f4858 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 32px;
  align-items: center;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(122,153,172,.30), transparent 60%),
    radial-gradient(360px 200px at 0% 100%, rgba(122,153,172,.18), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin: 0 0 .4em; }
.cta-banner p { color: rgba(255,255,255,.78); margin: 0; max-width: 56ch; }
.cta-banner .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; }
@media (max-width: 820px) {
  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner .actions { justify-content: flex-start; }
}

/* ===== Forms ===== */
.form {
  display: grid;
  gap: 18px;
}
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: .85rem; font-weight: 600; color: var(--navy);
}
.field .hint { font-size: .8rem; color: var(--ink-3); }
.field .required { color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 12px;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(122,153,172,.18);
}
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23253746' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--ink-2); }
.checkbox input { margin-top: 4px; accent-color: var(--teal); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}

.form-success, .form-error {
  display: none;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: .94rem;
}
.form-success { background: #e9f5ee; color: #1d6b48; border: 1px solid #c5e3d2; }
.form-error   { background: #fceae8; color: #8a1c17; border: 1px solid #f4cdc9; }
.is-visible { display: block; }

.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.fieldset legend {
  font-size: .82rem; font-weight: 700; color: var(--teal-700);
  letter-spacing: .12em; text-transform: uppercase;
  padding: 0 0 8px;
}

/* ===== Page Header (sub pages) ===== */
.page-header {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(122,153,172,.18), transparent 60%),
    linear-gradient(180deg, #f5f8fa, #fbfcfd);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { max-width: 18ch; margin-bottom: .35em; }
.page-header p  { max-width: 60ch; }
.breadcrumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: .85rem; color: var(--ink-3);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs .sep { color: var(--ink-4); }

/* ===== Healthe Heart banner ===== */
.hh-banner {
  margin-top: 1.75rem;
  border-radius: 0;
  padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 40px);
  background: linear-gradient(to right, #00acec 0%, #00457d 100%);
  color: #fff;
  display: flex;
  justify-content: flex-end;
}
.hh-banner-brand {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  text-align: right;
}
.hh-banner-logo-wrap {
  display: inline-flex;
  align-items: center;
}
.hh-banner-logo { height: clamp(24px, 3.4vw, 32px); width: auto; display: block; }
.hh-banner-tagline {
  font-family: 'Houschka Pro', var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  letter-spacing: .02em;
  color: #fff;
  margin-top: 4px;
}
.hh-banner-contact {
  font-family: 'Houschka Pro', var(--font-sans);
  display: flex; flex-direction: column; gap: 2px;
  font-size: .85rem; color: rgba(255,255,255,.92);
  margin-top: 6px;
}
.hh-banner-contact a { color: #fff; text-decoration: underline; }
@media (max-width: 640px) {
  .hh-banner { justify-content: center; }
  .hh-banner-brand { align-items: center; text-align: center; }
}
.hh-page-header { border-bottom: none; padding-bottom: clamp(16px, 3vw, 28px); }
.hh-form-section { padding-top: clamp(28px, 4vw, 48px); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,.72); font-size: .94rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: .94rem; color: rgba(255,255,255,.6); max-width: 36ch; }
.footer-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: rgba(255,255,255,.5);
}
.footer-meta a { color: rgba(255,255,255,.7); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .20s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .36s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .44s; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 12px; }

/* Selection */
::selection { background: var(--teal); color: #fff; }

/* Focus-visible polish */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Util */
.text-center { text-align: center; }
.mx-auto    { margin-left: auto; margin-right: auto; }
.max-prose  { max-width: 64ch; }
.divider    { height: 1px; background: var(--line); border: 0; margin: 32px 0; }
.tag-pill {
  display: inline-flex; align-items: center;
  padding: .25rem .65rem;
  font-size: .76rem; font-weight: 600;
  background: var(--teal-50); color: var(--teal-700);
  border-radius: 999px;
}

/* ==========================================================================
   RESPONSIVE ADDITIONS
   All rules below are additions to the base stylesheet.
   Do not remove — they fix specific layout and responsive bugs.
   ========================================================================== */

/* ---- Location cards: photo + map side-by-side ---- */
.location-card .loc-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.location-card .loc-photo,
.location-card .loc-map {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}
.location-card .loc-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.location-card:hover .loc-photo img { transform: scale(1.04); }
.location-card .loc-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; filter: grayscale(.3) contrast(1.02);
}
@media (max-width: 600px) {
  .location-card .loc-media { display: block; }
  .location-card .loc-photo { display: none; }
  .location-card .loc-map { aspect-ratio: unset; height: 220px; }
}

/* ---- Contact page two-column layout ---- */
.contact-grid { grid-template-columns: 1fr 1.4fr; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px !important; }
}

/* ---- Consistent left alignment: nav full-width, hero left-anchored ---- */
.site-header .container {
  max-width: 100%;
  padding-left: clamp(24px, 4vw, 60px);
  padding-right: clamp(24px, 4vw, 60px);
}

/* ---- Nav brand breakpoints ---- */
@media (max-width: 980px) {
  .nav { height: 80px; }
  .mobile-nav { top: 80px !important; }
  .brand-khan, .brand-cardiology { font-size: 19px; }
  .nav-brand::after { width: 86px; }
}
@media (max-width: 540px) {
  .nav { height: 68px; }
  .mobile-nav { top: 68px !important; }
  .brand-khan, .brand-cardiology { font-size: 17px; }
  .nav-brand::after { width: 76px; }
}

/* ---- Hero responsive height ---- */
@media (max-width: 980px) {
  .hero-fs {
    min-height: calc(100svh - 80px);
    min-height: calc(100vh - 80px);
  }
}
@media (max-width: 540px) {
  .hero-fs {
    min-height: calc(100svh - 68px);
    min-height: calc(100vh - 68px);
  }
  .hero-fs-inner {
    padding-top: clamp(40px, 8vw, 64px);
    padding-bottom: clamp(40px, 8vw, 64px);
  }
}

/* ---- General mobile polish ---- */
@media (max-width: 620px) {
  .section       { padding: clamp(48px, 8vw, 80px) 0; }
  .section-tight { padding: clamp(36px, 6vw, 60px) 0; }
  .page-header   { padding: clamp(60px, 10vw, 100px) 0 clamp(32px, 5vw, 56px); }
  .hero-fs h1    { font-size: clamp(2rem, 8vw, 3rem); }
  .cta-banner    { padding: 28px 24px; }
  .card          { padding: 20px; }
  .location-card .body { padding: 16px 18px 20px; }
}

/* ---- Back to Top button ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px -4px rgba(20,32,42,.35), 0 1px 4px rgba(20,32,42,.12);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), background-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--teal-700);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -6px rgba(20,32,42,.4), 0 2px 6px rgba(20,32,42,.1);
}
.back-to-top:active { transform: translateY(-1px); }
.back-to-top svg { display: block; flex-shrink: 0; }
@media (max-width: 480px) {
  .back-to-top {
    bottom: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
}
/* Referral contact cards fix */
.grid-3 > .card,
.grid-3 > a.card {
  min-width: 0;
}

.grid-3 .card p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}