/* ============================================================
   1. VARIÁVEIS & RESET GERAL
   ============================================================ */
:root {
  --ink: #14171b;
  --steel: #14171b;
  --muted: #5d646c;
  --line: #e2e5e8;
  --alt: #f4f5f6;
  --red: #d71f26;
  --red-d: #a31f23;
  --dark-bg: #0c0f13;
  --dark-card: #15191f;
  --dark-line: #22272e;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font: 400 17px/1.7 'Barlow', 'Segoe UI', Arial, sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  line-height: .98;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   2. BOTÕES & ELEMENTOS DE AÇÃO
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #e3262d 0%, #b8141a 100%);
  color: #ffffff;
  font: 600 16px/1 'Barlow', sans-serif;
  letter-spacing: .02em;
  padding: 16px 36px 16px 28px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  box-shadow: 0 8px 24px -4px rgba(215, 31, 38, 0.45);
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn:hover {
  background: linear-gradient(135deg, #ec2f36 0%, #c4181f 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(215, 31, 38, 0.65);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(215, 31, 38, 0.4);
}

.btn.ghost {
  background: rgba(14, 18, 22, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4), 0 8px 20px rgba(0, 0, 0, 0.25);
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 12px 26px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn.ghost:active {
  transform: translateY(0);
}

/* ============================================================
   3. CABEÇALHO & MENU RESPONSIVO
   ============================================================ */
/* ============================================================
   3. CABEÇALHO & MENU RESPONSIVO COM EFEITO VIDRO & SCROLL
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 var(--line);
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, border-color .35s ease;
}

/* Linha inferior com gradiente vermelho de alta precisão */
header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(215, 31, 38, 0.2) 15%, var(--red) 50%, rgba(215, 31, 38, 0.2) 85%, transparent 100%);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity .4s ease, transform .4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Efeito Vidro Opaco (Glassmorphism) com Scroll */
header.scrolled {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(253, 250, 250, 0.86) 100%);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 12px 35px rgba(20, 23, 27, 0.08), 0 1px 0 rgba(215, 31, 38, 0.15);
}

header.scrolled::after {
  opacity: 1;
  transform: scaleX(1);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 94px;
  gap: 24px;
  transition: height .35s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled .bar {
  height: 74px;
}

.bar .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.bar .brand img {
  height: 68px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  /* Compensação óptica: o logotipo tem os elementos textuais e o centro de massa na metade inferior da imagem; o ajuste vertical alinha o centro óptico do logo com o centro dos links e do CTA */
  transform: translateY(-4px);
  transition: height .35s cubic-bezier(0.16, 1, 0.3, 1), transform .35s ease;
}

header.scrolled .bar .brand img {
  height: 54px;
  transform: translateY(-3px);
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
  height: 100%;
}

nav a {
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  transition: color .2s ease, font-weight .2s ease;
}

nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  position: relative;
  padding: 10px 0;
}

nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2.5px;
  background: var(--red);
  transition: width .25s ease;
  clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}

nav a:not(.btn):hover,
nav a.active:not(.btn) {
  color: var(--red);
}

nav a:not(.btn):hover::after,
nav a.active:not(.btn)::after {
  width: 100%;
}

nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 46px;
  color: #ffffff;
  padding: 0 32px 0 26px;
  transition: background .2s ease, box-shadow .25s ease, transform .2s ease;
}

header.scrolled nav .btn {
  height: 42px;
  box-shadow: 0 4px 18px rgba(215, 31, 38, 0.35);
}

/* Botão Hambúrguer Moderno para Mobile */
.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  padding: 11px 9px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: border-color .2s ease, background-color .2s ease;
}

.hamburger-btn:hover {
  border-color: var(--red);
}

.hamburger-btn .bar-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}

.hamburger-btn[aria-expanded="true"] .bar-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .bar-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .bar-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   4. HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  height: clamp(640px, 88vh, 780px);
  min-height: 640px;
  background: var(--steel);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.on {
  opacity: 1;
  visibility: visible;
}

.slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  will-change: transform;
}

.slide.on > img {
  animation: heroContinuousZoom 7.2s linear forwards;
}

@keyframes heroContinuousZoom {
  0% {
    transform: scale(1.0);
  }
  100% {
    transform: scale(1.12);
  }
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 15, 19, .95) 0%, rgba(16, 20, 25, .82) 44%, rgba(20, 23, 27, .22) 100%);
}

/* ============================================================
   PAINEL ARQUITETÔNICO GEOMÉTRICO À DIREITA (ELEMENTO GRÁFICO)
   ============================================================ */
.hero-arch-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(34vw, 420px);
  min-width: 280px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 15, 19, 0) 0%, rgba(12, 15, 19, 0.65) 30%, rgba(12, 15, 19, 0.88) 100%);
  overflow: hidden;
}

.arch-pattern-grid {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='0.22'%3E%3Crect x='10' y='6' width='6' height='48' rx='2'/%3E%3Crect x='22' y='6' width='6' height='48' rx='2'/%3E%3Crect x='34' y='6' width='6' height='48' rx='2'/%3E%3Crect x='10' y='60' width='6' height='10' rx='2'/%3E%3Crect x='22' y='60' width='6' height='10' rx='2'/%3E%3Crect x='34' y='60' width='6' height='10' rx='2'/%3E%3Crect x='54' y='12' width='54' height='6' rx='2'/%3E%3Crect x='54' y='24' width='54' height='6' rx='2'/%3E%3Crect x='54' y='36' width='54' height='6' rx='2'/%3E%3Crect x='54' y='52' width='22' height='6' rx='2'/%3E%3Crect x='86' y='52' width='22' height='6' rx='2'/%3E%3Crect x='10' y='78' width='44' height='6' rx='2'/%3E%3Crect x='10' y='90' width='44' height='6' rx='2'/%3E%3Crect x='10' y='102' width='44' height='6' rx='2'/%3E%3Crect x='64' y='68' width='6' height='44' rx='2'/%3E%3Crect x='76' y='68' width='6' height='44' rx='2'/%3E%3Crect x='88' y='68' width='6' height='44' rx='2'/%3E%3Crect x='100' y='68' width='6' height='12' rx='2'/%3E%3Crect x='100' y='88' width='6' height='24' rx='2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 110px 110px;
  opacity: 0.38;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.45) 25%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.45) 25%, rgba(0, 0, 0, 1) 100%);
}

.cap {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 28px 115px;
}

.cap small {
  align-self: flex-start;
  background: var(--red);
  font: 700 16px 'Big Shoulders Display', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 18px 6px 14px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(215, 31, 38, 0.4);
  line-height: 1;
}

.cap h2 {
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: .02em;
  max-width: 13ch;
  min-height: 2.02em;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 14px;
}

.cap p {
  max-width: 48ch;
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.55;
  color: #d6dbe0;
  min-height: 3.1em;
  margin: 0 0 18px 0;
}

.cap-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  display: grid;
  gap: 9px;
  max-width: 50ch;
  min-height: 84px;
}

.cap-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #e6ebef;
  line-height: 1.35;
}

.cap-feats li::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23d71f26'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.cap div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.slide.on .cap > * {
  animation: up .8s cubic-bezier(.16, 1, .3, 1) both;
}

.slide.on .cap > :nth-child(2) { animation-delay: .08s; }
.slide.on .cap > :nth-child(3) { animation-delay: .16s; }
.slide.on .cap > :nth-child(4) { animation-delay: .24s; }
.slide.on .cap > :nth-child(5) { animation-delay: .32s; }

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dots {
  position: absolute;
  z-index: 3;
  left: max(28px, calc((100% - 1200px)/2 + 28px));
  bottom: 38px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.dots button {
  width: 42px;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, .32);
  cursor: pointer;
  padding: 0;
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dots button:hover {
  background: rgba(255, 255, 255, .6);
}

.dots button[aria-current="true"] {
  background: var(--red);
  width: 58px;
  box-shadow: 0 0 12px rgba(215, 31, 38, 0.7);
}

.arrows {
  position: absolute;
  z-index: 3;
  right: max(28px, calc((100% - 1200px)/2 + 28px));
  bottom: 26px;
  display: flex;
  gap: 6px;
}

.arrows button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: rgba(14, 18, 22, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.arrows button:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(215, 31, 38, 0.4);
}

.arrows button:active {
  transform: translateY(0);
}

.strip {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: linear-gradient(90deg, var(--red-d), var(--red) 58%, transparent 58%);
}

.strip::after {
  content: "";
  position: absolute;
  left: 56%;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #9aa2aa, #eceef0 50%, #aab1b8);
  clip-path: polygon(2% 0, 100% 0, 100% 100%, 0 100%);
}

/* ============================================================
   5. SECÇÕES GLOBAIS, TAGS & REVEAL ANIMATIONS
   ============================================================ */
section {
  padding: 104px 0;
  position: relative;
}

.alt {
  background: var(--alt);
}

/* Eyebrow Tag Moderno Industrial */
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 12.5px/1 'Barlow', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  padding: 6px 12px 5px;
  background: rgba(215, 31, 38, 0.08);
  border-left: 3px solid var(--red);
  border-radius: 0 2px 2px 0;
}

.sec-tag.c {
  margin-left: auto;
  margin-right: auto;
}

.sec-tag-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--red);
}

.sh {
  max-width: 760px;
  margin: 0 0 54px;
}

.sh.c {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sh h2 {
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: .01em;
}

.sh h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--red);
  margin-top: 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: width .5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sh.c h2::after {
  margin-left: auto;
  margin-right: auto;
}

.sh p {
  color: var(--muted);
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

/* Scroll Reveal Animations (IntersectionObserver) */
.reveal-init {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.4s; }

/* ============================================================
   6. SECÇÃO QUEM SOMOS
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
}

.about .pics {
  position: relative;
  padding: 0 0 70px 0;
}

.about .pics img {
  display: block;
  width: 100%;
  height: auto; /* anula o atributo height do HTML, para a proporção 4/3 mandar */
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(20, 23, 27, .1);
  transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about .pics:hover img {
  transform: scale(1.015);
}

.about .pics img + img {
  position: absolute;
  right: -28px;
  bottom: 0;
  width: 54%;
  border: 7px solid #ffffff;
  box-shadow: 0 20px 46px rgba(20, 23, 27, .2);
  transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about .pics:hover img + img {
  transform: translateY(-4px) scale(1.02);
}

.about .pics::before {
  content: "";
  position: absolute;
  left: -18px;
  top: -18px;
  width: 38%;
  height: 46%;
  background: var(--red);
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.pics-badge {
  position: absolute;
  left: 8px;
  bottom: 18px;
  z-index: 2;
  background: rgba(14, 18, 22, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid var(--red);
  padding: 10px 18px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.pics-badge strong {
  font: 800 22px/1 'Big Shoulders Display', sans-serif;
  color: var(--red);
  letter-spacing: .04em;
}

.pics-badge span {
  font: 600 12px 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #d1d6dc;
}

.about ul {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: grid;
  gap: 0;
}

.about li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink);
  transition: transform .2s ease;
}

.about li:last-child {
  border-bottom: 1px solid var(--line);
}

.about li:hover {
  transform: translateX(4px);
}

.about li::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
}

/* ============================================================
   7. SECÇÃO SERVIÇOS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(20, 23, 27, .04);
  transition: box-shadow .35s cubic-bezier(0.16, 1, 0.3, 1), transform .35s cubic-bezier(0.16, 1, 0.3, 1), border-color .35s ease;
}

.card:hover {
  box-shadow: 0 24px 48px -8px rgba(20, 23, 27, .16);
  transform: translateY(-6px);
  border-color: rgba(215, 31, 38, 0.35);
}

.card-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--steel);
}

.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-media img {
  transform: scale(1.08);
}

.card > div:not(.card-media) {
  padding: 28px 28px 32px;
  border-top: 4px solid var(--red);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--ink);
}

.card p {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
}

.card a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  transition: gap .2s ease;
}

.card a .arrow {
  transition: transform .25s ease;
}

.card:hover a .arrow {
  transform: translateX(5px);
}

.card a:hover {
  text-decoration: none;
  color: var(--red-d);
}

/* ============================================================
   8. SECÇÃO MATERIAIS
   ============================================================ */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.tabs button {
  font: 800 24px/1 'Big Shoulders Display', sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 13px 36px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tabs button:hover {
  border-color: var(--ink);
  background: #fafbfc;
  transform: translateY(-1px);
}

.tabs button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  box-shadow: inset 0 -4px 0 var(--red), 0 8px 20px rgba(20, 23, 27, 0.12);
}

.panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 38px;
  box-shadow: 0 10px 32px rgba(20, 23, 27, 0.05);
  animation: panelFade .4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes panelFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel[hidden] {
  display: none;
}

.panel-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--steel);
  box-shadow: 0 8px 24px rgba(20, 23, 27, 0.08);
}

.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel:hover img {
  transform: scale(1.03);
}

.panel h3 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--ink);
}

.panel ul {
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
  color: var(--muted);
}

.panel li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.panel li::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-color: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
}

/* ============================================================
   9. SECÇÃO TRABALHOS REALIZADOS & FILTROS
   ============================================================ */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filters button {
  font: 600 14px 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 22px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filters button:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

.filters button[aria-pressed="true"] {
  background: linear-gradient(135deg, #e3262d 0%, #b8141a 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(215, 31, 38, 0.35);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 14px;
}

.work {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: var(--steel);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.work:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

.work.l {
  grid-column: span 2;
  grid-row: span 2;
}

.work img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work:hover img {
  transform: scale(1.08);
}

.work span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 18px 16px;
  color: #ffffff;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  background: linear-gradient(transparent 0%, rgba(14, 18, 22, .92) 85%);
  border-left: 4px solid var(--red);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.work-zoom-icon {
  opacity: 0;
  transform: scale(0.7);
  transition: all .25s ease;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: 8px;
}

.work:hover .work-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.work[hidden] {
  display: none;
}

/* Lightbox Modal */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}

dialog::backdrop {
  background: rgba(10, 13, 16, .92);
  backdrop-filter: blur(6px);
}

dialog img {
  max-height: 88vh;
  max-width: 92vw;
  width: auto;
  height: auto;
  margin: auto;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}

/* ============================================================
   10. SECÇÃO PROCESSO DE TRABALHO
   ============================================================ */
.process {
  background: #0d1014;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 110px 0;
}

.process::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: 
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.process .wrap {
  position: relative;
}

.process .sh h2 {
  color: #ffffff;
}

.process .sh p {
  color: #aab1b8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 22px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(215, 31, 38, 0.65);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.step-num {
  font: 900 32px/1 'Big Shoulders Display', sans-serif;
  color: var(--red);
  margin-bottom: 14px;
  letter-spacing: .02em;
  display: inline-block;
}

.step h3 {
  font-size: 24px;
  margin: 0 0 10px;
  color: #ffffff;
}

.step p {
  margin: 0;
  color: #aab1b8;
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================================
   11. SECÇÃO CLIENTES & SECTORES
   ============================================================ */
.biz {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.biz article {
  position: relative;
  min-height: 480px;
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(20, 23, 27, 0.12);
  transition: transform .35s ease, box-shadow .35s ease;
}

.biz article:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(20, 23, 27, 0.2);
}

.biz img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(0.16, 1, 0.3, 1);
}

.biz article:hover img {
  transform: scale(1.06);
}

.biz article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 18, 22, .95) 0%, rgba(14, 18, 22, .6) 50%, rgba(14, 18, 22, .1) 100%);
}

.biz div {
  position: relative;
  z-index: 2;
  padding: 38px;
  border-left: 5px solid var(--red);
  margin: 0 0 32px 0;
}

.biz-tag {
  display: inline-block;
  font: 700 12px 'Barlow', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  margin-bottom: 12px;
}

.biz h3 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.biz p {
  margin: 0 0 24px;
  max-width: 44ch;
  color: #dde2e7;
  font-size: 16.5px;
  line-height: 1.6;
}

/* ============================================================
   12. SECÇÃO PARCEIROS & CTA BANNER
   ============================================================ */
.partners-box {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 36px 40px;
  box-shadow: 0 8px 24px rgba(20, 23, 27, .04);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.partners-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(20, 23, 27, .08);
}

.partners-box img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.cta {
  background: linear-gradient(115deg, #a31f23 0%, #d71f26 100%);
  color: #ffffff;
  padding: 68px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

.cta .wrap {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  max-width: 18ch;
  color: #ffffff;
}

.cta .btn {
  background: #ffffff;
  color: var(--red-d);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.cta .btn:hover {
  background: #ffffff;
  color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   13. SECÇÃO CONTACTOS & FORMULÁRIO WHATSAPP
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.contact h2 {
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 800;
  margin-bottom: 26px;
}

.who {
  margin: 0 0 22px;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  box-shadow: 0 4px 16px rgba(20, 23, 27, 0.03);
  transition: transform .25s ease, box-shadow .25s ease;
}

.who:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(20, 23, 27, 0.06);
}

.who b {
  display: block;
  color: var(--ink);
  font-size: 16.5px;
  margin-bottom: 4px;
}

.who a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color .2s ease;
}

.who a:hover {
  color: var(--red);
}

form {
  display: grid;
  gap: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  padding: 36px;
  box-shadow: 0 20px 44px rgba(20, 23, 27, .07);
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
}

input, select, textarea {
  font: inherit;
  padding: 14px 16px;
  border: 1px solid #cfd4d9;
  background: #fafbfc;
  color: var(--ink);
  border-radius: 0;
  width: 100%;
  font-size: 15.5px;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(215, 31, 38, 0.15);
  outline: 0;
}

/* Botão Oficial WhatsApp do Formulário */
.btn-whatsapp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  color: #ffffff;
  font: 700 16px/1 'Barlow', sans-serif;
  letter-spacing: .03em;
  padding: 16px 32px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-whatsapp-submit:hover {
  background: linear-gradient(135deg, #28e06c 0%, #1fae54 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.btn-whatsapp-submit:active {
  transform: translateY(0);
}

.btn-whatsapp-submit .btn-wa-icon {
  flex-shrink: 0;
  transition: transform .25s ease;
}

.btn-whatsapp-submit:hover .btn-wa-icon {
  transform: scale(1.15) rotate(5deg);
}

/* ============================================================
   14. NOVO RODAPÉ CORPORATIVO PROFISSIONAL
   ============================================================ */
footer.site-footer {
  background: var(--dark-bg);
  color: #a9b0b7;
  border-top: 3px solid var(--red);
  padding: 72px 0 0;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--dark-line);
}

.footer-brand .footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer-brand .footer-logo {
  height: 88px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  background: transparent;
  margin-bottom: 24px;
  padding: 0;
  display: block;
  transition: transform .25s ease, opacity .2s ease;
}

.footer-brand .footer-logo-link:hover .footer-logo {
  transform: translateY(-2px);
  opacity: 0.95;
}

.footer-brand p {
  color: #9aa2aa;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 32ch;
}

.footer-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff;
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  padding: 6px 14px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.footer-col h4 {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  background: var(--red);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col li a, .footer-col li span {
  color: #a9b0b7;
  font-size: 14.5px;
  transition: color .2s ease, padding-left .2s ease;
  display: inline-block;
}

.footer-col li a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-item {
  margin-bottom: 14px;
}

.footer-contact-item b {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.footer-contact-item a {
  color: #a9b0b7;
  font-size: 14px;
  transition: color .2s ease;
}

.footer-contact-item a:hover {
  color: var(--red);
}

/* Sub-footer Barra Inferior */
.sub-footer {
  padding: 24px 0;
  font-size: 13.5px;
  color: #7a828a;
}

.sub-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sub-footer a {
  color: #d3d8dd;
  font-weight: 600;
  transition: color .2s ease;
}

.sub-footer a:hover {
  color: var(--red);
}

.to-top-btn {
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  color: #ffffff;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .2s ease, border-color .2s ease;
}

.to-top-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ============================================================
   15. BOTÃO FLUTUANTE WHATSAPP
   ============================================================ */
.wa {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.wa:hover {
  background: #20ba5a;
  color: #ffffff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

/* ============================================================
   16. MEDIA QUERIES (RESPONSIVIDADE)
   ============================================================ */
@media (max-width: 980px) {
  nav {
    display: none;
    position: absolute;
    top: 94px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 28px 28px;
    gap: 18px;
    box-shadow: 0 18px 30px rgba(20, 23, 27, .12);
    border-bottom: 2px solid var(--red);
    transition: top .35s ease;
  }

  header.scrolled nav {
    top: 74px;
  }

  nav.open {
    display: flex;
  }

  nav a {
    font-size: 18px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  nav a:not(.btn) {
    display: block;
    line-height: 1.5;
    padding: 10px 0;
  }

  nav a:last-child {
    border-bottom: 0;
  }

  nav .btn {
    width: 100%;
    height: 48px;
    text-align: center;
    margin-top: 6px;
  }

  .hamburger-btn {
    display: flex;
  }

  .about, .panel, .contact, .biz, .cards {
    grid-template-columns: 1fr;
  }

  .about {
    gap: 56px;
  }

  .about .pics {
    margin-right: 28px;
  }

  .panel {
    gap: 26px;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 48px;
  }

  .arrows {
    display: none;
  }

  .bar .brand img {
    height: 60px;
    transform: translateY(-3px);
  }

  header.scrolled .bar .brand img {
    height: 50px;
    transform: translateY(-2px);
  }

  section {
    padding: 70px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  /* Ajustes da Hero em Tablet */
  .hero {
    height: auto;
    min-height: 600px;
  }

  .cap {
    padding: 36px 28px 96px;
  }

  .cap h2 {
    max-width: 13ch;
    font-size: clamp(34px, 6.5vw, 54px);
  }

  .dots {
    bottom: 30px;
  }

  .hero-arch-panel {
    display: none;
  }
}

@media (max-width: 580px) {
  .bar {
    height: 82px;
  }

  header.scrolled .bar {
    height: 68px;
  }

  .bar .brand img {
    height: 52px;
    transform: translateY(-2px);
  }

  header.scrolled .bar .brand img {
    height: 44px;
    transform: translateY(-2px);
  }

  nav {
    top: 82px;
  }

  header.scrolled nav {
    top: 68px;
  }

  /* Ajustes da Hero em Mobile */
  .hero {
    min-height: 580px;
  }

  .hero-arch-panel {
    display: none;
  }

  .cap {
    padding: 24px 20px 88px;
  }

  .cap small {
    font-size: 15px;
    margin-bottom: 12px;
    padding: 5px 14px;
  }

  .cap h2 {
    max-width: none;
    font-size: 34px;
    line-height: 1.02;
  }

  .cap p {
    font-size: 15px;
    line-height: 1.5;
    margin: 12px 0 16px;
  }

  .cap-feats {
    gap: 7px;
    margin-bottom: 22px;
  }

  .cap-feats li {
    font-size: 13.5px;
    gap: 8px;
  }

  .cap-feats li::before {
    width: 14px;
    height: 14px;
  }

  .cap div {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .cap div .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .dots {
    left: 20px;
    bottom: 24px;
    gap: 6px;
  }

  .dots button {
    width: 28px;
  }

  .dots button[aria-current="true"] {
    width: 42px;
  }

  .footer-brand .footer-logo {
    height: 74px;
    margin-bottom: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .work.l {
    grid-column: auto;
    grid-row: auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .panel {
    padding: 24px 18px;
  }

  .partners-box {
    padding: 24px 18px;
  }

  form {
    padding: 26px 20px;
  }

  .tabs button {
    padding: 11px 20px;
    font-size: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .slide.on .cap > * { animation: none; }
  .work img, .card, .biz img { transition: none; }
  .reveal-init, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ============================================================
   13. GALERIA (ITENS ALTOS) E CARROSSEL INFINITO DE PARCEIROS
   ============================================================ */
.work.t {
  grid-row: span 2;
}

.partners-box {
  padding: 0;
  overflow: hidden;
}

.partners-slider {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partners-track li {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  margin-right: 76px;
}

.partners-track img {
  width: auto;
  height: auto;
  max-width: 176px;
  max-height: 64px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}

.partners-track li:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.06);
}

.partners-track.is-running {
  animation: partnersScroll 52s linear infinite;
  will-change: transform;
}

.partners-slider:hover .partners-track.is-running {
  animation-play-state: paused;
}

@keyframes partnersScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 540px) {
  .work.t { grid-row: auto; }
  .partners-slider { padding: 28px 0; }
  .partners-track li { margin-right: 52px; height: 64px; }
  .partners-track img { max-width: 138px; max-height: 52px; }
  .partners-track.is-running { animation-duration: 40s; }
}

@media (prefers-reduced-motion: reduce) {
  .partners-slider {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .partners-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 24px;
  }
}


/* ============================================================
   14. MOLDURAS DE IMAGEM COM PROPORÇÃO FIXA
   O tamanho de cada imagem vem da moldura (aspect-ratio), nunca
   da resolução da fotografia. Para reenquadrar uma foto, altere
   apenas o object-position inline na tag <img>.
   ============================================================ */
@media (max-width: 700px) {
  .panel-media { aspect-ratio: 4/3; }
}


/* ============================================================
   15. PÁGINAS INTERIORES (cabeçalho de página, blocos e grelhas)
   ============================================================ */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--steel);
  color: #ffffff;
  padding: 92px 0 116px;
}

.page-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(20, 23, 27, .95) 0%, rgba(20, 23, 27, .8) 48%, rgba(20, 23, 27, .38) 100%);
}

.page-hero h1 {
  font-size: clamp(46px, 7.4vw, 104px);
  font-weight: 900;
  text-transform: uppercase;
  max-width: 15ch;
}

.page-hero .lead {
  max-width: 58ch;
  font-size: 20px;
  color: #d3d8dd;
  margin: 22px 0 0;
}

.page-hero .btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.crumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: #aab1b8;
  margin-bottom: 24px;
}

.crumbs a { color: #d3d8dd; text-decoration: none; }
.crumbs a:hover { color: #ffffff; text-decoration: underline; }
.crumbs [aria-current] { color: #ffffff; font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
}

.split.rev .split-media { order: 2; }

.split-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--steel);
  box-shadow: 0 18px 44px rgba(20, 23, 27, .14);
  border-bottom: 6px solid var(--red);
}

.split-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(0.16, 1, 0.3, 1);
}

.split:hover .split-media img { transform: scale(1.04); }

.split h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.split p { color: var(--muted); margin: 0 0 6px; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 30px;
}

.checklist li {
  position: relative;
  padding: 13px 0 13px 34px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.checklist li:last-child { border-bottom: 1px solid var(--line); }

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 4px;
  top: 12px;
  color: var(--red);
  font-weight: 700;
}

.actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn.dark {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  clip-path: none;
}

.btn.dark:hover { background: var(--ink); color: #ffffff; }

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

.pillar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 34px 30px 36px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.pillar:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(20, 23, 27, .1); }

.pillar b {
  display: block;
  font: 800 54px/1 'Big Shoulders Display', sans-serif;
  color: rgba(215, 31, 38, .22);
  margin-bottom: 8px;
}

.pillar h3 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.pillar p { margin: 0; color: var(--muted); font-size: 16.5px; }
.pillar a { display: inline-block; margin-top: 16px; color: var(--red); font-weight: 600; text-decoration: none; }
.pillar a:hover { text-decoration: underline; }

.grid.cols-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }

.sec-more { text-align: center; margin-top: 48px; }

.sd {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  gap: 36px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.sd:last-child { border-bottom: 1px solid var(--line); }
.sd .num { font: 900 92px/.9 'Big Shoulders Display', sans-serif; color: var(--red); }
.sd h3 { font-size: 42px; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
.sd p { margin: 0; color: var(--muted); }
.sd .checklist { margin: 0; }

.need { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.need div { background: #ffffff; border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 24px 22px; }
.need b { display: block; font: 800 26px 'Big Shoulders Display', sans-serif; text-transform: uppercase; margin-bottom: 6px; }
.need span { color: var(--muted); font-size: 16px; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 72px; }

.quick a {
  display: block;
  background: var(--steel);
  color: #ffffff;
  text-decoration: none;
  padding: 34px 30px;
  border-bottom: 5px solid var(--red);
  transition: transform .3s ease, background .3s ease;
}

.quick a:hover { transform: translateY(-5px); background: #1d2229; }
.quick small { display: block; color: #aab1b8; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.quick strong { font: 800 34px/1.05 'Big Shoulders Display', sans-serif; text-transform: uppercase; word-break: break-word; }

@media (max-width: 980px) {
  .page-hero { padding: 64px 0 92px; }
  .split, .pillars, .quick, .need { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .split.rev .split-media { order: 0; }
  .need { grid-template-columns: 1fr 1fr; }
  .sd { grid-template-columns: 1fr; gap: 14px; padding: 30px 0; }
  .sd .num { font-size: 64px; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
}

@media (max-width: 540px) {
  .need { grid-template-columns: 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .page-hero .lead { font-size: 18px; }
}
