/* =====================================================================
   Template components: mega-menu, symptom grid, service/condition cards,
   doctor card, stat band, timeline, blog cards, fees tables, sidebar.
   ===================================================================== */

/* ---------- Mega-menu columns (desktop) ---------- */
@media (min-width: 1041px) {
  .primary-nav .mega > .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); min-width: 520px; gap: .2rem 1rem; }
}

/* ---------- Rotating hero slides ---------- */
.hero__slides { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 9/8; background: var(--blue-100); }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.hero__slides img.is-active { opacity: 1; }

/* ---------- Condition carousel (navy cards + line icons, their style) ---------- */
.cond-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .2rem 1.2rem; scrollbar-width: thin; }
.cond-carousel::-webkit-scrollbar { height: 8px; }
.cond-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.cond-card { scroll-snap-align: start; background: var(--navy); border-radius: var(--radius-lg); padding: 2rem 1.5rem; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .2s ease, box-shadow .2s ease; }
.cond-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cond-card__icon { height: 96px; display: flex; align-items: center; }
.cond-card__icon img { height: 84px; width: auto; }
.cond-card__title { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); margin-top: 1.4rem; }
.cond-card__more { color: var(--cyan); font-size: var(--fs-sm); font-weight: 600; font-family: var(--font-head); margin-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Insurance: two labelled groups ---------- */
.ins-groups { display: grid; grid-template-columns: 1fr; gap: 1.6rem; max-width: 1040px; margin-inline: auto; }
.ins-group h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin-bottom: .4rem; text-align: center; }
.ins-row { display: flex; flex-wrap: wrap; gap: .2rem .6rem; justify-content: center; align-items: center; }

/* ---------- Symptom / triage grid ---------- */
.symptom-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 900px) { .symptom-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .symptom-grid { grid-template-columns: repeat(2, 1fr); } }
.symptom {
  display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center;
  padding: 1.3rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--navy);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.symptom:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--blue); }
.symptom__ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan-100); color: var(--blue); }
.symptom__ico svg { width: 24px; height: 24px; }

/* ---------- Service / condition card grid ---------- */
.care-card { display: flex; flex-direction: column; height: 100%; }
.care-card .card__more { margin-top: auto; color: var(--blue); }

/* Feature card with big art top (used for featured treatments) */
.feature-card { padding: 0; overflow: hidden; }
.feature-card__media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--blue-100), var(--cyan-100)); display: grid; place-items: center; overflow: hidden; }
.feature-card__media svg { width: 64px; height: 64px; color: var(--blue); }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card--link:hover .feature-card__media img { transform: scale(1.05); }
.feature-card__body { padding: var(--sp-3); }

/* ---------- Doctor card (lives in the narrow sidebar → stacked & centred) ---------- */
.doctor-card { display: block; text-align: center; }
.doctor-card__photo { max-width: 150px; margin: 0 auto 1rem; }
.doctor-card__photo img, .doctor-card__placeholder { border-radius: var(--radius); width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.doctor-card__placeholder { background: linear-gradient(160deg, var(--blue-100), var(--cyan-100)); display: grid; place-items: center; color: var(--blue); }
.doctor-card__placeholder svg { width: 48px; height: 48px; }
.doctor-card .pill { margin-bottom: .5rem; }
.doctor-card h3 { font-size: var(--fs-xl); }
.doctor-card__role { color: var(--blue); font-weight: 600; font-family: var(--font-head); margin-top: .2rem; }
.doctor-card__creds { font-size: var(--fs-sm); color: var(--slate); margin-top: .3rem; }
.doctor-card .card__more { justify-content: center; margin-top: .8rem; }

/* Doctor feature (homepage) */
.doctor-feature { display: grid; grid-template-columns: 380px 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .doctor-feature { grid-template-columns: 1fr; } }
.doctor-feature__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: linear-gradient(160deg, var(--blue-100), var(--cyan-100)); display: grid; place-items: center; }
.doctor-feature__media svg { width: 90px; height: 90px; color: var(--blue); }
.creds-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.creds-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink); }
.creds-list svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 620px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat-band .stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; line-height: 1; }
.stat-band .stat span { color: #bcd0ec; font-size: var(--fs-sm); margin-top: .4rem; display: block; }

/* ---------- Process timeline ---------- */
.timeline { display: grid; gap: 1.2rem; counter-reset: step; }
.timeline__step { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; align-items: start; }
.timeline__num { counter-increment: step; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.timeline__num::before { content: counter(step); }
.timeline__step h4 { margin-bottom: .3rem; }
.timeline__step p { font-size: var(--fs-sm); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ---------- Blog cards ---------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; height: 100%; }
.post-card__media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--blue-100), var(--cyan-100)); display: grid; place-items: center; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__media .ph { color: var(--blue); }
.post-card__media .ph svg { width: 44px; height: 44px; }
.post-card__body { padding: var(--sp-3); display: flex; flex-direction: column; flex: 1; }
.post-card__date { font-size: var(--fs-xs); color: var(--slate-300); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.post-card h3 { font-size: var(--fs-lg); margin: .5rem 0; }
.post-card__excerpt { font-size: var(--fs-sm); }
.post-card .card__more { margin-top: auto; }

/* ---------- Fees tables ---------- */
.fees-block { margin-bottom: 2.5rem; }
.fees-block h2 { font-size: var(--fs-xl); margin-bottom: .4rem; }
.fees-note { font-size: var(--fs-sm); color: var(--slate); margin-bottom: 1rem; }
.fees-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.fees-table { width: 100%; border-collapse: collapse; min-width: 480px; background: #fff; }
.fees-table th, .fees-table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.fees-table th { background: var(--cloud); color: var(--navy); font-family: var(--font-head); font-weight: 600; }
.fees-table td:last-child, .fees-table th:last-child { text-align: right; white-space: nowrap; font-weight: 600; color: var(--navy); }
.fees-table tr:last-child td { border-bottom: 0; }
.price { font-family: var(--font-head); }

/* ---------- Sidebar (treatment/condition/blog) ---------- */
.with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
@media (max-width: 980px) { .with-sidebar { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.5rem; }
.sidebar__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3); box-shadow: var(--shadow-sm); }
.sidebar__box h4 { font-size: var(--fs-base); margin-bottom: .9rem; }
.sidebar__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.sidebar__list a { display: block; padding: .55rem .7rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--slate); }
.sidebar__list a:hover, .sidebar__list a[aria-current="page"] { background: var(--cloud); color: var(--blue); }
.sidebar__list a[aria-current="page"] { font-weight: 600; }

/* ---------- Insurance / trust logos ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.logo-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.2rem; font-size: var(--fs-sm); font-weight: 600; color: var(--slate); font-family: var(--font-head); }
/* Boxless logos on white — no card, full colour */
.logo-chip--img { display: grid; place-items: center; height: 84px; min-width: 0; padding: 0 .4rem; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.logo-chip--img img { max-height: 84px; max-width: 170px; width: auto; object-fit: contain; filter: none; opacity: 1; transition: transform .2s ease; }
.logo-chip--img:hover img { transform: scale(1.05); }

/* ---------- Testimonials ---------- */
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3); }
.testi__stars { color: #f5a623; display: flex; gap: 2px; margin-bottom: .6rem; }
.testi__stars svg { width: 18px; height: 18px; fill: currentColor; }
.testi p { color: var(--ink); }
.testi__who { margin-top: 1rem; font-weight: 600; font-family: var(--font-head); color: var(--navy); font-size: var(--fs-sm); }

/* ---------- When-to-see-a-doctor callout (Mayo-style) ---------- */
.callout { border-left: 4px solid var(--red); background: #fdf1f0; border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; margin: 1.8rem 0; }
.callout h3 { color: var(--red-600); font-size: var(--fs-lg); display: flex; align-items: center; gap: .5rem; }
.callout h3 svg { width: 22px; height: 22px; }
.callout p, .callout li { color: #7a2b26; font-size: var(--fs-sm); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info li { display: flex; gap: .8rem; margin-bottom: 1.2rem; align-items: flex-start; }
.contact-info svg { width: 24px; height: 24px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.contact-info strong { display: block; color: var(--navy); font-family: var(--font-head); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Form */
.ler-form { display: grid; gap: 1rem; }
.ler-form label { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--navy); display: block; margin-bottom: .3rem; }
.ler-form input, .ler-form textarea, .ler-form select {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: var(--fs-sm); background: #fff; color: var(--ink);
}
.ler-form input:focus, .ler-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.ler-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .ler-form .form-row-2 { grid-template-columns: 1fr; } }

/* Fees accordion — compact collapsible packages */
.fees-featured { margin: 1.5rem 0 2rem; }
.fee-acc { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .55rem; background: #fff; overflow: hidden; }
.fee-acc + .fee-acc { margin-top: 0; }
.fee-acc summary { cursor: pointer; padding: .95rem 1.15rem; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-base); color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.fee-acc summary::-webkit-details-marker { display: none; }
.fee-acc summary::after { content: "+"; font-size: 1.35rem; line-height: 1; color: var(--blue); font-weight: 400; flex-shrink: 0; }
.fee-acc[open] summary::after { content: "\2013"; }
.fee-acc[open] summary { border-bottom: 1px solid var(--line); }
.fee-acc summary:hover { color: var(--blue); }
.fee-acc__body { padding: 1rem 1.15rem 1.15rem; color: var(--slate); }
.fee-acc__body > :first-child { margin-top: 0; }
.fee-acc__body > :last-child { margin-bottom: 0; }
.fees-pkg-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .9rem; }
.fees-pkg-list li { position: relative; padding: .7rem .9rem .7rem 2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: var(--fs-sm); color: var(--navy); font-weight: 500; }
.fees-pkg-list li::before { content: "\2713"; position: absolute; left: .8rem; color: var(--cyan); font-weight: 700; }
@media (max-width: 620px) { .fees-pkg-list { grid-template-columns: 1fr; } }

/* Preview-only: pages carrying content pending doctor review */
.review-flag { display: flex; gap: .55rem; align-items: center; justify-content: center; background: #f59e0b; color: #3b2600; font-weight: 600; font-size: var(--fs-sm); padding: .6rem 1rem; text-align: center; line-height: 1.35; }
.review-flag .ler-ico { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* Preview-only map card (real Google Maps embed renders on the live site) */
.map-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .55rem; min-height: 240px; padding: 1.75rem; border-radius: var(--radius); text-decoration: none; color: #cfe0f4; background: linear-gradient(160deg,#173a63,#0f2c50); border: 1px solid rgba(255,255,255,.14); }
.map-card strong { color: #fff; font-family: var(--font-head); font-size: var(--fs-lg); }
.map-card > span { font-size: var(--fs-sm); max-width: 40ch; }
.map-card__pin { width: 54px; height: 54px; border-radius: 50%; background: rgba(56,179,227,.2); display: grid; place-items: center; color: var(--cyan); }
.map-card__pin .ler-ico { width: 26px; height: 26px; }
.map-card__link { color: var(--cyan); font-weight: 600; }

/* Collapsible content sections (SEO text stays on page, reads compact) */
.sec-acc { border-top: 1px solid var(--line); }
.sec-acc:last-of-type { border-bottom: 1px solid var(--line); }
.sec-acc > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0; }
.sec-acc > summary::-webkit-details-marker { display: none; }
.sec-acc__title { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); color: var(--navy); line-height: 1.3; }
.sec-acc > summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue); font-weight: 400; flex-shrink: 0; }
.sec-acc[open] > summary::after { content: "\2013"; }
.sec-acc > summary:hover .sec-acc__title { color: var(--blue); }
.sec-acc__body { padding-bottom: 1.3rem; }
.sec-acc__body > :first-child { margin-top: 0; }
.sec-acc, .prose h2, .prose h3 { scroll-margin-top: calc(var(--header-h, 72px) + 16px); }

/* Page hero image: never wider than its column (inline rules only cap it at 520px). */
.page-hero__media img { width: 100%; height: auto; }

/* Hub pages: intro text directly above its card grid, closing text directly below. */
.hub-intro { max-width: 72ch; margin: 0 0 2rem; }
.hub-outro { max-width: 72ch; margin: 3rem 0 0; }
.section-head + .hub-intro { margin-top: -.6rem; }

/* In-content figures (photos and diagrams inside article sections). */
.prose .content-fig { margin: 1.6rem 0; max-width: 760px; }
.content-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.content-fig figcaption { font-size: var(--fs-sm); color: var(--slate); margin-top: .6rem; line-height: 1.5; }
