@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

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

:root {
  --crash-white: #fefefe;
  --crash-cream: #faf8f5;
  --crash-orange: #ff6b35;
  --crash-gold: #f4a261;
  --crash-blue: #2a9d8f;
  --crash-red: #e76f51;
  --crash-text: #1d3557;
  --crash-text-soft: #457b9d;
  --crash-border: rgba(42, 157, 143, 0.2);
  --crash-shadow: 0 8px 32px rgba(42, 157, 143, 0.12);
  --crash-card-bg: rgba(255, 255, 255, 0.92);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(165deg, var(--crash-cream) 0%, #e8f4f2 50%, #fff5ee 100%);
  color: var(--crash-text);
  min-height: 100vh;
  line-height: 1.5;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--crash-blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--crash-blue);
  color: white;
  font-weight: 700;
  border-radius: 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--crash-orange);
  outline-offset: 2px;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 254, 254, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--crash-border);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  background: rgba(254, 254, 254, 0.97);
  box-shadow: 0 4px 24px rgba(42, 157, 143, 0.1);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--crash-text);
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.nav-logo-text {
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--crash-text);
  padding: 10px 18px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--crash-blue);
  background: rgba(42, 157, 143, 0.1);
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s;
}

.burger-btn:hover {
  background: rgba(42, 157, 143, 0.1);
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--crash-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile-menu {
  background: var(--crash-card-bg);
  padding: 16px 24px;
  border-top: 2px solid var(--crash-blue);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-menu[hidden] {
  display: none !important;
}

.nav-mobile-link {
  display: block;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--crash-text);
  border-radius: 10px;
  transition: background 0.2s;
}

.nav-mobile-link:hover {
  background: rgba(42, 157, 143, 0.12);
}

@media (max-width: 991px) {
  .desktop-nav {
    display: none !important;
  }
  .burger-btn {
    display: flex !important;
  }
}

/* Main */
main {
  padding-top: 72px;
  min-height: 100vh;
}

/* Hero with animated sport icons background */
.hero {
  position: relative;
  text-align: center;
  padding: 104px 24px 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg__icon {
  position: absolute;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  opacity: 0.14;
  animation: hero-float 8s ease-in-out infinite;
}

.hero-bg__icon--1 { top: 12%; left: 8%;  animation-delay: 0s;      animation-duration: 9s; }
.hero-bg__icon--2 { top: 18%; right: 12%; animation-delay: -2s;   animation-duration: 10s; }
.hero-bg__icon--3 { top: 55%; left: 5%;   animation-delay: -4s;   animation-duration: 8s; }
.hero-bg__icon--4 { top: 60%; right: 8%;  animation-delay: -1s;   animation-duration: 11s; }
.hero-bg__icon--5 { top: 8%;  left: 35%;  animation-delay: -3s;   animation-duration: 9.5s; }
.hero-bg__icon--6 { top: 70%; left: 25%;  animation-delay: -5s;   animation-duration: 10.5s; }
.hero-bg__icon--7 { top: 35%; right: 6%;  animation-delay: -2.5s; animation-duration: 8.5s; }
.hero-bg__icon--8 { top: 75%; right: 28%; animation-delay: -1.5s; animation-duration: 9s; }
.hero-bg__icon--9 { top: 25%; left: 15%;  animation-delay: -6s;   animation-duration: 11s; }

@keyframes hero-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(6px, -12px) rotate(5deg); }
  50%      { transform: translate(-4px, -6px) rotate(-3deg); }
  75%      { transform: translate(8px, 4px) rotate(4deg); }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--crash-orange), var(--crash-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.hero__tagline {
  font-size: 1.2rem;
  color: var(--crash-text-soft);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero__intro {
  font-size: 1rem;
  color: var(--crash-text);
  line-height: 1.6;
}

.events-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--crash-orange), var(--crash-blue));
  border-radius: 2px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--crash-text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--crash-text-soft);
  font-weight: 500;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

@media (max-width: 400px) {
  .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
  }
}

.event-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, var(--crash-card-bg) 100%);
  border-radius: 20px;
  padding: 28px 26px;
  border: 1px solid var(--crash-border);
  box-shadow: 0 10px 40px rgba(42, 157, 143, 0.08), 0 2px 12px rgba(0,0,0,0.04);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--crash-blue);
  opacity: 0.6;
}

.event-card--football::before {
  background: linear-gradient(90deg, #2a9d8f, #34c0b0);
  opacity: 1;
}

.event-card--basketball::before {
  background: linear-gradient(90deg, #e76f51, #f4a261);
  opacity: 1;
}

.event-card--tennis::before {
  background: linear-gradient(90deg, #457b9d, #2a9d8f);
  opacity: 1;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(42, 157, 143, 0.15), 0 8px 24px rgba(0,0,0,0.06);
  border-color: rgba(42, 157, 143, 0.35);
}

.event-card--highlight {
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 12px 44px rgba(255, 107, 53, 0.12), 0 4px 16px rgba(0,0,0,0.04);
}

.event-card--highlight:hover {
  box-shadow: 0 24px 56px rgba(255, 107, 53, 0.18), 0 10px 28px rgba(0,0,0,0.06);
}

.event-card__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.event-card__badge--football {
  color: #0d5c52;
  background: rgba(42, 157, 143, 0.18);
}

.event-card__badge--basketball {
  color: #b85338;
  background: rgba(231, 111, 81, 0.18);
}

.event-card__badge--tennis {
  color: #2d5a7b;
  background: rgba(69, 123, 157, 0.18);
}

.event-card__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--crash-text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.event-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--crash-text-soft);
  margin-bottom: 14px;
  font-weight: 500;
}

.event-card__meta::before {
  content: '📅';
  font-size: 0.9em;
}

.event-card__desc {
  font-size: 0.92rem;
  color: var(--crash-text);
  line-height: 1.55;
  margin-bottom: 20px;
}

.event-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--crash-blue);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(42, 157, 143, 0.12);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.event-card__link:hover {
  color: white;
  background: var(--crash-blue);
}

.event-card__link-arrow {
  transition: transform 0.2s;
}

.event-card__link:hover .event-card__link-arrow {
  transform: translateX(3px);
}

.site-footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 0.85rem;
  color: var(--crash-text-soft);
  border-top: 1px solid var(--crash-border);
}

.footer-inner {
  max-width: 640px;
  margin: 0 auto;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--crash-text);
  margin-bottom: 12px;
}

.footer-logo:hover {
  color: var(--crash-blue);
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--crash-orange), var(--crash-gold));
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 3px 12px rgba(255, 107, 53, 0.3);
}

.footer-logo-text {
  letter-spacing: -0.02em;
}

.footer-tagline {
  margin-bottom: 16px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.footer-links a {
  color: var(--crash-blue);
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--crash-orange);
}

/* Policy pages */
.policy-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.policy-page__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--crash-text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.policy-page__updated {
  font-size: 0.9rem;
  color: var(--crash-text-soft);
  margin-bottom: 32px;
}

.policy-section {
  margin-bottom: 28px;
}

.policy-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--crash-text);
  margin-bottom: 12px;
}

.policy-section p,
.policy-section li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--crash-text);
  margin-bottom: 10px;
}

.policy-section ul {
  margin: 12px 0 16px 20px;
  padding: 0;
}

.policy-section a {
  color: var(--crash-blue);
  font-weight: 600;
}

.policy-section a:hover {
  color: var(--crash-orange);
}
