/* ZovaVet — base: tokens, reset, tipografia, grid. Fonte de verdade: specs/design.md */

:root {
  --bg: #F7F7F4;
  --surface: #FFFFFF;
  --ink: #0B1630;
  --ink-2: #4A5368;
  --ink-3: #7A8194;
  --line: #E4E4DE;
  --line-2: #D6D6CF;
  --brand: #2486FE;
  --brand-ink: #0F5FD1;
  --brand-deep: #001E56;
  --night: #060D1F;
  --night-2: #0C1530;
  --night-line: rgba(238, 241, 247, .12);
  --on-night: #EEF1F7;
  --on-night-2: rgba(238, 241, 247, .66);
  --accent-warm: #E8A15A;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Outfit", "Geist", system-ui, sans-serif; /* rótulos e etiquetas: Outfit, a mesma fonte dos títulos do sistema (2026-11-09; antes Geist Mono) */

  --container: 1240px;
  --gutter: 24px;
  --side: clamp(16px, 4vw, 40px);
  --section: clamp(96px, 14vw, 200px);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  --shadow-win: 0 1px 0 rgba(11, 22, 48, .04), 0 40px 80px -30px rgba(11, 22, 48, .28), 0 18px 36px -24px rgba(11, 22, 48, .18);
  --shadow-soft: 0 24px 48px -28px rgba(11, 22, 48, .22);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(36, 134, 254, .18); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 500;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

/* Ícones */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Layout */
.container { width: 100%; max-width: calc(var(--container) + var(--side) * 2); margin-inline: auto; padding-inline: var(--side); }
.section { padding-block: var(--section); position: relative; }
main > section, .footer { overflow-x: clip; }

/* Tipografia */
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-top: 20px;
}
.h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.muted { color: var(--ink-3); }

/* Cabeçalho de seção: título (col 1–6) + texto curto (col 8–12) */
.head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.head > div { grid-column: 1 / span 7; }
.head__aside { grid-column: 9 / -1; color: var(--ink-2); font-size: 1.0625rem; max-width: 42ch; }
/* Título longo: 8 colunas para caber em até 3 linhas; o parágrafo fica ao lado (colunas 9–12) */
.head--wide > div { grid-column: 1 / span 8; }
.head--wide .h2 { max-width: none; }
.head--wide .head__aside { grid-column: 9 / -1; }
@media (max-width: 599px) { .head--wide .h2 { font-size: clamp(1.5rem, 6.6vw, 1.75rem); letter-spacing: -0.03em; max-width: none; } }
.head--center { display: block; text-align: center; }
.head--center .h2 { margin-inline: auto; max-width: 18ch; }
.head__sub { color: var(--ink-2); margin: 16px auto 0; max-width: 60ch; }

@media (max-width: 899px) {
  .head { display: block; }
  .head__aside { margin-top: 20px; }
}

/* Seções escuras */
.dark { background: var(--night); color: var(--on-night); }
.dark .label, .dark .head__aside, .dark .muted { color: var(--on-night-2); }

/* Revelar ao rolar (só com JS ativo) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Hero: entra na carga da página, sem depender de JS */
.js .hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease-out) both; animation-delay: calc(80ms + var(--d, 0) * 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

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