/* ---------- Tokens ---------- */
:root {
  --teal: #0f5257;
  --teal-2: #0b3f43;
  --mint: #7fd1c7;
  --mint-soft: #e3f4f1;
  --ink: #18282a;
  --muted: #546466;
  --line: #dde6e5;
  --bg: #fbfaf7;
  --tint: #f0f5f3;
  --white: #ffffff;
  --whatsapp: #1fa855;
  --radius: 18px;
  --shadow: 0 14px 34px -16px rgba(15, 82, 87, .35);
  --container: 1120px;
  --serif: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: .8rem; color: var(--muted); margin: .75rem 0 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.demo-banner {
  background: #fff4e6; color: #7a3e06; text-align: center;
  font-size: .82rem; padding: 8px 16px; border-bottom: 1px solid #f6d9b6;
}
.demo-banner a { font-weight: 700; color: inherit; margin-left: 6px; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { background: var(--white); color: var(--teal); border-color: var(--line); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #18914a; }
.btn-outline { border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--teal); margin-bottom: .75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1; }
.brand small { display: block; font-family: "DM Sans", sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand-light { color: #fff; }
.brand-light small { color: var(--mint); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--muted); font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--teal); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--teal); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: var(--mint-soft); color: var(--teal);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1fa855; }
.status.closed { background: #f3eee8; color: #6b4a2a; }
.status.closed::before { background: #c27c3a; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust li { font-size: .88rem; color: var(--muted); padding-left: 14px; border-left: 3px solid var(--mint); }
.trust strong { display: block; color: var(--ink); font-size: .95rem; }

.hero-visual { position: relative; min-height: 400px; display: grid; place-items: center; }
.blob {
  position: absolute; inset: 6% 4%;
  background: radial-gradient(circle at 30% 30%, var(--mint), #b9e6df 55%, var(--mint-soft));
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  animation: morph 12s ease-in-out infinite alternate;
}
@keyframes morph {
  to { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; }
}
.tooth { position: relative; width: 52%; filter: drop-shadow(0 20px 30px rgba(15, 82, 87, .25)); }
.float-card {
  position: absolute; background: var(--white); border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; font-size: .85rem;
}
.float-card strong { display: block; }
.float-card span { color: var(--muted); }
.float-a { left: 0; bottom: 14%; }
.float-b { right: 2%; top: 12%; flex-direction: column; align-items: flex-start; gap: 0; }
.float-b strong { font-size: 1.2rem; color: var(--teal); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #1fa855; box-shadow: 0 0 0 4px #d6f2e0; flex: none; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head p:last-child:not(.eyebrow) { color: var(--muted); }
.section-head.center { margin-inline: auto; }

/* Treatments */
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.treat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.treat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.treat-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint-soft); color: var(--teal); font-size: 1.4rem; font-weight: 700; margin-bottom: 18px;
}
.treat p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Doctors */
.doctor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.doctor { display: flex; gap: 24px; background: var(--white); border-radius: var(--radius); padding: 28px; align-items: flex-start; }
.doc-avatar {
  flex: none; width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.8rem; color: #fff;
  background: linear-gradient(135deg, var(--teal), #2a8a86);
}
.doc-avatar.alt { background: linear-gradient(135deg, #2a6f97, #5aa9b5); }
.doctor .role { color: var(--teal); font-weight: 700; font-size: .9rem; margin-bottom: .5em; }
.doctor p { color: var(--muted); font-size: .95rem; margin-bottom: .5em; }
.doctor .langs { font-size: .85rem; margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { position: relative; padding: 28px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.steps span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; background: var(--white); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 1.1rem; line-height: 1.5; }
.quote figcaption { font-size: .88rem; color: var(--muted); font-weight: 600; }
.quote em { font-weight: 400; }

/* Booking */
.book-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.booking-form, .timings { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
.booking-form { box-shadow: var(--shadow); }
.booking-form h2, .timings h2 { font-size: 1.7rem; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 82, 87, .15); }
.field [aria-invalid="true"] { border-color: #c81e1e; }
.error { color: #c81e1e; font-size: .82rem; margin: 4px 0 0; }
.error:empty { display: none; }
.booking-form .fine { text-align: center; }

.hours { width: 100%; border-collapse: collapse; font-size: .93rem; margin-bottom: 24px; }
.hours th, .hours td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; width: 34%; }
.hours td { color: var(--muted); }
.hours tr.today { background: var(--mint-soft); }
.hours tr.today th { color: var(--teal); }
.hours tr.today th::after { content: " · Today"; font-size: .78rem; font-weight: 700; }
.contact-block p { display: grid; margin-bottom: 12px; }
.contact-block span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--teal); }
.contact-block a { text-decoration: none; font-weight: 700; }
.contact-block em { color: var(--muted); font-size: .85rem; }
.emergency { margin: 20px 0 0; padding: 14px 16px; border-radius: 12px; background: #fff4e6; color: #6b3b06; font-size: .9rem; }

/* FAQ */
.faq details { background: var(--white); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--teal); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Footer */
.site-footer { background: var(--teal-2); color: #c5dcda; padding: 56px 0 24px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-grid p { margin-top: 14px; max-width: 360px; font-size: .92rem; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer-grid nav a { text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer-grid nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; font-size: .82rem; color: #8fb3b0; }

/* Floating WhatsApp (desktop) and action bar (mobile) */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--whatsapp); color: #fff; box-shadow: 0 10px 25px -5px rgba(31, 168, 85, .55);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.mobile-bar { display: none; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .treat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    box-shadow: 0 20px 30px -20px rgba(15, 82, 87, .3);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .btn { margin-top: 14px; }

  .hero { padding: 40px 0 56px; }
  .hero-grid, .book-grid, .doctor-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; order: -1; }
  .quote-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }

  body { padding-bottom: 64px; }
  .whatsapp-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(15, 82, 87, .3);
  }
  .mobile-bar a {
    display: grid; place-items: center; height: 60px; text-decoration: none;
    font-weight: 700; color: var(--teal);
  }
  .mobile-bar a + a { border-left: 1px solid var(--line); }
  .mobile-bar .primary { background: var(--teal); color: #fff; }
}

@media (max-width: 560px) {
  .treat-grid, .steps, .field-row, .trust { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .doctor { flex-direction: column; gap: 16px; }
  .booking-form, .timings { padding: 22px; }
  .float-a { left: 0; bottom: 4%; }
  .float-b { right: 0; top: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
