:root {
  --teal: #0F766E;
  --mint: #5EEAD4;
  --coral: #FF6B5B;
  --bg: #F8FAFA;
  --surface: #FFFFFF;
  --text: #1E293B;
  --muted: #64748B;
  --whatsapp: #25D366;
  --grad: linear-gradient(135deg, var(--teal), var(--mint));
  --shadow: 0 10px 30px rgba(15,118,110,0.08);
  --shadow-lg: 0 20px 50px rgba(15,118,110,0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --space: 8px;
  --maxw: 1140px;
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --nav-h: 88px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B1F1E;
  --surface: #102A29;
  --text: #E2F3F0;
  --muted: #94B4B0;
  --shadow: 0 10px 30px rgba(0,0,0,0.4);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1, h2 { font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; display: block; }
section { padding: clamp(48px, 8vw, 96px) 0; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-family: var(--font-body); font-size: 1rem;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
#site-nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
#site-nav.scrolled { background: rgba(248,250,250,0.8); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
:root[data-theme="dark"] #site-nav.scrolled { background: rgba(11,31,30,0.8); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; padding: 4px 0; }
.brand-logo-img { height: 68px; width: auto; max-width: 260px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08)); transition: transform .2s ease; }
.brand:hover .brand-logo-img { transform: scale(1.03); }
:root[data-theme="dark"] .brand-logo-img { filter: drop-shadow(0 0 10px rgba(255,255,255,0.45)) brightness(1.15); }

.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-link { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.nav-link:hover { color: var(--teal); }

.nav-cta { margin-left: 4px; flex-shrink: 0; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid rgba(15,118,110,0.18); background: var(--surface); color: var(--teal); cursor: pointer; transition: background .2s, border-color .2s, transform .1s; }
.icon-btn:hover { border-color: var(--teal); background: rgba(15,118,110,0.06); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
:root[data-theme="dark"] .icon-btn { color: var(--mint); border-color: rgba(94,234,212,0.25); }
/* show moon in light mode (tap for dark), sun in dark mode */
.theme-toggle .i-sun, :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
.hamburger { display: none; }
.hamburger .i-close, .hamburger[aria-expanded="true"] .i-menu { display: none; }
.hamburger[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 760px) {
  .navbar { gap: 8px; }
  .brand-logo-img { height: 56px; }
  .nav-actions { margin-left: auto; }
  .hamburger { display: inline-grid; }
  .nav-cta { display: none; }
  .nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: var(--surface); padding: 16px 24px; box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; align-items: stretch; gap: 0; }
  .nav-links .nav-link { padding: 12px 0; border-bottom: 1px solid rgba(15,118,110,0.08); }
  .nav-links .nav-link:last-child { border-bottom: 0; }
}
.footer { background: var(--surface); border-top: 1px solid rgba(15,118,110,0.1); padding: 48px 0 24px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-link, .footer h3 { color: var(--text); }
.muted { color: var(--muted); }
.copyright { text-align: center; color: var(--muted); padding: 24px 0 0; margin: 24px 0 0; border-top: 1px solid rgba(15,118,110,0.08); }
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px;
  border-radius: 50%; background: var(--whatsapp); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(37,211,102,0.4); z-index: 999; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }
@media (prefers-reduced-motion: reduce) { .whatsapp-float { animation: none; } }

/* Hero & Trust Bar */
.hero { padding: clamp(48px, 10vw, 120px) 0; background: linear-gradient(135deg, rgba(94,234,212,0.12), rgba(15,118,110,0.06)); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-art { display: block; margin: 0 auto; width: 100%; max-width: 480px; height: auto; }
@media (max-width: 819px) { .hero-art { max-width: 340px; } }
.trust-bar { padding: 32px 0; background: var(--surface); }
.trust-grid { text-align: center; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--teal); }
.trust-item span { font-size: .9rem; }

.service-card { display: flex; flex-direction: column; gap: 8px; }
.service-icon { font-size: 2rem; }
.service-link { margin-top: auto; font-weight: 600; }
.service-link:hover { text-decoration: underline; }

/* Why Choose Us & Technology */
.alt { background: var(--surface); }
.tech-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tech-img-wrap { overflow: hidden; aspect-ratio: 4/3; width: 100%; background: var(--surface); }
.tech-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tech-card:hover .tech-img { transform: scale(1.05); }
.tech-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tech-dot { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); margin: 20px 20px 0 20px; }

/* Doctors */
.doctor-card { display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.doctor-card img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; }
.doctor-card .badge { position: absolute; top: 16px; right: 16px; background: var(--grad); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.doctor-card .spec { color: var(--teal); font-weight: 600; margin: 4px 0 0; }
.doctor-card .qual { font-size: .9rem; }

/* Testimonials carousel */
.carousel { position: relative; min-height: 160px; }
.carousel-item { display: none; margin: 0; text-align: center; }
.carousel-item.active { display: block; animation: fade .5s ease; }
.carousel-item blockquote { font-size: 1.2rem; font-style: italic; }
.carousel-item figcaption { color: var(--muted); margin-top: 12px; }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(15,118,110,0.25); cursor: pointer; padding: 0; }
.dot.active { background: var(--teal); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .carousel-item.active { animation: none; } }

/* Appointment form */
.appointment-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .appointment-grid { grid-template-columns: 0.8fr 1.2fr; } }
.field { margin-bottom: 14px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .9rem; }
input, select, textarea { width: 100%; padding: 12px; border-radius: var(--radius-sm); border: 1px solid rgba(15,118,110,0.25); background: var(--bg); color: var(--text); font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form-errors { color: #b91c1c; margin: 8px 0; }
@media (max-width: 560px) { .field-row { flex-direction: column; gap: 0; } }
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-weight: 500; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-row legend { width: 100%; }
.choice { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border: 1px solid rgba(15,118,110,0.25); border-radius: 999px; background: var(--bg); cursor: pointer; font-weight: 500; }
.choice input { width: auto; margin: 0; accent-color: var(--teal); }
.choice:has(input:checked) { border-color: var(--teal); background: rgba(15,118,110,0.08); color: var(--teal); }
select:disabled { opacity: .6; cursor: not-allowed; }
.field-hint { font-size: .85rem; margin: -6px 0 12px; }
.field-hint:empty { display: none; }
button[type=submit] + .field-hint { margin: 10px 0 0; }
:root[data-theme="dark"] .form-errors { color: #fca5a5; }

.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }



/* Before/After drag slider */
.ba-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); justify-items: center; margin-top: 24px; }
/* width: 100% is required: the photos are absolutely positioned, so without
   it the slider shrinks to 0×0 inside the grid and the section looks empty */
.ba-slider { --pos: 50%; position: relative; width: 100%; max-width: 440px; aspect-ratio: 426/540; border-radius: var(--radius); overflow: hidden; user-select: none; box-shadow: var(--shadow-lg); background: var(--surface); }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { z-index: 1; }
.ba-before { z-index: 2; }
.ba-slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0; }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); z-index: 3; pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,.25); }
.ba-handle { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--teal); transform: translate(-50%,-50%); display: grid; place-items: center; font-size: .8rem; font-weight: 700; letter-spacing: -1px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ba-label { position: absolute; top: 14px; z-index: 4; padding: 4px 12px; border-radius: 999px; background: rgba(15,23,42,.65); color: #fff; font-size: .8rem; font-weight: 600; pointer-events: none; }
.ba-label.before { left: 14px; }
.ba-label.after { right: 14px; }
.ba-slider:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.ba-caption { text-align: center; margin-top: 12px; font-size: .9rem; }

/* FAQ accordion */
.faq { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 12px; padding: 0 20px; }
.faq summary { padding: 18px 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--teal); }
.faq[open] summary::after { content: '−'; }
.faq p { padding-bottom: 18px; margin: 0; }

/* Estimator */
.estimator-grid { display: grid; gap: 32px; }
@media (min-width:820px){ .estimator-grid { grid-template-columns: 0.8fr 1.2fr; } }
.est-result { font-family: var(--font-head); font-size: 1.4rem; color: var(--teal); }

/* Emergency banner */
.emergency-banner { background: var(--coral); color: #fff; text-align: center; padding: 10px; font-weight: 600; }
.emergency-banner a { color: #fff; text-decoration: underline; white-space: nowrap; }
@media (max-width: 600px) { .emergency-banner { font-size: .9rem; padding: 8px 12px; } .emergency-banner .eb-long { display: none; } }

/* Sticky mobile CTA bar */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; gap: 12px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -6px 20px rgba(0,0,0,0.12); z-index: 998; transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.mobile-cta.show { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
.mobile-cta .btn { flex: 1; justify-content: center; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
  .whatsapp-float { transition: bottom .3s ease; }
  body.cta-on .whatsapp-float { bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) { .mobile-cta, .mobile-cta.show, .whatsapp-float { transition: none; } }

.newsletter { text-align: center; }
.newsletter form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.newsletter input { flex: 1; min-width: 200px; }
.nl-toast { color: var(--teal); font-weight: 600; margin-top: 16px; }

.video-block { text-align: center; margin-top: 40px; }
.video-block video { max-width: 480px; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.doctor-card .langs { font-size: .9rem; color: var(--teal); margin: 4px 0 0; }

/* Open-now badge */
.open-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; padding: 6px 12px; border-radius: 999px; margin: 4px 0 0; }
.open-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: #047857; background: rgba(16,185,129,.12); }
.open-status.is-open::before { box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 2s infinite; }
.open-status.is-closed { color: #b45309; background: rgba(245,158,11,.14); }
:root[data-theme="dark"] .open-status.is-open { color: #6ee7b7; }
:root[data-theme="dark"] .open-status.is-closed { color: #fcd34d; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
@media (prefers-reduced-motion: reduce) { .open-status.is-open::before { animation: none; } }

/* More treatments */
.sub-head { margin-top: 40px; }
.mini-service { display: flex; gap: 14px; align-items: flex-start; color: var(--text); padding: 18px; }
.mini-service strong { display: block; margin-bottom: 4px; }
.mini-service .muted { font-size: .88rem; }
.mini-service:hover { transform: translateY(-2px); }
.service-icon.sm { font-size: 1.5rem; line-height: 1; }
.center-link { text-align: center; margin-top: 28px; font-weight: 600; }

/* First visit */
.first-visit-grid { display: grid; gap: 28px; margin-top: 24px; }
@media (min-width: 900px) { .first-visit-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.visit-steps { list-style: none; padding: 0; margin: 0; counter-reset: v; display: grid; gap: 14px; }
.visit-steps li { counter-increment: v; position: relative; padding: 16px 16px 16px 64px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.visit-steps li::before { content: counter(v); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; }
.visit-steps strong { display: block; margin-bottom: 4px; }
.visit-facts, .bring-list { list-style: none; padding: 0; margin: 0 0 16px; }
.visit-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(15,118,110,.1); }
.visit-facts li span { color: var(--muted); }
.visit-facts li strong { text-align: right; }
.visit-card h4 { margin: 8px 0; }
.bring-list li { padding: 4px 0 4px 24px; position: relative; }
.bring-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* Plus Jakarta Sans puts extra space before a heavy comma; pull it in */
.tight-comma { margin-left: -0.14em; }
