/* ===================================================================
   VIA SEGUROS — style.css
   Paleta extraída da própria marca (navy + laranja do ícone oficial)
=================================================================== */

@font-face {
  font-family: "NeoTech";
  src: url("../fonts/NeoTech.woff2") format("woff2"),
       url("../fonts/NeoTech.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1B3168;
  --navy-deep: #101D3D;
  --navy-soft: #2C4480;
  --orange: #F58634;
  --orange-dark: #DE6E1C;
  --orange-soft: #FFE3C7;
  --ink: #16213E;
  --slate: #5C6478;
  --slate-light: #8B92A6;
  --bg-light: #F6F7FB;
  --white: #FFFFFF;
  --border-soft: #E7E9F1;

  --font-display: "NeoTech", "Quicksand", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --container-w: 1180px;
  --radius: 18px;
  --shadow-card: 0 8px 28px rgba(16, 29, 61, 0.08);
  --shadow-lift: 0 16px 40px rgba(16, 29, 61, 0.14);

  /* o corte diagonal que ecoa o ícone da marca */
  --brand-clip: polygon(0 0, 100% 0, 100% 82%, 84% 100%, 0 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 999;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ============ TYPOGRAPHY HELPERS ============ */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin: 0 0 12px;
}
.eyebrow-light { color: var(--orange); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.18;
  margin: 0 0 18px;
  color: var(--navy);
  max-width: 22ch;
}
.section-title-light { color: var(--white); }

.lead {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 46ch;
  margin: 0 0 24px;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-soft); box-shadow: var(--shadow-lift); }

.btn-accent {
  background: var(--orange);
  color: var(--white);
}
.btn-accent:hover { background: var(--orange-dark); box-shadow: var(--shadow-lift); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-logo { height: 38px; }

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: 12px;
  flex: 1;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.main-nav a.active { color: var(--orange-dark); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    var(--navy-deep) 0%,
    rgba(16,29,61,0.93) 32%,
    rgba(16,29,61,0.55) 58%,
    rgba(16,29,61,0.15) 78%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 90px;
  max-width: 640px;
  color: var(--white);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1.04;
  margin: 0 0 22px;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.86);
  max-width: 48ch;
  margin: 0 0 34px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  gap: 38px;
  list-style: none;
  padding: 24px 0 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-stats li {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--orange);
}
.hero-stats span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

/* ============ SECTIONS ============ */

.section {
  padding: 96px 0;
}
.section-alt { background: var(--bg-light); }

/* ============ CARDS ============ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--navy);
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: var(--navy);
}
.card p {
  font-size: 0.92rem;
  color: var(--slate);
  margin: 0;
}

/* ============ SPLIT (imagem + texto) ============ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.img-clip {
  clip-path: var(--brand-clip);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.img-clip img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.img-clip-flat {
  aspect-ratio: auto;
  clip-path: none;
  border-radius: 0;
}
.img-clip-flat img { object-fit: contain; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.96rem;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange-soft);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5.5px; top: 7px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--orange-dark);
  border-bottom: 2px solid var(--orange-dark);
  transform: rotate(-45deg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 4px;
  transition: gap 0.15s ease;
}
.link-arrow:hover { gap: 14px; }

/* ============ SEGURADORAS / MARQUEE ============ */

.seguradoras-band {
  background: var(--navy-deep);
  padding-bottom: 70px;
}
.seguradoras-band .container { text-align: center; }
.seguradoras-band .section-title { margin: 0 auto; }

.marquee {
  margin-top: 44px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scroll-left 32s linear infinite;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-chip {
  flex: 0 0 auto;
  background: var(--white);
  border-radius: 14px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
}
.logo-chip img { height: 30px; width: auto; max-width: 130px; object-fit: contain; }

/* ============ CTA FINAL ============ */

.cta-final {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  padding: 90px 0;
  text-align: center;
}
.cta-final-inner { color: var(--white); }
.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 14px;
}
.cta-final p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  margin: 0 0 34px;
}
.cta-final-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ FOOTER ============ */

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.82); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 70px 0 50px;
}
.footer-logo { height: 32px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { margin: 4px 0; font-size: 0.9rem; }
.footer-small { color: rgba(255,255,255,0.55); }

.footer-col h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.78);
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .btn, .card { transition: none; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .main-nav { display: none; }
  .header-actions .header-phone { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--border-soft);
    gap: 16px;
  }

  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse { direction: ltr; }
  .split-reverse .split-media { order: -1; }

  .hero-inner { padding-top: 60px; padding-bottom: 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 50px 0 30px; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; }
  .hero-cta .btn { width: 100%; }
  .cta-final-actions .btn { width: 100%; }
}
