/* ============================================================
   Sombrero Seguradora — Soluções Imobiliárias
   Design tokens extraídos do Brandbook Sombrero 2024, das peças
   gráficas (Folder Fiança Locatícia / Lâmina Receita Condominial)
   e do Manual de Marca oficial.
   ============================================================ */

:root {
  --color-purple: #4b1a42;
  --color-purple-dark: #2f0f2a;
  --color-teal: #1ea49e;
  --color-teal-dark: #12726d;
  --color-orange: #e3a14b;
  --color-lime: #afd258;
  --color-cream: #f2e9dc;
  --color-cream-dark: #e5dbc5;
  --color-gray-900: #2b2b2b;
  --color-gray-700: #434343;
  --color-gray-500: #666c6e;
  --color-gray-200: #e4e0db;
  --color-error: #a33b2f;
  --color-white: #ffffff;

  --font-base: "Montserrat", "Segoe UI", Arial, sans-serif;

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --container-width: 1160px;
  --shadow-card: 0 16px 40px rgba(43, 20, 41, 0.12);
}

* { box-sizing: border-box; }

/* Garante que o atributo [hidden] sempre esconda o elemento, mesmo quando
   uma regra mais específica (ex.: #lead-form { display: grid }) tentaria
   sobrepor o display padrão do navegador para esse atributo. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

/* O header é fixo (flutua sobre o hero), então qualquer seção usada
   como alvo de âncora precisa de folga pra não ficar escondida atrás
   dele — inclui seções futuras criadas pelo painel. */
.site-section {
  scroll-margin-top: 84px;
}

/* Revelação suave ao rolar — aplicada via IntersectionObserver (main.js) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__bg-asset,
  .hero__mask-accent {
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-gray-900);
  background: var(--color-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 16px; color: var(--color-gray-900); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--color-gray-700); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-purple);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--color-purple);
  color: #fff;
  box-shadow: 0 10px 24px rgba(75, 26, 66, 0.35);
}
.btn--primary:hover { background: var(--color-purple-dark); }
.btn--ghost {
  background: transparent;
  color: var(--color-purple);
  border-color: var(--color-purple);
}
.btn--ghost:hover { background: var(--color-purple); color: #fff; }
.btn--small { padding: 10px 20px; font-size: 0.9rem; }
.btn--large { padding: 18px 36px; font-size: 1.05rem; }

.section-title { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

/* Header */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--color-gray-200);
  box-shadow: 0 4px 16px rgba(43, 20, 41, 0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header__logo { height: 60px; width: auto; }
.site-header__logo--color { display: none; }
.site-header.is-scrolled .site-header__logo--white { display: none; }
.site-header.is-scrolled .site-header__logo--color { display: block; }

.site-header__nav { flex: 1; display: flex; justify-content: center; }
.site-header__nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-header__nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: color .25s ease;
}
.site-header__nav a:hover { color: var(--color-lime); }
.site-header.is-scrolled .site-header__nav a { color: var(--color-gray-900); }
.site-header.is-scrolled .site-header__nav a:hover { color: var(--color-purple); }

.site-header__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.site-header__toggle-bar {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background-color .25s ease, transform .2s ease, opacity .2s ease;
}
.site-header.is-scrolled .site-header__toggle-bar { background: var(--color-gray-900); }
.nav-is-open .site-header__toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-is-open .site-header__toggle-bar:nth-child(3) { opacity: 0; }
.nav-is-open .site-header__toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-purple-dark);
  padding: 64px 0 130px;
  min-height: 680px;
  display: flex;
  align-items: center;
  color: #fff;
}

/* Foto de fundo em tela cheia (imagem ou vídeo, definido via content.json) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.15) translateY(var(--parallax-bg, 0px));
  will-change: transform;
}

/* Véu escuro sobre a foto para manter o texto legível (cor/ângulo editáveis) */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* O símbolo da Sombrero em overlay mask, flutuando sobre a foto. */
.hero__mask-accent {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(calc(-50% + var(--parallax-mask, 0px))) rotate(var(--mask-rotate, -6deg));
  width: 56%;
  max-width: 640px;
  min-width: 360px;
  aspect-ratio: 900 / 732;
  mix-blend-mode: overlay;
  pointer-events: none;
  will-change: transform;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.hero__content { max-width: 620px; }
.hero__content.text-align-center { text-align: center; margin: 0 auto; }
.hero__content.text-align-right { text-align: right; margin-left: auto; }
.hero__product {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  padding-left: 18px;
  border-left: 5px solid var(--color-lime);
}
.hero__content.text-align-center .hero__product,
.hero__content.text-align-right .hero__product {
  border-left: none;
  padding-left: 0;
}
.hero h1 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }
.headline-accent { position: relative; white-space: nowrap; }
.headline-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 8px;
  border-radius: 4px;
  background: var(--color-lime);
  z-index: -1;
  opacity: 0.9;
}
.hero__subheadline { font-size: 1.15rem; max-width: 480px; color: rgba(255, 255, 255, 0.85); }
.hero__content.text-align-center .hero__subheadline { margin-left: auto; margin-right: auto; }
.subheadline-emphasis { font-weight: 500; color: #fff; }
.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  gap: 14px;
}
.hero__inner--stacked { flex-direction: column; align-items: flex-start; }
.hero__inner--stacked .hero__ctas { flex-direction: row; flex-wrap: wrap; margin-top: 28px; }
.hero__ctas .btn { white-space: nowrap; }
.hero__ctas .btn span { pointer-events: none; }
.hero .btn--primary { background: #fff; color: var(--color-purple); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.hero .btn--primary:hover { background: var(--color-cream); }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.65); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* Cards de confiança sobrepostos à borda inferior do hero */
.hero-trust {
  position: relative;
  z-index: 3;
  margin-top: -96px;
}
/* Preenche só a faixa abaixo da borda do hero (onde os cards não cobrem),
   sem pintar por cima da foto na parte que ainda se sobrepõe ao hero. */
.hero-trust::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 96px;
  bottom: 0;
  background: #e3dbc7;
  z-index: -1;
}
.hero-trust__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.trust-card {
  background: var(--trust-card-bg, var(--color-purple-dark));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 16px 32px rgba(20, 0, 16, 0.25);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.trust-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 22px 40px rgba(20, 0, 16, 0.35);
}
.trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--trust-icon-color, var(--color-lime));
  margin-bottom: 14px;
}
.trust-card p { color: rgba(255, 255, 255, 0.92); font-size: 0.9rem; font-weight: 600; margin: 0; }

/* ============================================================
   Seções genéricas — tudo abaixo do hero é montado a partir do
   content.json (main.js) e usa este bloco de estilos comuns.
   Fundo (sólido/degradê/degradê-da-marca) e cor do texto (claro/
   escuro) são aplicados inline por seção; o resto é fixo aqui.
   ============================================================ */
.site-section { padding: 80px 0; }
.site-section.text-light h2,
.site-section.text-light .section-title { color: #fff; }
.site-section.text-light p { color: rgba(255, 255, 255, 0.82); }
.site-section.text-light .btn--primary { background: #fff; color: var(--color-purple); box-shadow: none; }
.site-section.text-light .btn--primary:hover { background: var(--color-cream); }

/* Bloco de texto livre (usado para o "problema" e o CTA final) */
.richtext__inner { max-width: 780px; margin: 0 auto; }
.richtext__inner p { white-space: pre-line; font-size: 1.05rem; }
.richtext__inner .btn { margin-top: 8px; }

/* Soluções */
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.solution-card {
  border-radius: var(--radius-lg);
  background: var(--color-cream);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 100px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 48px rgba(43, 20, 41, 0.18);
}
.solution-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.solution-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(75, 26, 66, 0.1);
  color: var(--color-purple);
}
.solution-card__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-purple);
  margin-bottom: 4px;
}
.solution-card h3 { margin-bottom: 0; }
.solution-card__problem {
  font-weight: 600;
  color: var(--color-gray-900);
  background: rgba(227, 161, 75, 0.18);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.solution-card__audience { font-size: 0.85rem; font-style: italic; color: var(--color-gray-500); margin-bottom: 12px; }
.solution-card__benefits { list-style: none; margin: 0 0 16px; padding: 0; }
.solution-card__benefits li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--color-gray-900);
}
.solution-card__benefits li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-teal-dark);
  font-weight: 800;
}
.solution-card__how {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  border-top: 1px solid rgba(75,26,66,0.15);
  padding-top: 14px;
  margin-bottom: 20px;
}
.solution-card .btn { margin-top: auto; align-self: flex-start; }

/* Diferenciais */
.differentiators__intro { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.differentiators__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 18px;
}
.diff-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease;
}
.diff-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.28);
}
.diff-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: var(--color-lime);
  margin-bottom: 12px;
}
.diff-card h3 { color: #fff; font-size: 1.05rem; }
.diff-card p { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin: 0; }

/* FAQ */
.faq__list { max-width: 800px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: var(--radius-sm); box-shadow: 0 6px 18px rgba(43,20,41,0.06); overflow: hidden; transition: box-shadow .3s ease; }
.faq-item:hover { box-shadow: 0 10px 26px rgba(43,20,41,0.12); }
.faq-item__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-gray-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}
.faq-item__question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-purple);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item.is-open .faq-item__question::after { transform: rotate(45deg); }
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  padding: 0 22px;
}
.faq-item.is-open .faq-item__answer { padding: 0 22px 18px; }
.faq-item__answer p { margin: 0; font-size: 0.95rem; }

/* Formulário */
.contact-form__inner { max-width: 720px; margin: 0 auto; }
#lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px 20px;
  margin-top: 36px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-row--full { grid-column: 1 / -1; }
.form-row--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-row label { font-size: 0.85rem; font-weight: 700; color: var(--color-gray-900); }
.form-row__required { color: var(--color-error); }
.form-row__error { font-size: 0.78rem; color: var(--color-error); min-height: 1em; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-width: 0;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-gray-900);
  background: #fff;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(30,164,158,0.15);
}
.form-row input.is-invalid,
.form-row select.is-invalid,
.form-row textarea.is-invalid {
  border-color: var(--color-error);
}
.form-success,
.form-error {
  margin-top: 24px;
  text-align: center;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 16px;
}
.form-success {
  color: var(--color-teal-dark);
  background: rgba(30,164,158,0.1);
}
.form-error {
  color: var(--color-error);
  background: rgba(163,59,47,0.1);
}

/* Aviso de cookies (LGPD) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--color-purple-dark);
  box-shadow: 0 -12px 30px rgba(0,0,0,0.25);
  transform: translateY(0);
  transition: transform .3s ease, opacity .3s ease;
}
.cookie-banner--hidden { transform: translateY(100%); opacity: 0; }
.cookie-banner__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  flex: 1;
  min-width: 240px;
}
.cookie-banner a { color: var(--color-lime); font-weight: 700; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.cookie-banner .btn--ghost:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 640px) {
  .cookie-banner__inner { padding: 16px 20px 20px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}
/* Evita sobrepor o CTA flutuante do mobile enquanto o aviso de
   cookies está visível (ver renderCookieBanner em main.js). */
body.has-cookie-banner .floating-cta { display: none; }

/* Floating CTA (mobile) */
.floating-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 999px;
  background: var(--color-purple);
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(75,26,66,0.4);
}

/* Aviso de Pessoa Física x Pessoa Jurídica no formulário */
.pfpj-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pfpj-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 20, 41, 0.55);
}
.pfpj-modal__card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 30px 60px rgba(20,0,16,0.3);
  text-align: left;
}
.pfpj-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-gray-500);
}
.pfpj-modal__close:hover { background: var(--color-gray-200); }
.pfpj-modal__card h3 { margin-bottom: 12px; }
.pfpj-modal__card p { margin-bottom: 24px; color: var(--color-gray-700); font-size: 0.95rem; }
.pfpj-modal__card .btn { width: 100%; justify-content: center; }

/* Footer */
.site-footer { background: var(--color-gray-900); color: rgba(255,255,255,0.85); padding-top: 56px; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer__brand p { color: rgba(255,255,255,0.6); margin-top: 14px; font-size: 0.9rem; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col-title { font-weight: 700; color: #fff; margin-bottom: 4px; font-size: 0.95rem; }
.site-footer__col a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.site-footer__col a:hover { color: var(--color-lime); }
.site-footer__compliance { padding-top: 24px; padding-bottom: 24px; }
.site-footer__compliance p { font-size: 0.72rem; color: rgba(255,255,255,0.45); line-height: 1.6; margin: 0; }
.site-footer__bottom { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,0.08); }
.site-footer__bottom p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.5); text-align: center; }

/* Responsive */

/* Menu com âncora vira painel suspenso abaixo do header */
@media (max-width: 1040px) {
  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: 0 16px 30px rgba(43, 20, 41, 0.12);
  }
  .site-header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
  }
  .site-header__nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gray-200);
    color: var(--color-gray-900);
  }
  .site-header__nav a:hover { color: var(--color-purple); }
  .nav-is-open .site-header__nav { display: block; }
  .site-header__toggle { display: flex; }
}

@media (max-width: 960px) {
  .hero { padding-bottom: 190px; }
  .hero__inner { flex-direction: column; align-items: flex-start; }
  .hero__ctas { flex-direction: row; width: auto; }
  .hero__ctas .btn { width: auto; }
  .hero__mask-accent { width: 70%; opacity: 0.5; }
  .hero-trust { margin-top: -150px; }
  .hero-trust::before { top: 150px; }
  .hero-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solutions__grid { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); }
  .differentiators__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 112px 0 40px; }
  .hero__mask-accent { width: 90%; min-width: 0; opacity: 0.4; }
  .hero-trust { margin-top: 0; padding-top: 28px; }
  .hero-trust::before { top: 0; }
  .hero-trust__grid { grid-template-columns: 1fr; gap: 14px; }
  /* Ícone alinhado à esquerda do texto, em vez de empilhado acima dele. */
  .trust-card { display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px 20px; }
  .trust-card__icon { margin-bottom: 0; flex-shrink: 0; }
  .diff-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: start; }
  .diff-card__icon { grid-row: 1 / 3; margin-bottom: 0; }
  .diff-card h3, .diff-card p { grid-column: 2; }
  .solutions__grid { grid-template-columns: 1fr; }
  .differentiators__grid { grid-template-columns: 1fr; }
  #lead-form { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-section { padding: 56px 0; }
  body { padding-bottom: 0; }

  /* Botões em grupo (hero, cards) ficam empilhados e com a mesma largura,
     evitando alinhamentos irregulares em telas pequenas. */
  .hero__ctas { flex-direction: column; align-items: center; }
  .solution-card .btn,
  .richtext__inner .btn,
  .contact-form__inner .btn {
    width: 100%;
    text-align: center;
  }
  /* Botões do hero mantêm o texto em uma linha só, com fonte e
     espaçamento reduzidos para caber na largura da tela. */
  .hero__ctas .btn { font-size: 0.85rem; padding: 13px 18px; }
  .site-header__inner { gap: 10px; }
  .site-header .btn--small { padding: 10px 14px; font-size: 0.82rem; }
}

@media (max-width: 400px) {
  .site-header__actions .btn { display: none; }
}
