/* ==========================================================================
   Dentasis – static site styles. Mobile-first, light (day) / dark (night).
   ========================================================================== */

@font-face { font-family: 'Jakarta'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/jakarta-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jakarta'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/jakarta-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/assets/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --bg: #faf7fb;
  --bg-alt: #f3edf5;
  --surface: #ffffff;
  --surface-2: #f7f2f8;
  --text: #1f1a24;
  --muted: #5f5768;
  --line: #e6dde9;
  --primary: #7b2d8e;
  --primary-hover: #66207a;
  --primary-soft: #f1e4f5;
  --on-primary: #ffffff;
  --accent: #0f8f80;
  --accent-soft: #dcf3ef;
  --shadow: 0 1px 2px rgba(40, 16, 48, .06), 0 8px 24px -8px rgba(40, 16, 48, .14);
  --shadow-lg: 0 24px 60px -20px rgba(60, 20, 75, .35);
  --band: linear-gradient(135deg, #6b2380 0%, #8f3a9e 55%, #a8509f 100%);
  --blob: radial-gradient(closest-side, #e9c9f1, transparent), radial-gradient(closest-side, #c9efe8, transparent);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --header-h: 68px;
  --ff-body: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ff-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #131016;
  --bg-alt: #1a161e;
  --surface: #211c26;
  --surface-2: #29232f;
  --text: #f1ecf4;
  --muted: #b3a9bb;
  --line: #3a3241;
  --primary: #d59be4;
  --primary-hover: #e3b7ee;
  --primary-soft: #3a2542;
  --on-primary: #1c0f22;
  --accent: #5fd4c4;
  --accent-soft: #163a36;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -8px rgba(0, 0, 0, .55);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --band: linear-gradient(135deg, #3d1749 0%, #57205f 55%, #6b2a67 100%);
  --blob: radial-gradient(closest-side, rgba(170, 80, 190, .35), transparent), radial-gradient(closest-side, rgba(40, 160, 145, .25), transparent);
  color-scheme: dark;
}

/* No-JS fallback: follow the OS preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #131016; --bg-alt: #1a161e; --surface: #211c26; --surface-2: #29232f; --text: #f1ecf4; --muted: #b3a9bb;
    --line: #3a3241; --primary: #d59be4; --primary-hover: #e3b7ee; --primary-soft: #3a2542; --on-primary: #1c0f22;
    --accent: #5fd4c4; --accent-soft: #163a36; --band: linear-gradient(135deg, #3d1749 0%, #57205f 55%, #6b2a67 100%);
    --blob: radial-gradient(closest-side, rgba(170, 80, 190, .35), transparent), radial-gradient(closest-side, rgba(40, 160, 145, .25), transparent);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--ff-body); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { font-family: var(--ff-head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left)); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .7em 1.3em;
  border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: #5b1d6b; }
.btn-light:hover { background: #f6eaf8; color: #5b1d6b; }
.btn-light-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-light-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
/* WhatsApp: neutral button with the brand-green icon (white on #25D366 fails contrast) */
.btn-wa { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-wa .i, .cb-wa .i, .contact-row > .i-wa { color: #25d366; }
.btn-wa:hover { border-color: #25d366; color: var(--text); }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .92rem; }
.btn-lg { min-height: 52px; padding: .8em 1.5em; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Top bar + header ---------- */
.topbar { display: none; background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: .4em; }
.topbar-r { gap: 1.2rem !important; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--primary); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; padding-top: env(safe-area-inset-top);
}
/* Glass effect lives on a pseudo-element: backdrop-filter on the header itself would become the
   containing block for the fixed mobile menu and clip it to the header's height. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header::before { background: var(--bg); } }
.nav-open .site-header::before { background: var(--bg); }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .4); }
.header-in { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); margin-right: auto; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: var(--on-primary); }
.logo-ico { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.logo-text { display: flex; flex-wrap: wrap; line-height: 1; font-family: var(--ff-head); font-size: 1.45rem; font-weight: 600; max-width: 12.5rem; }
.logo-text b { color: var(--primary); font-weight: 600; }
.logo-text small { flex-basis: 100%; font-family: var(--ff-body); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 600; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle, .nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--surface); cursor: pointer; color: var(--text); transition: border-color .2s, color .2s, transform .3s;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .i { width: 20px; height: 20px; }
.i-moon, [data-theme='dark'] .i-sun { display: none; }
[data-theme='dark'] .i-moon { display: block; }
.nav-toggle .i-close, .nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.hide-sm { display: none; }

/* Mobile nav drawer */
@media (max-width: 959.98px) {
  .main-nav {
    /* Full-screen sheet (top 0) so nothing of the page can show through above it; logo + buttons sit on top */
    position: fixed; inset: 0; z-index: 49; background: var(--bg);
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 1.2rem) 20px calc(2rem + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li a { display: block; padding: 1rem .25rem; font-size: 1.15rem; font-family: var(--ff-head); }
  .nav-mobile-extra { display: grid; gap: .6rem; margin-top: 1.5rem; }
  html.nav-open { overflow: hidden; }
  .site-header .logo, .site-header .header-actions { position: relative; z-index: 51; }
  .nav-open .site-header { box-shadow: none; }
}
@media (min-width: 560px) { .hide-sm { display: inline-flex; } }
@media (min-width: 960px) {
  .topbar { display: block; }
  .nav-toggle, .nav-mobile-extra { display: none; }
  .main-nav ul { display: flex; gap: 1.6rem; }
  .main-nav a { font-size: .95rem; position: relative; padding-block: .4rem; }
  .main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .25s; border-radius: 2px; }
  .main-nav a:hover::after { transform: scaleX(1); }
  .logo { margin-right: 0; }
  .main-nav { margin-inline: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem); }
.hero-in { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .4em; padding: .35em .9em; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .85rem; margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--primary); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.6rem 1.4rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .93rem; font-weight: 500; }
.hero-chips li { display: inline-flex; align-items: center; gap: .45em; }
.hero-chips .i { color: var(--accent); }
.hero-media { position: relative; }
.hero-blob { position: absolute; inset: -18% -20% -10% -10%; background: var(--blob); background-size: 70% 70%, 60% 60%; background-position: 10% 10%, 90% 90%; background-repeat: no-repeat; z-index: -1; filter: blur(10px); }
.hero-photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1024 / 618; transform: rotate(-1.2deg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .hero-in { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p:last-child { color: var(--muted); }
.kicker { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }

/* About */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.stats div { padding: 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--ff-head); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); color: var(--primary); line-height: 1.1; }
.stats span { font-size: .82rem; color: var(--muted); line-height: 1.3; display: block; margin-top: .25rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gallery-item { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--surface-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery .g0 { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; } .gallery { grid-template-columns: repeat(3, 1fr); } .gallery .g0 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } .gallery .g4 { grid-column: span 2; aspect-ratio: auto; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 6, 12, .85); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 14px; }
.lightbox button { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* Services */
.services { display: grid; gap: 1rem; }
.service {
  display: flex; flex-direction: column; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.service-top { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.service-top h3 { margin: 0; font-size: 1.15rem; }
.service-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); flex: none; }
.service-ico .i { width: 26px; height: 26px; }
.service > p { color: var(--muted); font-size: .96rem; }
.service-link { margin-top: auto; padding-top: .75rem; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.service-link .i { transition: transform .2s; }
.service-link:hover .i { transform: translateX(3px); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.service details summary { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; font-size: .92rem; color: var(--text); padding: .3rem 0; }
.service details summary span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); transition: transform .25s; }
.service details[open] summary span { transform: rotate(45deg); }
.details-body { font-size: .94rem; color: var(--muted); padding-top: .5rem; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(4, 1fr); } }

/* Reasons */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: r; }
.reasons li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.reasons .num { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 600; color: var(--primary); line-height: 1; min-width: 2ch; }
.reasons strong { display: block; font-size: 1.02rem; }
.reasons span:not(.num) { color: var(--muted); font-size: .92rem; }
@media (min-width: 640px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .reasons { grid-template-columns: repeat(3, 1fr); } }

/* Team */
.team { display: grid; gap: 1.5rem; }
.doctor { display: grid; gap: 1.25rem; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.doctor-img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--primary-soft); }
.doctor h3 { margin-bottom: .2rem; font-size: 1.35rem; }
.role { color: var(--accent); font-weight: 600; font-size: .9rem; }
.doctor-body p:not(.role) { color: var(--muted); font-size: .95rem; }
@media (min-width: 720px) { .doctor { grid-template-columns: 160px 1fr; align-items: start; padding: 2rem; } .doctor-img { width: 160px; height: 160px; } }
@media (min-width: 1100px) { .team { grid-template-columns: 1fr 1fr; } }

/* Before / after */
.ba-grid { display: grid; gap: 1.5rem; }
.ba { margin: 0; }
.ba-frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 444 / 244; box-shadow: var(--shadow); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 10px rgba(0, 0, 0, .3); }
.ba-handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #5b1d6b; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); letter-spacing: 2px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + .ba-handle, .ba-frame:focus-within .ba-handle::after { outline: 3px solid var(--accent); }
.ba-tag { position: absolute; top: 12px; padding: .25em .7em; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem; font-weight: 600; pointer-events: none; }
.ba-tag-l { left: 12px; } .ba-tag-r { right: 12px; }
.ba figcaption { text-align: center; margin-top: .75rem; color: var(--muted); font-size: .9rem; }
@media (min-width: 760px) { .ba-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

/* Tabs / prices */
.tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tablist { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem; border-bottom: 1px solid var(--line); scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.tablist::-webkit-scrollbar { display: none; }
.tablist [role='tab'] {
  flex: none; padding: .6rem 1rem; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: .92rem;
  color: var(--muted); white-space: nowrap; scroll-snap-align: start; transition: background-color .2s, color .2s; min-height: 44px;
}
.tablist [role='tab']:hover { color: var(--text); background: var(--surface-2); }
.tablist [role='tab'][aria-selected='true'] { background: var(--primary); color: var(--on-primary); }
.tabpanel { padding: .5rem; }
.tabpanel:focus-visible { outline-offset: -3px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1rem; }
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.price-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr:nth-child(even) { background: var(--surface-2); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-table td.free { color: var(--accent); }
/* Home page price list: compact rows, 2 columns on desktop, collapsible long groups */
.price-list { list-style: none; margin: 0; padding: .25rem .75rem; font-size: .95rem; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem .25rem; border-bottom: 1px solid var(--line); break-inside: avoid; }
.pl-price { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-price.free { color: var(--accent); }
.price-list.is-collapsed .more { display: none; }
.price-more { display: flex; justify-content: center; padding: .75rem .75rem 1rem; }
@media (min-width: 900px) { .price-list { columns: 2; column-gap: 3rem; padding: .5rem 1.5rem; } }
.note { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

/* Reviews */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1.25rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.review { scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.review-q { width: 32px; height: 32px; color: var(--primary); opacity: .5; fill: currentColor; stroke: none; }
.review blockquote { margin: .75rem 0 1rem; flex: 1; }
.review blockquote p { margin: 0; font-size: .98rem; }
.review figcaption strong { display: block; }
.review figcaption span { color: var(--muted); font-size: .88rem; }

/* CTA band */
.cta-band { background: var(--band); color: #fff; }
.cta-in { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .9; max-width: 60ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1fr auto; } }

/* Article cards */
.cards { display: grid; gap: 1.25rem; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem; flex: 1; }
.card-body strong { font-family: var(--ff-head); font-size: 1.15rem; line-height: 1.25; font-weight: 600; }
.card-body > span:not(.card-more) { color: var(--muted); font-size: .92rem; }
.card-more { margin-top: auto; padding-top: .5rem; color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }
/* Articles on the home page: horizontal slider (like the testimonials); 4 visible on desktop */
.cards-scroll {
  grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1.25rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.cards-scroll .card { scroll-snap-align: start; }
.cards-scroll .card:hover { transform: none; }
/* desktop: 4 cards + a peek of the 5th, so it's obvious there are more to scroll */
@media (min-width: 1100px) { .cards-scroll { grid-template-columns: none; grid-auto-columns: calc((100% - 4rem) / 4.3); } }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem; font-weight: 600; }
.faq summary span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 1.2rem; transition: transform .25s; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 1.5rem; }
.contact-card { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-row { display: flex; gap: 1rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.contact-row > .i { width: 22px; height: 22px; color: var(--primary); margin-top: 3px; }
.contact-row div { display: grid; align-content: start; }
.contact-row strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-row a { font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
/* Compact contact block (fits a 1366×768 laptop screen) */
#contact.section { padding-block: clamp(3rem, 5vw, 4.5rem); }
.contact-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .5rem; }
.contact-card .contact-row { padding-block: .75rem; }
@media (min-width: 480px) {
  .contact-pair { display: grid; grid-template-columns: auto 1fr; column-gap: 2rem; border-bottom: 1px solid var(--line); }
  .contact-pair .contact-row { border-bottom: 0; }
}
.contact-actions { margin-top: 1.25rem; }
.map { position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #f2efe9; }
.map-link { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s ease; }
.map-link:hover .map-img { transform: scale(1.03); }
[data-theme='dark'] .map-img { filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95); }
.map-marker { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); pointer-events: none; }
.map-pin { width: 46px; height: 46px; color: #fff; fill: #7b2d8e; stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.map-label { display: grid; text-align: center; margin-bottom: 4px; padding: .45rem .8rem; border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); line-height: 1.25; white-space: nowrap; }
.map-label strong { color: var(--primary); }
.map-label small { color: var(--muted); font-size: .78rem; }
.map-cta { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: .45em; padding: .55rem 1rem; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); }
.map-attr { position: absolute; right: 0; bottom: 0; padding: 2px 6px; font-size: .7rem; background: rgba(255, 255, 255, .8); color: #333; text-decoration: none; border-top-left-radius: 6px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } .map { min-height: 100%; } }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); max-width: 22ch; }
.page-hero.center h1, .page-hero.center .lead { margin-inline: auto; }
.meta { font-size: .86rem; color: var(--muted); margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1.25rem; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: .35rem; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.big404 { font-family: var(--ff-head); font-size: clamp(5rem, 15vw, 9rem); line-height: 1; color: var(--primary); margin: 0; }

.article-layout { display: grid; gap: 2.5rem; padding-block: clamp(2rem, 5vw, 4rem); }
.prose { max-width: 72ch; font-size: 1.04rem; min-width: 0; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--primary); }
.prose figure { margin: 1.75rem 0; }
.prose figure img { border-radius: var(--radius-sm); width: 100%; border: 1px solid var(--line); }
.prose figcaption { font-size: .86rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.prose .float-img { width: 100%; max-width: 260px; border-radius: var(--radius); margin: 0 auto 1.5rem; }
.figure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.5rem 0; }
.figure-grid img { border-radius: var(--radius-sm); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.callout { margin: 1.75rem 0; padding: 1.25rem 1.4rem; border-radius: var(--radius-sm); background: var(--primary-soft); border-left: 4px solid var(--primary); }
.callout strong { display: block; margin-bottom: .3rem; }
.callout p { margin: 0; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist .i { color: var(--accent); margin-top: .25em; }
.prose .faq { margin-top: 1rem; }
.prose .price-table { font-size: .93rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
@media (min-width: 640px) { .prose .float-img { float: right; margin: .3rem 0 1rem 1.75rem; } }

.article-aside { display: grid; gap: 1.25rem; align-content: start; }
.aside-card { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: .75rem; }
.aside-card h2 { font-size: 1.2rem; margin: 0; }
.aside-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.aside-link { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; text-decoration: none; font-size: .94rem; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.aside-list a { display: block; padding: .45rem 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); font-size: .95rem; }
.aside-list a:hover { color: var(--primary); }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; } .article-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

/* Documents */
.docs { display: grid; gap: 2rem; padding-block: clamp(2rem, 5vw, 4rem); }
.docs h2 { font-size: 1.4rem; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.doc-list a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; transition: border-color .2s, transform .2s; }
.doc-list a:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--text); }
.doc-list a > .i:first-child { width: 28px; height: 28px; color: var(--primary); }
.doc-list a > .i:last-child { margin-left: auto; color: var(--muted); }
.doc-list span { display: grid; }
.doc-list small { color: var(--muted); font-weight: 500; font-size: .8rem; }
@media (min-width: 860px) { .docs { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid .logo { margin-bottom: 1rem; }
.footer-h { font-family: var(--ff-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; }
.site-footer address p { display: flex; gap: .6rem; margin-bottom: .6rem; }
.site-footer address .i { color: var(--primary); margin-top: .25em; }
.site-footer address a, .footer-links a { color: var(--text); text-decoration: none; }
.site-footer address a:hover, .footer-links a:hover { color: var(--primary); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.social { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1.5rem calc(1.5rem + 64px + env(safe-area-inset-bottom)); margin-top: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 3rem; } }

/* Mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem;
  padding: .6rem max(12px, env(safe-area-inset-left)) calc(.6rem + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
  background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s ease;
}
.callbar.show { transform: none; }
.callbar a { display: flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.callbar a { font-size: .95rem; gap: .35em; padding-inline: .25rem; white-space: nowrap; }
.callbar .i { flex: none; }
.callbar .cb-call { background: var(--primary); color: var(--on-primary); }
.callbar .cb-wa, .callbar .cb-dir { border: 1.5px solid var(--line); color: var(--text); background: var(--surface); }
@media (min-width: 960px) { .callbar { display: none; } .footer-bottom { padding-bottom: 1.5rem; } }

/* ---------- Reveal animations ---------- */
.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal-pending.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .callbar, .cta-band, .map, .article-aside, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.legal-wrap { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.prose a[href^="tel:"] { white-space: nowrap; }
/* First visit steps */
.visit-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.visit-steps li { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 1.25rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.visit-steps .vs-num { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: var(--ff-head); font-weight: 600; font-size: 1.1rem; margin-bottom: .35rem; }
.visit-steps strong { font-size: 1.05rem; }
.visit-steps span:not(.vs-num) { color: var(--muted); font-size: .93rem; }
@media (min-width: 640px) { .visit-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .visit-steps:not(.visit-steps--list) { grid-template-columns: repeat(4, 1fr); } }
.prose .visit-steps { margin: 1rem 0 1.25rem; padding-left: 0; }
.prose .visit-steps li { margin: 0; }
.visit-more { margin-top: 1.5rem; }
/* Google reviews */
.g-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.g-score { display: flex; align-items: center; gap: .9rem; }
.g-score strong { display: block; font-size: 1.02rem; }
.g-logo { width: 34px; height: 34px; flex: none; }
.g-rating { display: inline-flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.g-rating b { font-family: var(--ff-head); font-size: 1.5rem; line-height: 1; }
.g-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; }
.g-review-top { display: flex; justify-content: space-between; align-items: center; }
.g-review-top .g-logo { width: 20px; height: 20px; }
.g-review blockquote { margin-top: .9rem; }
.proto-note { margin: 0 0 1.25rem; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px dashed var(--accent); color: var(--text); font-size: .92rem; }
/* Before / after cases: one large comparison + thumbnails (without JS all cases are listed) */
.cases { max-width: 760px; margin-inline: auto; display: grid; gap: 1.5rem; }
.cases.is-js { gap: 0; }
.cases.is-js .case:not(.is-active) { display: none; }
.case-nav { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.case-thumbs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 3px; flex: 1; justify-content: safe center; }
.case-thumbs::-webkit-scrollbar { display: none; }
.case-thumb { flex: none; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; line-height: 0; }
.case-thumb img { width: 84px; height: auto; aspect-ratio: 800 / 440; object-fit: cover; }
.case-thumb:hover, .case-thumb[aria-current="true"] { opacity: 1; }
.case-thumb[aria-current="true"] { border-color: var(--primary); }
.case-arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.case-arrow:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 560px) { .case-thumb img { width: 64px; } .case-arrow { width: 40px; height: 40px; } }
