/* ==========================================================================
   Base: fontes, tokens, reset, tipografia e layout
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Cores da logo (uso decorativo e em áreas grandes) */
  --brand-blue: #1583c4;
  --brand-teal: #26968e;
  --brand-green: #349a7a;

  /* Derivadas com contraste AA sobre branco */
  --green-700: #1e6f59;
  --green-800: #17614d;
  --green-900: #123f36;
  --blue-700: #1a6fa8;
  --blue-800: #0f5a7e;
  --whatsapp: #0b7466;
  --whatsapp-dark: #075e54;

  --ink: #1d2b2a;
  --muted: #4a5a58;
  --line: #dde7e3;
  --surface: #fbfaf7;
  --surface-tint: #eef6f2;
  --white: #ffffff;

  --gradient-brand: linear-gradient(120deg, var(--brand-blue), var(--brand-teal) 50%, var(--brand-green));

  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.05rem, 1.6rem + 2.2vw, 3.35rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(18 63 54 / 0.06), 0 2px 8px rgb(18 63 54 / 0.06);
  --shadow: 0 10px 30px rgb(18 63 54 / 0.12);

  --container: 72rem;
  --header-h: 64px;
  --bottom-nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tap: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--green-900);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p {
  text-wrap: pretty;
}

a {
  color: var(--blue-700);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-800);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue-700);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: #cfe9df;
}

/* Layout ------------------------------------------------------------------ */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-6);
}

.section--tint {
  background: var(--surface-tint);
}

.section--white {
  background: var(--white);
}

.section__head {
  max-width: 42rem;
  margin-bottom: var(--space-5);
}

.section__head p:not(.eyebrow) {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--step-1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-brand);
}

.prose > * + * {
  margin-top: 1em;
}

.prose {
  max-width: 40rem;
}

/* Utilitários --------------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--green-900);
  color: var(--white);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--white);
}

@media (max-width: 479.98px) {
  .hide-sm {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
