/* ==========================================================================
   LEME & VIANA CORRETORA DE SEGUROS - DESIGN SYSTEM & TOKENS TAILWIND V4
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Paleta Corporativa Extraída da Logo */
  --color-navy-950: #061528;
  --color-navy-900: #0B2240; /* Cor Primária Oficial */
  --color-navy-800: #102F57;
  --color-navy-700: #1B457D;
  --color-navy-50:  #F0F4FA;

  /* Dourado Ouro Metálico */
  --color-gold-500: #C5A059; /* Dourado Oficial */
  --color-gold-600: #B38E46; /* Hover */
  --color-gold-400: #DFBE77; /* Realces e Degradê */
  --color-gold-100: #F7F1E5; /* Fundos sutis */
  --color-gold-50:  #FDFBF7; /* Fundo quente editorial */

  /* Cores de Ação e Comunicação */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #20BD5A;

  /* Neutros e Textos */
  --color-slate-900: #0F172A;
  --color-slate-800: #1E293B;
  --color-slate-700: #334155;
  --color-slate-500: #64748B;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;

  /* Tipografias */
  --font-serif-brand: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras & Efeitos */
  --shadow-luxury: 0 10px 30px -10px rgba(11, 34, 64, 0.08), 0 4px 6px -2px rgba(11, 34, 64, 0.03);
  --shadow-hover: 0 20px 40px -15px rgba(11, 34, 64, 0.15), 0 0 0 1px rgba(197, 160, 89, 0.35);
  --shadow-gold: 0 4px 20px rgba(197, 160, 89, 0.35);
}

/* Suporte Explícito e Concreto para Classes Utilitárias (Garante 100% de Aplicação) */
.bg-navy-950 { background-color: #061528 !important; }
.bg-navy-900 { background-color: #0B2240 !important; }
.bg-navy-800 { background-color: #102F57 !important; }
.bg-navy-700 { background-color: #1B457D !important; }
.bg-navy-50  { background-color: #F0F4FA !important; }

.bg-gold-500 { background-color: #C5A059 !important; }
.bg-gold-600 { background-color: #B38E46 !important; }
.bg-gold-400 { background-color: #DFBE77 !important; }
.bg-gold-100 { background-color: #F7F1E5 !important; }
.bg-gold-50  { background-color: #FDFBF7 !important; }
.bg-warm-white { background-color: #FDFBF7 !important; }

.text-white { color: #FFFFFF !important; }
.text-navy-950 { color: #061528 !important; }
.text-navy-900 { color: #0B2240 !important; }
.text-navy-800 { color: #102F57 !important; }
.text-gold-400 { color: #DFBE77 !important; }
.text-gold-500 { color: #C5A059 !important; }
.text-gold-600 { color: #B38E46 !important; }

.text-slate-100 { color: #F1F5F9 !important; }
.text-slate-200 { color: #E2E8F0 !important; }
.text-slate-300 { color: #CBD5E1 !important; }
.text-slate-400 { color: #94A3B8 !important; }
.text-slate-500 { color: #64748B !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-800 { color: #1E293B !important; }
.text-slate-900 { color: #0F172A !important; }

.border-navy-950 { border-color: #061528 !important; }
.border-navy-900 { border-color: #0B2240 !important; }
.border-navy-800 { border-color: #102F57 !important; }
.border-gold-500 { border-color: #C5A059 !important; }
.border-gold-400 { border-color: #DFBE77 !important; }

/* Reset e Base */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans-body);
  background-color: var(--color-gold-50);
  color: var(--color-slate-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #FDFBF7;
  color: #1E293B;
}

/* Compensação para navegação âncora com header fixo */
section[id], div[id] {
  scroll-margin-top: 90px;
}

/* Tipografia Utilitária */
.font-brand {
  font-family: var(--font-serif-brand);
}
.font-body {
  font-family: var(--font-sans-body);
}

/* Gradientes Metálicos e Cores de Fundo */
.gradient-gold {
  background: linear-gradient(135deg, #F2D795 0%, #C5A059 50%, #A8833B 100%);
}
.gradient-gold-text {
  background: linear-gradient(135deg, #F9E7BA 0%, #DFBE77 40%, #C5A059 80%, #A8833B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-navy {
  background: linear-gradient(180deg, #0B2240 0%, #061528 100%);
}

/* Efeito de Vidro (Glassmorphism) */
.glass-header {
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  transition: all 0.3s ease;
}
.glass-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(11, 34, 64, 0.08);
}

.glass-card-dark {
  background: rgba(11, 34, 64, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 160, 89, 0.35);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-luxury);
}

/* Botões com Intenção e Alta Conversão */
.btn-gold {
  background: linear-gradient(135deg, #F2D795 0%, #C5A059 50%, #B38E46 100%);
  color: #061528 !important;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #F9E7BA 0%, #D4AF37 50%, #C5A059 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(197, 160, 89, 0.45);
}

.btn-navy {
  background-color: #0B2240;
  color: #FFFFFF !important;
  border: 1px solid rgba(197, 160, 89, 0.4);
  transition: all 0.3s ease;
}
.btn-navy:hover {
  background-color: #12335E;
  border-color: #C5A059;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}
.btn-whatsapp:hover {
  background-color: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
}

/* Botão Flutuante de WhatsApp com Pulso Suave (Ampliado e Proeminente) */
.whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-floating:hover {
  transform: scale(1.1) translateY(-3px);
}
.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.6;
  animation: pulse-ring 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* Acordeão FAQ Suave & Sem Vazamento de Padding */
.faq-content {
  max-height: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}
.faq-item.active .faq-content {
  max-height: 800px;
  padding-top: 0.25rem !important;
  padding-bottom: 1.5rem !important;
  transition: max-height 0.5s ease-in-out, padding 0.3s ease;
}
.faq-item .faq-icon {
  transition: transform 0.35s ease, color 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #C5A059 !important;
}

/* Cards de Soluções com Hover Contrastante e Ícone Ouro */
.solution-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.solution-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 160, 89, 0.6) !important;
  box-shadow: 0 20px 40px -15px rgba(11, 34, 64, 0.15), 0 0 0 1px rgba(197, 160, 89, 0.35) !important;
}
.solution-icon-box {
  transition: all 0.35s ease;
}
.solution-icon-box svg {
  transition: all 0.3s ease;
  stroke: currentColor;
}
.solution-card:hover .solution-icon-box,
.solution-icon-box:hover {
  background: linear-gradient(135deg, #0B2240 0%, #061528 100%) !important;
  border-color: #C5A059 !important;
}
.solution-card:hover .solution-icon-box svg,
.solution-icon-box:hover svg {
  color: #DFBE77 !important;
  stroke: #DFBE77 !important;
  transform: scale(1.15) !important;
}

/* Badges */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background-color: rgba(197, 160, 89, 0.12);
  color: #B38E46;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.badge-gold-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(197, 160, 89, 0.15);
  color: #F2D795;
  border: 1px solid rgba(197, 160, 89, 0.4);
}

/* ==========================================================================
   CARROSSEL MARQUEE DUPLO INFINITO (SEGURADORAS PARCEIRAS)
   ========================================================================== */
:root {
  --marquee-gap: 1rem;
}
@media (min-width: 640px) {
  :root {
    --marquee-gap: 1.25rem;
  }
}

@keyframes marquee-scroll-left {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-100% - var(--marquee-gap)), 0, 0);
  }
}

@keyframes marquee-scroll-right {
  0% {
    transform: translate3d(calc(-100% - var(--marquee-gap)), 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.marquee-container {
  display: flex !important;
  overflow: hidden !important;
  position: relative !important;
  width: 100% !important;
  user-select: none !important;
  gap: var(--marquee-gap) !important;
}

.marquee-mask {
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.8) 4%, black 10%, black 90%, rgba(0,0,0,0.8) 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.8) 4%, black 10%, black 90%, rgba(0,0,0,0.8) 96%, transparent 100%);
}

.marquee-group {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  gap: var(--marquee-gap) !important;
  width: max-content !important;
  will-change: transform !important;
}

.marquee-left .marquee-group {
  animation: marquee-scroll-left 40s linear infinite !important;
}

.marquee-right .marquee-group {
  animation: marquee-scroll-right 40s linear infinite !important;
}

.marquee-container:hover .marquee-group {
  animation-play-state: paused !important;
}

.partner-card {
  width: 176px !important;
  min-width: 176px !important;
  height: 108px !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 160, 23, 0.65) !important;
  box-shadow: 0 12px 24px -6px rgba(11, 28, 68, 0.1), 0 4px 12px -2px rgba(212, 160, 23, 0.12) !important;
}

.partner-card img {
  filter: grayscale(12%) contrast(102%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-card:hover img {
  filter: grayscale(0%) contrast(105%);
  transform: scale(1.06);
}

/* ==========================================================================
   ANIMAÇÃO AMBIENT AURORA & LUMINOUS MESH (SEÇÃO #COTACAO)
   ========================================================================== */
@keyframes aurora-orbit-1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate3d(80px, 40px, 0) scale(1.2);
    opacity: 0.35;
  }
  100% {
    transform: translate3d(-40px, 70px, 0) scale(0.95);
    opacity: 0.2;
  }
}

@keyframes aurora-orbit-2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.15;
  }
  50% {
    transform: translate3d(-70px, -50px, 0) scale(1.25);
    opacity: 0.3;
  }
  100% {
    transform: translate3d(50px, -30px, 0) scale(1.05);
    opacity: 0.18;
  }
}

@keyframes aurora-orbit-3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translate3d(60px, -60px, 0) scale(1.18);
    opacity: 0.22;
  }
  100% {
    transform: translate3d(-50px, 30px, 0) scale(0.9);
    opacity: 0.12;
  }
}

.aurora-orb-gold {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.5) 0%, rgba(223, 190, 119, 0.18) 50%, transparent 70%);
  filter: blur(65px);
  pointer-events: none;
  will-change: transform, opacity;
  animation: aurora-orbit-1 18s ease-in-out infinite alternate;
}

.aurora-orb-navy {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(27, 69, 125, 0.7) 0%, rgba(16, 47, 87, 0.25) 50%, transparent 70%);
  filter: blur(75px);
  pointer-events: none;
  will-change: transform, opacity;
  animation: aurora-orbit-2 22s ease-in-out infinite alternate;
}

.aurora-orb-emerald {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(5, 150, 105, 0.08) 50%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  will-change: transform, opacity;
  animation: aurora-orbit-3 26s ease-in-out infinite alternate;
}

.cotacao-tech-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(197, 160, 89, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(197, 160, 89, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 50%, black 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 50%, black 35%, transparent 100%);
  pointer-events: none;
}

.glow-card-cotacao {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(6, 21, 40, 0.5), 0 0 35px rgba(197, 160, 89, 0.12);
}

.glow-card-cotacao::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.6), rgba(197, 160, 89, 0.1) 40%, rgba(255, 255, 255, 0.2) 70%, rgba(197, 160, 89, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ==========================================================================
   SEÇÃO PLANTÃO 24H & CONCIERGE VIP
   ========================================================================== */
.plantao-card {
  background: rgba(11, 34, 64, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 160, 89, 0.22);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.plantao-card:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 20px 40px -10px rgba(6, 21, 40, 0.7), 0 0 25px rgba(197, 160, 89, 0.18);
}

.pulse-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
}

/* ==========================================================================
   SCROLL MARGIN & OFFSET PARA HEADER FIXO (ÂNCORAS E LINKS EXTERNOS)
   ========================================================================== */
section[id],
div[id] {
  scroll-margin-top: 75px;
}

@media (min-width: 768px) {
  section[id],
  div[id] {
    scroll-margin-top: 90px;
  }
}

#cotacao,
#plantao {
  scroll-margin-top: 75px;
}

@media (min-width: 768px) {
  #cotacao,
  #plantao {
    scroll-margin-top: 90px;
  }
}

/* ==========================================================================
   FALLBACK SEGURO DE VISIBILIDADE PARA ELEMENTOS ANIMADOS (FAIL-SAFE)
   ========================================================================== */
[data-motion] {
  will-change: opacity, transform;
}

.motion-revealed,
.motion-revealed [data-motion],
[data-motion].is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-motion],
  [data-motion] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
