:root {
  --bg-white: #F7F8F8;
  --deep-navy: #14304B;
  --forest-green: #2E6F4F;
  --gold: #C99A2E;
  --dark-charcoal: #222831;
  --soft-gray: #ECECEC;
  --accent-red: #B12B32;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--dark-charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--deep-navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--deep-navy);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-red);
}

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

/* Typography */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-red { color: var(--accent-red); }
.text-white { color: #fff; }
.text-small { font-size: 0.875rem; color: #555; }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-light { background-color: var(--bg-white); }
.section-gray { background-color: var(--soft-gray); }
.section-dark { background-color: var(--deep-navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }

/* Header & Navigation */
header {
  background-color: var(--deep-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.brand:hover {
  color: #fff;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: url('images/hero-home.svg') center/cover no-repeat, var(--deep-navy);
  color: #fff;
  padding: 8rem 0 6rem;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p.lead {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--soft-gray);
}

/* Match Hero */
.match-hero {
  background-color: var(--deep-navy);
  color: #fff;
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}

.match-hero h1 {
  color: var(--gold);
  font-size: 3rem;
}

.badge {
  display: inline-block;
  background-color: var(--accent-red);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--forest-green);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--forest-green);
  cursor: pointer;
}

.btn:hover {
  background-color: transparent;
  color: var(--forest-green);
}

.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--deep-navy);
}

.btn-gold:hover {
  background-color: transparent;
  color: var(--gold);
}

/* Cards */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.card {
  background: #fff;
  border: 1px solid var(--soft-gray);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-header {
  background-color: var(--deep-navy);
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}

.card-header h3 {
  color: var(--gold);
  margin-bottom: 0;
  font-size: 1.4rem;
}

.card-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body p {
  flex-grow: 1;
  color: #555;
}

.flags-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.flag {
  width: 60px;
  height: 40px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Timeline */
.timeline {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.timeline li {
  background: #fff;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--gold);
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline h4 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

/* Progress Bars */
.progress-group {
  margin-bottom: 1.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.progress-bar-bg {
  background-color: var(--soft-gray);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--forest-green);
  border-radius: 4px;
}

.progress-fill.gold { background-color: var(--gold); }
.progress-fill.red { background-color: var(--accent-red); }
.progress-fill.navy { background-color: var(--deep-navy); }

/* Tactical Overview */
.tactical-box {
  background: #fff;
  border-top: 4px solid var(--accent-red);
  padding: 2.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

/* Magazine Article Formatting */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  margin-top: 3rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--soft-gray);
}

.article-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.editorial-note {
  background-color: var(--soft-gray);
  border-left: 4px solid var(--deep-navy);
  padding: 1.5rem;
  font-style: italic;
  margin: 3rem 0;
  font-size: 0.95rem;
}

/* Forms */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--deep-navy);
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
}

.form-control:focus {
  outline: none;
  border-color: var(--forest-green);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-charcoal);
  color: #fff;
  padding: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

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

.cookie-content {
  max-width: 900px;
  margin-bottom: 1rem;
}

.cookie-content p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.cookie-content a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.cookie-btn.primary {
  background-color: var(--forest-green);
  border-color: var(--forest-green);
}

.cookie-btn:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--deep-navy);
}

/* Footer */
footer {
  background-color: var(--dark-charcoal);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: #aaa;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #777;
  font-size: 0.875rem;
}

/* Media Queries */
@media (max-width: 1200px) {
  .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--deep-navy);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease-in-out;
  }

  .nav-menu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
  }

  .hero h1 { font-size: 2.5rem; }
  .match-hero h1 { font-size: 2rem; }
  .section { padding: 3rem 0; }
  .timeline li { flex-direction: column; text-align: center; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .cookie-buttons { flex-direction: column; width: 100%; }
  .cookie-btn { width: 100%; }
}