/* DM6 Seguros — mobile-first, variáveis para fácil ajuste de marca */
:root {
  --bg: #f6f7f9;
  --bg-alt: #eef1f6;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5c6678;
  --line: #d8dee8;
  --brand: #335588;
  --brand-2: #2a4670;
  --accent: #d62828;
  --accent-soft: rgba(51, 85, 136, 0.1);
  --shadow: 0 12px 40px rgba(13, 79, 110, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
  --step-3: clamp(1.85rem, 1.45rem + 1.6vw, 2.45rem);
  --step-4: clamp(2.2rem, 1.65rem + 2.4vw, 3rem);
  --space: clamp(1rem, 0.6rem + 1.5vw, 2rem);
  --container: min(1120px, 100% - 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-2);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--radius-sm);
  z-index: 1000;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: flex;
}

@media (min-width: 880px) {
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 880px) {
  .nav-list {
    flex-direction: row;
    gap: 1.25rem;
  }
}

.nav-list a {
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}

.nav-list a:hover {
  color: var(--brand);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-2);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
}

.btn-outline {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: rgba(13, 79, 110, 0.06);
}

.btn-lg {
  padding: 0.75rem 1.25rem;
  font-size: var(--step-0);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: clamp(2rem, 5vw, 4rem) 0;
  background: radial-gradient(120% 80% at 100% 0%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}

.lead {
  font-size: var(--step-1);
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: var(--step--1);
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.hero-bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.stat + .stat {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--brand);
}

.stat-label {
  font-size: var(--step--1);
  color: var(--muted);
}

.hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head.align-left {
  text-align: left;
  margin-left: 0;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  margin: 0 0 0.75rem;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: var(--step-1);
}

/* Seguradoras parceiras */
.section-insurers {
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 55%, #fff 100%);
  border-block: 1px solid var(--line);
}

.insurers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .insurers-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 880px) {
  .insurers-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.insurer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(26, 35, 50, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.insurer-logo:hover {
  border-color: rgba(51, 85, 136, 0.35);
  box-shadow: var(--shadow);
}

.insurer-logo img {
  max-width: 7.5rem;
  max-height: 2.75rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Logo em formato retrato (ex.: imagem JPG) */
.insurer-logo--portrait img {
  max-height: 3.25rem;
  max-width: 5rem;
}

.insurer-logo--vertical img {
  max-height: 3.5rem;
  max-width: 4.5rem;
}

.insurers-note {
  margin: 1.75rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.35rem;
}

.card:hover {
  border-color: rgba(13, 79, 110, 0.35);
  box-shadow: var(--shadow);
}

.card-body .card-title {
  font-size: var(--step-1);
  margin: 0 0 0.5rem;
  color: var(--brand-2);
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
}

/* Diferenciais: imagem + grade */
.diferenciais-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .diferenciais-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2.5rem;
  }
}

.trust-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trust-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Features */
.features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: var(--step-1);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 12px;
  font-size: var(--step-1);
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: var(--step-1);
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
}

/* News */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list time {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brand);
}

.news-list span:last-child {
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-intro .section-head {
  margin-bottom: 1.25rem;
}

.contact-figure {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-channels {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-channels li {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1rem;
}

.contact-channels .label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
}

.contact-channels a {
  font-weight: 600;
  text-decoration: none;
}

.contact-channels a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

/* Footer */
.site-footer {
  background: var(--brand-2);
  color: #e8eef3;
  padding: 2.5rem 0 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

.footer-brand-wrap {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  background: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
}

.footer-logo {
  display: block;
  height: auto;
  max-height: 44px;
  width: auto;
}

.footer-tagline {
  margin: 0;
  font-size: var(--step--1);
  opacity: 0.9;
}

.footer-heading {
  font-size: var(--step-0);
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #e8eef3;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.legal {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  opacity: 0.88;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding: 1rem 0 1.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-bottom p {
  margin: 0;
}

/* WhatsApp FAB */
.wa-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.wa-fab:hover {
  transform: scale(1.05);
  color: #fff;
}

@media (min-width: 880px) {
  .wa-fab {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}
