:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333;
  --text-light: #fff;
  --header-top-bg-desktop: var(--secondary-color);
  --main-nav-bg-desktop: var(--primary-color);
  --footer-bg: #222;
  --header-height-desktop: 110px; /* header-top (60px) + main-nav (50px) */
  --header-height-mobile: 110px; /* header-top (60px) + mobile-buttons-area (50px) */
}

/* Base Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: var(--header-height-desktop); /* Content protection for fixed header (desktop) */
  transition: padding-top 0.3s ease;
}

body.no-scroll {
  overflow: hidden;
}

/* Site Header - Fixed and Floating */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-color: var(--secondary-color); /* Fallback, specific sections will override */
}

.header-top {
  background-color: var(--header-top-bg-desktop);
  padding: 10px 0;
  min-height: 40px;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 0;
  display: block; /* Ensure visibility on desktop */
}

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

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

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

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: #A00000;
  border-color: #FFC107;
  transform: translateY(-2px);
}

.mobile-buttons-area {
  display: none; /* Hidden on desktop */
}

/* Main Navigation - Desktop */
.main-nav {
  background-color: var(--main-nav-bg-desktop);
  padding: 0;
  min-height: 50px;
  display: flex; /* Default to flex for desktop */
  flex-direction: row; /* Default to row for desktop */
  align-items: center;
  position: static; /* Default to static for desktop */
}

.main-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row; /* Desktop horizontal menu */
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

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

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998;
}

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

/* Site Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: #ccc;
  padding: 40px 20px;
  font-size: 14px;
}

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

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

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

.site-footer .footer-col p {
  margin-bottom: 10px;
}

.site-footer .footer-nav a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.site-footer .footer-nav a:hover {
  color: var(--primary-color);
}

.site-footer .footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #999;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-height-mobile); /* Content protection for fixed header (mobile) */
  }

  .site-header {
    background-color: var(--secondary-color);
  }

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

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
  }

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

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

  .hamburger-menu {
    display: flex; /* Visible on mobile */
    order: -1; /* Place to the left */
    margin-right: auto; /* Push logo to center */
  }

  .mobile-buttons-area {
    display: flex; /* Visible on mobile */
    background-color: #A00000; /* Darker red for mobile button area */
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .mobile-buttons-area .header-container {
    padding: 0 15px;
    justify-content: center;
    gap: 10px;
  }

  .btn-mobile-primary, .btn-mobile-secondary {
    font-size: 14px;
    padding: 8px 15px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: var(--header-height-mobile); /* Position below fixed header + mobile buttons */
    left: 0;
    width: 80%; /* Sidebar width */
    max-width: 300px;
    height: calc(100% - var(--header-height-mobile)); /* Full height below header */
    background-color: var(--main-nav-bg-desktop);
    flex-direction: column; /* Vertical menu */
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  }

  .main-nav.active {
    display: flex; /* Must set display to flex to make it visible */
    transform: translateX(0); /* Slide in */
  }

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    width: 100%;
    max-width: none;
  }

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

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

  .site-footer .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .footer-col {
    min-width: unset;
    width: 100%;
  }
}
