:root {
  --brand-navy: #050b1f;        /* azul escuro profundo — base cinematográfica */
  --brand-navy-2: #0a1530;      /* navy intermediário para gradientes */
  --brand-yellow: #f1c40f;
  --brand-silver: #c7cacf;
  --brand-ice: #e5e0dd;
  --bg: #f6f7f4;
  --bg-soft: #eef1eb;
  --surface: #ffffff;
  --line: rgba(17, 24, 39, 0.12);
  --text: #111827;
  --muted: #4b5563;
  --accent: #d4a017;            /* amarelo industrial */
  --accent-2: #f1c40f;
  --accent-soft: #fff4bf;
  --ring: rgba(212, 160, 23, 0.26);
  --shadow-soft: 0 16px 36px rgba(15, 23, 42, 0.08);
  --overlay-navy: rgba(5, 11, 31, 0.72);
  /* Overlay padrão dos heroes — gradiente lateral escuro→transparente (desktop) */
  --hero-gradient: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.90) 0%,
    rgba(0, 0, 0, 0.80) 25%,
    rgba(0, 0, 0, 0.60) 50%,
    rgba(0, 0, 0, 0.35) 75%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 6%, rgba(241, 196, 15, 0.12) 0%, transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(17, 24, 39, 0.06) 0%, transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  min-height: 100vh;
}

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  min-height: 140px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6vw;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  gap: 2rem;
}

.topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 160, 23, 0.25) 8%,
    #D4A017 28%,
    #D4A017 72%,
    rgba(212, 160, 23, 0.25) 92%,
    transparent 100%
  );
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 6px 8px 6px 4px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: opacity 0.24s ease, filter 0.24s ease;
}

.logo:hover {
  opacity: 0.88;
  filter:
    drop-shadow(0 0 10px rgba(212, 160, 23, 0.35))
    drop-shadow(0 3px 10px rgba(0, 0, 0, 0.12));
}

.logo img {
  height: 148px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.07));
}

nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: #3a3a3a;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #D4A017;
}

.nav-link {
  position: relative;
}

.nav-link.active {
  color: #111111;
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: #D4A017;
}

.nav-cta.active {
  filter: brightness(1.02);
}

.lang-switch {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  margin-left: 0.5rem;
}

.lang-btn {
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.03);
  color: #666666;
  border-radius: 5px;
  padding: 0.22rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  letter-spacing: 0.04em;
}

.lang-btn:hover {
  color: #D4A017;
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(212, 160, 23, 0.06);
}

.lang-btn.active {
  background: var(--accent-2);
  color: #1a1a1a;
  border-color: var(--accent-2);
  box-shadow: none;
}

main {
  width: min(1200px, 92vw);
  margin: 2.5rem auto 4rem;
}

section {
  margin: 2.8rem 0;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

.section-lead {
  color: var(--muted);
  max-width: 72ch;
  font-size: 1.03rem;
  line-height: 1.7;
}

.subpage-hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 18ch;
  font-family: "Titillium Web", sans-serif;
  line-height: 1.05;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.project-card,
.stat-card,
.timeline-step,
.form-card,
.aside-card,
.stack-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.05);
}

.info-card,
.project-card,
.timeline-step,
.form-card,
.aside-card,
.stack-item {
  padding: 1.2rem;
}

.info-card p,
.project-card p,
.timeline-step p,
.stat-card span,
.aside-card p,
.stack-item p {
  color: var(--muted);
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  color: #8f6f00;
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.split-layout p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 1rem;
}

/* About – QUEM SOMOS: título e parágrafos */
.about-story-title {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.1;
}

.about-story-body p {
  color: var(--text);
  line-height: 1.84;
  margin-bottom: 1.45rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.25rem;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent-2);
  font-family: "Titillium Web", sans-serif;
  font-size: 1.08rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-step span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(241, 196, 15, 0.18);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero-actions-center {
  justify-content: center;
}

.project-card h3,
.timeline-step h3,
.stat-card h3,
.info-card h3,
.stack-item h3,
.form-card h2,
.aside-card h2 {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 0 1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-family: "Titillium Web", sans-serif;
  font-size: 1.05rem;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
}

.contact-icon-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.contact-icon-row h3 {
  margin: 0;
}

.contact-icon-row svg {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.9;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-field span {
  font-size: 0.92rem;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(199, 202, 207, 0.7);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--ring);
  border-color: rgba(212, 163, 0, 0.42);
}

.button-row {
  display: flex;
  justify-content: flex-start;
}

.stack-list {
  display: grid;
  gap: 0.85rem;
}

.muted-inline {
  color: var(--muted);
  font-size: 0.9rem;
}

.data-placeholder {
  margin: 0.9rem 0 0;
  color: var(--accent);
  font-family: "Titillium Web", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.sector-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 1.2rem;
}

.sector-card p {
  color: var(--muted);
  line-height: 1.65;
}

.sector-icon {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(241, 196, 15, 0.38);
  background: rgba(241, 196, 15, 0.16);
  color: var(--accent);
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.site-footer {
  width: min(1200px, 92vw);
  margin: 0 auto 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 1.5rem;
}

.footer-grid-wide {
  grid-template-columns: 1.5fr 1fr 1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-brand,
.footer-title {
  font-family: "Titillium Web", sans-serif;
}

.footer-brand {
  font-weight: 700;
  margin-top: 0;
}

.footer-title {
  margin: 0 0 0.7rem;
  color: var(--text);
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
  color: var(--text);
}

.section-block {
  --section-tint: rgba(241, 196, 15, 0.1);
  --section-edge: var(--line);
  --section-accent: #d4a300;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--section-edge);
  border-radius: 12px;
  padding: 2.2rem;
  background: linear-gradient(165deg, #ffffff, #f8faf8);
  box-shadow: var(--shadow-soft);
}

.section-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 4% 12%, var(--section-tint) 0%, transparent 42%);
}

.section-block::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 3px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(var(--section-accent), rgba(0, 1, 13, 0));
}

.section-block > * {
  position: relative;
  z-index: 1;
}

.section-authority {
  --section-tint: rgba(17, 24, 39, 0.06);
  --section-edge: var(--line);
  --section-accent: #c7cacf;
}

.section-operations {
  --section-tint: rgba(241, 196, 15, 0.12);
  --section-edge: var(--line);
  --section-accent: #d4a300;
}

.section-brand {
  --section-tint: rgba(241, 196, 15, 0.14);
  --section-edge: var(--line);
  --section-accent: #f1c40f;
}

.section-governance {
  --section-tint: rgba(148, 163, 184, 0.11);
  --section-edge: var(--line);
  --section-accent: #e5e0dd;
}

.section-sustainability {
  --section-tint: rgba(17, 24, 39, 0.05);
  --section-edge: var(--line);
  --section-accent: #c7cacf;
}

.section-partnership {
  --section-tint: rgba(241, 196, 15, 0.18);
  --section-edge: var(--line);
  --section-accent: #d4a300;
}

.hero h1,
h2,
h3 {
  font-family: "Titillium Web", sans-serif;
}

.hero {
  padding: 3.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(241, 196, 15, 0.16) 0%, transparent 28%),
    linear-gradient(170deg, #ffffff, #f4f7f2);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -100px;
  top: -120px;
  border: 1px solid rgba(241, 196, 15, 0.35);
  border-radius: 12px;
  transform: rotate(32deg);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-visual {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kicker {
  color: var(--accent);
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
  max-width: 16ch;
}

.hero p {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.76rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--accent-2);
  background: var(--accent-2);
  color: #1f2937;
  text-decoration: none;
  font-weight: 700;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(212, 163, 0, 0.22);
}

.btn-small {
  font-size: 0.86rem;
  padding: 0.5rem 0.9rem;
}

.btn-ghost {
  background: #fffdf2;
  border-color: rgba(241, 196, 15, 0.5);
  color: var(--text);
}

.nav-cta {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: #1f2937;
}

.metrics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.metrics li {
  border: 1px solid rgba(241, 196, 15, 0.32);
  border-radius: 8px;
  padding: 0.9rem;
  background: linear-gradient(180deg, #fffef8, #fff9de);
}

.metrics strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #8f6f00;
}

.metrics span {
  color: var(--muted);
  font-size: 0.85rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel.section-block {
  border-color: var(--section-edge);
  background: linear-gradient(165deg, #ffffff, #f8faf8);
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin-top: 0;
}

.pillars,
.services,
.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillars article,
.services article,
.split article {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 1.1rem;
}

h3 {
  margin: 0 0 0.5rem;
  color: #8f6f00;
  font-size: 1.1rem;
}

.brand-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.brand-gallery figure {
  margin: 0;
  border: 1px solid rgba(241, 196, 15, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.brand-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.brand-gallery figcaption {
  padding: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

article p {
  margin: 0;
  color: var(--muted);
}

.manifesto p {
  max-width: 74ch;
  line-height: 1.7;
}

.cta {
  border: 1px solid rgba(241, 196, 15, 0.34);
  border-radius: 12px;
  padding: 2.4rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(241, 196, 15, 0.2), #fffef8);
  box-shadow: var(--shadow-soft);
}

.cta.section-block {
  border-color: var(--section-edge);
}

.cta p {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto 1rem;
}

footer {
  text-align: center;
  padding: 1rem 1rem 2.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Simplificação visual — cards em grids de seções secundárias com menor peso */
.section-authority .info-card,
.section-sustainability .info-card,
.section-governance .info-card {
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.04);
  background: linear-gradient(180deg, #ffffff, #f9faf8);
}

/* About – cards de diferenciais: altura uniforme por coluna */
body[data-page="about"] .feature-grid.four-up .info-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* About – stat-cards de competência: altura uniforme e legibilidade do texto */
body[data-page="about"] .stat-strip .stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body[data-page="about"] .stat-strip .stat-card span {
  color: var(--text);
  line-height: 1.78;
}

/* Animação de entrada só ativa quando JS carrega — fallback: seções visíveis sem JS */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .topbar {
    padding: 0 4vw;
    gap: 1.4rem;
    min-height: 136px;
  }

  .logo img {
    height: 126px;
  }

  nav {
    gap: 1.1rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .feature-grid.four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid.three-up,
  .timeline-grid,
  .stat-strip,
  .contact-layout,
  .footer-grid,
  .footer-grid-wide {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    gap: 0.55rem;
    min-height: unset;
    padding: 0.9rem 5vw;
  }

  .logo img {
    height: 76px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .hero,
  .panel,
  .cta,
  .section-block {
    padding: 1.3rem;
  }

  .split-layout,
  .feature-grid.two-up,
  .feature-grid.three-up,
  .feature-grid.four-up,
  .sector-grid,
  .brand-gallery,
  .timeline-grid,
  .stat-strip,
  .contact-layout,
  .footer-grid,
  .footer-grid-wide {
    grid-template-columns: 1fr;
  }

  .pillars,
  .services,
  .split,
  .brand-gallery {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CAMADA VISUAL PREMIUM — CR Welding Industrial Construction
   Curadoria de imagens · Paleta: navy #050B1F · amarelo #D4A017 · branco
   Tema claro corporativo + seções cinematográficas escuras.
   ============================================================ */

img {
  max-width: 100%;
}

/* Imagem com fade gradual ao entrar (carregamento elegante) */
.media-fade {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 900ms ease;
}
.media-fade.loaded {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------
   1 · HERO CINEMATOGRÁFICO (home)
   --------------------------------------------------------- */
.section-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  grid-template-columns: 1fr;
  min-height: 82vh;
  padding: clamp(2rem, 6vw, 5.5rem);
  border: 1px solid rgba(212, 160, 23, 0.22);
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background: var(--brand-navy);
}
/* Camada de imagem com leve zoom ao carregar + parallax (via --hero-shift) */
.section-hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  background-image: url("assets/brand/ricardo-gomez-angel-41X6FwTwPh4-unsplash.jpg");
  background-size: cover;
  background-position: center calc(35% + var(--hero-shift, 0px));
  transform: scale(1.06);
  animation: heroZoom 16s ease-out forwards;
  will-change: transform, background-position;
}
/* Overlay gradiente lateral — usa variável compartilhada para todos os heroes */
.section-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-gradient);
}
@keyframes heroZoom {
  from { transform: scale(1.16); }
  to   { transform: scale(1.02); }
}
.section-hero .hero-content { max-width: 64ch; position: relative; z-index: 2; }
.section-hero .kicker { color: var(--accent-2); }
.section-hero h1 {
  color: #fff;
  max-width: 20ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.section-hero p { color: rgba(255, 255, 255, 0.86); }
.section-hero .hero-visual { display: none; } /* dispensa a imagem lateral antiga */
.section-hero .metrics li {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 160, 23, 0.42);
  backdrop-filter: blur(6px);
}
.section-hero .metrics strong { color: #fff; }
.section-hero .metrics span { color: rgba(255, 255, 255, 0.72); }
.section-hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.section-hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------------------------------------------------------
   2 · HEROES INTERNOS CINEMATOGRÁFICOS (subpáginas)
   Imagem definida por página via body[data-page] (centralizado no CSS)
   --------------------------------------------------------- */
.subpage-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 14px;
  padding: clamp(2.2rem, 5vw, 4rem);
  min-height: 42vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--brand-navy);
}
.subpage-hero::before {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: 0;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center calc(50% + var(--hero-shift, 0px));
  transform: scale(1.04);
}
.subpage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-gradient);
}
.subpage-hero > * { position: relative; z-index: 2; }
.subpage-hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4); }
.subpage-hero .eyebrow { color: var(--accent-2); }
.subpage-hero .section-lead { color: rgba(255, 255, 255, 0.85); }
/* Neutraliza os pseudo-elementos decorativos do .section-block no hero interno */
.subpage-hero.section-block::before { background-image: var(--hero-img, none); }
/* Reseta TODOS os estilos de .section-block::after — evita o border-radius:999px
   que tornava o overlay uma forma oval, sem cobertura total da imagem */
.subpage-hero.section-block::after {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: var(--hero-gradient);
}

body[data-page="about"]         .subpage-hero { --hero-img: url("assets/brand/foto-cr-11.jpeg"); }
body[data-page="services"]      .subpage-hero { --hero-img: url("assets/brand/foto-cr-06.jpeg"); }
body[data-page="projects"]      .subpage-hero { --hero-img: url("assets/brand/foto-cr-10.jpeg"); }
body[data-page="faq"]           .subpage-hero { --hero-img: url("assets/brand/foto-cr-01.jpeg"); }
body[data-page="contact"]       .subpage-hero { --hero-img: url("assets/brand/foto-cr-09.jpeg"); }
body[data-page="numbers-scale"] .subpage-hero { --hero-img: url("assets/brand/foto-cr-08.jpeg"); }
body[data-page="sectors"]       .subpage-hero { --hero-img: url("assets/brand/foto-cr-04.jpeg"); }
body[data-page="compliance"]    .subpage-hero { --hero-img: url("assets/brand/foto-cr-12.jpeg"); }
body[data-page="sustainability-page"] .subpage-hero { --hero-img: url("assets/brand/foto-cr-02.jpeg"); }
body[data-page="quality"]       .subpage-hero { --hero-img: url("assets/brand/foto-cr-07.jpeg"); }
body[data-page="careers"]       .subpage-hero { --hero-img: url("assets/brand/foto-cr-03.jpeg"); }

/* ---------------------------------------------------------
   3 · CARDS DE SERVIÇO COM IMAGEM (hover zoom + overlay gradiente)
   --------------------------------------------------------- */
.service-card-img {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 380ms ease, box-shadow 380ms ease;
}
.service-card-img:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(5, 11, 31, 0.22);
}
.service-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(0.16, 0.84, 0.44, 1);
}
.service-card-img:hover .service-card-media img { transform: scale(1.08); }
.service-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 31, 0) 38%, rgba(5, 11, 31, 0.82) 100%);
}
.service-card-body {
  position: relative;
  padding: 1.2rem 1.25rem 1.35rem;
}
.service-card-body h3 {
  margin: 0 0 0.4rem;
  color: var(--text);
  font-size: 1.12rem;
}
.service-card-body p { margin: 0; color: var(--muted); line-height: 1.6; }
/* Selo numerado sobre a imagem */
.service-card-tag {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.service-card-tag::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

/* ---------------------------------------------------------
   4 · MOSAICO ASSIMÉTRICO (Sobre / galeria institucional)
   --------------------------------------------------------- */
.image-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 0.9rem;
}
.image-mosaic figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}
.image-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 800ms cubic-bezier(0.16, 0.84, 0.44, 1);
}
.image-mosaic figure:hover img { transform: scale(1.07); }
.image-mosaic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1rem 0.85rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(5, 11, 31, 0.85));
}
.image-mosaic .m-tall { grid-row: span 2; }
.image-mosaic .m-wide { grid-column: span 2; }
.image-mosaic .m-big { grid-column: span 2; grid-row: span 2; }

/* ---------------------------------------------------------
   5 · BANDA DE DIFERENCIAIS COM IMAGEM
   --------------------------------------------------------- */
.diff-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.diff-tile {
  position: relative;
  z-index: 0;
  min-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  color: #fff;
  border: 1px solid rgba(212, 160, 23, 0.18);
}
.diff-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.16, 0.84, 0.44, 1);
}
.diff-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 11, 31, 0.25) 0%, rgba(5, 11, 31, 0.88) 100%);
}
.diff-tile > div {
  position: relative;
  z-index: 2;
}
.diff-tile:hover img { transform: scale(1.08); }
.diff-tile h3 { margin: 0 0 0.3rem; color: #fff; font-size: 1.08rem; }
.diff-tile p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; line-height: 1.5; }
.diff-tile .diff-kicker {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  font-weight: 700;
}

/* ---------------------------------------------------------
   6 · GALERIA EM CAMPO (grid uniforme) + LIGHTBOX
   --------------------------------------------------------- */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.portfolio-item {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 0.84, 0.44, 1);
}
.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(5, 11, 31, 0) 40%, rgba(5, 11, 31, 0.78) 100%);
  transition: opacity 380ms ease;
}
.portfolio-item .portfolio-label {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 380ms ease, transform 380ms ease;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item:hover::after { opacity: 1; }
.portfolio-item:hover .portfolio-label { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  background: rgba(5, 11, 31, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms ease, visibility 320ms ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 360ms cubic-bezier(0.16, 0.84, 0.44, 1);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------------------------------------------------------
   7 · FAIXA DE CERTIFICAÇÕES / PARCEIROS (grayscale → cor no hover)
   --------------------------------------------------------- */
.partner-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}
.partner-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  padding: 1.1rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 360ms ease, opacity 360ms ease, transform 360ms ease, box-shadow 360ms ease, border-color 360ms ease;
}
.partner-mark:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
  border-color: rgba(212, 160, 23, 0.55);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}
.partner-mark strong {
  font-family: "Titillium Web", sans-serif;
  color: var(--text);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.partner-mark strong b { color: var(--accent); }
.partner-mark span { font-size: 0.72rem; color: var(--muted); }

/* ---------------------------------------------------------
   8 · RODAPÉ COM IMAGEM INDUSTRIAL DISCRETA
   --------------------------------------------------------- */
.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.92;
  filter: brightness(1.05);
}

.site-footer {
  position: relative;
  isolation: isolate;
  width: min(1200px, 92vw);
  margin: 3rem auto 2.5rem;
  border: 1px solid rgba(212, 160, 23, 0.18);
  border-top: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 14px;
  padding: 2.4rem 2rem 2rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/brand/foto-cr-01.jpeg") center/cover no-repeat;
  opacity: 0.5;
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 11, 31, 0.92), rgba(5, 11, 31, 0.97));
}
.site-footer .footer-brand { color: #fff; }
.site-footer .footer-title { color: #fff; }
.site-footer p { color: rgba(255, 255, 255, 0.74); }
.site-footer .footer-links a,
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer .footer-links a:hover,
.site-footer a:hover { color: var(--accent-2); }

/* ---------------------------------------------------------
   9 · RESPONSIVO da camada premium
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Tablet: opacidade levemente aumentada para manter legibilidade */
  :root {
    --hero-gradient: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.93) 0%,
      rgba(0, 0, 0, 0.82) 25%,
      rgba(0, 0, 0, 0.65) 52%,
      rgba(0, 0, 0, 0.40) 76%,
      rgba(0, 0, 0, 0.20) 100%
    );
  }
  .service-card-img,
  .diff-band { }
  .diff-band { grid-template-columns: repeat(2, 1fr); }
  .portfolio-masonry { grid-template-columns: repeat(2, 1fr); }
  .partner-strip { grid-template-columns: repeat(3, 1fr); }
  .image-mosaic { grid-auto-rows: 130px; }
}

@media (max-width: 760px) {
  /* Mobile: gradiente mais escuro — menos área visível de imagem */
  :root {
    --hero-gradient: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.96) 0%,
      rgba(0, 0, 0, 0.85) 30%,
      rgba(0, 0, 0, 0.68) 60%,
      rgba(0, 0, 0, 0.40) 85%,
      rgba(0, 0, 0, 0.20) 100%
    );
  }
  .section-hero { min-height: 78vh; }
  .subpage-hero { min-height: 38vh; }
  .diff-band { grid-template-columns: 1fr; }
  .diff-tile { min-height: 220px; }
  .portfolio-masonry { grid-template-columns: 1fr; }
  .partner-strip { grid-template-columns: repeat(2, 1fr); }
  .image-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
  .image-mosaic .m-big,
  .image-mosaic .m-wide { grid-column: span 2; }
  .image-mosaic .m-big { grid-row: span 2; }
}

/* Acessibilidade: respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  .section-hero::before { animation: none; }
  .media-fade,
  .service-card-media img,
  .image-mosaic img,
  .diff-tile img,
  .portfolio-item img,
  .lightbox img { transition: none; }
}
