/* ============================================================
   SAT SEGUROS — Estilos
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f3fb;
  --bg-card: #ffffff;
  --bg-dark: #001e3a;
  --bg-dark-2: #00132a;
  --primary: #5f3ee8;
  --primary-hover: #4d2ed4;
  --primary-soft: rgba(95, 62, 232, .12);
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebd5a;
  --star: #fbb851;
  --gold: #d4a445;
  --text: #1a1a3d;
  --text-muted: #6b6e8a;
  --text-light: rgba(255,255,255,.78);
  --border: rgba(95, 62, 232, .12);
  --shadow-sm: 0 2px 12px rgba(0, 30, 58, .08);
  --shadow-md: 0 12px 32px rgba(0, 30, 58, .12);
  --shadow-lg: 0 24px 64px rgba(0, 30, 58, .18);
  --shadow-purple: 0 16px 40px rgba(95, 62, 232, .35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;

  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============== TIPOGRAFIA ============== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--primary);
}
.eyebrow--light { color: #fff; border-color: rgba(255,255,255,.4); }
.text-accent { color: var(--primary); }

/* ============== BOTÕES ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .25s ease;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, .35);
}
.btn--large { padding: 1.05rem 2rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn .icon-wa { width: 16px; height: 16px; fill: currentColor; }

/* ============== IMAGEM COM GLOW ============== */
.framed-image {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 460px;
}
.framed-image::after {
  content: '';
  position: absolute;
  left: 8%; right: 8%;
  bottom: -18px;
  height: 30px;
  background: var(--primary);
  filter: blur(28px);
  opacity: .55;
  border-radius: 50%;
  z-index: -1;
}
.framed-image img,
.framed-image .image-placeholder {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.image-placeholder {
  background:
    linear-gradient(135deg, rgba(95, 62, 232, .15), rgba(0, 30, 58, .25)),
    repeating-linear-gradient(45deg, #d8d4ee 0 14px, #c8c2e2 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .85);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  position: relative;
  overflow: hidden;
}

/* ============== LOGO ============== */
.logo-img {
  height: 100px;
  width: auto;
  display: block;
}
.logo-img--footer { height: 90px; }

@media (max-width: 760px) {
  .logo-img { height: 72px; }
}

/* ============== HEADER ============== */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.25rem 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.header__logo { display: inline-block; }

@media (max-width: 600px) {
  .header__cta { display: none; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  background-color: var(--bg-dark);
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  min-height: 100vh;
  padding: 11rem 0 7rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__title {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
}
.hero__title-line {
  display: block;
  white-space: nowrap;
}
.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 2.25rem;
  max-width: 520px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 880px) {
  .hero {
    padding: 9rem 0 14rem;
    min-height: 90vh;
    background-position: center bottom;
  }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark) 30%, rgba(0,30,58,.6) 60%, transparent 100%);
    z-index: 1;
  }
}

/* ============== SEÇÕES ============== */
.section { padding: 5.5rem 0; position: relative; }
.section__header { max-width: 720px; margin-bottom: 3.5rem; }
.section__header--center { margin: 0 auto 3.5rem; text-align: center; }
.section__title { margin-bottom: 1rem; }
.section__lead { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.section__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.section__grid--reverse { grid-template-columns: 1.1fr 1fr; }
.section__content > * + * { margin-top: 1rem; }
.section__content .btn { margin-top: 1.75rem; }
.section__visual { display: flex; justify-content: center; }

@media (max-width: 880px) {
  .section { padding: 4rem 0; }
  .section__grid, .section__grid--reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .section__grid--reverse .section__visual { order: -1; }
}

/* ============== SERVIÇOS ============== */
.section--servicos { background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.service-card p {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.55;
}
.service-card__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  color: var(--primary);
  text-align: left;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.service-card__link:hover { color: var(--primary-hover); }

/* ============== POR QUE ============== */
.section--porque { background: var(--bg-soft); }
.benefits {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.benefits li { display: flex; gap: 1rem; align-items: flex-start; }
.benefits__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}
.benefits h4 { margin-bottom: .25rem; font-size: 1rem; }
.benefits p { color: var(--text-muted); font-size: .9rem; line-height: 1.55; }

/* ============== DEPOIMENTOS — LOOP INFINITO ============== */
.section--depoimentos { background: var(--bg-soft); }
.reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.reviews-summary__stars { color: var(--star); font-size: 1.15rem; letter-spacing: .08em; }
.reviews-summary strong { color: var(--text); }

.testimonials {
  overflow: hidden;
  padding: 1rem 0 2rem;
  margin: 0 -1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.testimonials__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll-x 50s linear infinite;
}
.testimonials:hover .testimonials__track { animation-play-state: paused; }

@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials__track { animation: none; }
  .testimonials {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
}

.testimonial {
  flex: 0 0 340px;
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.testimonial__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.testimonial__stars-wrap { display: flex; align-items: center; gap: .35rem; }
.testimonial__stars { color: var(--star); letter-spacing: .05em; font-size: 1rem; }
.testimonial__google { width: 22px; height: 22px; }
.testimonial__text {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text);
  flex-grow: 1;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.testimonial__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8a6df0);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  flex-shrink: 0;
}
.testimonial__author strong { display: block; color: var(--text); font-size: .9rem; font-weight: 600; }
.testimonial__author span { color: var(--text-muted); font-size: .78rem; }

/* ============== CTA FINAL — FULL WIDTH ============== */
.cta-final {
  background: var(--bg-dark);
  color: #fff;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  aspect-ratio: 2/1;
  background: radial-gradient(ellipse, var(--primary), transparent 65%);
  opacity: .25;
  filter: blur(60px);
  pointer-events: none;
}
.cta-final__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-final h2 {
  color: #fff;
  margin-bottom: 1rem;
  max-width: 720px;
}
.cta-final p {
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
}

@media (max-width: 760px) {
  .cta-final { padding: 4.5rem 0; }
}

/* ============== FOOTER ============== */
.footer {
  background: var(--bg-dark-2);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}
.footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  align-items: center;
}
.footer__col--logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
}
.footer__col--logo .logo-img--footer {
  height: 140px;
  margin-bottom: .5rem;
}
.footer__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff !important;
}
.footer__email {
  font-size: .95rem;
  transition: color .2s;
}
.footer__phone:hover,
.footer__email:hover { color: var(--primary) !important; }

.footer__col--social {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer__social { display: flex; gap: .85rem; }
.footer__social a {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
  color: #fff;
}
.footer__social a:hover {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-3px);
}
.footer__social svg { width: 26px; height: 26px; }

.footer__bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .65rem 1rem;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  text-align: center;
}
.footer__bottom p { line-height: 1.55; }
.footer__bottom-link {
  color: var(--gold);
  font-weight: 600;
  transition: color .2s;
}
.footer__bottom-link:hover { color: #fff; }
.footer__bottom-divider {
  color: rgba(255,255,255,.25);
  font-size: .75rem;
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__col--logo .logo-img--footer { height: 110px; }
  .footer__bottom { flex-direction: column; gap: .35rem; }
  .footer__bottom-divider { display: none; }
}

/* ============== MODAL ============== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 58, .75);
  backdrop-filter: blur(4px);
  animation: fadeIn .25s ease;
}
.modal__content {
  position: relative;
  background: var(--bg-card);
  width: 100%;
  max-width: 520px;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp .35s cubic-bezier(.2, .8, .2, 1);
}
.modal__content h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.modal__content > p { color: var(--text-muted); margin-bottom: 1.75rem; font-size: .92rem; }
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
  transition: all .2s;
}
.modal__close:hover { background: var(--primary); color: #fff; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============== FORM ============== */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form__group { display: flex; flex-direction: column; gap: .35rem; }
.form__group label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  color: var(--text);
}
.form__group input,
.form__group select {
  padding: .85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  background: #fff;
  color: var(--text);
  transition: border-color .2s;
}
.form__group input:focus,
.form__group select:focus { outline: none; border-color: var(--primary); }
.form__group input.is-invalid,
.form__group select.is-invalid { border-color: #d93939; }
.form__hint {
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: .5rem;
}
.form__actions { margin-top: .5rem; }

/* ============== ANIMAÇÕES SCROLL ============== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
