/* =========================================================
   CUXHAVENER HALLENMASTERS
   Global Design System
   ========================================================= */

:root {
  --navy: #071522;
  --navy-2: #0b1e2d;
  --blue: #102b3f;
  --blue-light: #173c54;

  --red: #e63946;
  --red-dark: #c92f3b;
  --orange: #ff6b35;

  --gold: #d6a84f;
  --gold-light: #f0d38a;

  --white: #ffffff;
  --ice: #f3f6f8;
  --gray-100: #eef2f4;
  --gray-200: #dce3e7;
  --gray-400: #9aa8b2;
  --gray-600: #647580;
  --gray-800: #23333d;

  --success: #24a36a;

  --container: 1280px;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 26px;

  --shadow-sm: 0 5px 20px rgba(7, 21, 34, .07);
  --shadow: 0 15px 50px rgba(7, 21, 34, .12);
  --shadow-lg: 0 25px 80px rgba(7, 21, 34, .18);

  --transition: 180ms ease;
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4rem, 10vw, 9rem);
}

h2 {
  font-size: clamp(3rem, 7vw, 6rem);
}

h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

p {
  margin: 0;
}

.text-muted {
  color: var(--gray-600);
}

.text-white {
  color: var(--white);
}

.text-red {
  color: var(--red);
}

.text-gold {
  color: var(--gold);
}

/* =========================================================
   LAYOUT
   ========================================================= */

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.section-sm {
  padding: 70px 0;
}

.section-dark {
  color: var(--white);
  background: var(--navy);
}

.section-blue {
  color: var(--white);
  background: var(--blue);
}

.section-light {
  background: var(--ice);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 55px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}

.section-heading p {
  max-width: 680px;
  margin-top: 25px;
  color: var(--gray-600);
  font-size: 1.08rem;
}

.section-dark .section-heading p,
.section-blue .section-heading p {
  color: rgba(255,255,255,.66);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 82px;
  color: white;
  background: rgba(7, 21, 34, .82);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(7, 21, 34, .97);
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: .72;
  letter-spacing: -.035em;
}

.logo span {
  color: var(--red);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  position: relative;
  color: rgba(255,255,255,.84);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: white;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
}

.nav-ticket {
  padding: 12px 19px;
  color: white !important;
  background: var(--red);
  border-radius: var(--radius-sm);
}

.nav-ticket::after {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: white;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: white;
  transition: var(--transition);
}

.mobile-menu {
  position: fixed;
  z-index: 999;
  inset: 82px 0 0;
  display: none;
  padding: 30px 20px;
  color: white;
  background: var(--navy);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu nav {
  display: grid;
  gap: 4px;
}

.mobile-menu a {
  display: block;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}

.mobile-menu .mobile-ticket {
  margin-top: 20px;
  text-align: center;
  color: white;
  background: var(--red);
  border-radius: var(--radius-sm);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 850px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(
      90deg,
      rgba(7,21,34,.98) 0%,
      rgba(7,21,34,.85) 42%,
      rgba(7,21,34,.35) 100%
    ),
    url("../assets/hero.jpg") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, var(--navy));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-top: 70px;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: .76;
}

.hero h1 .accent {
  display: block;
  color: var(--red);
}

.hero-lead {
  max-width: 650px;
  margin: 35px 0;
  color: rgba(255,255,255,.78);
  font-size: 1.1rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
}

.event-meta-item {
  padding: 10px 14px;
  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-outline {
  color: white;
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.04);
}

.btn-dark {
  color: white;
  background: var(--navy);
}

.btn-light {
  color: var(--navy);
  background: white;
}

.btn-gold {
  color: var(--navy);
  background: var(--gold);
}

/* =========================================================
   STATS
   ========================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
}

.stat {
  padding: 35px 30px;
  background: var(--blue);
}

.stat-number {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--red);
}

.stat-label {
  margin-top: 9px;
  color: rgba(255,255,255,.6);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* =========================================================
   CARDS
   ========================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.card-body {
  padding: 28px;
}

.card-tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 14px;
  font-size: 2.2rem;
}

.card p {
  color: var(--gray-600);
}

/* =========================================================
   COUNTDOWN
   ========================================================= */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.countdown-box {
  padding: 20px 12px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
}

.countdown-number {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 800;
  line-height: .85;
}

.countdown-label {
  margin-top: 8px;
  color: rgba(255,255,255,.55);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* =========================================================
   PAGE HERO
   ========================================================= */

.page-hero {
  min-height: 500px;
  display: flex;
  align-items: end;
  padding: 130px 0 70px;
  color: white;
  background:
    linear-gradient(0deg, rgba(7,21,34,.98), rgba(7,21,34,.38)),
    url("../assets/hero.jpg") center / cover;
}

.page-hero h1 {
  font-size: clamp(4rem, 9vw, 8rem);
}

/* =========================================================
   MATCH CARDS
   ========================================================= */

.matches {
  display: grid;
  gap: 12px;
}

.match-card {
  display: grid;
  grid-template-columns: 90px 1fr 110px 1fr 90px;
  align-items: center;
  gap: 15px;
  min-height: 90px;
  padding: 14px 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.match-time {
  color: var(--gray-600);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.team {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.team.right {
  justify-content: flex-end;
  text-align: right;
}

.team-badge {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 50%;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
}

.score {
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  white-space: nowrap;
}

.match-status {
  color: var(--gray-600);
  font-size: .7rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

/* =========================================================
   TABLE
   ========================================================= */

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.league-table {
  width: 100%;
  border-collapse: collapse;
}

.league-table th,
.league-table td {
  padding: 17px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.league-table th {
  color: var(--gray-600);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.league-table td {
  font-weight: 700;
}

.league-table tbody tr:last-child td {
  border-bottom: 0;
}

.league-table .position {
  width: 50px;
  color: var(--gray-400);
}

.league-table .points {
  color: var(--red);
  font-size: 1.1rem;
}

/* =========================================================
   PROGRAM
   ========================================================= */

.program {
  display: grid;
  gap: 0;
}

.program-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  padding: 25px 0;
  border-bottom: 1px solid var(--gray-200);
}

.program-time {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
}

.program-title {
  font-weight: 800;
}

.program-description {
  margin-top: 4px;
  color: var(--gray-600);
}

/* =========================================================
   TIMELINE
   ========================================================= */

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 65px;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 35px;
  padding: 35px 0;
}

.timeline-year {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--red);
  border-radius: 50%;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.timeline-content {
  padding: 25px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
  font-size: 2rem;
}

.timeline-content p {
  margin-top: 10px;
  color: var(--gray-600);
}

.winner {
  margin-top: 15px;
  color: var(--gold);
  font-weight: 800;
}

/* =========================================================
   HISTORY GALLERY
   ========================================================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-item {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 45px 20px 20px;
  color: white;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
}

.gallery-caption strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
}

/* =========================================================
   SPONSORS
   ========================================================= */

.sponsor-section {
  margin-bottom: 75px;
}

.sponsor-section h2 {
  margin-bottom: 28px;
  font-size: 3rem;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.sponsor-card {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 25px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  transition: var(--transition);
}

.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.sponsor-card.main {
  grid-column: span 2;
  min-height: 220px;
  border: 2px solid var(--gold);
}

.sponsor-card img {
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
}

.sponsor-placeholder {
  color: var(--gray-400);
  font-size: .8rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

/* =========================================================
   CTA
   ========================================================= */

.cta {
  position: relative;
  overflow: hidden;
  padding: 70px;
  color: white;
  background: var(--red);
  border-radius: var(--radius-lg);
}

.cta::after {
  content: "37";
  position: absolute;
  right: 20px;
  bottom: -100px;
  color: rgba(255,255,255,.08);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 25rem;
  font-weight: 800;
  line-height: 1;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.cta h2 {
  font-size: clamp(3rem, 6vw, 5rem);
}

.cta p {
  margin: 20px 0 30px;
  color: rgba(255,255,255,.82);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 75px 0 25px;
  color: white;
  background: #04101a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
}

.footer-title {
  margin-bottom: 20px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-description {
  max-width: 400px;
  margin-top: 20px;
  color: rgba(255,255,255,.5);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.38);
  font-size: .78rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sponsor-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (max-width: 720px) {

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 75px 0;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 70px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid,
  .card-grid,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-card.main {
    grid-column: auto;
  }

  .match-card {
    grid-template-columns: 55px 1fr 65px;
    gap: 8px;
  }

  .match-card .team.right {
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
  }

  .match-card .score {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .match-status {
    display: none;
  }

  .program-item {
    grid-template-columns: 85px 1fr;
    gap: 15px;
  }

  .timeline::before {
    left: 35px;
  }

  .timeline-item {
    grid-template-columns: 70px 1fr;
    gap: 20px;
  }

  .timeline-year {
    width: 70px;
    height: 70px;
    font-size: 1.2rem;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: auto;
    min-height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cta {
    padding: 40px 25px;
  }
}

@media (max-width: 480px) {

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item.large {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .event-meta {
    flex-direction: column;
  }

  .event-meta-item {
    width: 100%;
  }
}
