/* ==========================================================================
   NEXT Engenharia — layout das seções
   ========================================================================== */

/* ============================================================== cabeçalho */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--c-white);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
}
.site-header__logo { flex: none; }
.site-header__logo img { width: 179px; height: 24px; }
.site-header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-header__nav a {
  font-size: 14px;
  line-height: 16.8px;
  color: var(--c-ink);
  transition: opacity 200ms var(--e-ui);
}
.site-header__nav a:hover { opacity: .6; }

.nav-toggle { display: none; width: 34px; height: 34px; margin-left: auto; }
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  margin: 5px auto;
  background: var(--c-ink);
  transition: transform 300ms var(--e-ui), opacity 200ms var(--e-ui);
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =================================================================== hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--c-ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 100px 80px;
  min-height: 100vh;
}
.hero h1 { max-width: 640px; color: var(--c-ink); }
.hero__foot {
  display: flex;
  justify-content: flex-end;
}
.hero__foot > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 386px;
  max-width: 100%;
  color: var(--c-white);
}
.hero__actions { display: flex; gap: 15px; padding-top: 12px; }

/* ====================================================== logos de clientes */

.clients { background: var(--c-white); }
.clients__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 100px 80px;
}
.clients__list { gap: 80px; }
.clients__list li { flex: none; display: flex; align-items: center; }
.clients__list img { height: 36px; width: auto; object-fit: contain; }
.clients__list li:nth-child(7n) img { height: 41px; }
.clients__list li:nth-child(8n) img { height: 50px; }
.clients__list li:nth-child(9n) img { height: 54px; }
.clients .marquee { padding-block: 32px; }

/* ============================================================== projetos */

.projects {
  background: var(--c-brand);
  color: var(--c-white);
  padding: 140px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.projects__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}
.projects__head h2 { max-width: 880px; }
.projects__head .t-kicker { display: block; margin-top: 10px; }

/* vitrine com scroll horizontal */
.showcase { height: 1800px; position: relative; }
.showcase__sticky {
  position: sticky;
  top: 120px;
  height: 630px;
  overflow: clip;
}
.showcase__track {
  display: flex;
  gap: 16px;
  height: 100%;
  width: max-content;
}

.project-card {
  position: relative;
  z-index: var(--z, 1);
  width: 1136px;
  max-width: calc(100vw - var(--gutter) * 2);
  height: 630px;
  background: var(--c-ink);
  border-radius: 12px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 80px;
}
.project-card__info {
  flex: none;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.project-card__num { color: var(--c-brand-soft); }
.project-card__meta { display: flex; flex-direction: column; gap: 6px; }
.project-card__city { font-size: 20px; line-height: 30px; letter-spacing: -.2px; }
.project-card__media {
  flex: none;
  width: 1104px;
  height: 736px;
  overflow: hidden;
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================== números */

.stats { background: var(--c-white); }
.stats__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding-block: 140px 60px;
}
.stats__head { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.stats__head h2:last-child { color: var(--c-brand); }
.stats__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}
.stats__list li {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.stats__list li + li { border-left: 1px solid var(--c-line); }
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 48px;
  line-height: 48px;
  font-weight: 500;
  letter-spacing: -2.4px;
}

/* ============================================================ benefícios */

.benefits__inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-block: 80px 120px;
}
.benefits__head h2 { color: var(--c-brand); max-width: 460px; }
.benefit-row { padding-top: 10px; }
.benefit-row__line,
.benefit-item__line {
  height: 1px;
  background: var(--c-line);
  transform-origin: left;
}
.benefit-row__grid {
  display: grid;
  grid-template-columns: 454px 1fr;
  gap: 10px;
  padding-top: 10px;
}
.benefit-row__title { padding: 16px 0; }
.benefit-row__items { display: flex; flex-direction: column; }
.benefit-item { padding-bottom: 26px; }
.benefit-item:first-child > p { padding-top: 16px; }
.benefit-item + .benefit-item > p { padding-top: 26px; }
.benefit-item p { max-width: 604px; }

/* ============================================================== serviços */

.services {
  background: var(--c-cream);
  padding-bottom: 80px;
}
.services__inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-block: 140px 0;
}
.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 100px;
}
.services__head h2 { color: var(--c-brand); max-width: 520px; }
.services__head p { width: 330px; max-width: 45%; }
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.service-card {
  background: var(--c-white);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}
.service-card__media {
  width: 366px;
  max-width: 100%;
  align-self: center;
  background: var(--c-cream);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  justify-content: center;
}
.service-card__media img {
  width: 350px;
  max-width: 100%;
  height: 222px;
  object-fit: cover;
  border-radius: 4px;
}
.service-card p { margin-top: auto; }
.services__cta { display: flex; width: 100%; margin-top: 12px; }

/* =========================================================== diferenciais */

.edge {
  background: var(--c-white);
  border-radius: 12px;
  padding: 80px 32px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  overflow: hidden;
}
.edge__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 100px;
}
.edge__head h2 { color: var(--c-brand); max-width: 340px; }
.edge__head p { width: 414px; max-width: 48%; }
.edge__list { gap: 10px; }
.edge-card {
  flex: none;
  background: var(--c-cream);
  border-radius: 12px;
  padding: 30px;
  max-width: 560px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.edge-card__icon {
  flex: none;
  width: 126px; height: 126px;
  background: var(--c-line);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.edge-card__icon img { width: 64px; height: 64px; }
.edge-card__text { display: flex; flex-direction: column; gap: 10px; }
.edge-card__text h3 { font-size: 18px; line-height: 23.4px; font-weight: 500; letter-spacing: -.36px; }

/* ================================================================== sobre */

.about { background: var(--c-white); position: relative; overflow: hidden; }
.about::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(var(--c-cream) 0%, var(--c-white) 100%);
}
.about__inner {
  position: relative;
  padding-block: 100px 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about__bg { position: absolute; inset: 0; pointer-events: none; }
.about__bg figure {
  position: absolute;
  top: 42px;
  left: 50%;
  margin-left: -390px;
  width: 780px;
  height: 702px;
  border-radius: 12px;
  overflow: hidden;
  will-change: transform;
}
.about__bg figure:first-child { transform: translateX(calc(-1 * var(--about-open, 390px))); }
.about__bg figure:last-child  { transform: translateX(var(--about-open, 390px)); }
.about__bg img { width: 100%; height: 100%; object-fit: cover; }
.about__content {
  position: relative;
  width: 682px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
.about__content h2 { color: var(--c-brand); }
.about__text { display: flex; flex-direction: column; gap: 24px; }

/* ==================================================================== FAQ */

.faq {
  padding: 160px 48px;
  display: flex;
  justify-content: center;
}
.faq__inner {
  width: 100%;
  max-width: 1320px;
  display: flex;
  gap: 120px;
  align-items: flex-start;
}
.faq__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.faq__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.faq__head h2 { color: var(--c-brand); }
.faq__list { display: flex; flex-direction: column; gap: 24px; }

.faq-item {
  background: var(--c-brand);
  border-radius: 16px;
  padding: 32px;
  color: var(--c-white);
}
.faq-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  text-align: left;
}
.faq-item__icon {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  inset: 50% 2px auto 2px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: currentColor;
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item__body > div > p { padding: 16px 32px 0 0; }

.faq__aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  flex: none;
  width: 397px;
  background: var(--c-brand-soft);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: var(--c-white);
}
.faq__aside h2 { color: var(--c-white); }
.faq__aside .btn--wa { align-self: stretch; }

/* ================================================================= footer */

.site-footer { background: var(--c-ink); color: var(--c-white); }
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 100px;
  padding-block: 80px 30px;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 100px;
}
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col p:first-child,
.site-footer__group > p:first-child { color: var(--c-footer-lbl); }
.site-footer__contact { display: flex; flex-direction: column; gap: 40px; }
.site-footer__groups { display: flex; gap: 10px; }
.site-footer__group { width: 215px; display: flex; flex-direction: column; gap: 16px; }
.site-footer__group ul { display: flex; flex-direction: column; gap: 2px; }
.site-footer__group a {
  display: inline-flex;
  padding: 6px 0;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -.28px;
  transition: opacity 200ms var(--e-ui);
}
.site-footer__group a:hover,
.site-footer__contact a:hover { opacity: .65; }
.site-footer__contact a { transition: opacity 200ms var(--e-ui); }

.site-footer__brand { display: flex; flex-direction: column; gap: 8px; }
.site-footer__brand img { width: 100%; height: auto; }
.site-footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 64px;
  color: var(--c-footer-lbl);
}
.site-footer__legal ul { display: flex; gap: 24px; align-items: center; }
.site-footer__legal a { transition: opacity 200ms var(--e-ui); }
.site-footer__legal a:hover { opacity: .65; }

/* ============================================================ responsivo */

@media (max-width: 1240px) {
  .about__bg figure { width: 600px; height: 540px; }
  .about__bg figure:first-child { left: -300px; }
  .about__bg figure:last-child { right: -300px; }
  .faq__inner { gap: 48px; }
  .faq { padding: 120px var(--gutter); }
}

@media (max-width: 1100px) {
  .projects { padding-top: 100px; }
  .project-card { gap: 40px; height: 560px; }
  .project-card__media { height: 620px; }
  .showcase { height: 1500px; }
  .showcase__sticky { height: 560px; }
  .stats__list { grid-template-columns: repeat(2, 1fr); }
  .stats__list li:nth-child(3) { border-left: 0; }
  .stats__list li:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  .benefit-row__grid { grid-template-columns: 1fr; gap: 0; }
  .services__head, .edge__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .services__head p, .edge__head p { width: 100%; max-width: 560px; }
  .faq__inner { flex-direction: column; }
  .faq__aside { position: static; width: 100%; }
  .site-footer__top { flex-direction: column; gap: 48px; }
}

@media (max-width: 810px) {
  .hero__inner { padding-block: 92px 48px; }
  .hero__foot { justify-content: flex-start; }
  .hero__actions { flex-wrap: wrap; }
  .clients__inner { padding-block: 64px 48px; }
  .clients__list { gap: 48px; }

  .site-header__nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px var(--gutter) 28px;
    background: var(--c-white);
    border-top: 1px solid var(--c-line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms var(--e-ui), transform 220ms var(--e-ui), visibility 220ms;
  }
  .site-header.is-open .site-header__nav { opacity: 1; transform: none; visibility: visible; }
  .site-header__nav a { padding: 10px 0; font-size: 18px; }
  .site-header__nav .btn { margin-top: 8px; }
  .nav-toggle { display: block; }

  .projects { padding-top: 80px; gap: 56px; }
  .projects__head { flex-direction: column; align-items: flex-start; gap: 28px; }
  .showcase { height: auto; }
  .showcase__sticky { position: static; height: auto; overflow: visible; }
  .showcase__track { flex-direction: column; width: 100%; transform: none !important; }
  .project-card {
    width: 100%;
    max-width: none;
    height: auto;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 24px;
    padding: 16px;
  }
  .project-card__info { padding: 0 8px 16px; gap: 24px; }
  .project-card__media { height: 340px; border-radius: 8px; }

  .stats__inner { padding-block: 80px 40px; gap: 32px; }
  .stats__list { grid-template-columns: 1fr; }
  .stats__list li { padding: 32px 0; border-left: 0 !important; }
  .stats__list li + li { border-top: 1px solid var(--c-line); }
  .stat__value { font-size: 40px; line-height: 40px; letter-spacing: -2px; }

  .benefits__inner { gap: 48px; padding-block: 56px 72px; }
  .services__inner { padding-block: 80px 0; gap: 48px; }
  .services__grid { grid-template-columns: 1fr; }
  .edge { padding: 48px 20px; gap: 48px; }
  .edge-card { padding: 20px; gap: 16px; max-width: 420px; }
  .edge-card__icon { width: 84px; height: 84px; }
  .edge-card__icon img { width: 44px; height: 44px; }

  .about__inner { padding-block: 64px 96px; }
  .about__bg { display: none; }
  .about__content { text-align: left; align-items: flex-start; }

  .faq { padding: 80px var(--gutter); }
  .faq__main { gap: 40px; }
  .faq-item { padding: 24px; }
  .faq-item__head { gap: 20px; }
  .faq-item__icon { width: 24px; height: 24px; }
  .faq__aside { padding: 28px; }

  .site-footer__inner { gap: 56px; padding-block: 56px 24px; }
  .site-footer__groups { flex-wrap: wrap; gap: 32px; }
  .site-footer__legal { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 40px; }
  .site-footer__legal ul { flex-wrap: wrap; gap: 16px; }
}
