/*
Theme Name: Good MDs
Author: Soofi Digital
Version: 0.2.0
Requires PHP: 8.1
Text Domain: goodmds
*/

/* Fonts: self-hosted latin subsets (variable weights), SIL Open Font License. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/inter-latin.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin.woff2) format("woff2"); }

/* Tokens from the approved Base44 design */
:root {
  --navy: #002d5b;
  --blue: #007bff;
  --blue-dark: #0066d6;
  --blue-soft: rgba(0, 123, 255, .08);
  --star: #ffc107;
  --line: #e5e5e5;
  --line-2: #e3eaf2;
  --text: #0a0a0a;
  --text-2: #475569;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --bg-soft: #f6f9fc;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 45, 91, .04), 0 8px 24px rgba(0, 45, 91, .06);
  --head: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.section { padding: 40px 0; }
@media (min-width: 900px) { .section { padding: 64px 0; } }
.center { text-align: center; }
.lead { color: var(--muted); font-size: .9rem; line-height: 1.6; max-width: 640px; } /* same size as the card and step descriptions */
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: block; font: 700 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 1px solid var(--blue);
  background: var(--blue); color: #fff; font: 700 .78rem/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--blue-dark); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--sm { padding: 10px 18px; font-size: .72rem; }
.btn--block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-2); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
/* Logo in Niyi's colours: light "Good", white "MDs" in a rounded box (an uploaded logo file replaces it, see gmd_logo()). */
.logo { display: inline-flex; align-items: center; gap: 2px; font: 400 1.45rem/1 var(--body); color: #5181c5; text-decoration: none; letter-spacing: -.055em; } /* tight, as in the Base44 logo */
.logo b { background: #5181c5; color: #fff; font-weight: 500; border-radius: 5px; padding: 3px 5px 4px 4px; letter-spacing: -.055em; }
.logo img { height: 38px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .93rem; }
.nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--navy); cursor: pointer; }
.menu-toggle { display: none; }
.menu-toggle summary { list-style: none; }
.menu-toggle summary::-webkit-details-marker { display: none; }
@media (max-width: 999px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: block; }
  .menu-toggle[open] .nav-mobile { display: block; }
  .nav-mobile { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line-2); padding: 8px 16px 20px; }
  .nav-mobile ul { list-style: none; margin: 0; padding: 0; }
  .nav-mobile li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-2); color: var(--navy); font-weight: 600; text-decoration: none; }
  .header-cta { display: none; }
}
@media (min-width: 1000px) { .nav-mobile { display: none; } }

/* Hero */
.hero { background: linear-gradient(180deg, #eef5ff 0%, #fff 100%); padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 56px 0 56px; } .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero h1 > span { display: block; color: var(--blue); }
.num { font-family: var(--body); font-weight: 700; letter-spacing: -.07em; font-variant-numeric: proportional-nums; } /* tight, natural-width digits in headings */ /* amounts in headings: same font as the prices */
.hero .lead { font-size: 1rem; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0 0 24px; font-size: .9rem; font-weight: 500; color: var(--navy); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { color: var(--blue); }
.checks--stack { flex-direction: column; color: var(--text-2); font-weight: 400; }
.search { position: relative; max-width: 520px; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.search input { width: 100%; height: 54px; padding: 0 20px 0 48px; border: 1px solid var(--line-2); border-radius: 999px; font: inherit; color: var(--navy); background: #fff; box-shadow: var(--shadow); }
.search input:focus { outline: none; border-color: var(--blue); }
.search-results { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 6px 0; list-style: none; background: #fff;
  border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 45, 91, .14); max-height: min(380px, 60vh); overflow-y: auto; text-align: left; }
.search-results a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 18px; color: var(--navy); text-decoration: none; }
.search-results .sr-name { font-weight: 700; }
.search-results .sr-meta { grid-row: 2; font-size: .8rem; color: var(--muted); }
.search-results .sr-go { grid-row: 1 / span 2; grid-column: 2; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.search-results li + li { border-top: 1px solid var(--line-2); }
.search-results [aria-selected="true"] a, .search-results a:hover { background: var(--blue-soft); }
.search-results .sr-none { padding: 14px 18px; color: var(--muted); font-size: .9rem; }
/* Phones: bottom bar with rating, "from" price and Start visit (Base44 design). */
.sticky-bar { display: none; }
@media (max-width: 899px) {
  .sticky-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line-2); box-shadow: 0 -8px 24px rgba(0, 45, 91, .08); }
  .sticky-bar p { margin: 0; line-height: 1.35; }
  .sticky-top { font-size: .88rem; color: var(--navy); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-top .star { color: #f5a623; }
  .sticky-sub { font-size: .8rem; color: var(--muted); }
  .sticky-bar > div { min-width: 0; }
  .sticky-bar .btn { flex: none; padding: 13px 18px; }
  body:has(.sticky-bar) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* website chat sits above the bar, not over "Start visit" */
  body:has(.sticky-bar) [id^="webchat-floating-iframe"] { bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - 72px - env(safe-area-inset-bottom)) !important; }
  body:has(.sticky-bar) .chaport-launcher { bottom: calc(84px + env(safe-area-inset-bottom)) !important; } /* Contact page chat */
}
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: .8rem; color: var(--muted); }
.chips a { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--navy); text-decoration: none; background: #fff; font-weight: 500; }
.chips a:hover { border-color: var(--blue); }
.hero-visual { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #dbe9ff, #f2f7ff 60%, #e6f0ff); box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
/* Until the hero photo is in, phones show just the badges instead of an empty picture box. */
@media (max-width: 899px) {
  .hero-visual:not(:has(img)) { aspect-ratio: auto; background: none; box-shadow: none; overflow: visible; display: flex; flex-direction: column; gap: 12px; }
  .hero-visual:not(:has(img)) .hero-pill, .hero-visual:not(:has(img)) .hero-badge { position: static; align-self: flex-start; }
  .hero-visual:not(:has(img)) .hero-badge { max-width: none; }
  .hero .wrap { gap: 24px; }
}
.hero-badge { position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 290px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow); text-align: center; }
.hero-badge strong { display: block; color: var(--navy); font: 700 .95rem/1.3 var(--head); }
.hero-badge span { font-size: .8rem; line-height: 1.5; color: var(--muted); }
.hero-badge .ico { display: none; } /* centred text only: keeps the card short over the photo */

/* Rating, reviews, press */
.stars { color: var(--star); letter-spacing: 2px; }
/* part-filled stars for a rating like 4.5 */
.stars[style*="--r"] { background: linear-gradient(90deg, var(--star) calc(var(--r) * 20%), #d5dce5 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .82rem; color: var(--muted); text-decoration: none; }
.rating strong { color: var(--navy); }
.rating .sep { color: var(--line); }
.hero-pill { position: absolute; top: 18px; right: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--navy); color: #fff; font: 700 .7rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.reviews-head h2 { margin: 0; }
.rating-box { text-align: right; font-size: .8rem; color: var(--muted); }
.rating-box strong { display: block; color: var(--navy); font-size: .95rem; }
/* Reviews: a row of cards you swipe through (Base44 design); the next card peeks in at the edge. */
.review-cards { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 360px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  list-style: none; padding: 4px 4px 20px; margin: 28px -4px 0; scrollbar-width: thin; }
.review { display: flex; flex-direction: column; scroll-snap-align: start; padding: 26px; border: 1px solid var(--line-2); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.review .stars { font-size: 1.15rem; }
.review blockquote { flex: 1; margin: 14px 0 20px; color: var(--text-2); font-size: 1rem; line-height: 1.6; }
.review p { margin: 0; padding-top: 16px; border-top: 1px solid var(--line-2); }
.review strong { display: block; color: var(--navy); font: 700 1rem var(--head); }
.review-scroller { position: relative; }
.review-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--blue); color: #fff; box-shadow: var(--shadow); cursor: pointer; }
.review-arrow:hover { background: var(--blue-dark); }
.review-arrow--prev { left: -62px; }
.review-arrow--prev svg { transform: rotate(180deg); }
.review-arrow--next { right: -62px; }
/* Narrower screens: no room beside the cards, so the arrows sit centred under the row. */
@media (max-width: 1399px) {
  .review-scroller { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .review-scroller .review-cards { flex: 0 0 100%; min-width: 0; }
  .review-arrow { position: static; transform: none; order: 1; }
  .review-arrow--next { order: 2; }
}
.review blockquote { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; } /* long reviews: first 8 lines */
.review-src { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.review-src svg { color: var(--blue); flex: none; }
.review-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0 0; font-size: .88rem; font-weight: 600; }
.press { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 28px 0; text-align: center; }
.press .eyebrow { color: var(--muted-2); margin-bottom: 12px; }
.press ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; list-style: none; margin: 0; padding: 0; }
.press li { font: 800 1.2rem var(--head); color: var(--muted-2); letter-spacing: -.02em; }
.site-footer .badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.site-footer .badges span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  font: 600 .68rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #fff; }

/* Treatments */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tabs button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); font: 500 .88rem var(--body); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.note { background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; font-size: .85rem; color: var(--text-2); }
.cat { margin-top: 40px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.cat-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.cat-head .count { font: 600 .75rem var(--body); color: var(--muted-2); }
.cat-head p { margin: 0; font-size: .9rem; color: var(--muted); }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: #cfe0f5; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.card .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.price { font: 700 1.1rem var(--body); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--navy); margin: 0; } /* Inter: clean, even digits */
.card h4 { font-size: 1rem; margin: 0; letter-spacing: -.01em; }
.card p { font-size: .85rem; color: var(--muted); margin: 0 0 8px; flex: 1; }
.see-all { margin-top: 16px; }
/* Phones: two cards per row, as in the Base44 design (icon and price on top, then name, text, button). */
@media (max-width: 599px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 14px; gap: 6px; }
  .card .ico { width: 36px; height: 36px; border-radius: 10px; }
  .card .price { font-size: .98rem; }
  .card h4 { font-size: .95rem; line-height: 1.2; }
  .card p { font-size: .8rem; line-height: 1.45; }
  .card .btn { padding: 11px 8px; font-size: .68rem; letter-spacing: .08em; }
  .rating-box { text-align: left; }
}
.empty { color: var(--muted); }

/* How it works */
.steps { display: grid; gap: 32px; margin: 48px 0 40px; list-style: none; padding: 0; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.intake-option-help { display: block; margin-top: 4px; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.intake-sub { margin: 14px 0 4px; font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.steps li { position: relative; text-align: center; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-2); color: var(--blue); font: 700 .95rem var(--head); position: relative; z-index: 1; box-shadow: var(--shadow); }
@media (min-width: 768px) { .steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 50%; width: 100%; height: 1px; background: var(--line-2); } }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .9rem; color: var(--muted); max-width: 300px; margin: 0 auto; }

/* Compare */
.compare .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .compare .wrap { grid-template-columns: 1fr 1.15fr; gap: 64px; } }
.table-card { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.table-card table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table-card th, .table-card td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
.table-card tr:last-child td { border-bottom: 0; }
.table-card thead th { font: 600 .7rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); background: var(--bg-soft); }
.table-card thead th.us { color: var(--blue); }
.table-card td.us { color: var(--navy); font-weight: 600; background: rgba(0, 123, 255, .03); }
.table-card td.us svg { color: var(--blue); vertical-align: -3px; margin-right: 4px; }
.table-card td.them { color: var(--muted-2); }

/* FAQs */
.faq { max-width: 860px; margin: 32px auto 0; }
.faq details, .prose details { border-bottom: 1px solid var(--line-2); }
.faq summary, .prose summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 700 1rem var(--head); color: var(--navy); }
.faq summary::-webkit-details-marker, .prose summary::-webkit-details-marker { display: none; }
.faq summary::after, .prose summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--muted-2); border-bottom: 1.5px solid var(--muted-2); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after, .prose details[open] summary::after { transform: rotate(225deg); }
.faq details p, .prose details p { color: var(--muted); padding-bottom: 20px; margin: 0; }
.cta-box { max-width: 860px; margin: 32px auto 0; padding: 40px 24px; text-align: center; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 20px; }
.cta-box h3 { font-size: 1.4rem; }
.cta-box p { color: var(--muted); font-size: .9rem; max-width: 420px; margin: 0 auto 20px; }

/* Page headers and content */
.page-hero { background: linear-gradient(180deg, #eef5ff 0%, #fff 100%); padding: 40px 0 32px; }
@media (min-width: 900px) { .page-hero { padding: 64px 0 48px; } }
.page-hero .lead { margin-bottom: 0; }
.treatment-hero .lead { margin-bottom: 16px; }
/* Treatment page (Base44 design): price card beside the title on desktop, under it on phones; STD Combo offer. */
@media (min-width: 900px) { .treatment-hero-grid { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: center; } }
.price-card { margin-top: 32px; padding: 28px; background: #fff; border: 1px solid var(--line-2); border-radius: 24px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .price-card { margin-top: 0; } }
.price-card-top { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.price-card .ico { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.price-card .eyebrow { margin-bottom: 6px; }
.eyebrow--muted { color: var(--muted-2); }
.price-card-blurb { margin: 0; font: 700 1.05rem/1.35 var(--head); color: var(--navy); letter-spacing: -.01em; }
.price-card-row { display: flex; justify-content: space-between; align-items: flex-end; margin: 20px 0 18px; }
.price-card-row .price { margin: 0; }
.price--big, .treatment-hero .price-card .price--big { font-size: 2.2rem; line-height: 1.1; letter-spacing: -.02em; color: var(--navy); margin: 0; }
.price-card-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; font-size: .9rem; color: var(--text-2); }
.price-card-list li { display: flex; gap: 10px; align-items: center; }
.price-card-list svg { color: var(--blue); flex: none; }
.combo-section { padding-top: 0; }
.combo-card { display: grid; gap: 28px; padding: 28px 24px; border: 1px solid #cfe0f5; border-radius: 24px; background: linear-gradient(180deg, #f2f8ff, #fff); }
@media (min-width: 900px) { .combo-card { grid-template-columns: 1.3fr 1fr; gap: 48px; padding: 40px; align-items: center; } }
.combo-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 14px 0 10px; }
.combo-card > div > p { color: var(--muted); font-size: .9rem; margin: 0 0 16px; max-width: 520px; }
.combo-badge { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--blue); color: #fff; font: 700 .7rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.combo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.combo-actions .num { white-space: nowrap; }
@media (max-width: 599px) { .combo-actions .btn { width: 100%; justify-content: center; text-align: center; padding-left: 14px; padding-right: 14px; } }
.combo-sum { padding: 24px; background: #fff; border: 1px solid var(--line-2); border-radius: 20px; }
.combo-was { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.combo-was s { color: var(--muted-2); font: 600 1.1rem var(--body); }
.combo-save { display: inline-block; margin: 8px 0 16px; padding: 4px 10px; border-radius: 999px; background: #e7f7ee; color: #127a43; font: 700 .78rem var(--body); }
.combo-sum ul { list-style: none; margin: 0; padding: 0; }
.combo-sum li { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: .9rem; color: var(--navy); }
.combo-fine { margin: 12px 0 0; font-size: .78rem; color: var(--muted); }
.prose .note { margin-top: 16px; }
/* A list whose items start with a heading (old landing pages): cards instead of bullets. */
.prose ul:has(> li > h3) { list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .prose ul:has(> li > h3) { grid-template-columns: 1fr 1fr; } }
.prose ul:has(> li > h3) > li { margin: 0; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.prose li > h3 { margin-top: 0; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.treatment-hero .price { font-size: 1.5rem; color: var(--blue); margin-bottom: 16px; }
.prose { max-width: 760px; color: var(--text-2); font-size: 1.02rem; }
.prose h2 { font-size: 1.75rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose a { color: var(--blue); }
.prose a.btn { color: #fff; }
.prose a.btn--ghost { color: var(--navy); }
.prose li { margin-bottom: .4em; }
.cognito-form, .zoho-form { margin: 24px 0; }
/* Cognito (seamless embed) in the site's look, through its own style variables. */
.cognito-form .cog-cognito.cog-form.cog-cognito--styled {
  --font-family: var(--body); --header__font-family: var(--head); --heading__font-family: var(--head); --label__font-family: var(--body);
  --button-primary__font-family: var(--body); --button-secondary__font-family: var(--body);
  --color: var(--text-2); --label__color: var(--navy); --header__color: var(--navy); --label__font-size: .95em;
  --a__color: var(--blue); --highlight: var(--blue); --input-highlight: var(--blue);
  --input__border-color: var(--line-2); --input__border-radius: 10px; --input__padding-v: 11px; --input__padding-h: 14px;
  --checkable__border-color: #cbd5e1; --card__border-color: var(--line-2);
  --button-primary__background-color: var(--blue); --button-primary__border-color: var(--blue); --button-primary__color: #fff;
  --button-primary__border-radius: 999px; --button-primary__font-weight: 700;
  --button-secondary__color: var(--navy); --button-secondary__border-color: var(--line-2); --button-secondary__border-radius: 999px;
  --form__background-color: transparent;
}
.cognito-form .cog-cognito .cog-button { padding: 12px 26px; letter-spacing: .02em; }

/* Intake forms: one question per screen */
.intake-page { background: linear-gradient(180deg, #eef5ff 0%, #fff 60%); padding: 24px 0 48px; }
@media (min-width: 768px) { .intake-page { min-height: 62vh; } } /* phones: footer follows the card, no blank gap */
.intake-fee { white-space: nowrap; }
.intake { max-width: 720px; margin: 0 auto; }
.prose .intake h2, .prose .intake p { margin-top: 0; } /* a form inside page text (Contact) keeps the form's own spacing */
.intake-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .85rem; }
.intake-back { background: none; border: 0; padding: 8px 0; color: var(--navy); font: 600 .9rem var(--body); cursor: pointer; }
.intake-back:disabled { visibility: hidden; }
.intake-title { color: var(--navy); font-weight: 600; display: flex; justify-content: flex-end; min-width: 0; }
.intake-title-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* one line on phones; the price always shows */
.intake-back { white-space: nowrap; flex: none; }

.intake-card { background: #fff; border: 1px solid var(--line-2); border-radius: 24px; box-shadow: var(--shadow); padding: 32px 24px; animation: intake-in .3s ease both; }
@keyframes intake-in { from { opacity: 0; transform: translateY(16px); } }
@media (min-width: 768px) { .intake-card { padding: 48px; } .intake-page { padding-top: 40px; } }
.intake-num { margin: 0 0 6px; color: var(--blue); font: 700 .85rem var(--body); }
.intake-q { font-size: clamp(1.35rem, 3.4vw, 1.85rem); line-height: 1.25; margin: 0 0 10px; }
/* Pages: steps across the top, the page title, then one block per question. */
.intake-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; counter-reset: none; }
.intake-steps li { flex: 1; display: flex; flex-direction: column; gap: 6px; font: 600 .72rem var(--body); color: var(--muted-2); letter-spacing: .02em; }
.intake-steps li::before { content: ""; height: 5px; border-radius: 999px; background: var(--line-2); }
.intake-steps li.is-done::before, .intake-steps li.is-on::before { background: var(--blue); }
.intake-steps li.is-on { color: var(--navy); }
.intake-steps li span { display: none; }
.intake-page-title { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 0 0 6px; }
.intake-block { padding: 22px 0; border-top: 1px solid var(--line-2); }
.intake-card > .intake-help + .intake-block, .intake-card > .intake-page-title + .intake-block { border-top: 0; padding-top: 8px; }
.intake-card > .intake-block:first-child { border-top: 0; padding-top: 0; }
.intake-block .intake-q { font-size: 1.02rem; line-height: 1.35; letter-spacing: -.01em; margin: 0 0 12px; }
.intake-block .intake-help { margin-bottom: 12px; font-size: .88rem; }
.intake-block .intake-error { margin: 8px 0 0; min-height: 0; }
.intake-block .intake-error:empty { display: none; }
.intake-block.has-error .intake-input, .intake-block.has-error .intake-option { border-color: #f1a7a1; }
.intake-tick { flex: 0 0 20px; height: 20px; border: 2px solid var(--line-2); border-radius: 50%; background: #fff; display: grid; place-items: center; }
[role=checkbox] > .intake-tick { border-radius: 6px; }
.intake-option.is-on .intake-tick { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
[role=checkbox].is-on > .intake-tick { box-shadow: none; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; }
/* Pharmacy page: ZIP search and the list to choose from. */
.ipf-search { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.ipf-search .intake-field { flex: 1 1 180px; margin: 0; }
.ipf-search .btn { height: 48px; }
.ipf-status { margin: 12px 0 0; }
.ipf-status:empty { display: none; }
.ipf-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; max-height: 460px; overflow-y: auto; }
.ipf-list li { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.ipf-list li.is-chosen { border-color: var(--blue); background: var(--blue-soft); }
.ipf-list li > div { display: grid; gap: 2px; min-width: 0; }
.ipf-list strong { color: var(--navy); font-size: .95rem; }
.ipf-list span { font-size: .82rem; color: var(--muted); }
.ipf-list .btn { flex: none; }
@media (max-width: 520px) { .ipf-list li { flex-direction: column; align-items: stretch; } }
.ipf-toggle { display: inline-block; margin: 14px 0 0; padding: 0; }
.ipf-manual { margin-top: 14px; }
.intake-opt { color: var(--muted-2); font: 500 .9rem var(--body); }
.intake-help { color: var(--muted); margin: 0 0 20px; }
.intake-field { display: block; margin: 0 0 14px; }
.intake-field > span { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.intake-input { width: 100%; padding: 14px 4px; border: 0; border-bottom: 2px solid var(--line-2); background: transparent; font: 500 1.3rem var(--body); color: var(--navy); border-radius: 0; }
.intake-input:focus { outline: none; border-bottom-color: var(--blue); }
select.intake-input { font-size: 1.1rem; }
textarea.intake-input { font-size: 1.05rem; resize: vertical; border: 2px solid var(--line-2); border-radius: 12px; padding: 12px; }
textarea.intake-input:focus { border-color: var(--blue); }
.intake-sign { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 2rem; }
.intake-field:has(.intake-suffix) { position: relative; }
.intake-suffix { position: absolute; right: 4px; bottom: 16px; color: var(--muted); font-weight: 600; }
/* Address suggestions under the street box. */
.addr-box { position: relative; }
.addr-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px 0; list-style: none; background: #fff;
  border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 45, 91, .14); }
.addr-suggest [role=option] { display: grid; gap: 2px; padding: 10px 16px; cursor: pointer; }
.addr-suggest [role=option] + [role=option] { border-top: 1px solid var(--line-2); }
.addr-suggest [role=option]:hover, .addr-suggest [aria-selected=true] { background: var(--blue-soft); }
.addr-suggest strong { color: var(--navy); font-size: .95rem; }
.addr-suggest span { color: var(--muted); font-size: .8rem; }
.addr-google { padding: 8px 16px 2px; font-size: .72rem; color: var(--muted-2); text-align: right; list-style: none; border: 0 !important; }
.ipf-list .addr-google { padding: 0 4px; }
.intake-phone { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; align-items: end; }
.intake-phone .intake-field { margin: 0; }
.intake-dial { font-size: 1rem; padding-right: 0; }
.intake-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .intake-row { grid-template-columns: 1fr 1fr; } .intake-row--3 { grid-template-columns: 2fr 1fr 1fr; } }
.intake-options { display: grid; gap: 10px; margin-bottom: 8px; }
.intake-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; border: 1.5px solid var(--line-2); border-radius: 14px;
  background: #fff; color: var(--navy); font: 500 1rem/1.35 var(--body); cursor: pointer; transition: border-color .15s, background .15s; }
.intake-option:hover { border-color: var(--blue); }
.intake-option.is-on { border-color: var(--blue); background: var(--blue-soft); }

.intake-option-text { flex: 1; }
.intake-price { font-weight: 700; color: var(--blue); white-space: nowrap; }
.intake-consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; color: var(--text-2); }
.intake-docs { list-style: none; margin: 14px 0 0; padding: 0 4px; display: grid; gap: 8px; font-size: .9rem; } /* one per line */
.visit-done { padding: 28px; border: 1px solid var(--line-2); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.visit-done > :first-child { margin-top: 0; }
.visit-ref { font-size: 1.05rem; }
.visit-ref strong { font: 700 1.3rem var(--body); letter-spacing: .02em; color: var(--navy); }
.intake-docs a { font-weight: 600; }
.intake-paypal { max-width: 420px; margin-top: 8px; }
.intake-pp-button { margin-bottom: 10px; }
.intake-paypal .addr-box + div, .intake-paypal > div:has(.addr-box) { margin-bottom: 18px; }
.intake-card-fields { margin: 8px 0 18px; }
.intake-pay-title { margin: 28px 0 4px; scroll-margin-top: 90px; }
.intake-paypal { scroll-margin-top: 90px; }
.intake-pay-label { font-weight: 700; color: var(--navy); margin: 12px 0 6px; }
.intake-pay-or { padding-top: 16px; border-top: 1px solid var(--line-2); }
.intake-jump { display: inline-block; margin: 0 0 18px; font-weight: 700; text-decoration: none; }
.intake-card-field { display: block; margin: 0 0 4px; }
.intake-card-field > span { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.intake-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.intake-card-fields .btn { margin-top: 10px; }
.intake-file-pick { position: relative; cursor: pointer; }
.intake-file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.intake-file-pick:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.intake-files { list-style: none; margin: 16px 0 0; padding: 0; }
.intake-files li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); overflow-wrap: anywhere; }
.intake-consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 auto; }
.intake-stop { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdecea; border: 1px solid #f5b5ad; color: #8f1d14; font-size: .92rem; font-weight: 600; }
.intake-warn { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #ffd591; color: #874d00; font-size: .92rem; }
.intake-error { margin: 12px 0 0; color: #b42318; font-weight: 600; min-height: 1.4em; }
.intake-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.intake-hint { margin: 0; font-size: .78rem; color: var(--muted-2); }

.intake-review { margin: 16px 0 24px; }
.intake-review-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.intake-review dt { font-size: .82rem; color: var(--muted); grid-column: 1; }
.intake-review dd { margin: 0; color: var(--navy); font-weight: 600; grid-column: 1; overflow-wrap: anywhere; }
.intake-edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: none; border: 0; color: var(--blue); font: 600 .85rem var(--body); cursor: pointer; }
.intake-total { background: var(--bg-soft); border-radius: 14px; padding: 16px; }
.intake-total p { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 6px; font-size: .9rem; color: var(--text-2); }
.intake-total .is-total { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line-2); color: var(--navy); font-size: 1.05rem; }


/* Contact */
.contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 24px 0 32px; }
.contact-cards > div { padding: 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; }
.contact-cards h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 8px; }
.contact-cards p { margin: 0; font-weight: 600; }
.contact-cards a { color: var(--navy); text-decoration: none; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-weight: 500; }
.hours th { color: var(--navy); }

/* Blog and doctors */
.post-cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); list-style: none; padding: 0; margin: 0; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: inherit; height: 100%; }
.post-card:hover { box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--bg-soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px; }
.post-card h3 { font-size: 1.08rem; }
.post-card p { font-size: .88rem; color: var(--muted); margin: 0; }
.meta { font-size: .8rem; color: var(--muted-2); margin-bottom: 8px; }
.doctor .thumb { aspect-ratio: 1; }
.doctor-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; background: var(--bg-soft); }
.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding: 56px 0 32px; font-size: .9rem; margin-top: 0; }
.site-footer .cols { display: grid; gap: 32px; }
@media (min-width: 768px) { .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .logo { color: #fff; }
.site-footer .social { display: flex; gap: 10px; margin-top: 4px; }
.site-footer .social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff; }
.site-footer .social a:hover { background: rgba(255, 255, 255, .12); }
.site-footer h4 { color: rgba(255, 255, 255, .5); font: 600 .72rem var(--body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: rgba(255, 255, 255, .55); }
.footer-credit { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
/* Weight loss page: products shown before launch */
.card--soon .btn[aria-disabled] { background: var(--line-2); color: var(--muted); box-shadow: none; cursor: default; }
.intake-more { justify-self: start; margin-top: 4px; }
.intake-option[hidden] { display: none; }
.intake-date { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; } /* month on top, then day and year */
.intake-date select:first-child { grid-column: 1 / -1; }
.steps-extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 0 0 28px; padding: 0; list-style: none; }
