/* Brownsville OB/GYN Associates — Sanctuary Continuum design system
   Hybrid: Clinical Sanctuary palette + modern commercial IA
*/
:root {
  --teal: #0F6F6B;
  --teal-dark: #0B4543;
  --blush: #F2D3CD;
  --sage: #A8B79C;
  --cream: #FFF8F5;
  --ink: #183130;
  --muted: #667773;
  --paper: #FFFFFF;
  --sage-soft: #EEF3E9;
  --line: rgba(24, 49, 48, 0.14);
  --shadow: 0 28px 90px rgba(17, 54, 52, 0.14);
  --shadow-soft: 0 16px 44px rgba(18, 78, 74, 0.09);
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1180px;
  --radius: 22px;
  --focus: 0 0 0 3px rgba(15, 111, 107, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 8% 0%, rgba(242, 211, 205, 0.55), transparent 32%),
    radial-gradient(circle at 96% 4%, rgba(168, 183, 156, 0.42), transparent 30%),
    linear-gradient(160deg, #fff8f5 0%, #f6fbf8 55%, #fbf7f2 100%);
  min-height: 100vh;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--teal-dark); color: #fff; padding: 10px 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Top utility bar */
.util {
  background: var(--teal-dark);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.util .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: flex-end; align-items: center;
  padding: 9px 0;
}
.util a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.util a:hover {
  color: #fff8f5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.util-links { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(17, 54, 52, 0.05);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 88px; padding: 4px 0;
}
.brand { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.brand img {
  height: 80px; width: auto; max-width: min(420px, 58vw); object-fit: contain;
}
.nav {
  display: flex; align-items: center; gap: 4px 16px;
  list-style: none; margin: 0; padding: 0;
  font-size: 1.08rem; font-weight: 700; color: var(--teal-dark);
  letter-spacing: 0.01em;
}
html[lang="es"] .nav { font-size: 0.95rem; }
html[lang="es"] .nav-cta { font-size: 0.85rem; padding: 0 20px; min-height: 40px; }
.nav a {
  color: var(--teal-dark); text-decoration: none; padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink); border-bottom-color: var(--sage);
}
/* Higher specificity than `.nav a` so padding isn't crushed to 8px 2px */
.nav a.nav-cta,
a.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px;
  padding: 0 28px; /* was effectively 8px 2px via .nav a — roomy header pill */
  border-radius: 999px;
  background: var(--teal); color: #fff !important;
  border: 0 !important; border-bottom: 0 !important;
  font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(15,111,107,.2);
  transition: transform .15s ease, background .15s ease;
}
.nav a.nav-cta:hover,
a.nav-cta:hover {
  background: var(--teal-dark); transform: translateY(-1px); color: #fff !important;
  border-bottom-color: transparent;
}
.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--teal-dark);
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
body.nav-open {
  overflow: hidden;
  touch-action: none;
}
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(11, 69, 67, 0.28);
  border: 0;
  padding: 0;
  cursor: pointer;
}
body.nav-open .nav-backdrop {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: .18s ease;
}
.btn-primary {
  background: var(--teal); color: #fff;
  box-shadow: 0 16px 34px rgba(15,111,107,.22);
}
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); }
.btn-secondary {
  background: #fff; color: var(--teal-dark); border-color: var(--line);
}
.btn-secondary:hover { background: var(--blush); border-color: transparent; color: var(--teal-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Typography helpers */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15,111,107,.08); border: 1px solid rgba(15,111,107,.16);
  color: var(--teal); padding: 8px 12px; border-radius: 999px;
  font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.kicker.warm {
  background: rgba(242,211,205,.35); border-color: rgba(242,211,205,.6); color: var(--teal-dark);
}
h1, h2, h3, .display {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; color: var(--teal-dark);
  line-height: 1.08; text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.8vw, 3.75rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 0 0 12px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; letter-spacing: -0.015em; }
.lede { font-size: 1.125rem; color: var(--muted); max-width: 42ch; }
.muted { color: var(--muted); }
.placeholder-tag {
  display: inline-block; margin-top: 10px;
  font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
  opacity: .75;
}

/* Cards / surfaces */
.card {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.card:hover { box-shadow: 0 18px 44px rgba(18,78,74,.1); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center;
  padding: 48px 0 28px; position: relative;
}
.hero-copy .kickers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 16px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: 1.1rem; font-weight: 700; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage);
}
.visual { position: relative; min-height: 430px; }
.portrait {
  position: absolute; overflow: hidden; background: #fff;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 26px 60px rgba(242,211,205,.28), 0 14px 34px rgba(18,78,74,.14);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
/* Pair + card share the same horizontal center and outer edges (432px unit) */
.p1 {
  width: 210px; height: 262px; border-radius: 28px; transform: none;
  left: calc(50% - 216px); /* unit half = 216; 12px gap between portraits */
  bottom: 118px; top: auto; right: auto;
}
.p2 {
  width: 210px; height: 262px; border-radius: 28px; transform: none;
  left: calc(50% + 6px);
  bottom: 118px; top: auto; right: auto;
}
.credential {
  position: absolute;
  left: calc(50% - 216px);
  right: auto;
  width: 432px;
  max-width: calc(100% - 24px);
  bottom: 36px;
  z-index: 3;
  box-sizing: border-box;
  text-align: center;
  border-radius: 24px; padding: 20px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: 0 22px 58px rgba(18,78,74,.15);
}
.credential b {
  display: block; font: 500 1.85rem/1.05 var(--serif);
  color: var(--teal-dark); letter-spacing: -.02em; margin-bottom: 8px;
}
.credential span { color: #5f706c; font-size: 1rem; line-height: 1.45; }

/* Proof band */
.proof-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: rgba(255,255,255,.5); margin: 18px 0 36px;
}
.proof { padding: 22px 20px; border-right: 1px solid var(--line); }
.proof:last-child { border-right: 0; }
.proof:nth-child(1) { background: rgba(242,211,205,.16); }
.proof:nth-child(3) { background: rgba(168,183,156,.16); }
.proof b {
  display: block; font: 500 1.7rem/1 var(--serif); color: var(--teal-dark); letter-spacing: -.03em;
}
.proof span { font-size: 0.82rem; color: var(--muted); }

/* Continuum */
.section { padding: 28px 0 40px; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px;
}
.section-head p { color: var(--muted); max-width: 42ch; margin: 0; }
.continuum-card {
  background: rgba(255,255,255,.82); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
}
.continuum-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--sage), var(--teal), var(--blush));
}
.track-wrap { position: relative; padding: 4px 2px 14px; }
.track-line {
  position: absolute; left: 12px; right: 12px; top: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage) 12%, var(--teal) 50%, var(--blush) 88%, transparent);
}
.stages {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.stage-btn {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--muted); min-height: 44px;
}
.stage-btn .dot {
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--teal);
  box-shadow: 0 0 0 4px rgba(255,255,255,.95); transition: .15s ease;
}
.stage-btn .name {
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-align: center;
}
.stage-btn:hover { color: var(--teal-dark); }
.stage-btn[aria-selected="true"] { color: var(--teal); }
.stage-btn[aria-selected="true"] .dot { background: var(--teal); transform: scale(1.15); }
.stage-panel {
  margin-top: 6px; padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(242,211,205,.18), rgba(168,183,156,.14));
  border: 1px solid var(--line); min-height: 100px;
}
.stage-panel[hidden] { display: none; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Editorial wayfinding — one lead pathway, two quieter supporting links */
.welcome-copy { max-width: none; }
.editorial-paths {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(250px, .88fr);
  gap: 18px; align-items: stretch; margin-top: 18px;
}
.feature-lead {
  min-height: 248px; border-radius: 24px; overflow: hidden;
  background: var(--teal-dark); color: #fff; box-shadow: var(--shadow-soft);
}
.feature-lead a {
  min-height: 248px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px 28px; color: inherit; text-decoration: none;
  background: radial-gradient(circle at 100% 0%, rgba(242,211,205,.18), transparent 42%);
}
.feature-lead-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.feature-eyebrow, .feature-rail-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
}
.feature-eyebrow { color: rgba(255,255,255,.76); }
.feature-mark { width: 40px; height: 40px; display: grid; place-items: center; color: var(--blush); }
.feature-mark svg { width: 30px; height: 30px; }
.feature-lead h3 { color: #fff; font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 500; letter-spacing: -.03em; margin: 24px 0 8px; }
.feature-lead p { color: rgba(255,255,255,.78); max-width: 38ch; margin: 0; }
.feature-arrow { color: var(--blush); font-weight: 700; margin-top: 20px; }
.feature-rail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-rail-label { color: #4f615d; margin: 0; padding: 14px 0 8px; }
.feature-link {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 17px 0; color: inherit; text-decoration: none; border-top: 1px solid var(--line);
}
.feature-link:hover strong { color: var(--teal); }
.feature-index { color: var(--teal); font-size: .78rem; font-weight: 700; padding-top: 2px; }
.feature-link strong { display: block; color: var(--teal-dark); margin-bottom: 4px; transition: color .15s ease; }
.feature-link small { display: block; color: var(--muted); line-height: 1.45; }
.feature-link-arrow { color: var(--teal); font-size: 1.15rem; line-height: 1; }

.icon-pill {
  width: 42px; height: 42px; border-radius: 14px; background: var(--sage-soft);
  display: grid; place-items: center; margin-bottom: 12px; color: var(--teal-dark); font-weight: 700;
}
.icon-pill svg { width: 22px; height: 22px; display: block; }
.quick-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 28px;
}
.quick-links a {
  display: block; text-decoration: none; color: inherit;
  background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  transition: .15s ease;
}
.quick-links a:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: rgba(15,111,107,.25); }
.quick-links strong { display: block; color: var(--teal-dark); margin-bottom: 4px; }

/* Page hero (inner) */
.page-hero {
  padding: 36px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.page-hero p { color: var(--muted); max-width: 58ch; font-size: 1.05rem; }
.breadcrumbs {
  font-size: 0.85rem; color: var(--muted); margin-bottom: 12px;
}
.breadcrumbs a { color: var(--teal); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Content */
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1rem; color: #4f615d; }
.prose ul { margin: 0 0 1rem; padding-left: 1.15rem; color: #4f615d; }
.prose li { margin: 0.35rem 0; }
.prose h2 { margin-top: 1.6rem; }
.content-grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start;
}
.side-card { position: sticky; top: 110px; }
.side-card .btn { width: 100%; margin-top: 10px; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li {
  padding: 10px 0; border-bottom: 1px solid var(--line); color: #4f615d;
}
.list-clean a { text-decoration: none; color: var(--teal-dark); font-weight: 600; }
.list-clean a:hover { color: var(--teal); }

/* Native progressive disclosure for secondary service groups */
.progressive-sections { margin-top: 24px; border-top: 1px solid var(--line); }
.progressive-section { border-bottom: 1px solid var(--line); }
.progressive-section summary {
  display: grid; grid-template-columns: minmax(0, 1fr) 1.25rem; gap: 12px; align-items: center;
  min-height: 74px; cursor: pointer; list-style: none; color: var(--teal-dark);
}
.progressive-section summary::-webkit-details-marker { display: none; }
.progressive-section summary:focus-visible { outline: 3px solid rgba(15,111,107,.28); outline-offset: 4px; border-radius: 8px; }
.progressive-section summary strong { display: block; font-size: 1.08rem; }
.progressive-section summary small { display: block; color: var(--muted); font-size: .9rem; font-weight: 400; line-height: 1.4; margin-top: 3px; }
.summary-icon { width: 16px; height: 16px; position: relative; }
.summary-icon::before, .summary-icon::after { content: ""; position: absolute; inset: 7px 0 auto; height: 2px; background: var(--teal); border-radius: 2px; }
.summary-icon::after { transform: rotate(90deg); transition: transform .15s ease; }
.progressive-section[open] .summary-icon::after { transform: rotate(0deg); }
.progressive-section > ul, .progressive-section > p { margin: 0 0 20px 0; max-width: 62ch; }
.progressive-section > p { color: #4f615d; }

/* Physicians */
.phys-card {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  padding: 0;
}
.phys-card .photo {
  width: 100%; height: 260px; overflow: hidden;
  background: #e8e4df;
}
.phys-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.phys-card .phys-body { padding: 20px; }
.welcome-cards {
  align-items: stretch;
}
.welcome-cards .phys-card {
  display: flex;
  height: 100%;
}
.welcome-cards .phys-card .phys-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  box-sizing: border-box;
}
.welcome-cards .phys-card h3 {
  min-height: 2.4em;
}
.welcome-cards .phys-card p {
  flex: 1;
}
.welcome-cards .phys-card .phys-body .btn {
  align-self: flex-end;
}
.phys-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--teal-dark);
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.phys-card p { margin: 0; }
/* Physicians section */
.physicians-section { padding: 8px 0 28px; }
.physicians-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--teal-dark);
  line-height: 1.08;
  margin: 0 0 20px;
}
.physicians-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.physicians-grid + h2 { margin-top: 36px; }
.affiliation-main {
  font-size: 1.2rem; font-weight: 700;
  list-style: none; padding: 8px 0;
}

/* Closing CTA */
.closing {
  margin: 20px 0 48px; border-radius: 28px; padding: 28px;
  display: grid; grid-template-columns: 1.3fr auto; gap: 18px; align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(242,211,205,.36), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(168,183,156,.28), transparent 40%),
    var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
}
.closing h2 { color: var(--teal-dark); margin-bottom: 8px; }
.closing p { color: var(--muted); margin: 0; max-width: 48ch; }
.closing .btn-secondary { color: var(--teal-dark); }
.closing .btn-ghost { color: var(--teal-dark); border-color: var(--line); }
.closing .btn-ghost:hover { background: var(--blush); color: var(--teal-dark); border-color: transparent; }

/* Footer */
.site-footer {
  background: var(--teal-dark); color: rgba(255,255,255,.78); padding: 42px 0 28px; margin-top: 20px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px;
}
.site-footer h3 {
  color: #fff; font-family: var(--sans); font-size: 0.8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.footer-brand { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: 10px; }
.footer-meta {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between;
  font-size: 0.85rem;
}
.disclaimer {
  font-size: 0.78rem; color: rgba(255,255,255,.78); max-width: 70ch; margin-top: 10px;
}

/* Forms (non-PHI public contact only) */
#message-form { scroll-margin-top: 96px; }
.form label { display: block; font-weight: 600; margin: 0 0 6px; color: var(--teal-dark); }
.form input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: #fff; color: var(--ink); margin-bottom: 14px;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; box-shadow: var(--focus); border-color: rgba(15,111,107,.4);
}
.form .hint { font-size: 0.85rem; color: var(--muted); margin: -8px 0 14px; }

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news-card h3 { font-size: 1.15rem; }
.news-card .meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }

/* Map placeholder */
.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--sage-soft); min-height: 280px;
  display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px;
}
.map-frame iframe {
  width: 100%; min-height: 300px; border: 0; display: block;
}
.map-frame.has-embed { padding: 0; min-height: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-cta, .quick-links a, .card, .feature-link strong, .summary-icon::after { transition: none; }
}

/* Collapse main nav early — 8 links overflow tablets before phones */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .site-header .wrap {
    position: relative;
    min-height: 64px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand img {
    height: 52px;
    max-width: min(240px, calc(100vw - 120px));
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    max-height: min(72vh, 540px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    padding: 6px 10px 14px;
    box-shadow: var(--shadow);
    z-index: 60;
  }
  .nav.open > li { width: 100%; list-style: none; }
  .nav.open a {
    display: block;
    width: 100%;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    line-height: 1.25;
  }
  .nav.open > li:last-child a { border-bottom: 0; }
  .nav.open a[aria-current="page"] {
    background: rgba(15, 111, 107, 0.06);
    border-radius: 10px;
    border-bottom-color: transparent;
  }
  .nav.open a.nav-cta,
  .nav.open li:last-child a.nav-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 8px;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 0 !important;
    border-radius: 999px;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 111, 107, 0.18);
  }
  html[lang="es"] .nav.open a { font-size: 0.95rem; }
}

@media (max-width: 980px) {
  .hero, .grid-3, .grid-2, .quick-links, .proof-band, .footer-grid, .content-grid, .news-grid, .closing, .physicians-grid, .editorial-paths {
    grid-template-columns: 1fr;
  }
  .util {
    font-size: 0.82rem;
  }
  .util .wrap {
    justify-content: center;
    padding: 8px 0;
    gap: 6px 12px;
  }
  .util-links {
    width: 100%;
    justify-content: center;
    gap: 10px 16px;
  }
  .util a { white-space: nowrap; }
  .visual { min-height: 360px; order: -1; }
  .p1 {
    width: 190px; height: 236px;
    left: calc(50% - 194px);
    bottom: 100px; top: auto; right: auto;
  }
  .p2 {
    width: 190px; height: 236px;
    left: calc(50% + 4px);
    bottom: 100px; top: auto; right: auto;
  }
  .credential {
    left: calc(50% - 194px);
    right: auto;
    width: 388px;
    max-width: calc(100% - 16px);
    bottom: 12px;
  }
  .track-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
  }
  .stages {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 4px 10px;
    grid-template-columns: none;
  }
  .stage-btn {
    flex: 0 0 auto;
    min-width: 4.75rem;
    max-width: 6.5rem;
  }
  .stage-btn .name {
    font-size: 0.65rem;
    letter-spacing: 0.03em;
  }
  .track-line { display: none; }
  .phys-card { grid-template-columns: 100px 1fr; }
  .side-card { position: static; }
  .proof { border-right: 0; border-bottom: 1px solid var(--line); }
  .closing .btn { width: 100%; }
  .hero-copy .lede { max-width: none; }
}

@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .util {
    font-size: 0.78rem;
  }
  .util-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    justify-items: center;
    text-align: center;
  }
  .util-links a {
    white-space: normal;
    line-height: 1.2;
  }
  .site-header .wrap { min-height: 58px; }
  .brand img {
    height: 44px;
    max-width: min(200px, calc(100vw - 108px));
  }
  .nav-toggle-label { /* keep label for clarity on phone */
    font-size: 0.82rem;
  }
  .nav.open {
    max-height: min(78vh, 560px);
    padding: 4px 8px 12px;
  }
  .nav.open a { padding: 13px 10px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .trust-row { font-size: 0.95rem; gap: 8px 12px; }
  .page-hero { padding: 28px 0 14px; }
  h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
}
