/* Global Styles & Desktop First */
:root {
  --primary-color: #CC0000;
  --secondary-color: #FFD700;
  --dark-red: #A00000;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: #f4f4f4;
}

/* Site Header - Fixed & Sticky */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: var(--dark-red); /* Consistent background for header-top */
  min-height: 60px; /* Ensure content adaptation */
  display: flex;
  flex-direction: column; /* Default to column for desktop-first, will be row for mobile in media query */
}

.header-top {
  background-color: var(--dark-red);
  padding: 10px 0;
  width: 100%;
}

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

.logo {
  font-size: 28px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), #D93F3F);
  color: var(--text-color-light);
  box-shadow: 0 4px 10px rgba(var(--primary-color), 0.4);
}

.btn-primary:hover {
  background: linear-gradient(45deg, #D93F3F, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(var(--primary-color), 0.6);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--text-color-dark);
  box-shadow: 0 4px 10px rgba(var(--secondary-color), 0.4);
}

.btn-secondary:hover {
  background: #E6C200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(var(--secondary-color), 0.6);
}

.btn-tertiary {
  background: #6c757d;
  color: var(--text-color-light);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-tertiary:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.main-nav {
  background-color: var(--secondary-color); /* Gold for main nav */
  width: 100%;
  display: flex; /* Desktop default: flex */
  flex-direction: row; /* Desktop default: row */
  padding: 10px 0;
  justify-content: center; /* Center nav links */
  position: static; /* Desktop default: static */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.nav-link {
  color: var(--text-color-dark);
  text-decoration: none;
  padding: 10px 18px;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* Mobile specific elements (hidden on desktop) */
.hamburger-menu,
.mobile-nav-buttons,
.mobile-menu-overlay {
  display: none;
}

/* Footer Styles */
.site-footer {
  background-color: var(--dark-red);
  color: var(--text-color-light);
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.8;
}

.footer-col a:hover {
  color: var(--secondary-color);
}

.footer-nav a {
  display: block;
  padding: 5px 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: 110px; /* Adjust based on header-top + mobile-nav-buttons height */
  }

  .site-header {
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
  }

  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    width: 100%;
  }

  .header-container {
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    padding: 0; /* Remove horizontal padding */
  }

  .logo {
    order: 2;
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
  }

  .desktop-nav-buttons {
    display: none;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* Above overlay */
    order: 1;
  }

  .hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    width: 100%;
    background-color: var(--dark-red); /* Same as header-top for cohesion */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav-buttons .btn {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 20px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0; /* Full height from top */
    left: 0;
    width: 80%;
    height: 100%;
    background-color: var(--dark-red); /* Dark background for mobile menu */
    flex-direction: column;
    padding-top: 80px; /* Space for fixed header content */
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
  }

  .nav-container {
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    flex-direction: column;
    align-items: flex-start;
    padding: 0 15px;
  }

  .nav-link {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-col {
    width: 100%;
    text-align: center;
    min-width: unset;
  }

  .footer-col p,
  .footer-col a {
    font-size: 13px;
  }
}