/* ==========================================================================
   Prietto Divisórias — base.css
   Design system: tokens, reset, tipografia, botões, cards, utilitários.
   Direção visual: verde-escuro + lima + creme (ref. Biztop), tom técnico/corporativo.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Verdes da marca */
  --green-950: #08271d;
  --green-900: #0a3225;
  --green-800: #0c3b2e;   /* dark: header/hero/footer/cards escuros */
  --green-700: #124a37;
  --green-600: #1b5e20;   /* verde da marca (logo Prietto) */
  --green-500: #2e7d43;

  /* Lima (acento / CTA / destaque) */
  --lime-600: #86c22e;
  --lime-500: #a3e04b;    /* acento principal */
  --lime-400: #b8ea72;
  --lime-200: #e5f6c8;

  /* Neutros */
  --cream:    #f4f3ea;    /* fundo claro quente */
  --cream-2:  #ece9db;
  --white:    #ffffff;
  --ink:      #12201a;    /* texto principal */
  --muted:    #58685f;    /* texto secundário */
  --line:     rgba(12, 59, 46, .12);
  --amber:    #f2a63b;    /* estrelas / avaliação */

  /* Tipografia */
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Escala tipográfica (fluida) */
  --fs-eyebrow: .78rem;
  --fs-body:    1rem;
  --fs-lead:    clamp(1.05rem, 1rem + .4vw, 1.2rem);
  --fs-h3:      clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  --fs-h2:      clamp(1.8rem, 1.4rem + 1.9vw, 2.85rem);
  --fs-hero:    clamp(2.3rem, 1.5rem + 3.6vw, 4.1rem);

  /* Espaçamentos */
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --container: 1200px;
  --gutter: clamp(1.1rem, .6rem + 2vw, 2rem);

  /* Raios */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Sombras */
  --sh-sm: 0 2px 10px rgba(9, 40, 30, .06);
  --sh-md: 0 14px 34px rgba(9, 40, 30, .10);
  --sh-lg: 0 26px 60px rgba(9, 40, 30, .16);
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--dark  { background: var(--green-800); color: #dfeee6; }

/* ---------- Eyebrow (rótulo de seção) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head);
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 1rem;
}
.eyebrow::before {
  content: "✳"; font-size: 1.05em; color: var(--lime-600); line-height: 1;
}
.section--dark .eyebrow { color: var(--lime-500); }
.section--dark .eyebrow::before { color: var(--lime-500); }

/* ---------- Títulos de seção ---------- */
.section-title { font-size: var(--fs-h2); max-width: 20ch; }
.section-lead { color: var(--muted); font-size: var(--fs-lead); max-width: 52ch; }
.section--dark .section-lead { color: #b6cfc2; }

/* ---------- Botões ---------- */
.btn {
  --chip: rgba(12, 59, 46, .16);
  display: inline-flex; align-items: center; gap: .6em;
  padding: .82em 1.1em .82em 1.4em;
  border: 0; border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  line-height: 1; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn--arrow::after {
  content: "→";
  display: grid; place-items: center;
  width: 1.9em; height: 1.9em; border-radius: 50%;
  background: var(--chip); font-size: .9em; margin-left: .1em;
  transition: transform .3s ease;
}
.btn--arrow:hover::after { transform: translateX(3px); }

.btn-primary { background: var(--lime-500); color: var(--green-900); box-shadow: 0 10px 24px rgba(120, 190, 40, .28); }
.btn-primary:hover { background: var(--lime-400); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(120, 190, 40, .34); }

.btn-dark { background: var(--green-800); color: #eaf6ed; --chip: rgba(163, 224, 75, .22); }
.btn-dark:hover { background: var(--green-700); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--green-800); box-shadow: inset 0 0 0 1.5px var(--line); --chip: rgba(12, 59, 46, .1); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--green-600); transform: translateY(-2px); }

.section--dark .btn-outline { color: #eaf6ed; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); --chip: rgba(163,224,75,.2); }
.section--dark .btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--lime-500); }

/* Botão WhatsApp "shiny" (padrão WebFormas) */
.btn-wa {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #25d366, #128c4b);
  color: #fff; box-shadow: 0 10px 24px rgba(18, 140, 75, .35); --chip: rgba(255,255,255,.2);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(18, 140, 75, .45); }
.btn-wa::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); animation: wa-shine 3.4s ease-in-out infinite;
}
@keyframes wa-shine { 0%, 62% { left: -120%; } 100% { left: 130%; } }

/* ---------- Cards ---------- */
.card { background: var(--white); border-radius: var(--r-lg); padding: 2rem 1.8rem; box-shadow: var(--sh-sm); border: 1px solid var(--line); }
.card--lime { background: var(--lime-500); border-color: transparent; color: var(--green-900); }
.card--dark { background: var(--green-800); border-color: transparent; color: #dcece3; }

/* ---------- Utilitários ---------- */
.text-lime { color: var(--lime-500); }
.text-green { color: var(--green-600); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Reveal on scroll (JS adiciona .is-in) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }

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