/* ======================================================
   ORION ELETROPOSTOS — Landing Page: Carregador Portátil
   Design system: fundo escuro, verde institucional, tipografia branca
   ====================================================== */

:root {
  /* Cores */
  --bg: #070d0b;
  --bg-alt: #0c1512;
  --surface: #101c17;
  --surface-2: #142219;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --green: #1fa971;
  --green-bright: #35cf8c;
  --green-deep: #0f2a18;
  --green-tint: rgba(31, 169, 113, 0.12);

  --white: #ffffff;
  --text: #f4f7f5;
  --text-muted: #a3b0aa;
  --text-faint: #74847d;

  /* Tipografia */
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --header-h: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.15rem; }

p { color: var(--text-muted); }

.text-muted { color: var(--text-faint); font-size: 0.95rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--green-bright);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #04140c;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #04140c;
  border: 1px solid var(--green);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--green-bright);
  border-color: var(--green-bright);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--green-bright);
  color: var(--green-bright);
  transform: translateY(-2px);
}
.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-ghost-light:hover, .btn-ghost-light:focus-visible {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 13, 11, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 13, 11, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--green-bright);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--white); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections genéricas ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-highlight { background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%); }

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head p { font-size: 1.05rem; margin-top: 16px; }
.section-head p + p { margin-top: 10px; }

.note-box {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 20px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  background:
    radial-gradient(60% 55% at 82% 20%, rgba(31, 169, 113, 0.14) 0%, transparent 60%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.8rem);
  margin-bottom: 22px;
}
.hero-subheadline {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 520px;
}
.hero-complementar {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}
.safety-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 10, 8, 0.55) 100%);
  pointer-events: none;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 22px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card-icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--green-bright);
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.card p { font-size: 0.94rem; }

/* ---------- Steps ---------- */
.steps-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 60px;
  align-items: start;
}
.steps-list { display: flex; flex-direction: column; gap: 30px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green-bright);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step h3 { margin-bottom: 6px; font-size: 1.05rem; }
.step p { font-size: 0.94rem; }
.steps-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
}
.steps-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Split sections (Portabilidade / Tomada 20A) ---------- */
.split-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.split-reverse { grid-template-columns: 1.05fr 0.95fr; }
.split-reverse .split-copy { order: 1; }
.split-reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy h2 { margin-bottom: 18px; }
.split-copy p { font-size: 1.02rem; margin-bottom: 14px; }
.split-copy .note-box { margin-bottom: 14px; }
.split-copy .btn { margin-top: 20px; }

.highlight-list { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 6px; }
.highlight-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.98rem;
  color: var(--text);
}
.highlight-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- Até dois veículos ---------- */
.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 560px;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; max-height: 560px; }

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  font-size: 0.95rem;
  color: var(--text);
}

/* ---------- Comparativo ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.compare-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px;
}
.compare-col-highlight {
  background: var(--green-tint);
  border-color: rgba(31, 169, 113, 0.4);
}
.compare-col h3 { margin-bottom: 20px; }
.compare-col ul { display: flex; flex-direction: column; gap: 14px; }
.compare-col li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.compare-col li::before {
  content: "–";
  position: absolute; left: 0;
  color: var(--text-faint);
}
.compare-col-highlight li { color: var(--text); }
.compare-col-highlight li::before { content: "✓"; color: var(--green-bright); }
.compare-note { margin-top: 24px; max-width: 640px; }

/* ---------- Galeria ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-tall { grid-row: span 2; }

/* ---------- Confiança ---------- */
.confianca-inner { display: grid; grid-template-columns: 1fr 0.8fr; gap: 50px; align-items: start; }
.trust-points { display: flex; flex-direction: column; gap: 26px; }
.trust-point {
  display: flex; gap: 16px; align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.trust-point:last-child { border-bottom: none; padding-bottom: 0; }
.trust-number {
  font-family: var(--font-mono);
  color: var(--green-bright);
  font-size: 0.9rem;
}
.trust-point p { color: var(--text); font-size: 1.02rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--white);
}
.faq-icon {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--green-bright);
  transition: transform 0.3s var(--ease);
}
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-answer p { padding: 0 4px 24px; font-size: 0.98rem; max-width: 720px; }
.faq-question[aria-expanded="true"] + .faq-answer { max-height: 240px; }

/* ---------- Formulário ---------- */
.section-form {
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--bg-alt) 55%);
}
.form-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.form-head h2 { max-width: 460px; }
.form-head p { font-size: 1.02rem; }

.contact-form {
  background: rgba(7, 13, 11, 0.55);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 38px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-2 > div { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 0.85rem; color: var(--text-muted); }
input[type="text"], input[type="tel"], input[type="email"], select {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--white);
  transition: border-color 0.25s var(--ease);
}
input:hover, select:hover { border-color: rgba(255,255,255,0.3); }
input:focus, select:focus {
  border-color: var(--green-bright);
  outline: none;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M5 8l5 5 5-5' stroke='%2335cf8c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.form-consent input { margin-top: 4px; accent-color: var(--green); }
.form-consent label { font-size: 0.85rem; line-height: 1.5; }
.form-consent a { color: var(--green-bright); text-decoration: underline; }

.form-success {
  background: var(--green-tint);
  border: 1px solid rgba(31, 169, 113, 0.5);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.94rem;
}

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cta-final-media { position: absolute; inset: 0; z-index: 0; }
.cta-final-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-final-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,10,8,0.94) 20%, rgba(4,10,8,0.55) 65%, rgba(4,10,8,0.3) 100%);
}
.cta-final-content { position: relative; z-index: 1; max-width: 600px; padding-top: 90px; padding-bottom: 90px; }
.cta-final-content h2 { margin-bottom: 18px; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); }
.cta-final-content p { font-size: 1.08rem; color: var(--text); margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 70px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 240px; }
.site-footer h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 16px;
}
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { font-size: 0.92rem; color: var(--text-muted); transition: color 0.2s var(--ease); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--green-bright); }
.footer-address { font-size: 0.88rem; color: var(--text-faint); margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-faint); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px; height: 56px;
  background: var(--green);
  color: #04140c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 90;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float:hover, .whatsapp-float:focus-visible {
  background: var(--green-bright);
  transform: translateY(-3px) scale(1.04);
}

/* ---------- Reveal (animações de entrada discretas) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   RESPONSIVO — TABLET (≤ 1024px)
   ====================================================== */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps-layout, .split-inner, .split-reverse, .form-inner, .confianca-inner {
    grid-template-columns: 1fr;
  }
  .split-reverse .split-copy, .split-reverse .split-media { order: initial; }
  .steps-media, .split-media { aspect-ratio: 16 / 10; order: -1; }
  .compare-grid { grid-template-columns: 1fr; }
  .mini-card-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16 / 10; max-width: 520px; margin: 0 auto; }
  .section { padding: 84px 0; }
}

/* ======================================================
   RESPONSIVO — MOBILE (≤ 720px)
   ====================================================== */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(7, 13, 11, 0.98);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 28px 20px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 30px); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .card-grid-4, .card-grid-3 { grid-template-columns: 1fr; }
  .mini-card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery-tall { grid-row: span 2; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .cta-final-overlay { background: linear-gradient(180deg, rgba(4,10,8,0.55) 0%, rgba(4,10,8,0.94) 75%); }
  .cta-final-content { padding-top: 60px; padding-bottom: 60px; }
}
