/* ==========================================================================
   iGreen Seguros - Design System & Estilos Premium
   Identidade: Verde Principal, Branco, Cinza Claro e Preto para textos
   Mobile-First, Alto Desempenho e Core Web Vitals Otimizados
   ========================================================================== */

:root {
  --color-primary: #00C65E;
  --color-primary-dark: #009E4B;
  --color-primary-light: #22E77F;
  --color-primary-glow: rgba(0, 198, 94, 0.25);
  
  --color-dark: #0B1315;
  --color-dark-surface: #111C1E;
  --color-text-dark: #0F172A;
  --color-text-muted: #64748B;
  --color-bg-light: #F8FAFC;
  --color-border-light: #E2E8F0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text-dark);
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: #FFFFFF;
}

/* Tipografia e Gradientes */
.font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.text-gradient-green {
  background: linear-gradient(135deg, #00C65E 0%, #009E4B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-dark {
  background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Botões de Conversão */
.btn-primary {
  background: linear-gradient(135deg, #00C65E 0%, #00A850 100%);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.875rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px 0 rgba(0, 198, 94, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #10E07A 0%, #00C65E 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px 0 rgba(0, 198, 94, 0.45);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #2fe574 0%, #25D366 50%, #1ba852 100%);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.875rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  box-shadow: 0 4px 16px 0 rgba(37, 211, 102, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #37ed7c 0%, #22c85f 50%, #159a47 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px 0 rgba(37, 211, 102, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
}

.btn-whatsapp:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px 0 rgba(37, 211, 102, 0.3);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--color-text-dark);
  border: 1px solid var(--color-border-light);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.875rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
  transform: translateY(-2px);
}

/* Cards Premium */
.card-premium {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.card-premium:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 198, 94, 0.4);
  box-shadow: 0 16px 32px -8px rgba(0, 198, 94, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* Card Destaque (Plano Mais Escolhido) */
.card-featured {
  background: #FFFFFF;
  border: 2px solid #00C65E;
  border-radius: 1rem;
  position: relative;
  box-shadow: 0 12px 30px -6px rgba(0, 198, 94, 0.18);
  transform: translateY(-4px);
}

/* Acordeão FAQ */
.faq-item {
  border-bottom: 1px solid #E2E8F0;
  transition: all 0.2s ease;
}

.faq-button {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-text-dark);
}

.faq-button:hover {
  color: var(--color-primary-dark);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-content {
  max-height: 500px;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-chevron {
  transition: transform 0.3s ease;
}

/* Modal de Cotação */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-out;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #FFFFFF;
  border-radius: 1.25rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Indicador de leitura do blog */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #00C65E, #10E07A);
  z-index: 105;
  width: 0%;
  transition: width 0.1s linear;
}

/* Responsividade utilitária */
@media (max-width: 640px) {
  .btn-primary, .btn-whatsapp, .btn-secondary {
    width: 100%;
    padding: 0.875rem 1.25rem;
  }
}
