:root {
  --blue: #1e6fd9;
  --blue-dark: #175bb3;
  --navy: #003b82;
  --coral: #ff6b4a;
  --coral-dark: #e14f2f;
  --light: #eef3fb;
  --gray: #52606d;
  --border: #e2e8f0;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  /* Kept deliberately cheap: a single small tileable dot pattern + a flat
     base color. Earlier this stacked 3 full-page-height soft radial
     gradients on top of the dot tile; each one forces the browser to
     rasterize a gradient the full scroll height of the page (6000px+),
     which is expensive to repaint and was visually glitching the sticky
     header during fast scroll (a "ghost" duplicate frame). .hero and
     section.alt already carry their own small, section-scoped gradients
     for color accents, so body doesn't need to duplicate that. */
  background:
    radial-gradient(rgba(0,59,130,0.09) 1px, transparent 1px) 0 0/24px 24px,
    #fbfcfe;
  font-size: 18px;
  line-height: 1.6;
}

h1, h2.section-title, h3, .hero h1 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 600;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.topbar a { color: #fff; font-weight: 600; }

/* ---------- Header / nav ---------- */
/* position:sticky is deliberately NOT used here. On Chrome/macOS it has a
   known bug where a sticky element lags behind during fast trackpad
   scroll (visibly drifts down the page with the content, then snaps back
   to the top once scrolling stops) - confirmed on this site via screen
   recording, and `transform: translateZ(0)` / `will-change: transform`
   did not fix it. Instead, common.js toggles a `.pinned` class that
   switches this to position:fixed once the topbar scrolls out of view,
   which doesn't have that lag because fixed positioning isn't
   recalculated against scroll-anchoring the way sticky is. */
header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
header.site-header.pinned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: block;
  flex-shrink: 0;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
}
nav.main-nav a {
  color: #1a1a1a;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
nav.main-nav a.active { color: var(--blue); }

.btn-call {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(30,111,217,0.25);
  display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30,111,217,0.35);
}
.btn-call:active { transform: translateY(0); }

.hero-cta .btn-call {
  padding: 14px 26px;
  font-size: 16px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--navy);
  line-height: 1;
}

#mobile-menu {
  display: none;
  flex-direction: column;
  padding: 10px 0 20px;
  border-top: 1px solid var(--border);
}
#mobile-menu a {
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 1px solid var(--border);
}
#mobile-menu.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: fixed;
  inset: 0;
  z-index: 300;
  max-width: none;
  background: #fff;
  padding: 72px 24px 24px;
  overflow-y: auto;
  border-top: none;
}
/* Close button: a filled circle, not a bare glyph, sized well past the 44px
   minimum tap target so it reads clearly at a glance (incl. for older users). */
#mobile-menu .menu-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border); border-radius: 50%;
  background: var(--light);
  font-size: 24px; font-weight: 700; color: var(--navy); cursor: pointer;
}
#mobile-menu .menu-nav { display: flex; flex-direction: column; align-items: center; width: 100%; }
#mobile-menu.open .menu-logo { display: block; margin: 0 auto 28px; border-bottom: none; padding: 0; }
#mobile-menu.open .menu-logo img { height: 44px; width: auto; display: block; margin: 0 auto; }
#mobile-menu.open a { font-size: 24px; padding: 16px 0; width: 100%; max-width: 420px; }
/* Only the Call/Text button is pushed to the bottom of the screen; the logo
   and nav links stay together near the top instead of being spread out with
   big empty gaps (space-evenly made it read as "not a menu"). */
#mobile-menu.open a.btn-call-mobile { margin: auto 0 0; font-size: 20px; padding: 16px; border-bottom: none; }
/* When the Call/Text popover is open on top of the full-screen menu, dim
   everything else so the popover clearly reads as a layer on top (it can
   land over a nav link when flipped upward near the bottom button). */
#mobile-menu.popover-open > *:not(.calltext-menu) { opacity: 0.25; transition: opacity 0.15s ease; }
#mobile-menu .calltext-menu { z-index: 310; }
body.menu-open #boei_button, body.menu-open #boei_notification_badge { display: none !important; }
/* Defense in depth: even if the overlay's own position:fixed stacking were ever
   off on some device, explicitly hide the original topbar/header (logo, old
   hamburger, nav) while the full-screen menu is open, so there is never a
   visible duplicate header above the overlay. */
body.menu-open .topbar { visibility: hidden; }
body.menu-open header.site-header { visibility: hidden; }
body.menu-open header.site-header #mobile-menu.open { visibility: visible; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 88% -15%, rgba(30,111,217,0.20), transparent 45%),
    radial-gradient(circle at -10% 115%, rgba(255,107,74,0.14), transparent 42%),
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.93) 40%, rgba(255,255,255,0.55) 65%, rgba(255,255,255,0.8) 100%),
    url('/family-medicine-doctor-houston-clinic-banner.webp') center 30% / cover no-repeat,
    linear-gradient(180deg, var(--light), #fff);
  padding: 50px 0 60px;
}
@media (max-width: 860px) {
  .hero {
    background:
      radial-gradient(circle at 88% -15%, rgba(30,111,217,0.20), transparent 45%),
      radial-gradient(circle at -10% 115%, rgba(255,107,74,0.14), transparent 42%),
      linear-gradient(180deg, var(--light), #fff);
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 18px;
}
.hero p.lead { font-size: 19px; color: #333; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-form-hint::after { content: "now \2192"; }
.price-note { margin: 14px 0 0; padding: 12px 14px; background: var(--light); border-radius: 8px; font-size: 15px; color: var(--gray); }
.price-note a { font-weight: 700; }
.hero-quickfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-quickfacts .fact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-quickfacts .fact svg {
  width: 22px;
  height: 22px;
  stroke: var(--coral-dark);
  fill: none;
  flex-shrink: 0;
}
.hero-quickfacts .fact span {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.hero img.hero-photo {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  max-height: 420px;
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.tight { padding: 40px 0; }
section.alt {
  background:
    radial-gradient(circle at 8% 12%, rgba(255,107,74,0.13), transparent 36%),
    radial-gradient(circle at 92% 88%, rgba(30,111,217,0.17), transparent 40%),
    linear-gradient(135deg, var(--light), #f4f8fd);
}
h2.section-title {
  color: var(--navy);
  font-size: 32px;
  margin: 0 0 10px;
}
p.section-sub { color: var(--gray); font-size: 18px; margin-bottom: 36px; max-width: 700px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,59,130,0.08); }
.card h3 { color: var(--navy); margin: 0 0 10px; font-size: 20px; }
.card img { border-radius: var(--radius); margin-bottom: 16px; aspect-ratio: 4/3; object-fit: cover; }

/* Organic "blob" photo treatment: replaces the plain bordered rectangle
   look for feature/portrait photography. Percentage-based radii scale
   with any image size, no SVG mask needed. */
img.img-organic {
  border-radius: 63% 37% 54% 46% / 43% 51% 49% 57%;
  filter: drop-shadow(0 16px 28px rgba(0,59,130,0.16));
}
@media (max-width: 700px) {
  img.img-organic { border-radius: 42% 58% 60% 40% / 46% 42% 58% 54%; }
}

/* Real blob shapes: SVG clipPath (objectBoundingBox units, defined inline at the
   top of each page) so the photo is cut along bezier curves, not an ellipse.
   The wrapper carries the shadow because clip-path would clip a shadow on the img. */
.blob-wrap { display: block; filter: drop-shadow(0 16px 28px rgba(0,59,130,0.18)); }
.blob-wrap img.img-organic { display: block; border-radius: 0; filter: none; clip-path: url(#blob-a); }
.blob-wrap.blob-b img.img-organic { clip-path: url(#blob-b); }
.blob-wrap.blob-c img.img-organic { clip-path: url(#blob-c); }

/* Homepage "Our Commitment": heading on its own full-width line, photo column
   wider and taller so the blob shows more of the picture. */
.commitment-grid { grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: center; margin-top: 14px; }
.commitment-grid--img-left { grid-template-columns: 1.2fr 1fr; }
.commitment-grid p:first-child { margin-top: 0; }
img.img-organic--lg {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 54% 46% 48% 52% / 46% 52% 48% 54%;
}
@media (max-width: 860px) {
  .commitment-grid { grid-template-columns: 1fr; gap: 20px; }
}

.np-list { list-style: none; padding: 0; margin: 0; columns: 3; column-gap: 24px; }
.np-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dashed var(--border); }
@media (max-width: 860px) { .np-list { columns: 2; } }
@media (max-width: 480px) { .np-list { columns: 2; column-gap: 14px; font-size: 14px; } }


/* Provider cards: no boxed border around the photo, caption sits plain
   underneath so the organic photo shape reads as the focal point. */
/* Provider cards: no photo (no real headshots available), no card chrome, no
   shadow. Specialty as a small label, doctor names large in the serif face. */
.provider-grid { gap: 20px; }
.provider-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; text-align: left;
}
.provider-specialty {
  display: inline-block; color: var(--coral-dark); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}
.provider-names { list-style: none; margin: 0; padding: 0; }
.provider-names li {
  font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 24px; line-height: 1.25;
  color: var(--navy); padding: 8px 0; border-top: 1px solid var(--border);
}
.provider-names li:first-child { border-top: none; padding-top: 0; }
.np-card { margin-top: 20px; }
.np-card:hover, .provider-card:hover { transform: none; box-shadow: none; }

/* Round icon badge used in feature cards and category headers */
.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.icon-badge svg { width: 24px; height: 24px; stroke: #fff; fill: none; }

/* ---------- Service list category headers ---------- */
.svc-category {
  color: var(--coral-dark);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 28px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc-category:first-child { margin-top: 0; }
.svc-category svg { width: 18px; height: 18px; stroke: var(--coral-dark); fill: none; flex-shrink: 0; }

/* ---------- Star rating ---------- */
.star-rating {
  color: #f5a623;
  font-size: 22px;
  letter-spacing: 2px;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.testimonial .stars { color: #f5a623; font-size: 18px; margin-bottom: 10px; }
.testimonial strong { display: block; margin-top: 12px; color: var(--navy); }

/* ---------- Tables ---------- */
table.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
}
table.price-table th, table.price-table td {
  text-align: left;
  padding: 16px 20px;
  font-size: 18px;
  border-bottom: 1px solid var(--border);
}
table.price-table th {
  background: var(--navy);
  color: #fff;
}
table.price-table tr:last-child td { border-bottom: none; }
table.price-table tbody tr {
  transition: background 0.12s ease;
}
table.price-table tbody tr:hover td {
  background: var(--light);
}

/* Price tables nested inside an accordion body need to look like a
   distinct sub-section, not blend into the surrounding text. */
details.svc .svc-body table.price-table {
  border: 2px solid var(--blue);
  box-shadow: 0 4px 14px rgba(30,111,217,0.18);
  margin: 10px 0 16px;
}
details.svc .svc-body table.price-table th {
  font-size: 15px;
}

/* ---------- Insurance logo grid ---------- */
.insurer-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 8px;
}
.insurer-logo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.insurer-logo-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,59,130,0.08); }
.insurer-logo-card img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 700px) {
  .insurer-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .insurer-logo-card--wide { grid-column: 1 / -1; }
  .insurer-logo-card--wide img { max-height: 30px; }
}

/* ---------- Eyebrow label (small caps tag above a heading) ---------- */
.eyebrow {
  display: inline-block;
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

/* ---------- Coverage-type quick badges ---------- */
.coverage-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 8px;
}
.coverage-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.coverage-badge svg { width: 20px; height: 20px; stroke: var(--coral-dark); fill: none; flex-shrink: 0; }

/* ---------- Highlighted plan callout (e.g. Humana spotlight) ---------- */
.plan-callout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 20px 0;
  box-shadow: 0 6px 18px rgba(0,59,130,0.05);
}
.plan-callout .icon-badge { margin-bottom: 0; }
.plan-callout h3 { color: var(--navy); margin: 0 0 6px; font-size: 19px; }
.plan-callout p { margin: 0; color: var(--gray); }

/* ---------- Insurer marquee (homepage, below hero) ---------- */
.insurer-marquee {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
}
.insurer-marquee__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.insurer-marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: insurer-marquee-scroll 32s linear infinite;
}
.insurer-marquee__track:hover { animation-play-state: paused; }
.insurer-marquee__track img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(60%);
  opacity: 0.9;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.insurer-marquee__track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}
@media (max-width: 700px) {
  .insurer-marquee { padding: 10px 0; }
  .insurer-marquee__track { gap: 36px; }
  .insurer-marquee__track img { height: 22px; }
}
@keyframes insurer-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

/* ---------- Insurance chips ---------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Locations ---------- */
.location-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.location-card h3 { color: var(--navy); margin: 0 0 8px; }
.location-card a.directions { font-weight: 700; }

/* ---------- Form ---------- */
form.lead-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
form.lead-form label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 13px 0 5px;
  color: var(--navy);
}
form.lead-form label:first-of-type { margin-top: 0; }
form.lead-form input,
form.lead-form select,
form.lead-form textarea {
  width: 100%;
  padding: 11px 12px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
}
form.lead-form button {
  margin-top: 18px;
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}
form.lead-form button:hover { background: var(--blue-dark); }
form.lead-form button:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin-top: 14px; font-weight: 700; }
.form-status.ok { color: #0a7d32; }
.form-status.err { color: #b42318; }

/* ---------- Accordion (service details) ---------- */
details.svc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
details.svc summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
}
details.svc summary { transition: background 0.15s ease; }
details.svc summary:hover { background: var(--light); }
details.svc[open] .svc-body {
  animation: svcFadeIn 0.25s ease;
}
@keyframes svcFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
details.svc summary .svc-title {
  flex: 1 1 auto;
  min-width: 0;
}
details.svc summary::-webkit-details-marker { display: none; }
details.svc summary::after {
  content: "+";
  font-size: 26px;
  font-weight: 400;
  color: var(--blue);
  margin-left: 12px;
  flex-shrink: 0;
}
details.svc[open] summary::after { content: "\2212"; }
details.svc summary .svc-sub {
  font-weight: 500;
  font-size: 15px;
  color: var(--gray);
  flex: 0 0 240px;
  text-align: right;
  white-space: normal;
  line-height: 1.3;
}
@media (max-width: 600px) {
  details.svc summary .svc-sub { flex-basis: 120px; font-size: 13px; }
}
details.svc .svc-body {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
details.svc .svc-body img.svc-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
details.svc .svc-body h4 {
  color: var(--navy);
  margin: 16px 0 6px;
  font-size: 17px;
}
details.svc .svc-body h4:first-child { margin-top: 0; }
details.svc .svc-body ul { margin: 6px 0; padding-left: 22px; }
details.svc .svc-body li { margin-bottom: 6px; }
details.svc .svc-price {
  display: inline-block;
  background: var(--light);
  color: var(--navy);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 4px 6px 4px 0;
  font-size: 15px;
}

/* ---------- Call/Text choice popover ---------- */
.calltext-menu {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  min-width: 250px;
}
.calltext-menu a {
  display: block;
  padding: 18px 24px;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.calltext-menu a:hover { background: var(--light); }
.calltext-menu a + a { border-top: 1px solid var(--border); }
/* The full-screen mobile menu's "#mobile-menu.open a" rule (font-size 24px,
   padding 16px 0, width 100%) is more specific than ".calltext-menu a" and
   was stomping this popover's own sizing when it opens from inside that
   menu, squashing the padding to zero and blowing up the font. Win back
   control with a selector that includes #mobile-menu too. */
#mobile-menu .calltext-menu a {
  font-size: 16px;
  padding: 18px 24px;
  width: auto;
  max-width: none;
}

/* Anchored jumps (old-URL redirects land on #ids) must clear the fixed header */
details.svc, section[id], .insurer-logo-grid { scroll-margin-top: 96px; }

/* ---------- Location card actions ---------- */
.location-actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px 18px;
}
.copy-block { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.copy-address-text { font-size: 14px; color: var(--gray); line-height: 1.4; }
/* Once a location is expanded, its address moves down next to Copy Address, so hide it in the header */
details[name="locations"][open] > summary .svc-sub { display: none; }
.btn-copy-address {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-copy-address:hover { background: var(--light); transform: translateY(-1px); }
.btn-copy-address.copied {
  background: #0a7d32;
  border-color: #0a7d32;
  color: #fff;
}

/* ---------- Map embeds ---------- */
.map-frame {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: var(--radius);
  margin-top: 14px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  position: relative;
  color: #dbe6f6;
  padding: 56px 0 22px;
  margin-top: 40px;
  background:
    linear-gradient(135deg, rgba(0, 38, 90, 0.95) 0%, rgba(0, 59, 130, 0.90) 55%, rgba(0, 38, 90, 0.96) 100%),
    url('/physician-holding-stethoscope-clinic-hallway-houston.webp') center 40% / cover no-repeat;
}
footer.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
footer.site-footer a { color: #dbe6f6; text-decoration: none; }
footer.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid .footer-col:last-child li a { white-space: nowrap; }
.footer-brand p { margin: 0 0 16px; max-width: 360px; line-height: 1.55; }
.footer-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.footer-logo img { display: block; height: 32px; width: auto; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.footer-actions .btn-call { color: #fff; }
.footer-link-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.45); border-radius: 8px; font-weight: 600; color: #fff;
}
.footer-link-btn:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.footer-fax, .footer-note { font-size: 14px; color: #9fb3d6; margin: 0; }
.footer-note { margin-top: 14px; line-height: 1.5; }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255,255,255,0.15); padding-bottom: 8px; }
.footer-hours li span:last-child { color: #fff; font-weight: 600; white-space: nowrap; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  padding-top: 20px;
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  color: #9fb3d6;
}
.footer-top { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  nav.main-nav { display: none; }
  .nav-wrap .btn-call { display: none; }
  .hamburger { display: block; }
  .nav-wrap { flex-wrap: nowrap; }
  .logo { font-size: 16px; }
  .logo svg { width: 26px; height: 26px; }
  .logo small { font-size: 10px; }
  #mobile-menu a.btn-call-mobile {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    font-weight: 700;
    text-align: center;
    border-radius: 10px;
    margin-top: 8px;
    border-bottom: none;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(30,111,217,0.25);
  }
  #mobile-menu a.btn-call-mobile:hover,
  #mobile-menu a.btn-call-mobile:active,
  #mobile-menu a.btn-call-mobile:focus {
    text-decoration: none;
    color: #fff;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero-grid > div:first-child { text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-form-hint::after { content: "below \2193"; }
  .hero-quickfacts { justify-content: center; gap: 14px 22px; margin-top: 26px; padding-top: 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand, .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  .footer-grid li { margin-bottom: 0; }
  .footer-grid li a { display: inline-block; padding: 9px 0; }
  .footer-grid .footer-col:last-child ul { columns: 2; column-gap: 20px; }
  .footer-grid .footer-col:last-child li { break-inside: avoid; }
  footer.site-footer { padding-top: 40px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .topbar .container { flex-direction: column; gap: 0; align-items: flex-start; font-size: 14px; }
  .topbar a { display: inline-block; line-height: 24px; padding: 10px 0; }
  .hamburger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .location-actions a, .location-actions button { min-height: 44px; display: inline-flex; align-items: center; }
  /* Enlarge the hit area of inline phone/text links without changing line layout */
  p a[href^="tel:"], p a[href^="sms:"], li a[href^="tel:"], li a[href^="sms:"], .location-actions a[href^="tel:"], .location-actions a[href^="sms:"] { display: inline-block; padding: 12px 0; margin: -12px 0; }

  /* Trust-bar rating stats: keep these 3 as one compact row instead of
     stacking them full-width (which ate most of the first screen on
     mobile before any real content showed). */
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .trust-grid .card { padding: 10px 4px; }
  .trust-grid .star-rating { font-size: 10px; letter-spacing: 0; }
  .trust-grid h3 { font-size: 18px; margin-bottom: 2px; }
  .trust-grid h3 span { font-size: 12px; }
  .trust-grid p { font-size: 12px; line-height: 1.3; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid .footer-col:nth-child(2) ul { columns: 2; column-gap: 16px; }
  .footer-grid .footer-col:nth-child(2) li { break-inside: avoid; }
  .footer-grid .footer-col:last-child ul { columns: 1; }
}
