/* Dentalia — single stylesheet */
:root {
  --teal: #0e5e6f;
  --teal-700: #0a4855;
  --teal-50: #e6f4f1;
  --accent: #f2a65a;
  --accent-700: #d98a3d;
  --ink: #14232b;
  --muted: #4a5b63;
  --line: #d6e4e1;
  --bg: #ffffff;
  --bg-soft: #f5faf9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 94, 111, .10);
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-700); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--soft { background: var(--bg-soft); }
.section--mint { background: var(--teal-50); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-700); color: var(--ink); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-700); color: #fff; }
.btn--ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--teal); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

/* Header */
.topbar { background: var(--teal); color: #e8f3f1; font-size: .88rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; }
.logo svg { width: 36px; height: 36px; }
.logo span b { color: var(--teal); font-weight: 800; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: .5em .8em; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); background: var(--teal-50); }
.langs { display: flex; gap: 2px; font-size: .85rem; font-weight: 700; }
.langs a { padding: .35em .5em; border-radius: 6px; text-decoration: none; color: var(--muted); }
.langs a[aria-current="true"] { color: #fff; background: var(--teal); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 28px; height: 28px; }
.header .btn { padding: .6em 1.1em; font-size: .95rem; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; margin: 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 10px 20px 18px; }
  .nav a { padding: .8em .6em; font-size: 1.05rem; }
  .header .btn--wa { display: none; }
  .langs { margin-left: auto; }
  .menu-btn { order: 3; margin-left: 4px; }
}

/* Breadcrumbs */
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--teal-50), #fff); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.hero h1 span { color: var(--teal); }
.hero__img { position: relative; }
.hero__img img { border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.badge { position: absolute; left: -18px; bottom: 24px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-size: .9rem; line-height: 1.3; }
.badge strong { font-size: 1.6rem; color: var(--teal); }
.checks { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 8px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.page-hero { background: linear-gradient(180deg, var(--teal-50), #fff); }
.page-hero .wrap { padding-block: 10px clamp(36px, 5vw, 60px); }
.page-hero h1 { margin-top: .5em; max-width: 22ch; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat strong { display: block; font-size: 2rem; color: var(--teal); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { color: var(--ink); }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--teal); }
.ico { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; margin-bottom: 14px; }
.ico svg { width: 26px; height: 26px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev > :first-child { order: 2; }
.split img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; }
.doctor-img { background: #cfe8f3; border-radius: 22px; overflow: hidden; max-width: 380px; margin-inline: auto; }
.doctor-img img { box-shadow: none; border-radius: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Compare table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--teal-50); color: var(--teal-700); font-size: .92rem; }
tr:last-child td { border-bottom: 0; }

/* Prose (treatments, privacy) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.3em; }
.treat { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 100px; background: var(--bg-soft); border-radius: var(--radius); padding: 20px; font-size: .95rem; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--teal); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--teal); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; color: #fff; overflow: hidden; background: var(--teal-700); }
.cta-band picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta-band .wrap { position: relative; padding-block: clamp(56px, 8vw, 96px); max-width: 820px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3f1ee; font-size: 1.1rem; }
.cta-band .btns { justify-content: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ico { margin: 0; flex: none; }
.info-list strong { display: block; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #b9cdc9; border-radius: 10px; background: #fff; color: var(--ink); margin-bottom: 16px; }
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form small { display: block; color: var(--muted); margin-top: 10px; }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); background: var(--bg-soft); }

/* Footer */
.footer { background: var(--ink); color: #c4d2d6; font-size: .95rem; padding-top: 56px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .logo { color: #fff; }
.footer .logo span b { color: #7fd1c4; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer h2 { font-size: 1rem; color: #fff; margin-bottom: 1em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; }

/* Mobile CTA bar */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .mbar .btn { justify-content: center; padding: .75em; }
  body { padding-bottom: 72px; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .split, .contact-grid, .treat { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split--rev > :first-child { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc { position: static; }
  .badge { left: 12px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid--3, .grid--2, .steps, .footer-grid, .form .row { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px 10px; }
  .stat strong { font-size: 1.6rem; }
  .topbar .hide-sm { display: none; }
  .logo { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
