/* ============================================================
   ROBERTO FELIX SEGUROS — style.css
   Design System: Azul Marinho + Dourado | Poppins + Inter
   Mobile-First • CSS Puro • Sem Frameworks
   ============================================================ */

/* ============================================================
   :ROOT — DESIGN TOKENS
   ============================================================ */
:root {
  /* Cores principais */
  --navy:        #0f2b3d;
  --navy-dark:   #081e2c;
  --navy-mid:    #163347;
  --gold:        #ffd966;
  --gold-dark:   #e6c24d;
  --gold-light:  #fff0a8;
  --white:       #ffffff;
  --surface:     #f8f9fc;
  --surface-2:   #eef1f6;
  --text-main:   #0f2b3d;
  --text-muted:  #4a5568;
  --text-light:  #8898aa;
  --success:     #16a34a;
  --error:       #dc2626;

  /* Tipografia */
  --font-display: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Escala tipográfica */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   1rem;       /* 16px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  2.25rem;    /* 36px */
  --text-3xl:  3rem;       /* 48px */
  --text-4xl:  4rem;       /* 64px */

  /* Espaçamentos */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Border radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 50px;

  /* Sombras */
  --shadow-sm:  0 2px 8px rgba(15, 43, 61, 0.08);
  --shadow-md:  0 6px 24px rgba(15, 43, 61, 0.12);
  --shadow-lg:  0 16px 48px rgba(15, 43, 61, 0.18);
  --shadow-gold: 0 4px 20px rgba(255, 217, 102, 0.3);

  /* Transições */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max: 1180px;
  --container-pad: 1.25rem;

  /* Header height */
  --header-h: 72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   ACESSIBILIDADE
   ============================================================ */

/* Skip link — visível apenas ao receber foco (teclado/leitor de tela) */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--navy-dark);
  outline-offset: 2px;
}

/* Texto visível apenas para leitores de tela */
.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;
}

/* Foco visível aprimorado — contraste AAA */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Foco em botões escuros */
.btn-navy:focus-visible,
.btn-gold:focus-visible {
  outline-color: var(--white);
  outline-offset: 4px;
}

/* Foco no FAQ */
.faq-question:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
  border-radius: var(--radius-sm);
}

/* Contraste: textos com opacidade baixa elevados para WCAG AA */
.section-dark p          { color: rgba(255,255,255,0.85); }  /* era 0.75 */
.hero-sub                { color: rgba(255,255,255,0.92); }  /* era 0.82 */
.hero-microcopy          { color: rgba(255,255,255,0.75); }  /* era 0.55 */
.counter-label           { color: rgba(255,255,255,0.80); }  /* era 0.65 */
.scroll-arrow            { color: rgba(255,255,255,0.70); }  /* era 0.50 */
#nav-desktop a           { color: rgba(255,255,255,0.95); }  /* era 0.85 */
.nav-mobile a            { color: rgba(255,255,255,0.95); }  /* era 0.85 */
.faq-answer p            { color: rgba(255,255,255,0.85); }  /* era 0.68 */
.parceira-badge span     { color: rgba(255,255,255,0.95); }  /* era 0.85 */
.seguro-coberturas li    { color: rgba(255,255,255,0.88); }  /* era 0.72 */
.rodape-sobre p          { color: rgba(255,255,255,0.70); }  /* era 0.55 */
.rodape-links a,
.rodape-contatos li,
.rodape-contatos a       { color: rgba(255,255,255,0.75); }  /* era 0.55 */
.rodape-creditos         { color: rgba(255,255,255,0.50); }  /* era 0.30 */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============================================================
   TIPOGRAFIA UTILITÁRIA
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, var(--text-4xl)); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-3xl)); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, var(--text-xl)); font-weight: 700; }
h4 { font-size: var(--text-base); font-weight: 600; }

p { font-size: var(--text-base); color: var(--text-muted); }

.gold-text { color: var(--gold); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.eyebrow-light { color: var(--gold); }

.gold-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
  margin-block: var(--space-md);
}
.gold-line-center { margin-inline: auto; }

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section-header h2 { margin-bottom: 0; }
.section-header .section-subtitle {
  margin-top: var(--space-sm);
  font-size: var(--text-lg);
  color: var(--text-muted);
}

/* Seções alternadas */
.section-light { background-color: var(--surface); }
.section-dark {
  background-color: var(--navy-dark);
  color: var(--white);
}
.section-dark p { color: rgba(255,255,255,0.75); }
.section-dark h2,
.section-dark h3 { color: var(--white); }

section { padding-block: var(--space-2xl); }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-lg);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Dourado (primário) */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-dark);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 28px rgba(255, 217, 102, 0.45);
}

/* Navy (secundário) */
.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-navy:hover {
  background: var(--navy-dark);
  box-shadow: var(--shadow-lg);
}

/* Outline branco */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* Outline dourado */
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

/* WhatsApp */
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: #1EBE5A;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
  animation: preloaderPulse 0.8s ease infinite alternate;
}

@keyframes preloaderPulse {
  from { opacity: 0.6; transform: scale(0.96); }
  to   { opacity: 1;   transform: scale(1);    }
}

.preloader-bar-track {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
  animation: preloaderBar 0.8s ease-out forwards;
}

@keyframes preloaderBar {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background-color var(--transition), box-shadow var(--transition);
}

#header.transparent {
  background-color: transparent;
}

#header.solid {
  background-color: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--white);
  line-height: 1.3;
}

.logo-name strong {
  display: block;
  color: var(--gold);
  font-weight: 700;
}

/* Nav desktop */
#nav-desktop ul {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

#nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
}

#nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
  border-radius: 1px;
}

#nav-desktop a:hover { color: var(--gold); }
#nav-desktop a:hover::after { width: 100%; }

/* CTA header */
.header-cta {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-mobile.open {
  max-height: 520px;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--container-pad);
  gap: 0.25rem;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

.nav-mobile a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--gold);
}

.nav-mobile-cta {
  margin-top: var(--space-sm);
  text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(8, 30, 44, 0.88) 0%,
    rgba(15, 43, 61, 0.72) 60%,
    rgba(8, 30, 44, 0.80) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-2xl);
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-authority {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 217, 102, 0.12);
  border: 1px solid rgba(255, 217, 102, 0.3);
  color: var(--gold);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
  /* Responsivo: evita overflow em telas pequenas */
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  max-width: 100%;
}

.hero-headline {
  color: var(--white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: rgba(255,255,255,0.82);
  margin-bottom: var(--space-lg);
  max-width: 540px;
  text-align: center;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  justify-content: center;
}

.hero-microcopy {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--space-xl);
  justify-content: center;
}

/* Wrapper que alinha CTAs + contadores pela mesma borda */
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;             /* mobile: ocupa toda a largura */
}

/* Contadores hero */
.hero-counters {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  padding: var(--space-md) 0;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  width: 100%;
}

.counter-item {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0.25rem clamp(var(--space-sm), 2.5vw, var(--space-lg));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.counter-number {
  display: flex;
  align-items: baseline;
  gap: 0.05rem;
  line-height: 1;
}

.counter-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.counter-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  font-weight: 800;
  color: var(--gold);
}

.counter-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  white-space: normal;     /* mobile: quebra linha se precisar */
  text-align: center;
  line-height: 1.3;
}

.counter-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Seta scroll */
.scroll-arrow {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.5);
  font-size: 1.25rem;
  animation: scrollBounce 2s ease infinite;
  transition: color var(--transition);
}

.scroll-arrow:hover { color: var(--gold); }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);    }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SOBRE
   ============================================================ */
.section-sobre { padding-block: var(--space-xl); }

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.sobre-foto-wrap {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
}

.sobre-foto {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.sobre-foto-badge {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-dark);
  color: var(--gold);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-md);
  /* Evita overflow em telas pequenas */
  max-width: calc(100% - 2rem);
  font-size: clamp(0.75rem, 2.5vw, var(--text-sm));
}

.sobre-texto h2 { margin-bottom: 0; }

.sobre-texto p {
  margin-bottom: var(--space-md);
}

.sobre-valores {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0;
}

.sobre-valores li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.sobre-valores li:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.sobre-valores li i {
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sobre-valores li strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.1rem;
}

.sobre-valores li span {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Botão centralizado em mobile */
.sobre-btn {
  display: block;
  text-align: center;
}

@media (min-width: 768px) {
  .sobre-btn {
    display: inline-flex;
  }
}

/* ============================================================
   SEGUROS
   ============================================================ */
.section-seguros { padding-block: var(--space-2xl); }

.seguros-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.seguro-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);  /* padding generoso */
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  backdrop-filter: blur(4px);
  /* Flexbox vertical: empurra o botão para o fundo */
  display: flex;
  flex-direction: column;
}

.seguro-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 217, 102, 0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.seguro-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--navy-dark);
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.seguro-card h3 {
  color: var(--white);
  margin-bottom: var(--space-md);
  flex-shrink: 0;
  /* Garante que títulos longos não quebrem de forma estranha */
  word-break: keep-all;
}

.seguro-coberturas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: var(--space-lg);
  /* Ocupa todo o espaço disponível, empurrando o botão para baixo */
  flex-grow: 1;
}

.seguro-coberturas li {
  display: flex;
  align-items: flex-start;  /* alinha ao topo para textos de 2 linhas */
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}

.seguro-coberturas li i {
  color: var(--gold);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.25rem;  /* alinha o ícone com a primeira linha do texto */
}

.seguro-card-cta {
  font-size: var(--text-sm);
  padding: 0.7rem 1.5rem;
  align-self: flex-start;  /* botão não estica 100% da largura */
  flex-shrink: 0;
  margin-top: auto;        /* garante que vai para o fundo mesmo sem flex-grow */
}

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.section-diferenciais { padding-block: var(--space-2xl); }

.diferenciais-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.diferencial-item {
  background: var(--white);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.diferencial-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.diferencial-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.diferencial-item h3 {
  color: var(--text-main);
  margin-bottom: var(--space-xs);
}

.diferencial-item p {
  font-size: var(--text-sm);
}

/* ============================================================
   PARCEIRAS (TRUST BADGES)
   ============================================================ */
.section-parceiras { padding-block: var(--space-2xl); }

.parceiras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.parceira-badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: default;
}

.parceira-badge:hover {
  background: rgba(255, 217, 102, 0.08);
  border-color: rgba(255, 217, 102, 0.25);
  transform: translateY(-2px);
}

.parceira-badge i {
  font-size: 1.25rem;
  color: var(--gold);
}

.parceira-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity var(--transition), transform var(--transition);
  border-radius: 4px;
}

.parceira-badge:hover .parceira-logo {
  opacity: 1;
  transform: scale(1.05);
}

.parceira-badge span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   DEPOIMENTOS — GRID FIXO, DESTAQUE NO HOVER
   ============================================================ */
.section-depoimentos { padding-block: var(--space-2xl); }

.depoimentos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* Card base */
.depoimento-card {
  background: var(--white);
  border: 2px solid var(--surface-2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  transition:
    background-color 0.35s ease,
    border-color     0.35s ease,
    box-shadow       0.35s ease,
    transform        0.35s ease;
}

/* Aspas decorativas — visíveis mas sutis no estado normal */
.depoimento-card::before {
  content: '\201C';
  position: absolute;
  top: -0.75rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: rgba(15, 43, 61, 0.06);
  pointer-events: none;
  transition: color 0.35s ease;
}

/* Hover — destaque azul com aspas douradas */
.depoimento-card:hover {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-color: var(--gold);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,217,102,0.15);
  transform: translateY(-5px);
}

.depoimento-card:hover::before {
  color: rgba(255, 217, 102, 0.1);
}

/* Estrelas */
.depoimento-stars {
  display: flex;
  gap: 0.25rem;
}
.depoimento-stars i {
  color: var(--gold);
  font-size: 0.95rem;
}

/* Texto */
.depoimento-card blockquote {
  font-size: var(--text-base);
  font-style: italic;
  line-height: 1.8;
  quotes: none;
  flex-grow: 1;
  color: var(--text-muted);
  transition: color 0.35s ease;
}
.depoimento-card:hover blockquote {
  color: rgba(255, 255, 255, 0.88);
}

/* Separador do autor */
.depoimento-autor {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: var(--space-md);
  border-top: 1px solid var(--surface-2);
  transition: border-color 0.35s ease;
}
.depoimento-card:hover .depoimento-autor {
  border-top-color: rgba(255,255,255,0.12);
}

/* Avatar */
.depoimento-avatar {
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
  border: 2px solid var(--surface-2);
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.depoimento-card:hover .depoimento-avatar {
  background: rgba(255,217,102,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* Nome */
.depoimento-autor strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.1rem;
  transition: color 0.35s ease;
}
.depoimento-card:hover .depoimento-autor strong {
  color: var(--white);
}

/* Bairro */
.depoimento-autor span {
  font-size: var(--text-xs);
  color: var(--text-light);
  transition: color 0.35s ease;
}
.depoimento-card:hover .depoimento-autor span {
  color: rgba(255,255,255,0.55);
}

/* Responsivo */
@media (min-width: 768px) {
  .depoimentos-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ============================================================
   FAQ
   ============================================================ */
.section-faq { padding-block: var(--space-2xl); }

.faq-container { max-width: 760px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--white);
  transition: background-color var(--transition), color var(--transition);
}

.faq-question:hover {
  background: rgba(255,255,255,0.04);
  color: var(--gold);
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition), content var(--transition);
  line-height: 1;
  width: 24px;
  text-align: center;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

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

.faq-answer p {
  padding: 0 var(--space-lg) var(--space-md);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
}

/* ============================================================
   FORMULÁRIO
   ============================================================ */
.section-formulario { padding-block: var(--space-2xl); }

.formulario-container { max-width: 700px; }

.formulario-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--surface-2);
}

/* Grupos de campo */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-group label span {
  color: var(--error);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--surface-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-main);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 43, 61, 0.1);
  background: var(--white);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input.valid,
.form-group select.valid {
  border-color: var(--success);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%234a5568' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Erro campo */
.form-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: 0.3rem;
  min-height: 1.1em;
}

/* Input real oculto — controlado via JS */
.lgpd-input {
  display: none;
}

.checkbox-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}


.checkbox-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--surface-2);
  border-radius: 4px;
  background: var(--surface);
  margin-top: 2px;
  transition: border-color var(--transition), background-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Marcado — detectado via JS adicionando classe .checked */
.checkbox-wrap.checked .checkbox-box {
  background: var(--navy);
  border-color: var(--navy);
}

.checkbox-wrap.checked .checkbox-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Inválido */
.checkbox-wrap.invalid .checkbox-box {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.checkbox-text {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.checkbox-text,
.checkbox-text strong,
.checkbox-text * {
  color: var(--text-muted) !important;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--navy);
  border-color: var(--navy);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.link-lgpd {
  color: var(--navy);
  text-decoration: underline;
  font-weight: 500;
}

/* Honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Botão enviar */
#btn-enviar {
  margin-top: var(--space-sm);
  position: relative;
}

.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(15, 43, 61, 0.25);
  border-top-color: var(--navy-dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-microcopy {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

/* Estados formulário */
.form-estado {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.form-sucesso {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid #86efac;
}

.form-falha {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2px solid #fca5a5;
}

.form-sucesso .estado-icon { color: var(--success); font-size: 2.5rem; }
.form-falha .estado-icon  { color: var(--error);   font-size: 2.5rem; }

.form-sucesso h3 { color: var(--success); }
.form-falha h3  { color: var(--error);   }

.form-sucesso p { color: #166534; }
.form-falha p   { color: #7f1d1d; }

.hidden { display: none !important; }

/* ============================================================
   CONTATO
   ============================================================ */
.section-contato { padding-block: var(--space-2xl); }

.contato-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contato-mapa iframe {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: var(--shadow-md);
}

.contato-info h2 { margin-bottom: 0; }

.contato-lista {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contato-lista li,
.contato-lista a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}

.contato-lista a:hover { color: var(--gold); }

.contato-lista i {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 0.2rem;
  width: 20px;
  flex-shrink: 0;
}

.contato-lista strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.contato-lista span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
}

.contato-sociais {
  display: flex;
  gap: var(--space-sm);
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.social-btn:hover { transform: translateY(-3px); }

.social-btn.whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.social-btn.instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(220, 39, 67, 0.3);
}

/* ============================================================
   RODAPÉ
   ============================================================ */
#rodape {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--space-2xl);
}

.rodape-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rodape-logo { margin-bottom: var(--space-md); }

.rodape-sobre p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  max-width: 320px;
  margin-bottom: var(--space-md);
}

.rodape-sociais {
  display: flex;
  gap: var(--space-sm);
}

.rodape-sociais a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: background-color var(--transition), color var(--transition);
}

.rodape-sociais a:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.rodape-links h4,
.rodape-contatos h4 {
  color: var(--gold);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.rodape-links ul li,
.rodape-contatos ul li {
  margin-bottom: 0.6rem;
}

.rodape-links a,
.rodape-contatos li,
.rodape-contatos a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
  word-break: break-all;
  overflow-wrap: break-word;
}

.rodape-links a:hover,
.rodape-contatos a:hover { color: var(--gold); }

.rodape-contatos i { color: var(--gold); font-size: 0.8rem; width: 16px; flex-shrink: 0; }

/* Rodapé bottom */
.rodape-bottom {
  padding-block: var(--space-md);
}

.rodape-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.lgpd-texto {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lgpd-texto i { color: var(--gold); flex-shrink: 0; }
.lgpd-texto strong { color: rgba(255,255,255,0.6); }

.rodape-creditos {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   BOTÃO FLUTUANTE WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: whatsappPulse 2.5s ease infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  animation: none;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50%       { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-dark);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ============================================================
   ANIMAÇÕES SCROLL (Intersection Observer)
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Delay escalonado para grids */
.seguro-card:nth-child(1),
.diferencial-item:nth-child(1),
.parceira-badge:nth-child(1),
.depoimento-card:nth-child(1) { transition-delay: 0.05s; }

.seguro-card:nth-child(2),
.diferencial-item:nth-child(2),
.parceira-badge:nth-child(2),
.depoimento-card:nth-child(2) { transition-delay: 0.1s; }

.seguro-card:nth-child(3),
.diferencial-item:nth-child(3),
.parceira-badge:nth-child(3),
.depoimento-card:nth-child(3) { transition-delay: 0.15s; }

.seguro-card:nth-child(4),
.diferencial-item:nth-child(4),
.parceira-badge:nth-child(4) { transition-delay: 0.2s; }

.diferencial-item:nth-child(5),
.parceira-badge:nth-child(5) { transition-delay: 0.25s; }

.diferencial-item:nth-child(6),
.parceira-badge:nth-child(6) { transition-delay: 0.3s; }

.parceira-badge:nth-child(7) { transition-delay: 0.35s; }
.parceira-badge:nth-child(8) { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVIDADE — TABLET (768px+)
   ============================================================ */
@media (min-width: 768px) {

  :root {
    --container-pad: 2rem;
  }

  /* Header */
  .hamburger { display: none; }
  #nav-desktop { display: flex; }
  .nav-mobile { display: none; }

  /* Hero — desktop: hero-bottom encolhe para a largura dos botões */
  .hero-bottom {
    display: inline-flex;
    align-items: stretch;
    width: auto;
  }

  /* Desktop: labels dos contadores em uma linha só */
  .counter-label {
    white-space: nowrap;
  }

  /* Sobre */
  .sobre-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Seguros */
  .seguros-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }

  .seguro-card {
    min-height: 420px; /* altura mínima uniforme só quando em grid */
  }

  /* Diferenciais */
  .diferenciais-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Parceiras */
  .parceiras-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Contato */
  .contato-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Rodapé */
  .rodape-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .rodape-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   RESPONSIVIDADE — DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {

  :root {
    --container-pad: 2.5rem;
  }

  /* Hamburger oculto, nav desktop visível */
  #nav-desktop {
    display: flex;
  }

  /* Seguros */
  .seguros-grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch; /* todos os cards com a mesma altura */
  }

  /* Diferenciais */
  .diferenciais-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Parceiras */
  .parceiras-grid {
    grid-template-columns: repeat(4, 1fr);
  }

}

/* ============================================================
   MOBILE — hamburger visível abaixo de 768px
   ============================================================ */
@media (max-width: 767px) {
  #nav-desktop { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero: reduz padding vertical em mobile */
  .hero-content {
    padding-block: var(--space-xl);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-ctas .btn {
    text-align: center;
    justify-content: center;
  }

  .formulario-wrap {
    padding: var(--space-lg) var(--space-md);
  }
}