/* ==========================================================
   Gonzaga Engenharia — folha de estilos
   Paleta da marca: vermelho #E3151B · azul #1D2B9C
   Aço: grafite #1C2027 · chapa #EEF0F2 · amarelo de segurança #F5B800
   ========================================================== */

:root {
  --red: #E3151B;
  --red-dark: #B80F14;
  --blue: #1D2B9C;
  --blue-light: #3346C7;
  --yellow: #F5B800;
  --steel-900: #1C2027;
  --steel-800: #262B34;
  --steel-700: #363C47;
  --steel-400: #8A919C;
  --steel-200: #D5D9DE;
  --steel-100: #EEF0F2;
  --white: #FFFFFF;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--steel-900);
  background: var(--steel-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(80px, 10vw, 140px); }
.section--dark { background: var(--steel-900); color: var(--white); }

/* Tipografia */
.h2 {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: .95;
  max-width: 14ch;
  margin-bottom: .5em;
}
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600; letter-spacing: .02em;
  color: var(--blue);
  margin-bottom: 20px;
}
.eyebrow--light { color: var(--yellow); }
.bar { display: inline-block; width: 36px; height: 4px; background: currentColor; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; letter-spacing: .03em; text-transform: none;
  padding: 12px 22px;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn--lg { font-size: 21px; padding: 16px 30px; }
.btn--red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--steel-900); color: var(--white);
  display: grid; place-content: center; gap: 18px; justify-items: center;
}
.loader__gear { width: 64px; height: 64px; color: var(--red); animation: spin 2.4s linear infinite; }
.loader__word { font-family: var(--font-display); font-size: 22px; letter-spacing: .08em; }
.gear-svg { width: 100%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 var(--steel-200);
  transform: translateY(-100%);
  transition: box-shadow .3s;
}
.nav.is-ready { transform: none; transition: transform .6s var(--ease), box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(28,32,39,.12); }
.nav__inner {
  width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { display: flex; align-items: baseline; gap: 8px; }
.nav__logo img { width: 134px; height: auto; }
.nav__logo span {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  letter-spacing: .14em; color: var(--blue); text-transform: uppercase;
  transform: translateY(-2px);
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) {
  font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: .02em;
  position: relative; padding: 4px 0;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; }
.nav__burger {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; padding: 8px;
}
.nav__burger span { display: block; height: 3px; background: var(--steel-900); transition: transform .3s, opacity .3s; }

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%;
  opacity: 0; transform: scale(1.08); will-change: transform, opacity;
}
.hero__img.is-active { opacity: 1; }
.hero__dots { display: flex; gap: 8px; margin-left: auto; margin-right: 20px; padding-bottom: 8px; }
.hero__dots button { width: 28px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: background .3s; }
.hero__dots button.is-active { background: var(--yellow); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(28,32,39,.92) 0%, rgba(28,32,39,.72) 45%, rgba(28,32,39,.25) 100%),
    linear-gradient(180deg, rgba(28,32,39,.1) 0%, rgba(28,32,39,.85) 100%);
}
.hero__gear {
  position: absolute; right: -12vw; top: 8vh; width: 58vw; max-width: 760px; z-index: 1;
  color: rgba(255,255,255,.06); pointer-events: none;
}
.hero__content { position: relative; z-index: 2; padding-top: 12vh; }
.hero__tag {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: .04em;
  color: var(--yellow); margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(56px, 9.6vw, 140px);
  font-weight: 800; line-height: .9; letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; transform: translateY(110%); }
.hero__lead { max-width: 56ch; font-size: clamp(17px, 1.4vw, 21px); color: rgba(255,255,255,.86); margin-bottom: 36px; opacity: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; }
.hero__foot {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-top: clamp(48px, 8vh, 96px); padding-bottom: 36px;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px;
  opacity: 0;
}
.hero__stats { display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; }
.hero__stats strong { display: block; font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 48px); font-weight: 700; line-height: 1; }
.hero__stats > div > span { font-size: 14px; color: rgba(255,255,255,.7); }
.hero__scroll { width: 28px; height: 48px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; position: relative; flex-shrink: 0; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 10px; margin-left: -2px; background: var(--white); border-radius: 2px; animation: scrollhint 1.8s ease-in-out infinite; }
@keyframes scrollhint { 0%,100% { transform: translateY(0); opacity: 1 } 60% { transform: translateY(18px); opacity: 0 } }

/* Faixas com fundo em parallax */
.banda { position: relative; overflow: hidden; color: var(--white); min-height: 56vh; display: flex; align-items: center; }
.banda--tall { min-height: 78vh; }
.banda__bg { position: absolute; inset: -20% 0; z-index: 0; }
.banda__bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.banda::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(28,32,39,.85) 0%, rgba(28,32,39,.5) 55%, rgba(28,32,39,.25) 100%); }
.banda__content { position: relative; z-index: 2; padding-block: 80px; display: grid; gap: 28px; justify-items: start; }
.banda__text { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 44px); font-weight: 600; line-height: 1.1; max-width: 24ch; margin: 0; border-left: 5px solid var(--red); padding-left: 24px; }
.banda__text--big { font-size: clamp(44px, 7vw, 104px); font-weight: 800; line-height: .92; text-transform: uppercase; border: 0; padding: 0; max-width: 12ch; }
.contato__bg { position: absolute; inset: -20% 0 auto; height: 140%; z-index: 0; opacity: .18; }
.contato__bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.contato { position: relative; overflow: hidden; }
.contato > .container, .contato__map { position: relative; z-index: 1; }

/* Marquee */
.marquee { background: var(--red); color: var(--white); overflow: hidden; padding: 14px 0; }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; white-space: nowrap; }
.marquee__track span { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.marquee__track i { width: 10px; height: 10px; background: var(--white); transform: rotate(45deg); display: inline-block; opacity: .7; }

/* Empresa */
.empresa { background: var(--steel-100); }
.empresa__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.empresa__text p { max-width: 62ch; }
.pillars { margin-top: 36px; display: grid; gap: 0; border-top: 2px solid var(--steel-900); }
.pillars li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--steel-200); }
.pillars strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--red); line-height: 1; }
.pillars span { color: var(--steel-700); }
.empresa__media { display: grid; gap: 20px; padding-top: 24px; }
.empresa__media figure { margin: 0; }
.empresa__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.empresa__media--small { width: 72%; margin-left: auto !important; }
.empresa__media figcaption { font-size: 14px; color: var(--steel-700); margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--yellow); }
.reveal-clip { clip-path: inset(0 100% 0 0); }

/* Soluções / catálogo */
.solucoes__head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: end; margin-bottom: 64px; }
.solucoes__head .h2 { margin-bottom: 0; }
.solucoes__lead { color: rgba(255,255,255,.72); max-width: 50ch; margin: 0; }
.catalog { display: grid; gap: 64px; }
.catalog__group { display: grid; grid-template-columns: 320px 1fr; gap: 32px; border-top: 2px solid rgba(255,255,255,.2); padding-top: 28px; }
.catalog__title h3 { font-size: 34px; font-weight: 700; margin-bottom: 10px; line-height: 1; }
.catalog__title p { color: rgba(255,255,255,.6); font-size: 16px; }
.catalog__item {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name cta" "desc cta";
  column-gap: 20px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  position: relative; overflow: hidden;
}
.catalog__item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red);
  transform: scaleY(0); transition: transform .3s var(--ease);
}
.catalog__item:hover::before, .catalog__item:focus-visible::before { transform: scaleY(1); }
.catalog__item:hover { padding-left: 16px; }
.catalog__item { transition: padding-left .3s var(--ease); }
.catalog__name { grid-area: name; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.1; }
.catalog__desc { grid-area: desc; font-size: 15px; color: rgba(255,255,255,.6); }
.catalog__cta {
  grid-area: cta; font-family: var(--font-display); font-weight: 700; font-size: 17px;
  padding: 8px 16px; border: 1.5px solid rgba(255,255,255,.35); transition: background .25s, border-color .25s;
}
.catalog__item:hover .catalog__cta { background: var(--red); border-color: var(--red); }

/* Processo — horizontal pinned */
.processo { background: var(--white); position: relative; }
.processo__pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.processo__head { padding-top: 24px; margin-bottom: clamp(24px, 4vh, 48px); }
.processo__head .h2 { max-width: 22ch; font-size: clamp(36px, 5vw, 68px); }
.processo__track { display: flex; gap: 24px; padding-inline: max(var(--gutter), (100% - var(--container)) / 2); width: max-content; will-change: transform; }
.step {
  width: clamp(300px, 34vw, 460px); flex-shrink: 0;
  background: var(--steel-100); border-top: 4px solid var(--blue);
  padding: 28px 28px 36px; min-height: 360px;
  display: flex; flex-direction: column;
}
.step__n { font-family: var(--font-display); font-size: 96px; font-weight: 800; line-height: .8; color: var(--steel-200); margin-bottom: auto; }
.step h3 { font-size: 32px; font-weight: 700; margin: 28px 0 12px; }
.step p { margin: 0; color: var(--steel-700); }
.step--cta { background: var(--red); color: var(--white); border-top-color: var(--red-dark); justify-content: center; gap: 20px; }
.step--cta h3 { font-size: 40px; margin: 0; }
.step--cta .btn { background: var(--white); color: var(--red); border-color: var(--white); align-self: flex-start; }
.step--cta .btn:hover { background: var(--steel-100); }

/* Projetos */
.projetos__head { margin-bottom: 48px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item { margin: 0; }
.gallery__item--wide { grid-column: span 2; }
.gallery__media { overflow: hidden; aspect-ratio: 4/3; background: var(--steel-800); }
.gallery__item--wide .gallery__media { aspect-ratio: 8/4.5; }
.gallery__media img { width: 100%; height: 125%; object-fit: cover; will-change: transform; }
.gallery figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 0; }
.gallery figcaption strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.gallery figcaption span { font-size: 14px; color: rgba(255,255,255,.6); }
.projetos__more { margin-top: 40px; color: rgba(255,255,255,.7); }
.projetos__more a { color: var(--yellow); border-bottom: 1px solid currentColor; }

/* Segmentos */
.segmentos { background: var(--white); }
.segmentos__list { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--steel-200); margin-top: 24px; }
.seg {
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--steel-200); margin: -0.5px;
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
  transition: color .3s;
}
.seg::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: translateY(101%); transition: transform .45s var(--ease); z-index: 0; }
.seg:hover::after, .seg:focus-visible::after { transform: translateY(0); }
.seg:hover, .seg:focus-visible { color: var(--white); }
.seg > * { position: relative; z-index: 1; }
.seg__title { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1; }
.seg__desc { max-width: 42ch; color: var(--steel-700); transition: color .3s; }
.seg:hover .seg__desc { color: rgba(255,255,255,.8); }

/* Contato */
.contato { padding-bottom: 0; }
.contato__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-bottom: 80px; }
.contato__info li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.contato__info span { font-size: 13px; color: rgba(255,255,255,.55); letter-spacing: .02em; }
.contato__info a { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.15; }
.contato__info a:hover { color: var(--yellow); }
.form { display: grid; gap: 16px; background: var(--steel-800); padding: clamp(24px, 3vw, 40px); border-top: 4px solid var(--red); }
.form label { display: grid; gap: 6px; }
.form label span { font-size: 14px; color: rgba(255,255,255,.7); }
.form input, .form textarea {
  font: inherit; color: var(--white); background: var(--steel-900);
  border: 1px solid rgba(255,255,255,.14); padding: 12px 14px; border-radius: 0; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--yellow); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form__hint { font-size: 13px; color: rgba(255,255,255,.55); margin: 0; }
.contato__map { height: 380px; background: var(--steel-800); filter: grayscale(.4) contrast(1.05); }
.contato__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.footer { background: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-block: 56px; }
.footer__brand img { width: 150px; height: auto; background: var(--white); margin-bottom: 16px; }
.footer__brand p { max-width: 40ch; color: var(--steel-700); font-size: 15px; }
.footer__links, .footer__contact { display: grid; gap: 10px; align-content: start; }
.footer__links a, .footer__contact a { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.footer__links a:hover, .footer__contact a:hover { color: var(--red); }
.footer__bar { background: var(--steel-900); color: rgba(255,255,255,.7); font-size: 14px; padding: 16px 0; }
.footer__bar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bar a:hover { color: var(--white); }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: var(--white);
  padding: 12px 18px 12px 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateY(120px); transition: transform .5s var(--ease), background .25s;
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { background: #1eb85a; }

/* Split-text (palavras) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split .w > span { display: inline-block; transform: translateY(105%); }

/* Responsivo */
@media (max-width: 1024px) {
  .solucoes__head { grid-template-columns: 1fr; }
  .catalog__group { grid-template-columns: 1fr; gap: 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0 0; background: var(--white);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 32px var(--gutter); gap: 22px;
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a:not(.btn) { font-size: 30px; }
  .nav__cta { margin: 12px 0 0; }
  .nav__burger { display: flex; }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .nav__logo span { display: none; }

  .hero__content { padding-top: 8vh; }
  .hero__gear { right: -30vw; top: 20vh; width: 90vw; }
  .hero__scroll { display: none; }
  .hero__stats { gap: 24px; }
  .hero__stats span { font-size: 13px; }

  .empresa__grid { grid-template-columns: 1fr; }
  .pillars li { grid-template-columns: 1fr; gap: 6px; }
  .catalog__item { grid-template-columns: 1fr; grid-template-areas: "name" "desc" "cta"; row-gap: 6px; }
  .catalog__cta { justify-self: start; margin-top: 6px; }

  .processo__pin { height: auto; min-height: 0; padding: 72px 0; }
  .processo__track { flex-direction: column; width: auto; padding-inline: var(--gutter); transform: none !important; }
  .step { width: 100%; min-height: 0; }
  .step__n { font-size: 64px; margin-bottom: 8px; }
  .step h3 { margin-top: 8px; }

  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item--wide .gallery__media { aspect-ratio: 4/3; }
  .segmentos__list { grid-template-columns: 1fr; }
  .contato__grid { grid-template-columns: 1fr; margin-bottom: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .btn--lg { font-size: 19px; padding: 14px 22px; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hero__title .line > span, .split .w > span { transform: none; }
  .hero__lead, .hero__actions, .hero__foot { opacity: 1; }
  .reveal-clip { clip-path: none; }
  .nav { transform: none; }
}
