/* ============================================================
   BANG — Fight & Fitness
   Shared design system
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&family=Archivo+Black&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ink: #0a0a0a;
  --ink-2: #141414;
  --ink-3: #1c1c1c;
  --bone: #f4ede1;
  --bone-2: #ebe2d2;
  --paper: #fafafa;

  --orange: #ff5722;
  --orange-deep: #d63d0a;
  --orange-glow: #ff7a45;

  --magenta: #e6336b;
  --teal: #14b3c4;
  --yellow: #ffc107;

  --text: #f4ede1;
  --text-muted: #8a8580;
  --text-dim: #5a554f;

  /* Type */
  --font-display: 'Anton', 'Bebas Neue', 'Archivo Black', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-py: clamp(80px, 10vw, 140px);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: 0; cursor: pointer; color: inherit; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.88;
  font-feature-settings: 'ss01' on;
}
.display--xxl { font-size: clamp(52px, 7.8vw, 124px); }
.display--xl  { font-size: clamp(44px, 6.2vw, 96px); }
.display--lg  { font-size: clamp(40px, 5.5vw, 84px); }
.display--md  { font-size: clamp(28px, 3.6vw, 56px); }
.display--sm  { font-size: clamp(22px, 2.4vw, 36px); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.body-lg { font-size: 18px; line-height: 1.55; color: var(--text-muted); }
.body    { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--text-muted); }

.text-orange { color: var(--orange); }
.text-bone   { color: var(--bone); }
.text-ink    { color: var(--ink); }

/* Distressed text — applies SVG turbulence */
.grunge {
  filter: url(#bang-rough);
}
.grunge-deep {
  filter: url(#bang-rough-deep);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-py);
  position: relative;
}
.section--bone {
  background: var(--bone);
  color: var(--ink);
}
.section--bone .body-lg,
.section--bone .body,
.section--bone .body-sm { color: #4a443c; }

.section--ink { background: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 0;
  position: relative;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  cursor: pointer;
}
.btn:hover {
  background: var(--orange-deep);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.section--bone .btn:hover { box-shadow: 6px 6px 0 var(--ink); }

.btn--ghost {
  background: transparent;
  border: 2px solid currentColor;
  clip-path: none;
  color: var(--bone);
  padding: 14px 24px;
}
.btn--ghost:hover {
  background: var(--bone);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--orange);
}
.section--bone .btn--ghost { color: var(--ink); }
.section--bone .btn--ghost:hover { background: var(--ink); color: var(--bone); }

.btn--lg { padding: 20px 32px; font-size: 14px; }

.btn .arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(4px) rotate(-12deg); }

/* ---------- Header / Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .25s ease, backdrop-filter .25s ease, padding .25s ease;
}
.nav.is-scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  padding-block: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bone);
  flex-shrink: 0;
}
.nav__logo img {
  display: block;
  height: 72px;
  width: auto;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}
.footer__logo img { height: 110px; }
.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.85;
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover,
.nav__links a.is-active {
  opacity: 1;
  color: var(--orange);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--bone);
}

/* ---------- Splash / texture overlays ---------- */
.splash-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.splash-bg svg { position: absolute; }

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.halftone-strip {
  position: absolute;
  background-image: radial-gradient(circle, currentColor 1.2px, transparent 1.6px);
  background-size: 8px 8px;
  opacity: 0.4;
}

.diag-stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 6px,
    rgba(255,255,255,0.06) 6px 7px
  );
}

/* Star sticker */
.star-sticker {
  display: inline-block;
  color: var(--teal);
  filter: drop-shadow(2px 2px 0 var(--ink));
}

/* ---------- Section header (consistent) ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: end;
}
.section-head__title { margin: 0; }
.section-head__copy { max-width: 460px; }
.section-head__copy .body-lg { margin: 0 0 28px; }

/* ---------- Footer (shared) ---------- */
.footer {
  background: var(--ink);
  padding: 80px var(--gutter) 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.footer__splash {
  position: absolute;
  right: -80px;
  top: -40px;
  width: 380px;
  height: 380px;
  opacity: 0.5;
  pointer-events: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 56px;
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  align-items: center;
  text-align: center;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  color: var(--orange);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  font-size: 14px;
  color: var(--bone);
  opacity: 0.7;
  transition: opacity .2s, color .2s;
}
.footer__col a:hover { opacity: 1; color: var(--orange); }
.footer__contact-num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--bone);
  margin: 8px 0 0;
  display: block;
  text-decoration: none;
  line-height: 1.1;
  letter-spacing: 0.01em;
  transition: color .2s ease;
}
a.footer__contact-num:hover { color: var(--orange); }

/* Footer logo column — centered */
.footer__col:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer__col:first-child > div { justify-content: center; }

/* BANG column — single horizontal row of links */
.footer__bang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  align-items: center;
}
.footer__col--bang { align-self: center; }
.footer__col--bang a {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer__bottom {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Photo placeholder (used everywhere) ---------- */
.photo {
  position: relative;
  background: linear-gradient(135deg, #2a2420 0%, #1a1614 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255,87,34,0.25), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(230,51,107,0.22), transparent 55%);
}
.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.5;
}
.photo__label {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  border: 1px dashed rgba(255,255,255,0.25);
}

/* ---------- Reveal animations ----------
   Page is fully visible by default. Entrance motion runs only when JS
   confirms CSS animations are progressing (real browsers); preview
   iframes that throttle animations get clean static content instead. */
@keyframes bang-fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bang-fade-left {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes bang-fade-scale {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes bang-rise {
  from { opacity: 0; transform: translateY(60%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Only when html has .anim-ok do we hide-then-animate.
   Otherwise content is fully visible from the start. */
.anim-ok .reveal       { opacity: 0; }
.anim-ok .reveal-left  { opacity: 0; }
.anim-ok .reveal-scale { opacity: 0; }
.anim-ok .split-word > span { display: inline-block; transform: translateY(60%); opacity: 0; }

.anim-ok .reveal.is-in       { animation: bang-fade-up    .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--delay, 0ms); }
.anim-ok .reveal-left.is-in  { animation: bang-fade-left  .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--delay, 0ms); }
.anim-ok .reveal-scale.is-in { animation: bang-fade-scale .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--delay, 0ms); }
.anim-ok .split-word.is-in > span {
  animation: bang-rise .9s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--delay, 0ms);
}

.split-word { display: inline-block; vertical-align: top; }

@media (prefers-reduced-motion: reduce) {
  .anim-ok .reveal, .anim-ok .reveal-left, .anim-ok .reveal-scale,
  .anim-ok .split-word > span { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  :root { --section-py: 80px; }

  .nav__links { display: none; }
  .nav__mobile-toggle { display: inline-flex; }
  .nav__cta { display: none; }

  .section-head {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer__bottom { flex-direction: column; gap: 12px; }
}

@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ==============================================================
   MODAL — Aula Experimental
   ============================================================== */
.aula-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.aula-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.aula-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.aula-modal__card {
  position: relative;
  z-index: 2;
  background: var(--bone);
  width: 100%;
  max-width: 480px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 10px 10px 0 var(--ink);
  border: 1px solid rgba(10,10,10,0.08);
  transform: translateY(16px) scale(0.97);
  transition: transform .26s cubic-bezier(.22,.87,.46,1);
}
.aula-modal.is-open .aula-modal__card {
  transform: translateY(0) scale(1);
}

.aula-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1.5px solid rgba(10,10,10,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease;
}
.aula-modal__close:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.aula-modal__close svg { width: 16px; height: 16px; }

.aula-modal__eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aula-modal__eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
}

.aula-modal__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--ink);
}

.aula-modal__copy {
  font-size: 14px;
  color: #4a443c;
  line-height: 1.5;
  margin: 0 0 28px;
}

.aula-modal__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}

.aula-modal__select-wrap {
  position: relative;
  margin-bottom: 24px;
}
.aula-modal__select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.aula-modal__select {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid transparent;
  border-bottom: 1.5px solid rgba(10,10,10,0.18);
  padding: 14px 40px 14px 16px;
  outline: none;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.aula-modal__select:focus {
  border-color: var(--orange);
  box-shadow: 0 4px 0 0 var(--orange);
}

.aula-modal__discover {
  font-size: 12px;
  color: #4a443c;
  margin: -16px 0 20px;
}
.aula-modal__discover a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}
.aula-modal__discover a:hover {
  text-decoration: underline;
}

.aula-modal__error {
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
  margin: -16px 0 16px;
  display: none;
}
.aula-modal__error.is-visible { display: block; }

.aula-modal__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  padding: 18px 24px;
}

.aula-modal__wa-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
