/* Clinic Launch System base styles. Mobile first, no JavaScript, no web fonts
   (fast on a phone). Colours come from the customer's palette via :root vars
   set in base.html: --c-dark, --c-mid, --c-light, --c-bg. Style variants are
   body classes: style-clinical | style-warm | style-premium | style-bold | style-calm. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: #1a1f24;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --head-font: inherit;
  padding-bottom: 72px; /* room for the mobile booking bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-mid); }
h1, h2, h3 { font-family: var(--head-font); color: var(--c-dark); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(0,0,0,.07); backdrop-filter: saturate(1.4) blur(6px); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-dark); font-weight: 800; font-size: 1.15rem; margin-right: auto; }
.brand img { max-height: 44px; width: auto; }
.nav { display: none; gap: 22px; }
.nav a { color: #1a1f24; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a[aria-current="page"], .nav a:hover { color: var(--c-mid); }
.header-actions { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; background: var(--c-dark); border-radius: 2px; }
.menu-panel { position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.menu-panel a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: #1a1f24; font-weight: 600; }
.menu-panel .btn { margin-top: 6px; justify-content: center; color: #fff; }
@media (min-width: 900px) {
  .nav, .header-actions { display: flex; align-items: center; }
  .menu { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--c-mid); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--c-mid); line-height: 1.2; }
.btn:hover { background: var(--c-dark); border-color: var(--c-dark); }
.btn-ghost { background: transparent; color: var(--c-dark); border-color: currentColor; }
.btn-ghost:hover { background: var(--c-light); color: var(--c-dark); border-color: var(--c-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* Sections (the vocabulary Claude writes with) */
main section { padding: 56px 0; }
main section.band { background: var(--c-bg); }
main section.dark { background: var(--c-dark); color: #fff; }
main section.dark h2, main section.dark h3 { color: #fff; }
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--c-bg), #fff); }
.hero .lead { font-size: 1.2rem; color: #3a434c; max-width: 40em; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-grid img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .hero { padding: 72px 0; } }
.grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: var(--radius); padding: 22px; }
.band .card { border-color: transparent; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--c-light); box-shadow: inset 0 0 0 5px var(--c-mid); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0; padding: 0; list-style: none; }
.badges li { background: var(--c-light); color: var(--c-dark); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; }
table.prices { width: 100%; border-collapse: collapse; margin: 1em 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.prices th, table.prices td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,.08); }
table.prices td:last-child, table.prices th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split img, figure img { border-radius: var(--radius); }
figure { margin: 0; }
.cta { background: var(--c-dark); color: #fff; border-radius: calc(var(--radius) * 1.5); padding: 32px 24px; text-align: center; }
.cta h2 { color: #fff; }
.cta .btn { background: #fff; color: var(--c-dark); border-color: #fff; }
.note { font-size: .92rem; color: #56606a; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; padding-left: 48px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--c-mid); color: #fff; font-weight: 800; display: grid; place-content: center; }

/* FAQ */
.faq details { border-bottom: 1px solid rgba(0,0,0,.1); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--c-dark); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--c-mid); }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 10px 0 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: #56606a; }

/* Booking widget (ManagePatients embed: fixed 720px tall, its own scroll inside, per MP's embed guide) */
.booking-embed { max-width: 640px; margin: 0 auto; border-radius: 12px; overflow: hidden; }
.booking-frame { width: 100%; height: 720px; border: 0; display: block; border-radius: 12px; background: #fff; }
.booking-fallback { text-align: center; margin-top: 14px; }

/* Footer */
.site-footer { background: #11161b; color: #cfd6dc; padding: 44px 0 20px; margin-top: 40px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-name { font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.footer-head { font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: .85rem; }

/* Mobile booking bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid rgba(0,0,0,.1); }
.mobile-bar .btn { flex: 1; justify-content: center; padding: 12px; }
@media (min-width: 900px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* Style variants */
.style-warm { --radius: 20px; }
.style-warm .card { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.style-premium { --head-font: Georgia, "Times New Roman", serif; --radius: 6px; }
.style-premium h1, .style-premium h2 { font-weight: 500; letter-spacing: 0; }
.style-premium .hero { background: var(--c-dark); color: #fff; }
.style-premium .hero h1 { color: #fff; }
.style-premium .hero .lead { color: rgba(255,255,255,.85); }
.style-premium .hero .btn-ghost { color: #fff; }
.style-bold h1 { font-size: clamp(2.3rem, 9vw, 3.8rem); font-weight: 900; letter-spacing: -0.03em; }
.style-bold .hero { background: var(--c-light); }
.style-bold .btn { border-radius: 10px; }
.style-calm { --radius: 16px; }
.style-calm body, .style-calm { color: #2b3238; }
.style-calm h1, .style-calm h2 { font-weight: 600; }
.style-calm main section { padding: 64px 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
