/* InovaMind Tech — landing v2
   Layout fiel ao modelo do sirros.io: barra marinho, hero com fotos e ondas,
   carrossel de cards altos com faixa ciano, faixa-banner com blocos sobrepostos,
   carrossel de cards com borda, faixa cinza e rodapé marinho com barra preta. */

@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #172C4D;        /* azul principal: CMYK 70 42 0 70 */;
  --navy-2: #1F3860;
  --navy-line: #2F4870;
  --card-line: #2F4870;
  --wave-1: #24395E;
  --wave-2: #4E6589;
  --gold: #B8975A;        /* impacto (10%): ouro antigo, sobre o azul (5:1) */
  --gold-ink: #8C6D35;    /* ouro antigo escurecido, sobre o marfim (AA) */
  --ivory-soft: #F5F0E6;  /* marfim suave (secundária) */
  --cyan: var(--gold);    /* nome antigo: acento sobre o azul */
  --cyan-ink: #172C4D;    /* nome antigo: destaque sobre o marfim = azul principal */
  --band: rgba(245, 240, 230, .95);
  --deep: #172C4D;
  --ink: #333333;
  --ink-soft: #5B6470;
  --line: #EEEAE3;
  --gray: #F8F5EF;
  --ivory: #FDFCF8;       /* fundo das seções claras */
  --paper: #FFFFFD;
  --white: #FFFFFF;
  --black: #000000;
  --danger: #B3261E;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-btn: 12px;
  --container: 1320px;
  --gutter: clamp(20px, 3.5vw, 32px);
  --shadow: 0 4px 15px rgba(0, 0, 0, .18);
  --shadow-lift: 0 14px 30px -10px rgba(23, 44, 77, .35);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 95px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #9AA9B8 var(--gray);
  accent-color: var(--cyan-ink);
}
body {
  margin: 0;
  font-family: "Raleway", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--navy); }
input { caret-color: var(--cyan-ink); }
:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 3px; border-radius: 4px; }
.header :focus-visible, .hero :focus-visible, .cta :focus-visible, .footer :focus-visible,
.challenges__banner :focus-visible { outline-color: var(--cyan); }
/* O submenu de Soluções é claro (marfim): foco no azul principal */
.header .submenu :focus-visible { outline-color: var(--navy); }

.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cyan); color: var(--navy); font-weight: 700; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 16px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Título no padrão do modelo: frase em negrito + destaque grande em ciano, na mesma linha */
.title { font-weight: 700; font-size: clamp(1.25rem, 1rem + .9vw, 1.875rem); line-height: 1.45; color: var(--ink); text-wrap: balance; }
.title strong { font-weight: 800; font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3rem); line-height: 1.12; letter-spacing: -.015em; color: var(--cyan-ink); }
.section-head { max-width: 860px; margin: 0 auto clamp(36px, 4vw, 52px); text-align: center; }
.section-head p { max-width: 680px; margin: 18px auto 0; font-weight: 400; color: var(--ink-soft); text-wrap: pretty; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 51px; padding: 14px 28px; border: 0; border-radius: var(--radius-btn);
  font-weight: 700; font-size: 1.125rem; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
/* Botão de impacto: ouro antigo com leve relevo metálico (degradê vertical, brilho no topo, filete
   interno) e um reflexo discreto que atravessa o botão no hover. */
.btn--primary {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #D2B47A 0%, #B8975A 52%, #A8874D 100%); color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 0 0 1px rgba(110, 84, 40, .35), 0 8px 20px -10px rgba(0, 0, 0, .55);
  letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 248, 230, .45) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform .9s var(--ease);
}
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(110, 84, 40, .4), 0 14px 26px -12px rgba(0, 0, 0, .6); }
.btn--primary:hover::after { transform: translateX(130%); }
.btn--primary:active { transform: translateY(0); filter: brightness(.98); }
.btn--primary:disabled { background: #BDBDBD; color: #4F4F4F; box-shadow: none; filter: none; transform: none; cursor: not-allowed; }
.btn--primary:disabled::after { display: none; }
.btn--sm { min-height: 46px; padding: 12px 20px; font-size: .9375rem; }
.btn--block { width: 100%; }

/* Cabeçalho: barra marinho, menu com sublinhado e mega-menu branco */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--navy); color: var(--white); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .7); }
.header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
/* Logo final IMT (versão negativa, para fundo marinho); mínimo de 120 px de largura pelo manual */
.brand__logo { display: block; width: auto; height: 36px; }
/* Rodapé: versão com o descritor CONSULTORIA (mínimo de 200 px de largura pelo manual) */
.brand__logo--footer { height: auto; width: 220px; }

.menu { display: flex; align-items: center; }
.menu__list { display: flex; align-items: center; }
.menu__item { margin: 0 clamp(8px, 1.2vw, 18px); }
.menu__link {
  display: block; padding: 8px 0; background: none; border: 0; cursor: pointer;
  font-weight: 500; font-size: clamp(.9375rem, .85rem + .25vw, 1.0625rem); color: var(--white); text-decoration: none;
  transition: color .2s;
}
.menu__link:hover, .menu__item--sub.is-open > .menu__link { color: var(--cyan); }
.menu__item--sub > .menu__link::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; vertical-align: 3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.menu__item--sub.is-open > .menu__link::after { transform: translateY(3px) rotate(-135deg); }
.menu__icons { display: flex; gap: 14px; margin-left: clamp(20px, 3vw, 56px); }
.menu__icons a { display: grid; place-items: center; width: 32px; height: 32px; color: rgba(255, 255, 255, .85); transition: color .2s; }
.menu__icons a:hover { color: var(--cyan); }

.submenu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 40px -20px rgba(23, 44, 77, .45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s linear, transform .3s var(--ease), visibility .2s;
}
.submenu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: rgba(23, 44, 77, .2); pointer-events: none; }
.menu__item--sub.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 40px; padding-top: 36px; padding-bottom: 40px; }
.submenu__title {
  display: block; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--navy);
  font-weight: 700; font-size: .875rem; line-height: 1.3; color: var(--cyan-ink); text-decoration: none;
}
.submenu__title strong { display: block; font-size: 1.125rem; }
.submenu__title:hover strong { text-decoration: underline; }
.submenu__col li { position: relative; padding-left: 15px; margin-bottom: 10px; font-size: .875rem; color: var(--ink-soft); }
.submenu__col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: #C9CFD6; }

.header__toggle { display: none; }
.header__nojs { display: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(640px, calc(100svh - var(--header-h)), 900px);
  padding: clamp(64px, 8vw, 120px) 0 clamp(170px, 17vw, 293px);
  background: var(--navy); color: var(--white);
}
/* Espaço reservado para a foto: cobre todo o hero, com véu marinho da esquerda para a direita.
   Trocar a <div> por <img class="hero__media" src="..." alt=""> sem mudar o CSS. */
.hero__media {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  background: linear-gradient(120deg, #1F2E4B 0%, #26385A 50%, #2E4468 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(23, 44, 77, .9), rgba(23, 44, 77, .6) 55%, rgba(23, 44, 77, .25));
}
.hero__content { max-width: 660px; }
@media (min-width: 1200px) { .hero__content { padding-left: 70px; } }
.hero__title { font-weight: 700; font-size: clamp(1.375rem, 1.05rem + 1.1vw, 1.875rem); line-height: 1.35; }
.hero__phrase { display: block; margin-bottom: 18px; }
.hero__phrase:last-child { margin-bottom: 0; }
.rotate { display: inline-grid; vertical-align: bottom; }
.rotate strong {
  grid-area: 1 / 1; font-weight: 800; color: var(--cyan);
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3rem); line-height: 1.15; letter-spacing: -.015em; white-space: nowrap;
}
.js .rotate strong { opacity: 0; transform: translateY(.4em); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.js .rotate strong.is-active { opacity: 1; transform: none; }
.js .rotate strong.is-leaving { opacity: 0; transform: translateY(-.4em); }
html:not(.js) .rotate strong:not(.is-active) { display: none; }
@media (min-width: 992px) { .nowrap-lg { white-space: nowrap; } }
.hero__text { max-width: 34em; margin: 28px 0 32px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: rgba(255, 255, 255, .9); }

@media (prefers-reduced-motion: no-preference) {
  .js .hero__phrase, .js .hero__text, .js .hero .btn { animation: rise .9s var(--ease) backwards; }
  .js .hero__phrase + .hero__phrase { animation-delay: .12s; }
  .js .hero__text { animation-delay: .28s; }
  .js .hero .btn { animation-delay: .4s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Entrada ao rolar (como no site principal): o bloco sobe e aparece quando entra na tela.
   Usa animação (não transição) para não brigar com o hover dos cards. */
@media (prefers-reduced-motion: no-preference) {
  .js .rv:not(.in) { opacity: 0; }
  .js .rv.in { animation: reveal .8s var(--ease) var(--d, 0s) backwards; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } }

.motion-toggle {
  position: absolute; right: var(--gutter); bottom: clamp(150px, 16vw, 250px); z-index: 4;
  padding: 6px 10px; background: rgba(23, 44, 77, .72); border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px;
  font-size: .8125rem; font-weight: 500; color: rgba(255, 255, 255, .92); cursor: pointer;
}
.motion-toggle:hover { color: var(--white); border-color: var(--cyan); }

.waves { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; height: clamp(120px, 18vw, 293px); overflow: hidden; pointer-events: none; }
.waves svg { position: absolute; left: 50%; bottom: 0; width: 100%; min-width: 900px; height: 100%; transform: translateX(-50%); }

/* Quem somos */
.intro { padding: clamp(8px, 1.5vw, 24px) 0 clamp(48px, 5vw, 72px); }
.intro__inner { max-width: 940px; text-align: center; }
.intro__text { max-width: 760px; margin: 22px auto 0; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.7; color: var(--ink-soft); text-wrap: pretty; }

/* Carrossel (compartilhado) */
.carousel { position: relative; max-width: 1170px; margin: 0 auto; padding: 0 60px; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; padding: 4px 2px 8px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__arrow {
  position: absolute; top: calc(50% - 22px); z-index: 2;
  width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; color: #525252;
}
.carousel__arrow::before {
  content: ""; position: absolute; inset: 12px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
}
.carousel__arrow--prev { left: 6px; }
.carousel__arrow--prev::before { transform: translateX(4px) rotate(225deg) skew(10deg, 10deg); }
.carousel__arrow--next { right: 6px; }
.carousel__arrow--next::before { transform: translateX(-4px) rotate(45deg) skew(10deg, 10deg); }
.carousel__arrow:hover { color: var(--cyan-ink); }
.carousel__arrow:disabled { opacity: .25; cursor: default; }
.carousel__dots { display: flex; justify-content: center; gap: 4px; margin-top: 26px; }
.carousel__dots button {
  width: 28px; height: 28px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center;
}
.carousel__dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #7D8A99; transition: background-color .2s, transform .2s; }
.carousel__dots button[aria-current="true"]::before { background: var(--gold-ink); transform: scale(1.2); }
html:not(.js) .carousel__arrow, html:not(.js) .carousel__dots { display: none; }

/* Soluções: cards altos com faixa ciano */
.segments { padding: clamp(40px, 4vw, 56px) 0 clamp(64px, 7vw, 96px); }
.card {
  position: relative; height: 420px; overflow: hidden; border-radius: var(--radius); outline-offset: 4px;
  background: var(--navy-2); color: var(--white); cursor: default;
}
/* Espaço reservado para a foto de cada card (ver v2/README.md) */
.card__media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: linear-gradient(160deg, #2E4468 0%, #26385A 55%, #1F2E4B 100%);
  transition: transform .8s var(--ease);
}
.card:nth-child(even) .card__media { background: linear-gradient(200deg, #34496E 0%, #2A3D62 55%, #1F2E4B 100%); }
.card:hover .card__media, .card.is-open .card__media { transform: scale(1.05); }
.card__panel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; grid-template-rows: auto 0fr;
  background: var(--band);
  transition: grid-template-rows .5s var(--ease), background-color .4s var(--ease);
}
.card__name {
  min-height: 65px; display: flex; align-items: center; justify-content: center; padding: 10px 18px;
  font-weight: 800; font-size: 1.25rem; line-height: 1.2; text-align: center; color: var(--navy);
  transition: color .3s;
}
.card__more { overflow: hidden; }
.card__claim { padding: 0 22px; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; text-align: center; }
.card__more ul { padding: 14px 22px 24px; }
.card__more li { position: relative; padding: 7px 0 7px 16px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: .9375rem; line-height: 1.35; }
.card__more li::before { content: ""; position: absolute; left: 0; top: 1em; width: 5px; height: 5px; border-radius: 50%; background: var(--white); }
.card.is-open .card__panel, .card:focus-visible .card__panel { grid-template-rows: auto 1fr; background: rgba(23, 44, 77, .94); }
.card.is-open .card__name, .card:focus-visible .card__name { color: var(--cyan); }
@media (hover: hover) {
  .card:hover .card__panel { grid-template-rows: auto 1fr; background: rgba(23, 44, 77, .94); }
  .card:hover .card__name { color: var(--cyan); }
}
.card { cursor: pointer; }
html:not(.js) .card__panel { grid-template-rows: auto 1fr; background: rgba(23, 44, 77, .94); }
html:not(.js) .card__name { color: var(--cyan); }
html:not(.js) .card { cursor: default; }

/* Desafios: faixa-banner com blocos brancos sobrepostos */
.challenges { padding-bottom: clamp(56px, 6vw, 80px); }
.challenges__banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 322px; padding: 48px var(--gutter) 110px; text-align: center; color: var(--white);
  background: var(--navy);
}
/* Espaço reservado para a foto da faixa */
.challenges__banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23, 44, 77, .88), rgba(23, 44, 77, .7)); }
.challenges__media {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  background: linear-gradient(90deg, rgba(23, 44, 77, .88), rgba(23, 44, 77, .7)), linear-gradient(120deg, #26385A, #2E4468);
}
.challenges__title { max-width: 980px; font-weight: 500; font-size: clamp(1.625rem, 1.1rem + 2vw, 3rem); line-height: 1.3; text-wrap: balance; }
.challenges__title strong {
  display: inline-block; padding: 0 .2em; font-weight: 800; line-height: 1.25; background: var(--cyan); color: var(--navy);
}
.blocks {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 260px)); justify-content: center; gap: 20px;
  margin-top: -80px;
}
.block {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 22px 28px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.block__icon { width: 48px; height: 48px; fill: none; stroke: var(--gold-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.block h3 { margin-top: 16px; font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--deep); }
.block p { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); }

/* Diferenciais: cards com borda e selo sobreposto */
.edge { padding: clamp(32px, 4vw, 48px) 0 clamp(64px, 7vw, 88px); }
.carousel--edge { max-width: 1130px; }
.carousel--edge .carousel__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); padding-top: 40px; }
.edge-card {
  position: relative; display: flex; flex-direction: column;
  padding: 52px 30px 32px; border: 1px solid var(--card-line); border-radius: var(--radius); background: var(--paper); text-align: center;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.edge-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.edge-card__badge {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  background: var(--navy); box-shadow: 0 0 0 8px var(--ivory);
}
.edge-card__badge svg { width: 30px; height: 30px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.edge-card h3 { font-weight: 600; font-size: 1.125rem; line-height: 1.3; color: var(--ink); }
.edge-card h3 strong { display: block; font-weight: 800; font-size: 1.625rem; color: var(--cyan-ink); }
.edge-card > p { margin-top: 14px; font-weight: 500; font-size: .9375rem; line-height: 1.55; color: var(--ink-soft); }
.edge-card__rule { position: relative; display: block; height: 1px; margin: 24px 6px 18px; background: rgba(0, 0, 0, .18); }
.edge-card__rule::after { content: ""; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; margin-left: -4.5px; background: var(--cyan); transform: rotate(45deg); box-shadow: 0 0 0 6px var(--paper); }
.edge-card .edge-card__foot { margin-top: auto; font-weight: 700; font-size: .9375rem; color: var(--navy); }

/* Método: faixa cinza com blocos brancos */
/* Clientes e parceiros: logos numa grade, em uma cor só (os originais misturam branco e colorido) */
.clients { padding: clamp(24px, 3vw, 40px) 0 clamp(64px, 7vw, 96px); }
.clients__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.clients__item {
  display: grid; place-items: center; min-height: 112px; padding: 20px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
/* Cada logo (mask-image no HTML, para o caminho valer a partir da página) vira uma máscara pintada no azul principal (os originais misturam branco e colorido);
   no hover, o ouro antigo do impacto. */
.clients__logo {
  display: block; width: min(100%, calc(var(--h, 40px) * var(--r, 3))); aspect-ratio: var(--r, 3);
  background-color: var(--navy); transition: background-color .3s var(--ease);
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.clients__item { transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.clients__item:hover { border-color: rgba(140, 109, 53, .45); box-shadow: var(--shadow-lift); }
.clients__item:hover .clients__logo { background-color: var(--gold-ink); }
/* Alto contraste (cores forçadas): a máscara some; mostra o nome da empresa em texto */
@media (forced-colors: active) {
  .clients__logo { display: none; }
  .clients__item .sr-only { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
}
.method { padding: clamp(56px, 6vw, 72px) 0 clamp(56px, 6vw, 80px); background: var(--gray); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 20px 28px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 56px; right: -13px; z-index: 1; width: 10px; height: 10px;
  border-top: 1.5px solid var(--gold-ink); border-right: 1.5px solid var(--gold-ink); transform: rotate(45deg);
}
.step__num { font-weight: 800; font-size: 2.25rem; line-height: 1.15; color: var(--deep); }
.step h3 { margin-top: 6px; font-weight: 700; font-size: 1.125rem; color: var(--navy); }
.step p { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); }

/* CTA final */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 8vw, 110px) 0; text-align: center; color: var(--white); background: var(--navy); }
/* Espaço reservado para a foto da chamada final */
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23, 44, 77, .9), rgba(23, 44, 77, .75)); }
.cta__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; background: linear-gradient(90deg, rgba(23, 44, 77, .9), rgba(23, 44, 77, .75)), linear-gradient(60deg, #1F2E4B, #2E4468); }
.cta__inner { max-width: 860px; }
.cta__title { font-weight: 700; font-size: clamp(1.375rem, 1.05rem + 1.1vw, 1.875rem); line-height: 1.35; text-wrap: balance; }
.cta__title strong { font-weight: 800; font-size: clamp(2rem, 1.2rem + 2.8vw, 3rem); color: var(--cyan); }
.cta__text { max-width: 40em; margin: 20px auto 32px; font-size: 1.125rem; line-height: 1.55; color: rgba(255, 255, 255, .88); }

/* Rodapé */
.footer { background: var(--navy); color: var(--white); }
.footer .container { max-width: 1089px; }
.footer__top { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.footer__menu { padding-left: 28px; }
.footer__menu ul { columns: 3; column-gap: 24px; }
.footer__menu li { margin-bottom: 8px; break-inside: avoid; }
.footer__menu a { font-size: .875rem; text-decoration: none; transition: color .2s; }
.footer__menu a:hover { color: var(--cyan); }
.footer__social { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.footer__icons { display: flex; gap: 10px; margin-bottom: 14px; }
.footer__icons a { display: grid; place-items: center; width: 32px; height: 32px; color: var(--white); transition: color .2s; }
.footer__icons a:hover { color: var(--cyan); }
.footer__social p { margin-top: 10px; font-size: .8125rem; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.footer__social p a { color: var(--cyan); }
.footer__units { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--navy-line); }
.footer__units h2 { margin-bottom: 16px; font-weight: 700; font-size: 1.125rem; line-height: 1.6; }
.footer__unit { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 24px; font-size: .875rem; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.footer__unit strong { color: var(--white); }
.footer__unit a { text-decoration: none; }
.footer__unit a:hover { color: var(--cyan); }
.footer__copyright { padding: 6px 0; background: var(--black); font-size: .875rem; }
.footer__copyright strong { font-weight: 300; color: var(--cyan); }
.footer__copyright a { margin-left: 10px; color: rgba(255, 255, 255, .82); text-decoration: underline; text-underline-offset: 3px; }
.footer__copyright a:hover { color: var(--white); }

/* Modal */
.modal {
  width: min(500px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
}
.modal::backdrop { background: rgba(23, 44, 77, .75); }
.modal[open] { animation: rise .4s var(--ease); }
.modal__form { padding: clamp(22px, 4vw, 34px); }
.modal__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.modal__head h2 { font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.modal__head h2 strong { font-weight: 800; font-size: 1.75rem; color: var(--cyan-ink); }
.modal__head p { margin-top: 6px; font-size: .9375rem; color: var(--ink-soft); }
.modal__close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: -6px -8px 0 0; background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--ink-soft); }
.modal__close:hover { background: var(--gray); color: var(--ink); }
.modal__close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 5px; font-weight: 600; font-size: .875rem; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 10px 12px; background: var(--paper);
  border: 1px solid #B8C2CC; border-radius: 8px; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 3px rgba(23, 44, 77, .2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin-top: 5px; font-size: .8125rem; font-weight: 600; color: var(--danger); }
.modal .btn--primary { margin-top: 8px; background: var(--navy); color: var(--cyan); }
.modal .btn--primary:hover:not(:disabled) { background: var(--navy-2); color: var(--white); }
.modal__note { margin-top: 12px; font-size: .75rem; line-height: 1.5; color: var(--ink-soft); text-align: center; }

/* Responsivo */
@media (max-width: 1199.98px) {
  .carousel__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .blocks { grid-template-columns: repeat(2, minmax(0, 300px)); }
  /* Método: 3 + 2 centralizados (sem buraco na grade) */
  .steps { display: flex; flex-wrap: wrap; justify-content: center; }
  .step { flex: 0 1 calc((100% - 32px) / 3); }
  .step::after { display: none; }
  .submenu__grid { gap: 24px; }
}
@media (max-width: 991.98px) {
  /* Diferenciais: grade enquadrada (2 por linha, última centralizada) em vez de carrossel */
  .carousel--edge { padding: 0; }
  .carousel--edge .carousel__arrow, .carousel--edge .carousel__dots { display: none; }
  .carousel--edge .carousel__track {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 52px 16px;
    overflow: visible; scroll-snap-type: none; margin: 0; padding: 40px 0 0;
  }
  .carousel--edge .carousel__track > .edge-card { flex: 0 1 calc((100% - 16px) / 2); }
  .clients__list { grid-template-columns: repeat(3, 1fr); }
  :root { --header-h: 72px; }
  .header__toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; cursor: pointer; color: #DCDCDD;
  }
  .header__toggle span, .header__toggle span::before, .header__toggle span::after { display: block; width: 26px; height: 3px; background: currentColor; border-radius: 3px; transition: transform .3s var(--ease), background-color .2s; }
  .header__toggle span { position: relative; }
  .header__toggle span::before, .header__toggle span::after { content: ""; position: absolute; left: 0; }
  .header__toggle span::before { top: -8px; }
  .header__toggle span::after { top: 8px; }
  .header__toggle[aria-expanded="true"] span { background: transparent; }
  .header__toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
  .header__toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

  .menu {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 28px; background: var(--navy); border-top: 1px solid var(--navy-line);
  }
  .js .menu { display: none; }
  .js .menu.is-open { display: flex; }
  html:not(.js) .menu, html:not(.js) .header__toggle { display: none; }
  /* Sem JavaScript: o link leva ao menu do rodapé */
  html:not(.js) .header__nojs { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
  .menu__list { flex-direction: column; align-items: stretch; }
  .menu__item { margin: 0; border-bottom: 1px solid var(--navy-line); }
  .menu__link { width: 100%; padding: 14px 0; font-size: 1.125rem; text-align: left; }
  .submenu { position: static; display: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; color: var(--white); }
  .submenu::after { display: none; }
  .menu__item--sub.is-open .submenu { display: block; }
  .submenu .container { padding: 0; }
  .submenu__grid { grid-template-columns: 1fr; gap: 0; padding: 0 0 12px 12px; }
  .submenu__col ul { display: none; }
  .submenu__title { margin: 0; padding: 10px 0; border: 0; color: rgba(255, 255, 255, .8); font-weight: 500; font-size: .9375rem; }
  .submenu__title strong { display: inline; font-size: inherit; color: var(--cyan); }
  .menu__icons { margin: 20px 0 0; }
  .hero__content { padding-left: 0; }
  .carousel { padding: 0 44px; }
  .carousel__track { grid-auto-columns: calc((100% - 20px) / 2); }
  .carousel--edge .carousel__track { grid-auto-columns: calc((100% - 20px) / 2); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__social { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
  .footer__menu { padding-left: 0; }
}
@media (max-width: 767.98px) {
  .clients__list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .clients__item { min-height: 96px; padding: 16px; }
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(23, 44, 77, .78), rgba(23, 44, 77, .88)); }
  .hero .btn { width: 100%; }
  .motion-toggle { bottom: 64px; }
  .rotate strong { white-space: normal; }
  .carousel, .carousel--edge { padding: 0; }
  .carousel__arrow { display: none; }
  .carousel__track { grid-auto-columns: 82%; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
  /* Soluções: um card por vez, enquadrado */
  .carousel__track { grid-auto-columns: 100%; gap: calc(var(--gutter) * 2); }
  .card { height: 420px; }
  .card__name { min-height: 58px; font-size: 1.125rem; }
  /* Desafios: blocos em 2 × 2, mais compactos */
  .blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: -72px; }
  .block { padding: 20px 12px 18px; border-radius: var(--radius); }
  .block__icon { width: 36px; height: 36px; }
  .block h3 { margin-top: 10px; font-size: 1rem; }
  .block p { margin-top: 6px; font-size: .8125rem; line-height: 1.45; }
  /* Diferenciais: menos respiro interno */
  /* Diferenciais no celular: lista enquadrada, selo à esquerda */
  .carousel--edge .carousel__track { gap: 12px; padding: 0; }
  .carousel--edge .carousel__track > .edge-card { flex-basis: 100%; }
  .edge-card { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start; padding: 20px 18px; text-align: left; }
  .edge-card > * { grid-column: 2; }
  .edge-card__badge { position: static; grid-column: 1; grid-row: 1 / span 4; transform: none; width: 52px; height: 52px; box-shadow: none; }
  .edge-card__badge svg { width: 24px; height: 24px; }
  .edge-card h3 { font-size: 1rem; }
  .edge-card h3 strong { font-size: 1.375rem; }
  .edge-card > p { margin-top: 8px; font-size: .875rem; }
  .edge-card__rule { margin: 14px 0 12px; }
  .edge-card__rule::after { left: 0; margin-left: 0; }
  .edge-card .edge-card__foot { font-size: .875rem; }
  .step { flex-basis: 100%; }
  .steps { grid-template-columns: 1fr; }
  .step { align-items: flex-start; text-align: left; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding: 22px 20px; }
  .step__num { grid-row: span 2; }
  .step h3 { margin-top: 4px; }
  .cta .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__menu ul { columns: 2; }
  .footer__unit { grid-template-columns: 1fr; gap: 14px; }
  .footer__copyright a { display: block; width: fit-content; margin: 2px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel__track { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Página de política de privacidade */
.legal { min-height: calc(100dvh - 110px); padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 7vw, 96px); }
.legal__inner { max-width: 760px; }
.legal h1 { font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.2; color: var(--navy); }
.legal h1 strong { font-weight: 800; color: var(--cyan-ink); }
.legal__date { margin-top: 10px; font-size: .9375rem; color: var(--ink-soft); }
.legal h2 { margin-top: 40px; font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--deep); }
.legal p, .legal li { margin-top: 12px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink); }
.legal ul { margin-top: 4px; padding-left: 1.25em; list-style: disc; }
.legal li { margin-top: 6px; }
.legal a { color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal__back { display: inline-block; margin-top: 48px; font-weight: 600; }
.modal__note a { color: var(--cyan-ink); text-decoration: underline; }
