/* Demo kit base styles. Theme files (theme-*.css) override the tokens and add personality. */
:root {
  --ink: #102a2f;
  --slate: #50656a;
  --teal: #0e6b6b;
  --teal-2: #0a5556;
  --mint: #e7f3f0;
  --mint-2: #d4ebe6;
  --cream: #fbf8f3;
  --sun: #f2b95a;
  --line: #e2e8e6;
  --white: #fff;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 20px 50px -28px rgb(16 42 47 / .35), 0 2px 6px rgb(16 42 47 / .05);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; }
/* Keep f+i / f+l as separate letters in display type (e.g. "first"). */
h1, h2, h3, .brand-text b, .strip b, .review blockquote, .review-card p, .tech-card blockquote, .avatar, .steps li::before { font-variant-ligatures: no-common-ligatures no-discretionary-ligatures; font-feature-settings: "liga" 0, "dlig" 0; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3, .h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--teal); }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.lead { font-size: 1.14rem; color: var(--slate); max-width: 38em; }
.muted { color: var(--slate); }
.center { text-align: center; margin-top: 36px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.i { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgb(242 185 90 / .25); }
.eyebrow.light { color: var(--sun); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid var(--teal); transition: background .2s, transform .2s, box-shadow .2s; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--teal-2); border-color: var(--teal-2); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgb(14 107 107 / .7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: var(--mint-2); box-shadow: none; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* Top bar + header */
.topbar { background: var(--ink); color: #cfe0dd; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.header { position: sticky; top: 0; z-index: 50; background: rgb(251 248 243 / .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -24px rgb(16 42 47 / .5); }
.header-in { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; background: var(--teal); display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .15); }
.brand-mark svg { width: 28px; height: 28px; fill: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; }
.brand-text small { font-size: .74rem; color: var(--slate); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--sun); transition: right .2s; }
.nav a:hover::after { right: 0; }
.header-cta { display: flex; gap: 10px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.menu-btn span:not(.sr) { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: grid; gap: 4px; padding: 8px 20px 20px; border-top: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); background: radial-gradient(900px 500px at 85% 10%, var(--mint) 0%, transparent 70%), radial-gradient(600px 400px at 5% 90%, #f7ecdb 0%, transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--slate); font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust .i { color: var(--teal); }
.stars { color: var(--sun); letter-spacing: 2px; }
.hero-art { position: relative; padding: 20px 0 40px 30px; }
.photo-card { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; padding: 10px; transform: rotate(1.2deg); }
.photo-card img { width: 100%; aspect-ratio: 699/416; object-fit: cover; border-radius: 20px; }
.photo-card figcaption { font-size: .82rem; color: var(--slate); padding: 10px 8px 4px; font-weight: 600; }
.float-card { position: absolute; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; }
.hours-card { left: -10px; bottom: -18px; width: 200px; }
.fc-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.mini-hours { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.mini-hours li { display: flex; justify-content: space-between; padding: 3px 8px; border-radius: 8px; }
.mini-hours li.closed { color: #9aa9ac; }
.mini-hours li.today, .hours tr.today { background: var(--mint); font-weight: 700; color: var(--teal-2); }
.fc-foot { font-size: .72rem; color: var(--slate); margin: 8px 0 0; }
.review-card { right: -6px; top: -4px; width: 230px; }
.review-card p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.35; margin: 6px 0; }
.review-card small { color: var(--slate); font-weight: 600; }

/* Strip */
.strip { background: var(--teal); color: #e7f3f0; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 26px 0; }
.strip b { display: block; font-family: var(--serif); font-size: 1.25rem; color: #fff; font-weight: 600; }
.strip span { font-size: .88rem; opacity: .9; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.tint { background: var(--mint); }
.section.dark { background: var(--ink); color: #dce8e6; }
.section.dark h2 { color: #fff; }
.section.dark h2 em { color: var(--sun); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.section-head .lead { margin-inline: auto; }
.section-head.left { text-align: left; margin: 0; }
.section-head.left .lead { margin-inline: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mint-2); }
.card p { color: var(--slate); margin: 0; font-size: .97rem; }
.ic { width: 50px; height: 50px; border-radius: 14px; background: var(--mint); color: var(--teal); display: grid; place-items: center; margin-bottom: 18px; }
.ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.also p { margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.emergency { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; padding: 18px 22px; border-radius: var(--r); background: #fff5e6; border: 1px solid #f5dcb1; }
.emergency .i { color: #b9770e; width: 22px; height: 22px; margin-top: 2px; }
.emergency p { margin: 0; }

.tech { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.tech-grid { display: grid; gap: 20px; }
.tech-card { background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); }
.tech-card p { color: var(--slate); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--mint); color: var(--teal-2) !important; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.tech-card blockquote { margin: 16px 0 0; padding: 14px 18px; border-left: 3px solid var(--sun); background: var(--cream); border-radius: 0 12px 12px 0; font-family: var(--serif); font-size: 1.05rem; }
.tech-card cite { display: block; font-family: var(--sans); font-style: normal; font-size: .82rem; color: var(--slate); margin-top: 4px; }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e6b6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }

.doctors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.doctor { display: grid; grid-template-columns: 96px 1fr; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.doctor p { color: var(--slate); font-size: .97rem; }
.doctor p:last-child { margin-bottom: 0; }
.avatar { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 2rem; color: #fff; background: linear-gradient(145deg, var(--teal), #3a9a8f); }
.avatar.alt { background: linear-gradient(145deg, var(--ink), #3e6a70); }
.role { font-weight: 700; color: var(--teal) !important; font-size: .9rem !important; margin-top: -4px; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--r-lg); padding: 30px; }
.review blockquote { margin: 12px 0 18px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; color: #fff; }
.review figcaption { font-weight: 700; color: var(--sun); font-size: .9rem; }

.np { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.steps b { font-size: 1.03rem; }
.steps span { color: var(--slate); font-size: .94rem; }
.pay { display: grid; gap: 20px; }
.pay-card { background: var(--mint); border-radius: var(--r-lg); padding: 30px; }
.pay-card p { margin: 0; color: var(--slate); }

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
address { font-style: normal; font-size: 1.1rem; margin: 10px 0 6px; }
.hours { width: 100%; border-collapse: collapse; margin: 24px 0; background: #fff; border-radius: var(--r); overflow: hidden; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; width: 40%; }
.hours small { color: var(--slate); }
.map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; background: var(--mint-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.book { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); position: sticky; top: 100px; }
.form { display: grid; gap: 16px; margin-top: 20px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #cfd9d7; border-radius: 12px; background: var(--cream); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus { border-color: var(--teal); background: #fff; outline: none; box-shadow: 0 0 0 4px rgb(14 107 107 / .12); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; align-items: center; gap: 8px; border: 1px solid #cfd9d7; border-radius: 12px; padding: 11px 14px; font-weight: 600; cursor: pointer; background: var(--cream); }
.seg label:has(input:checked) { border-color: var(--teal); background: var(--mint); color: var(--teal-2); }
.seg input { accent-color: var(--teal); width: auto; }
.fine { font-size: .82rem; color: var(--slate); margin: 0; }
.demo-msg { background: #fff5e6; border: 1px solid #f5dcb1; padding: 12px 14px; border-radius: 12px; font-size: .9rem; margin: 0; }
[data-live-form] .demo-msg { background: #e9f6ee; border-color: #b9e0c6; }
.form-err { background: #fdecea; border: 1px solid #f3c2bb; color: #8a2116; padding: 12px 14px; border-radius: 12px; font-size: .9rem; margin: 0; }
.form-err[hidden], .demo-msg[hidden] { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer { background: var(--ink); color: #b9cbc8; padding: 50px 0 110px; font-size: .92rem; }
.footer-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.footer a { color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; justify-content: flex-end; }
.footer nav a { text-decoration: none; font-weight: 600; }
.brand-text.light b { color: #fff; }
.brand-text.light small { color: #9fb6b2; }
.credit { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / .1); padding-top: 20px; margin: 0; font-size: .82rem; }

.mobile-bar { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .btn, .card { transition: none; } }

@media (max-width: 1040px) {
  .nav, .hide-sm { display: none; }
  .menu-btn { display: flex; }
  .header-cta { margin-left: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .strip-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-in, .tech, .np, .visit, .doctors { grid-template-columns: 1fr; }
  .hero-art { padding: 10px 0 60px; margin-top: 10px; }
  .reviews { grid-template-columns: 1fr; }
  .book { position: static; }
  .footer-in { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar-in span { display: none; }
  .topbar-in { justify-content: center; }
  .header-cta { display: none; }
  .cards, .strip-in, .row2, .seg { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 1fr; padding: 24px; }
  .avatar { width: 72px; height: 72px; font-size: 1.5rem; }
  .hours-card { left: 0; bottom: -30px; width: 180px; }
  .review-card { right: 0; top: -20px; width: 200px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgb(251 248 243 / .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobile-bar a { text-align: center; padding: 13px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--teal); color: var(--teal); }
  .mobile-bar a.primary { background: var(--teal); color: #fff; }
}

/* ---------- Design switcher (concept previews only) ---------- */
.demo-switch { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: .8rem; font-weight: 600; color: #fff; }
.demo-switch a { color: #fff; text-decoration: none; }
.sw-opts { display: inline-flex; gap: 4px; }
.sw-opts a { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .14); font-size: .78rem; }
.sw-opts a[aria-current] { background: #fff; color: #111; }
.sw-opts a:hover { background: rgb(255 255 255 / .3); }
.sw-all { opacity: .85; text-decoration: underline !important; text-underline-offset: 3px; }
.demo-switch--float { position: fixed; left: 16px; bottom: 16px; z-index: 60; background: rgb(17 20 24 / .9); padding: 7px 8px 7px 14px; border-radius: 999px; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .5); backdrop-filter: blur(6px); }
.demo-switch--top { display: none; justify-content: center; background: #111418; padding: 6px 12px; }
@media (max-width: 620px) {
  .demo-switch--float { display: none; }
  .demo-switch--top { display: flex; }
  .sw-label { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- Hero layout: centered (text on top, wide photo below) ---------- */
.hero--center .hero-in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero--center .hero-copy { max-width: 820px; }
.hero--center .lead { margin-inline: auto; }
.hero--center .hero-actions, .hero--center .trust { justify-content: center; }
.hero--center .trust { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero--center .hero-art { width: min(980px, 100%); padding: 10px 0 30px; }
.hero--center .photo-card { transform: none; }
.hero--center .photo-card img { aspect-ratio: 21/9; object-position: center 40%; }
.hero--center .hours-card { left: -24px; bottom: -10px; }
.hero--center .review-card { right: -24px; top: auto; bottom: 40px; }

/* ---------- Hero layout: overlay (full-bleed photo behind the text) ---------- */
.hero--overlay { position: relative; isolation: isolate; min-height: min(86vh, 760px); display: grid; align-items: end; padding: clamp(120px, 16vw, 200px) 0 clamp(50px, 7vw, 90px); background: #111; }
.hero--overlay .hero-in { grid-template-columns: 1.1fr .9fr; align-items: end; }
.hero--overlay .hero-art { position: static; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.hero--overlay .photo-card { position: absolute; inset: 0; z-index: -1; margin: 0; padding: 0; border-radius: 0; transform: none; box-shadow: none; background: #111; }
.hero--overlay .photo-card img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; object-position: center 35%; }
.hero--overlay .photo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(20 14 26 / .92) 0%, rgb(20 14 26 / .72) 45%, rgb(20 14 26 / .25) 100%), linear-gradient(0deg, rgb(20 14 26 / .7), transparent 50%); }
.hero--overlay .float-card { position: static; }
.hero--overlay .hero-copy, .hero--overlay .hero-copy .lead, .hero--overlay .trust { color: #f1ebe4; }
.hero--overlay h1 { color: #fff; }
.hero--overlay .btn-ghost { color: #fff; border-color: rgb(255 255 255 / .4); }
.hero--overlay .btn-ghost:hover { background: rgb(255 255 255 / .1); color: #fff; }
@media (max-width: 860px) {
  .hero--center .hours-card { left: 0; } .hero--center .review-card { right: 0; }
  .hero--center .photo-card img { aspect-ratio: 4/3; }
  .hero--overlay { min-height: 0; padding-top: 90px; }
  .hero--overlay .hero-in { grid-template-columns: 1fr; }
  .hero--overlay .hero-art { flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: flex-start; }
  .hero--overlay .photo-card::after { background: linear-gradient(0deg, rgb(20 14 26 / .95) 0%, rgb(20 14 26 / .75) 60%, rgb(20 14 26 / .45) 100%); }
}
.hero--overlay .trust .i { color: var(--sun); }
@media (max-width: 620px) {
  .hero--center .hours-card { width: 158px; bottom: -34px; }
  .hero--center .review-card { top: -26px; bottom: auto; width: 190px; }
  .hero--overlay .hours-card { display: none; }
}

/* Text logo mark (e.g. a company's initials) instead of an icon */
.brand-mark--text { width: auto; min-width: 42px; padding: 0 10px; font: 900 1rem/1 var(--sans); letter-spacing: .02em; color: #fff; }
.tech-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: calc(var(--r) - 4px); margin: 0 0 18px; display: block; }
.reviews:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }
.doctors:has(> :only-child) { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.photo-card img, .tech-photo { height: auto; }
/* Phones: show the hero photo in full and set the hours/review cards beneath it instead of over it */
@media (max-width: 620px) {
  .hero--split .hero-art, .hero--center .hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0 0; }
  .hero--split .photo-card, .hero--center .photo-card { grid-column: 1 / -1; transform: none; }
  .hero--split .float-card, .hero--center .float-card { position: static; width: auto; }
}

/* Real logo image in the header (instead of mark + name) */
.brand-logo { height: 54px; width: auto; display: block; }
@media (max-width: 620px) { .brand-logo { height: 44px; } }

/* Work gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gallery .shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: var(--mint-2); }
.gallery .shot.wide { grid-column: span 2; }
.gallery .shot.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.gallery .shot:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; width: fit-content; max-width: calc(100% - 20px); padding: 6px 12px; border-radius: 999px; background: rgb(17 20 24 / .72); color: #fff; font-size: .82rem; font-weight: 600; backdrop-filter: blur(4px); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 520px) { .gallery { grid-auto-rows: 150px; gap: 10px; } .gallery .shot.wide { grid-column: span 2; } }

/* Customer portal link (existing clients) */
.topbar-links { display: inline-flex; align-items: center; gap: 22px; }
.portal-link { font-weight: 600 !important; opacity: .92; }
.pay-link { margin: 16px 0 0 !important; }
@media (max-width: 620px) { .topbar-links { gap: 16px; } .topbar-in { justify-content: center; } }
.brand-mark--img { padding: 0; overflow: hidden; background: none; box-shadow: none; }
.brand-mark--img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hero info card (no hours) and badge card (no review) */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .86rem; }
.info-list li { display: flex; gap: 8px; align-items: flex-start; }
.info-list .i { color: var(--teal); width: 16px; height: 16px; margin-top: 2px; flex: none; }
.badge-card { display: grid; gap: 8px; justify-items: center; text-align: center; }
.badge-card img { width: 100%; max-width: 190px; height: auto; }
.badge-card small { color: var(--slate); font-weight: 600; font-size: .78rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12); border-radius: var(--r); padding: 4px 22px; transition: background .2s, border-color .2s, box-shadow .2s; }
.faq details:not([open]):hover { background: rgb(255 255 255 / .09); }
.faq details[open] { background: #fff; border-color: #fff; box-shadow: inset 5px 0 0 var(--sun), 0 18px 40px -22px rgb(0 0 0 / .6); }
.faq details[open] summary { color: var(--ink); }
.faq details[open] summary::after { color: var(--ink); background: var(--sun); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; color: #fff; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 1.3rem; line-height: 1; color: var(--sun); transition: background .2s, color .2s; }
.faq summary:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; border-radius: 6px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: #c9d1dc; }
.faq details[open] p { color: var(--slate); }
.avatar-photo { object-fit: cover; object-position: center 20%; padding: 0; display: block; }
.doctor:has(.avatar-photo) { grid-template-columns: 160px 1fr; }
.doctor .avatar-photo { width: 160px; height: 160px; }
@media (max-width: 620px) { .doctor:has(.avatar-photo) { grid-template-columns: 1fr; } .doctor .avatar-photo { width: 120px; height: 120px; } }

.form [hidden] { display: none !important; }
.row2.row-solo { grid-template-columns: 1fr; }
.form select:invalid { color: var(--slate); }
.form select option { color: var(--ink); }
.form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #cfd9d7; border-radius: 12px; background: var(--cream); color: var(--ink); width: 100%; resize: vertical; min-height: 110px; }
.form textarea:focus { border-color: var(--teal); background: #fff; outline: none; box-shadow: 0 0 0 4px rgb(14 107 107 / .12); }

/* ---- Optional blocks: definition callout, self-managed reviews, extra pages ---- */
.definition { padding: 64px 0; background: #fff; border-bottom: 1px solid var(--line); }
.def-in { max-width: 860px; text-align: center; }
.def-in .eyebrow { justify-content: center; }
.def-in h2 { margin-bottom: 18px; }
.def-quote { margin: 0 auto; padding: 26px 30px; border-left: 0; border-radius: var(--r); background: var(--mint); position: relative; }
.def-quote p { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.35; margin: 0; color: var(--ink); }
.def-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: .85rem; font-weight: 600; color: var(--slate); letter-spacing: .02em; }
.def-note { margin: 16px auto 0; color: var(--slate); max-width: 640px; }

.sm-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .sm-reviews { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.sm-review { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; margin: 0; color: var(--ink); }
.sm-review .stars { color: var(--sun); letter-spacing: 2px; }
.sm-review blockquote { color: var(--ink); font-size: 1.05rem; line-height: 1.55; }
.sm-placeholder { border-style: dashed; background: transparent; }
.sm-line { display: block; height: 10px; border-radius: 6px; background: var(--line); margin: 12px 0; }
.sm-line.short { width: 60%; }
.sm-placeholder figcaption { color: var(--slate); font-size: .85rem; margin-top: 14px; }
.sm-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.sm-form h3 { margin: 0; }
.sm-form .muted { margin: 0; }
.sm-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.sm-form input, .sm-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.sm-stars { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sm-stars legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.sm-stars label { display: inline-flex; align-items: center; gap: 4px; color: var(--sun); font-weight: 400; }

.page-hero { padding: 72px 0 40px; background: var(--mint); }
.page-hero h1 { margin: 0 0 12px; }
.page-hero .lead { max-width: 720px; }
.pg-video { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .pg-video { grid-template-columns: 1fr; } }
.pg-video-frame { margin: 0; }
.pg-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.pg-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pg-video-frame figcaption { font-size: .85rem; color: var(--slate); margin-top: 10px; }
.pg-badges { display: grid; gap: 24px; }
.pg-badge { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 760px) { .pg-badge { grid-template-columns: 1fr; text-align: left; } }
.pg-badge-art { display: grid; justify-items: center; gap: 8px; }
.pg-badge-art img { width: 100%; max-width: 260px; height: auto; }
.pg-badge-art.round img { max-width: 190px; }
.pg-number { font-size: .9rem; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.pg-badge-copy h3 { margin: 4px 0 10px; }
.pg-foot { font-weight: 700; color: var(--ink); margin-bottom: 0; }
.pg-closing { text-align: center; margin: 32px auto 0; font-family: var(--serif); font-size: 1.3rem; max-width: 640px; }
.pg-extra { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; max-width: 900px; }
.pg-extra img { width: 100%; height: auto; }
@media (max-width: 700px) { .pg-extra { grid-template-columns: 1fr; justify-items: center; text-align: center; } .pg-extra img { max-width: 200px; } .pg-extra .eyebrow { justify-content: center; } }
.pg-cta { background: var(--mint); }
.tech-photo.badge-art { object-fit: contain; background: transparent; padding: 10px; }
.pg-cta .lead { margin-inline: auto; }
.badge-card--pair .badge-pair { display: flex; align-items: center; gap: 12px; }
.badge-card--pair .badge-pair > img { flex: 1 1 auto; min-width: 0; max-width: 150px; }
.badge-card--pair .badge-second { display: grid; justify-items: center; gap: 2px; flex: none; }
.badge-card--pair .badge-second img { width: 64px; height: 64px; }
.badge-card--pair .badge-second b { font-size: .68rem; letter-spacing: .06em; }
.member-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--ink); text-decoration: none; padding: 8px 4px; }
.member-link svg { width: 16px; height: 16px; }
.member-link:hover { text-decoration: underline; }
.mp-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.mp-shot { width: 100%; max-width: 360px; justify-self: center; border-radius: 28px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .mp-in { grid-template-columns: 1fr; } }

/* Optional feature photo under the tech section heading */
.tech-feature { margin: 26px 0 0; }
.tech-feature img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); display: block; }
.tech-feature figcaption { font-size: .85rem; color: var(--slate); margin-top: 10px; }
/* Optional icon beside a getting-started card heading */
.pay-card h3:has(.pay-ic) { display: flex; align-items: center; gap: 10px; }
.pay-ic { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; color: #c13584; }

/* Photo carousel (e.g. under the tech photo) */
.carousel { margin-top: 22px; }
.car-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: var(--r); }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.car-slide img { width: 100%; height: var(--car-h, auto); aspect-ratio: var(--car-ratio, 1 / 1); object-fit: cover; object-position: 50% 32%; border-radius: var(--r-lg); display: block; }
.carousel[style*="--car-h"] .car-slide img { aspect-ratio: auto; }
.car-2 { --car-ratio: 3 / 4; } .car-2 .car-slide { flex-basis: calc(50% - 6px); }
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.car-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.car-btn svg { width: 18px; height: 18px; } .car-btn[data-car-prev] svg { transform: rotate(180deg); }
.car-dots { display: flex; gap: 8px; } .car-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.car-dots button[aria-current] { background: var(--teal); width: 22px; border-radius: 99px; }

/* Above-footer badges */
.footer-badges { background: #fff; border-top: 1px solid var(--line); padding: 34px 0; }
.fb-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 6vw, 70px); }
.fb-item { margin: 0; display: grid; justify-items: center; gap: 6px; } .fb-item img { height: 92px; width: auto; }
.fb-item.round img { height: 110px; } .fb-item figcaption { font-size: .8rem; font-weight: 700; color: var(--slate); letter-spacing: .04em; }

/* Footer legal links + cookie banner */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: .88rem; }
.legal-links a, .link-btn { color: inherit; opacity: .85; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 20px; border-radius: var(--r); background: #fff; color: var(--ink); box-shadow: 0 20px 50px -10px rgb(0 0 0 / .35); border: 1px solid var(--line); }
.cookie-bar[hidden] { display: none; } .cookie-bar p { margin: 0; flex: 1 1 320px; font-size: .92rem; } .cookie-bar a { color: var(--teal); }
.cookie-actions { display: flex; gap: 10px; }
@media (max-width: 760px) { .cookie-bar { bottom: 84px; } }

/* Legal pages */
.legal-hero .legal-date { color: var(--slate); font-size: .9rem; margin-top: 10px; }
.legal-in { max-width: 780px; }
.legal-in section + section { margin-top: 30px; }
.legal-in h2 { font-size: 1.35rem; margin-bottom: 10px; }
.legal-in p, .legal-in li { color: var(--slate); } .legal-in ul { padding-left: 1.2em; } .legal-in li + li { margin-top: 6px; }
