/* =========================================
   1. VARIÁVEIS E RESET
   ========================================= */
:root {
  /* Cores da Marca */
  --brand-lime: #d1d839;       /* Verde Claro (Acentos) */
  --brand-olive: #8ea147;      /* Verde Médio (Hover) */
  --brand-dark: #1e2410;       /* Verde Escuro Quase Preto (Fundo Premium) */
  --brand-accent: #2c331a;     /* Variação Dark */
  
  /* Textos e Fundos */
  --text-main: #565656;
  --text-light: #999999;
  --white: #ffffff;
  --bg-light: #f8f9fa;
  
  /* UI Elements */
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --glass: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { 
  color: var(--brand-dark); 
  font-weight: 700; 
  line-height: 1.2; 
  margin-bottom: 1rem; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. HEADER & MEGA MENU
   ========================================= */
.topbar { 
  background: var(--brand-dark); 
  color: white; 
  font-size: 0.85rem; 
  padding: 8px 0; 
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; }
.topbar a { color: var(--brand-lime); margin-left: 15px; }

.header { 
  position: sticky; 
  top: 0; 
  background: rgba(255,255,255,0.98); 
  z-index: 1000; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}
.header-inner { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 10px 0; 
}

.nav-toggle { display: none; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--brand-dark); }

.menu { display: flex; gap: 20px; align-items: center; }
.menu > li { position: relative; padding: 15px 0; }
.menu > li > a, .menu-trigger { font-weight: 600; color: var(--brand-dark); cursor: pointer; font-size: 0.95rem; }
.menu-trigger::after { content: ' ▾'; font-size: 0.8em; color: var(--brand-olive); }

/* Mega Dropdown Styles */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  width: 650px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 30px;
  display: none;
  grid-template-columns: 1fr 1px 1fr;
  gap: 30px;
  z-index: 1001;
  border-top: 4px solid var(--brand-lime);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.has-sub:hover .mega-dropdown { display: grid; opacity: 1; visibility: visible; top: 100%; }

.mega-col h4 { 
  font-size: 0.85rem; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  color: #999; 
  margin-bottom: 15px; 
  border-bottom: 1px solid #eee; 
  padding-bottom: 5px; 
}
.mega-col li { margin-bottom: 8px; }
.mega-col a { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  font-weight: 600; 
  color: #444; 
  padding: 8px; 
  border-radius: 8px; 
  transition: 0.2s; 
}
.mega-col a:hover { background: var(--bg-light); color: var(--brand-olive); transform: translateX(5px); }
.mega-col a span { font-size: 1.3rem; } /* Emoji Icon */

.mega-divider { background: #eee; height: 100%; width: 1px; }

/* =========================================
   3. BOTÕES & UTILS
   ========================================= */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

.btn { 
  display: inline-block; 
  padding: 12px 28px; 
  border-radius: 50px; 
  font-weight: 700; 
  cursor: pointer; 
  border: none; 
  text-align: center; 
  font-size: 1rem; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
  transition: 0.3s; 
}
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

.btn-primary { 
  background: var(--brand-lime); 
  color: var(--brand-dark); 
  box-shadow: 0 4px 15px rgba(209, 216, 57, 0.4); 
}
.btn-primary:hover { 
  background: var(--brand-olive); 
  color: white; 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(209, 216, 57, 0.6); 
}

.btn-outline { border: 2px solid var(--brand-dark); color: var(--brand-dark); background: transparent; }
.btn-outline:hover { background: var(--brand-dark); color: var(--brand-lime); }

.btn-outline-white { border: 2px solid rgba(255,255,255,0.3); color: white; background: transparent; }
.btn-outline-white:hover { background: white; color: var(--brand-dark); }

.btn-wa { background: #25D366; color: white; width: 100%; border: none; margin-top: 10px; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-block { width: 100%; }

.wa-float-btn { 
  position: fixed; 
  bottom: 30px; 
  right: 30px; 
  background: #25D366; 
  width: 65px; 
  height: 65px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.3); 
  z-index: 1500; 
  transition: 0.3s; 
  cursor: pointer; 
}
.wa-float-btn:hover { transform: scale(1.1); }

/* =========================================
   4. HOME SECTION STYLES
   ========================================= */
section { padding: 80px 0; display: block; width: 100%; }

/* Hero da Home (Light) */
.hero-wrapper { 
  padding: 60px 0 100px; 
  margin-top: 0; 
  background: linear-gradient(135deg, #fbfcf4 0%, #ffffff 100%); 
}
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-content h1 { font-size: 2.8rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.1rem; color: #666; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-image img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.badge { background: #e8f0fe; color: var(--brand-dark); padding: 5px 10px; border-radius: 5px; font-size: 0.8rem; font-weight: bold; margin-bottom: 10px; display: inline-block; }

.section-bg { background-color: var(--bg-light); padding-bottom: 100px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }

/* Cards de Serviço (Home) */
.service-card { 
  background: white; 
  padding: 35px; 
  border-radius: 16px; 
  border: 1px solid #eee; 
  transition: 0.3s; 
  height: 100%; 
  display: flex; 
  flex-direction: column; 
}
.service-card:hover { border-color: var(--brand-lime); box-shadow: var(--shadow); transform: translateY(-5px); }
.icon-box { font-size: 2.2rem; margin-bottom: 20px; background: #f4f6e1; width: 65px; height: 65px; display: grid; place-items: center; border-radius: 50%; }

/* Steps / Como Funciona */
.steps-section { padding: 80px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 40px; }
.step-item { background: white; padding: 30px; border-radius: 16px; border: 1px solid #eee; text-align: center; }
.step-num { display: inline-block; background: var(--brand-lime); width: 35px; height: 35px; border-radius: 50%; line-height: 35px; font-weight: bold; margin-bottom: 15px; font-size: 1.2rem; }

/* Testimonials & About */
.testimonials { text-align: center; padding-top: 100px; background: white; }
.review-card { background: white; padding: 30px; border-radius: var(--radius); box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: left; }
.stars { color: gold; margin-bottom: 10px; letter-spacing: 2px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* FAQ */
.faq-list { max-width: 800px; margin: 40px auto 0; }
details { background: white; border: 1px solid #eee; margin-bottom: 15px; border-radius: 10px; padding: 20px; cursor: pointer; transition: 0.3s; }
details[open] { border-color: var(--brand-lime); background: #fdfdfd; }
summary { font-weight: 700; color: var(--brand-dark); outline: none; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--brand-olive); }
details[open] summary::after { content: '-'; }
details p { margin-top: 15px; color: #666; font-size: 1rem; }

/* =========================================
   5. LANDING PAGES (DARK PREMIUM) STYLES
   ========================================= */
.lp-hero {
  background-color: var(--brand-dark);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Efeito Glow no fundo */
.lp-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: var(--brand-lime);
  filter: blur(200px);
  opacity: 0.1;
  border-radius: 50%;
  pointer-events: none;
}

.lp-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; position: relative; z-index: 2; }

.lp-content h1 { color: white; font-size: 3rem; margin-bottom: 20px; line-height: 1.1; }
.lp-content h1 span { color: var(--brand-lime); font-style: italic; font-family: serif; font-weight: 400; }
.lp-content p { color: #ccc; font-size: 1.1rem; margin-bottom: 30px; max-width: 500px; }

.lp-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.lp-card { 
  background: rgba(255,255,255,0.05); 
  border: 1px solid rgba(255,255,255,0.1); 
  padding: 25px; 
  border-radius: 16px; 
  backdrop-filter: blur(10px); 
  transition: 0.3s; 
}
.lp-card:hover { background: rgba(255,255,255,0.1); border-color: var(--brand-lime); transform: translateY(-5px); }
.lp-card h3 { color: white; font-size: 1.1rem; margin-bottom: 10px; }
.lp-card p { color: #aaa; font-size: 0.9rem; margin-bottom: 0; }

.lp-image img { width: 100%; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

.lp-details { background: white; padding: 100px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.detail-text h2 { font-size: 2.5rem; margin-bottom: 25px; }
.detail-text p { font-size: 1.1rem; margin-bottom: 30px; color: #555; }

.check-list-styled li { margin-bottom: 15px; padding-left: 35px; position: relative; font-weight: 600; color: #444; font-size: 1.05rem; }
.check-list-styled li::before { 
  content: '✓'; 
  color: var(--brand-lime); 
  background: var(--brand-dark); 
  width: 24px; 
  height: 24px; 
  border-radius: 50%; 
  position: absolute; 
  left: 0; 
  top: 2px; 
  font-size: 14px; 
  display: grid; 
  place-items: center; 
}
.img-block img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }

/* =========================================
   6. FORMULÁRIO (CTA)
   ========================================= */
.cta-section { background: var(--brand-dark); color: white; position: relative; overflow: hidden; padding-bottom: 0; }

.cta-text { 
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  padding: 50px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}
.cta-text h2 { color: var(--brand-lime) !important; font-size: 2.2rem; }

.cta-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; margin-bottom: 80px; }

.form-card { 
  background: white; 
  padding: 40px; 
  border-radius: 24px; 
  color: var(--text-main); 
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); 
}

.benefits-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.benefits-list li span { 
  background: var(--brand-lime); 
  color: var(--brand-dark); 
  width: 28px; 
  height: 28px; 
  border-radius: 50%; 
  display: grid; 
  place-items: center; 
  font-size: 0.9rem; 
  flex-shrink: 0; 
  font-weight: bold; 
}

/* Tabs do Form */
.form-tabs { display: flex; gap: 15px; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.tab { background: none; border: none; padding: 10px 15px; cursor: pointer; color: #999; font-weight: 600; font-size: 1rem; }
.tab.active { color: var(--brand-olive); border-bottom: 3px solid var(--brand-olive); margin-bottom: -13px; }

/* Inputs */
.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; color: #444; }
.input-group input, .input-group select { 
  width: 100%; 
  padding: 14px; 
  border: 1px solid #ddd; 
  border-radius: 8px; 
  font-family: inherit; 
  font-size: 1rem; 
  background: #fdfdfd;
}
.input-group input:focus, .input-group select:focus { border-color: var(--brand-olive); outline: none; background: white; }

/* Phone Input com Bandeira */
.phone-wrapper { 
  display: flex; 
  align-items: center; 
  border: 1px solid #ddd; 
  border-radius: 8px; 
  background: #fff; 
  overflow: hidden; 
  height: 50px; 
}
.phone-wrapper input { border: none; outline: none; height: 100%; padding-left: 15px; flex: 1; }
.flag-container { 
  background: #eee; 
  height: 100%; 
  width: 55px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  border-right: 1px solid #ddd; 
  flex-shrink: 0; 
  font-size: 10px; 
  color: #666; 
  line-height: 1; 
}
.flag-img { width: 24px !important; height: auto !important; display: block; margin-bottom: 3px; }
.input-error input, .input-error .phone-wrapper { border-color: red; background-color: #fff0f0; }

/* =========================================
   7. MAPA FULL WIDTH
   ========================================= */
.map-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  display: block;
  line-height: 0;
  margin-bottom: -1px; /* Cola no footer */
}
.map-full iframe { width: 100%; height: 450px; border: 0; display: block; }

/* =========================================
   8. FOOTER
   ========================================= */
.footer { background: #111; color: #bbb; padding: 60px 0 30px; text-align: center; margin-top: 0; }
.footer-bottom { border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; font-size: 0.8rem; }

/* =========================================
   9. MODAIS
   ========================================= */
.modal { 
  position: fixed; inset: 0; z-index: 2000; 
  display: flex; justify-content: center; align-items: center; 
  opacity: 0; pointer-events: none; transition: 0.3s; 
}
.modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-content { 
  position: relative; background: white; padding: 35px; 
  border-radius: 16px; max-width: 450px; width: 90%; 
  transform: translateY(20px); transition: 0.3s; 
}
.modal[aria-hidden="false"] .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #999; }
.highlight-border { border-top: 6px solid var(--brand-lime); }
.wa-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }

/* =========================================
   10. RESPONSIVO (MOBILE)
   ========================================= */
@media (max-width: 899px) {
  /* Menu Mobile */
  .nav-toggle { display: block; }
  .menu { 
    display: none; position: absolute; top: 100%; left: 0; 
    width: 100%; background: white; flex-direction: column; 
    padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    align-items: flex-start; height: 90vh; overflow-y: auto; 
  }
  .menu.active { display: flex; }
  
  /* Mega Dropdown Mobile */
  .mega-dropdown { 
    position: static; transform: none; width: 100%; 
    box-shadow: none; border-top: none; 
    grid-template-columns: 1fr; display: none; 
    opacity: 1; visibility: visible; padding: 0 0 0 20px; 
  }
  .mega-divider { display: none; }
  .has-sub:hover .mega-dropdown { display: grid; } /* Simples toggle visual no hover mobile ou JS */

  /* Layouts */
  .hero, .lp-grid, .detail-grid, .cta-container, .about-grid { grid-template-columns: 1fr; }
  .hero-image, .lp-image, .img-block { order: -1; margin-bottom: 30px; }
  
  .lp-grid { gap: 30px; }
  .cta-text { margin-bottom: 30px; }
  
  /* Tipografia Mobile */
  .lp-content h1, .hero-content h1 { font-size: 2.2rem; }
  
  /* Decorativos */
  .lp-hero::before { display: none; }
  .wa-float-btn { bottom: 20px; right: 20px; width: 55px; height: 55px; }
}