/* ============================================
   TAIYŌ SOLAR — DESIGN SYSTEM
   ============================================ */

:root {
  /* Brand */
  --navy: #0c142c;
  --navy-2: #131c3a;
  --navy-3: #1c264a;
  --orange: #ff9900;
  --orange-2: #ffb340;
  --orange-deep: #e07d00;

  /* Neutrals (warm) */
  --bg: #f1efe6;
  --bg-2: #ebe4d0;            /* era #f3f2ec — agora bem mais distinto pra alternância clara entre seções */
  --ink: #0c142c;
  --ink-2: #2a3148;
  --muted: #6b7185;
  --muted-2: #9aa0b3;
  --line: #e8e6df;
  --line-2: #d8d6cd;

  /* States */
  --ok: #2f9e44;
  --warn: #d97706;
  --err: #dc2626;

  /* System */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Type scale */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(12, 20, 44, 0.06);
  --shadow: 0 8px 24px -8px rgba(12, 20, 44, 0.12), 0 2px 4px rgba(12, 20, 44, 0.04);
  --shadow-lg: 0 30px 60px -20px rgba(12, 20, 44, 0.25);
  --shadow-orange: 0 16px 40px -12px rgba(255, 153, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

/* Folga para âncoras não ficarem escondidas atrás do header fixo.
   Aplica-se tanto ao scroll nativo (hash) quanto ao scrollIntoView. */
section[id] { scroll-margin-top: 32px; }

/* MOBILE — Padronização do alinhamento ao acionar âncoras (drawer ou hash):
   - scroll-margin-top: 0 → a seção encosta no topo do viewport,
     impedindo que pedaços da seção anterior apareçam atrás do nav
     (que é semitransparente com blur).
   - padding-top: 120px → garante folga interna suficiente para a
     barrinha laranja (.section-head::before) + pílula do eyebrow
     ficarem completamente visíveis abaixo do header fixo (~82px),
     com respiro consistente em todas as seções. */
@media (max-width: 860px) {
  section[id] {
    scroll-margin-top: 0;
    padding-top: 120px !important;
  }
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: 16px; }

/* ============================================================
   FIX iOS ZOOM — Safari/Chrome no iPhone aplicam zoom automático
   ao focar inputs com font-size < 16px. Forçamos 16px em TODOS
   campos focáveis no mobile, sobrescrevendo qualquer regra mais
   específica (10/12/13/15px) que existe nos arquivos de componente.
   No desktop, o design original (com tamanhos menores) permanece.
   ============================================================ */
@media (max-width: 860px) {
  input,
  select,
  textarea,
  .calc-form-input,
  .qf-input,
  .qf-select,
  .blog-search input,
  .blog-select {
    font-size: 16px !important;
  }
}
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
/* EYEBROW HÍBRIDO — pílula branca outlined + dot laranja com pulse glow.
   Em fundos escuros (.on-dark) inverte pra laranja translúcida.
   Substitui o "----TEXTO" antigo que ficava "morto" no meio das seções. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  background: rgba(255, 153, 0, 0.20);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  width: fit-content;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.30);
  flex-shrink: 0;
}
/* Seções escuras — texto branco para contraste máximo */
.eyebrow.on-dark,
.section.dark .eyebrow,
.section.darker .eyebrow,
.hero .eyebrow,
.calc-section .eyebrow,
.benefits .eyebrow,
.kit-section .eyebrow {
  background: rgba(255, 153, 0, 0.25);
  color: white;
  font-weight: 700;
}
.eyebrow.on-dark::before,
.section.dark .eyebrow::before,
.section.darker .eyebrow::before,
.hero .eyebrow::before,
.calc-section .eyebrow::before,
.benefits .eyebrow::before,
.kit-section .eyebrow::before {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.35);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.h-section {
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.h-card { font-size: 22px; line-height: 1.2; }

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 60ch;
  text-wrap: pretty;
  line-height: 1.55;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--navy);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-2); transform: translateY(-1px); }

.btn-dark {
  background: var(--navy);
  color: white;
}
.btn-dark:hover { background: var(--navy-2); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line-2);
}
.btn-outline:hover { background: var(--bg-2); }

.btn-wa {
  background: #25d366;
  color: white;
}
.btn-wa:hover { background: #1eb858; }

.btn-lg { padding: 18px 28px; font-size: 15px; }

/* ---------- Section helpers ---------- */
section { position: relative; }
/* COMPACTAÇÃO GLOBAL: reduzidos paddings/margins de seções em ~37% pra
   diminuir scroll total da página sem mexer em layout interno. Valores
   antigos comentados ao lado pra reverter rápido se precisar. */
.section { padding: clamp(48px, 6vw, 88px) 0; }              /* era clamp(80, 10vw, 140) */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;                                                  /* era 14px */
  margin-bottom: clamp(24px, 3vw, 44px);                      /* era clamp(40, 5vw, 72) */
  max-width: 840px;
}
.section.dark { background: var(--navy); color: white; }
.section.dark .lead { color: rgba(255,255,255,0.6); }
.section.darker { background: #060a18; color: white; }

/* ============================================================
   PADRÃO DE PONTINHOS — variável reutilizável
   --------------------------------------------------------------
   Define o pattern de pontinhos como uma variável CSS para que
   cada seção escura possa "compor" o pattern com sua cor/gradiente
   de fundo via multi-layer background. Cor: branco a ~7% opacidade,
   diâmetro 1px, malha de 32px.
   ============================================================ */
:root {
  --dot-pattern: radial-gradient(circle at center, rgba(255,255,255,0.14) 1px, transparent 1.5px);
  --dot-size: 44px 44px;
}

/* ---------- Cards ---------- */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-2); }

.card-dark {
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ---------- Utilities ---------- */
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: inline-block; }
.divider { height: 1px; background: var(--line); width: 100%; }
.divider-dark { height: 1px; background: rgba(255,255,255,0.1); width: 100%; }

.mono { font-family: var(--font-mono); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes count-blip {
  0% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.reveal {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Accent themes (for tweaks) ---------- */
body[data-accent="orange"] { --accent: var(--orange); --accent-2: var(--orange-2); }
body[data-accent="cyan"]   { --accent: #00d4ff; --accent-2: #5fe6ff; }
body[data-accent="lime"]   { --accent: #c4ff3d; --accent-2: #d8ff70; }
body[data-accent="violet"] { --accent: #a78bfa; --accent-2: #c4b5fd; }
