/* 
 * CRDDPB - Estilos Integrados
 * Integração dos estilos do landing-page.css com o index.html
 */

:root {
  /* Cores principais baseadas no verde institucional */
  --verde-primario: #2F5D3A; /* logo */
  --verde-profundo: #22442B; /* topo/gradiente escuro */
  --verde-acao: #1D7F4F; /* botões */
  --verde-escuro: #1A6B43; /* hover dos botões */
  --verde-suave: #eaf4ee; /* fundos claros de ícones */
  --verde-claro: #2a9d65;
  
  /* Cores complementares */
  --azul-institucional: #1e4b8f;
  --azul-claro: #3a6fc1;
  --dourado: #d4af37;
  
  /* Efeitos padrão */
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --shadow-strong: 0 22px 60px rgba(0,0,0,.45);
  --radius: 16px;
  --transition-default: all 0.3s ease;
  --wrap: 1180px;
  --topbar-h: 64px; /* ligeiramente menor em mobile */
  
  /* Gradientes base */
  --grad-accent: linear-gradient(135deg, var(--verde-acao), var(--verde-claro));
  --grad-institucional: linear-gradient(135deg, var(--azul-institucional), var(--azul-claro));
}

/* Tema padrão (escuro) */
:root {
  --cinza-fundo: #0E1210;
  --cinza-superficie: #121816;
  --cinza-claro: #1A201E;
  --texto: #E9EEEA;
  --texto-suave: #B8C4BC;
  --borda: rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --shadow-strong: 0 22px 60px rgba(0,0,0,.45);
  --grad-hero: radial-gradient(1400px 600px at 20% -30%, rgba(255,255,255,.08), transparent 60%),
               radial-gradient(1400px 600px at 80% -30%, rgba(255,255,255,.06), transparent 60%),
               linear-gradient(180deg, var(--verde-profundo) 0%, #1a3a26 50%, #102018 100%);
  --grad-card: linear-gradient(180deg, var(--cinza-superficie), var(--cinza-fundo));
}

/* Modo claro */
@media (prefers-color-scheme: light) {
  :root {
    --cinza-fundo: #F5F7F6;
    --cinza-superficie: #FFFFFF;
    --cinza-claro: #E8EBE9;
    --texto: #0F1514;
    --texto-suave: #4A4F4D;
    --borda: rgba(0,0,0,.08);
    --shadow: 0 10px 30px rgba(0,0,0,.08);
    --shadow-strong: 0 20px 50px rgba(0,0,0,.16);
    --grad-hero: linear-gradient(180deg, #2F5D3A 0%, #255033 60%, #20442B 100%);
    --grad-card: linear-gradient(180deg, var(--cinza-superficie), var(--cinza-claro));
  }
}

/* Modo escuro forçado */
html[data-theme="dark"] {
  --cinza-fundo: #0E1210 !important;
  --cinza-superficie: #121816 !important;
  --cinza-claro: #1A201E !important;
  --texto: #E9EEEA !important;
  --texto-suave: #B8C4BC !important;
  --borda: rgba(255,255,255,.08) !important;
  --shadow: 0 10px 30px rgba(0,0,0,.35) !important;
  --shadow-strong: 0 22px 60px rgba(0,0,0,.45) !important;
  --grad-hero: radial-gradient(1400px 600px at 20% -30%, rgba(255,255,255,.08), transparent 60%),
               radial-gradient(1400px 600px at 80% -30%, rgba(255,255,255,.06), transparent 60%),
               linear-gradient(180deg, var(--verde-profundo) 0%, #1a3a26 50%, #102018 100%) !important;
  --grad-card: linear-gradient(180deg, var(--cinza-superficie), var(--cinza-fundo)) !important;
}

/* Modo claro forçado */
html[data-theme="light"] {
  --cinza-fundo: #F5F7F6 !important;
  --cinza-superficie: #FFFFFF !important;
  --cinza-claro: #E8EBE9 !important;
  --texto: #0F1514 !important;
  --texto-suave: #4A4F4D !important;
  --borda: rgba(0,0,0,.08) !important;
  --shadow: 0 10px 30px rgba(0,0,0,.08) !important;
  --shadow-strong: 0 20px 50px rgba(0,0,0,.16) !important;
  --grad-hero: linear-gradient(180deg, #2F5D3A 0%, #255033 60%, #20442B 100%) !important;
  --grad-card: linear-gradient(180deg, var(--cinza-superficie), var(--cinza-claro)) !important;
}

/* Botão de toggle do tema */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--cinza-superficie);
  border: 2px solid var(--borda);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-strong);
}

.theme-toggle i {
  font-size: 1.2rem;
  color: var(--texto);
  transition: all 0.3s ease;
}

.theme-toggle:focus {
  outline: 2px solid var(--verde-acao);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .theme-toggle {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .theme-toggle i {
    font-size: 1.1rem;
  }
}

/* Sistema de busca */
.search-container {
  position: relative;
  display: none;
  max-width: 400px;
  margin: 0 auto;
}

.search-container.active {
  display: block;
}

#site-search {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 2px solid var(--borda);
  border-radius: 25px;
  background: var(--cinza-superficie);
  color: var(--texto);
  font-size: 14px;
  transition: all 0.3s ease;
}

#site-search:focus {
  border-color: var(--verde-acao);
  box-shadow: 0 0 0 3px rgba(47, 93, 58, 0.1);
  outline: none;
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--verde-acao);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: var(--verde-escuro);
  transform: translateY(-50%) scale(1.05);
}

.search-btn i {
  color: white;
  font-size: 14px;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cinza-superficie);
  border: 2px solid var(--borda);
  border-top: none;
  border-radius: 0 0 15px 15px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: var(--shadow);
}

.search-results.show {
  display: block;
}

.search-result-item {
  padding: 12px 15px;
  border-bottom: 1px solid var(--borda);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:hover,
.search-result-item:focus {
  background: var(--cinza-claro);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: 600;
  color: var(--verde-acao);
  margin-bottom: 4px;
}

.search-result-content {
  font-size: 13px;
  color: var(--texto-suave);
  line-height: 1.4;
}

.search-highlight {
  background: var(--dourado);
  color: var(--texto);
  padding: 1px 2px;
  border-radius: 2px;
  font-weight: 600;
}

.search-toggle {
  background: none;
  border: none;
  color: var(--texto);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-right: 10px;
}

.search-toggle:hover {
  background: var(--cinza-claro);
  transform: scale(1.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.no-results {
  padding: 20px 15px;
  text-align: center;
  color: var(--texto-suave);
  font-style: italic;
}

@media (max-width: 768px) {
  .search-container {
    position: fixed;
    top: 70px;
    left: 15px;
    right: 15px;
    max-width: none;
    z-index: 1001;
  }
  
  .search-toggle {
    display: block;
  }
  
  .search-container:not(.active) {
    display: none;
  }
}

@media (min-width: 769px) {
  .search-container {
    display: block;
    position: relative;
  }
  
  .search-toggle {
     display: none;
   }
 }
 
 /* Banner de Cookies LGPD */
 .cookie-banner {
   position: fixed;
   bottom: 0;
   left: 0;
   right: 0;
   background: var(--cinza-superficie);
   border-top: 3px solid var(--verde-acao);
   box-shadow: var(--shadow-strong);
   z-index: 1002;
   transform: translateY(100%);
   transition: transform 0.4s ease;
 }
 
 .cookie-banner.show {
   transform: translateY(0);
 }
 
 .cookie-content {
   display: flex;
   align-items: center;
   gap: 20px;
   padding: 20px;
   max-width: 1200px;
   margin: 0 auto;
 }
 
 .cookie-icon {
   font-size: 2rem;
   color: var(--dourado);
   flex-shrink: 0;
 }
 
 .cookie-text {
   flex: 1;
 }
 
 .cookie-text h3 {
   margin: 0 0 8px 0;
   color: var(--texto);
   font-size: 1.1rem;
 }
 
 .cookie-text p {
   margin: 0;
   color: var(--texto-suave);
   font-size: 0.9rem;
   line-height: 1.4;
 }
 
 .cookie-link {
   color: var(--verde-acao);
   text-decoration: underline;
 }
 
 .cookie-link:hover {
   color: var(--verde-escuro);
 }
 
 .cookie-actions {
   display: flex;
   gap: 10px;
   flex-shrink: 0;
 }
 
 .cookie-btn {
   padding: 10px 16px;
   border: none;
   border-radius: 6px;
   font-size: 0.9rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   display: flex;
   align-items: center;
   gap: 6px;
 }
 
 .cookie-btn-accept {
   background: var(--verde-acao);
   color: white;
 }
 
 .cookie-btn-accept:hover {
   background: var(--verde-escuro);
   transform: translateY(-2px);
 }
 
 .cookie-btn-decline {
   background: var(--cinza-claro);
   color: var(--texto);
   border: 1px solid var(--borda);
 }
 
 .cookie-btn-decline:hover {
   background: var(--borda);
 }
 
 .cookie-btn-settings {
   background: var(--dourado);
   color: var(--texto);
 }
 
 .cookie-btn-settings:hover {
   background: #c5941f;
   transform: translateY(-2px);
 }
 
 /* Modal de Configurações */
 .cookie-modal {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   z-index: 1003;
   display: none;
   align-items: center;
   justify-content: center;
 }
 
 .cookie-modal.show {
   display: flex;
 }
 
 .cookie-modal-overlay {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.5);
   backdrop-filter: blur(4px);
 }
 
 .cookie-modal-content {
   position: relative;
   background: var(--cinza-superficie);
   border-radius: 12px;
   max-width: 500px;
   width: 90%;
   max-height: 80vh;
   overflow-y: auto;
   box-shadow: var(--shadow-strong);
   animation: modalSlideIn 0.3s ease;
 }
 
 @keyframes modalSlideIn {
   from {
     opacity: 0;
     transform: scale(0.9) translateY(-20px);
   }
   to {
     opacity: 1;
     transform: scale(1) translateY(0);
   }
 }
 
 .cookie-modal-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 20px;
   border-bottom: 1px solid var(--borda);
 }
 
 .cookie-modal-header h2 {
   margin: 0;
   color: var(--texto);
   font-size: 1.3rem;
 }
 
 .cookie-modal-close {
   background: none;
   border: none;
   font-size: 1.2rem;
   color: var(--texto-suave);
   cursor: pointer;
   padding: 5px;
   border-radius: 4px;
   transition: all 0.3s ease;
 }
 
 .cookie-modal-close:hover {
   background: var(--cinza-claro);
   color: var(--texto);
 }
 
 .cookie-modal-body {
   padding: 20px;
 }
 
 .cookie-category {
   margin-bottom: 20px;
   padding-bottom: 20px;
   border-bottom: 1px solid var(--borda);
 }
 
 .cookie-category:last-child {
   border-bottom: none;
   margin-bottom: 0;
 }
 
 .cookie-category-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 8px;
 }
 
 .cookie-category h3 {
   margin: 0;
   color: var(--texto);
   font-size: 1rem;
 }
 
 .cookie-category p {
   margin: 0;
   color: var(--texto-suave);
   font-size: 0.9rem;
   line-height: 1.4;
 }
 
 /* Switch de cookies */
 .cookie-switch {
   position: relative;
   display: inline-block;
   width: 50px;
   height: 24px;
 }
 
 .cookie-switch input {
   opacity: 0;
   width: 0;
   height: 0;
 }
 
 .cookie-slider {
   position: absolute;
   cursor: pointer;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: var(--cinza-claro);
   transition: 0.4s;
   border-radius: 24px;
 }
 
 .cookie-slider:before {
   position: absolute;
   content: "";
   height: 18px;
   width: 18px;
   left: 3px;
   bottom: 3px;
   background-color: white;
   transition: 0.4s;
   border-radius: 50%;
 }
 
 input:checked + .cookie-slider {
   background-color: var(--verde-acao);
 }
 
 input:checked + .cookie-slider:before {
   transform: translateX(26px);
 }
 
 input:disabled + .cookie-slider {
   opacity: 0.6;
   cursor: not-allowed;
 }
 
 .cookie-modal-footer {
   padding: 20px;
   border-top: 1px solid var(--borda);
   text-align: center;
 }
 
 /* Responsividade */
 @media (max-width: 768px) {
   .cookie-content {
     flex-direction: column;
     text-align: center;
     gap: 15px;
   }
   
   .cookie-actions {
     flex-direction: column;
     width: 100%;
   }
   
   .cookie-btn {
     justify-content: center;
   }
   
   .cookie-modal-content {
      width: 95%;
      margin: 10px;
    }
  }
  
  /* Loading States para Formulários */
  .form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
  }
  
  .form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--verde-acao);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
  }
  
  .btn-loading .btn-text {
    opacity: 0;
  }
  
  .btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  /* Estados de sucesso e erro */
  .form-success {
    border: 2px solid var(--verde-acao);
    background-color: rgba(76, 175, 80, 0.1);
  }
  
  .form-error {
    border: 2px solid #f44336;
    background-color: rgba(244, 67, 54, 0.1);
  }
  
  .form-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
  }
  
  .form-message.show {
    display: block;
    animation: slideDown 0.3s ease;
  }
  
  .form-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--verde-acao);
    border: 1px solid var(--verde-acao);
  }
  
  .form-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Indicador de progresso para upload */
  .upload-progress {
    width: 100%;
    height: 4px;
    background-color: var(--cinza-claro);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
    display: none;
  }
  
  .upload-progress.show {
    display: block;
  }
  
  .upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--verde-acao), var(--dourado));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
  }
  
  /* Skeleton loading para conteúdo */
  .skeleton {
    background: linear-gradient(90deg, var(--cinza-claro) 25%, var(--cinza-superficie) 50%, var(--cinza-claro) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
  }
  
  @keyframes loading {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }
  
  .skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
  }
  
  .skeleton-text:last-child {
    width: 80%;
  }

/* Estilos gerais */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0; 
  padding-top: var(--topbar-h);
  font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  background: var(--cinza-fundo); 
  color: var(--texto);
  -webkit-font-smoothing: antialiased; 
  text-rendering: optimizeLegibility;
  transition: var(--transition-default);
  scroll-behavior: smooth;
}

a {
  color: inherit; 
  text-decoration: none;
}

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

.wrap {
  max-width: var(--wrap); 
  margin: 0 auto; 
  padding: 0 16px;
}

h1, h2, h3 {
  letter-spacing: .2px;
}

h2 {
  font-size: clamp(1.2rem, 1vw + 1rem, 1.6rem); 
  margin: 0 0 14px;
}

/* Acessibilidade */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--verde-acao);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
  outline: 3px solid var(--dourado);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Melhorias de foco para acessibilidade */
*:focus {
  outline: 2px solid var(--verde-acao);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Foco específico para botões */
button:focus,
.btn:focus,
input[type="submit"]:focus {
  outline: 3px solid var(--dourado);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.2);
}

/* Foco para links */
a:focus {
  outline: 2px solid var(--verde-acao);
  outline-offset: 2px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Foco para campos de formulário */
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--verde-acao);
  outline-offset: 1px;
  border-color: var(--verde-acao);
  box-shadow: 0 0 0 3px rgba(47, 93, 58, 0.1);
}

/* Indicador visual para elementos focáveis */
[tabindex]:focus,
[role="button"]:focus {
  outline: 2px solid var(--verde-acao);
  outline-offset: 2px;
}

/* Melhor contraste para texto selecionado */
::selection {
  background-color: var(--dourado);
  color: var(--texto);
}

::-moz-selection {
  background-color: var(--dourado);
  color: var(--texto);
}

/* Indicador de navegação por teclado */
.keyboard-navigation *:focus {
  outline: 3px solid var(--dourado) !important;
  outline-offset: 2px !important;
}

/* Ocultar outline quando usando mouse */
.mouse-navigation *:focus {
  outline: none;
}

/* Transições suaves para foco */
* {
  transition: outline 0.2s ease, box-shadow 0.2s ease;
}

/* Animações de scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

.scroll-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.scroll-reveal-fade {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.scroll-reveal-fade.revealed {
  opacity: 1;
}

/* Delays para animações em sequência */
.scroll-reveal.delay-1 {
  transition-delay: 0.1s;
}

.scroll-reveal.delay-2 {
  transition-delay: 0.2s;
}

.scroll-reveal.delay-3 {
  transition-delay: 0.3s;
}

.scroll-reveal.delay-4 {
  transition-delay: 0.4s;
}

.scroll-reveal.delay-5 {
  transition-delay: 0.5s;
}

/* Animação especial para cards */
.card-reveal {
  opacity: 0;
  transform: translateY(40px) rotateX(10deg);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-reveal.revealed {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

/* Animação para contadores */
.counter-reveal {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.counter-reveal.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Reduzir movimento para usuários que preferem menos animação */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-left,
  .scroll-reveal-right,
  .scroll-reveal-scale,
  .scroll-reveal-fade,
  .card-reveal,
  .counter-reveal {
    transition: opacity 0.3s ease;
    transform: none;
  }
  
  .scroll-reveal.revealed,
  .scroll-reveal-left.revealed,
  .scroll-reveal-right.revealed,
  .scroll-reveal-scale.revealed,
  .scroll-reveal-fade.revealed,
  .card-reveal.revealed,
  .counter-reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* Topbar com efeito de vidro */
.topbar {
  position: fixed; 
  inset: 0 0 auto 0; 
  height: var(--topbar-h); 
  z-index: 1000;
  display: block; 
  border-bottom: 1px solid var(--borda);
  background: color-mix(in oklab, var(--cinza-fundo) 75%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.topbar.scrolled {
  box-shadow: 0 8px 24px rgba(0,0,0,.18); 
  background: color-mix(in oklab, #0b120f 85%, transparent);
}

.topbar__inner {
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  height: 100%;
}

.brand {
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-weight: 800;
}

.brand img {
  height: 34px; 
  width: auto;
}

/* Navegação aprimorada */
.nav {
  display: flex; 
  gap: 6px;
}

.nav a {
  position: relative;
  padding: .55rem .8rem; 
  border-radius: 12px; 
  font-size: .95rem; 
  font-weight: 600;
  color: var(--texto-suave); 
  transition: .2s ease;
}

.nav a:hover, .nav a:focus-visible {
  background: color-mix(in oklab, var(--verde-primario) 18%, transparent); 
  color: var(--texto);
}

.nav a.active {
  background: color-mix(in oklab, var(--verde-acao) 22%, transparent); 
  color: #fff;
}

/* Efeito de sublinhado para navegação (opcional) */
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--verde-primario);
  transition: width 0.3s ease;
  opacity: 0;
}

.nav a:hover::after, .nav a.active::after {
  width: 100%;
  opacity: 0.7;
}

.menu-btn {
  display: none;
}

/* Hero section com animação */
.hero {
  position: relative; 
  isolation: isolate; 
  color: #fff; 
  background: var(--grad-hero); 
  min-height: clamp(260px, 42vh, 560px); 
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  animation: pulse 15s infinite alternate ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.05); opacity: 0.8; }
}

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
}

.hero-card.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Botões modernos com efeitos */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn--primary {
  background: var(--verde-acao);
  color: white;
  box-shadow: 0 4px 14px rgba(29, 127, 79, 0.3);
}

.btn--primary:hover {
  background: var(--verde-claro);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 127, 79, 0.4);
}

.btn--ghost {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Cards com efeitos de hover */
.card {
  background: var(--cinza-superficie);
  border-radius: var(--radius);
  border: 1px solid var(--borda);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(29, 127, 79, 0.3);
}

/* Tiles interativos */
.tile {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
  background: var(--cinza-superficie);
  border-radius: var(--radius);
  border: 1px solid var(--borda);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.tile::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--verde-suave), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tile:hover::before {
  opacity: 1;
}

.tile:hover {
  transform: translateY(-5px);
  border-color: var(--verde-claro);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.tile__icon {
  transition: all 0.3s ease;
  background: var(--verde-suave);
  color: var(--verde-primario);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.tile:hover .tile__icon {
  background: var(--verde-primario);
  color: white;
  transform: scale(1.1);
}

/* FAQ com animações */
.faq details {
  transition: all 0.3s ease;
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--cinza-superficie);
}

.faq summary {
  position: relative;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 0.5rem 1.5rem 0.5rem 0;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details[open] {
  background: color-mix(in oklab, var(--verde-suave) 30%, var(--cinza-superficie));
}

/* Formulários */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: color-mix(in oklab, var(--cinza-superficie) 80%, transparent);
  color: var(--texto);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--verde-acao);
  box-shadow: 0 0 0 3px rgba(29, 127, 79, 0.2);
}

/* Footer */
.footer {
  background: color-mix(in oklab, var(--cinza-fundo) 80%, var(--verde-profundo));
  border-top: 1px solid var(--borda);
  padding: 3rem 0 2rem;
}

/* Mapa no rodapé */
.map-container {
  box-shadow: var(--shadow);
  border: 1px solid var(--borda);
  transition: all 0.3s ease;
}

.map-container:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

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

.footer__col h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--texto);
}

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

.footer__col li {
  margin-bottom: 0.5rem;
}

.footer__col a {
  color: var(--texto-suave);
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--texto);
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--borda);
  text-align: center;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

/* Utilitários de grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Animações para elementos */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsividade */
@media (max-width: 880px) {
  .menu-btn {
    display: inline-grid; 
    place-items: center; 
    width: 40px; 
    height: 40px; 
    border: 1px solid var(--borda); 
    border-radius: 12px; 
    background: transparent; 
    cursor: pointer;
  }
  
  .nav {
    display: none;
  }
  
  .nav.open {
    display: flex; 
    position: absolute; 
    left: 0; 
    right: 0; 
    top: var(--topbar-h); 
    padding: 12px 16px; 
    flex-direction: column; 
    gap: 8px; 
    background: color-mix(in oklab, var(--cinza-fundo) 95%, transparent); 
    backdrop-filter: saturate(120%) blur(6px); 
    border-bottom: 1px solid var(--borda); 
    box-shadow: var(--shadow); 
    z-index: 1000;
  }
  
  .nav a {
    padding: .8rem 1rem; 
    font-size: 1rem; 
    text-align: center;
  }
  
  .nav a:active {
    transform: scale(0.98);
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --topbar-h: 56px;
  }
  
  .brand span {
    display: none;
  }
  
  .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
  }
}

/* Loader de página */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cinza-fundo);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-logo {
  width: 80px;
  height: auto;
  margin-bottom: 1.5rem;
  animation: pulse-logo 1.5s infinite alternate ease-in-out;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(29, 127, 79, 0.3);
  border-radius: 50%;
  border-top-color: var(--verde-acao);
  animation: spin 1s infinite linear;
}

@keyframes pulse-logo {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animação de pulso para botões */
.btn.pulse {
  animation: button-pulse 2s infinite;
}

@keyframes button-pulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 127, 79, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(29, 127, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 127, 79, 0); }
}