/* ─────────────────────────────────────────────
   FONTES CUSTOMIZADAS
───────────────────────────────────────────── */
@font-face {
  font-family: 'PPValve';
  src: url('../fonts/PPValve-PlainMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --red:        #b72211;
  --red-hover:  #9a1c0e;
  --dark:       #07080d;
  --dark-green: #39453f;
  --gray:       #5f6066;
  --light:      #f5f5f7;
  --lighter:    #f5f5fa;
  --border:     rgba(95,96,102,0.15);
  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  40px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', sans-serif;
  background: #fff;
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; }

/* ─────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────── */
#sobre, #projetos, #servicos, #contato {
  scroll-margin-top: calc(var(--header-h, 76px) + 24px);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translate(0, 0); }

.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-delay-1 { transition-delay: 0.18s; }

.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.13s; }
.stagger > *:nth-child(3) { transition-delay: 0.21s; }
.stagger > *:nth-child(4) { transition-delay: 0.29s; }
.stagger > *:nth-child(5) { transition-delay: 0.37s; }
.stagger > *:nth-child(6) { transition-delay: 0.45s; }
.stagger > *:nth-child(7) { transition-delay: 0.53s; }
.stagger > *:nth-child(8) { transition-delay: 0.61s; }
.stagger > *:nth-child(9) { transition-delay: 0.69s; }

/* ─────────────────────────────────────────────
   PAGE
───────────────────────────────────────────── */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
  padding-top: 0;
  padding-bottom: 100px;
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */

.header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: background 0.3s, box-shadow 0.3s;
}

.header-wrap.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 4px 20px rgba(0,0,0,0.06);
}

.header {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* logo: proporção exata do SVG (195.172 × 44) */
.logo img {
  height: 36px;
  width: calc(36px * 195.172 / 44); /* ≈ 159.7px */
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 48px;
  align-items: center;
}

.nav-item {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--dark);
  letter-spacing: -0.1px;
  position: relative;
  padding-bottom: 4px;
}
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--dark);
  transition: width 0.3s var(--ease);
}
.nav-item.active::after { width: 100%; }

/* ── BUTTONS ── */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.15s;
  border: 1px solid rgba(95,96,102,0.12);
  white-space: nowrap;
}
.btn-wa:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-wa img   { width: 18px; height: 18px; }

.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.15s;
  border: 1px solid rgba(95,96,102,0.12);
}
.btn-red:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-red img { width: 8px; height: 10px; }

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--dark);
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  width: fit-content;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-white:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.95);
  color: var(--dark);
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.btn-ghost:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost img { width: 20px; height: 20px; transform: rotate(-90deg); }

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--dark);
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  width: fit-content;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-ghost-dark:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ghost-dark img { width: 18px; height: 18px; }

/* ─────────────────────────────────────────────
   HAMBURGUER
───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s, width 0.3s var(--ease);
  transform-origin: center;
}

.hamburger span:nth-child(1) { width: 100%; }
.hamburger span:nth-child(2) { width: 70%; }
.hamburger span:nth-child(3) { width: 100%; }

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

/* ─────────────────────────────────────────────
   MOBILE MENU
───────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-nav-item {
  font-family: 'PPValve', sans-serif;
  font-weight: 500;
  font-size: 36px;
  color: var(--dark);
  letter-spacing: -1px;
  padding: 8px 24px;
  transition: color 0.2s;
}
.mobile-nav-item:hover { color: var(--red); }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero-outer {
  width: 100%;
  margin-top: -88px; /* gap: 120px − 32px espaço desejado = -88px */
}

.hero-bg {
  margin: 0 8px 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: calc(100vh - var(--header-h, 76px) - var(--hero-gap, 32px) - 8px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: 52px 56px;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.hero-union {
  position: absolute;
  top: -137px; left: -293px;
  width: 1906px; height: 1071px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1316px;
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: 8px 16px;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  width: fit-content;
  opacity: 0;
  animation: heroFadeDown 0.7s var(--ease) 0.2s forwards;
}
.hero-badge img { width: 20px; height: 20px; }

.hero-center { display: flex; align-items: center; }

.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) 0.35s forwards;
}

.hero-accent { width: 20px; height: 18px; background: var(--red); }

.hero-title {
  font-family: 'PPValve', sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 7.5vw, 108px);
  color: #fff;
  letter-spacing: -3px;
  line-height: 1.02;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  opacity: 0;
  animation: heroFadeUp 0.7s var(--ease) 0.55s forwards;
}

.hero-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 360px;
  line-height: 1.7;
}

@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   SOBRE NÓS
───────────────────────────────────────────── */
.about-section {
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: center;
}

.about-inner {
  width: 1300px;
  max-width: 100%;
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.about-title {
  font-family: 'PPValve', sans-serif;
  flex: 0 0 300px;
  font-weight: 500;
  font-size: 52px;
  color: var(--dark);
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.about-text {
  flex: 1;
  font-weight: 400;
  font-size: 20px;
  color: var(--gray);
  letter-spacing: -0.3px;
  line-height: 1.65;
}
.about-text strong { color: var(--dark); font-weight: 600; }
.about-text p + p  { margin-top: 1.2em; }

/* ─────────────────────────────────────────────
   PROJETOS — CARROSSEL
───────────────────────────────────────────── */
.projects-section {
  width: 100%;
  background: var(--light);
  padding: 100px 24px;
}

.projects-inner {
  width: 1300px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  font-family: 'PPValve', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--dark);
  text-align: center;
  letter-spacing: -1.5px;
  line-height: 1.2;
}

.carousel-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111;
}

.carousel-main img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.carousel-main img.leaving {
  opacity: 0;
  transform: scale(1.03);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 10;
}
.carousel-arrow--prev { left: 16px; }
.carousel-arrow--next { right: 16px; }
.carousel-arrow:hover { background: #fff; }
.carousel-main:hover .carousel-arrow { opacity: 1; }

.carousel-thumbs {
  display: flex;
  gap: 8px;
}

.carousel-thumb {
  flex: 1;
  height: clamp(60px, 8vw, 100px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.carousel-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease), filter 0.3s;
  filter: brightness(0.6);
}

.carousel-thumb:hover img { filter: brightness(0.85); transform: scale(1.05); }
.carousel-thumb.active img { filter: brightness(1); }
.carousel-thumb.active { box-shadow: 0 0 0 2.5px var(--red); }
.carousel-thumb:hover { transform: translateY(-2px); }

.projects-cta { display: flex; justify-content: center; margin-top: 48px; }
.projects-inner .section-title { margin-bottom: 48px; }

/* ─────────────────────────────────────────────
   ENGENHARIA QUE CUMPRE
───────────────────────────────────────────── */
.dark-section {
  width: 100%;
  position: relative;
  overflow: hidden; /* corta nas bordas da seção */
}

.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0e0e0e 0%, #1c2023 100%);
  z-index: 0;
  pointer-events: none;
}

.dark-texture {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  opacity: 0.04;
  z-index: 0;
}

.dark-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 640px;
}

.dark-pair {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

/* metade esquerda — foto */
.dark-photos {
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}

.dark-photos .photo-front {
  display: block;
  height: 560px;
  width: auto;
}

/* metade direita — texto */
.dark-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 80px 0;
}

.dark-title {
  font-family: 'PPValve', sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 4.5vw, 60px);
  color: #fff;
  letter-spacing: -2px;
  line-height: 1.1;
}

.numbered-list { display: flex; flex-direction: column; gap: 14px; }

.numbered-item { display: flex; align-items: center; gap: 14px; }

.number-badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.item-text {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.2px;
}

.dark-quote {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   O QUE ENTREGAMOS
───────────────────────────────────────────── */
.services-section {
  width: 100%;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.services-header {
  width: 1300px;
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.services-title {
  font-family: 'PPValve', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--dark);
  letter-spacing: -2.5px;
  line-height: 1;
}

.services-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(7,8,13,0.45);
  line-height: 1.6;
  text-align: right;
  flex-shrink: 0;
}

.services-grid {
  width: 1300px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
  cursor: default;
}

.service-card:hover {
  border-color: rgba(183,34,17,0.25);
  box-shadow: 0 8px 32px rgba(183,34,17,0.07);
  transform: translateY(-3px);
}

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-green);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  width: 36px; height: 26px;
  font-family: 'Kanit', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

.card-body h3 {
  font-family: 'PPValve', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--dark);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.card-body p {
  font-weight: 400;
  font-size: 15px;
  color: var(--gray);
  letter-spacing: -0.1px;
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   CTA BANNER
───────────────────────────────────────────── */
.cta-banner {
  background: var(--dark-green);
  border-radius: var(--radius-md);
  width: 1300px;
  max-width: calc(100% - 48px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 360px;
}

.cta-text {
  flex: 1;
  padding: 64px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.cta-heading {
  font-family: 'PPValve', sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 3.5vw, 50px);
  color: #fff;
  letter-spacing: -2px;
  line-height: 1.15;
  max-width: 480px;
}

.cta-image {
  flex: 0 0 45%;
  width: 45%;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  display: block;
  align-self: flex-end;
}

/* ─────────────────────────────────────────────
   CONTATO
───────────────────────────────────────────── */
.contact-section {
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: center;
}

.contact-box {
  width: 1300px;
  max-width: 100%;
  background: var(--lighter);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 28px;
  min-height: 820px;
}

.contact-info {
  flex: 0 0 36%;
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  justify-content: space-between;
}

.contact-group h3 {
  font-family: 'PPValve', sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--dark);
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.contact-group .sub {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.5;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.contact-item img  { width: 22px; height: 22px; flex-shrink: 0; opacity: 0.75; }
.contact-item span,
.contact-item a { font-weight: 500; font-size: 15px; color: var(--dark); text-decoration: none; }
.contact-item a:hover { color: var(--red); }

.contact-form-panel {
  flex: 1;
  background: var(--dark);
  border-radius: 22px;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-heading {
  font-family: 'PPValve', sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 3vw, 48px);
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.form-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  line-height: 1.55;
}

.form-field { margin-bottom: 28px; }

.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  padding: 10px 0;
  outline: none;
  resize: none;
  transition: border-color 0.25s;
}

.form-field textarea { height: 68px; }

.form-field input:focus,
.form-field textarea:focus { border-bottom-color: rgba(255,255,255,0.55); }

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.16); }

.btn-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 60px;
  padding: 15px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: var(--red-hover); transform: translateY(-1px); }

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

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  transition: opacity 0.25s var(--ease);
}

.lightbox-img-wrap img.fading { opacity: 0; }

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lightbox-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.22); }

.lightbox-counter {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  min-width: 60px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ─────────────────────────────────────────────
   RESPONSIVE — TABLET  (≤ 1024px)
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .page { gap: 80px; }

  /* nav oculta, hamburguer aparece */
  .nav         { display: none; }
  .desktop-only { display: none; }
  .hamburger   { display: flex; }

  /* hero */
  .hero-bg { padding: 36px 28px; }
  .hero-title { letter-spacing: -2px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* about */
  .about-inner { flex-direction: column; gap: 32px; }
  .about-title { flex: none; font-size: 40px; }
  .about-text  { font-size: 18px; }

  /* dark section */
  .dark-inner { align-items: stretch; }
  .dark-pair { flex-direction: column-reverse; align-items: center; }
  .dark-photos { display: block; width: min(401px, 100%); }
  .dark-photos .photo-front { display: block; width: 100%; height: auto; }
  .dark-content { padding: 80px 40px 0; }

  /* services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .services-subtitle { text-align: left; }

  /* cta */
  .cta-banner { max-width: calc(100% - 48px); }
  .cta-image  { width: 280px; }

  /* contact */
  .contact-box { flex-direction: column; min-height: auto; }
  .contact-info { flex: none; padding: 32px 20px 0; }
  .contact-form-panel { padding: 40px; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — MOBILE  (≤ 640px)
───────────────────────────────────────────── */
@media (max-width: 640px) {
  .page { gap: 60px; padding-top: 24px; padding-bottom: 60px; }

  /* header */
  .header { padding: 14px 16px; }
  .logo img {
    height: 30px;
    width: calc(30px * 195.172 / 44);
  }

  /* hero */
  .hero-outer { margin-top: -60px; }
  .hero-bg {
    margin: 0 6px 6px;
    height: calc(100vh - 80px);
    min-height: 480px;
    padding: 28px 20px;
    border-radius: 16px;
  }
  .hero-badge { font-size: 13px; padding: 6px 12px; }
  .hero-badge img { width: 16px; height: 16px; }
  .hero-title { letter-spacing: -1.5px; line-height: 1.05; }
  .hero-desc  { font-size: 15px; max-width: 100%; }
  .btn-ghost  { font-size: 14px; padding: 9px 16px; }

  /* about */
  .about-section { padding: 0 16px; }
  .about-title   { font-size: 34px; }
  .about-text    { font-size: 16px; }

  /* projects */
  .projects-section { padding: 64px 16px; }
  .carousel-thumbs  { gap: 5px; overflow-x: auto; padding-bottom: 4px; }
  .carousel-thumb   { flex: 0 0 clamp(60px, 18vw, 90px); height: 60px; }

  /* dark */
  .dark-photos { width: min(401px, 90%); }
  .dark-content { padding: 60px 24px 0; }
  .item-text { font-size: 16px; }

  /* services */
  .services-section { padding: 0 16px; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-header { gap: 12px; }
  .services-title { font-size: 32px; }

  /* cta */
  .cta-banner {
    flex-direction: column;
    max-width: calc(100% - 32px);
    min-height: auto;
  }
  .cta-text    { padding: 40px 28px 32px; }
  .cta-heading { font-size: 30px; max-width: 100%; }
  .cta-image   { width: 100%; height: 200px; }

  /* contact */
  .contact-section { padding: 0 16px; }
  .contact-box { border-radius: 24px; padding: 16px; }
  .contact-info { padding: 24px 12px 0; gap: 32px; }
  .contact-group h3 { font-size: 18px; }
  .contact-item span,
  .contact-item a { font-size: 13px; }
  .contact-form-panel { padding: 28px 24px; border-radius: 16px; }
  .form-heading { font-size: 28px; }
}
