:root {
  --ink: #17202a;
  --muted: #626d78;
  --line: #dde3e8;
  --paper: #f6f7f5;
  --white: #ffffff;
  --blue: #1f527f;
  --blue-strong: #12385c;
  --green: #2c725f;
  --yellow: #c8a04a;
  --steel: #4d5f70;
  --shadow: 0 24px 60px rgba(18, 33, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 222, 228, 0.8);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: auto;
  height: 54px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 58px;
  object-fit: contain;
  object-position: center;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: #1493dc;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name strong {
  color: #0b4f86;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--blue-strong);
  background: #edf4f9;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 760;
}

.button {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(18, 56, 92, 0.24);
}

.button:hover {
  background: var(--blue-strong);
}

.button.secondary {
  color: var(--blue-strong);
  background: var(--white);
  border-color: var(--line);
  box-shadow: none;
}

.as-button {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}

.text-link {
  color: var(--blue-strong);
  padding-inline: 0;
}

.hero {
  min-height: clamp(600px, 72vh, 730px);
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: #172434;
}

.hero.compact {
  min-height: 500px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-image) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 19, 31, 0.92), rgba(8, 19, 31, 0.62) 48%, rgba(8, 19, 31, 0.18)),
    linear-gradient(0deg, rgba(8, 19, 31, 0.78), rgba(8, 19, 31, 0.12) 42%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: #d7b96a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6.4vw, 4.65rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.03rem, 2.2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 110px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--blue-strong);
  font-size: 1.55rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.section.tight {
  padding: 56px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 34px;
}

.section-head h2,
.full-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3.8vw, 2.95rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-head p,
.full-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.band {
  background: var(--paper);
}

.grid-3,
.grid-4,
.work-grid,
.client-grid,
.service-grid {
  display: grid;
  gap: 18px;
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

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

.client-grid {
  grid-template-columns: repeat(6, 1fr);
}

.panel,
.work-card,
.service-card,
.client-logo,
.fact-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.panel,
.service-card,
.fact-box,
.work-card {
  box-shadow: 0 12px 34px rgba(18, 33, 48, 0.06);
}

.panel,
.service-card,
.fact-box {
  padding: 24px;
}

.panel h3,
.service-card h3,
.fact-box h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.panel p,
.service-card p,
.fact-box p {
  margin-bottom: 0;
  color: var(--muted);
}

.work-card {
  overflow: hidden;
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.work-card-body {
  padding: 22px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue-strong);
  background: #edf4f8;
  font-size: 0.78rem;
  font-weight: 780;
}

.tag.green {
  color: #1f604f;
  background: #e7f4ef;
}

.tag.yellow {
  color: #654c14;
  background: #f8efd7;
}

.work-card h3 {
  margin-bottom: 10px;
  font-size: 1.42rem;
}

.work-card p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  gap: 46px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item strong {
  color: var(--blue-strong);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  align-content: start;
}

.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 5px;
}

.gallery a::after {
  content: "Ampliar";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(8, 19, 31, 0.72);
  font-size: 0.72rem;
  font-weight: 760;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.gallery a:hover::after,
.gallery a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.gallery a:hover img,
.gallery a:focus-visible img {
  transform: scale(1.035);
  opacity: 0.88;
}

.fancybox-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 24px;
  color: var(--white);
  background: rgba(8, 16, 24, 0.94);
}

.fancybox-lightbox.is-open {
  display: grid;
}

.fancybox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fancybox-counter {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 760;
}

.fancybox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.fancybox-image {
  max-width: min(1180px, 100%);
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  object-fit: contain;
}

.fancybox-caption {
  min-height: 24px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-weight: 650;
}

.fancybox-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.fancybox-button:hover,
.fancybox-button:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.fancybox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.fancybox-prev {
  left: 0;
}

.fancybox-next {
  right: 0;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.45fr);
  gap: 36px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.project-detail:first-child {
  border-top: 0;
}

.project-detail .gallery {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.project-detail .gallery img {
  aspect-ratio: 1 / 1;
}

.project-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.06;
}

.project-copy p {
  color: var(--muted);
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list strong {
  color: var(--steel);
}

.client-logo {
  min-height: 94px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--white);
}

.client-logo img {
  max-height: 54px;
  width: auto;
  object-fit: contain;
}

.governance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 22px;
  align-items: stretch;
}

.governance-feature,
.document-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(18, 33, 48, 0.06);
}

.governance-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  overflow: hidden;
}

.governance-feature img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.governance-feature > div {
  padding: 32px;
  align-self: center;
}

.governance-feature h3,
.document-card h3 {
  margin-bottom: 12px;
  font-size: 1.42rem;
  line-height: 1.18;
}

.governance-feature p,
.document-card p {
  color: var(--muted);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.document-grid {
  display: grid;
  gap: 18px;
}

.document-card {
  padding: 26px;
}

.document-card span:first-child {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.muted-link {
  color: var(--muted);
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(18, 33, 48, 0.06);
}

.cta-panel h3 {
  margin-bottom: 6px;
}

.cta-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.image-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 14px;
}

.image-mosaic figure {
  position: relative;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #122130;
  box-shadow: 0 12px 34px rgba(18, 33, 48, 0.08);
}

.image-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-mosaic figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 19, 31, 0.72), rgba(8, 19, 31, 0.02) 58%);
}

.image-mosaic figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  color: var(--white);
  font-weight: 760;
}

.cta-band {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 56, 92, 0.97), rgba(44, 114, 95, 0.9)),
    url("../img/hero-estrutura-metalica.jpeg") center / cover;
}

.cta-band .section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) auto;
  gap: 34px;
  align-items: center;
}

.cta-band h2 {
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.cta-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.footer {
  color: rgba(255, 255, 255, 0.78);
  background: #101923;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) minmax(132px, 0.45fr) minmax(150px, 0.55fr) minmax(250px, 0.85fr) minmax(170px, 0.6fr);
  gap: 24px;
  padding: 52px 0;
}

.footer img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 124px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer a,
.footer p,
.footer-link {
  color: rgba(255, 255, 255, 0.72);
}

.footer a,
.footer-link {
  display: block;
  margin: 7px 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.footer-inner > div {
  min-width: 0;
}

.footer-inner > div:nth-child(4) {
  min-width: 0;
}

.footer-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.footer a:hover,
.footer-link:hover {
  color: var(--white);
}

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

.form-feedback {
  margin: 12px 0 0;
  color: var(--blue-strong);
  font-weight: 650;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.denuncia-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 16, 24, 0.76);
}

.denuncia-modal.is-open {
  display: grid;
}

.denuncia-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 32px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.denuncia-dialog h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.08;
}

.denuncia-dialog p {
  color: var(--muted);
}

.denuncia-dialog label {
  display: block;
  margin-top: 20px;
  font-weight: 760;
}

.denuncia-dialog textarea {
  width: 100%;
  min-height: 190px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.denuncia-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-strong);
  background: var(--white);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.source-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.mobile-nav-button {
  display: none;
}

@media (max-width: 1120px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .nav {
    min-height: 68px;
  }

  .mobile-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .hero-strip,
  .grid-3,
  .grid-4,
  .service-grid,
  .work-grid,
  .client-grid,
  .governance-layout,
  .governance-feature,
  .image-mosaic,
  .section-head,
  .split,
  .project-detail,
  .cta-band .section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

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

  .governance-feature img {
    min-height: 280px;
  }

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

  .spec-list li,
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 30px;
    height: 40px;
  }

  .brand-name {
    font-size: 0.92rem;
    letter-spacing: 0.05em;
  }

  .hero,
  .hero.compact {
    min-height: 560px;
  }

  .hero-inner {
    padding: 76px 0 48px;
  }

  .section {
    padding: 62px 0;
  }

  .panel,
  .service-card,
  .work-card-body,
  .fact-box,
  .document-card,
  .denuncia-dialog {
    padding: 20px;
  }

  .denuncia-modal {
    padding: 12px;
  }

  .denuncia-close {
    top: 10px;
    right: 10px;
  }
}
