/* Recarga Azul — site institucional. Tokens do design system Modernist (Claude Design), com o acento
   azul e os raios do protótipo "Recarga Azul - Landing". Sem build: CSS puro servido pelo nginx. */

/* Archivo (SIL Open Font License 1.1), fonte variável, só o subconjunto latino: servida daqui, sem
   chamada ao Google Fonts. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("archivo-latin.woff2") format("woff2");
}

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);
  --color-neutral-700: #605d5d;

  --color-accent: oklch(52% 0.19 258);
  --color-accent-100: oklch(96% 0.015 258);
  --color-accent-300: oklch(85% 0.08 258);
  --color-accent-400: oklch(74% 0.13 258);
  --color-accent-600: oklch(52% 0.19 258);
  --color-accent-700: oklch(42% 0.16 258);
  --color-accent-800: oklch(33% 0.13 258);
  --color-accent-900: oklch(24% 0.09 258);

  --font: "Archivo", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 8px 28px oklch(52% 0.19 258 / 0.16);
  --shadow-lg: 0 20px 50px oklch(52% 0.19 258 / 0.2);

  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font); font-size: 15px; line-height: 1.55; text-wrap: pretty;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font); font-weight: 800; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
section[id] { scroll-margin-top: 72px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.kicker {
  display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-700); margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.015em; }
.muted { color: var(--color-neutral-700); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* — botões — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font: 800 14px/1.2 var(--font); padding: 10px 16px; border-radius: var(--radius-md);
  border: 1px solid transparent; background: transparent; color: var(--color-text); white-space: nowrap;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-700); color: #fff; }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* — navegação — */
.nav {
  position: sticky; top: 0; z-index: 2000;
  display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-divider);
}
.brand {
  display: flex; align-items: center; gap: 8px; margin-right: auto; white-space: nowrap;
  font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--color-text);
}
.brand:hover { color: var(--color-text); }
.nav-link { display: none; font-size: 14px; font-weight: 600; color: var(--color-text); }
.nav-link:hover { color: var(--color-accent); }
@media (min-width: 720px) { .nav-link { display: inline-block; } }

/* — topo — */
.hero {
  position: relative; overflow: hidden;
  /* O escuro vai até abaixo dos números do topo, que são brancos; o degradê para o fundo vem depois. */
  background: linear-gradient(180deg, var(--color-accent-900) 0%, var(--color-accent-800) 72%, var(--color-bg) 100%);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.blob-1 {
  top: -120px; right: -80px; width: 480px; height: 480px; opacity: 0.5;
  background: radial-gradient(circle, var(--color-accent-400), transparent 70%);
  animation: float1 10s ease-in-out infinite;
}
.blob-2 {
  bottom: -60px; left: -100px; width: 360px; height: 360px; opacity: 0.35;
  background: radial-gradient(circle, var(--color-accent-300), transparent 70%);
  animation: float2 12s ease-in-out infinite;
}
.hero-inner {
  position: relative; z-index: 1; display: grid; gap: 56px; align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); padding-top: 56px; padding-bottom: 72px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: #fff;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #5be07a; animation: pulseDot 1.8s ease-in-out infinite; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px); line-height: 1.05; letter-spacing: -0.02em; color: #fff;
}
.hero h1 span { display: block; }
.hero h1 .hl { color: var(--color-accent-300); }
.lead {
  font-size: 17.5px; line-height: 1.65; max-width: 52ch; margin-top: 24px; color: rgba(255, 255, 255, 0.78);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-facts b { display: block; font-size: 26px; font-weight: 800; color: #fff; }
.hero-facts span { display: block; margin-top: 4px; font-size: 12.5px; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.65); }

.hero-media { position: relative; padding-bottom: 40px; }
.hero-photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15); background: var(--color-accent-800);
}
.hero-photo img { width: 100%; height: 400px; object-fit: cover; }
.badge {
  position: absolute; display: flex; border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 10px 16px;
}
.badge-charging {
  top: 18px; left: 18px; align-items: center; gap: 10px; background: var(--color-bg);
  font-size: 13px; font-weight: 700;
  animation: badgeIn 0.6s ease-out 0.3s both, float1 7s ease-in-out 1s infinite;
}

/* — números — */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; padding: 36px 0;
  border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider);
}
.stat { transition: opacity 0.6s ease, transform 0.6s ease; }
.js .stat { opacity: 0; transform: translateY(14px); }
.js .stats.is-visible .stat { opacity: 1; transform: none; }
.stat-value {
  font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; line-height: 1.1;
  color: var(--color-accent); font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 10px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-neutral-700); }

/* — como funciona — */
.how { padding-top: 56px; padding-bottom: 24px; }
.how .kicker { margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); background: var(--color-accent-100); color: var(--color-accent-700);
}
.card h3 { font-size: 20px; letter-spacing: -0.01em; }
.card p { font-size: 15px; line-height: 1.6; color: var(--color-neutral-700); }

/* — rede — */
.network { margin-top: 24px; padding: 64px 0; background: var(--color-surface); }
.network .wrap { display: flex; flex-direction: column; gap: 28px; }
.network-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.network-head p { max-width: 52ch; margin-top: 10px; font-size: 15px; }

.network-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.map-box { position: relative; isolation: isolate; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--color-accent-100); }
.map { width: 100%; height: 460px; }
.map-summary {
  position: absolute; bottom: 16px; left: 16px; z-index: 400; display: flex; gap: 18px; padding: 12px 16px;
  background: var(--color-bg); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.map-summary b { display: block; font-size: 20px; font-weight: 800; color: var(--color-accent); }
.map-summary span { display: block; margin-top: 2px; font-size: 11px; letter-spacing: 0.03em; color: var(--color-neutral-700); }

.stations { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.station {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 22px;
  background: var(--color-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.station-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.station .muted { font-size: 13.5px; }
.station .muted + .muted { font-size: 13px; }
.chip {
  font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  color: var(--color-accent-700); background: var(--color-accent-100);
}
.station-chip { align-self: flex-start; margin-top: 4px; }

/* marcador do mapa */
.marker { position: relative; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.marker::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c); opacity: 0.35;
  animation: ringPulse 2.2s ease-out infinite;
}
.marker::after {
  content: ""; position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--c);
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.leaflet-container { font-family: var(--font); }

/* — contato — */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 72px; padding-bottom: 80px; }
.contact .section-title { margin-bottom: 16px; }
.contact-intro { max-width: 44ch; margin-bottom: 28px; font-size: 15.5px; line-height: 1.65; }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin: 0; font-size: 14.5px; }
.contact-list div { display: flex; gap: 6px; flex-wrap: wrap; }
.contact-list dt { font-weight: 700; }
.contact-list dt::after { content: " —"; font-weight: 400; }
.contact-list dd { margin: 0; }
.form {
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.field label { display: block; margin-bottom: 5px; font-size: 12px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.input {
  width: 100%; min-height: 40px; padding: 8px 12px; font: inherit; font-size: 15px; color: var(--color-text);
  caret-color: var(--color-accent); background: var(--color-bg);
  border: 1px solid var(--color-divider); border-radius: var(--radius-sm);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 110px; resize: vertical; }
.form .btn { align-self: flex-start; }
.form-note { font-size: 12.5px; color: var(--color-neutral-700); }

.footer { border-top: 1px solid var(--color-divider); }
.footer .wrap { padding-block: 28px; font-size: 13px; color: var(--color-neutral-700); }

/* — telas estreitas — */
@media (max-width: 900px) {
  .hero-inner, .network-grid, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { gap: 36px; padding-top: 40px; }
  .hero-photo img { height: 300px; }
  .map { height: 380px; }
  .contact { gap: 32px; padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav .btn { padding: 9px 12px; }
  .map-summary { gap: 12px; padding: 10px 12px; }
}

@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18px, -24px) scale(1.05); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-16px, 20px) scale(1.08); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
@keyframes badgeIn { from { opacity: 0; transform: translateY(10px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes ringPulse { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
