/* Televoto / SunVote Brasil — Design Tokens */
:root {
  /* Brand */
  --brand-blue: #0B3D91;
  --brand-blue-600: #0a3580;
  --brand-blue-700: #082a66;
  --brand-blue-50: #eef3fb;
  --brand-red: #D7263D;
  --brand-red-600: #b81f33;
  --brand-red-50: #fdecef;

  /* Neutrals */
  --ink: #0b1220;
  --ink-2: #1f2937;
  --ink-3: #4b5563;
  --ink-4: #6b7280;
  --line: #e5e7eb;
  --line-2: #f1f3f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef2f8;

  /* Semantic */
  --success: #16a34a;
  --warning: #d97706;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(11,18,32,.06), 0 1px 1px rgba(11,18,32,.04);
  --sh-2: 0 6px 18px rgba(11,18,32,.08), 0 2px 4px rgba(11,18,32,.05);
  --sh-3: 0 18px 40px rgba(11,18,32,.14), 0 6px 12px rgba(11,18,32,.06);

  /* Type */
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-700); }
button { font: inherit; cursor: pointer; }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* Container */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 32px; width: auto; }
.nav-links {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 0;
  margin-left: auto;
}
.nav-links a {
  display: inline-block; padding: 8px 12px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 500; font-size: 14.5px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--surface-3); color: var(--brand-blue); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  width: 40px; height: 40px; border-radius: var(--r-sm);
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s, box-shadow .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-red); color: #fff; box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--brand-red-600); color: #fff; box-shadow: var(--sh-2); }
.btn-secondary { background: var(--brand-blue); color: #fff; }
.btn-secondary:hover { background: var(--brand-blue-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-3); color: var(--brand-blue); }
.btn-lg { padding: 14px 24px; font-size: 15.5px; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(215,38,61,.08), transparent 60%),
    radial-gradient(1000px 500px at 10% 20%, rgba(11,61,145,.08), transparent 55%),
    var(--surface);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-blue); background: var(--brand-blue-50);
  padding: 6px 12px; border-radius: var(--r-pill);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand-red); }
.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.04; letter-spacing: -0.025em; font-weight: 800;
  margin: 20px 0 18px; color: var(--ink);
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--brand-red); }
.hero p.lede {
  font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-3);
  max-width: 56ch; margin: 0 0 28px; text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 36px; display: flex; gap: 28px; flex-wrap: wrap;
  color: var(--ink-4); font-size: 14px;
}
.hero-trust strong { color: var(--ink); display: block; font-size: 18px; font-weight: 700; }
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 420px;
}
.hero-visual .blob {
  position: absolute; inset: 0; margin: auto;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--brand-blue-50) 40%, transparent 70%);
  filter: blur(6px);
}
.hero-visual img { position: relative; max-height: 520px; filter: drop-shadow(0 30px 40px rgba(11,18,32,.18)); }
.hero-photo {
  position: relative; z-index: 2;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-3);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  max-width: 460px;
  width: 100%;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  max-height: none;
  filter: none;
}

/* ===== Events gallery ===== */
section.events-section { padding: 0 0 clamp(32px, 5vw, 64px); }
.events-gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.events-gallery figure {
  margin: 0; border-radius: var(--r-md); overflow: hidden;
  background: #0b1220;
  box-shadow: var(--sh-2);
  aspect-ratio: 16 / 9;
  position: relative;
}
.events-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.events-gallery figure:hover img { transform: scale(1.03); }
.events-gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  color: #fff; font-size: 13px; font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* Logo chip images */
.logo-chip img { max-height: 44px; max-width: 85%; width: auto; height: auto; object-fit: contain; }
.logo-chip.text { font-size: 13px; color: var(--ink-4); font-weight: 600; text-align: center; padding: 0 10px; }

/* ===== Section ===== */
section { padding: clamp(64px, 9vw, 112px) 0; }
section.alt { background: var(--surface-2); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 14px;
  text-wrap: balance;
}
.section-head p { color: var(--ink-3); font-size: 17px; margin: 0; text-wrap: pretty; }

/* ===== Stats ===== */
.stats {
  background: var(--brand-blue); color: #fff;
  padding: clamp(48px, 6vw, 80px) 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat .num {
  font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  color: #fff;
}
.stat .num .accent { color: #FFD34E; }
.stat .label { margin-top: 10px; color: rgba(255,255,255,.78); font-size: 14.5px; }

/* ===== Products ===== */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: #d6dde6; }
.product .icon {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  background: var(--brand-blue-50); color: var(--brand-blue);
  display: grid; place-items: center; margin-bottom: 18px;
}
.product h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.product p { margin: 0 0 14px; color: var(--ink-3); font-size: 15px; }
.product ul { margin: 0; padding: 0; list-style: none; }
.product li {
  font-size: 14px; color: var(--ink-2); padding: 6px 0; border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 8px;
}
.product li:first-child { border-top: 0; }
.product li::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--brand-red); flex: none;
}

/* ===== Diferenciais ===== */
.diferenciais { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.diff {
  padding: 28px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
}
.diff .icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--brand-red-50); color: var(--brand-red);
  display: grid; place-items: center; margin-bottom: 16px;
}
.diff h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.diff p { margin: 0; color: var(--ink-3); font-size: 14.5px; }

/* ===== Serviços ===== */
.servicos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.servico { padding: 32px; border-right: 1px solid var(--line); }
.servico:last-child { border-right: 0; }
.servico .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-blue); margin-bottom: 10px; }
.servico h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.servico p { margin: 0 0 18px; color: var(--ink-3); font-size: 15px; }
.servico a.arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-red); font-size: 14.5px; }
.servico a.arrow:hover { gap: 10px; }

/* ===== Aplicações ===== */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.app {
  padding: 22px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; min-height: 140px;
  transition: border-color .15s, transform .15s;
}
.app:hover { border-color: var(--brand-blue); transform: translateY(-1px); }
.app .ico { width: 36px; height: 36px; color: var(--brand-blue); }
.app h4 { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.app p { margin: 0; font-size: 13.5px; color: var(--ink-4); line-height: 1.5; }

/* ===== Clientes ===== */
.clientes-logos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  align-items: center;
}
.logo-chip {
  height: 72px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; display: grid; place-items: center;
  color: var(--ink-4); font-weight: 700; letter-spacing: .02em; font-size: 14px;
  transition: border-color .15s, color .15s;
}
.logo-chip:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* ===== Contato ===== */
.contato-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 56px); }
.contato-info h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.15; }
.contato-info p { color: var(--ink-3); margin: 0 0 24px; }
.contato-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contato-info li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.contato-info li .ico { flex: none; width: 22px; color: var(--brand-blue); }

form.contato {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px); box-shadow: var(--sh-2);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(11,61,145,.15);
}
.field textarea { min-height: 100px; resize: vertical; }
.field .help { font-size: 12.5px; color: var(--ink-4); margin-top: 6px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-msg { font-size: 14px; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--brand-red); }

/* ===== Footer ===== */
footer.site {
  background: #0b1220; color: #c9d2df;
  padding: 64px 0 28px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer.site h4 { color: #fff; margin: 0 0 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; font-size: 14.5px; }
footer.site a { color: #c9d2df; }
footer.site a:hover { color: #fff; }
.foot-brand p { color: #8694a7; font-size: 14.5px; max-width: 34ch; margin: 14px 0 0; }
.foot-bottom {
  border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: #8694a7; font-size: 13px;
}

/* Reveal animation removed — content visible by default for SEO + perceived performance */
.reveal { opacity: 1 !important; transform: none !important; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; order: -1; }
  .hero-visual img { max-height: 380px; }
  .events-gallery { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .products, .diferenciais, .servicos { grid-template-columns: 1fr; }
  .servico { border-right: 0; border-bottom: 1px solid var(--line); }
  .servico:last-child { border-bottom: 0; }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .clientes-logos { grid-template-columns: repeat(3, 1fr); }
  .contato-wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 16px;
  }
  .nav.open .nav-cta { display: inline-flex; margin: 8px var(--gutter) 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-trust { gap: 20px; }
}
@media (max-width: 480px) {
  .apps { grid-template-columns: 1fr; }
  .clientes-logos { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
}
