/* ============================================================
   North Houston Diabetes Institute — design tokens + base
   ============================================================ */

:root {
  /* Calm clinical blue palette */
  --blue-900: #0e3a5c;
  --blue-800: #154f7a;
  --blue-700: #1e6091;
  --blue-600: #2877a8;
  --blue-500: #3a8cbf;
  --blue-400: #6aa9cf;
  --blue-300: #9cc4dd;
  --blue-200: #cfe1ec;
  --blue-100: #e8f1f7;
  --blue-50:  #f4f8fb;

  --teal-600: #168aad;
  --teal-500: #2aa3c2;

  --green-600: #4a9d6c;
  --green-500: #5fb37f;

  --ink-900: #0f1d2b;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --ink-300: #d1d5db;
  --ink-200: #e5e7eb;
  --ink-100: #f3f4f6;
  --ink-50:  #f9fafb;

  --white: #ffffff;
  --warm-white: #fbfaf7;

  /* Semantic */
  --bg: var(--white);
  --bg-soft: var(--blue-50);
  --bg-tint: var(--blue-100);
  --fg: var(--ink-800);
  --fg-soft: var(--ink-600);
  --fg-mute: var(--ink-500);
  --brand: var(--blue-700);
  --brand-strong: var(--blue-800);
  --brand-soft: var(--blue-200);
  --accent: var(--green-600);
  --accent-strong: #3e8a5d;
  --line: var(--ink-200);
  --line-soft: var(--ink-100);

  /* Type */
  --font-sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Lora", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;
  --s-11: 96px;
  --s-12: 128px;

  --section-pad: clamp(56px, 8vw, 112px);
  --container: 1200px;
  --container-narrow: 880px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 29, 43, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 29, 43, 0.06), 0 1px 2px rgba(15, 29, 43, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 29, 43, 0.08), 0 2px 6px rgba(15, 29, 43, 0.04);
  --shadow-lg: 0 18px 48px rgba(15, 29, 43, 0.12), 0 4px 12px rgba(15, 29, 43, 0.06);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms;
  --t: 220ms;
  --t-slow: 380ms;
}

/* Density modes (Tweaks) */
:root[data-density="airy"] {
  --section-pad: clamp(80px, 11vw, 160px);
}
:root[data-density="compact"] {
  --section-pad: clamp(40px, 6vw, 80px);
}

/* Card style modes (Tweaks) */
:root[data-cards="bordered"] .card { box-shadow: none; border: 1px solid var(--line); }
:root[data-cards="flat"] .card { box-shadow: none; border: 1px solid var(--line-soft); background: var(--bg-soft); }

/* Palette modes (Tweaks) */
:root[data-palette="sage"] {
  --blue-700: #3d6b5e;
  --blue-800: #2f5448;
  --blue-600: #4a8275;
  --blue-500: #5e9a8c;
  --blue-200: #cde0d9;
  --blue-100: #e6efeb;
  --blue-50:  #f3f7f5;
  --brand: #3d6b5e;
  --brand-strong: #2f5448;
  --brand-soft: #cde0d9;
  --bg-soft: #f3f7f5;
  --bg-tint: #e6efeb;
  --accent: #c98a3e;
  --accent-strong: #b07530;
}
:root[data-palette="warm"] {
  --blue-700: #6b5a8c;
  --blue-800: #4f4370;
  --blue-200: #ddd6e8;
  --blue-100: #ece8f1;
  --blue-50:  #f6f3f9;
  --brand: #6b5a8c;
  --brand-strong: #4f4370;
  --brand-soft: #ddd6e8;
  --bg-soft: #faf7f2;
  --bg-tint: #f3ede1;
  --accent: #c47a4d;
  --accent-strong: #ad683f;
}

/* ============================================================
   Reset / base
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--t) var(--ease);
}
a:hover { color: var(--brand-strong); }

p { text-wrap: pretty; margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em;
  font-weight: 500;
}

h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
h4 { font-size: 19px; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }

button { font-family: inherit; }

::selection { background: var(--brand-soft); color: var(--ink-900); }

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

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

section { padding-block: var(--section-pad); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
  font-weight: 500;
}
.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--s-9);
}
.section-head p.lede {
  font-size: 19px;
  color: var(--fg-soft);
  margin-top: 8px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-strong);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-strong);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand-soft);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--brand);
  color: var(--brand-strong);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand);
  font-size: 15px;
}
.btn-link .arrow {
  transition: transform var(--t) var(--ease);
}
.btn-link:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Header / nav
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-utility {
  background: var(--ink-900);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}
.header-utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 38px;
}
.header-utility a { color: rgba(255,255,255,0.92); }
.header-utility a:hover { color: white; }
.header-utility-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-size: 12px;
}
.header-utility-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-500);
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(95,179,127,0.25);
}
.header-utility-cta { display: flex; align-items: center; gap: 16px; }

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
  flex-wrap: nowrap;
}
.header-main .nav {
  flex-wrap: nowrap;
  white-space: nowrap;
}
.header-main .nav-link {
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .header-main .nav-link { padding: 10px 10px; font-size: 14.5px; }
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink-900);
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.brand-logo {
  height: 52px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}
.footer .brand {
  max-width: 280px;
}
.footer .brand-logo {
  height: 60px;
  max-width: 240px;
}
@media (max-width: 720px) {
  .brand-logo { height: 40px; }
  .header-main .container { height: 68px; gap: 12px; }
}
@media (max-width: 420px) {
  .brand-logo { height: 34px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 8px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-link:hover { background: var(--bg-soft); color: var(--brand); }
.nav-link.active { color: var(--brand); }
.nav-link .caret {
  width: 10px; height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--t) var(--ease);
}
.nav-item.open .nav-link .caret { transform: rotate(-135deg) translateY(2px); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--t) var(--ease);
}
.nav-item.open .nav-dropdown,
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 14.5px;
  color: var(--ink-700);
  border-radius: 6px;
  font-weight: 500;
}
.nav-dropdown a:hover { background: var(--bg-soft); color: var(--brand); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  width: 18px; height: 1.5px;
  background: var(--ink-800);
  display: block;
  transition: all var(--t) var(--ease);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line-soft);
  padding: 16px 0 24px;
}
.mobile-menu .container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a, .mobile-menu summary {
  padding: 12px 14px;
  font-size: 16px;
  color: var(--ink-800);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}
.mobile-menu a:hover, .mobile-menu summary:hover { background: var(--bg-soft); }
.mobile-menu details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mobile-menu details summary::-webkit-details-marker { display: none; }
.mobile-menu details summary::after { content: "+"; color: var(--fg-mute); font-size: 22px; }
.mobile-menu details[open] summary::after { content: "−"; }
.mobile-menu details .submenu { padding-left: 16px; padding-bottom: 8px; }
.mobile-menu details .submenu a { font-size: 14.5px; padding: 8px 14px; color: var(--fg-soft); }

@media (max-width: 1100px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-utility-meta .ut-hide { display: none; }
}
@media (max-width: 600px) {
  .header-utility { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 112px);
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 80% 0%, var(--blue-100) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 90%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  background: var(--bg-tint);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 28px;
  border: 1px solid var(--brand-soft);
}
.hero-eyebrow .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(95,179,127,0.3);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(95,179,127,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(95,179,127,0.05); }
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand);
  font-weight: 500;
}

.hero-sub {
  font-size: 19px;
  color: var(--fg-soft);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 580px;
}
.hero-meta-item .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  margin-bottom: 6px;
}
.hero-meta-item .value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-900);
  font-weight: 500;
}

/* Hero visual — composed placeholder + floating cards */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 6;
}
.hero-photo {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--blue-200) 0%, var(--blue-100) 100%);
  border: 1px solid var(--brand-soft);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 16px 18px;
}
.hero-card-credentials {
  bottom: -28px;
  left: -28px;
  width: 240px;
}
.hero-card-credentials .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  margin-bottom: 6px;
}
.hero-card-credentials .name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink-900);
  margin-bottom: 4px;
  font-weight: 500;
}
.hero-card-credentials .creds {
  font-size: 12.5px;
  color: var(--fg-soft);
}

.hero-card-stats {
  top: 28px;
  right: -32px;
  width: 200px;
}
.hero-card-stats .stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--brand);
  line-height: 1;
  font-weight: 500;
  margin-bottom: 6px;
}
.hero-card-stats .stat-label {
  font-size: 13px;
  color: var(--fg-soft);
  line-height: 1.4;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .hero-card-credentials { left: -10px; }
  .hero-card-stats { right: -10px; }
}

/* ============================================================
   Cards / services
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-xs);
  transition: all var(--t) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}
.card .card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  margin-bottom: 14px;
}
.card .card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}
.card h3 { margin-bottom: 12px; }
.card p {
  color: var(--fg-soft);
  font-size: 15.5px;
  margin-bottom: 22px;
  flex-grow: 1;
}
.card .card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card .card-link .arrow { transition: transform var(--t) var(--ease); }
.card:hover .card-link .arrow { transform: translateX(4px); }

/* ============================================================
   About section
   ============================================================ */

.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about-prose p {
  margin-bottom: 1.2em;
  color: var(--fg-soft);
  font-size: 16.5px;
}

.about-figure {
  position: sticky;
  top: 140px;
}
.about-figure-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.about-figure-img {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(30,96,145,0.06) 0,
      rgba(30,96,145,0.06) 2px,
      transparent 2px,
      transparent 12px
    ),
    var(--blue-100);
  border: 1px solid var(--brand-soft);
  display: grid;
  place-items: center;
  position: relative;
}
.about-figure-img .placeholder-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--brand-strong);
  background: var(--white);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--brand-soft);
}
.about-figure-cap {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

.report-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  margin-top: 16px;
}
.report-card-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 12px;
}
.report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
}
.report-row:first-of-type { border-top: 0; }
.report-row .lbl { color: var(--fg-soft); }
.report-row .val { font-family: var(--font-mono); color: var(--ink-900); font-weight: 600; }
.report-row .val.ok { color: var(--accent-strong); }
.report-row .val.warn { color: #b8741e; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { position: static; }
}

/* ============================================================
   Doctor section
   ============================================================ */

.doctor-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

.doctor-portrait {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--blue-200), var(--blue-100));
  border: 1px solid var(--brand-soft);
  position: relative;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.doctor-portrait::before,
.doctor-portrait::after,
.hero-photo::before,
.hero-photo::after { content: none !important; display: none !important; }
.doctor-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doctor-info .credentials {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.doctor-info h2 { margin-bottom: 16px; }
.doctor-info .role {
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  color: var(--fg-soft);
  margin-bottom: 24px;
}
.doctor-info p.bio {
  color: var(--fg-soft);
  font-size: 16.5px;
  margin-bottom: 28px;
}
.doctor-creds-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}
.doctor-creds-list li {
  font-size: 14px;
  color: var(--fg-soft);
  padding-left: 22px;
  position: relative;
}
.doctor-creds-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1.5px;
  background: var(--brand);
}

@media (max-width: 880px) {
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-portrait { max-width: 320px; }
}

/* ============================================================
   Testimonials
   ============================================================ */

.testimonials {
  background:
    radial-gradient(60% 80% at 100% 0%, var(--blue-100) 0%, transparent 60%),
    var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.5;
  color: var(--brand-soft);
  margin-bottom: 18px;
  height: 28px;
}
.testimonial blockquote {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--ink-800);
  line-height: 1.6;
  flex-grow: 1;
}
.testimonial cite {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  font-size: 13.5px;
}
.testimonial cite .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
}
.testimonial cite .who {
  display: flex;
  flex-direction: column;
}
.testimonial cite .who strong {
  color: var(--ink-900);
  font-weight: 600;
}
.testimonial cite .who span { color: var(--fg-mute); font-size: 12.5px; }

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

/* ============================================================
   Contact / form
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-info h2 { margin-bottom: 20px; }
.contact-info p.lede {
  font-size: 18px;
  color: var(--fg-soft);
  margin-bottom: 32px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.contact-list .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-list .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 4px;
}
.contact-list .val {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-900);
  font-weight: 500;
  line-height: 1.4;
}
.contact-list .val a { color: var(--ink-900); }
.contact-list .val a:hover { color: var(--brand); }
.contact-list .sub {
  font-size: 13.5px;
  color: var(--fg-mute);
  margin-top: 2px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.contact-form .form-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.contact-form h3 { margin-bottom: 24px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-soft);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink-900);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: all var(--t) var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-field input.error,
.form-field textarea.error {
  border-color: #c54a4a;
  background: #fef6f6;
}
.form-field .error-msg {
  font-size: 12px;
  color: #c54a4a;
  margin-top: 4px;
  font-family: var(--font-mono);
}
.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.form-disclaimer {
  font-size: 12px;
  color: var(--fg-mute);
  line-height: 1.5;
}

.form-success {
  background: #ecf6ef;
  border: 1px solid #c9e4d2;
  border-radius: var(--r-md);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.form-success .icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.form-success strong { display: block; margin-bottom: 4px; color: var(--ink-900); }
.form-success p { font-size: 14px; color: var(--fg-soft); margin: 0; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Map + hours
   ============================================================ */

.location {
  background: var(--ink-900);
  color: rgba(255,255,255,0.9);
}
.location h2 { color: white; }
.location .section-eyebrow { color: var(--blue-300); }
.location .section-eyebrow::before { background: var(--blue-300); }

.location-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-lg);
  background: #2a3a4d;
  min-height: 420px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: saturate(0.9);
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hours-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hours-card h3 {
  color: white;
  font-size: 22px;
  margin-bottom: 4px;
}
.hours-card .sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 20px;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table tr {
  border-bottom: 1px dashed rgba(255,255,255,0.12);
}
.hours-table tr:last-child { border-bottom: none; }
.hours-table tr.today {
  background: rgba(95,179,127,0.1);
}
.hours-table td {
  padding: 11px 4px;
  font-size: 14.5px;
}
.hours-table td:first-child {
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}
.hours-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.hours-table tr.today td:first-child::before {
  content: "▸ ";
  color: var(--green-500);
  font-weight: bold;
}
.hours-table .closed {
  color: var(--blue-400) !important;
  font-style: italic;
}

.address-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 24px;
}
.address-card .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 8px;
}
.address-card .addr {
  font-family: var(--font-display);
  font-size: 18px;
  color: white;
  line-height: 1.45;
  margin-bottom: 16px;
  font-weight: 500;
}
.address-card .directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-300);
  font-weight: 600;
  font-size: 14px;
}
.address-card .directions:hover { color: white; }

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

/* ============================================================
   CTA banner
   ============================================================ */

.cta-banner {
  padding-block: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(50% 80% at 0% 100%, rgba(255,255,255,0.18) 0%, transparent 60%),
    linear-gradient(120deg, var(--brand-strong), var(--brand));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-banner > .container { position: relative; }
.cta-banner h2 { color: white; max-width: 720px; margin: 0 auto 18px; }
.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-banner .actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.cta-banner .btn-primary {
  background: white;
  color: var(--brand-strong);
}
.cta-banner .btn-primary:hover {
  background: var(--bg-soft);
  color: var(--brand-strong);
}
.cta-banner .btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: white;
}
.cta-banner .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.75);
  padding-block: 64px 28px;
  font-size: 14.5px;
}
.footer h4 {
  color: white;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer .brand { color: white; margin-bottom: 18px; }
.footer .footer-blurb {
  color: rgba(255,255,255,0.6);
  margin-bottom: 22px;
  max-width: 320px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}
.footer ul a:hover { color: white; }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-meta .phone {
  font-family: var(--font-display);
  font-size: 22px;
  color: white;
  font-weight: 500;
}
.footer-meta .addr {
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-bottom: 12px;
}
.footer-meta .btn { align-self: flex-start; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-bottom-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}
.footer-bottom-links a:hover { color: white; }
.footer-bottom .copy {
  color: rgba(255,255,255,0.5);
  font-size: 12.5px;
  font-family: var(--font-mono);
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Mobile floating CTA
   ============================================================ */

.mobile-cta-fab {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 90;
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.mobile-cta-fab:hover { color: white; }

@media (max-width: 600px) {
  .mobile-cta-fab { display: block; }
  body { padding-bottom: 72px; }
}

/* ============================================================
   Sub-page hero (smaller than home hero)
   ============================================================ */

.page-hero {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
  background:
    radial-gradient(60% 60% at 90% 0%, var(--blue-100) 0%, transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 18px;
}
.page-hero .breadcrumb a { color: var(--fg-mute); }
.page-hero .breadcrumb a:hover { color: var(--brand); }
.page-hero h1 { font-size: clamp(36px, 4.5vw, 56px); margin-bottom: 18px; }
.page-hero p.lede {
  font-size: 19px;
  color: var(--fg-soft);
  max-width: 640px;
}

/* ============================================================
   Service detail rows (services page)
   ============================================================ */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line-soft);
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse .service-visual { order: 2; }
.service-row .service-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 12px;
}
.service-row h2 { margin-bottom: 16px; }
.service-row p {
  color: var(--fg-soft);
  font-size: 16.5px;
  margin-bottom: 24px;
}
.service-row ul.bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-row ul.bullets li {
  padding-left: 26px;
  position: relative;
  color: var(--fg-soft);
  font-size: 15.5px;
}
.service-row ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 1.5px;
  background: var(--brand);
}

.service-visual {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(30,96,145,0.07) 0,
      rgba(30,96,145,0.07) 2px,
      transparent 2px,
      transparent 14px
    ),
    linear-gradient(160deg, var(--blue-200), var(--blue-100));
  border: 1px solid var(--brand-soft);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: var(--shadow-md);
}
.service-visual .placeholder-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--brand-strong);
  background: var(--white);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--brand-soft);
}

@media (max-width: 800px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row.reverse .service-visual { order: 0; }
}

/* ============================================================
   Education / about-us info blocks
   ============================================================ */

.info-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding-block: 32px;
  border-top: 1px solid var(--line-soft);
}
.info-block:first-of-type { border-top: 0; }
.info-block .info-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.info-block h3 { margin-bottom: 12px; }
.info-block p { color: var(--fg-soft); }
@media (max-width: 720px) {
  .info-block { grid-template-columns: 1fr; gap: 12px; }
}
