/* ==========================================================================
   style.css — estilo do site publico (layouts/site.blade.php)
   CSS puro, sem build. Fontes (Playfair Display e Inter) vem do Google Fonts no layout.
   ========================================================================== */

:root {
  --bg: #14110f;
  --bg-alt: #1d1916;
  --surface: #262019;
  --cream: #f3ead8;
  --text: #e9e1d1;
  --muted: #b6aa95;
  --gold: #c9a24a;
  --gold-light: #e2c47a;
  --burgundy: #7a1f2b;
  --line: rgba(201, 162, 74, .25);
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --max: 1160px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 17, 15, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand img { width: 230px; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--cream); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.main-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
  display: none;
}
.main-nav.open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.main-nav a { display: block; padding: 10px 4px; color: var(--text); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--gold-light); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; letter-spacing: .02em;
  transition: background .2s, color .2s, transform .2s;
}
.btn-gold { background: var(--gold); color: #1a1408; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--gold); color: var(--gold-light); }
.btn-outline:hover { background: rgba(201, 162, 74, .12); }
.main-nav .btn { margin-top: 8px; justify-content: center; color: #1a1408; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(122, 31, 43, .55), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(201, 162, 74, .18), transparent 55%),
    var(--bg);
}
.hero .container { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.hero h1, .section-title {
  font-family: var(--font-display); font-weight: 800; color: var(--cream);
  line-height: 1.15; margin: 0 0 18px;
}
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
.hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 600; }
.hero p.lead { color: var(--muted); font-size: 1.08rem; max-width: 34em; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.poster {
  margin: 0; justify-self: center; max-width: 440px; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--surface);
}
.poster button { all: unset; cursor: zoom-in; display: block; }
.poster figcaption { padding: 12px 16px; font-size: .88rem; color: var(--muted); text-align: center; }

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.section-head { text-align: center; margin-bottom: 44px; }
.divider { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 0 auto; border-radius: 2px; }

.about { display: grid; gap: 40px; }
.about-text p { margin: 0 0 18px; color: var(--text); }
.about-text p:first-child::first-letter {
  font-family: var(--font-display); font-size: 3.4em; float: left;
  line-height: .9; padding: 6px 10px 0 0; color: var(--gold);
}
.about-aside { display: grid; gap: 20px; align-content: start; }
.crest { width: 260px; max-width: 80%; height: auto; margin: 0 auto; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .55)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.affiliation h3 { margin: 0 0 16px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.affiliation img { width: 200px; margin: 0 auto; }

/* Gallery: one row per year */
.year {
  display: grid; gap: 16px; align-items: start;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.year:first-child { border-top: 0; padding-top: 0; }
.year-label {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: 2.4rem; line-height: 1; color: var(--gold-light);
}
.year-label span {
  display: block; margin-top: 8px; font-family: var(--font-body); font-weight: 600;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 16px; }
.gallery button {
  all: unset; cursor: zoom-in; position: relative; display: block;
  border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4;
  border: 1px solid var(--line); background: var(--surface);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
/* Cartazes horizontais (ex.: 2020) */
.gallery.wide { grid-template-columns: repeat(2, minmax(0, 340px)); }
.gallery.wide button { aspect-ratio: 16 / 10; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .tag {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(20, 17, 15, .82); color: var(--gold-light);
  font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}


/* Footer */
.site-footer { padding: 56px 0 32px; text-align: center; border-top: 1px solid var(--line); }
.site-footer .brand img { width: 220px; margin: 0 auto 22px; }
.site-footer .brand .footer-crest { width: 120px; height: auto; margin-bottom: 16px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .5)); }
.social { display: flex; justify-content: center; gap: 12px; margin-bottom: 26px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--cream);
  transition: background .2s, color .2s;
}
.social a:hover { background: var(--gold); color: #1a1408; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer p { margin: 4px 0; color: var(--muted); font-size: .9rem; }
.site-footer .credit a { color: var(--muted); text-decoration: none; }
.site-footer .credit a:hover { color: var(--gold-light); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, .92);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 100%; width: auto; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.6rem; line-height: 1;
}

/* Desktop */
@media (min-width: 640px) {
  .year { grid-template-columns: 160px 1fr; gap: 24px; }
  .year-label { font-size: 3rem; position: sticky; top: 96px; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; display: block; background: none; border: 0; }
  .main-nav ul { flex-direction: row; align-items: center; padding: 0; gap: 26px; }
  .main-nav a { padding: 6px 0; }
  .main-nav .btn { margin: 0; padding: 9px 18px; }
  .hero { padding: 90px 0 110px; }
  .hero .container { grid-template-columns: 1.1fr .9fr; }
  .about { grid-template-columns: 1.6fr 1fr; gap: 56px; }
  .gallery { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
