/* ============================================================
   NACHO CONTRERAS — Boxer site
   Dark theme, bold red/black accents. No frameworks.
   ============================================================ */

:root{
  --black: #0a0a0c;
  --black-soft: #121216;
  --panel: #16161b;
  --panel-2: #1c1c22;
  --line: #2a2a32;
  --white: #f5f4f2;
  --grey: #a6a6ad;
  --red: #e0141e;
  --red-dark: #9c0e15;
  --red-glow: rgba(224, 20, 30, .45);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 10px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-red{ color: var(--red); }

.center{ text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Reveal-on-scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section titles ---------- */
.section-eyebrow{
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--red);
  margin: 0 0 10px;
}

.section-title{
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0 0 28px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--red-glow);
}
.btn-primary:hover{
  background: var(--red-dark);
  box-shadow: 0 6px 24px var(--red-glow);
  transform: translateY(-2px);
}

.btn-outline{
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}
.btn-outline:hover{
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,12,0);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled{
  background: rgba(10,10,12,.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo{
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
}
.logo .dot{ color: var(--red); }

.nav{
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link{
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color .18s ease;
  position: relative;
}
.nav-link:hover{ color: var(--white); }
.nav-link.nav-cta{
  color: var(--white);
  background: var(--red);
  padding: 10px 18px;
  border-radius: 4px;
}
.nav-link.nav-cta:hover{ background: var(--red-dark); color: var(--white); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg{
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(1.12) contrast(1.05);
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,.42) 0%, rgba(10,10,12,.65) 55%, var(--black) 100%),
    linear-gradient(100deg, rgba(10,10,12,.38) 5%, rgba(10,10,12,0) 40%);
}

.hero-content{
  padding-top: 90px;
  max-width: 760px;
}

.eyebrow{
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--grey);
  margin: 0 0 18px;
}
.eyebrow span{ color: var(--red); font-weight: 800; }

.hero-title{
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  line-height: .96;
  margin: 0 0 20px;
  text-shadow: 0 6px 40px rgba(0,0,0,.5);
}

.hero-tagline{
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--grey);
  max-width: 520px;
  margin: 0 0 36px;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.scroll-cue{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(245,244,242,.5);
  border-radius: 14px;
}
.scroll-cue span{
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--red);
  border-radius: 2px;
  animation: cueMove 1.8s infinite ease;
}
@keyframes cueMove{
  0%{ opacity: 1; transform: translateY(0); }
  70%{ opacity: 0; transform: translateY(14px); }
  100%{ opacity: 0; transform: translateY(0); }
}

/* ---------- Story ---------- */
.story{
  padding: 110px 0;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}

.story-grid{
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.story-media img{
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.story-copy p{
  color: var(--grey);
  font-size: 1.02rem;
  margin: 0 0 18px;
}

.stat-row{
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat{ display: flex; flex-direction: column; }
.stat-num{
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--red);
  line-height: 1;
}
.stat-label{
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 6px;
}

/* ---------- Fighter profile (stats module) ---------- */
.fighter-profile{
  padding: 110px 0;
  background: var(--black-soft);
  border-bottom: 1px solid var(--line);
}

.profile-card{
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.profile-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.profile-item{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.profile-item-wide{
  grid-column: 1 / -1;
}

.profile-label{
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
}

.profile-value{
  font-weight: 700;
  font-size: 1.05rem;
}

.profile-status{
  color: var(--red);
}

/* ---------- Next fight ---------- */
.next-fight{
  padding: 110px 0;
  background: var(--black-soft);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.fight-card{
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 48px 32px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.fight-vs{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 5vw, 56px);
  margin-bottom: 40px;
}

.fighter{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.fighter-photo{
  width: clamp(84px, 16vw, 128px);
  height: clamp(84px, 16vw, 128px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
  background: var(--panel);
}
.fighter-name{
  font-weight: 700;
  font-size: 1rem;
}
.fighter-record{
  font-size: .82rem;
  color: var(--grey);
}

.vs-divider{
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--red);
  letter-spacing: .05em;
}

.fight-details{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.fight-detail{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.detail-label{
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
}
.detail-value{
  font-weight: 700;
  font-size: 1rem;
}

.countdown{
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 28px);
  margin-bottom: 36px;
}
.countdown-unit{
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.countdown-num{
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 4px;
  width: 100%;
  text-align: center;
}
.countdown-label{
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 8px;
}

.fight-actions{
  display: flex;
  justify-content: center;
}

/* ---------- Emerge (merch) ---------- */
.emerge{
  padding: 110px 0 130px;
  background: var(--black);
}

.emerge-sub{
  color: var(--grey);
  max-width: 520px;
  margin: -14px auto 56px;
}

.product-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 380px));
  justify-content: center;
  gap: 28px;
}

.product-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.product-card:hover{
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

.product-img-wrap{
  background: var(--black);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrap img{ width: 100%; height: 100%; object-fit: cover; }

.photo-toggle{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.photo-toggle-btn{
  background: var(--black);
  color: var(--grey);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.photo-toggle-btn:hover{ color: var(--white); border-color: var(--red); }
.photo-toggle-btn.is-active{
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.product-name{
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.product-price{
  color: var(--red);
  font-weight: 700;
  margin: 0 0 20px;
}
.product-btn{ width: 100%; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--black-soft);
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
}

.footer-inner{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p{
  color: var(--grey);
  margin-top: 14px;
  font-size: .92rem;
}
.footer-brand a{
  color: var(--white);
  border-bottom: 1px solid var(--red);
}

.footer-heading{
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 14px;
}

.social-links{
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.social-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--white);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.social-icon:hover{
  color: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.footer-bottom{
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  text-align: center;
}
.footer-bottom p{
  color: var(--grey);
  font-size: .82rem;
  margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px){
  .story-grid{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story-media{ order: -1; }

  .product-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px){
  .nav{
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10,10,12,.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav.open{
    transform: translateY(0);
    opacity: 1;
  }
  .nav-link{
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-link.nav-cta{
    margin-top: 14px;
    text-align: center;
  }
  .nav-toggle{ display: flex; }

  .fight-details{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-grid{
    grid-template-columns: 1fr;
  }

  .footer-inner{
    flex-direction: column;
  }
}

@media (max-width: 480px){
  .countdown{ gap: 8px; }
  .countdown-unit{ min-width: 54px; }
  .fight-card{ padding: 32px 18px; }
  .profile-card{ padding: 28px 18px; }
}
