/* =========================================
   VARIABLES - RESIMETAL
========================================= */
:root {
  /* Colors */
  --bg-main: #105576; /* Azul Primário */
  --bg-darker: #0a3a52; 
  --bg-light: #F3F4F6;
  --bg-white: #FFFFFF;
  
  --accent-gold: #158E12; /* Verde Secundário (WhatsApp/CTA) */
  --accent-gold-hover: #69AF44; /* Verde Claro Apoio */
  
  --accent-blue: #105576; 
  --accent-blue-hover: #0a3a52;
  
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-light: #D1D5DB;
  --text-white: #FFFFFF;

  --border-color: #E5E7EB;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  
  /* Utilities */
  --container-width: 1200px;
  --border-radius: 12px;
  --transition: all 0.3s ease-in-out;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* =========================================
   RESET & GLOBAL
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--accent-blue);
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.section-padding {
  padding: var(--section-padding);
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-main); color: var(--text-white); }
.text-center { text-align: center; }
.text-primary { color: var(--accent-gold); }

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(21, 142, 18, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  color: var(--text-white);
  box-shadow: 0 6px 20px rgba(21, 142, 18, 0.4);
}

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

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

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* =========================================
   TOP BAR (MOBILE ONLY)
========================================= */
.top-bar {
  display: none;
  background-color: var(--accent-blue);
  color: var(--text-white);
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  z-index: 1001;
}

.top-bar-link {
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 992px) {
  .top-bar { display: block; }
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.header-container { width: 100%; height: 80px; display: flex; justify-content: space-between; align-items: center; }
.header.scrolled .header-container { height: 70px; }

/* LOGO SIZE ADJUSTMENTS */
.logo-img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.header.scrolled .logo-img {
  height: 40px;
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
    max-width: 65vw;
  }
}


.nav-menu ul { display: flex; gap: 24px; }
.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active { color: var(--accent-blue); }

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--bg-main);
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-menu {
    position: absolute;
    top: 100%; left: -100vw;
    width: 100vw; height: 100vh;
    background: var(--bg-white);
    transition: var(--transition);
    padding: 40px 24px;
    z-index: 999;
  }
  .nav-menu.active { left: 0; }
  .nav-menu ul { flex-direction: column; gap: 20px; }
  .mobile-menu-toggle { display: block; }
  .header-cta { display: none; }
}

/* =========================================
   HERO
========================================= */
.hero {
  position: relative;
  background-color: var(--bg-main);
  padding: 180px 0 120px;
  color: var(--text-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(16, 85, 118, 0.4) 0%, rgba(10, 58, 82, 1) 60%);
  z-index: 1;
}

.hero-container { position: relative; z-index: 2; }
.hero-content { max-width: 800px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(21, 142, 18, 0.15);
  color: var(--accent-gold); /* Verde escuro padrão */
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(21, 142, 18, 0.5);
}

.bg-dark .badge, .hero .badge {
  color: #FFFFFF; /* Apenas branco onde o fundo é muito escuro */
}

.hero h1 { font-size: 3.5rem; margin-bottom: 24px; letter-spacing: -1px; }
.hero h1 span { color: var(--accent-gold); }
.hero p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 50px; }
.hero-features { display: flex; gap: 24px; flex-wrap: wrap; }
.feature-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #9CA3AF; }
.feature-item i { color: var(--accent-gold); font-size: 1.2rem; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; }
}

/* =========================================
   BENEFITS / SERVICES
========================================= */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}

.icon-wrapper {
  width: 60px; height: 60px;
  background-color: rgba(16, 85, 118, 0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-blue);
  font-size: 28px;
}

/* =========================================
   SECTIONS
========================================= */
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 2.5rem; margin-bottom: 16px; color: var(--bg-main); }
.bg-dark .section-title, .bg-dark p { color: #FFFFFF; } /* Adicionado para contraste braco na aba escura */
.section-subtitle { color: var(--text-secondary); font-size: 1.1rem; }

.correios-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 992px) { .correios-container { grid-template-columns: 1fr; } }

.c-feature { display: flex; gap: 16px; margin-bottom: 24px; }
.c-feature i { font-size: 2.5rem; color: var(--accent-gold); }

.correios-features { margin-top: 40px; }

.rounded-premium { border-radius: var(--border-radius); overflow: hidden; }
.img-fluid { width: 100%; height: auto; object-fit: cover; }

/* =========================================
   CAROUSEL / GALLERY
========================================= */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/6;
  background-color: var(--bg-white);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 33.333%;
  height: 100%;
  padding: 0 5px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 24, 39, 0.7);
  color: var(--text-white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.carousel-button:hover {
  background: var(--accent-gold);
  color: var(--bg-main);
  transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
  left: 16px;
}

.carousel-button.next {
  right: 16px;
}

.carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.indicator.active {
  background: var(--accent-gold);
  transform: scale(1.2);
}

@media (max-width: 992px) {
  .carousel-slide { min-width: 50%; }
}

@media (max-width: 576px) {
  .carousel-slide { min-width: 100%; }
  .carousel-container {
    aspect-ratio: 1/1;
  }
}

/* =========================================
   FAQ
========================================= */
.faq-container { max-width: 800px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-header {
  width: 100%; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; font-size: 1.1rem; font-weight: 600;
  text-align: left; cursor: pointer; color: var(--bg-main);
}
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.accordion-content p { padding-bottom: 20px; color: var(--text-secondary); }
.accordion-item.active .accordion-content { max-height: 200px; }

/* =========================================
   CONTACT
========================================= */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  margin: 0;
}
.col-text, .col-form {
  flex: 1;
  min-width: 300px;
}

@media (max-width: 768px) {
  .row { gap: 30px; }
  .col-text, .col-form { min-width: 100%; }
}

.contact-info { margin-top: 30px; }
.contact-info li { display: flex; gap: 15px; margin-bottom: 25px; }
.contact-info i { font-size: 1.5rem; }
.contact-info div { min-width: 0; flex: 1; }
.contact-info div span { display: block; font-size: 0.85rem; color: var(--text-secondary); }
.contact-info div strong { font-size: 1.1rem; display: block; overflow-wrap: break-word; word-break: break-all; }

.quote-form { background: var(--bg-white); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; font-family: inherit;
}

/* =========================================
   FOOTER
========================================= */
.footer { background: var(--bg-darker); color: var(--text-white); padding: 80px 0 40px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
@media (max-width: 768px) { .footer-container { grid-template-columns: 1fr; gap: 40px; } }

.footer-brand p { color: var(--text-light); margin-top: 20px; max-width: 350px; }

.footer-logo-img {
  height: 90px; /* Aumentado em 100% (de 45px para 90px) */
  width: auto;
  filter: brightness(0) invert(1); /* Aplica branco no rodapé */
  margin-bottom: 20px;
}

.footer-links h4, .footer-contact h4 { margin-bottom: 24px; font-size: 1.2rem; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: var(--text-light); }
.footer-links ul li a:hover { color: var(--accent-gold); }
.footer-contact ul li { display: flex; gap: 10px; align-items: center; color: var(--text-light); margin-bottom: 15px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; text-align: center; font-size: 0.9rem; color: var(--text-secondary); }

/* =========================================
   ANIMATIONS (Reveal)
========================================= */
.reveal-up { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* WhatsApp Floating */
.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px;
  background-color: #25D366; color: white;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 999; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
