/* Fonts (Manrope + JetBrains Mono) load via <link> tags in index.html head. */

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --color-bg-base: #f6eedb; /* Igual ao fundo do vídeo do novelo (amostrado: rgb 246,238,219) */
  --color-bg-surface: #f7f1de; /* Fundo off-white quente */
  --color-bg-surface-hover: #e8dfcd; /* Hover sutil */
  --color-bg-surface-card: #FFFFFF; /* Cards em branco nítido */
  
  --color-text-primary: #062452; /* Navy exato da logo nova (rgb 6,36,82) - titulos + marca */
  --color-text-secondary: #102A46; /* Navy levemente mais claro - corpo de texto (hierarquia de leitura) */
  --color-text-muted: #4F6678; /* Muted blue-grey (>=4.6:1 sobre o creme — passa WCAG AA) */

  --color-accent: #062452; /* Navy exato da logo nova (rgb 6,36,82) - cor de marca/interativa */
  --color-accent-hover: #04193C; /* Navy derivado, mais escuro p/ o darken-on-hover dos botões */
  --color-accent-dark: #7DB3DC; /* Azul-claro do wordmark novo (rgb 125,179,220) */
  --color-accent-glow: rgba(125, 179, 220, 0.4); /* Derivado do azul-claro da marca (logo nova) */

  --color-border: #E4DCD0; /* Borda suave quente */
  --color-border-hover: #C9BFA9; /* Escurecimento QUENTE da borda (mesma família) */

  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Escala tipográfica de seção (uma fonte de verdade para os H2) */
  --fs-h2: clamp(1.875rem, 3.1vw, 2.5rem);

  --radius-lg: 16px;
  --radius-md: 8px;

  /* Sombras tingidas de navy (sem preto puro) */
  --shadow-soft: 0 2px 4px rgba(8, 40, 72, 0.04), 0 24px 48px -16px rgba(8, 40, 72, 0.18);
  --shadow-float: 0 4px 8px rgba(8, 40, 72, 0.05), 0 36px 64px -18px rgba(8, 40, 72, 0.24);

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);

  --max-width-content: 1280px;
}

/* --- RESET & BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* matches header height */
  background-color: var(--color-bg-base) !important;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--color-bg-base) !important;
}

/* Aurora Ambient Gradient Backgrounds removed to align with video background exactly */

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  text-wrap: balance; /* equilibra linhas, evita órfãs em PT-BR (previdenciário etc.) */
}

p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  text-wrap: pretty;
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* --- STRUCTURE & CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px; /* under the 80px nav-height cap */
  background-color: var(--color-bg-base) !important; /* Same background color as body */
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.header--scrolled {
  background-color: var(--color-bg-base) !important;
  box-shadow: 0 4px 20px rgba(8, 40, 72, 0.04); /* Very subtle shadow on scroll */
}

/* CTA persistente no header: aparece só depois de sair do hero (mantém o hero limpo) */
.header__cta {
  position: absolute;
  right: clamp(16px, 4vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 18px;
  font-size: 0.875rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.header--scrolled .header__cta {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* mantém a centralização vertical no hover/active (sobrepõe o lift padrão do .btn--primary) */
.header__cta:hover { transform: translateY(-50%); }
.header__cta:active { transform: translateY(-50%) scale(0.98); }

.logo {
  display: inline-flex;
  align-items: center;
}

.logo__img {
  height: 34px; /* wordmark: balanced in the 76px header with comfortable padding */
  width: auto;
  display: block;
}

/* Icones Phosphor agora inline como SVG (self-hosted, sem CDN). Tamanho = 1em (herda font-size do container), cor = currentColor. */
.ph-ic {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* Header CTA Button Check: WCAG contrast check */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 12px; /* menos arredondado que a pilula - estilo Apple */
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn--primary {
  background-color: var(--color-accent);
  color: #ffffff; /* High contrast on dark navy */
  border: 1px solid var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(8, 40, 72, 0.35); /* leve flutuação no hover */
}

.btn--primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background-color: var(--color-bg-surface-hover); /* hover visível (antes quase invisível) */
  border-color: var(--color-border-hover);
}

.btn--secondary:active {
  transform: scale(0.98);
}

/* --- HERO SECTION --- */
.hero {
  height: 150vh; /* trilho de scroll mais curto = scrub mais sensível, menos scroll pra descer */
  position: relative;
  background-color: var(--color-bg-base) !important;
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-bg-base) !important;
}

/* Two-column hero: text on the left (clean cream, fully legible), wool video on the right */
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 600px;
}

/* eyebrow do hero (mono-caps), consistente com .diff__eyebrow e .section-header__tag */
.hero__badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(2.25rem, 4vw, 3.15rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 22ch;
  text-wrap: pretty; /* mantém a quebra ajustada do hero (não rebalancear) */
}

/* Realce de marca: sublinhado fino azul-claro (reutilizável em frases-âncora) */
.mark {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-dark);
  text-decoration-thickness: 0.05em; /* fino e delicado */
  text-underline-offset: 0.18em;
}

.hero__subtext {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  gap: 16px;
}

/* Right column: the wool video as a tall vertical element; its cream bg blends with the page */
.hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__video {
  /* max-height (não height fixo) deixa a CAIXA encolher mantendo o aspect do vídeo:
     nunca corta (ultrawide) E nunca vira letterbox — então a máscara de fade sempre
     coincide com as bordas reais do vídeo. */
  max-height: 100vh;
  height: auto;
  width: auto;
  max-width: 100%;
  aspect-ratio: 1076 / 1928; /* reserva a caixa antes do vídeo carregar (sem CLS) */
  object-fit: cover;
  display: block;
  /* desfaz as 4 bordas do vídeo no fundo creme. Vertical: topo até 19% (abaixo do header de 76px),
     base até 90%. Horizontal: laterais suaves. Combinados via mask-composite. */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 19%, #000 72%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 19%, #000 72%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* --- KEYWORD MARQUEE --- */
.trust {
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(246, 242, 230, 0.5);
}

.marquee {
  width: 100%;
  overflow: hidden;
  /* fade the left/right edges so terms enter/exit smoothly */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}

/* pause when the user hovers the bar */
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__item {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.marquee__item::after {
  content: "•";
  margin: 0 1.7rem;
  font-size: 0.7rem;
  color: var(--color-accent);
  opacity: 0.45;
}

.marquee__item--brand {
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: 0.2em;
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .tmarquee__track { animation: none; }
}

/* --- BENTO SECTION --- */
.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 48px;
  max-width: 650px;
}

.section-header__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
}

.section-header__title {
  font-size: var(--fs-h2);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-header__desc {
  color: var(--color-text-secondary);
}

/* =========================================================
   DIFERENCIAIS - EDITORIAL ASSIMETRICO (sem caixas)
   Conteúdo solto sobre o creme; hairline como única divisória;
   imagem oversized flutuando com sombra suave.
   ========================================================= */
.diff {
  padding: 120px 0;
  background-color: var(--color-bg-base);
}

.diff__intro {
  max-width: 760px;
}

.diff__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.diff__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem); /* um degrau acima do H2 de seção, abaixo do H1 do hero */
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  max-width: 18ch;
}

.diff__lead {
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 56ch;
}

/* Divisória: só hairline, nada de caixa */
.diff__rule {
  height: 1px;
  width: 100%;
  background-color: var(--color-border);
  margin: 72px 0;
}

/* Corpo assimétrico — mídia à ESQUERDA (não ecoa o hero, que é mídia à direita) */
.diff__body {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}

.diff__text {
  max-width: 38ch;
}

.diff__claim {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.diff__copy {
  margin-top: 20px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* Stats arejados, divididos só por hairline vertical */
.diff__stats {
  display: flex;
  gap: 0;
  margin-top: 48px;
}

.diff__stat {
  flex: 1;
  padding-left: 28px;
  border-left: 1px solid var(--color-border);
}

.diff__stat:first-child {
  padding-left: 0;
  border-left: none;
}

.diff__stat-num {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}

.diff__stat-pre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.diff__stat-value {
  display: flex;
  align-items: baseline;
}

.diff__stat-unit {
  font-size: 0.42em;
  font-weight: 600;
  margin-left: 3px;
  color: var(--color-text-muted);
  letter-spacing: 0;
}

.diff__stat-label {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

/* Imagem oversized flutuante (quebra levemente a grade) */
.diff__media {
  margin: 0;
  position: relative;
  order: -1; /* mídia na coluna da esquerda */
  margin-left: clamp(-40px, -2vw, 0px); /* "vaza" um pouco pela esquerda */
}

.diff__image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  /* dissolve as bordas no fundo creme: o material parece flutuar, sem caixa */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.diff__media:hover .diff__image {
  transform: translateY(-6px);
}

@media (max-width: 1024px) {
  .diff__body { gap: 48px; }
  .diff__media { margin-left: 0; }
}

@media (max-width: 768px) {
  .diff { padding: 80px 0; }
  .diff__rule { margin: 48px 0; }
  .diff__body {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .diff__media { order: -1; } /* imagem acima do texto no mobile */
  .diff__text { max-width: 100%; }
  .diff__image {
    aspect-ratio: 3 / 2;
  }
  .diff__stats { margin-top: 40px; }
}

@media (max-width: 380px) {
  .diff__stats {
    flex-direction: column;
    gap: 28px;
  }
  .diff__stat {
    padding-left: 0;
    border-left: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .diff__image {
    transition: none !important;
    transform: none !important;
  }
  /* fluxo: troca instantânea, sem animação de movimento */
  .flow__node,
  .flow__title,
  .flow__desc,
  .flow__step::after { transition: none !important; }
  .flow__step:hover .flow__node,
  .flow__step:hover .flow__title,
  .flow__step:hover .flow__desc { transform: none !important; }
}

/* --- SERVICOS: lista editorial (sem caixas) --- */
.svc-list {
  list-style: none;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr; /* grade 2x2: corta a altura e o vazio central */
}

.svc-item {
  display: block;
  padding-top: clamp(32px, 4vw, 44px);
  padding-bottom: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--color-border);
}

/* coluna esquerda: respiro à direita; coluna direita: respiro à esquerda + fio vertical */
.svc-item:nth-child(odd) { padding-right: clamp(28px, 3vw, 56px); }
.svc-item:nth-child(even) {
  padding-left: clamp(28px, 3vw, 56px);
  border-left: 1px solid var(--color-border);
}

/* a segunda linha fecha a base da grade */
.svc-item:nth-child(3),
.svc-item:nth-child(4) {
  border-bottom: 1px solid var(--color-border);
}

.svc-item__icon {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.svc-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.svc-item__lead {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-item:hover .svc-item__lead {
  transform: translateX(10px);
}

.svc-item__desc {
  margin-top: 14px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 42ch;
}

/* Nota de plataforma: tecnologia posicionada como apoio, fio fino no lugar de caixa */
.svc-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 36px;
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.svc-note__icon {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-accent);
}

/* --- FAIXA DE RESPIRO: panorâmica do novelo entre Serviços e Processo --- */
.breather {
  padding: clamp(16px, 3vw, 40px) 0 clamp(28px, 5vw, 64px);
}

.breather__image {
  width: 100%;
  height: auto;
  aspect-ratio: 2200 / 934; /* reserva a caixa antes do download (sem CLS) */
  display: block;
  /* dissolve as bordas no fundo creme: a corda atravessa a página sem moldura */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* --- PROCESSO: fluxo horizontal conectado (sem números decorativos) --- */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}

.flow__step {
  position: relative;
  padding-top: 34px;
}

/* fio conectando cada nó ao próximo (some após o último).
   trilho cinza + preenchimento navy que avança no hover */
.flow__step::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 13px;
  width: calc(100% + 48px - 13px);
  height: 1px;
  background-color: var(--color-border);
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow__step:last-child::after {
  display: none;
}

.flow__node {
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-bg-base);
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 0 5px var(--color-bg-base);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease, box-shadow 0.4s ease;
}

.flow__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--color-text-primary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 38ch;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover: o passo "ativa" — nó preenche e pulsa, fio avança, texto sobe levemente */
.flow__step:hover::after {
  background-size: 100% 100%;
}

.flow__step:hover .flow__node {
  background-color: var(--color-accent);
  transform: scale(1.3);
  box-shadow: 0 0 0 5px var(--color-bg-base), 0 0 0 9px var(--color-accent-glow);
}

.flow__step:hover .flow__title,
.flow__step:hover .flow__desc {
  transform: translateY(-4px);
}

/* --- COBERTURA & COMPROMISSO: split com a visual da marca à DIREITA (zigzag) --- */
.split {
  padding: 120px 0;
}

.split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}

.split__media {
  margin: 0;
  order: 2; /* mídia à DIREITA: zigzag com os Diferenciais (que ficam à esquerda) */
  margin-right: clamp(-40px, -2vw, 0px); /* vaza pela direita */
}

.split__image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; /* mesma proporção das imagens geradas do novelo */
  object-fit: cover;
  display: block;
  /* dissolve as bordas no fundo creme */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.split__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  max-width: 18ch;
}

.split__lead {
  margin-top: 20px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 46ch;
}

.commit {
  list-style: none;
  margin-top: 36px;
  display: grid;
  gap: 18px;
}

.commit__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.commit__item strong {
  color: var(--color-text-primary);
  font-weight: 700;
}

.commit__icon {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--color-accent);
}

/* --- DEPOIMENTOS: centralizado (quebra a simetria) --- */
.tmonials {
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.tmonials__head {
  text-align: center;
  margin-bottom: 56px;
}

.tmonials__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

/* CTA de re-engajamento após os depoimentos (caminho de conversão no fim da página) */
.tmonials__cta {
  text-align: center;
  margin-top: clamp(40px, 5vw, 64px);
}

/* marquee de cards de depoimento (rola continuamente, pausa no hover).
   largura limitada e centralizada + fade lateral forte: mostra ~4 por vez,
   foco no centro, sem deixar ler tudo de uma vez nem contar o total */
.tmarquee {
  overflow: hidden;
  max-width: 1380px;
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.tmarquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 80s linear infinite;
}

.tmarquee:hover .tmarquee__track {
  animation-play-state: paused;
}

.tmarquee__group {
  display: flex;
  flex-shrink: 0;
}

.tcard {
  flex-shrink: 0;
  width: 320px;
  margin: 0 24px 0 0;
  background-color: var(--color-bg-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* a marquee pausa no hover; o card sob o cursor sobe sutilmente */
.tcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-border-hover);
}

.tcard__quote {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

.tcard__by {
  margin-top: 24px;
}

.tcard__name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-primary);
}

.tcard__role {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info__content h2 {
  font-size: var(--fs-h2);
  margin-bottom: 16px;
}

.contact-info__content p {
  margin-bottom: 32px;
  font-size: 1rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  width: fit-content;
}

.contact-channel__icon {
  flex-shrink: 0;
  display: inline-flex;
  font-size: 22px;
  line-height: 1;
  color: var(--color-accent);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-channel:hover .contact-channel__icon {
  transform: translateX(2px) scale(1.05);
}

.contact-channel__body {
  display: flex;
  flex-direction: column;
}

.contact-channel__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-primary);
}

.contact-channel__value {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.contact-channel:hover .contact-channel__value {
  color: var(--color-accent);
}

/* Form — sem caixa; inputs com sublinhado (estilo editorial, mais moderno) */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.form-input, .form-textarea {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  padding: 8px 2px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.5;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
  box-shadow: 0 1px 0 0 var(--color-accent); /* engrossa p/ ~2px sem deslocar o layout */
}

/* Foco visível por teclado em elementos interativos (a11y) */
.btn:focus-visible,
a:focus-visible,
.logo:focus-visible,
.footer__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* No botão navy, o anel precisa de um halo claro pra contrastar */
.btn--primary:focus-visible {
  outline-color: var(--color-bg-base);
  box-shadow: 0 0 0 4px var(--color-accent);
}

/* Form placeholders accessibility check */
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--color-text-muted); /* Passes contrast validation */
}

.btn--submit {
  width: 100%;
  padding: 14px 24px;
  margin-top: 12px;
}

/* Microcopy de reasseguração no ponto de envio do caso (sigilo/LGPD) */
.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.form-note .ph-ic {
  flex-shrink: 0;
  font-size: 15px;
  color: var(--color-accent);
}

.form-success-alert {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: rgba(125, 179, 220, 0.18); /* azul-claro da marca (logo nova) */
  border: 1px solid rgba(16, 42, 70, 0.15);
  color: var(--color-text-primary);
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

/* Estado de erro do form: vermelho dessaturado, semantico, so aparece em falha de envio */
.form-error-alert {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: rgba(176, 74, 56, 0.10);
  border: 1px solid rgba(176, 74, 56, 0.32);
  color: #8f3a2a;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

/* Estado de sucesso: permanece navy (1 accent) + anel azul-claro da marca como sinal */
.btn--success {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.btn--loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--color-border);
  background-color: #082848; /* Azul escuro de reforço */
  padding: 48px 0;
  color: rgba(248, 240, 232, 0.7);
  font-size: 0.825rem;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__copyright {
  color: #F8F0E8;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__link:hover {
  color: var(--color-text-primary);
}

/* --- ANIMATION CLASS REVEAL (JS Triggered) --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
  /* Stack the hero: text on top (centered), wool video below */
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
  }

  .hero__content {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .hero__title {
    max-width: 100%;
  }

  .hero__media .hero__video {
    height: 67vh; /* ~20% maior */
    max-height: 576px;
  }

  .split__grid {
    gap: 48px;
  }

  .split__media {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  /* Serviços: volta a 1 coluna (sem fio vertical nem gutters laterais) */
  .svc-list { grid-template-columns: 1fr; }
  .svc-item:nth-child(odd),
  .svc-item:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: none;
  }
  .svc-item:nth-child(3) { border-bottom: none; }
  .svc-item:last-child { border-bottom: 1px solid var(--color-border); }

  /* Processo: vira timeline vertical (rail à esquerda) */
  .flow {
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
  }

  .flow::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--color-border);
  }

  .flow__step {
    padding: 0 0 36px 32px;
  }

  .flow__step:last-child {
    padding-bottom: 0;
  }

  .flow__step::after {
    display: none; /* sem conector horizontal no mobile */
  }

  .flow__node {
    top: 4px;
  }

  /* Cobertura: empilha (visual em cima, texto embaixo) */
  .split {
    padding: 80px 0;
  }

  .split__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split__media {
    margin-right: 0;
    order: 0; /* mobile: imagem volta pro topo da pilha */
  }

  .commit {
    margin-top: 28px;
  }

  /* Depoimentos: cards um pouco menores no mobile */
  .tcard {
    width: 300px;
    padding: 26px 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  /* header CTA escondido no mobile (evita colidir com o logo centralizado) */
  .header__cta { display: none; }
}

/* --- ACCESSIBILITY: REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  .hero__image, .bento__image {
    transform: none !important;
    transition: none !important;
  }
}
