/* ═══════════════════════════════════════════════════════════════════
   OdontoPro — Design Tokens · Reset · Layout · Typography · Buttons
   Breakpoints: xs 480 | sm 640 | md 880 | lg 1024 | xl 1240
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Palette (defaults — overridden by Tweaks runtime) ── */
  --green-900: #0f2e22;
  --green-800: #1b4332;
  --green-700: #2d6a4f;
  --green-600: #3f8a6a;
  --green-500: #5c9d80;
  --green-100: #d8e9df;
  --green-50:  #ecf3ef;

  --cream-100: #faf7f0;
  --cream-200: #f3eee3;
  --cream-300: #e8e0cf;

  --gold-600: #b8956a;
  --gold-700: #9a7a52;

  --ink-900: #0d1a14;
  --ink-700: #2b3a32;
  --ink-500: #5b6b62;
  --ink-300: #97a39b;
  --ink-100: #d8ddd9;

  --bg:      #ffffff;
  --bg-tint: var(--cream-100);

  /* ── Radii (overridden by Tweaks runtime) ── */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   32px;
  --r-pill: 999px;

  /* ── Typography ── */
  --font-display: "Roboto Serif", "Roboto Slab", Georgia, serif;
  --font-sans:    "Roboto", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* ── Spacing ── */
  --container:  1240px;
  --gutter:     clamp(20px, 4vw, 56px);
  --section-y:  clamp(72px, 9vw, 132px);

  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px rgba(15,46,34,.05), 0 0 0 1px rgba(15,46,34,.04);
  --shadow-md: 0 6px 24px -8px rgba(15,46,34,.18), 0 2px 6px rgba(15,46,34,.06);
  --shadow-lg: 0 30px 60px -20px rgba(15,46,34,.25), 0 10px 20px -10px rgba(15,46,34,.08);

  /* ── Motion ── */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /*
   * overflow-x: clip — bloqueia qualquer scroll horizontal sem criar um novo
   * scroll container (ao contrário de overflow: hidden, que quebraria
   * position: sticky no <nav>). Garante que position:fixed se ancora sempre
   * ao viewport visível, não ao documento mais largo.
   */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /*
   * NÃO colocar overflow: hidden aqui — quebraria position: sticky do <nav>
   * em iOS Safari (cria BFC e remove o contexto de scroll necessário).
   * O overflow-x: clip no <html> é suficiente e seguro.
   */
}

img, svg     { display: block; max-width: 100%; }
button       { font: inherit; cursor: pointer; }
a            { color: inherit; text-decoration: none; }
h1,h2,h3,h4  { margin: 0; line-height: 1.08; color: var(--ink-900); font-weight: 500; }
p            { margin: 0; }
:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/*
 * min-width: 0 em filhos diretos de grid/flex
 * O default "min-width: auto" em CSS Grid faz itens recusarem encolher
 * abaixo do tamanho do conteúdo, causando overflow silencioso.
 * Esta regra atinge todos os grids do projeto de forma preventiva.
 */
.hero-grid     > *,
.hero-trust    > *,
.services-grid > *,
.diff-grid     > *,
.ba-wrap       > *,
.testimonials-grid > *,
.faq-wrap      > *,
.local-grid    > *,
.cta-form      > *,
.footer-grid   > *,
.form-row      > * {
  min-width: 0;
}

.section       { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-tint  { background: var(--bg-tint); }
.section-deep  { background: var(--green-900); color: #f3efe4; }
.section-deep h1,
.section-deep h2,
.section-deep h3 { color: #faf6ea; }

/* ── Typography ─────────────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.05;
}
.display em {
  font-style: italic;
  color: var(--green-700);
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--green-700);
}
.section-deep .eyebrow          { color: var(--gold-600); }
.section-deep .eyebrow::before  { background: var(--gold-600); }

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink-700);
  line-height: 1.4;
  max-width: 56ch;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  margin-top: 18px;
  letter-spacing: -0.015em;
}
.section-head p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--ink-500);
  max-width: 56ch;
  line-height: 1.6;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform     .25s var(--ease),
    background    .25s var(--ease),
    color         .25s var(--ease),
    box-shadow    .25s var(--ease),
    border-color  .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--green-800);
  color: #fbfaf3;
  box-shadow: 0 8px 24px -10px rgba(15,46,34,.45);
}
.btn-primary:hover {
  background: var(--green-900);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(15,46,34,.55);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: rgba(13,26,20,.18);
}
.btn-ghost:hover {
  background: rgba(13,26,20,.04);
  border-color: var(--ink-900);
}
.btn-gold       { background: var(--gold-600); color: #1b1407; }
.btn-gold:hover { background: var(--gold-700); color: #fff; }

.btn .arrow {
  display: inline-flex;
  width: 18px; height: 12px;
  transition: transform .3s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.wa-icon { width: 18px; height: 18px; flex-shrink: 0; }
