/* ===================================================
   WELCOME TO ESTREITO — Cinematic Design System
   Figueirense FFC | Black · White · Green
   =================================================== */

/* ---------- TOKENS ---------- */
:root {
  --bg:           #000000;
  --surface:      #0a0a0a;
  --surface-2:    #111111;
  --text:         #ffffff;
  --muted:        #6e6e6e;
  --muted-light:  #a0a0a0;
  --accent:       #2d7a4f;
  --accent-light: #4ca870;
  --accent-dim:   rgba(45, 122, 79, 0.18);
  --line:         #1c1c1c;
  --line-bright:  #2a2a2a;
  --max:          1240px;
  --max-wide:     1440px;
  --hero-font:    "Bebas Neue", Impact, sans-serif;
  --body-font:    "Space Grotesk", "Segoe UI", sans-serif;
  --serif-font:   "Cormorant Garamond", "Times New Roman", serif;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--body-font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

/* ---------- FILM GRAIN ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.038;
  mix-blend-mode: overlay;
}

/* ---------- SCROLL REVEAL ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.92);
  border-color: var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
  flex-shrink: 0;
}

.header-title {
  font-family: var(--hero-font);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--text);
  white-space: nowrap;
}

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

.site-nav a {
  font-family: var(--body-font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  border-color: var(--line-bright);
  background: rgba(255,255,255,0.05);
}

.site-nav a.nav-cta {
  color: var(--accent-light);
  border-color: rgba(45, 122, 79, 0.4);
}

.site-nav a.nav-cta:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Focus visible */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.04);
  transition: transform 0.1s linear;
  filter: grayscale(0.28) contrast(1.12) brightness(0.76);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(0,0,0,0.22) 0%, transparent 70%),
    linear-gradient(to bottom,
      rgba(0,0,0,0.08) 0%,
      rgba(0,0,0,0.12) 40%,
      rgba(0,0,0,0.72) 72%,
      rgba(0,0,0,0.96) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 5vw, 60px) clamp(20px, 5vw, 60px) clamp(28px, 5vw, 60px);
  max-width: var(--max-wide);
  width: 100%;
  margin: 0 auto;
}

/* FX badge + PRESENTS */
.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.fx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hero-font);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #000;
  background: #d4a017;
  padding: 3px 9px 2px;
  border-radius: 3px;
  font-weight: 900;
  line-height: 1;
}

.hero-network-label {
  font-family: var(--body-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* Title */
.hero-title {
  font-family: var(--hero-font);
  font-size: clamp(4.5rem, 16vw, 13.5rem);
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
  margin-bottom: 18px;
}

.hero-line {
  display: block;
}

.hero-tagline {
  font-family: var(--serif-font);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: rgba(255,255,255,0.82);
  margin-bottom: 18px;
  max-width: 60ch;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  right: clamp(20px, 5vw, 60px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--muted-light);
  transition: color 0.2s;
}

.scroll-cue:hover { color: var(--text); }

.scroll-cue-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, currentColor);
  animation: cue-pulse 2s ease-in-out infinite;
}

@keyframes cue-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* =============================================
   STATS STRIP
   ============================================= */
.stats-strip {
  background: var(--bg);
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
  overflow: hidden;
}

.stats-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px 20px;
  text-align: center;
}

.stat-value {
  font-family: var(--hero-font);
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  letter-spacing: 0.05em;
  color: var(--accent-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  background: var(--line-bright);
  align-self: stretch;
  margin: 16px 0;
}

/* =============================================
   CHAPTER BASE
   ============================================= */
.chapter {
  position: relative;
  padding: clamp(60px, 10vw, 120px) 0;
  overflow: hidden;
}

.chapter-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.chapter-label {
  font-family: var(--body-font);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--hero-font);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 28px;
}

.section-lead {
  font-family: var(--serif-font);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-style: italic;
  color: var(--muted-light);
  margin-bottom: 24px;
  max-width: 64ch;
}

/* =============================================
   MANIFESTO
   ============================================= */
.chapter-manifesto {
  background: var(--surface);
  text-align: center;
}

/* Diagonal stripe texture */
.stripe-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 28px,
    rgba(255,255,255,0.018) 28px,
    rgba(255,255,255,0.018) 30px
  );
}

/* Badge watermark */
.badge-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.04;
  filter: grayscale(1);
  z-index: 0;
}

.badge-watermark img {
  width: 480px;
  max-width: 70vw;
  height: auto;
}

.chapter-manifesto .chapter-inner {
  position: relative;
  z-index: 1;
}

.manifesto-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.manifesto-line {
  font-family: var(--serif-font);
  font-size: clamp(1.3rem, 3.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.28;
  color: var(--text);
  padding: 20px 0;
  border-top: 1px solid var(--line-bright);
  quotes: none;
}

.manifesto-line:last-child {
  border-bottom: 1px solid var(--line-bright);
  color: var(--accent-light);
}

/* =============================================
   ROOTS
   ============================================= */
.chapter-roots {
  background: var(--bg);
}

.roots-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.roots-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.roots-year {
  font-family: var(--hero-font);
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 0.82;
  color: var(--text);
  letter-spacing: -0.01em;
  text-shadow: 0 0 80px rgba(45,122,79,0.3);
}

.roots-badge {
  width: clamp(70px, 12vw, 110px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
  opacity: 0.9;
}

.roots-right {
  border-left: 2px solid var(--accent);
  padding-left: clamp(20px, 4vw, 40px);
}

.roots-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.roots-list li {
  font-size: 0.96rem;
  color: var(--muted-light);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  padding-left: 16px;
}

.roots-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 16px;
  font-size: 0.42rem;
  color: var(--accent-light);
}

/* =============================================
   TIMELINE
   ============================================= */
.chapter-timeline {
  background: var(--surface);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.timeline-card {
  background: var(--surface);
  padding: 28px 24px;
  transition: background 0.25s;
}

.timeline-card:hover {
  background: var(--surface-2);
}

.tl-year {
  display: block;
  font-family: var(--hero-font);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: var(--accent-light);
  margin-bottom: 6px;
  line-height: 1;
}

.tl-title {
  font-family: var(--serif-font);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.tl-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =============================================
   CARDS (Why Now / City+Club)
   ============================================= */
.chapter-why {
  background: var(--bg);
}

.chapter-fit {
  background: var(--surface);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 48px;
}

.card {
  background: var(--surface-2);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.25s;
}

.chapter-why .card { background: var(--surface); }
.chapter-why .card:hover { background: var(--surface-2); }
.chapter-fit .card:hover { background: rgba(255,255,255,0.02); }

.card-icon {
  font-size: 0.55rem;
  color: var(--accent-light);
  letter-spacing: 0;
}

.card-title {
  font-family: var(--hero-font);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
}

.card-text {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 48ch;
}

.citations {
  margin-top: 32px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.citations li {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.citations li::before {
  content: counter(list-item, decimal) ".";
  counter-increment: list-item;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.citations a {
  color: var(--muted-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.citations a:hover {
  color: var(--text);
}

/* =============================================
   GALLERY
   ============================================= */
.chapter-gallery {
  background: var(--bg);
  padding-bottom: 0;
}

.gallery-header {
  margin-bottom: 40px;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  margin: 0;
}

.gi-wide  { grid-column: span 8; }
.gi-narrow { grid-column: span 4; }

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.65) contrast(1.38) brightness(0.78);
  transform: scale(1.02);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: grayscale(0.1) contrast(1.2) brightness(0.9);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   JOIN + SHARE
   ============================================= */
.chapter-join {
  background: var(--bg);
  padding: clamp(80px, 14vw, 160px) 0;
  text-align: center;
  position: relative;
}

.join-bg-wrap {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(45, 122, 79, 0.06), transparent 70%);
}

.join-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.join-badge {
  width: clamp(72px, 10vw, 100px);
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 20px rgba(45,122,79,0.3));
}

.join-hashtag {
  font-family: var(--hero-font);
  font-size: clamp(2.8rem, 9vw, 7rem);
  letter-spacing: 0.04em;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 0 0 60px rgba(76, 168, 112, 0.35);
}

.join-lead {
  font-family: var(--serif-font);
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-style: italic;
  color: var(--muted-light);
  margin-bottom: 36px;
  max-width: 58ch;
}

.share-box {
  width: 100%;
  max-width: 580px;
  background: var(--surface);
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
}

.share-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  background: var(--surface-2);
  border: 1px solid rgba(45, 122, 79, 0.25);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: transparent;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  padding: 10px 16px;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}

.btn:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border-color: rgba(255,255,255,0.35);
}

.btn.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.share-note {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 48px) 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--hero-font);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--muted-light);
  margin-bottom: 4px;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.7;
}

.site-footer p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 80ch;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .roots-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .roots-left {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
  }

  .roots-year {
    font-size: clamp(5rem, 18vw, 8rem);
  }

  .roots-right {
    border-left: none;
    border-top: 2px solid var(--accent);
    padding-left: 0;
    padding-top: 24px;
  }

  .gi-wide   { grid-column: span 12; }
  .gi-narrow { grid-column: span 6; }

  .stats-inner {
    flex-wrap: wrap;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 1 1 45%;
    border-bottom: 1px solid var(--line-bright);
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 10px 16px;
  }

  .header-title {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    font-size: 0.6rem;
    padding: 6px 8px;
    letter-spacing: 0.08em;
  }

  .hero-content {
    padding: 16px 16px 24px;
  }

  .gi-wide,
  .gi-narrow {
    grid-column: span 12;
  }

  .gallery-item img {
    min-height: 220px;
  }

  .gallery-item figcaption {
    opacity: 1;
    transform: translateY(0);
  }

  .chapter-inner {
    padding: 0 16px;
  }

  .hero-title {
    font-size: clamp(3.8rem, 22vw, 6rem);
  }
}

/* =============================================
   SKIP LINK (accessibility)
   ============================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}

.skip-link:focus { top: 10px; }
