/* ============================================
   PORTFOLIO.CSS — Página portfolio.html + teaser home
   ============================================ */

/* ── Link ativo no nav ── */
.nav-active {
  color: var(--gold) !important;
  font-weight: 700;
}

/* ────────────────────────────────────────────
   HERO DA PÁGINA DE PORTFÓLIO
──────────────────────────────────────────── */
.portfolio-page body,
.portfolio-hero {
  background: var(--black);
}

.portfolio-hero {
  padding: 160px 24px 80px;
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(98,0,0,0.18) 0%,
    transparent 100%
  ),
  radial-gradient(ellipse 80% 60% at 50% 0%, rgba(169,25,25,0.12), transparent 70%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.portfolio-hero-content .section-tag {
  display: inline-block;
  margin-bottom: 14px;
}

.portfolio-hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}

.portfolio-hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
}

/* ────────────────────────────────────────────
   BLOCOS DE PROJETO + PHOTO GRID
   (usados em portfolio.html e também no teaser da home)
──────────────────────────────────────────── */
.project-block {
  margin-bottom: 64px;
}
.project-block:last-child { margin-bottom: 0; }

.project-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245,185,50,0.18);
}
.pb-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}
.pb-label span {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  margin-left: 6px;
}
.pb-tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245,185,50,0.1);
  border: 1px solid rgba(245,185,50,0.25);
  padding: 5px 14px;
  border-radius: 20px;
}

.photo-grid {
  display: grid;
  gap: 10px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: #111;
}
.photo-grid img:hover {
  transform: scale(1.025);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 2;
  position: relative;
}
.photo-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
.photo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .photo-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .photo-grid-2,
  .photo-grid-3,
  .photo-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pb-label { font-size: 0.95rem; }
  .pb-label span { display: none; }
  .project-block { margin-bottom: 44px; }
}

/* ────────────────────────────────────────────
   ÁREA PRINCIPAL DO PORTFÓLIO
──────────────────────────────────────────── */
.portfolio-main {
  padding: 72px 0 96px;
  background: var(--black);
}

/* ────────────────────────────────────────────
   CTA FINAL
──────────────────────────────────────────── */
.portfolio-cta-final {
  margin-top: 80px;
  padding: 56px 40px;
  text-align: center;
  border: 1px solid rgba(245,185,50,0.18);
  border-radius: var(--radius-lg);
  background: rgba(245,185,50,0.04);
}

.portfolio-cta-final p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-body);
  margin-bottom: 24px;
}

/* ────────────────────────────────────────────
   TEASER NA HOME
──────────────────────────────────────────── */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
  margin-bottom: 40px;
}

.teaser-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
  background: #111;
  text-decoration: none;
}

/* A primeira foto ocupa 2 linhas e 1 coluna (esquerda) */
.teaser-big {
  grid-row: 1 / 3;
  aspect-ratio: unset;
}

/* A última foto ocupa 1 linha e 2 colunas (direita) */
.teaser-big-right {
  grid-column: 2 / 4;
  aspect-ratio: 16/7;
}

.teaser-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.teaser-item:hover img {
  transform: scale(1.06);
}

.teaser-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.teaser-item:hover .teaser-overlay {
  opacity: 1;
}

.teaser-overlay span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
}

.portfolio-cta {
  text-align: center;
  margin-top: 8px;
}

/* ── Responsivo teaser ── */
@media (max-width: 768px) {
  .teaser-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: unset;
  }
  .teaser-big { grid-row: unset; aspect-ratio: 4/3; }
  .teaser-big-right { grid-column: unset; aspect-ratio: 4/3; }
}

@media (max-width: 480px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .portfolio-hero { padding: 130px 16px 60px; }
  .portfolio-cta-final { padding: 36px 20px; }
}
