/* Werneck Seguros landing page.
   Tema único: escuro, azul-marinho da marca, um acento ciano usado com parcimônia.
   Forma: raio de 10px em botões, campos e imagens. Sem gradientes decorativos nem brilhos.
   Conteúdo visível sem JavaScript: o GSAP só anima, nunca esconde de partida via CSS. */

:root {
  --bg: #0c1130;
  --surface: #121945;
  --surface-2: #19215a;
  --line: rgb(226 232 255 / .14);
  --line-strong: rgb(226 232 255 / .3);
  --text: #f1f3ff;
  --muted: #b7bee0;
  --accent: #38c6f4;
  --accent-ink: #06122e;
  --wa: #25d366;
  --wa-hover: #3be07b;
  --wa-ink: #04230f;
  --r: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1180px;
  --nav-h: 68px;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Oswald", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; font-style: normal; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r); border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.btn i { font-size: 1.3em; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--wa); color: var(--wa-ink); }
.btn--primary:hover { background: var(--wa-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- navegação ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgb(12 17 48 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 32px; height: 32px; fill: none; stroke: var(--text); stroke-width: 1.7; }
.brand__mark path:last-child { stroke: var(--accent); }
.brand__word { font: 500 1.3rem/1 var(--font-brand); letter-spacing: .03em; text-transform: uppercase; }
.brand__word b { font-weight: 500; color: var(--accent); }
.nav__links { display: flex; gap: 28px; font-weight: 600; font-size: .95rem; color: var(--muted); }
.nav__links a { padding: 8px 0; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 46px; height: 46px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: transparent; cursor: pointer; font-size: 1.6rem; place-items: center; }
.menu { border-top: 1px solid var(--line); background: var(--bg); padding: 8px 20px 20px; }
.menu[hidden] { display: none; }
.menu a { display: flex; align-items: center; min-height: 56px; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { min-height: 100dvh; display: grid; align-items: center; padding: calc(var(--nav-h) + 24px) 0 56px; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero__eyebrow { font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero__title { font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.06; letter-spacing: -.025em; max-width: 16ch; text-wrap: balance; }
.hero__sub { margin-top: 22px; max-width: 46ch; font-size: 1.15rem; color: var(--muted); }
.hero__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* losango da marca com foto real */
.gem { position: relative; width: min(100%, 500px); aspect-ratio: 1; justify-self: center; }
.gem__photo { position: absolute; inset: 0; clip-path: polygon(50% 9%, 91% 50%, 50% 91%, 9% 50%); background: var(--surface); overflow: hidden; }
.gem__photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.gem__lines { position: absolute; inset: -8.33%; width: 116.66%; height: 116.66%; fill: none; stroke: var(--text); stroke-width: .9; stroke-linecap: square; overflow: visible; }
.gem__lines use:nth-of-type(n+5) path { stroke: var(--accent); }

/* ---------- fatos ---------- */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__grid > div { padding: 26px 24px; border-left: 1px solid var(--line); }
.facts__grid > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.facts dd { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }

/* ---------- seções ---------- */
.sec { padding: clamp(72px, 9vw, 120px) 0; }
.sec--tint { background: var(--surface); border-block: 1px solid var(--line); }
.sec__head { margin-bottom: clamp(36px, 5vw, 56px); }
.h2 { font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.02em; max-width: 20ch; text-wrap: balance; }
.lead { margin-top: 16px; color: var(--muted); max-width: 56ch; font-size: 1.08rem; }

/* catálogo: lista com imagem de apoio */
.catalog { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.catalog__stage { position: sticky; top: calc(var(--nav-h) + 28px); aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.catalog__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease); transform: scale(1.04); }
.catalog__stage img.is-on { opacity: 1; transform: none; }
.catalog__list li { border-top: 1px solid var(--line); }
.catalog__list li:last-child { border-bottom: 1px solid var(--line); }
.catalog__list a { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: center; padding: 24px 4px; transition: padding-left .3s var(--ease); }
.catalog__list h3 { grid-column: 1; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; transition: color .2s; }
.catalog__list p { grid-column: 1; color: var(--muted); max-width: 52ch; margin-top: 4px; font-size: .98rem; }
.catalog__list i { grid-column: 2; grid-row: 1 / span 2; font-size: 1.6rem; color: var(--muted); transition: color .2s, transform .3s var(--ease); }
.catalog__list a:hover, .catalog__list a:focus-visible { padding-left: 14px; }
.catalog__list a:hover h3, .catalog__list a:focus-visible h3 { color: var(--accent); }
.catalog__list a:hover i, .catalog__list a:focus-visible i { color: var(--accent); transform: translate(3px, -3px); }
.others { margin-top: 32px; color: var(--muted); max-width: 70ch; }
.others a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.others a:hover { text-decoration-color: var(--accent); }

/* por que um corretor */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.why__logo { margin-top: 36px; width: 200px; height: 200px; border-radius: var(--r); border: 1px solid var(--line-strong); }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.reasons li { padding: 26px 0 30px; border-top: 1px solid var(--line-strong); }
.reasons h3 { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: 8px; }
.reasons p { color: var(--muted); }

/* como funciona */
.steps { --p: 1; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(var(--p)); transform-origin: left; }
.steps__item { position: relative; padding-top: 44px; }
.steps__item::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border: 2px solid var(--accent); background: var(--bg); transform: rotate(45deg) scale(.7); }
.steps__item h3 { font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; margin-bottom: 8px; }
.steps__item p { color: var(--muted); max-width: 34ch; }

/* sinistro */
.claim { position: relative; padding: clamp(72px, 10vw, 128px) 0; background: var(--surface-2); border-block: 1px solid var(--line); overflow: hidden; }
.claim__lines { position: absolute; right: -6%; top: 50%; width: min(60vw, 560px); height: min(60vw, 560px); transform: translateY(-50%); fill: none; stroke: var(--accent); stroke-width: .35; opacity: .4; pointer-events: none; }
.claim__inner { position: relative; }
.claim__title { font-weight: 800; font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; max-width: 20ch; text-wrap: balance; }
.claim__sub { margin: 18px 0 32px; color: var(--muted); max-width: 54ch; font-size: 1.08rem; }

/* faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq .h2 { position: sticky; top: calc(var(--nav-h) + 28px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-weight: 700; font-size: 1.1rem; letter-spacing: -.005em; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease), background-color .2s; }
.faq details[open] summary::after { content: "−"; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 62ch; }

/* contato */
.contact { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { margin-top: 32px; display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend, .field label { font-weight: 700; padding: 0; }
.opt { font-weight: 500; color: var(--muted); }
.field input[type="text"], .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r); background: #080c26; border: 1.5px solid var(--line-strong); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 100px; }
.field input[type="text"]:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(56 198 244 / .28); }
.field input[aria-invalid="true"] { border-color: #ff9b9b; }
.field__help { font-size: .9rem; color: var(--muted); }
.field__error { font-size: .92rem; font-weight: 600; color: #ffa3a3; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 1.5px solid var(--line-strong); font-weight: 600; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.preview { padding: 18px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.preview__label { font-size: .88rem; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.preview__bubble { background: #0f3d2a; color: #e7fff1; padding: 14px 16px; border-radius: var(--r); font-size: .98rem; overflow-wrap: anywhere; }

.info { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 26px; padding: 30px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--bg); }
.info__wa { display: grid; gap: 2px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.info__label { color: var(--muted); font-weight: 600; font-size: .95rem; }
.info__phone { font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.4rem); letter-spacing: -.02em; color: var(--wa); transition: color .2s; }
.info__wa:hover .info__phone { color: var(--wa-hover); }
.info__list { display: grid; gap: 22px; }
.info__list h3 { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.info__list h3 i { color: var(--accent); font-size: 1.2rem; }
.info__list p { color: var(--muted); }
.info__list a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; overflow-wrap: anywhere; transition: text-decoration-color .2s; }
.info__list a:hover { text-decoration-color: var(--accent); }
.status { display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: var(--r); font-size: .88rem; font-weight: 700; background: rgb(255 255 255 / .08); }
.status.is-open { background: rgb(37 211 102 / .18); color: #7ff0ae; }

/* rodapé */
.foot { border-top: 1px solid var(--line); padding: 64px 0 36px; background: #080c26; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot__brand { display: flex; gap: 20px; align-items: flex-start; }
.foot__logo { width: 84px; height: 84px; flex-shrink: 0; border-radius: var(--r); object-fit: cover; }
.foot__legal { color: var(--muted); font-size: .95rem; display: grid; gap: 2px; }
.foot__legal strong { color: var(--text); }
.foot__nav, .foot__contact { display: grid; gap: 4px; align-content: start; font-weight: 600; }
.foot__nav a, .foot__contact a { color: var(--muted); padding: 6px 0; transition: color .2s; overflow-wrap: anywhere; }
.foot__nav a:hover, .foot__contact a:hover { color: var(--accent); }
.foot__bottom { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 6px; justify-items: center; text-align: center; color: var(--muted); font-size: .92rem; }
.foot__credit a { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.foot__credit a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* barra de ação no mobile */
.dock { display: none; }

/* ---------- responsivo ---------- */
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .why, .faq, .contact { grid-template-columns: 1fr; }
  .faq .h2, .info { position: static; }
  .catalog { grid-template-columns: 1fr; }
  .catalog__stage { display: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  body { padding-bottom: 84px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .hero { min-height: auto; padding: calc(var(--nav-h) + 20px) 0 44px; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .gem { width: min(78%, 340px); order: -1; }
  .hero__title { font-size: clamp(2rem, 8.4vw, 2.5rem); max-width: none; }
  .hero__sub { font-size: 1.05rem; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .nav__cta { display: none; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .facts__grid > div { padding: 20px 16px; border-top: 1px solid var(--line); }
  .facts__grid > div:nth-child(-n+2) { border-top: 0; }
  .facts__grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .sec { padding: 64px 0; }
  .catalog__list a { padding: 22px 0; }
  .catalog__list h3 { font-size: 1.25rem; }
  .reasons { grid-template-columns: 1fr; }
  .why__logo { width: 140px; height: 140px; margin-top: 28px; }
  .steps { grid-template-columns: 1fr; gap: 32px; padding-left: 40px; }
  .steps::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; transform: scaleY(var(--p)); transform-origin: top; }
  .steps__item { padding-top: 0; }
  .steps__item::before { left: -40px; top: 3px; }
  .claim__lines { opacity: .22; right: -30%; }
  .claim .btn { width: 100%; }
  .faq details p { padding-right: 0; }
  .form__row { grid-template-columns: 1fr; }
  .info { padding: 24px; }
  .foot { padding-bottom: 28px; }
  .foot__grid { grid-template-columns: 1fr; gap: 28px; }
  .foot__brand { flex-direction: column; gap: 14px; }

  .dock {
    position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgb(8 12 38 / .97);
    border-top: 1px solid var(--line-strong); transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock .btn { min-height: 52px; }
}

@media (max-width: 380px) {
  .brand__word { font-size: 1.1rem; }
  .btn--lg { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
