/* Layout: hero em duas colunas (texto + retrato), depois duas áreas de atuação lado a lado, etapas do atendimento, sobre, dúvidas e contato. */
:root {
  --bg: #F2F5F5;
  --surface: #FFFFFF;
  --ink: #12292D;
  --muted: #4A6064;
  --line: #D5DEDF;
  --petrol: #1B5A62;
  --petrol-ink: #FFFFFF;
  --soft: #DDEBEA;
  --amber: #E2A24A;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1A1C; --surface: #152427; --ink: #E6EFEF; --muted: #9DB3B5;
    --line: #26393C; --petrol: #6CC1C8; --petrol-ink: #0E1A1C; --soft: #17302F; --amber: #E7B466;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1A1C; --surface: #152427; --ink: #E6EFEF; --muted: #9DB3B5;
  --line: #26393C; --petrol: #6CC1C8; --petrol-ink: #0E1A1C; --soft: #17302F; --amber: #E7B466;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
}
.wrap { max-width: 1080px; margin: 0 auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--petrol); }

/* Topo */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; text-decoration: none; line-height: 1.2; min-width: 0; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
nav.menu { display: flex; align-items: center; gap: 22px; }
nav.menu a.link { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--muted); }
nav.menu a.link:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--petrol); color: var(--petrol-ink); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid var(--petrol); cursor: pointer; font-family: inherit; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--petrol); filter: none; }
.btn.small { padding: 9px 18px; font-size: 0.92rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-block: 36px 72px; }
.hero > * { min-width: 0; }
h1.eyebrow { font-family: var(--font-body); line-height: 1.45; margin: 0; }
.hero .headline { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; font-size: clamp(2.3rem, 5.2vw, 3.7rem); margin: 14px 0 0; }
.hero .lead { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips li { font-size: 0.88rem; padding: 6px 13px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.portrait { position: relative; justify-self: end; width: 100%; max-width: 420px; }
.portrait::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 28px; background: var(--soft); }
.portrait img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: 24px; background: var(--soft); }

/* Seções */
section { padding-block: 64px; }
.sec-head { max-width: 40em; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-top: 10px; }
.sec-head p { margin-top: 14px; color: var(--muted); }

.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.area { border-radius: 24px; padding: 36px 32px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.area.a1 { background: var(--soft); }
.area.a2 { background: var(--surface); border: 1px solid var(--line); }
.area h3 { font-size: 1.7rem; }
.area .intro { color: var(--muted); }
.area h4 { margin: 0 0 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--petrol); }
.area ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.area li { padding-left: 22px; position: relative; }
.area > .btn { align-self: flex-start; margin-top: auto; }
.area li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 9px; height: 2px; background: var(--petrol); border-radius: 2px; }

/* Régua de abertura bucal, em escala 0–50 mm */
.ruler { margin-top: 2px; }
.ruler-bar { position: relative; height: 14px; border-radius: 7px; overflow: hidden; display: flex; background: var(--line); }
.ruler-bar .low { width: 70%; background: var(--amber); }
.ruler-bar .ok { width: 30%; background: var(--petrol); }
.ruler-ticks { position: relative; height: 22px; margin-top: 4px; font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ruler-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.ruler-ticks span:first-child { transform: none; }
.ruler-ticks span:last-child { transform: translateX(-100%); }
.ruler-cap { margin-top: 6px; font-size: 0.88rem; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; margin: 0; list-style: none; counter-reset: etapa; }
.steps li { counter-increment: etapa; padding-top: 18px; border-top: 2px solid var(--ink); min-width: 0; }
.steps li::before { content: "Etapa " counter(etapa); display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--petrol); margin-bottom: 8px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.98rem; }

.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.about > * { min-width: 0; }
.about h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-top: 10px; }
.about .txt { display: grid; gap: 16px; color: var(--muted); }
.about .txt strong { color: var(--ink); font-weight: 600; }

.faq { display: grid; gap: 0; max-width: 780px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--petrol); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 62ch; }

.contact { background: var(--petrol); color: var(--petrol-ink); border-radius: 28px; padding: 48px 40px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.contact > * { min-width: 0; }
.contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.contact p { margin-top: 14px; opacity: 0.9; max-width: 32em; }
.contact .info { display: grid; gap: 14px; justify-items: start; }
.contact .row { font-size: 0.98rem; }
.contact .row b { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; font-weight: 600; }
.contact .btn { background: var(--petrol-ink); color: var(--petrol); border-color: var(--petrol-ink); }
.contact .map { grid-column: 1 / -1; width: 100%; height: 320px; border: 0; border-radius: 20px; background: var(--soft); }

footer { padding-block: 40px 96px; color: var(--muted); font-size: 0.88rem; display: grid; gap: 8px; max-width: 70ch; }

.prep { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 0; }
.prep > div { border-top: 2px solid var(--ink); padding-top: 14px; min-width: 0; }
.prep dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--petrol); margin-bottom: 6px; }
.prep dd { margin: 0; }

.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 40; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--petrol); color: var(--petrol-ink); border: 2px solid var(--petrol); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22); text-decoration: none; transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.wa-float:hover { filter: brightness(1.1); }
.wa-float.is-off { opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 16px 48px; }
  .portrait { justify-self: center; max-width: 240px; margin-right: 14px; }
  .areas { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .contact { grid-template-columns: 1fr; padding: 36px 24px; }
  nav.menu a.link { display: none; }
  section { padding-block: 48px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .area { padding: 28px 22px; }
  .hero .actions .btn { width: 100%; }
}

/* ===== Base comum a todas as páginas ===== */
html, body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
