:root {
  --meadow-navy: #061820;
  --deep-green: #183C31;
  --pitch-green: #2E6B4E;
  --match-gold: #D8AA45;
  --mist-white: rgba(248, 248, 244, 0.94);
  --glass-dark: rgba(6, 24, 32, 0.84);
  --glass-border: rgba(216, 170, 69, 0.15);
  --text-light: #F5F7F4;
  --text-dark: #102128;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--meadow-navy);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--match-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--text-light);
}

ul {
  list-style: none;
}

/* Homepage Background */
.home-wrapper {
  background-image: url('images/stadium-atrium-night.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Internal Pages Background */
.internal-wrapper {
  background: linear-gradient(135deg, var(--meadow-navy) 0%, var(--deep-green) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: rgba(6, 24, 32, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

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

.nav-links a {
  color: var(--mist-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--match-gold);
}

.header-right {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--match-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Fixture Atrium Layout */
.atrium-main {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.atrium-grid {
  display: flex;
  gap: 4rem;
  margin-bottom: 4rem;
}

/* Left Zone */
.atrium-hero {
  flex: 0 0 36%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.atrium-title {
  font-size: 4rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.atrium-title span {
  display: block;
  color: var(--match-gold);
}

.atrium-subtitle {
  font-size: 1.5rem;
  color: var(--mist-white);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.atrium-note {
  font-size: 0.9rem;
  color: rgba(248, 248, 244, 0.6);
  border-left: 2px solid var(--match-gold);
  padding-left: 1rem;
}

/* Right Zone (Stepped Board) */
.atrium-board {
  flex: 0 0 calc(64% - 4rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.match-card {
  background: var(--glass-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: var(--match-gold);
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--match-gold);
}

/* Stepped Layout Logic */
.step-left {
  width: 85%;
  align-self: flex-start;
}

.step-right {
  width: 85%;
  align-self: flex-end;
}

.match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--match-gold);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.8rem;
}

.match-time {
  color: var(--text-light);
  font-weight: 600;
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.team {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.flag {
  width: 48px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.team-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.vs-divider {
  font-size: 0.9rem;
  color: rgba(248, 248, 244, 0.4);
  margin-left: 4rem;
  font-weight: 600;
}

/* Editorial Note */
.editorial-note {
  background: var(--glass-dark);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.editorial-note h3 {
  color: var(--match-gold);
  margin-bottom: 1rem;
}

.editorial-note p {
  color: var(--mist-white);
  font-size: 0.95rem;
}

/* Internal Pages */
.internal-content {
  flex: 1;
  max-width: 900px;
  margin: 4rem auto;
  padding: 3rem;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  width: 90%;
}

.internal-content h1 {
  font-size: 2.5rem;
  color: var(--match-gold);
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1rem;
}

.internal-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text-light);
}

.internal-content p {
  margin-bottom: 1.2rem;
  color: var(--mist-white);
}

.return-home {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: var(--pitch-green);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--deep-green);
}

.return-home:hover {
  background: var(--match-gold);
  color: var(--meadow-navy);
}

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

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

.form-group label {
  font-size: 0.9rem;
  color: var(--match-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: var(--text-light);
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--match-gold);
  background: rgba(0,0,0,0.5);
}

.submit-btn {
  padding: 1rem 2rem;
  background: var(--match-gold);
  color: var(--meadow-navy);
  border: none;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
}

.submit-btn:hover {
  background: var(--text-light);
}

/* Footer */
footer {
  background: var(--meadow-navy);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--mist-white);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--match-gold);
}

.copyright {
  font-size: 0.8rem;
  color: rgba(248, 248, 244, 0.5);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--meadow-navy);
  border-top: 2px solid var(--match-gold);
  padding: 1.5rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  margin-right: 2rem;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.btn-accept {
  background: var(--match-gold);
  color: var(--meadow-navy);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.btn-reject, .btn-manage {
  background: transparent;
  color: var(--mist-white);
  border: 1px solid var(--mist-white);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Focus States for Accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--match-gold);
  outline-offset: 2px;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .atrium-grid {
    gap: 2rem;
  }
  .atrium-title {
    font-size: 3rem;
  }
  .step-left, .step-right {
    width: 95%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--meadow-navy);
    flex-direction: column;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .header-right {
    display: none;
  }
  
  .atrium-grid {
    flex-direction: column;
  }
  .atrium-hero {
    flex: none;
    text-align: center;
    margin-bottom: 2rem;
  }
  .atrium-note {
    border-left: none;
    border-top: 2px solid var(--match-gold);
    padding-left: 0;
    padding-top: 1rem;
    margin: 0 auto;
    max-width: 300px;
  }
  .atrium-board {
    flex: none;
  }
  .step-left, .step-right {
    width: 100%;
    align-self: center;
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .cookie-text {
    margin-right: 0;
  }
  .cookie-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .atrium-title {
    font-size: 2.2rem;
  }
  .team-name {
    font-size: 1.4rem;
  }
  .flag {
    width: 36px;
  }
  .match-card {
    padding: 1.5rem;
  }
  .internal-content {
    padding: 1.5rem;
  }
}