/* ==========================================================
   TEAM NM RACQUETBALL — mockup redesign
   Black · red · white — Team NM brand palette
   ========================================================== */

:root {
  --bg: #0a0d12;
  --bg-2: #0f141c;
  --panel: #141b26;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef2f7;
  --muted: #9aa7b8;
  --accent: #ff3040;
  --accent-deep: #b3121f;
  --red: #ef4444;
  --display: "Anton", Impact, sans-serif;
  --body: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

/* film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.accent { color: var(--accent); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav--solid {
  background: rgba(10, 13, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.04em;
  color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav__brand em { color: var(--accent); font-style: normal; }
.nav__ball {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8d96, var(--accent-deep));
  box-shadow: 0 0 12px rgba(255, 48, 64, 0.8);
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  color: var(--muted); text-decoration: none; font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.25s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: #fff !important; background: var(--accent);
  padding: 9px 18px; border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s !important;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(255, 48, 64, 0.45); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; }
.nav__burger span {
  display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(10, 13, 18, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--display); font-size: 2rem; color: var(--text);
  text-decoration: none; letter-spacing: 0.05em;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 18px rgba(255, 48, 64, 0.35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255, 48, 64, 0.5); }
.btn--ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero__bg { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__vignette {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(10, 13, 18, 0.72) 100%),
    linear-gradient(to bottom, rgba(10, 13, 18, 0.55), rgba(10, 13, 18, 0.25) 40%, var(--bg) 98%);
}
.hero__content { position: relative; z-index: 2; padding: 120px 24px 80px; max-width: 980px; }
.hero__kicker {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  line-height: 0.95; letter-spacing: 0.01em; margin-bottom: 26px;
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}
.hero__line { display: block; overflow: hidden; }
.hero__line span {
  display: inline-block; transform: translateY(110%);
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero__line:nth-child(2) span { animation-delay: 0.12s; }
.hero__line:nth-child(3) span { animation-delay: 0.24s; }
.hero__line--accent span {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  text-shadow: 0 0 40px rgba(255, 48, 64, 0.35);
}
@keyframes heroRise { to { transform: translateY(0); } }
.hero__sub {
  max-width: 560px; margin: 0 auto 34px; color: #c8d3e0; font-size: 1.08rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scrollcue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 0.65rem; letter-spacing: 0.4em; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scrollcue span {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: cuePulse 2s ease-in-out infinite;
}
@keyframes cuePulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ============ SHATTER ============ */
.shatter { position: relative; height: 320vh; background: #000; }
.shatter__sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.shatter__sticky::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 56% at 50% 46%, rgba(255, 48, 64, 0.14), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(179, 18, 31, 0.08), transparent 70%);
}
#shatterCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.shatter__copy {
  position: relative; z-index: 2; text-align: center; padding: 0 24px;
  opacity: 0; transform: translateY(30px) scale(0.96);
  transition: none; pointer-events: none;
}
.shatter__copy h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1.02;
  text-shadow: 0 8px 50px rgba(0, 0, 0, 0.8);
}
.shatter__copy h2 span { display: block; }
.shatter__copy p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

/* ============ SECTIONS (shared) ============ */
.section { position: relative; padding: 130px 0; }
.section__inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow--light { color: #ffb4b4; }
.section__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem); line-height: 1.05;
  margin-bottom: 34px; letter-spacing: 0.01em;
}

/* scroll reveal */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ ABOUT ============ */
.about { background: linear-gradient(#000, var(--bg-2)); }
.about__grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; color: var(--muted);
}
.about__lead { font-size: 1.25rem; color: var(--text); line-height: 1.55; }
.about__court { margin-top: 64px; }
.about__courtcard {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--panel); border-radius: 18px; padding: 34px 38px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.about__courtlabel {
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 8px;
}
.about__courtname { font-family: var(--display); font-size: 1.9rem; margin-bottom: 8px; }
.about__courtsub { color: var(--muted); max-width: 640px; }

/* ============ YOUTH ============ */
.youth { background: var(--bg-2); overflow: hidden; }
.youth__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
}
.youth__media { position: relative; }
.youth__imgwrap {
  border-radius: 22px; overflow: hidden; will-change: transform;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.youth__imgwrap img { transform: scale(1.08); }
.youth__badge {
  position: absolute; right: -18px; bottom: -18px;
  background: var(--red); color: #fff; font-family: var(--display);
  font-size: 1.05rem; line-height: 1.1; letter-spacing: 0.06em;
  padding: 18px 20px; border-radius: 14px; transform: rotate(4deg);
  box-shadow: 0 14px 40px rgba(239, 68, 68, 0.4);
}
.youth__copy > p { color: var(--muted); }
.youth__list { list-style: none; margin: 26px 0; }
.youth__list li {
  padding: 13px 0 13px 34px; border-bottom: 1px solid var(--line);
  position: relative; font-weight: 600;
}
.youth__list li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8d96, var(--accent-deep));
  box-shadow: 0 0 10px rgba(255, 48, 64, 0.7);
}
.youth__note { font-size: 0.92rem; color: var(--muted); margin-bottom: 24px; font-style: italic; }

/* ============ EVENTS ============ */
.events { overflow: hidden; }
.events__bg { position: absolute; inset: -14% 0; z-index: 0; will-change: transform; }
.events__bg img { width: 100%; height: 100%; object-fit: cover; }
.events__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10, 13, 18, 0.94) 30%, rgba(10, 13, 18, 0.55));
}
.events .section__inner { position: relative; z-index: 2; }
.events__card {
  background: rgba(20, 27, 38, 0.72); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 20px; padding: 40px; max-width: 860px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.events__row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px; margin-bottom: 32px;
}
.events__label {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 6px;
}

/* ============ SPONSORS ============ */
.sponsors { background: var(--bg-2); overflow: hidden; }
.sponsors__lead { color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.marquee {
  overflow: hidden; padding: 26px 0; margin: 10px 0 56px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; gap: 56px; width: max-content;
  animation: marqueeScroll 60s linear infinite;
}
.marquee__track span {
  font-family: var(--display); font-size: 1.5rem; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}
.marquee__track span:nth-child(3n) { -webkit-text-stroke-color: rgba(255, 48, 64, 0.55); }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }
.sponsors__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px;
}
.sponsor-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  background: var(--panel); text-decoration: none; color: var(--text);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: block;
}
.sponsor-card:hover {
  transform: translateY(-4px); border-color: rgba(255, 48, 64, 0.5);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.sponsor-card p { font-weight: 700; font-size: 0.98rem; }
.sponsor-card small { color: var(--muted); font-size: 0.8rem; word-break: break-all; }

/* ============ BOARD ============ */
.board__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.board__card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px; position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.board__card::after {
  content: ""; position: absolute; top: -30px; right: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 141, 150, 0.25), rgba(179, 18, 31, 0.08));
}
.board__card:hover { transform: translateY(-5px); border-color: rgba(255, 48, 64, 0.4); }
.board__role {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: 10px;
}
.board__name { font-family: var(--display); font-size: 1.45rem; margin-bottom: 8px; }
.board__phone { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.board__phone:hover { color: var(--accent); }

/* ============ FAQ ============ */
.faq { background: var(--bg-2); }
.faq__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.faq__item {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.faq__item summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem;
  padding: 18px 40px 18px 0; position: relative; transition: color 0.25s;
}
.faq__item summary:hover { color: var(--accent); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 1.5rem; color: var(--accent);
  transition: transform 0.3s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 0 20px; max-width: 560px; }

/* ============ CONTACT ============ */
.contact { overflow: hidden; }
.contact__ballfield {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background:
    radial-gradient(circle 260px at 85% 20%, rgba(255, 48, 64, 0.14), transparent),
    radial-gradient(circle 200px at 10% 85%, rgba(239, 68, 68, 0.1), transparent);
}
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; position: relative;
}
.contact__grid > div > p { color: var(--muted); }
.contact__loc { margin-top: 30px; }
.contact__form { display: flex; flex-direction: column; gap: 18px; }
.contact__form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.contact__form input, .contact__form textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 16px; color: var(--text); font-family: var(--body); font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s; resize: vertical;
}
.contact__form input:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 48, 64, 0.18);
}
.contact__formnote { font-size: 0.78rem; color: var(--muted); }

/* inline mailto links */
.faq__item p a, .sponsors__lead a, .contact__formnote a { color: var(--accent); }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.88rem;
}
.footer__brand { font-family: var(--display); color: var(--text); letter-spacing: 0.05em; }
.footer__brand em { color: var(--accent); font-style: normal; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .about__grid, .youth__grid, .faq__inner, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .youth__badge { right: 8px; bottom: -14px; }
  .section { padding: 90px 0; }
  .shatter { height: 260vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__line span { animation: none; transform: none; }
  .marquee__track { animation: none; }
}

/* ============ TOURNAMENT PAGE ============ */
.nav__links a[aria-current="page"] { color: var(--text); }
.mobile-menu a[aria-current="page"] { color: var(--accent); }

.thero {
  position: relative; padding: 180px 0 90px; overflow: hidden;
  background: linear-gradient(180deg, #000, var(--bg-2));
}
.thero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 70% 10%, rgba(255, 48, 64, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 40% at 12% 80%, rgba(179, 18, 31, 0.1), transparent 70%);
}
.thero .section__inner { position: relative; }
.thero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: 1.05;
  letter-spacing: 0.01em; margin-bottom: 22px;
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}
.thero__meta { color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.thero__meta strong { color: var(--text); }
.thero__ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

.tposter { background: var(--bg-2); padding-top: 0; }
.tposter__frame {
  display: block; max-width: 720px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.tposter__frame:hover {
  transform: translateY(-6px); border-color: rgba(255, 48, 64, 0.45);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.tposter__frame img { width: 100%; height: auto; border-radius: 8px; }
.tposter__dl { text-align: center; margin-top: 20px; font-size: 0.92rem; }
.tposter__dl a { color: var(--accent); }

.tdetails { background: var(--bg); }
.tdetails__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px;
}
.tdetails__card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 30px; transition: transform 0.3s, border-color 0.3s;
}
.tdetails__card:hover { transform: translateY(-4px); border-color: rgba(255, 48, 64, 0.4); }
.tdetails__card a { color: var(--accent); }
.tdetails__note { margin-top: 10px; font-size: 0.85rem; color: var(--muted); font-style: italic; }
.tdetails__list { list-style: none; }
.tdetails__list li {
  padding: 8px 0 8px 24px; position: relative;
}
.tdetails__list li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8d96, var(--accent-deep));
  box-shadow: 0 0 8px rgba(255, 48, 64, 0.7);
}

.tcta { background: var(--bg-2); text-align: center; }
.tcta .section__title { margin-bottom: 28px; }

@media (max-width: 900px) {
  .thero { padding: 140px 0 70px; }
}

/* ============ DONATE / NONPROFIT ============ */
#donate { scroll-margin-top: 110px; }
.donate__btn { margin-top: 16px; }
.donate__note { margin-top: 12px; font-size: 0.85rem; color: var(--muted); font-style: italic; }
.footer__nonprofit { width: 100%; font-size: 0.85rem; color: var(--muted); }
.footer__nonprofit a { color: #ff4a5a; font-weight: 700; }
.footer__nonprofit a:hover { color: #ff8d96; }
