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

/* === VARIABLES === */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --bg-dark: #0d0d0d;
  --text: #111111;
  --text-inv: #ffffff;
  --muted: #777777;
  --accent: #b8292f;
  --accent-hover: #952025;
  --border: #e5e5e5;
  --nav-h: 64px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 4px;
  --ease: 200ms ease;
}

/* === BASE === */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === UTILITY === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 700px; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: #fff; color: #fff; text-decoration: none; }

/* === NAV === */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  transition: background var(--ease), box-shadow var(--ease);
}

.nav.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  transition: color var(--ease);
}
.nav.scrolled .nav-logo { color: var(--text); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color var(--ease);
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav.scrolled .nav-links a { color: var(--muted); }
.nav.scrolled .nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.8);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--ease);
}
.lang-toggle:hover { border-color: #fff; color: #fff; }
.nav.scrolled .lang-toggle { border-color: var(--border); color: var(--muted); }
.nav.scrolled .lang-toggle:hover { border-color: var(--text); color: var(--text); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; transition: var(--ease); }
.nav.scrolled .nav-hamburger span { background: var(--text); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 8vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Gradient placeholder — replace with real photo via inline style on this element:
     style="background-image: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.65)), url('/images/hero/hero.jpg'); background-size: cover; background-position: center top;" */
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%),
    linear-gradient(155deg, #1a1f35 0%, #0f1e3c 45%, #0a1628 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.hero-name {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 1.75rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.55;
}

.hero-scroll {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 3rem;
  color: rgba(255,255,255,0.4);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* === SECTIONS === */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-inv); }
.section-dark .section-title { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.72); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
  color: var(--text);
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-photo img,
.photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: calc(var(--radius) * 2);
  object-fit: cover;
}

.photo-placeholder {
  background: linear-gradient(145deg, #dde1e7, #c8cdd5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-placeholder::after {
  content: 'Portrait';
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat { flex: 1; min-width: 80px; padding-right: 1rem; }

.stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.stat-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.stat-value a { color: var(--accent); }

/* === RESULTS === */
.season-ticker {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.7rem 1rem;
  background: rgba(184, 41, 47, 0.07);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}
.season-ticker:empty { display: none; }

.results-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.35rem 0.9rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: var(--ease);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(184, 41, 47, 0.05);
}

.filter-sep { width: 1px; height: 20px; background: var(--border); display: inline-block; margin: 0 0.25rem; }

.results-table-wrap { overflow-x: auto; }

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
}

.results-table th {
  text-align: left;
  padding: 0.7rem 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}

.results-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.results-table tbody tr:hover { background: rgba(0,0,0,0.02); }
.results-table a { color: var(--accent); }

.discipline-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  background: var(--border);
  color: var(--text);
}

.goals-box {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  background: var(--bg);
}

.goals-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

/* === GALLERY === */
.gallery-grid { columns: 3; column-gap: 0.75rem; }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--border);
}

.gallery-item img { width: 100%; display: block; transition: transform 400ms ease; }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item.placeholder { aspect-ratio: 4/3; background: linear-gradient(135deg, #e2e5ea, #d0d4db); }
.gallery-item.placeholder.tall { aspect-ratio: 3/4; }

/* === PARTNERS === */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.partner-item img {
  max-height: 56px;
  max-width: 150px;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: var(--ease);
}
.partner-item:hover img { filter: none; opacity: 1; }

.partner-tagline { font-size: 0.72rem; color: var(--muted); }

.partners-placeholder { font-size: 0.9rem; color: var(--muted); }

/* === SPONSOR CTA === */
.sponsor-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

/* === INSTAGRAM === */
.instagram-embed {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem;
}

.embed-placeholder { font-size: 0.9rem; color: var(--muted); }

/* === CONTACT === */
.contact-note { font-size: 0.95rem; color: var(--muted); margin-bottom: 2.5rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--ease);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }

.form-success { margin-top: 0.5rem; font-size: 0.9rem; color: #16a34a; }

/* === FOOTER === */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p { font-size: 0.82rem; color: var(--muted); }

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--ease);
}
.lightbox-close:hover { color: #fff; }

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  object-fit: contain;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { max-width: 300px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--muted); font-size: 0.9rem; }
  .nav-hamburger { display: flex; }
  .gallery-grid { columns: 2; }
  .section { padding: 4rem 0; }
  .stats-bar { gap: 1rem; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .hero-name { font-size: 3rem; }
  .stats-bar .stat { min-width: 45%; }
}
