/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0d0d0d;
  --bg-2:      #161616;
  --bg-3:      #1f1f1f;
  --orange:    #E87722;
  --white:     #ffffff;
  --gray:      #999999;
  --gray-2:    #555555;
  --heading:   'Barlow Condensed', sans-serif;
  --body:      'Barlow', sans-serif;
  --max-w:     1200px;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   CONTAINER
============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn--large {
  padding: 20px 52px;
  font-size: 14px;
}

/* ============================================================
   SECTION TYPOGRAPHY
============================================================ */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--heading);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--white);
}

.section-sub {
  margin-top: 18px;
  font-size: 16px;
  color: var(--gray);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

/* ============================================================
   HEADER
============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 28px 0;
  transition: background 0.5s var(--ease), padding 0.4s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 0;
  border-color: rgba(255,255,255,0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 44px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 44px;
}

.header__nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s;
}

.header__nav a:hover { color: var(--white); }

.btn-nav {
  padding: 10px 24px;
  background: var(--orange);
  color: var(--white) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  transition: opacity 0.3s !important;
}
.btn-nav:hover { opacity: 0.85; }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
  opacity: 0;
}

.hero__img:first-of-type {
  opacity: 1;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 1;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(13,13,13,0.90) 35%,
    rgba(13,13,13,0.50) 70%,
    rgba(13,13,13,0.20) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 4;
  max-width: 740px;
  padding-top: 200px;
}

.hero__logo-mark {
  height: 100px;
  width: auto;
  margin-bottom: 12px;
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
}

.hero__headline {
  font-family: var(--heading);
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 28px;
}

.hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.70);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 48px;
}

.hero__scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}

/* ============================================================
   NÚMEROS
============================================================ */
.numeros {
  background: var(--bg-2);
  padding: 88px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.numeros__grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.numeros__item {
  flex: 1;
  text-align: center;
  padding: 24px 40px;
}

.numeros__value {
  display: block;
  font-family: var(--heading);
  font-size: clamp(64px, 9vw, 104px);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.02em;
}

.numeros__suffix {
  display: block;
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 8px;
}

.numeros__label {
  display: block;
  font-size: 13px;
  color: var(--gray);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.numeros__divider {
  width: 1px;
  height: 100px;
  background: rgba(232, 119, 34, 0.2);
  flex-shrink: 0;
}

/* ============================================================
   SERVIÇOS
============================================================ */
.servicos {
  padding: 130px 0;
  background: var(--bg);
}

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.servico-card {
  background: var(--bg-2);
  padding: 52px 44px 48px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.servico-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.servico-card:hover { background: var(--bg-3); }
.servico-card:hover::after { transform: scaleX(1); }

.servico-card__icon {
  width: 44px;
  height: 44px;
  color: var(--orange);
  margin-bottom: 36px;
  transition: transform 0.4s var(--ease);
}
.servico-card:hover .servico-card__icon { transform: translateY(-4px); }

.servico-card__icon svg {
  width: 100%;
  height: 100%;
}

.servico-card__title {
  font-family: var(--heading);
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 18px;
}

.servico-card__chamada {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  line-height: 1.55;
  margin-bottom: 20px;
}

.servico-card__text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}

.servico-card__line {
  display: none;
}

/* ============================================================
   PORTFÓLIO
============================================================ */
.portfolio {
  padding: 130px 0 0;
  background: var(--bg);
  overflow: hidden;
}

.portfolio .section-header {
  margin-bottom: 44px;
}

.portfolio__filtros {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 56px;
}

.filtro-btn {
  padding: 10px 26px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 2px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.filtro-btn:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.18);
}

.filtro-btn.active {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

.mosaico {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mosaico__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.mosaico__item {
  overflow: hidden;
  border-radius: 4px;
}

.mosaico__item.hidden {
  display: none;
}

.mosaico__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}

.mosaico__item:hover img {
  transform: scale(1.04);
}

/* Mobile: grid compacto de miniaturas */
@media (max-width: 768px) {
  .mosaico {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .mosaico__col { display: contents; }
  .mosaico__item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 3px;
    margin-bottom: 0;
  }
  .mosaico__item img {
    height: 100%;
    object-fit: cover;
  }
}

/* Hints do portfólio — visíveis só no mobile */
.portfolio__hints {
  display: none;
}

@media (max-width: 768px) {
  .portfolio__hints {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
  }
  .portfolio__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    opacity: 0.7;
  }
}

/* ============================================================
   LIGHTBOX
============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
  user-select: none;
}

.lightbox.active .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--white);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background 0.2s;
}

.lightbox__close:hover {
  background: var(--orange);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background 0.2s;
}

.lightbox__nav:hover {
  background: var(--orange);
}

.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* ============================================================
   PROCESSO
============================================================ */
.processo {
  position: relative;
  padding: 130px 0;
  background: var(--bg);
  overflow: hidden;
}

.processo__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.processo__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.78);
  z-index: 1;
}

.processo .container {
  position: relative;
  z-index: 2;
}

.processo__layout {
  display: flex;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}

.processo__timeline {
  position: relative;
  width: 2px;
  flex-shrink: 0;
  margin-right: 60px;
  margin-top: 12px;
}

.processo__line-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
}

.processo__line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--orange);
  transition: height 0.05s linear;
}

.processo__items {
  flex: 1;
}

.processo__item {
  display: flex;
  gap: 32px;
  padding-bottom: 64px;
  position: relative;
}

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

.processo__item::before {
  content: '';
  position: absolute;
  left: -68px;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--bg-3);
  border: 2px solid var(--gray-2);
  border-radius: 50%;
  transition: background 0.4s, border-color 0.4s;
  z-index: 1;
}

.processo__item.in-view::before {
  background: var(--orange);
  border-color: var(--orange);
}

.processo__num {
  font-family: var(--heading);
  font-size: 52px;
  font-weight: 800;
  color: rgba(232, 119, 34, 0.18);
  line-height: 1;
  min-width: 68px;
  transition: color 0.5s var(--ease);
  user-select: none;
}

.processo__item.in-view .processo__num {
  color: var(--orange);
}

.processo__body { padding-top: 4px; }

.processo__title {
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 12px;
}

.processo__text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
}

/* ============================================================
   CTA FINAL
============================================================ */
.cta-final {
  position: relative;
  padding: 160px 0;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}

.cta-final__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(232,119,34,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
}

.cta-final__headline {
  font-family: var(--heading);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
}

.cta-final__sub {
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.75;
}

/* ============================================================
   MAPA
============================================================ */
.mapa {
  display: block;
  line-height: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.mapa iframe {
  display: block;
  width: 100%;
  height: 420px;
  filter: grayscale(30%) contrast(1.05);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--bg-2);
  padding: 72px 0 52px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__inner { }

.footer__logo {
  height: 144px;
  width: auto;
  margin: 0 auto 14px;
  opacity: 0.9;
}

.footer__slogan {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 36px;
}

.footer__contatos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
}

.footer__contatos a {
  font-size: 13px;
  color: var(--gray);
  transition: color 0.3s;
}

.footer__contatos a:hover { color: var(--white); }

.footer__contatos span {
  color: var(--gray-2);
  font-size: 12px;
}

.footer__endereco {
  font-size: 12px;
  color: var(--gray-2);
  margin-bottom: 36px;
  letter-spacing: 0.03em;
}

.footer__credito {
  font-size: 11px;
  color: var(--gray-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__credito strong {
  color: var(--orange);
  font-weight: 600;
}

/* ============================================================
   GSAP INITIAL STATES
============================================================ */
.gsap-hidden {
  opacity: 0;
  transform: translateY(32px);
}

.gsap-hidden-left {
  opacity: 0;
  transform: translateX(-24px);
}

/* ============================================================
   HAMBURGUER
============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
  position: relative;
}

.hamburger__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), width 0.25s var(--ease);
}

.hamburger.open .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   NAV MOBILE
============================================================ */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.97);
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.nav-mobile__link {
  font-family: var(--heading);
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  transition: color 0.3s var(--ease);
}

.nav-mobile__link:hover,
.nav-mobile__link:active {
  color: var(--white);
}

.nav-mobile .btn-nav {
  margin-top: 8px;
  padding: 16px 44px !important;
  font-size: 13px !important;
  color: var(--white) !important;
}

/* ============================================================
   RESPONSIVE — 768px (tablet / mobile)
============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 24px; }

  /* Header */
  .header { display: none; }

  /* Hero */
  .hero { align-items: stretch; }
  .hero__content {
    padding-top: 24px;
    padding-bottom: 48px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
  }
  .hero .btn { margin-top: auto; }
  .hero__logo-mark { height: 56px; display: block; margin: 0 auto 12px; }
  .hero__headline { margin-bottom: 20px; }
  .hero__sub { font-size: 15px; max-width: 100%; margin-bottom: 0; }
  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(13,13,13,0.88) 0%,
      rgba(13,13,13,0.72) 50%,
      rgba(13,13,13,0.55) 100%
    );
  }

  /* Números */
  .numeros { padding: 48px 0; }
  .numeros__grid { flex-direction: column; gap: 0; }
  .numeros__item { padding: 16px 24px; }
  .numeros__divider { width: 40px; height: 1px; align-self: center; }
  .numeros__value { font-size: 60px; }
  .numeros__suffix { font-size: 15px; }
  .numeros__label { font-size: 12px; }

  /* Serviços */
  .servicos { padding: 80px 0; }
  .servicos__grid { grid-template-columns: 1fr; gap: 16px; }
  .servico-card { padding: 36px 28px 32px; }

  /* Portfólio */
  .portfolio { padding: 80px 0 40px; overflow: visible; }
  .portfolio .section-header { margin-bottom: 32px; }
  .portfolio__filtros {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
  }
  .filtro-btn {
    width: 200px;
    text-align: center;
    padding: 12px 20px;
    font-size: 12px;
  }

  /* Processo */
  .processo { padding: 80px 0; }
  .processo__layout { flex-direction: column; max-width: 100%; }
  .processo__timeline { display: none; }
  .processo__item::before { display: none; }
  .processo__item { gap: 16px; padding-bottom: 36px; }
  .processo__num { font-size: 40px; min-width: 48px; }

  /* CTA Final */
  .cta-final { padding: 96px 0; }
  .cta-final__sub { font-size: 15px; margin-bottom: 40px; }
  .btn--large { padding: 18px 36px; font-size: 13px; }

  /* Mapa */
  .mapa iframe { height: 260px; }

  /* Footer */
  .footer { padding: 4px 0 80px; }
  .footer__logo { height: 48px; margin-bottom: 8px; }
  .footer__slogan { margin-bottom: 16px; }
  .footer__endereco { margin-bottom: 16px; }
  .footer__contatos { flex-direction: column; align-items: center; gap: 8px; }
  .footer__contatos span { display: none; }

  /* Section headers */
  .section-header { margin-bottom: 48px; }
}

/* ============================================================
   RESPONSIVE — 480px (mobile pequeno)
============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__content { padding-top: 100px; }
  .hero__logo-mark { height: 44px; display: block; margin: 0 auto 12px; }
  .numeros__value { font-size: 52px; }
  .servico-card { padding: 32px 24px 28px; }
  .nav-mobile__link { font-size: 28px; }
}
