/* ============================================================
   LAYOUT.CSS — Seções, grid, containers, spacing
   Rodonaves Agregados | Arquitetura ECOTOKEN
   ============================================================ */

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 1024px) { .container { max-width: 1040px; padding: 0 40px; } }
@media (min-width: 1280px) { .container { max-width: 1200px; } }

/* --- ESPAÇAMENTO DE SEÇÕES --- */
section { padding: 56px 0; }
@media (min-width: 768px)  { section { padding: 72px 0; } }
@media (min-width: 1024px) { section { padding: 96px 0; } }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s ease;
}

#header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--white);
}

.logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cta);
}

.header-nav {
  display: none;
  gap: 28px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--white); }

@media (min-width: 1024px) {
  .header-nav { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 80px 0 56px;
  background: var(--surface-dark2);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,59,142,0.85) 0%, rgba(10,22,40,0.95) 60%);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* SUBSTITUA: imagem de fundo com caminhão moderno em rodovia */
  background-image: url('<!-- SUBSTITUA: hero-bg.jpg -->');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  .hero-content { flex: 1; }
  .hero-img { width: 420px; flex-shrink: 0; }
}

.hero-content { color: var(--white); }

.hero-content h1 {
  margin: 16px 0 18px;
  color: var(--white);
}

.hero-content h1 em {
  color: var(--cta);
  font-style: normal;
}

.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: clamp(16px, 2.5vw, 19px);
  margin-bottom: 24px;
}

.hero-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.88);
}

.hero-checklist li::before {
  content: '✔';
  color: var(--cta);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-img-placeholder {
  width: 100%;
  height: 280px;
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-img-placeholder { height: 380px; }
}

/* ============================================================
   BENEFÍCIOS
   ============================================================ */
.beneficios {
  padding: 0;
  background: var(--accent);
}

.beneficios-list {
  display: flex;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}

.beneficios-list::-webkit-scrollbar { display: none; }

.beneficios-list li {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.beneficios-list li svg {
  color: var(--cta);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .beneficios-list {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
  }
}

/* ============================================================
   COMO FUNCIONA
   ============================================================ */
.como-funciona { background: var(--surface); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cta), var(--accent));
}

@media (min-width: 768px) {
  .timeline {
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
  }
  .timeline::before {
    top: 28px;
    left: 28px;
    right: 28px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(to right, var(--cta), var(--accent));
  }
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .timeline-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0;
  }
}

.timeline-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cta);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(var(--cta-rgb), 0.4);
}

.timeline-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-body p {
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .timeline-body { margin-top: 16px; }
}

/* ============================================================
   POR QUE RODONAVES (STATS)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: background 0.25s ease;
}

.stat-card:hover { background: rgba(255,255,255,0.08); }

.stat-num {
  display: block;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: var(--cta);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* ============================================================
   CAMINHÕES ACEITOS
   ============================================================ */
.caminhoes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 480px)  { .caminhoes-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .caminhoes-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .caminhoes-grid { grid-template-columns: repeat(5, 1fr); } }

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.depoimentos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .depoimentos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   FORMULÁRIO
   ============================================================ */
.formulario { background: var(--surface); }

.form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 840px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .form-wrapper { padding: 48px 40px; }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .form-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin: 40px auto 0;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { text-align: center; }

.cta-final-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-final h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-final p {
  color: rgba(255,255,255,0.72);
  font-size: 18px;
  margin-bottom: 32px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--surface-dark2);
  color: rgba(255,255,255,0.7);
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
}

.footer-brand .logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.06em;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links ul li,
.footer-social ul li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-social a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-social a:hover { color: var(--cta); }

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p,
.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a:hover { color: var(--white); }

/* ============================================================
   STICKY MOBILE
   ============================================================ */
.cta-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 22, 40, 0.97);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cta-sticky.show { transform: translateY(0); }

@media (min-width: 768px) { .cta-sticky { display: none; } }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 95;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

@media (min-width: 768px) { .whatsapp-float { bottom: 32px; } }
