/* ===== Elon Health Urgent Care — rebuild
   Palette pulled from the live site + logo:
   red cross #CE2029 · blues #2E69AD/#1863DC/#0056A7 · navy #10172A · ink #212121 · white
   Typeface: Outfit (current site font)                                        ===== */

:root {
  --red: #CE2029;
  --red-dark: #A81620;
  --green: #7DC63B;
  --green-dark: #5FA327;
  --blue: #2E69AD;
  --blue-bright: #1863DC;
  --blue-dark: #0056A7;
  --navy: #10172A;
  --ink: #212121;
  --muted: #5b6270;
  --line: #e6e8ee;
  --bg-soft: #f5f7fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(16, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(16, 23, 42, 0.12);
  --wrap: 1300px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Note: do NOT set overflow-x:hidden on html/body — it breaks position:sticky on the header. */
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
a { color: var(--blue-dark); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--red); margin-bottom: .6rem; }
.center { text-align: center; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(206,32,41,.28); }
.btn-blue { background: var(--blue-dark); color: #fff; }
.btn-blue:hover { background: var(--blue); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-white { background: #fff; color: var(--navy); border-color: transparent; box-shadow: var(--shadow); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-white i { color: var(--red); }
.btn-ghost-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: #fff; color: var(--blue-dark); }

/* ===== Top bar ===== */
.topbar { background: var(--navy); color: #cdd6e6; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #eaf0fb; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar i { color: var(--blue-bright); }
.lang-toggle { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #eaf0fb; font-family: var(--font); font-size: .82rem; font-weight: 600; padding: .22rem .7rem; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.lang-toggle:hover { background: rgba(255,255,255,.22); }
.lang-toggle i { color: var(--blue-bright); }
/* suppress Google Translate's injected top banner (which otherwise pushes/covers our header), keep translation working */
.goog-te-banner-frame, iframe.goog-te-banner-frame, iframe.skiptranslate, .goog-te-gadget-icon { display: none !important; height: 0 !important; visibility: hidden !important; }
body { top: 0 !important; position: static !important; }
html { margin-top: 0 !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ===== Header / nav ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; max-width: var(--wrap); margin: 0 auto; }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--navy); font-weight: 500; font-size: 1rem; }
.nav-links a:hover { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--navy); cursor: pointer; }
.nav-call { display: none; }

/* ===== Hero ===== */
.hero { background: linear-gradient(120deg, #f3f7fd 0%, #eaf1fb 55%, #fdeef0 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-copy, .hero-media { min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); }
.hero h1 span { color: var(--blue-dark); }
.hero p { font-size: 1.18rem; color: var(--muted); margin: 1.1rem 0 1.6rem; max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.8rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--navy); box-shadow: var(--shadow); }
.hero-badge i { color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-lg); }
.hero-inline-wrap { display: none; }
.hero-card { position: absolute; bottom: -22px; left: -22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.hero-card .dot { width: 12px; height: 12px; border-radius: 50%; background: #17b26a; box-shadow: 0 0 0 4px rgba(23,178,106,.18); flex: 0 0 auto; }
.hero-card .dot.closed { background: #d13438; box-shadow: 0 0 0 4px rgba(209,52,56,.18); }
.hero-card strong { color: var(--navy); display: block; font-size: .98rem; }
.hero-card span { color: var(--muted); font-size: .85rem; }

/* ===== Trust strip ===== */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; justify-content: space-around; gap: 20px; flex-wrap: wrap; padding: 26px 24px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); }
.trust-item i { font-size: 1.5rem; color: var(--blue); }

/* ===== Mission / two-col ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.stat-row { display: flex; gap: 34px; margin-top: 24px; flex-wrap: wrap; }
.stat b { display: block; font-size: 2rem; color: var(--red); font-weight: 700; line-height: 1; }
.stat span { color: var(--muted); font-size: .95rem; }
.vision-card { background: linear-gradient(135deg, var(--blue-dark), var(--navy)); color: #eaf1fb; border-radius: 20px; padding: 40px; box-shadow: var(--shadow-lg); }
.vision-card h3 { color: #fff; }
.vision-card p { color: #cdd9ef; margin-bottom: 0; }

/* ===== Services grid ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 40px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; display: flex; align-items: center; gap: 14px; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.service-ic { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef4fc; color: var(--blue-dark); font-size: 1.15rem; }
.service-card:hover .service-ic { background: var(--red); color: #fff; }
.service-card span { font-weight: 600; color: var(--navy); font-size: 1rem; }

/* ===== Insurances ===== */
.ins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 36px; }
.ins-pill { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px; text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; display: flex; align-items: center; justify-content: center; min-height: 96px; }
.ins-pill:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.ins-pill img { height: 48px; max-width: 90%; object-fit: contain; }
.ins-pill span { display: none; }

/* ===== FAQ ===== */
.faq-list { max-width: none; margin: 40px 0 0; }
.faq { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\002B"; color: var(--red); font-size: 1.4rem; font-weight: 700; }
.faq[open] summary::after { content: "\2212"; }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--navy)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 780px; margin: 0 auto .8rem; }
.cta-band p { color: #d3def2; max-width: 620px; margin: 0 auto 1.8rem; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Google rating badge ===== */
.google-rating { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px; margin-top: 20px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; flex-wrap: wrap; justify-content: center; }
.google-rating:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.google-logo { height: 20px; width: auto; }
.gr-score { font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.gr-stars { color: #fbbc04; font-size: 1.15rem; letter-spacing: 1px; }
.gr-star-half { background: linear-gradient(90deg, #fbbc04 50%, #dcdfe6 50%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gr-count { color: var(--muted); font-size: .95rem; }
.gr-count strong { color: var(--navy); }

/* ===== Reviews ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 40px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rv-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.rv-avatar.initial { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.15rem; }
.rv-meta { flex: 1; min-width: 0; }
.rv-meta strong { color: var(--navy); font-size: .98rem; display: block; }
.rv-meta span { color: var(--muted); font-size: .82rem; }
.rv-gicon { width: 22px; height: 22px; flex: 0 0 auto; }
.review-stars { color: #fbbc04; margin-bottom: 10px; letter-spacing: 2px; }
.review-card p { color: var(--ink); margin: 0; font-size: .96rem; line-height: 1.6; }

/* ===== Inner page hero ===== */
.page-hero { background: linear-gradient(120deg, #f3f7fd 0%, #eaf1fb 55%, #fdeef0 100%); }
.page-hero .wrap { padding: 44px 24px 48px; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue-dark); }
.breadcrumb span { color: var(--muted); }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); max-width: 900px; }
.page-hero .page-intro { font-size: 1.12rem; color: var(--muted); max-width: 760px; margin: 1rem 0 1.5rem; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Prose / article content ===== */
.prose { max-width: none; }        /* fill the .wrap (same margins as the homepage) */
.prose.narrow { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin: 1.8rem 0 .7rem; }
.prose h3 { font-size: 1.2rem; color: var(--navy); margin: 1.5rem 0 .5rem; }
.prose h4 { font-size: 1.05rem; color: var(--navy); margin: 1.2rem 0 .4rem; }
.prose p { color: var(--ink); margin: 0 0 1.1rem; line-height: 1.7; }
.prose ul, .prose ol { color: var(--ink); line-height: 1.7; margin: 0 0 1.1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--blue-dark); text-decoration: underline; }
.prose img { border-radius: var(--radius); margin: 1.2rem 0; }

/* Benefit cards (why-choose-us blocks) */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 34px; }
.benefit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .15s, box-shadow .15s; }
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.benefit-card .b-ic { width: 46px; height: 46px; border-radius: 12px; background: #eef4fc; color: var(--blue-dark); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 14px; }
.benefit-card h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.benefit-card p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.6; }

/* Insurance page: big logo left of the content */
.ins-content { display: grid; grid-template-columns: 300px 1fr; gap: 46px; align-items: start; }
.ins-logo-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; display: grid; place-items: center; position: sticky; top: 96px; }
.ins-logo-col img { width: 100%; max-width: 220px; object-fit: contain; }

/* Single-image pages: prose + one sticky image on the right */
.content-media { display: grid; grid-template-columns: 1fr 360px; gap: 46px; align-items: start; }
.content-figures { position: sticky; top: 96px; margin: 0; }
.content-figures img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
@media (max-width: 860px) { .content-media { grid-template-columns: 1fr; gap: 22px; } .content-figures { position: static; } }

/* Alternating image/text rows — each image sits beside its own content section */
.media-row { display: flex; gap: 44px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.media-row.img-left { flex-direction: row-reverse; }
.media-row .mr-text { flex: 1 1 340px; min-width: 0; }
.media-row .mr-media { flex: 0 0 360px; margin: 0; }
.media-row .mr-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.media-row .mr-media figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; }
@media (max-width: 860px) {
  /* image ABOVE its section text on mobile (DOM is text→figure, so reverse) */
  .media-row, .media-row.img-left { flex-direction: column-reverse; align-items: stretch; gap: 18px; }
  .media-row .mr-media { flex-basis: auto; }
}

/* homepage vision card — even spacing under the eyebrow */
.vision-card .eyebrow { margin-bottom: 1rem; }

/* ===== Service page content components ===== */
/* checkmark list (conditions/injuries treated) */
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 32px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 1rem; }
.check-list li i { color: var(--red); margin-top: 5px; font-size: .9rem; flex: 0 0 auto; }

/* icon feature list (why-choose-us — clean, no boxes) */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px 44px; margin-top: 30px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .fi-ic { flex: 0 0 48px; height: 48px; border-radius: 12px; background: #eef4fc; color: var(--blue-dark); display: grid; place-items: center; font-size: 1.2rem; }
.feature-item h3 { margin: 0 0 5px; font-size: 1.1rem; }
.feature-item p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.6; }

/* boxed info cards (diagnostics / why-choose) */
.info-grid { display: grid; gap: 20px; margin-top: 30px; }
.info-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.info-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .15s, box-shadow .15s; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.info-card .ic-icon { grid-column: 1; grid-row: 1; width: 48px; height: 48px; border-radius: 12px; background: #eef4fc; color: var(--blue-dark); display: grid; place-items: center; font-size: 1.2rem; }
.info-card h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.08rem; }
.info-card p { grid-column: 1 / -1; grid-row: 2; margin: 14px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
@media (max-width: 1000px) { .info-grid.cols-4, .info-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .info-grid.cols-4, .info-grid.cols-3 { grid-template-columns: 1fr; } }

/* process flow — cards connected by down-arrows (VPMG-style) */
.flow { margin-top: 30px; }
.flow-step { display: flex; flex-direction: column-reverse; }
.flow-step:last-child .flow-aside { display: none; }
.flow-aside { display: flex; align-items: center; justify-content: center; padding: 8px 0; color: #9aa4b6; }
.flow-card { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 26px; transition: box-shadow .15s, border-color .15s; }
.flow-card:hover { box-shadow: var(--shadow); border-color: #cfe2f7; }
.flow-icon { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; background: #eef4fc; color: var(--blue-dark); display: grid; place-items: center; font-size: 1.15rem; }
.flow-body { display: flex; align-items: center; gap: 22px; flex: 1; min-width: 0; }
.flow-body h3 { margin: 0; font-size: 1.05rem; flex: 0 0 220px; }
.flow-body p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; flex: 1; }
@media (max-width: 720px) { .flow-body { flex-direction: column; align-items: flex-start; gap: 4px; } .flow-body h3 { flex-basis: auto; } }

/* urgent-care vs ER compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.compare-card { border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.compare-card.us { background: #f0f7ff; border-color: #cfe2f7; }
.compare-card.er { background: #fff5f4; border-color: #f3d3d0; }
.compare-card h3 { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.compare-card ul { margin: 0; padding: 0; list-style: none; }
.compare-card li { display: flex; gap: 10px; margin-bottom: 9px; color: var(--ink); align-items: flex-start; }
.compare-card li i { margin-top: 5px; font-size: .85rem; flex: 0 0 auto; }
.compare-card.us li i { color: var(--blue-dark); }
.compare-card.er li i { color: var(--red); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ===== Blog index cards ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; margin-top: 8px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; text-decoration: none; color: inherit; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { aspect-ratio: 16 / 10; background: #eef2f8; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card h3 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.32; color: var(--navy); }
.blog-card p { margin: 0 0 16px; color: var(--muted); font-size: .94rem; line-height: 1.6; flex: 1; }
.blog-card .blog-more { color: var(--blue-dark); font-weight: 600; font-size: .92rem; }

/* ===== Blog article (3-column: TOC | article | sidebar) ===== */
.blog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 40px; align-items: start; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.blog-toc { position: sticky; top: 96px; }
.blog-meta { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: .84rem; margin-bottom: 22px; color: var(--muted); }
.blog-meta .rt { color: var(--blue-dark); font-weight: 700; font-style: italic; margin-bottom: 8px; }
.blog-meta div { margin-bottom: 3px; }
.blog-meta strong { color: var(--navy); }
.toc h4 { font-size: 1.05rem; margin: 0 0 14px; color: var(--navy); }
.toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.toc li { counter-increment: toc; margin-bottom: 11px; font-size: .87rem; line-height: 1.4; display: flex; gap: 6px; }
.toc li::before { content: counter(toc) "."; color: var(--muted); flex: 0 0 auto; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--blue-dark); }
.blog-main { max-width: none; }
.blog-main > .blog-featured { margin: 0 0 26px; }
.blog-main .blog-featured img { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.blog-main img { width: 100%; border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow); }
.blog-main h2 { scroll-margin-top: 90px; }
.blog-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-card.cta-card { background: linear-gradient(135deg, var(--blue-dark), var(--navy)); color: #eaf1fb; border-color: transparent; }
.side-card.cta-card h4 { color: #fff; font-size: 1.15rem; margin: 0 0 10px; }
.side-card.cta-card p { color: #cdd9ef; font-size: .9rem; margin: 0 0 16px; line-height: 1.6; }
.reviewer-card { background: #f0f7ff; border-color: #cfe2f7; text-align: center; }
.reviewer-card img { width: 128px; height: 128px; border-radius: 14px; object-fit: cover; margin: 0 auto 14px; display: block; }
.reviewer-card h4 { color: var(--blue-dark); font-size: .95rem; line-height: 1.4; margin: 0 0 10px; }
.reviewer-card p { font-size: .81rem; color: var(--muted); line-height: 1.55; margin: 0; }
.related-card h4 { color: var(--navy); font-size: 1.1rem; margin: 0 0 6px; }
.related-card a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--navy); font-size: .9rem; line-height: 1.4; text-decoration: none; }
.related-card a:last-child { border-bottom: none; }
.related-card a:hover { color: var(--blue-dark); }
@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .blog-toc { display: none; }
}
@media (max-width: 820px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-side { position: static; flex-direction: column; }
}

/* ===== Areas served strip ===== */
.areas-strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.areas-strip .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 20px 24px; text-align: center; }
.areas-strip i { color: var(--red); }
.areas-strip strong { color: var(--navy); }
.areas-strip span { color: var(--muted); }
.areas-strip a { color: var(--blue-dark); font-weight: 600; }
.areas-strip.areas-grey { background: var(--bg-soft); }

/* ===== Contact + map ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 40px; align-items: stretch; }
.contact-map { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.contact-map iframe { width: 100%; flex: 1; min-height: 320px; border: 0; display: block; }
.contact-infobar { background: var(--navy); color: #cdd9ef; padding: 20px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.contact-infobar .ci { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.contact-infobar i { color: var(--blue-bright); margin-top: 3px; }
.contact-infobar a { color: #eaf1fb; }
.contact-infobar strong { color: #fff; display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.contact-form-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 32px; overflow: hidden; }
.contact-form-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--red), var(--blue-bright) 55%, var(--green)); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { font-size: .74rem; font-weight: 700; color: var(--navy); letter-spacing: .045em; text-transform: uppercase; display: block; margin-bottom: 7px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--font); font-size: .98rem; color: var(--ink); background: var(--bg-soft); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9aa1b0; }
.contact-form input:hover, .contact-form textarea:hover { border-color: #c6cede; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(24,99,220,.14); background: #fff; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-agree { display: flex; align-items: flex-start; gap: 11px; font-size: .85rem; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.contact-agree input { width: 17px; height: 17px; padding: 0; margin-top: 2px; flex: none; accent-color: var(--blue-bright); cursor: pointer; }
.contact-agree label a { color: var(--blue-dark); font-weight: 600; }
.contact-form button { width: 100%; justify-content: center; padding: .95rem 1.1rem; font-size: .98rem; margin-top: 2px; box-shadow: 0 10px 24px rgba(206,32,41,.20); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #b9c4da; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2.4fr 1.3fr; gap: 44px; }
.services-cols { column-count: 2; column-gap: 28px; }
.services-cols li { break-inside: avoid; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer a { color: #b9c4da; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-brand img { height: 74px; margin-bottom: 18px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--blue-bright); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; font-size: .84rem; color: #8f9bb3; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 4px; }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-banner[hidden] { display: none; }   /* class selector would otherwise beat the [hidden] UA rule */
.cookie-text { margin: 0; font-size: .9rem; color: var(--ink); flex: 1 1 320px; }
.cookie-actions { display: flex; align-items: center; gap: 12px; }
.cookie-decline { background: none; border: none; color: var(--muted); font-family: var(--font); font-weight: 600; font-size: .88rem; cursor: pointer; padding: .5rem .6rem; }
.cookie-decline:hover { color: var(--navy); }
.cookie-accept { font-size: .9rem; }
@media (max-width: 520px) { .cookie-actions { width: 100%; justify-content: flex-end; } }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; }        /* image falls BELOW copy (natural DOM order) */
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .services-cols { column-count: 3; }
  .nav-links, .topbar { display: none; }
  .nav-toggle { display: block; order: 3; }
  .nav-book { display: none; }                        /* header CTA hidden on mobile — logo + menu only */
  .nav-call { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  .section { padding: 56px 0; }
  .hero-media { display: none; }   /* desktop image+card hidden on mobile; inline wrap used instead */
  /* Contact: never side-by-side on mobile — form ABOVE map */
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-form-card { order: -1; }
  /* Inner-page two-column layouts stack */
  .ins-content, .content-media { grid-template-columns: 1fr; gap: 26px; }
  .ins-logo-col, .content-figures { position: static; }
  .ins-logo-col { max-width: 340px; }
  .content-figures { flex-direction: row; flex-wrap: wrap; }
  .content-figures figure { flex: 1 1 240px; }
}

/* Tablet / phone — tighten type + layouts so things wrap less */
@media (max-width: 720px) {
  .nav { padding: 12px 18px; }
  .brand img { height: 44px; }
  .wrap { padding: 0 18px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; gap: 26px; }
  .hero h1 { font-size: 1.95rem; line-height: 1.15; }
  .hero p { font-size: 1rem; margin: .9rem 0 1.3rem; }
  .lead { font-size: 1rem; }
  h2 { font-size: 1.55rem; }
  .section { padding: 48px 0; }
  .eyebrow { font-size: .72rem; }
  /* keep hero buttons compact and wrapping (2+ per row) on tablet & mobile — never full-width */
  .hero-actions, .cta-actions { flex-wrap: wrap; gap: 10px; }
  .hero-actions .btn, .cta-actions .btn { width: auto; font-size: .8rem; padding: .5rem .8rem; }

  /* Hero image between h1 and paragraph; status box straddles the bottom-left corner (like desktop) */
  .hero-inline-wrap { display: block; position: relative; margin: 8px 0 34px; }
  .hero-inline { display: block; width: 100%; border-radius: 16px; box-shadow: var(--shadow-lg); }
  .hero-card-mobile { position: absolute; left: -6px; bottom: -18px; max-width: 62%; margin: 0; padding: 10px 12px; gap: 10px; }
  .hero-card-mobile .js-status-text { font-size: .86rem; }
  .hero-card-mobile .js-status-sub { font-size: .76rem; }

  /* Trust strip → neat 2×2 grid; group the two 2-line items on top, two 1-line items below */
  .trust .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding: 24px 18px; align-items: start; }
  .trust-item { justify-content: center; text-align: center; font-size: .82rem; gap: 8px; align-items: center; }
  .trust-item i { font-size: 1.15rem; }
  .trust-item:nth-child(1) { order: 1; }   /* Board-Certified Physicians (2 lines) */
  .trust-item:nth-child(4) { order: 2; }   /* 4.3★ on Google · 97 Reviews (2 lines) */
  .trust-item:nth-child(2) { order: 3; }   /* On-Site X-Rays & Labs (1 line) */
  .trust-item:nth-child(3) { order: 4; }   /* Open 7 Days a Week (1 line) */

  /* Services → compact 2-up, icon on top */
  .services-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .service-card { flex-direction: column; text-align: center; gap: 8px; padding: 16px 10px; }
  .service-ic { width: 40px; height: 40px; font-size: 1.05rem; }
  .service-card span { font-size: .84rem; line-height: 1.25; }

  /* Insurances → 3-up, smaller */
  .ins-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
  .ins-pill { min-height: 70px; padding: 12px 8px; }
  .ins-pill img { height: 30px; max-width: 92%; }

  /* Contact info bar → single column stack */
  .contact-infobar { grid-template-columns: 1fr; gap: 14px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form-card { padding: 22px; }

  .services-cols { column-count: 2; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  /* Keep 20+ / 7 Days / 18+ on one line */
  .stat-row { flex-wrap: nowrap; gap: 14px; justify-content: space-between; }
  .stat b { font-size: 1.5rem; }
  .stat span { font-size: .78rem; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.75rem; }
  .ins-grid { gap: 8px; }
  .ins-pill { min-height: 62px; padding: 10px 6px; }
  .ins-pill img { height: 26px; }
  .service-card span { font-size: .8rem; }
}

/* ============================================================
   PRIMARY CARE sibling accents — green touches from the logo.
   Base palette stays identical to the Elon Health system;
   green appears where it reads as "care / included / go".
   ============================================================ */
.hero-badge i { color: var(--green-dark); }
.check-list li i { color: var(--green-dark); }
.service-card:hover .service-ic { background: var(--green-dark); color: #fff; }
.hero-card .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(125,198,59,.20); }

/* Insurance grid with few carriers: center instead of full-width stretch */
.ins-grid--few { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.ins-grid--few .ins-pill { flex: 0 1 200px; }

/* ===== Appointment request modal ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(16,23,42,.55); display: flex; align-items: flex-start; justify-content: center; padding: 40px 18px; overflow-y: auto; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.modal-overlay[hidden] { display: none; }
.modal-card { position: relative; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; padding: 38px 34px 30px; margin: auto; overflow: hidden; }
.modal-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--green), var(--green-dark) 55%, var(--blue-bright)); }
.modal-card .eyebrow { color: var(--green-dark); margin-bottom: .4rem; }
.modal-card h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.modal-sub { color: var(--muted); margin: 0 0 22px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); border: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0; border-radius: 50%; transition: color .15s, background .15s, transform .15s; }
.modal-close:hover { color: var(--navy); background: #e9edf4; transform: rotate(90deg); }
.appt-form { margin-top: 6px; }
@media (max-width: 620px) {
  .modal-overlay { padding: 20px 12px; }
  .modal-card { padding: 26px 20px 22px; border-radius: 16px; }
  .modal-card h2 { font-size: 1.35rem; }
}
