/* =====================================================================
   EL CLUB — styles.css
   Premium editorial landing. Navy / Rooster Red / Black + grain.
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --navy:   #002e54;
  --red:    #f13e5a;
  --coal:   #353535;
  --white:  #ffffff;
  --bg:     #0a0a0a;

  --muted:  rgba(255, 255, 255, 0.55);
  --faint:  rgba(255, 255, 255, 0.32);
  --border: rgba(255, 255, 255, 0.10);

  --ease:   cubic-bezier(0.16, 1, 0.3, 1);

  --maxw:   1320px;
  --gutter: clamp(20px, 5vw, 80px);
  /* single symmetric container: gutter on narrow, centered maxw on wide */
  --cw:     min(100% - (var(--gutter) * 2), var(--maxw));

  --nav-h:  84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis handles smoothing */
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

::selection { background: var(--red); color: #fff; }

/* ---------- GRAIN OVERLAY ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* =====================================================================
   TYPOGRAPHY HELPERS
   ===================================================================== */
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

/* Shared display title look */
.hero__title,
.statement__title,
.section-head__title,
.manifiesto__title,
.cta__title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  --pad-y: 16px;
  --pad-x: 30px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  will-change: transform;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease);
}

.btn--red {
  background: var(--red);
  color: #fff;
}
.btn--red:hover { background: #ff5870; }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn--lg {
  --pad-y: 22px;
  --pad-x: 44px;
  font-size: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}
.link-arrow span { transition: transform 0.4s var(--ease); color: var(--red); }
.link-arrow:hover span { transform: translateX(8px); }

/* =====================================================================
   SCROLL PROGRESS
   ===================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  z-index: 10000;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* =====================================================================
   CUSTOM CURSOR
   ===================================================================== */
.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .cursor.is-active { opacity: 1; }

  .cursor__dot,
  .cursor__ring {
    position: absolute;
    top: 0; left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor__dot {
    width: 5px; height: 5px;
    background: var(--red);
    mix-blend-mode: difference;
  }
  .cursor__ring {
    width: 32px; height: 32px;
    border: 1px solid var(--red);
    transition: width 0.3s var(--ease), height 0.3s var(--ease),
                background 0.3s var(--ease), border-color 0.3s var(--ease);
  }
  .cursor.is-hover .cursor__ring {
    width: 52px; height: 52px;
    background: rgba(241, 62, 90, 0.10);
  }

  /* hide native cursor on interactive surfaces only when custom cursor runs */
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button,
  body.has-cursor [data-magnetic] { cursor: none; }
}

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner {
  width: var(--cw);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: block;
  height: 38px;
  width: auto;
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.45));
  transition: filter 0.3s var(--ease), height 0.3s var(--ease);
}
/* once the nav has a solid blurred bg, the glow is no longer needed */
.nav.is-stuck .nav-logo { filter: none; }

.footer-logo {
  display: block;
  height: 46px;
  width: auto;
  margin-bottom: 18px;
}
.nav__links {
  display: flex;
  gap: 38px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
}
.nav__links a:hover {
  color: var(--red);
  text-shadow: 0 0 18px rgba(241, 62, 90, 0.45), 0 1px 3px rgba(0, 0, 0, 0.4);
}
/* once nav has a solid blurred bg, the glow is no longer needed */
.nav.is-stuck .nav__links a { text-shadow: none; }
.nav__cta { --pad-y: 12px; --pad-x: 24px; font-size: 12px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(48px, 8vh, 96px);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: -10% 0 0 0;   /* extra top room for parallax */
  z-index: -2;
  will-change: transform;
}
.hero__img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(0, 46, 84, 0.92) 0%, rgba(0, 46, 84, 0.30) 40%, rgba(10, 10, 10, 0.10) 70%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.55) 0%, transparent 30%),
    linear-gradient(to right, rgba(10, 10, 10, 0.45) 0%, transparent 45%);
}
.hero__content {
  position: relative;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}
.hero__content .eyebrow {
  margin-bottom: 26px;
  color: #fff;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero__title {
  font-size: clamp(58px, 10vw, 130px);
  margin-bottom: 34px;
}
.line-mask {
  display: block;
  overflow: hidden;
}
.line {
  display: block;
  transform: translateY(110%);
}
.line--red { color: var(--red); }

.hero__sub {
  max-width: 460px;
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 38px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 40%;
  background: var(--red);
  animation: scrollDrop 2s var(--ease) infinite;
}
@keyframes scrollDrop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* hero entrance fade targets start hidden (JS reveals) */
[data-hero-fade] { opacity: 0; transform: translateY(24px); }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
  overflow: hidden;
  background: var(--bg);
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.marquee__group span {
  font-weight: 800;
  font-size: clamp(28px, 4vw, 56px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 0 28px;
  white-space: nowrap;
}
.marquee__group i {
  color: var(--red);
  font-style: normal;
  font-size: clamp(20px, 3vw, 40px);
}

/* =====================================================================
   STATEMENT (text + media)
   ===================================================================== */
.statement {
  width: var(--cw);
  margin: 0 auto;
  padding: clamp(90px, 13vh, 180px) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.statement--reverse .statement__media { order: -1; }

.statement__text { max-width: 520px; }
.statement__text .eyebrow { margin-bottom: 24px; }
.statement__title {
  font-size: clamp(34px, 4.4vw, 62px);
  margin-bottom: 28px;
}
.statement__body {
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--muted);
}

.statement__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
}
.statement__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.8s var(--ease);
}
.statement__media:hover img { transform: scale(1.05); }

/* =====================================================================
   STATS MARQUEE (black band, looping data)
   ===================================================================== */
.stats-marquee {
  padding: clamp(26px, 4vh, 40px) 0;
}
.stats-group .stat-item {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 0 clamp(28px, 4vw, 48px);
  font-weight: 300;
  font-size: clamp(20px, 2.8vw, 40px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
}
.stats-group .stat-item b {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.stats-group i {
  color: rgba(255, 255, 255, 0.22);
  font-style: normal;
  font-size: clamp(16px, 2vw, 30px);
}

/* =====================================================================
   SECTION HEAD (shared)
   ===================================================================== */
.section-head {
  width: var(--cw);
  margin: 0 auto;
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-head__title {
  font-size: clamp(40px, 6vw, 92px);
}

/* =====================================================================
   DISCIPLINAS (cards)
   ===================================================================== */
.disciplinas { padding: clamp(90px, 13vh, 170px) 0; }
.disciplinas .section-head { margin-bottom: clamp(40px, 6vh, 70px); }

.cards {
  width: var(--cw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.disciplinas__extra {
  width: var(--cw);
  margin: clamp(36px, 5vh, 56px) auto 0;
  font-weight: 300;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--muted);
  letter-spacing: 0.01em;
}
.disciplinas__extra strong {
  color: #fff;
  font-weight: 600;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--coal);
  cursor: pointer;
}
.card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.10) 55%);
  transition: opacity 0.5s var(--ease);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); filter: brightness(0.7); }

.card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px;
  z-index: 1;
}
.card__index {
  display: block;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 10px;
}
.card__title {
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 34px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}
.card__desc {
  margin-top: 14px;
  max-width: 90%;
  font-weight: 300;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.card:hover .card__desc { opacity: 1; transform: translateY(0); }

/* =====================================================================
   MANIFIESTO
   ===================================================================== */
.manifiesto {
  text-align: center;
  padding: clamp(120px, 20vh, 240px) var(--gutter);
  max-width: 1100px;
  margin: 0 auto;
}
.manifiesto__title {
  font-size: clamp(38px, 6.4vw, 100px);
  letter-spacing: -0.04em;
}
.manifiesto__sub {
  margin: 40px auto 0;
  max-width: 480px;
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--muted);
}

/* =====================================================================
   HORARIOS
   ===================================================================== */
.horarios { padding: clamp(80px, 11vh, 150px) 0; }
.horarios .section-head { margin-bottom: clamp(40px, 6vh, 64px); }

.schedule {
  width: var(--cw);
  margin: 0 auto;
}
.schedule__group { margin-bottom: clamp(40px, 6vh, 72px); }
.schedule__group:last-child { margin-bottom: 0; }
.schedule__cat {
  display: block;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.schedule__row {
  display: grid;
  grid-template-columns: 0.9fr 2fr;
  gap: 20px 40px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.schedule__disc {
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 32px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.schedule__when {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.schedule__when span {
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(255, 255, 255, 0.80);
  font-variant-numeric: tabular-nums;
}
.schedule__when b {
  display: inline-block;
  min-width: 92px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.schedule__when--muted { color: var(--faint) !important; font-style: italic; }

/* =====================================================================
   CTA FINAL
   ===================================================================== */
.cta {
  position: relative;
  text-align: center;
  padding: clamp(120px, 20vh, 230px) var(--gutter);
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(241, 62, 90, 0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.cta .eyebrow { margin-bottom: 24px; }
.cta__title {
  font-size: clamp(46px, 8vw, 120px);
  margin-bottom: 28px;
}
.cta__sub {
  max-width: 440px;
  margin: 0 auto 44px;
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--muted);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(50px, 7vh, 80px) var(--gutter) 36px;
}
.footer__top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}
.footer__brand p {
  margin-top: 14px;
  font-weight: 300;
  font-size: 14px;
  color: var(--muted);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}
.footer__links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--faint);
}
.footer__bottom a { color: var(--red); }

/* =====================================================================
   REVEAL SYSTEM
   ===================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

[data-reveal-clip] { overflow: hidden; }
[data-reveal-clip] img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.08);
  transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease);
}
[data-reveal-clip].is-revealed img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* split text words */
.split .word,
.split-big .word { display: inline-block; overflow: hidden; }
.split .word > span,
.split-big .word > span { display: inline-block; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --nav-h: 70px; }

  .nav__links { display: none; }
  .nav-logo { height: 30px; }
  .footer-logo { height: 40px; }

  .hero { justify-content: flex-end; padding-bottom: 110px; }
  .hero__title { font-size: clamp(46px, 15vw, 84px); }
  .hero__scroll { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .statement {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .statement--reverse .statement__media { order: 0; }
  .statement__media { aspect-ratio: 4 / 3; }

  .cards { grid-template-columns: 1fr; }
  /* on touch: reveal card descriptions by default */
  .card__desc { opacity: 1; transform: none; }

  .schedule__row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 0;
  }
  .schedule__when b { min-width: 84px; }

  .footer__top { flex-direction: column; gap: 32px; }
}

/* =====================================================================
   REDUCED MOTION — only kill aggressive motion, keep layout intact
   (NOTE: reveals/hero are force-shown by JS, not gated here)
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line::after { animation: none; }
}
