/* ========================================
   MANTTUY - Plano Estratégico de Defesa
   Tema Claro Jurídico-Agro
   ======================================== */

:root {
  --bg-primary: #f8faf7;
  --bg-section: #f0f5f0;
  --text-primary: #1a1a1a;
  --text-secondary: #444;
  --accent: #2e7d32;
  --accent-hover: #388e3c;
  --accent-light: #a5d6a7;
  --header-bg: transparent;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   HEADER / NAVBAR
   ======================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s ease;
}

header.scrolled {
  padding: 0.75rem 0;
  background: rgba(0,0,0,0.5); /* fica levemente escuro só quando rolar */
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img {
  max-height: 2.5rem;
  height: auto;
  object-fit: contain;
  filter: none !important;
  background: transparent !important;
}

header nav {
  display: flex;
  gap: 2rem;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

header nav a:hover {
  color: var(--accent-light);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background-image: url('../img/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  color: white;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.375rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 600px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46,125,50,0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--accent);
  transform: translateY(-2px);
}

/* ========================================
   SECTIONS
   ======================================== */

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: var(--bg-section);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.divider {
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(46,125,50,0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.border-left-accent {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
}

/* ========================================
   GRIDS
   ======================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* ========================================
   STATISTICS
   ======================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--accent);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card .icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.stat-card .value {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.stat-card .label {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 500;
}

/* ========================================
   HIGHLIGHT BOX
   ======================================== */

.highlight-box {
  background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
  border: 2px solid var(--accent-light);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 12px 12px 0 0;
}

.highlight-box p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin: 0;
}

/* ========================================
   TIMELINE
   ======================================== */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--accent-light);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-badge {
  left: calc(50% + 2rem);
}

.timeline-item:nth-child(even) .timeline-badge {
  right: calc(50% + 2rem);
}

.timeline-badge {
  position: absolute;
  background: var(--accent);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 4px 15px rgba(46,125,50,0.3);
}

.timeline-badge h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-badge span {
  font-size: 0.75rem;
  opacity: 0.9;
}

.timeline-content {
  flex: 1;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-left: auto;
  margin-right: auto;
  max-width: 300px;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 0;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: #1a1a1a;
  color: white;
  padding: 3rem 0 1rem;
}

footer img {
  max-height: 4rem;
  height: auto;
  object-fit: contain;
  filter: none !important;
  background: transparent !important;
  margin-bottom: 1.5rem;
}

footer h3 {
  color: var(--accent-light);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

footer a {
  color: #ccc;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #888;
}

/* ========================================
   WHATSAPP FLOAT BUTTON
   ======================================== */

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

/* ========================================
   ANIMATIONS
   ======================================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

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

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  header nav {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .timeline::before {
    left: 1rem;
  }
  
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 3rem;
  }
  
  .timeline-badge {
    position: relative !important;
    left: -3rem !important;
    right: auto !important;
    margin-bottom: 1rem;
  }
  
  .timeline-content {
    margin: 0 !important;
    max-width: none;
  }
  
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}