/* NSL Confinamento/EPE · página de introdução */
:root {
  --verde: #0c391c;
  --verde-2: #0d6342;
  --verde-escuro: #072512;
  --dourado: #d2ae6d;
  --dourado-claro: #ead6ae;
  --creme: #f7f3ea;
  --texto: #1d2a21;
  --texto-suave: #4c5a50;
  --raio: 14px;
  --sombra: 0 10px 30px -12px rgba(7, 37, 18, .35);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--texto);
  background: var(--creme);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--verde-2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--dourado); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(12, 57, 28, .35) 0%, rgba(7, 37, 18, .72) 75%),
    linear-gradient(180deg, rgba(7, 37, 18, .5) 0%, rgba(7, 37, 18, .15) 40%, rgba(7, 37, 18, .85) 100%);
}
.langs {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  display: flex; gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(7, 37, 18, .45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(210, 174, 109, .35);
}
.langs a {
  display: block;
  border-radius: 50%;
  overflow: hidden;
  width: 30px; height: 30px;
  opacity: .82;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
  transition: opacity .2s, box-shadow .2s, transform .2s;
}
.langs a:hover, .langs a:focus-visible { opacity: 1; transform: translateY(-1px); outline: none; box-shadow: 0 0 0 2px var(--dourado-claro); }
.langs a[aria-current="page"] { opacity: 1; box-shadow: 0 0 0 2px var(--dourado); }
.langs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero__content {
  padding: 96px 24px 120px;
  max-width: 880px;
  display: flex; flex-direction: column; align-items: center;
}
.hero__logo {
  width: clamp(170px, 26vw, 260px);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .35));
  animation: fadeUp .9s ease-out both;
}
.hero__badge {
  margin: 36px 0 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(210, 174, 109, .55);
  border-radius: 999px;
  background: rgba(7, 37, 18, .45);
  backdrop-filter: blur(6px);
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dourado-claro);
  animation: fadeUp .9s .15s ease-out both;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dourado);
  box-shadow: 0 0 0 0 rgba(210, 174, 109, .7);
  animation: pulse 2s infinite;
}
.hero__title {
  margin: 22px 0 0;
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.01em;
  text-wrap: balance;
  animation: fadeUp .9s .3s ease-out both;
}
.hero__title span { color: var(--dourado); }
.hero__sub {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
  animation: fadeUp .9s .45s ease-out both;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 32px;
  translate: -50% 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  transition: background .25s, border-color .25s;
  animation: bob 2.4s ease-in-out infinite;
}
.hero__scroll:hover { background: rgba(210, 174, 109, .25); border-color: var(--dourado); }

/* ---------- SOBRE ---------- */
.about { padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); }
.about .container { max-width: 900px; }
.about__text {
  margin: 0;
  font-size: clamp(1.08rem, 1.9vw, 1.35rem);
  line-height: 1.75;
  color: var(--texto-suave);
  text-wrap: pretty;
}
.about__text strong { color: var(--verde); font-weight: 700; }

/* ---------- GALERIA ---------- */
.gallery { padding: 0 0 clamp(72px, 10vw, 120px); }
.gallery__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 28px;
}
.gallery h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  color: var(--verde);
  font-weight: 800;
}
.filters {
  display: inline-flex; gap: 4px; padding: 4px;
  background: #fff; border-radius: 999px;
  box-shadow: 0 1px 0 rgba(12, 57, 28, .08), 0 4px 16px -8px rgba(12, 57, 28, .3);
}
.filter {
  border: 0; cursor: pointer;
  padding: 9px 20px; border-radius: 999px;
  background: transparent; color: var(--texto-suave);
  font-weight: 600; font-size: .9rem;
  transition: background .2s, color .2s;
}
.filter:hover { color: var(--verde); }
.filter.is-active { background: var(--verde); color: var(--dourado-claro); }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 14px;
}
.item { min-width: 0; }
.item--wide { grid-column: span 2; grid-row: span 2; }
.item--tall { grid-row: span 2; }
.item[hidden] { display: none; }
.grid.is-filtered .item--wide,
.grid.is-filtered .item--tall { grid-column: span 1; grid-row: span 1; }

.tile {
  position: relative;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  border-radius: var(--raio);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--verde);
  box-shadow: var(--sombra);
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s;
}
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 37, 18, .55));
  opacity: .7;
  transition: opacity .3s;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile:hover::after { opacity: 1; }
.tile:focus-visible { outline: 3px solid var(--dourado); outline-offset: 3px; }

.item[data-type="video"] .tile { cursor: pointer; }
.tile__play {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 64px; height: 64px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(7, 37, 18, .55);
  border: 2px solid var(--dourado);
  backdrop-filter: blur(4px);
  transition: scale .3s, background .3s;
}
.tile__play::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  translate: -35% -50%;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--dourado);
}
.tile:hover .tile__play { scale: 1.1; background: rgba(12, 57, 28, .8); }
.tile__time {
  position: absolute; right: 12px; bottom: 10px; z-index: 1;
  padding: 2px 9px; border-radius: 6px;
  background: rgba(0, 0, 0, .55);
  color: #fff; font-size: .78rem; font-weight: 600;
}

/* ---------- RODAPÉ ---------- */
.footer {
  background: var(--verde);
  color: rgba(255, 255, 255, .8);
  padding: 56px 0 40px;
  text-align: center;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer__logo { width: 120px; height: auto; margin-bottom: 6px; }
.footer__place { margin: 0; font-weight: 500; letter-spacing: .04em; }
.footer__ig {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(210, 174, 109, .5);
  color: var(--dourado-claro);
  text-decoration: none; font-weight: 600;
  transition: background .25s, color .25s;
}
.footer__ig:hover { background: var(--dourado); color: var(--verde); }
.footer__copy { margin: 18px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .5); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(4, 22, 11, .96);
  color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; animation: fadeIn .25s ease-out; }
.lightbox::backdrop { background: transparent; }
.lb__figure {
  grid-column: 2;
  margin: 0;
  height: 100dvh;
  padding: 56px 0 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-width: 0;
}
.lb__media { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.lb__media img, .lb__media video {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  background: #000;
}
.lb__caption {
  display: flex; gap: 16px; align-items: baseline; justify-content: center; flex-wrap: wrap;
  font-size: .95rem; text-align: center; padding: 0 12px;
}
.lb__count { color: var(--dourado); font-size: .82rem; font-weight: 600; letter-spacing: .08em; }
.lb__btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(210, 174, 109, .45);
  background: rgba(12, 57, 28, .6);
  color: var(--dourado-claro);
  cursor: pointer;
  transition: background .2s, color .2s;
  justify-self: center;
  z-index: 2;
}
.lb__btn:hover, .lb__btn:focus-visible { background: var(--dourado); color: var(--verde); outline: none; }
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb__prev { grid-column: 1; grid-row: 1; }
.lb__next { grid-column: 3; grid-row: 1; }
.lb__figure { grid-row: 1; }
.lb__close { position: absolute; top: 12px; right: 12px; }

/* ---------- ANIMAÇÕES ---------- */
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(210, 174, 109, .7); }
  70% { box-shadow: 0 0 0 10px rgba(210, 174, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(210, 174, 109, 0); }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .grid { grid-auto-rows: 150px; gap: 10px; }
  .gallery__head { align-items: flex-start; }
  .filters { width: 100%; }
  .filter { flex: 1; padding: 9px 10px; }
  .tile__play { width: 48px; height: 48px; }
  .tile__play::before { border-width: 8px 0 8px 13px; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb__figure { grid-column: 1; padding: 64px 8px 96px; }
  .lb__prev, .lb__next { position: absolute; bottom: 24px; grid-row: auto; }
  .lb__prev { left: calc(50% - 64px); }
  .lb__next { left: calc(50% + 16px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero__bg { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
