/* ============================================================================
   ALPHA VISION CONSULTING — Folha de estilos principal
   ----------------------------------------------------------------------------
   Organização do arquivo:
     1.  Variáveis (cores, tipografia, espaçamento) — Brand Book v1.0
     2.  Reset e base
     3.  Tipografia e utilitários
     4.  Layout (container, grid, seções, divisórias)
     5.  Header e navegação (sticky + menu mobile + seletor de idioma)
     6.  Botões e CTAs
     7.  Hero
     8.  Seções de conteúdo (Sobre, Por que, Serviços, Atuação, Fundador)
     9.  Contato e formulário
     10. Rodapé
     11. Botão flutuante de WhatsApp
     12. Animações de entrada ao rolar
     13. Responsividade (mobile-first: ajustes para 768px+ e 1024px+)
     14. Acessibilidade / prefers-reduced-motion

   Para editar CORES e FONTES, mexa apenas no bloco 1 (:root).
   ========================================================================== */

/* ============================================================================
   1. VARIÁVEIS — Paleta e tokens da marca
   ========================================================================== */
:root {
  /* --- Cores primárias --- */
  --alpha-navy: #02386D;   /* cor de marca, destaque, fundos escuros */
  --graphite:   #2B2B2B;   /* corpo de texto */
  --black:      #000000;   /* logotipo */

  /* --- Cores secundárias / apoio --- */
  --steel:       #5B7791;  /* subtítulos, elementos de apoio */
  --steel-light: #C7D2DC;  /* linhas, divisórias, detalhes */
  --off-white:   #F4F6F8;  /* fundos de seção */
  --white:       #FFFFFF;

  /* --- Variações derivadas (para hover/estados) --- */
  --navy-dark:  #022A52;   /* hover de botões navy */
  --navy-tint:  #E8EEF4;   /* fundo sutil para badges/realces */

  /* --- Tipografia --- */
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", Arial, "Segoe UI", sans-serif;

  /* --- Ritmo / espaçamento --- */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  --container:    1180px;  /* largura máxima do conteúdo */
  --header-h:     104px;   /* altura do header sticky (logo maior) */
  --radius:       4px;     /* cantos sutis; marca usa cantos vivos */
  --transition:   220ms ease;

  --shadow-sm: 0 1px 3px rgba(2, 56, 109, 0.06);
  --shadow-md: 0 8px 28px rgba(2, 56, 109, 0.10);
  --glow-navy: 0 12px 40px rgba(2, 56, 109, 0.22);   /* realce tecnológico em hover */

  /* Gradiente da marca: azul à esquerda, escurecendo até o preto à direita.
     Usado em hero, seção navy e rodapé para um acabamento mais tecnológico. */
  --navy-gradient: linear-gradient(100deg, #02386D 0%, #022747 45%, #01101F 74%, #000000 100%);
}

/* ============================================================================
   2. RESET E BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* âncoras não ficam sob o header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;          /* ~16px */
  line-height: 1.65;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--alpha-navy); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0; padding: 0; list-style: none; }

/* ============================================================================
   3. TIPOGRAFIA
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--alpha-navy);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}

/* H1 de seção: caixa alta, conforme Brand Book */
.section-title {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);   /* 24–32px */
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
}

/* H2 / subtítulo de seção */
.section-subtitle {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  color: var(--steel);
  text-transform: none;
  letter-spacing: 0;
  margin-top: calc(var(--space-sm) * -0.4);
}

p { margin: 0 0 var(--space-sm); }

.eyebrow {                  /* rótulo curto acima dos títulos */
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel);
  margin: 0 0 var(--space-xs);
  display: inline-block;
}

.lead {                     /* parágrafo de abertura, levemente maior */
  font-size: 1.08rem;
  color: var(--graphite);
  max-width: 60ch;
}

.muted { color: var(--steel); }

/* ============================================================================
   4. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}

.section--tight { padding-block: var(--space-lg); }

.section--alt { background: var(--off-white); }   /* alterna fundos */

.section--navy {
  background: var(--navy-gradient);
  color: var(--white);
}
.section--navy .section-title,
.section--navy h2,
.section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: var(--steel-light); }
.section--navy p { color: rgba(255, 255, 255, 0.85); }

.section-head {
  max-width: 70ch;
  margin-bottom: var(--space-lg);
}

/* Divisória: régua horizontal em Alpha Navy entre seções */
.rule {
  width: 64px;
  height: 3px;
  background: var(--alpha-navy);
  border: 0;
  margin: 0 0 var(--space-md);
}
.section--navy .rule { background: var(--steel-light); }

/* ============================================================================
   5. HEADER E NAVEGAÇÃO
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--steel-light);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: var(--header-h);
}

.nav__logo {
  display: inline-flex;
  align-items: center;   /* logo verticalmente centralizado no header */
}
.nav__logo img {
  height: 78px;
  width: auto;
  display: block;
}

/* Lista de navegação central */
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--graphite);
  padding: 0.4rem 0;
  position: relative;
}
.nav__link:hover { color: var(--alpha-navy); text-decoration: none; }
.nav__link::after {                 /* sublinhado animado discreto */
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--alpha-navy);
  transition: width var(--transition);
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

/* Bloco à direita: seletor de idioma + CTA */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Seletor de idioma (PT · ES · EN) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-switch__btn {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--steel);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lang-switch__btn + .lang-switch__btn { border-left: 1px solid var(--steel-light); }
.lang-switch__btn:hover { color: var(--alpha-navy); }
.lang-switch__btn.is-active {
  background: var(--alpha-navy);
  color: var(--white);
}

/* Botão hamburguer (mobile) — usa o símbolo da marca quando aberto */
.nav__toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--alpha-navy);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================================
   6. BOTÕES E CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--alpha-navy);
  color: var(--white);
}
.btn--primary:hover { background: var(--navy-dark); }

.btn--ghost {
  background: transparent;
  color: var(--alpha-navy);
  border-color: var(--alpha-navy);
}
.btn--ghost:hover { background: var(--navy-tint); }

/* Variante para usar sobre fundo navy (hero/footer) */
.btn--on-dark {
  background: var(--white);
  color: var(--alpha-navy);
}
.btn--on-dark:hover { background: var(--off-white); }
.btn--ghost-on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn--ghost-on-dark:hover { background: rgba(255, 255, 255, 0.12); }

.btn svg { width: 18px; height: 18px; }

/* ============================================================================
   7. HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy-gradient);
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(4.5rem, 3rem + 9vw, 9rem);
}
/* Marca d'água: símbolo branco da marca ocupando a altura da seção, à direita */
.hero__bg {
  position: absolute;
  inset: 0;
  /* versão do símbolo já recortada (sem margem transparente) */
  background-image: url("../img/hero-symbol.png");
  background-size: auto 100%;             /* ocupa toda a altura do hero */
  background-position: right center;      /* encostado na borda direita da seção */
  background-repeat: no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
/* Realce tecnológico: brilho sutil no canto superior direito */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 88% 8%, rgba(91, 119, 145, 0.22), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero__content { max-width: 64ch; }
.hero__eyebrow { color: var(--steel-light); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}
.hero__subhead {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.1rem, 1rem + 0.8vw, 1.5rem);
  color: var(--steel-light);
  margin-bottom: var(--space-md);
}
.hero__support {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 58ch;
  margin-bottom: var(--space-lg);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ============================================================================
   8. SEÇÕES DE CONTEÚDO
   ========================================================================== */

/* --- Sobre: blocos Propósito / Missão / Visão / Valores --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.pillar {
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-left: 3px solid var(--alpha-navy);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.pillar h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
}
.pillar p { margin: 0; color: var(--graphite); }

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-xs);
}
.values-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--alpha-navy);
}
/* Marcador quadrado (nó), conforme sistema gráfico da marca */
.values-list li::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--alpha-navy);
  flex: none;
}

/* --- Por que: cards numerados 01–05 --- */
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.why-card {
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--steel);
}
.why-card__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--steel-light);
  letter-spacing: 0.02em;
}
.why-card h3 { font-size: 1.1rem; margin: var(--space-xs) 0; }
.why-card p { margin: 0; }

/* --- Serviços: cards com ícone linear (nó+seta) --- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  padding: var(--space-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* Linha de acento superior que aparece no hover (toque tecnológico) */
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--alpha-navy), var(--steel));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-navy);
  border-color: var(--alpha-navy);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 48px; height: 48px;
  color: var(--alpha-navy);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;   /* mantém os ícones com o mesmo alinhamento */
}
.service-card__icon svg { width: 100%; height: 100%; display: block; }
.service-card h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
  min-height: 2.6em;          /* reserva 2 linhas: todos os títulos alinham */
  text-wrap: balance;         /* distribui as linhas de forma equilibrada */
  overflow-wrap: normal;
  hyphens: none;
  display: flex;
  align-items: flex-end;
}
.service-card p { margin: 0; }

/* --- Atuação: blocos de informação --- */
.scope__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.scope-block {
  border-top: 3px solid var(--alpha-navy);
  padding-top: var(--space-sm);
}
.scope-block h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
}
.scope-block p { margin: 0; }

/* Faixa de credibilidade (parcerias) */
.credibility {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}
.credibility p { margin: 0; font-size: 0.98rem; }

/* --- Fundador --- */
.founder--spaced { margin-top: var(--space-xl); }   /* espaçamento do bloco do fundador */

.founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  justify-items: center;
  text-align: center;
  /* Painel sutil sobre o fundo navy, para destacar o bloco */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
}

/* Foto do fundador em moldura circular */
.founder__photo {
  width: 168px;
  height: 168px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--steel-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  background: var(--alpha-navy);
}

.founder__body { max-width: 60ch; }
.founder h3 { font-size: 1.45rem; margin-bottom: 2px; }
.founder__role {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--steel-light);
  margin-bottom: var(--space-sm);
}

/* Selos de competências */
.founder__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  justify-content: center;
}
.founder__tags li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--white);
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

/* ============================================================================
   9. CONTATO E FORMULÁRIO
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.contact__channels { display: grid; gap: var(--space-md); }
.contact-item { display: flex; gap: var(--space-sm); align-items: flex-start; }
.contact-item__icon {
  width: 40px; height: 40px; flex: none;
  color: var(--alpha-navy);
  border: 1.5px solid var(--steel-light);
  border-radius: var(--radius);
  display: grid; place-items: center;
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin: 0 0 2px;
}
.contact-item a { font-weight: 600; word-break: break-word; }

/* Formulário */
.form { display: grid; gap: var(--space-sm); }
.form__row { display: grid; gap: var(--space-sm); }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--graphite);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--graphite);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--alpha-navy);
  box-shadow: 0 0 0 3px var(--navy-tint);
}
.field textarea { resize: vertical; min-height: 120px; }

.form__note { font-size: 0.85rem; color: var(--steel); margin: 0; }
.form__status {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  min-height: 1.2em;
}
.form__status.is-ok { color: #1c7a4d; }
.form__status.is-err { color: #b3261e; }

/* ============================================================================
   10. RODAPÉ
   ========================================================================== */
.site-footer {
  background: var(--navy-gradient);
  color: rgba(255, 255, 255, 0.85);
  padding-block: var(--space-lg) var(--space-md);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.footer__logo img { height: 88px; margin-bottom: var(--space-md); }
.footer__tagline { max-width: 38ch; color: rgba(255, 255, 255, 0.8); margin-top: var(--space-sm); }
.footer__col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}
.footer__col a { color: rgba(255, 255, 255, 0.85); }
.footer__col a:hover { color: var(--white); }
.footer__col li { margin-bottom: 0.5rem; }

.footer__bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================================
   11. BOTÃO FLUTUANTE DE WHATSAPP
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover { transform: scale(1.06); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

/* ============================================================================
   12. ANIMAÇÕES DE ENTRADA AO ROLAR
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Acessibilidade: foco visível por teclado */
:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Link "pular para o conteúdo" */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--alpha-navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ============================================================================
   13. RESPONSIVIDADE — mobile-first
   ========================================================================== */

/* >= 600px: grids de 2 colunas em cartões */
@media (min-width: 600px) {
  .about__grid,
  .why__grid,
  .services__grid,
  .scope__grid { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
}

/* >= 900px: 3 colunas, layout do contato e fundador lado a lado */
@media (min-width: 900px) {
  .why__grid,
  .services__grid,
  .scope__grid { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .founder {
    grid-template-columns: 168px 1fr;
    gap: var(--space-lg);
    justify-items: start;
    text-align: left;
    padding: var(--space-lg);
  }
  .founder__tags { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Menu mobile: aparece abaixo de 860px */
@media (max-width: 860px) {
  /* Header e logo proporcionais em telas menores */
  :root { --header-h: 84px; }
  .nav__logo img { height: 60px; }

  .nav__toggle { display: block; }

  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--steel-light);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm) var(--space-md);
    /* Fechado: invisível e fora de alcance, independentemente da altura.
       Usamos visibility/opacity para não deixar itens "vazarem" no topo. */
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__link {
    width: 100%;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--off-white);
    font-size: 1rem;
  }
  .nav__link::after { display: none; }

  /* CTA do header oculto no mobile (já há CTA no menu e botão flutuante) */
  .nav__cta-header { display: none; }
}

/* ============================================================================
   14. PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================================
   15. TEMA ESCURO TECNOLÓGICO (site inteiro, exceto o cabeçalho branco)
   ----------------------------------------------------------------------------
   Aplica o mesmo visual do hero/rodapé (gradiente azul->preto) a todas as
   seções, com painéis translúcidos, texto claro e ícones claros.
   O cabeçalho permanece branco com o logo navy, como nas referências.
   Para voltar ao tema claro, basta remover este bloco inteiro.
   ========================================================================== */
body { background: #020912; color: #E5ECF3; }

/* Fundos de seção com leve profundidade (gradientes escuros alternados) */
.section        { background: linear-gradient(165deg, #061529 0%, #03080f 100%); }
.section--alt   { background: linear-gradient(165deg, #081c37 0%, #04101f 100%); }
/* .section--navy mantém o gradiente forte da marca (--navy-gradient) */

/* Tipografia clara nas seções */
.section h2,
.section h3,
.section .section-title { color: #F2F6FA; }
.section p            { color: rgba(229, 236, 243, 0.85); }
.section .lead        { color: rgba(229, 236, 243, 0.92); }
.section .eyebrow,
.section .section-subtitle,
.section .muted       { color: var(--steel-light); }
.rule                 { background: linear-gradient(90deg, var(--steel-light), var(--steel)); }

/* Painéis (pilares, cards, blocos) translúcidos sobre o fundo escuro */
.pillar,
.why-card,
.service-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(229, 236, 243, 0.85);
}
.pillar { border-left-color: var(--steel); }
.pillar h3,
.why-card h3,
.service-card h3 { color: #F2F6FA; }
.pillar p,
.why-card p,
.service-card p { color: rgba(229, 236, 243, 0.82); }
.why-card:hover,
.service-card:hover {
  border-color: var(--steel-light);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
}
.why-card__num { color: rgba(255, 255, 255, 0.28); }

/* Valores: marcadores e texto claros */
.values-list li { color: #FFFFFF; }
.values-list li::before { background: var(--steel-light); }

/* Ícones dos serviços claros (visíveis no escuro) */
.service-card__icon { color: var(--steel-light); }

/* Atuação: blocos de escopo com topo claro */
.scope-block { border-top-color: var(--steel-light); }

/* Contato: formulário em modo escuro */
.field label { color: #E5ECF3; }
.field input,
.field textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.42); }
.field input:focus,
.field textarea:focus {
  border-color: var(--steel-light);
  box-shadow: 0 0 0 3px rgba(199, 210, 220, 0.22);
}
.contact-item__icon { color: var(--steel-light); border-color: rgba(255, 255, 255, 0.22); }
.contact-item a { color: #FFFFFF; }
.contact-item__label { color: var(--steel-light); }
.contact-item span { color: rgba(229, 236, 243, 0.85); }
.form__note { color: var(--steel-light); }

/* Botão de contorno: adaptado para fundo escuro */
.btn--ghost { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* Textura sutil de nós no topo das seções escuras, reforço tecnológico */
.section { position: relative; }

/* ============================================================================
   16. AJUSTES ADICIONAIS (Sobre com marca, marca d'água no Contato)
   ========================================================================== */

/* --- Seção Sobre: bloco de texto + painel de marca ao lado --- */
.about-head { max-width: none; }
.about-head__text { max-width: 62ch; }
.about-head__visual {
  display: none;   /* aparece a partir do desktop */
  position: relative;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(91, 119, 145, 0.14), rgba(255, 255, 255, 0.02));
  padding: var(--space-lg);
  overflow: hidden;
  min-height: 260px;
}
.about-head__visual::after {   /* brilho tecnológico sutil */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 30%, rgba(199, 210, 220, 0.18), transparent 70%);
  pointer-events: none;
}
.about-head__visual img {
  position: relative;
  width: min(78%, 300px);
  height: auto;
  opacity: 0.92;
}

@media (min-width: 900px) {
  .about-head {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-lg);
    align-items: center;
  }
  .about-head__visual { display: flex; }
}

/* --- Hero: título e subtítulo em uma linha cada --- */
/* O bloco de texto do hero é limitado a 64ch, o que quebra o título e o
   subtítulo em duas linhas. No desktop liberamos a largura e deixamos cada
   um ocupar exatamente a linha do seu conteúdo. O parágrafo de apoio segue
   com a própria medida (58ch), então a coluna de texto não muda. */
@media (min-width: 992px) {
  .hero__content { max-width: none; }
  .hero h1,
  .hero__subhead {
    width: max-content;    /* largura da frase em linha única */
    max-width: 100%;       /* se não couber, volta a quebrar normalmente */
  }
}

/* --- Contato: bloco de formalização (NDA e contrato) --- */
.contact-terms {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-xs, 0.5rem);
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(91, 119, 145, 0.14), rgba(255, 255, 255, 0.02));
}
.contact-terms__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-light);
  margin: 0;
}
.contact-terms__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(229, 236, 243, 0.85);
  margin: 0;
  max-width: 46ch;
}

/* --- Marca d'água da Alpha Vision na seção Contato --- */
#contato { overflow: hidden; }
#contato .container { position: relative; z-index: 1; }
#contato::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-symbol.png");
  background-repeat: no-repeat;
  background-size: auto 82%;
  background-position: left -70px center;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

