:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Crimson */
  --dark-gold: #B8860B;
  --dark-crimson: #8B0000;
  --text-color-dark: #333;
  --text-color-light: #fff;
  --bg-dark-header: #8B0000; /* Dark Crimson for header-top */
  --bg-light-nav: #FFD700;   /* Gold for main-nav */
  --bg-mobile-menu: #222;
  --mobile-button-bg: #DC143C;
}

/* Base styles (Desktop First) */
*,
*::before,
*::after {
  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: #f8f8f8;
  padding-top: 100px; /* Default padding for desktop header (header-top + main-nav) */
  margin: 0;
  transition: padding-top 0.3s ease;
}

body.no-scroll {
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent; /* Background set by header-top and main-nav */
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: auto;
  display: flex;
  flex-direction: column; /* Stacks header-top and main-nav */
}

.header-top {
  width: 100%;
  background-color: var(--bg-dark-header); /* Dark Crimson */
  color: var(--text-color-light);
  padding: 15px 0;
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #fff;
}

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

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background-image: linear-gradient(45deg, var(--primary-color), var(--dark-gold));
  color: var(--text-color-dark);
}

.btn-primary:hover {
  background-image: linear-gradient(45deg, var(--dark-gold), var(--primary-color));
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-image: linear-gradient(45deg, var(--secondary-color), var(--dark-crimson));
  color: var(--text-color-light);
}

.btn-secondary:hover {
  background-image: linear-gradient(45deg, var(--dark-crimson), var(--secondary-color));
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-tertiary {
  background-color: #555;
  color: var(--text-color-light);
}

.btn-tertiary:hover {
  background-color: #777;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.main-nav {
  width: 100%;
  background-color: var(--bg-light-nav); /* Gold */
  padding: 10px 0;
  display: flex; /* Desktop: visible and flex */
  justify-content: center; /* Center the nav-container */
  min-height: 40px;
}

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

.nav-link {
  color: var(--text-color-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--dark-gold);
  color: var(--text-color-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hamburger-menu,
.mobile-button-area,
.mobile-menu-overlay {
  display: none; /* Hidden by default on desktop */
}

/* Footer styles */
.site-footer {
  background-color: #222;
  color: #ccc;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

.site-footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-logo {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  margin-bottom: 15px;
  display: inline-block;
}

.footer-column h3 {
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

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

.footer-nav li {
  margin-bottom: 10px;
}

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

.copyright {
  color: #888;
}

/* Mobile styles */
@media (max-width: 768px) {
  body {
    padding-top: 120px; /* Adjusted padding for mobile header (header-top + mobile-button-area) */
  }

  .site-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }

  .header-top {
    padding: 10px 0;
  }

  .header-container {
    padding: 0 15px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .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: 1001;
    order: 1;
  }

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

  .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);
  }

  .logo {
    order: 2;
    flex-grow: 1;
    text-align: center;
    font-size: 1.8em;
    margin: 0;
  }

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

  .mobile-button-area {
    display: block;
    width: 100%;
    background-color: var(--mobile-button-bg); /* Crimson */
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .mobile-button-container {
    width: 100%;
    max-width: none; /* Critical: Ensure it takes full width */
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .mobile-button-container .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.85em;
    white-space: nowrap;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 120px; /* Adjusted to be below header-top and mobile-button-area */
    left: 0;
    width: 80%;
    max-width: 300px; /* Optional: limit mobile menu width */
    height: calc(100vh - 120px); /* Fill remaining viewport height */
    background-color: var(--bg-mobile-menu); /* Dark background */
    flex-direction: column; /* Vertical layout */
    padding: 20px 0;
    transform: translateX(-100%); /* Off-screen to the left */
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto; /* Enable scrolling for long menus */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }

  .main-nav.active {
    display: flex; /* Critical: Make it visible */
    transform: translateX(0); /* Slide into view */
  }

  .nav-container {
    width: 100%;
    max-width: none; /* Critical: Ensure it takes full width */
    flex-direction: column;
    align-items: flex-start;
    padding: 0 15px;
    gap: 0;
  }

  .nav-link {
    color: var(--text-color-light);
    padding: 12px 15px;
    width: 100%;
    border-bottom: 1px solid #333;
    border-radius: 0;
    text-align: left;
  }

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

  .nav-link:hover,
  .nav-link.active {
    background-color: #444;
    color: var(--primary-color);
  }

  .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.6);
    z-index: 998;
  }

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

  .footer-container {
    flex-direction: column;
    padding: 0 15px;
  }

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

  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-logo {
    font-size: 2em;
  }

  .footer-nav ul {
    padding-left: 0;
  }
}
