/* ==========================================================================
   SHP Hydric Solutions — Sessão 1 (Header + Hero)
   Referência: Figma "SITE - SHP" (canvas 1920px, container 1280px)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --azul:        #0373E3;   /* fundo principal (Rectangle 15)            */
  --navy:        #062442;   /* títulos / links ativos / ícones de check   */
  --navy-btn:    #0A2F55;   /* fundo do botão                             */
  --azul-claro:  #4DA1F5;   /* linha do menu                              */
  --azul-icone:  #0080FF;   /* círculo da seta do botão                   */
  --branco:      #FFFFFF;
  --cinza:       #B7B7B7;   /* subtexto (fundo escuro)                    */
  --cinza-escuro:#6B7280;   /* subtexto (fundo claro)                     */
  --preto:       #01101F;   /* títulos no fundo claro                     */

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container:   1280px;
  --gutter:      clamp(20px, 4vw, 40px);
  --header-h:    clamp(64px, 4.64vw, 89px);   /* 89px @1920 */

  /* unidade da ilustração do hero: 1px @1920 (as medidas do Figma são
     multiplicadas por --u, então a arte escala junto com a viewport) */
  --u: clamp(0.48px, calc((100vw - 300px) / 1620), 1px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--branco);
  background: var(--azul);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 1360px) { .container { padding-inline: 0; } }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  /* Rectangle 18: degradê escurecendo o topo */
  background: linear-gradient(180deg, rgba(0, 24, 66, 0.28) 0%, rgba(0, 24, 66, 0.10) 55%, rgba(0, 24, 66, 0) 100%);
  transition: height .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(30px, 2.14vw, 41px);   /* texto do menu @ y=41 */
  transition: padding .3s ease;
}
/* logo que aparece só quando a barra fica fixa (rolagem) */
.header__logo {
  display: flex;
  align-items: center;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width .3s ease, opacity .3s ease, margin .3s ease;
}
.header__logo img { width: 150px; height: auto; }

/* estado "grudado": fundo escuro translúcido + blur, barra mais baixa */
.header.is-scrolled {
  height: 72px;
  background: rgba(1, 16, 31, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 10, 25, 0.35);
}
.header.is-scrolled .header__inner { padding-top: 0; align-items: center; }
.header.is-scrolled .header__logo { width: 150px; opacity: 1; margin-right: 52px; }
.header.is-scrolled .nav__line { opacity: 0; }
.header.is-scrolled .nav__link { color: var(--branco); }
.header.is-scrolled .nav__link:hover,
.header.is-scrolled .nav__link.is-active { color: var(--azul-claro); }
.header.is-scrolled .nav__link::after { background: var(--azul-claro); }

/* âncoras param abaixo da barra fixa */
section[id] { scroll-margin-top: 72px; }

.nav { display: flex; align-items: center; width: 100%; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(28px, 2.75vw, 52.76px);
  padding-left: 4px;
}
.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 13.43px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  color: var(--branco);
  transition: color .25s ease;
}
.nav__link::after {
  content: '';
  width: 19px;
  height: 2px;
  border-radius: 90px;
  background: var(--navy);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity .25s ease, transform .25s ease;
}
.nav__link:hover { color: var(--navy); }
.nav__link.is-active { font-weight: 700; color: var(--navy); }
.nav__link.is-active::after { opacity: 1; transform: scaleX(1); }

/* linha fina abaixo do menu (639px @1920) */
.nav__line {
  position: absolute;
  left: var(--gutter);
  bottom: -2px;                              /* linha @ y=91 */
  width: min(639px, 100%);
  height: 1px;
  background: var(--azul-claro);
  transition: opacity .3s ease;
}
@media (min-width: 1360px) { .nav__line { left: 0; } }

/* hambúrguer (só mobile) */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--branco);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO (Sessão 1)
   ========================================================================== */
.hero {
  position: relative;
  background: var(--azul);
  overflow: hidden;
  padding-top: var(--header-h);
  /* 918px @1920 (até o início da próxima dobra) */
  min-height: clamp(640px, 47.8vw, 918px);
}
.hero__inner {
  position: relative;
  display: flex;
  align-items: flex-start;
}

/* ---- coluna de texto ---- */
.hero__content {
  position: relative;
  z-index: 2;
  width: 600px;
  max-width: 100%;
  padding-top: clamp(28px, 2.5vw, 48px);   /* logo @ y=137 (137-89) */
  padding-bottom: clamp(40px, 4vw, 70px);
  padding-left: 4px;                       /* texto @ x=324 (container @320) */
  flex-shrink: 0;
}

.hero__logo {
  display: inline-block;
  margin-left: -9px;                       /* logo @ x=315 */
  margin-bottom: clamp(12px, .9vw, 17px);  /* título @ y=256 (234+22 - 5 do line-height) */
}
.hero__logo img { width: clamp(180px, 12.9vw, 248px); height: auto; }

.hero__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(32px, 2.5vw, 48px);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  margin-bottom: 25px;
}
.hero__title-white { color: var(--branco); }
.hero__title-dark  { color: var(--navy); }

.hero__text {
  max-width: 453px;
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 25px;
}

.hero__list {
  display: flex;
  flex-direction: column;
  margin-bottom: 55px;
}
.hero__item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(16px, .94vw, 18px);
  line-height: 1.98;
}
.hero__check { width: 24px; height: 24px; flex-shrink: 0; fill: var(--navy); }

/* ---- botão ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 90px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  white-space: nowrap;
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.btn--primary {
  width: 379px;
  max-width: 100%;
  height: 75px;
  padding: 20px 25px;
  color: var(--branco);
  background: var(--navy-btn);
  box-shadow: 0 0 34.95px rgba(10, 47, 85, 0.85);
}
.btn--primary:hover {
  background: #0d3a68;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(10, 47, 85, 0.95);
}
.btn__icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--azul-icone);
  flex-shrink: 0;
  transition: transform .3s ease;
}
.btn__icon svg { width: 100%; height: 100%; fill: var(--branco); }
.btn--primary:hover .btn__icon { transform: translate(2px, -2px); }

/* ---- ilustração ---- */
/* Medidas originais do Figma (globo 758x717 @1920) multiplicadas por --u.
   As nuvens/brilhos são PNGs em fundo preto -> blend "screen" (como no Figma). */
.hero__art-wrap {
  /* sem z-index/transform aqui: qualquer stacking context isolaria o
     mix-blend-mode das nuvens e elas voltariam a mostrar o fundo preto */
  position: absolute;
  top: 2px;                                    /* globo @ y=91 (91-89) */
  right: calc(-73 * var(--u));                 /* globo ultrapassa 73px o container @1920 */
  width:  calc(758 * var(--u));
  height: calc(780 * var(--u));
  pointer-events: none;
}
.hero__art {
  position: relative;
  width: 100%;
  height: 100%;
  --px: 0px;
  --py: 0px;
}
.art {
  position: absolute;
  max-width: none;
  height: auto;
  translate: var(--px) var(--py);   /* parallax (js) — separado do transform das animações */
}
.art--blend { mix-blend-mode: screen; }

/* posições relativas ao canto superior-esquerdo do globo (site x=915, y=91) */
.art--mundo         { left: 0;                    top: 0;                     width: calc(758 * var(--u)); animation: flutuar 7s ease-in-out infinite; }
.art--sombra        { left: calc(  -3 * var(--u)); top: calc( 671 * var(--u)); width: calc(763 * var(--u)); }
.art--nuvem-1       { left: calc(-275 * var(--u)); top: calc(  51 * var(--u)); width: calc(480 * var(--u)); animation: deriva 14s ease-in-out infinite; }
.art--nuvem-direita { left: calc( 847 * var(--u)); top: calc( 103 * var(--u)); width: calc(166 * var(--u)); }
.art--bolhas        { left: calc(-211 * var(--u)); top: calc( 604 * var(--u)); width: calc(163 * var(--u)); }
.art--brilho-1      { left: calc( 227 * var(--u)); top: calc(  42 * var(--u)); width: calc(137 * var(--u)); }
.art--nuvem-grande  { left: calc( 219 * var(--u)); top: calc( 359 * var(--u)); width: calc(899 * var(--u)); animation: deriva 18s ease-in-out infinite reverse; }
.art--nuvem-topo    { left: calc( 514 * var(--u)); top: calc(-102 * var(--u)); width: calc(491 * var(--u)); }
.art--nuvem-2       { left: calc(-164 * var(--u)); top: calc( 545 * var(--u)); width: calc(363 * var(--u)); animation: deriva 12s ease-in-out infinite; }
.art--brilho-2      { left: calc( -78 * var(--u)); top: calc( 260 * var(--u)); width: calc(159 * var(--u)); animation: brilhar 4s ease-in-out infinite; }

@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(-14 * var(--u))); } }
@keyframes deriva  { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(calc(18 * var(--u))); } }
@keyframes brilhar { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .65; transform: scale(.9); } }

@media (prefers-reduced-motion: reduce) {
  .art { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   SESSÃO 2 — ÁREAS DE ATUAÇÃO (DOBRA 4)
   Card escuro 1280x1357 @ y=918, fundo azul continua 141px abaixo dele
   ========================================================================== */
.segmentos {
  background: var(--azul);
  padding-bottom: clamp(60px, 7.3vw, 141px);
}
.segmentos__card {
  position: relative;
  border-radius: 25px;
  border: 1px solid rgba(77, 161, 245, 0.5);
  background: linear-gradient(-47.2deg, #0A2F55 16.7%, #01101F 72.1%);
  padding: clamp(48px, 4.3vw, 83px) clamp(20px, 4.1vw, 79px) clamp(48px, 5vw, 97px);
}

/* cabeçalho */
.segmentos__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: clamp(32px, 2.3vw, 44px);   /* grade @ y=321 */
}
.segmentos__label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--azul-claro);
}
.segmentos__title {
  font-size: clamp(24px, 1.82vw, 35px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--branco);
}
.segmentos__text {
  max-width: 898px;
  margin-top: 25px;                /* gap 35 - 10 */
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.35;
  color: var(--branco);
}

/* grade de cards */
.segmentos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.seg-card {
  position: relative;
  overflow: hidden;
  min-height: 381px;
  border-radius: 25px;
  border: 1px solid rgba(77, 161, 245, 0.5);
  background: linear-gradient(-58deg, rgba(10, 47, 85, 0.65) 16.8%, rgba(1, 16, 31, 0.65) 98.9%);
  padding: 26px 28px 20px 38px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.seg-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 161, 245, 0.9);
  box-shadow: 0 20px 50px rgba(1, 16, 31, 0.45);
}

/* anéis decorativos atrás do ícone */
.seg-card__ring {
  position: absolute;
  border-radius: 50%;
  background: rgba(3, 115, 227, 0.15);
  border: 1px solid #0373E3;
  opacity: .5;
  pointer-events: none;
}
.seg-card__ring--lg { width: 168.5px; height: 168.5px; left: -20.5px; top: -20px; border-width: .85px; }
.seg-card__ring--sm { width: 112.75px; height: 112.75px; left: 7.6px;  top: 8.5px;  border-width: .57px; }

.seg-card__icon {
  position: relative;
  width: 78px;
  height: 78px;
  margin-left: -12px;              /* ícone @ x=26 */
  transition: transform .35s ease;
}
.seg-card:hover .seg-card__icon { transform: scale(1.06); }

.seg-card__title {
  margin-top: 84px;                /* título @ y=188 */
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--azul-claro);
}
.seg-card__text {
  margin-top: 24px;                /* texto @ y=236 */
  max-width: 203px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--branco);
}

/* parágrafo final */
.segmentos__footer {
  max-width: 1009px;
  margin: clamp(40px, 4.2vw, 81px) auto 0;   /* @ y=1179 */
  text-align: center;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.35;
  color: var(--branco);
}
.segmentos__footer strong { font-weight: 700; }

/* ==========================================================================
   SESSÃO 3 — QUEM SOMOS (DOBRA 3)
   Fundo escuro começa em y=2416; heading @ +93; pill 1481x170 termina em 3282
   ========================================================================== */
/* wrapper escuro: gradiente + linhas (linhas.png @ x=104, y=0) */
.fundo-escuro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #000A15 0%, #031629 100%);
}
.fundo-escuro::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 856px);          /* 104px @1920 */
  width: 1820px;                    /* tamanho natural do linhas.png */
  height: 3443px;
  background: url('../img/linhas.png') left top / 1820px 3443px no-repeat;
  opacity: .45;
  pointer-events: none;
}
.fundo-escuro > * { position: relative; }

.sobre {
  padding-top: clamp(56px, 4.85vw, 93px);
  padding-bottom: clamp(60px, 7.75vw, 149px);   /* até a próxima dobra (3431) */
}

/* cabeçalho em duas colunas, alinhadas pela base */
.sobre__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(32px, 9.3vw, 178px);
  padding-left: 4px;
}
.sobre__intro {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 0 1 566px;
}
.sobre__label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  color: #01101F;              /* no Figma o label tem a cor do fundo (fica oculto) */
}
.sobre__title {
  font-size: clamp(26px, 2.08vw, 40px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--branco);
}
.sobre__text {
  flex: 0 1 534px;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.35;
  color: var(--branco);
}
.sobre__text strong { font-weight: 700; }

/* lista de diferenciais: col.1 = 613px (ícone 75 + 29 + texto 509),
   col.2 começa em x=1322 do Figma -> gap 117; barras têm 580px fixos */
.sobre__lista {
  display: grid;
  grid-template-columns: 613px 578px;
  column-gap: 117px;
  row-gap: 27px;
  margin-top: clamp(40px, 5.5vw, 105px);   /* rows @ y=2803 (2509+189+105) */
  padding-left: 5px;
}
.sobre__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 29px;
}
.sobre__item p {
  max-width: 509px;
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--branco);
}
.sobre__item--bar { padding-bottom: 33px; }             /* barra @ +106 (75 + 31) */
.sobre__item--bar::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 580px;
  max-width: 100%;
  height: 2px;
  background: var(--azul);
}
.sobre__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: var(--navy);
  border: 1.5px solid rgba(10, 47, 85, 0.85);
}
.sobre__icon img { width: 33px; height: 33px; }

/* pill de resultado (1481px — ultrapassa o container 101px de cada lado) */
.sobre__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 170px;
  margin-top: clamp(40px, 4.85vw, 93px);   /* pill @ y=3112 (3019 + 93) */
  padding: 30px 105px;
  border-radius: 90px;
  background: var(--navy);
}
.sobre__pill-text {
  max-width: 640px;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.35;
  color: var(--branco);
}
.sobre__pill-text strong { font-weight: 700; }

.btn--blue {
  width: 339px;
  max-width: 100%;
  height: 75px;
  padding: 20px 25px;
  color: var(--branco);
  background: var(--azul);
  box-shadow: 0 0 34.95px rgba(16, 118, 221, 0.85);
  flex-shrink: 0;
}
.btn--blue:hover {
  background: #1a83f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(16, 118, 221, 0.95);
}
.btn__icon--dark { background: var(--navy); }
.btn--blue:hover .btn__icon { transform: translate(2px, -2px); }

@media (min-width: 1360px) {
  .sobre__pill { margin-inline: -101px; }
}

/* ==========================================================================
   SESSÃO 4 — PRODUTOS & SERVIÇOS (DOBRA 5) — mesmo fundo escuro
   heading @ y=3431 · card 1279x509 @ 3753 · CTA @ 4335 · próxima dobra @ 4687
   ========================================================================== */
.produtos {
  padding-bottom: clamp(64px, 8.4vw, 161px);
}
.produtos__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  margin-bottom: clamp(40px, 4.2vw, 81px);   /* card @ 3753 (3672 + 81) */
}
.produtos__label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--azul);
}
.produtos__title {
  max-width: 680px;
  font-size: clamp(24px, 1.93vw, 37px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--branco);
}
.produtos__text {
  max-width: 1056px;
  margin-top: 30px;                 /* texto @ +160 (125 + 35) */
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.35;
  color: var(--cinza);
}

/* card com os 3 produtos */
.produtos__card {
  border-radius: 25px;
  border: 1px solid rgba(77, 161, 245, 0.18);
  background: linear-gradient(-58deg, rgba(10, 47, 85, 0.55) 16.8%, rgba(1, 16, 31, 0.55) 98.9%);
  padding: 62px 60px 36px;
}
.produtos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
}
.produto { display: flex; flex-direction: column; }

/* barra: linha escura 3px + trecho azul (--bar) + ponto na extremidade */
.produto__bar {
  position: relative;
  display: block;
  height: 7px;
  margin-bottom: 25px;              /* título @ +32 */
}
.produto__bar::before {
  content: '';
  position: absolute;
  left: 0; right: 7px; top: 2px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--azul) 0 var(--bar), var(--navy-btn) var(--bar) 100%);
}
.produto__bar::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--azul);
}
.produto__title {
  min-height: 54px;                 /* 2 linhas — alinha as fotos */
  font-size: clamp(17px, 1.05vw, 20px);
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--branco);
}
.produto__text {
  margin-top: 10px;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--cinza);
}
.produto__foto {
  margin-top: 19px;                 /* fotos @ +221 (62+32+108+19) */
  aspect-ratio: 354 / 252;
  border-radius: 10px;
  background: var(--branco);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.produto__foto img { width: 100%; height: 100%; object-fit: contain; }
.produto:hover .produto__foto {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(3, 115, 227, 0.35);
}

/* CTA final */
.produtos__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  max-width: 870px;
  margin: clamp(40px, 3.8vw, 73px) auto 0;
  text-align: center;
}
.produtos__cta-text {
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--branco);
}

/* ==========================================================================
   SESSÃO 5 — SERVIÇOS TÉCNICOS (DOBRA APP) — mesmo fundo escuro
   y=4687 → 5815 (1128px) · lista @ x=1023 / y=4911 · mão encostada na base
   ========================================================================== */
.servicos {
  position: relative;
  min-height: 1128px;
}
.servicos__inner {
  position: static;                  /* a foto se ancora na <section> */
  display: grid;
  grid-template-columns: 566px 1fr;
  column-gap: 137px;
  align-items: start;
}
.servicos__head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 566px 1fr;
  column-gap: 137px;
  align-items: start;
}
.servicos__title {
  font-size: clamp(26px, 1.98vw, 38px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--branco);
}
.servicos__text {
  max-width: 577px;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.35;
  color: var(--branco);
}
.servicos__text strong { font-weight: 700; }

/* foto da mão: 980x964 @ x=-4 / y=4877 (base 26px abaixo da sessão) */
.servicos__foto {
  position: absolute;
  left: calc(50% - 964px);           /* site x=-4 @1920 */
  bottom: -26px;
  width: 980px;
  z-index: 0;
  margin: 0;
  pointer-events: none;
}
.servicos__foto img { width: 100%; height: auto; }

/* lista numerada (coluna da direita, x=1023 → 702px do container) */
.servicos__lista {
  position: relative;
  z-index: 1;
  grid-column: 2;
  margin-top: 70px;                  /* lista @ 4911 (4841 + 70) */
  max-width: 578px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  counter-reset: servico;
}
.servico {
  display: flex;
  align-items: center;
  gap: 15px;
}
.servico__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: var(--azul);
  font-size: 25px;
  font-weight: 500;
  color: var(--branco);
  box-shadow: 0 0 24px rgba(3, 115, 227, 0.45);
  transition: transform .3s ease, box-shadow .3s ease;
}
.servico:hover .servico__num {
  transform: scale(1.06);
  box-shadow: 0 0 32px rgba(3, 115, 227, 0.75);
}
.servico__body { max-width: 474px; }
.servico__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--branco);
}
.servico__text {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--cinza);
}

/* ==========================================================================
   SESSÃO 6 — CLIENTES (DOBRA 6) — fundo branco · y=5815 → 7849
   ========================================================================== */
.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;
}

.clientes {
  position: relative;
  overflow: hidden;
  background: var(--branco);
  color: var(--preto);
  padding-top: clamp(64px, 5.47vw, 105px);   /* heading @ 5920 */
  padding-bottom: 319px;                      /* logos terminam em 7530; sessão em 7849 */
}
/* barra azul no topo (1279x15, 7px pra cima) */
.clientes__barra {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1279px, calc(100% - 2 * var(--gutter)));
  height: 15px;
  border-radius: 90px;
  background: var(--azul);
}
.clientes .container { position: relative; z-index: 1; }

.clientes__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.clientes__intro { display: flex; flex-direction: column; gap: 5px; flex: 0 0 auto; }
.clientes__label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--azul);
}
.clientes__title {
  max-width: 331px;
  font-size: clamp(26px, 2.08vw, 40px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--preto);
}
.clientes__text {
  flex: 0 1 598px;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.35;
  color: var(--cinza-escuro);
}
.clientes__text strong { font-weight: 700; color: var(--preto); }

/* cards dos clientes (4 x 277.6, gap 55.9) */
.clientes__carrossel {
  margin-top: clamp(40px, 4vw, 77px);   /* cards @ 6132 */
}
.clientes__track {
  display: grid;
  grid-template-columns: repeat(4, 277.6px);
  justify-content: space-between;
  gap: 40px;
}
.cliente__head {
  display: flex;
  align-items: center;
  gap: 15.5px;
}
.cliente__icon { width: 65px; height: 65px; flex-shrink: 0; }
.cliente__title {
  max-width: 180px;                    /* quebra em 2 linhas como no Figma */
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--preto);
}
.cliente__text {
  margin-top: 25px;                    /* texto @ +89.5 */
  font-size: 15px;
  line-height: 1.4;
  color: var(--cinza-escuro);
}

/* linha + setas (linha @ 6411, 1208px) */
.clientes__nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(40px, 3.7vw, 71px);   /* linha @ 6411 */
}
.clientes__linha {
  flex: 1 1 auto;
  max-width: 1208px;
  height: 1px;
  background: #D9D9D9;
}
.clientes__setas { display: flex; gap: 6px; flex-shrink: 0; }
.seta {
  width: 25px; height: 25px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.seta svg { width: 13px; height: 13px; }
.seta--prev svg { transform: rotate(180deg); }
.seta--next { background: var(--azul); border-color: var(--azul); color: var(--branco); }
.seta:hover { transform: scale(1.1); }
.seta:disabled { opacity: .35; cursor: default; transform: none; }

/* parceiros (título @ 6477, logos @ 6752) */
.parceiros {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: clamp(40px, 2.8vw, 54px);   /* título @ 6477 */
}
.parceiros__title {
  max-width: 680px;
  font-size: clamp(24px, 1.93vw, 37px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--preto);
}
.parceiros__text {
  max-width: 917px;
  margin-top: 45px;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.35;
  color: var(--navy);
}
.parceiros__text strong { font-weight: 700; }
.parceiros__logos {
  width: min(802px, 100%);
  height: auto;
  margin-top: 49px;                    /* logos @ 6752 */
}

/* água na base (1920x650 @ y=7199, encostada na base) */
.clientes__agua {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: max(100%, 1920px);
  height: auto;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   SESSÃO 7 — CONTATO + RODAPÉ (DOBRA 7) · y=7849 → 9167
   ========================================================================== */
.contato {
  padding-top: clamp(64px, 8.2vw, 158px);    /* form @ 8007 */
  padding-bottom: 0;
}
.contato__grid {
  display: grid;
  grid-template-columns: 640px 635px;
  justify-content: space-between;
  align-items: start;
}
.contato__info { padding-top: 105px; }        /* texto @ 8111.7 */
.contato__label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--azul);
}
.contato__title {
  max-width: 536px;
  margin-top: 5px;
  font-size: clamp(26px, 2.08vw, 40px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--branco);
}
.contato__text {
  max-width: 515px;
  margin-top: 25px;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.35;
  color: var(--cinza);
}
.contato__nota {
  max-width: 520px;
  margin-top: 45px;                           /* @ 8422.6 */
  font-size: 16px;
  line-height: 1.35;
  color: var(--cinza);
}
.contato__nota strong { font-weight: 700; color: var(--branco); }

/* formulário 635x644 */
.form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 635px;
  max-width: 100%;
  min-height: 644px;
  padding: 76px 77px 30px;
  border-radius: 25px;
  border: 1px solid rgba(77, 161, 245, 0.35);
  background: linear-gradient(-58deg, rgba(10, 47, 85, 0.65) 16.8%, rgba(1, 16, 31, 0.65) 98.9%);
  box-shadow: 0 0 60px rgba(3, 115, 227, 0.15);
}
.form__title {
  max-width: 401px;
  text-align: center;
  font-size: clamp(24px, 1.72vw, 33px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--branco);
}
.form__title span { color: var(--azul); }
.form__campos {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 45px;                            /* campos @ +135 */
}
.form__campo { display: block; width: 100%; }
.form__campo input {
  width: 100%;
  height: 66px;
  padding: 0 29px;
  border: 0;
  border-radius: 8px;
  background: var(--branco);
  font: inherit;
  font-size: 17px;
  color: var(--preto);
  outline: 2px solid transparent;
  transition: outline-color .2s ease, box-shadow .2s ease;
}
.form__campo input::placeholder { color: #5F6B76; }
.form__campo input:focus { outline-color: var(--azul); box-shadow: 0 0 0 4px rgba(3, 115, 227, .25); }
.form__campo input.is-invalid { outline-color: #E5484D; }
.form__btn { width: 396px; margin-top: 65px; }  /* botão @ +477 */
.form__msg {
  min-height: 22px;
  margin-top: 10px;
  font-size: 15px;
  text-align: center;
  color: var(--azul-claro);
}

.contato__divisor {
  border: 0;
  height: 2px;
  margin-top: clamp(48px, 3.75vw, 72px);       /* linha @ 8736 */
  background: rgba(255, 255, 255, 0.10);
}

/* rodapé */
.rodape { padding-top: clamp(40px, 3.65vw, 70px); }   /* @ 8807.7 */
.rodape__row {
  display: flex;
  align-items: center;
  gap: 40px;
}
.rodape__logo { flex-shrink: 0; margin-right: auto; }
.rodape__logo img { width: auto; height: 50px; }
.rodape__contatos {
  display: flex;
  align-items: center;
  gap: clamp(32px, 3.8vw, 74px);
}
.rodape__contatos li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--cinza);
}
.rodape__contatos a:hover { color: var(--branco); }
.rodape__icon {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--branco);
}
.rodape__icon svg { width: 17px; height: 17px; }

.rodape__dev {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 55px;
  margin-top: clamp(48px, 6.2vw, 119px);       /* @ 8976.7 */
  border-radius: 90px;
  background: rgba(6, 36, 66, 0.6);
  font-size: 16px;
  color: var(--cinza);
  transition: background .25s ease;
}
.rodape__dev svg { width: 16px; height: 16px; color: var(--azul); }
.rodape__dev strong { color: var(--azul); font-weight: 700; }
.rodape__dev:hover { background: rgba(6, 36, 66, 0.9); }

.rodape__copy {
  margin-top: 37px;
  text-align: center;
  font-size: 16px;
  line-height: 1.35;
  color: var(--cinza);
}
.rodape__copy strong { color: var(--branco); }
.rodape__barra {
  display: block;
  height: 15px;
  margin-top: 60px;                            /* @ 9151.7 */
  border-radius: 90px 90px 0 0;
  background: var(--azul);
}

/* ==========================================================================
   ANIMAÇÕES DE ENTRADA (scroll reveal)
   :where() zera a especificidade, então hovers/estados normais continuam valendo
   ========================================================================== */
:where([data-reveal]):not(.is-visible) { opacity: 0; }
:where([data-reveal].is-visible) {
  animation: reveal-up .9s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
:where([data-reveal="left"].is-visible)  { animation-name: reveal-left; }
:where([data-reveal="right"].is-visible) { animation-name: reveal-right; }
:where([data-reveal="zoom"].is-visible)  { animation-name: reveal-zoom; }

/* filhos de um container "stagger" entram em cascata */
:where([data-reveal-stagger] > *):not(.is-visible) { opacity: 0; }
:where([data-reveal-stagger] > *.is-visible) {
  animation: reveal-up .8s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
/* o container em si não anima (só os filhos) */
:where([data-reveal-stagger][data-reveal]) { opacity: 1 !important; animation: none !important; }

@keyframes reveal-up    { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes reveal-left  { from { opacity: 0; transform: translateX(-44px); } to { opacity: 1; transform: none; } }
@keyframes reveal-right { from { opacity: 0; transform: translateX(44px); } to { opacity: 1; transform: none; } }
@keyframes reveal-zoom  { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* barra dos produtos cresce até o valor quando o card entra na tela */
@property --bar {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 0%;
}
.produto { --bar: 0%; }
.produtos__card.is-visible .produto {
  --bar: var(--bar-alvo);
  transition: --bar 1.2s cubic-bezier(.22, 1, .36, 1) .35s;
}

/* números dos serviços "pulsam" ao aparecer */
.servico.is-visible .servico__num { animation: pulse-num .9s ease-out calc(var(--i, 0) * 90ms + .3s) both; }
@keyframes pulse-num {
  0%   { transform: scale(.6); box-shadow: 0 0 0 rgba(3, 115, 227, 0); }
  60%  { transform: scale(1.12); box-shadow: 0 0 40px rgba(3, 115, 227, .8); }
  100% { transform: scale(1);   box-shadow: 0 0 24px rgba(3, 115, 227, .45); }
}

/* parallax suave em elementos decorativos (js define --py) */
.servicos__foto img { transform: translateY(var(--py, 0px)); will-change: transform; }
.clientes__agua      { transform: translate(-50%, var(--py, 0px)); }
.parceiros__logos.is-visible { transform: translateY(var(--py, 0px)); }

/* botões: leve "brilho" que atravessa ao passar o mouse */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(120%); }

/* honeypot */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  :where([data-reveal]):not(.is-visible),
  :where([data-reveal-stagger] > *):not(.is-visible) { opacity: 1; }
  [data-reveal].is-visible, [data-reveal-stagger] > *.is-visible,
  .servico.is-visible .servico__num { animation: none !important; }
  .servicos__foto img, .clientes__agua, .parceiros__logos { transform: none; }
  .clientes__agua { transform: translateX(-50%); }
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

/* Notebooks / tablets landscape */
@media (max-width: 1100px) {
  .hero__content { width: 56%; }
  .hero__art-wrap { top: 40px; }

  .segmentos__grid { grid-template-columns: repeat(2, 1fr); }
  .seg-card { min-height: 0; }
  .seg-card__title { margin-top: 60px; }
  .seg-card__text { max-width: 100%; }

  .sobre__head { flex-direction: column; align-items: flex-start; gap: 28px; }
  .sobre__intro, .sobre__text { flex: none; max-width: 640px; }
  .sobre__lista { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .sobre__item--bar::after { width: 100%; }
  .sobre__pill { padding: 30px 48px; gap: 32px; }

  .produtos__card { padding: 40px 36px 28px; }
  .produtos__grid { gap: 28px; }

  .clientes__track { grid-template-columns: repeat(4, 277.6px); justify-content: flex-start; gap: 40px; }
  .clientes__carrossel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .clientes__carrossel::-webkit-scrollbar { display: none; }
  .cliente { scroll-snap-align: start; }
  .contato__grid { grid-template-columns: 1fr 520px; column-gap: 40px; }
  .contato__info { padding-top: 40px; }
  .form { padding: 56px 40px 48px; min-height: 0; }

  .servicos { min-height: 960px; }
  .servicos__inner, .servicos__head { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .servicos__foto { left: -240px; width: 760px; bottom: -20px; }
  .servicos__lista { margin-top: 48px; }
}

/* Tablet retrato e mobile — empilha texto e ilustração */
@media (max-width: 860px) {
  :root { --u: calc(min(100vw - 2 * var(--gutter), 520px) / 758); }

  .hero { min-height: 0; }
  .hero__inner { flex-direction: column; align-items: center; }

  .hero__content {
    width: 100%;
    max-width: 600px;
    padding-top: 32px;
    padding-bottom: 0;
  }
  .hero__logo { margin-left: -4px; }

  .hero__art-wrap {
    position: relative;
    right: auto;
    top: auto;
    margin: 24px auto 0;
    height: calc(720 * var(--u));
  }
  .art--nuvem-topo, .art--nuvem-direita { display: none; }

  .fundo-escuro::before { left: -200px; width: 1400px; }
  .sobre__lista { grid-template-columns: 1fr; row-gap: 28px; }
  .sobre__item--bar { padding-bottom: 28px; }
  .sobre__pill {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
    border-radius: 40px;
  }

  .clientes { padding-bottom: 200px; }
  .clientes__head { flex-direction: column; gap: 24px; }
  .clientes__text { flex: none; max-width: 640px; }
  .clientes__agua { width: 1400px; }
  .contato__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .contato__info { padding-top: 0; }
  .form { width: 100%; }
  .form__btn { width: 100%; }
  .rodape__row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .rodape__logo { margin-right: 0; }
  .rodape__contatos { flex-direction: column; align-items: flex-start; gap: 16px; }

  .servicos { min-height: 0; }
  .servicos__inner, .servicos__head { grid-template-columns: 1fr; row-gap: 24px; }
  .servicos__foto {
    position: relative;
    left: auto; bottom: auto;
    width: min(100%, 480px);
    margin: 8px auto 0;
  }
  .servicos__lista { grid-column: 1; margin-top: 24px; max-width: 100%; }

  .produtos__grid { grid-template-columns: 1fr; gap: 36px; }
  .produto__title, .produto__text { min-height: 0; }
  .produto__foto { max-width: 420px; width: 100%; }

  /* menu mobile */
  .header__inner { align-items: center; padding-top: 0; }
  .header__logo { width: 120px; opacity: 1; }
  .header__logo img { width: 120px; }
  .header.is-scrolled .header__logo { width: 120px; margin-right: 0; }
  .header.is-scrolled { height: 64px; background: rgba(1, 16, 31, 0.96); }
  .header:has(.nav__list.is-open) { background: #01101F; }
  .nav__toggle { display: flex; }
  .nav__line { display: none; }
  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: #01101F;
    border-top: 1px solid rgba(77, 161, 245, .25);
    box-shadow: 0 20px 40px rgba(0, 20, 60, .35);
    transform-origin: top;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav__list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav__list li { width: 100%; }
  .nav__link {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .nav__link::after { width: 6px; height: 6px; border-radius: 50%; background: var(--azul-claro); }
  .nav__link:hover, .nav__link.is-active { color: var(--azul-claro); }
}

/* Mobile */
@media (max-width: 560px) {
  .segmentos__card { border-radius: 18px; }
  .segmentos__grid { grid-template-columns: 1fr; }
  .seg-card { padding: 22px 24px 32px 30px; border-radius: 20px; }
  .seg-card__title { margin-top: 44px; }
  .seg-card__text { margin-top: 14px; font-size: 16px; }

  .sobre__item { gap: 16px; align-items: flex-start; }
  .sobre__icon { width: 56px; height: 56px; }
  .sobre__icon img { width: 26px; height: 26px; }
  .sobre__pill { padding: 28px 24px; border-radius: 28px; }
  .btn--blue { width: 100%; height: 64px; font-size: 16px; }
  .produtos__card { padding: 28px 20px 24px; border-radius: 18px; }
  .servico { align-items: flex-start; }
  .servico__num { width: 56px; height: 56px; font-size: 20px; }
  .clientes { padding-bottom: 150px; }
  .clientes__track { grid-template-columns: repeat(4, 82vw); gap: 20px; }
  .clientes__agua { width: 1100px; }
  .form { padding: 40px 20px 36px; border-radius: 18px; }
  .form__campo input { height: 56px; padding: 0 18px; font-size: 15px; }
  .form__btn { margin-top: 32px; }
  .rodape__dev { height: auto; padding: 14px 18px; text-align: center; }
  .produtos__head { gap: 16px; }
  .produtos__cta { gap: 24px; }

  .hero__title { font-size: clamp(28px, 8.4vw, 36px); }
  .hero__text  { font-size: 16px; }
  .hero__item  { font-size: 16px; }
  .hero__list  { margin-bottom: 36px; }
  .btn--primary { width: 100%; height: 64px; font-size: 16px; }
  .hero__logo img { width: 190px; }
  .hero__art-wrap { margin-top: 16px; }
}
