:root {
  --navy-900: #12162e;
  --navy-800: #1b2247;
  --navy-700: #2a3363;
  --paper: #f7f6f2;
  --paper-alt: #efede7;
  --white: #fff;
  --gold: #c9a876;
  --gold-dark: #a8875a;
  --teal: #4fd1ae;
  --ink: #12162e;
  --ink-soft: #5b6178;
  --line: #e1dfda;
  --radius: 3px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

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

.wrap {
  width: min(1180px, calc(100% - 56px));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 23px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
}

.btn-gold:hover {
  background: var(--white);
}

.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--gold);
  color: var(--navy-900);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 56px));
  margin-inline: auto;
  padding: 14px 0;
}

.logo-img {
  width: clamp(220px, 25vw, 260px);
  height: 52px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
}

.site-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--navy-900);
}

.project-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 70px;
  background: var(--navy-900);
  color: var(--white);
}

.project-hero::after {
  position: absolute;
  top: -230px;
  right: -140px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(201, 168, 118, 0.22);
  border-radius: 50%;
  content: "";
}

.breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: 42px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

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

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.project-hero h1 {
  margin-bottom: 18px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.project-hero h1 span {
  color: var(--gold);
}

.hero-copy > p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.gallery-nav-wrap {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

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

.gallery-nav a {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 20px;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.gallery-nav a:first-child {
  border-left: 1px solid var(--line);
}

.gallery-nav a:hover,
.gallery-nav a[aria-current="page"] {
  background: var(--paper-alt);
  color: var(--navy-900);
}

.gallery-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px var(--gold);
}

.gallery-section {
  padding: 76px 0 92px;
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.gallery-head h2 {
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.12;
}

.gallery-head p {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 15px;
}

.gallery-count {
  flex-shrink: 0;
  color: var(--gold-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.gallery-open {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  background: var(--navy-800);
  cursor: zoom-in;
}

.gallery-open::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(18, 22, 46, 0.82);
  color: var(--white);
  content: "Ampliar";
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-open img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-open:hover img {
  transform: scale(1.035);
}

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

.gallery-card figcaption {
  padding: 18px 20px 20px;
}

.gallery-card h3 {
  margin-bottom: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.gallery-card p {
  color: var(--ink-soft);
  font-size: 13px;
}

.cta-band {
  background: var(--navy-900);
  color: var(--white);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 58px 0;
}

.cta-inner h2 {
  max-width: 620px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 800;
  line-height: 1.15;
}

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

.site-footer {
  padding: 48px 0 26px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.footer-logo {
  width: 280px;
  height: 58px;
  object-fit: cover;
  object-position: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--navy-900);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.wa-float {
  position: fixed;
  z-index: 60;
  right: 26px;
  bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  color: var(--navy-900);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.lightbox {
  width: min(1080px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(6, 8, 20, 0.88);
  backdrop-filter: blur(4px);
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(18, 22, 46, 0.82);
  color: var(--white);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  background: #090c1d;
}

.lightbox p {
  padding: 16px 22px 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

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

  .gallery-nav a:nth-child(3) {
    border-left: 1px solid var(--line);
  }

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

  .cta-inner,
  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .wrap,
  .nav-inner {
    width: min(100% - 36px, 1180px);
  }

  .nav-inner {
    gap: 12px;
  }

  .logo-img {
    width: 166px;
    height: 35px;
  }

  .nav-inner > .btn {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .project-hero {
    padding: 56px 0 54px;
  }

  .breadcrumb {
    margin-bottom: 32px;
  }

  .gallery-nav a {
    min-height: 64px;
    padding: 13px 12px;
    font-size: 11.5px;
  }

  .gallery-section {
    padding: 58px 0 70px;
  }

  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .gallery-open::after {
    opacity: 1;
    transform: none;
  }

  .footer-logo {
    width: 240px;
    height: 50px;
  }

  .foot-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
