:root {
  --cor-azul-escuro: #102f63;
  --cor-azul-profundo: #0b244d;
  --cor-azul-medio: #4f87bf;
  --cor-azul-claro: #9cc7e5;
  --cor-azul-muito-claro: #eef7fd;

  --cor-fundo: #f7fbff;
  --cor-fundo-suave: #eef6fc;
  --cor-card: #ffffff;
  --cor-texto: #233142;
  --cor-texto-suave: #5e6a78;
  --cor-borda: #d9e8f3;

  --sombra-suave: 0 18px 45px rgba(16, 47, 99, 0.12);
  --sombra-card: 0 12px 30px rgba(16, 47, 99, 0.10);

  --raio-pequeno: 12px;
  --raio-medio: 20px;
  --raio-grande: 28px;

  --fonte-principal: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --largura-container: 1080px;
  --largura-leitura: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fonte-principal);
  color: var(--cor-texto);
  background:
    radial-gradient(circle at top left, rgba(156, 199, 229, 0.28), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--cor-fundo) 44rem, #ffffff 100%);
  line-height: 1.65;
}

img,
video,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin-top: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cor-azul-escuro);
  color: #ffffff;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 32px, var(--largura-container));
  margin: 0 auto;
}

.narrow-container {
  width: min(100% - 32px, var(--largura-leitura));
}

.section {
  padding: 72px 0;
}

/* CABEÇALHO */

.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(217, 232, 243, 0.95);
}

.site-header .container {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hage-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 880px;
  width: 100%;
  text-decoration: none;
}

.hage-brand-logo {
  display: block;
  width: auto;
  height: 82px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hage-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 82px;
  line-height: 1.15;
}

.hage-brand-name {
  display: block;
  color: var(--cor-azul-escuro);
  font-size: clamp(1.12rem, 2.4vw, 1.72rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  white-space: normal;
}

.hage-brand-name strong {
  color: var(--cor-azul-escuro);
  font-size: 1.35em;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hage-brand-slogan {
  display: block;
  margin-top: 7px;
  color: var(--cor-texto-suave);
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  font-weight: 500;
}

/* Compatibilidade com cabeçalhos antigos, caso ainda exista algum HTML anterior */
.header-content,
.brand-header,
.brand-block,
.brand-copy,
.brand-text,
.brand-title,
.brand-subtitle,
.brand-slogan,
.brand-name,
.brand-logo {
  all: unset;
}

/* ELEMENTOS GERAIS */

.eyebrow {
  margin-bottom: 14px;
  color: var(--cor-azul-medio);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--cor-azul-profundo);
  line-height: 1.12;
}

h1 {
  max-width: 860px;
  margin: 0 auto 18px;
  font-size: clamp(2.15rem, 5vw, 4.15rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.section-lead {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--cor-texto-suave);
  font-size: 1.08rem;
}

/* HERO */

.hero {
  padding-top: 58px;
  padding-bottom: 48px;
}

.hero-container {
  max-width: var(--largura-leitura);
}

.hero-card {
  padding: 44px;
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-grande);
  background:
    linear-gradient(135deg, rgba(156, 199, 229, 0.18), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: var(--sombra-suave);
  text-align: center;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--cor-azul-medio);
  font-size: clamp(1.14rem, 2.5vw, 1.42rem);
  font-weight: 700;
  line-height: 1.35;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
  color: var(--cor-texto);
  font-size: 1.06rem;
  text-align: left;
}

.hero-text p {
  margin-bottom: 14px;
}

.highlight-text {
  padding: 16px 18px;
  border-left: 5px solid var(--cor-azul-medio);
  border-radius: 0 var(--raio-pequeno) var(--raio-pequeno) 0;
  background: var(--cor-azul-muito-claro);
  color: var(--cor-azul-profundo);
  font-weight: 800;
}

/* VÍDEO */

.video-section {
  padding-top: 44px;
  background: #ffffff;
}

.video-container {
  max-width: var(--largura-leitura);
  text-align: center;
}

.video-card {
  overflow: hidden;
  margin: 34px auto 28px;
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-grande);
  background: #0d2138;
  box-shadow: var(--sombra-suave);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d2138;
}

.primary-action {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 24px;
}

.action-note {
  margin: 0;
  color: var(--cor-texto-suave);
  font-size: 0.98rem;
}

/* BOTÕES */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid rgba(156, 199, 229, 0.82);
  outline-offset: 3px;
}

.button-primary {
  background: var(--cor-azul-escuro);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(16, 47, 99, 0.24);
}

.button-primary:hover {
  background: var(--cor-azul-profundo);
}

.button-secondary {
  background: #ffffff;
  color: var(--cor-azul-escuro);
  border-color: var(--cor-borda);
}

.button-secondary:hover {
  border-color: var(--cor-azul-medio);
  box-shadow: var(--sombra-card);
}

.button-light {
  background: #ffffff;
  color: var(--cor-azul-escuro);
}

.button-light:hover {
  background: var(--cor-azul-muito-claro);
}

/* POR QUE PARTICIPAR */

.why-section {
  background:
    radial-gradient(circle at top right, rgba(79, 135, 191, 0.12), transparent 28rem),
    var(--cor-fundo);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.info-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-grande);
  background: var(--cor-card);
  box-shadow: var(--sombra-card);
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(79, 135, 191, 0.13);
  color: var(--cor-azul-escuro);
  font-weight: 900;
}

.info-card p {
  color: var(--cor-texto-suave);
}

/* AUTONOMIA ASSISTIDA */

.reality-section {
  background: #ffffff;
}

.reality-box {
  padding: 42px;
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-grande);
  background:
    linear-gradient(135deg, rgba(16, 47, 99, 0.06), rgba(156, 199, 229, 0.18)),
    #ffffff;
}

.reality-box p {
  max-width: 900px;
  color: var(--cor-texto-suave);
  font-size: 1.06rem;
}

/* CHAMADA FINAL */

.final-cta-section {
  padding: 84px 0;
  background:
    radial-gradient(circle at bottom left, rgba(156, 199, 229, 0.28), transparent 24rem),
    linear-gradient(135deg, var(--cor-azul-profundo), var(--cor-azul-escuro));
  color: #ffffff;
}

.final-cta {
  max-width: 880px;
  text-align: center;
}

.final-cta h2 {
  color: #ffffff;
}

.final-cta p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

/* RODAPÉ */

.site-footer {
  padding: 34px 0;
  background: #0d2138;
  color: #ffffff;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.footer-content p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.privacy-note {
  font-size: 0.92rem;
}

/* PÁGINA DO FORMULÁRIO */

.form-page-hero {
  padding-bottom: 32px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--cor-azul-escuro);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.notice-box {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-medio);
  background: #ffffff;
}

.notice-box p {
  margin: 8px 0 0;
  color: var(--cor-texto-suave);
}

.form-section {
  padding-top: 32px;
  background: #ffffff;
}

.form-container {
  display: grid;
  gap: 22px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-actions h2 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.form-embed {
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-grande);
  background: var(--cor-fundo);
  box-shadow: var(--sombra-card);
}

.form-embed iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
  background: #ffffff;
}

.form-placeholder {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 32px;
  text-align: center;
}

.form-placeholder h3 {
  margin-bottom: 10px;
}

.form-placeholder p {
  max-width: 620px;
  margin-bottom: 10px;
  color: var(--cor-texto-suave);
}

/* RESPONSIVO */

@media (max-width: 920px) {
  .section {
    padding: 58px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--largura-container));
  }

  .header-content {
    min-height: auto;
    padding: 16px 0;
  }

  .brand-header {
    gap: 12px;
    justify-content: flex-start;
    max-width: 100%;
  }

  .brand-logo {
    height: 58px;
  }

  .brand-copy {
    min-height: 58px;
  }

  .brand-title {
    font-size: 1.65rem;
    letter-spacing: 0.03em;
  }

  .brand-subtitle {
    margin-top: 1px;
    font-size: 0.88rem;
    line-height: 1.15;
  }

  .brand-slogan {
    margin-top: 5px;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.5rem, 8vw, 2.05rem);
  }

  .hero-card {
    padding: 28px 22px;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .info-card,
  .reality-box {
    padding: 24px;
  }

  .button {
    width: 100%;
    padding: 14px 18px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .form-embed {
    min-height: 620px;
  }

  .form-embed iframe {
    min-height: 700px;
  }
}

@media (max-width: 430px) {
  .brand-logo {
    height: 50px;
  }

  .brand-title {
    font-size: 1.42rem;
  }

  .brand-subtitle {
    font-size: 0.78rem;
  }

  .brand-slogan {
    font-size: 0.7rem;
  }
}

/* CABEÇALHO RESPONSIVO */

@media (max-width: 680px) {
  .site-header .container {
    min-height: 86px;
    justify-content: flex-start;
  }

  .hage-brand {
    justify-content: flex-start;
    gap: 12px;
  }

  .hage-brand-logo {
    height: 58px;
  }

  .hage-brand-text {
    min-height: 58px;
  }

  .hage-brand-name {
    font-size: 0.95rem;
    line-height: 1.18;
  }

  .hage-brand-name strong {
    font-size: 1.25em;
  }

  .hage-brand-slogan {
    margin-top: 5px;
    font-size: 0.76rem;
    line-height: 1.25;
  }
}

@media (max-width: 420px) {
  .hage-brand-logo {
    height: 52px;
  }

  .hage-brand-name {
    font-size: 0.84rem;
  }

  .hage-brand-slogan {
    font-size: 0.7rem;
  }
}

/* =========================================================
   CORREÇÃO FINAL DO CABEÇALHO HAGE
   Este bloco deve ficar no FINAL do arquivo para sobrescrever
   configurações antigas que possam estar quebrando o topo.
   ========================================================= */

.hage-header {
  background: #ffffff !important;
  border-bottom: 1px solid #d9e8f3 !important;
  padding: 0 !important;
}

.hage-header-container {
  min-height: 112px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hage-header-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  width: auto !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  text-decoration: none !important;
}

.hage-header-logo {
  display: block !important;
  width: auto !important;
  height: 82px !important;
  max-width: 82px !important;
  object-fit: contain !important;
  flex: 0 0 auto !important;
}

.hage-header-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 82px !important;
  line-height: 1.15 !important;
}

.hage-header-title {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  color: #102f63 !important;
  font-size: clamp(1rem, 2vw, 1.35rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

.hage-header-title strong {
  color: #102f63 !important;
  font-size: clamp(2rem, 4vw, 3.15rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  line-height: 0.95 !important;
}

.hage-header-slogan {
  display: block !important;
  margin-top: 8px !important;
  color: #5e6a78 !important;
  font-size: clamp(0.86rem, 1.5vw, 1rem) !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

/* Remove interferências visuais de cabeçalhos anteriores */
.header-content,
.brand-header,
.brand-block,
.brand-copy,
.brand-text {
  display: initial;
}

@media (max-width: 680px) {
  .hage-header-container {
    min-height: 88px !important;
    justify-content: flex-start !important;
  }

  .hage-header-brand {
    justify-content: flex-start !important;
    gap: 12px !important;
    max-width: 100% !important;
  }

  .hage-header-logo {
    height: 58px !important;
    max-width: 58px !important;
  }

  .hage-header-text {
    min-height: 58px !important;
  }

  .hage-header-title {
    gap: 6px !important;
    font-size: 0.86rem !important;
    line-height: 1.16 !important;
  }

  .hage-header-title strong {
    font-size: 1.65rem !important;
  }

  .hage-header-slogan {
    margin-top: 5px !important;
    font-size: 0.72rem !important;
    line-height: 1.22 !important;
  }
}

@media (max-width: 420px) {
  .hage-header-logo {
    height: 50px !important;
    max-width: 50px !important;
  }

  .hage-header-title {
    font-size: 0.76rem !important;
  }

  .hage-header-title strong {
    font-size: 1.42rem !important;
  }

  .hage-header-slogan {
    font-size: 0.66rem !important;
  }
}