/* Kit Strawberry de primeira dobra · Modelo 3 · Corporativo com banner e atalhos
   Referência medida: portal.sulamericaseguros.com.br (21/11/2026, 1920, 1366 e 390).
   Para adaptar ao cliente, troque só as variáveis abaixo (cor amostrada da logo, fonte da identidade, raios). */
:root {
  --marca: #F05223;          /* cor da marca (amostrar da logo do cliente) */
  --marca-botao: #C9411A;    /* tom da marca escurecido para texto branco passar no contraste (4.5:1) */
  --marca-escura: #A93512;
  --texto: #313333;
  --texto-suave: #6C6E6E;
  --cinza: #F3F4F4;          /* fundo de cápsula, cartões e seções alternadas */
  --branco: #FFFFFF;
  --whats: #0F7A3F;          /* verde do WhatsApp escurecido para contraste */
  --fonte: "Figtree", "Inter", system-ui, sans-serif;
  --raio-cartao: 24px;       /* referência: 24 a 40. Cliente com canto reto: 14px */
  --raio-botao: 999px;       /* referência: cápsula. Sem combinar com o cliente: 14px */
  --largura: 1222px;         /* largura de conteúdo medida na referência */
  --margem: clamp(24px, 4vw, 48px);
  --topo-altura: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topo-altura); }
body { margin: 0; font-family: var(--fonte); font-size: 17px; line-height: 1.5; color: var(--texto); background: var(--branco); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; overflow-wrap: normal; hyphens: none; }
p { margin: 0; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: min(var(--largura), 100% - 2 * var(--margem)); margin-inline: auto; }

/* ===== Botões ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px; border-radius: var(--raio-botao); font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; border: 0; cursor: pointer; transition: background-color .25s, transform .25s; }
.btn:hover { transform: translateY(-1px); }
.btn-marca { background: var(--marca-botao); color: var(--branco); }
.btn-marca:hover { background: var(--marca-escura); }
.btn-claro { background: var(--cinza); color: var(--texto); }
.btn-claro:hover { background: var(--branco); }
.btn-whats { background: var(--whats); color: var(--branco); }
.btn-whats svg { fill: currentColor; stroke: none; }
.btn-whats:hover { background: #0B6633; }

/* ===== Cabeçalho ===== */
.topo { position: sticky; top: 0; z-index: 50; height: var(--topo-altura); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 clamp(24px, 5.2vw, 100px); background: var(--branco); }
.topo-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; justify-self: start; }
.logo-marca { font-weight: 700; font-size: 26px; letter-spacing: -.01em; color: var(--marca); }
.logo-frase { font-size: 13px; color: var(--texto-suave); }
.topo-menu { display: flex; background: var(--cinza); border-radius: 40px; padding: 2px; }
.topo-menu a { padding: 14px 30px; border-radius: 40px; font-weight: 700; font-size: 16px; line-height: 16px; color: var(--texto-suave); text-decoration: none; transition: color .2s, background-color .2s; }
.topo-menu a:hover { color: var(--texto); background: var(--branco); }
.topo-acao { justify-self: end; min-height: 44px; padding: 0 32px; }
.topo-burguer { display: none; justify-self: end; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.topo-burguer span { display: block; height: 2px; border-radius: 2px; background: var(--texto); transition: transform .25s, opacity .25s; }
.topo-burguer[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topo-burguer[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topo-burguer[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-celular { position: fixed; inset: var(--topo-altura) 0 auto 0; z-index: 49; background: var(--branco); padding: 8px var(--margem) 24px; display: flex; flex-direction: column; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.menu-celular[hidden] { display: none; }
.menu-celular a:not(.btn) { padding: 16px 0; font-weight: 700; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--cinza); }
.menu-celular .btn { margin-top: 20px; }

/* ===== 1ª dobra: banner ===== */
.banner { position: relative; height: clamp(560px, calc(100svh - var(--topo-altura)), 940px); overflow: hidden; background: #1d1f1f; }
.banner-slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.slide.ativo { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.slide-foto { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,22,22,.72) 0%, rgba(20,22,22,.5) 34%, rgba(20,22,22,0) 62%); }
.slide-texto { position: absolute; z-index: 2; left: max(var(--margem), (100% - var(--largura)) / 2); top: 50%; transform: translateY(-55%); width: min(520px, 46%); color: var(--branco); }
.slide-texto h1, .slide-titulo { font-size: clamp(40px, 3.15vw, 60px); line-height: 1.02; font-weight: 700; letter-spacing: -.01em; }
.slide-texto p { margin-top: 40px; font-size: 20px; line-height: 28px; }
.slide-texto .btn { margin-top: 48px; }
.banner-controles { position: absolute; z-index: 3; left: max(var(--margem), (100% - var(--largura)) / 2); bottom: 28px; display: flex; gap: 16px; }
.mini, .pausa { width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--branco); position: relative; }
.mini img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; opacity: .75; transition: opacity .25s; }
.mini::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; }
.mini.ativo img, .mini:hover img { opacity: 1; }
.mini.ativo::after { border-color: var(--marca); }
.pausa { display: grid; place-items: center; color: var(--texto); }
.pausa svg { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.pausa .ic-tocar, .pausa[aria-pressed="true"] .ic-pausa { display: none; }
.pausa[aria-pressed="true"] .ic-tocar { display: block; }

/* ===== Seções ===== */
.secao { padding: clamp(64px, 6.25vw, 120px) 0; }
.secao-cinza { background: var(--cinza); }
.secao-rotulo { color: var(--marca); font-weight: 600; font-size: 24px; line-height: 1.2; margin-bottom: 20px; }
.secao-titulo { font-size: clamp(34px, 2.5vw, 48px); line-height: 1.05; font-weight: 700; }
.secao-sub { margin-top: 24px; font-size: 20px; line-height: 1.4; }
.titulos-centro .secao-rotulo, .titulos-centro .secao-titulo, .titulos-centro .secao-sub { text-align: center; }

/* Faixa de produtos: 6 atalhos (6 / 3 / 2 por linha, nunca sobra um sozinho) */
.atalhos { margin-top: 32px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.atalho { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border-radius: var(--raio-cartao); background: var(--cinza); text-decoration: none; transition: background-color .25s, transform .25s; }
.atalho svg { width: 34px; height: 34px; color: var(--marca); }
.atalho span { font-weight: 700; font-size: 17px; line-height: 1.2; }
.atalho:hover { background: #E9EBEB; transform: translateY(-2px); }

/* 3 cartões de acesso rápido */
.acessos { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.acesso { display: flex; flex-direction: column; border-radius: calc(var(--raio-cartao) + 16px); background: var(--branco); overflow: hidden; text-decoration: none; transition: transform .3s; }
.acesso-texto { padding: 48px 48px 40px; flex: 1; }
.acesso h3 { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: clamp(26px, 1.7vw, 32px); line-height: 1; font-weight: 700; }
.acesso h3 svg { color: var(--marca); transition: transform .3s; }
.acesso p { margin-top: 24px; font-size: 17px; line-height: 1.5; }
.acesso img { width: 100%; height: auto; aspect-ratio: 392 / 292; object-fit: cover; }
.acesso:hover h3 svg { transform: translateX(4px); }

/* Benefícios: um por vez */
.beneficios { margin-top: 48px; position: relative; border-radius: var(--raio-cartao); background: var(--cinza); overflow: hidden; }
.beneficio { display: none; grid-template-columns: 1fr 1fr; min-height: 560px; }
.beneficio.ativo { display: grid; animation: aparece .6s ease; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
.beneficio-texto { align-self: center; padding: 64px 64px 112px; }
.beneficio h3 { font-size: clamp(34px, 2.5vw, 48px); line-height: 1.05; font-weight: 700; }
.beneficio p { margin-top: 24px; font-size: 20px; line-height: 28px; max-width: 520px; }
.beneficio .btn { margin-top: 32px; }
.beneficio img { width: 100%; height: 100%; object-fit: cover; }
.beneficios-nav { position: absolute; left: 64px; bottom: 40px; display: flex; align-items: center; gap: 16px; }
.seta { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #D6D9D9; background: var(--branco); color: var(--texto); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.seta:hover { border-color: var(--marca); color: var(--marca); }
.beneficios-conta { font-weight: 600; font-size: 16px; color: var(--texto-suave); min-width: 48px; text-align: center; }

/* ===== Rodapé ===== */
.rodape { background: var(--cinza); padding: 56px 0 0; font-size: 16px; }
.rodape-topo { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid #DDE0E0; }
.rodape-blocos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0 48px; }
.bloco summary, .bloco-titulo { list-style: none; font-weight: 700; font-size: 20px; line-height: 1.2; margin-bottom: 24px; }
.bloco summary::-webkit-details-marker { display: none; }
.bloco ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bloco a { color: var(--texto); text-underline-offset: 3px; }
.bloco a:hover { color: var(--marca); }
.link-whats { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--whats) !important; }
.link-whats svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.redes { display: flex; gap: 20px; }
.redes a { color: var(--texto); }
.redes a:hover { color: var(--marca); }
.rodape-final { border-top: 1px solid #DDE0E0; padding: 28px 0 32px; text-align: center; display: grid; gap: 6px; }
.rodape-final a { text-underline-offset: 3px; }

/* ===== 1366 e menores ===== */
@media (max-width: 1280px) {
  .topo-menu a { padding: 14px 20px; }
  .acesso-texto { padding: 40px 32px 32px; }
}

/* ===== Tablet e celular: menu vira hambúrguer, banner com texto em cima e foto embaixo ===== */
@media (max-width: 1024px) {
  :root { --topo-altura: 76px; }
  .topo { grid-template-columns: 1fr auto; padding: 0 var(--margem); }
  .topo-menu, .topo-acao { display: none; }
  .topo-burguer { display: flex; }
  .atalhos { grid-template-columns: repeat(3, 1fr); }
  .acessos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(340px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(-1 * var(--margem)); padding-right: var(--margem); scrollbar-width: none; }
  .acessos::-webkit-scrollbar { display: none; }
  .acesso { scroll-snap-align: start; }
  .rodape-blocos { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .banner { height: auto; background: var(--branco); }
  .banner-slides { position: relative; display: grid; }
  .slide { position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; }
  .slide::before { display: none; }
  .slide-texto { order: -1; position: static; transform: none; width: auto; padding: 28px var(--margem) 24px; color: var(--texto); text-align: center; }
  .slide-texto h1, .slide-titulo { font-size: clamp(30px, 7.4vw, 44px); line-height: 1.08; }
  .slide-texto p { margin-top: 16px; font-size: 17px; line-height: 1.5; }
  .slide-texto .btn { margin-top: 24px; background: var(--marca-botao); color: var(--branco); }
  .slide-foto { height: auto; aspect-ratio: 4 / 3; object-position: 100% 30%; }
  .banner-controles { left: 0; right: 0; bottom: 16px; justify-content: center; } /* sobre a parte de baixo da foto */
  .beneficio { grid-template-columns: none; min-height: 0; }
  .beneficio.ativo { display: flex; flex-direction: column; }
  .beneficio-texto { padding: 40px 28px 32px; }
  .beneficio p { font-size: 17px; line-height: 1.5; }
  .beneficio img { aspect-ratio: 1; height: auto; }
  .beneficios-nav { position: static; justify-content: center; padding: 20px 0; background: var(--cinza); }
}

@media (max-width: 600px) {
  .slide-texto p { display: none; } /* como na referência: no celular fica só título e botão */
  .mini, .pausa { width: 40px; height: 40px; }
  .banner-controles { gap: 12px; }
  .atalhos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .atalho { padding: 20px; }
  .rodape-topo { flex-direction: column; align-items: flex-start; }
  .rodape-blocos { grid-template-columns: none; gap: 0; padding-top: 8px; }
  .bloco { border-bottom: 1px solid #DDE0E0; }
  .bloco summary { margin: 0; padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .bloco summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--texto-suave); border-bottom: 2px solid var(--texto-suave); transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
  .bloco[open] summary::after { transform: rotate(225deg) translateY(-3px); }
  .bloco ul { padding-bottom: 20px; }
  .bloco-redes { border-bottom: 0; padding: 24px 0 8px; }
  .bloco-redes .bloco-titulo { margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
