/* ==========================================
   TOTALIZAÇÃO PARALELA — Design Brasil
   Paleta: Verde, Amarelo, Azul, Branco
   Mobile-first (98% dos acessos)
   ========================================== */

:root {
  /* Cores da Bandeira do Brasil */
  --verde: #1B8B3D;
  --verde-escuro: #146B2E;
  --verde-claro: #e8f5ec;
  --amarelo: #F5C518;
  --amarelo-hover: #E0B310;
  --amarelo-claro: #fef9e7;
  --azul: #1A4B8C;
  --azul-claro: #e9f0fa;
  --branco: #ffffff;
  --bg-light: #f5f7f5;
  --color-text: #1e2d26;
  --color-text-secondary: #4a5d52;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --transition: all 0.3s ease;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--branco);
}

/* ---- NAVBAR ---- */
#mainNav {
  padding: 0.75rem 0;
  transition: var(--transition);
  background: var(--verde);
}

#mainNav.navbar-scrolled {
  background: var(--verde-escuro) !important;
  backdrop-filter: blur(12px);
  padding: 0.5rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

#mainNav .navbar-brand span {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

#mainNav .nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9) !important;
  padding: 0.5rem 0.85rem !important;
  transition: var(--transition);
}

#mainNav .nav-link:hover {
  color: var(--amarelo) !important;
}

.btn-accent {
  background: var(--amarelo);
  color: var(--color-text);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  transition: var(--transition);
}

.btn-accent:hover, .btn-accent:focus {
  background: var(--amarelo-hover);
  color: var(--color-text);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(245, 197, 24, 0.45);
}

/* ---- HERO ---- */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(27, 139, 61, 0.82) 0%,
    rgba(26, 75, 140, 0.72) 60%,
    rgba(26, 75, 140, 0.6) 100%
  );
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--amarelo), #ffe066);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  line-height: 1.8;
}

.btn-outline-light {
  border-radius: 50px;
  font-weight: 600;
  border-width: 2px;
}

/* ---- SECTIONS ---- */
.section-padding {
  padding: 4.5rem 0;
}

.section-badge {
  display: inline-block;
  background: var(--verde);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--verde-escuro);
  margin-bottom: 0.75rem;
}

.section-title.text-white {
  color: #fff;
}

/* ---- INFO CARDS (O que é) ---- */
.info-card {
  background: var(--branco);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 139, 61, 0.1);
  transition: var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-right: 1rem;
}

/* Override Bootstrap subtle with Brazil colors */
.bg-primary-subtle { background: var(--verde-claro) !important; }
.text-primary { color: var(--verde) !important; }
.bg-success-subtle { background: var(--azul-claro) !important; }
.text-success { color: var(--azul) !important; }
.bg-warning-subtle { background: var(--amarelo-claro) !important; }
.text-warning { color: #b8930e !important; }

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: var(--branco);
  border: 2px solid var(--verde);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.phase-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phase-list li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  color: var(--color-text-secondary);
}

.phase-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}

.phase-list li.active {
  color: var(--verde-escuro);
  font-weight: 600;
  background: var(--verde-claro);
  border-radius: 8px;
  margin: 0.25rem -0.5rem;
  padding-left: 2rem;
}

.phase-list li.active::before {
  background: var(--verde);
  width: 10px;
  height: 10px;
  left: 0.5rem;
}

/* ---- STEP CARDS (Como funciona) ---- */
.step-card {
  background: var(--branco);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  height: 100%;
  transition: var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.step-image-wrapper {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 0.5rem;
  display: flex;
  justify-content: center;
}

.step-image {
  max-height: 260px;
  width: auto;
  border-radius: 8px;
}

/* ---- LEGAL CARDS ---- */
.legal-card {
  background: var(--branco);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.legal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.legal-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--azul), #2a6ab8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.legal-article {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--verde);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

/* ---- ALERT LEGAL ---- */
.alert-legal {
  background: var(--amarelo-claro);
  border: 2px solid var(--amarelo);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

/* ---- STAT CHIPS ---- */
.stat-chip {
  display: inline-flex;
  align-items: center;
  background: var(--verde-claro);
  border: 1px solid rgba(27, 139, 61, 0.15);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--verde-escuro);
}

/* ---- INSTALL CARDS ---- */
.install-card {
  background: var(--branco);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.install-card:hover {
  box-shadow: var(--shadow-md);
}

.install-img {
  max-height: 320px;
  width: auto;
  border-radius: 10px;
}

/* ---- VIDEO CARD ---- */
.video-card {
  background: var(--branco);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  height: 100%;
}

/* ---- FAQ ACCORDION ---- */
.accordion-item {
  border: 1px solid rgba(27, 139, 61, 0.12) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--verde-escuro);
  padding: 1.1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  background: var(--verde-claro);
  color: var(--verde-escuro);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(27, 139, 61, 0.2);
}

.accordion-button::after {
  background-size: 1rem;
}

.accordion-body {
  padding: 0 1.25rem 1.15rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---- SECURITY SECTION ---- */
.text-accent {
  color: var(--amarelo) !important;
}

/* ---- CTA ---- */
.cta-section {
  background: linear-gradient(135deg, var(--verde) 0%, var(--azul) 100%);
  padding: 4rem 0;
}

/* ---- FOOTER ---- */
footer {
  background: var(--verde-escuro) !important;
}

footer a {
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--amarelo) !important;
}

/* ---- BACKGROUND LIGHT OVERRIDE ---- */
.bg-light {
  background-color: var(--bg-light) !important;
}

/* ---- RESPONSIVE (MOBILE-FIRST) ---- */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .step-image {
    max-height: 200px;
  }

  .step-card {
    padding: 1.25rem 1rem;
  }

  .legal-card {
    padding: 1.5rem;
  }

  .highlight-box {
    padding: 1.25rem;
    margin-top: 1.5rem;
  }

  #mainNav {
    background: var(--verde) !important;
  }

  .navbar-collapse {
    padding: 0.75rem 0;
  }

  .navbar-collapse .btn-accent {
    margin-top: 0.75rem;
    display: block;
    text-align: center;
  }

  .install-img {
    max-height: 260px;
  }

  .hero-section {
    min-height: 90vh;
  }

  .hero-section .badge {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .section-padding {
    padding: 2.5rem 0;
  }

  .info-card {
    padding: 1rem;
  }

  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-right: 0.75rem;
  }

  .install-img {
    max-height: 240px;
  }

  .accordion-button {
    font-size: 0.9rem;
    padding: 1rem;
  }

  .stat-chip {
    font-size: 0.82rem;
    padding: 0.4rem 0.8rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.65rem 1.25rem !important;
  }

  .cta-section {
    padding: 3rem 0;
  }

  .cta-section h2 {
    font-size: 1.6rem !important;
  }
}

/* ---- SCROLL ANIMATION ---- */
.info-card, .step-card, .legal-card, .install-card, .video-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger delays for cards within a row */
.col-sm-6:nth-child(1) .step-card,
.col-lg-4:nth-child(1) .legal-card { animation-delay: 0.1s; }
.col-sm-6:nth-child(2) .step-card,
.col-lg-4:nth-child(2) .legal-card { animation-delay: 0.2s; }
.col-sm-6:nth-child(3) .step-card,
.col-lg-4:nth-child(3) .legal-card { animation-delay: 0.3s; }
.col-sm-6:nth-child(4) .step-card { animation-delay: 0.4s; }
