/* ==========================================================================
   R14 Training — Harrison Ritts, private soccer training
   Style: athletic / pitch-at-dusk. Deep green ground, turf-lime accent.
   ========================================================================== */

:root {
  --bg: #0b1911;
  --bg-soft: #12261a;
  --card: #16311f;
  --card-border: #274c33;
  --text: #f2efe2;
  --muted: #9fb6a5;
  --accent: #d8ff4f;
  --accent-dark: #a9d928;
  --accent-2: #57c2ff;
  --radius: 16px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; line-height: 1.05; letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; color: var(--accent); }
em { color: var(--accent); font-style: normal; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #0b1911;
  box-shadow: 0 0 0 0 rgba(216, 255, 79, 0.5);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(216, 255, 79, 0.25); }
.btn-ghost {
  border-color: var(--card-border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 0.6rem 1.3rem; font-size: 0.8rem; }
.btn-wide { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--d, 0) * 0.08s);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- nav ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: rgba(11, 25, 17, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand span { color: var(--accent); }
.brand.small { font-size: 1.3rem; }
.nav-links { display: flex; gap: 2rem; font-size: 0.95rem; }
.nav-links a { position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 4rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(216,255,79,0.08), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(87,194,255,0.08), transparent 45%),
    var(--bg);
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero-title { font-size: clamp(2.8rem, 8vw, 5.5rem); }
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: lineUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--d) * 0.15s);
}
.accent-text { color: var(--accent); }
@keyframes lineUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin: 1.5rem 0 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-photo-wrap { position: relative; }
.photo-frame {
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, var(--card), var(--bg-soft));
  border: 1px solid var(--card-border);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-frame { aspect-ratio: 4 / 5; }
.photo-frame .frame-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1.5rem;
}
.photo-frame .frame-label code {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--accent);
  font-family: monospace;
  font-size: 0.8rem;
  letter-spacing: 0;
}
.photo-frame.has-photo .frame-label { display: none; }

.jersey-badge {
  position: absolute;
  bottom: -1.2rem;
  right: -1.2rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 999px;
  animation: scrollDot 1.6s ease infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--accent);
  color: var(--bg);
  overflow: hidden;
  transform: skewY(-1.5deg);
  margin: -1.2rem 0;
  position: relative;
  z-index: 5;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
  padding: 0.7rem 0;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- about ---------- */
.about { padding: 9rem 1.5rem 6rem; }
.about-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}
.about-sticky { position: relative; }
.about-frame {
  position: sticky;
  top: 6.5rem;
  aspect-ratio: 3 / 4;
}
.about-bio { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin-bottom: 2.5rem; }

.card-fan {
  position: relative;
  height: 260px;
  margin-bottom: 1.5rem;
}
.fan-card {
  position: absolute;
  inset: 0;
  z-index: calc(4 - var(--i));
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  cursor: pointer;
  transform-origin: top left;
  transform: rotate(calc(var(--i) * 4deg)) translate(calc(var(--i) * 16px), calc(var(--i) * 12px));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.fan-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.fan-tag { font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; color: var(--accent); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.fan-desc { color: var(--muted); font-size: 0.95rem; max-width: 40ch; }
.fan-hint { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- training ---------- */
.training { padding: 6rem 1.5rem; background: var(--bg-soft); }
.training-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.training-inner .hero-sub, .training-inner p { margin-left: auto; margin-right: auto; }

.toggle {
  position: relative;
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px;
  margin: 2rem 0 2.5rem;
}
.toggle-btn {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  padding: 0.8rem 1.8rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease;
}
.toggle-btn.active { color: var(--bg); }
.toggle-indicator {
  position: absolute;
  top: 6px; bottom: 6px; left: 6px;
  width: calc(50% - 6px);
  background: var(--accent);
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
.toggle-indicator.shift { transform: translateX(100%); }

.training-panel {
  display: none;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.2rem 2.4rem;
  animation: panelIn 0.4s ease;
}
.training-panel.active { display: block; }
.training-panel p { color: var(--muted); margin-bottom: 1rem; }
.training-panel ul li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.training-panel ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--accent-2);
  border-radius: 2px;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- contact ---------- */
.contact { padding: 7rem 1.5rem; }
.contact-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-sub { color: var(--muted); margin-bottom: 2.5rem; }

.contact-form { text-align: left; display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 255, 79, 0.15);
}
.alt-contact { margin-top: 1.5rem; color: var(--muted); font-size: 0.95rem; }
.alt-contact a { color: var(--accent-2); text-decoration: underline; }

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.site-footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--card-border);
}
.site-footer p { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; max-width: 320px; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; }
  .about-frame { position: relative; top: 0; max-width: 320px; margin: 0 auto 2rem; }
}
