/* Logoseg Fortunato — estilos base
   (a maior parte do layout usa estilos inline nas seções, propositalmente,
   pra facilitar editar cada bloco direto no HTML) */

html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', sans-serif; background: #FFFFFF; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
* { box-sizing: border-box; }

/* Botões: elevação + sombra + leve escala no hover, "press" no clique */
.lg-btn {
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, opacity .15s ease;
  will-change: transform;
}
.lg-btn:hover {
  transform: translateY(-3px) scale(1.035);
  box-shadow: 0 14px 28px -8px rgba(4,0,110,.35);
  opacity: 1;
}
.lg-btn:active { transform: translateY(-1px) scale(0.98); }

/* Links de navegação: sublinhado animado */
.lg-nav-link { position: relative; }
.lg-nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: currentColor; transition: width .25s ease;
}
.lg-nav-link:hover { opacity: .85; }
.lg-nav-link:hover::after { width: 100%; }

input, textarea { font-family: 'Manrope', sans-serif; }
input::placeholder, textarea::placeholder { color: #9CA3AF; }
input, textarea {
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #233059 !important;
  box-shadow: 0 0 0 3px rgba(35,48,89,.12);
}

/* Vídeo de fundo do hero */
.lg-hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background: #233059; /* cor sólida enquanto o vídeo carrega */
}
.lg-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
}

/* Cards de foto (seção "cuidado em cada etapa"): zoom sutil no hover */
.lg-photo-card { overflow: hidden; position: relative; }
.lg-photo-card img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.lg-photo-card:hover img { transform: scale(1.06); }

/* Cards de operadora: leve elevação no hover */
.lg-op-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.lg-op-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -10px rgba(35,48,89,.25); border-color: #C7CCDC; }

/* Cards de operadora com "flip": passa o mouse e troca a logo pela faixa de preço */
.lg-op-flip { position: relative; overflow: hidden; }
.lg-op-face {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 20px;
  transition: opacity .25s ease, transform .25s ease;
}
.lg-op-face--logo img { max-width: 112px; max-height: 40px; width: auto; height: auto; display: block; }
.lg-op-face--price { opacity: 0; transform: scale(.94); }
.lg-op-flip:hover .lg-op-face--logo { opacity: 0; transform: scale(.94); }
.lg-op-flip:hover .lg-op-face--price { opacity: 1; transform: scale(1); }
.lg-price-dollars { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 2px; }
.lg-price-dollars .is-dim { opacity: .22; }

/* Chips de filtro de preço (página "todas as operadoras") */
.lg-cat-chip {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 13px;
  color: #4B5061; background: #FFFFFF; border: 1px solid #E1E3EA;
  border-radius: 999px; padding: 9px 18px; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lg-cat-chip:hover { border-color: #C7CCDC; }
.lg-cat-chip.is-active { background: #04006E; color: #FFFFFF; border-color: #04006E; }

/* Revelar seções ao rolar a página */
.lg-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.lg-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .lg-reveal { opacity: 1; transform: none; transition: none; }
  .lg-btn, .lg-photo-card img, .lg-op-card { transition: none; }
}

/* Cards de operadora: toque pra virar (sem hover em telas de toque) */
.lg-op-flip { cursor: pointer; }
.lg-op-flip.is-flipped .lg-op-face--logo { opacity: 0; transform: scale(.94); }
.lg-op-flip.is-flipped .lg-op-face--price { opacity: 1; transform: scale(1); }

/* ===== Responsivo / celular ===== */

/* Menu: colapsa num hambúrguer abaixo de 860px */
.lg-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 0; border-radius: 8px; color: #233059; flex-shrink: 0;
}
.lg-nav-toggle:hover { background: #EDEEF2; }

@media (max-width: 860px) {
  .lg-nav-toggle { display: flex; }
  .lg-nav-links {
    display: none !important;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    background: #F7F7F8;
    padding: 24px 24px 28px;
    border-bottom: 1px solid #EDEEF2;
    box-shadow: 0 16px 28px -16px rgba(35,48,89,.18);
  }
  .lg-nav-links.is-open { display: flex !important; }
  .lg-nav-links .lg-btn { width: 100%; text-align: center; justify-content: center; }
}

/* Hero: reduz título/espaçamento/círculo em telas menores */
@media (max-width: 860px) {
  .lg-hero-section { padding: 72px 24px !important; }
  .lg-hero-title { font-size: 36px !important; }
  .lg-hero-circle { width: 240px !important; height: 240px !important; }
  .lg-hero-circle img { width: 160px !important; height: 160px !important; }
}
@media (max-width: 560px) {
  .lg-hero-section { padding: 48px 20px 40px !important; }
  .lg-hero-title { font-size: 28px !important; }
  /* No celular a logo sai de baixo do checklist e vira um selinho ao lado do texto "Corretora de Seguros Saúde" */
  .lg-hero-circle-wrap { display: none !important; }
  .lg-hero-badge { display: flex !important; }
}

/* Título da página do catálogo de operadoras */
@media (max-width: 560px) {
  .lg-page-title { font-size: 26px !important; }
}

/* ===== Liquid Glass (vidro líquido) ===== */
.lg-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background .3s ease;
}
.lg-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(140px 140px at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,.65), rgba(255,255,255,0) 68%);
  mix-blend-mode: overlay;
  animation: lgGlassDrift 7s ease-in-out infinite;
}
.lg-glass:hover::before,
.lg-glass:focus-visible::before { animation-play-state: paused; }

@keyframes lgGlassDrift {
  0%, 100% { --mx: 25%; --my: 15%; }
  50% { --mx: 75%; --my: 65%; }
}

/* Vidro claro (botão primário "Cotar agora" sobre o vídeo) */
.lg-glass--light {
  background: rgba(247,247,248,.72) !important;
  border: 1px solid rgba(255,255,255,.6) !important;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.9),
    inset 0 -6px 12px -8px rgba(35,48,89,.18),
    0 10px 26px -12px rgba(10,14,32,.45) !important;
}
.lg-glass--light:hover { background: rgba(247,247,248,.82) !important; transform: translateY(-2px); }

/* Vidro escuro translúcido (botão secundário "Falar no WhatsApp" sobre o vídeo) */
.lg-glass--dark {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.35),
    inset 0 -6px 14px -10px rgba(0,0,0,.4),
    0 10px 24px -12px rgba(0,0,0,.5) !important;
}
.lg-glass--dark:hover { background: rgba(255,255,255,.2) !important; transform: translateY(-2px); }

/* Vidro com tom da marca (botão "Falar com um especialista") */
.lg-glass--brand {
  background: rgba(4,0,110,.74) !important;
  border: 1px solid rgba(143,162,217,.45) !important;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.3),
    inset 0 -8px 16px -10px rgba(0,0,0,.5),
    0 10px 24px -10px rgba(4,0,110,.4) !important;
}
.lg-glass--brand:hover { background: rgba(4,0,110,.86) !important; transform: translateY(-2px); }

/* Cards de vidro (estatísticas "20+ / 5+ / 100%") */
.lg-glass-card {
  background: rgba(255,255,255,.55) !important;
  border: 1px solid rgba(255,255,255,.75) !important;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.9),
    inset 0 -10px 20px -14px rgba(35,48,89,.12),
    0 14px 30px -18px rgba(35,48,89,.18) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}
.lg-glass-card:hover { transform: translateY(-3px); }

/* Distorção real do vídeo por trás (só em Chrome/Edge — cai pro vidro fosco simples nos demais) */
@supports (backdrop-filter: url(#a)) {
  .lg-glass-distort.lg-glass--light {
    backdrop-filter: url(#lg-glass-distortion) blur(10px) saturate(160%);
  }
  .lg-glass-distort.lg-glass--dark {
    backdrop-filter: url(#lg-glass-distortion) blur(6px) saturate(170%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-glass::before { animation: none; }
}

/* Grids de 2 e 4 colunas: viram 2 e depois 1 coluna em telas menores */
@media (max-width: 760px) {
  .lg-grid-cuidado { grid-template-columns: 1fr !important; }
  .lg-grid-operadoras,
  #lg-cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 14px !important; }
}
@media (max-width: 460px) {
  .lg-grid-operadoras,
  #lg-cat-grid { grid-template-columns: 1fr !important; }
}

/* ===== FAQ (accordion) ===== */
.lg-faq-item {
  border-bottom: 1px solid #EDEEF2;
  padding: 20px 0;
}
.lg-faq-item:last-child { border-bottom: none; }
.lg-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #233059;
  position: relative;
  padding-right: 32px;
}
.lg-faq-item summary::-webkit-details-marker { display: none; }
.lg-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #04006E;
  transition: transform .25s ease;
  line-height: 1;
}
.lg-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lg-faq-item p {
  margin: 14px 0 0;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #4B5061;
}
@media (prefers-reduced-motion: reduce) {
  .lg-faq-item summary::after { transition: none; }
}

/* ===== Simulador de proposta ===== */
.lg-sim-dep-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lg-sim-dep-row input {
  flex: 1 1 auto;
  border: 1px solid #E1E3EA;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 15px;
  color: #2B2F3A;
  background: #FFFFFF;
}
.lg-sim-dep-remove {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #E1E3EA;
  background: #FFFFFF;
  color: #8A8F9C;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
.lg-sim-dep-remove:hover { background: #F7F7F8; color: #4B5061; }

@media (max-width: 560px) {
  #simulador, #faq { padding: 64px 20px !important; }
  #lg-sim-form, #simulador > div[style*="max-width:680px"] { padding: 28px 22px !important; }
}

/* Foto da corretora ao lado do Simulador, com moldura "liquid glass" */
.lg-sim-photo-wrap {
  position: relative;
  flex: 0 1 470px;
  display: flex;
  justify-content: center;
  padding-top: 22px;
}
.lg-sim-photo-frame {
  position: relative;
  padding: 0;
  border-radius: 32px !important;
  overflow: hidden;
  width: 100%;
  max-width: 470px;
  box-shadow: 0 24px 48px -24px rgba(35,48,89,.35);
}
.lg-sim-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

/* Anel de vidro que "invade" a borda da foto por cima dela, deixando o centro nítido */
.lg-sim-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 2px solid rgba(255,255,255,.8);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.85),
    inset 0 -18px 32px -16px rgba(10,14,32,.5);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-mask-image: radial-gradient(ellipse 68% 68% at center, transparent 48%, #000 80%);
  mask-image: radial-gradient(ellipse 68% 68% at center, transparent 48%, #000 80%);
}
@supports (backdrop-filter: url(#a)) {
  .lg-sim-photo-frame::after {
    backdrop-filter: url(#lg-glass-distortion) blur(10px) saturate(180%);
  }
}

@media (max-width: 860px) {
  .lg-sim-photo-wrap { flex-basis: 320px; }
  .lg-sim-photo-frame { max-width: 320px; }
}
.lg-sim-bubble {
  position: absolute;
  top: 0;
  right: 6px;
  background: #04006E;
  color: #FFFFFF;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  padding: 12px 18px;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 12px 24px -10px rgba(4,0,110,.45);
  transform: rotate(-3deg);
  animation: lgBubbleFloat 3.4s ease-in-out infinite;
}

@keyframes lgBubbleFloat {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-6px); }
}

@media (max-width: 860px) {
  .lg-sim-bubble {
    right: 50%;
    transform: translateX(50%) rotate(0deg);
    border-radius: 16px 16px 16px 4px;
    font-size: 13px;
    padding: 10px 16px;
  }
  @keyframes lgBubbleFloat {
    0%, 100% { transform: translateX(50%) rotate(0deg) translateY(0); }
    50% { transform: translateX(50%) rotate(0deg) translateY(-6px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-sim-bubble { animation: none; }
}
