/* Global Styles & Desktop First */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-light: #fff;
  --text-color-dark: #333;
  --shadow-color: rgba(0, 0, 0, 0.2);
}

* {
  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;
}

/* Header - Fixed & Suspended */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 8px var(--shadow-color);
  min-height: 60px; /* Base min-height */
}

.header-top {
  background-color: var(--secondary-color); /* Dark Red */
  padding: 10px 0;
  color: var(--text-color-light);
}

.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-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  display: block; /* Ensure logo is visible on desktop */
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #DAA520);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

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

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

.btn-secondary:hover {
  background: #A52A2A; /* Slightly lighter red */
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.btn-tertiary {
  background: #32CD32; /* Lime Green */
  color: var(--text-color-light);
  border: 2px solid #228B22;
}

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

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

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

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

.nav-link:hover {
  background-color: rgba(139, 0, 0, 0.1);
  border-radius: 5px;
  color: #fff;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
  top: 0px;
}

.hamburger-menu span:nth-child(2) {
  top: 10px;
}

.hamburger-menu span:nth-child(3) {
  top: 20px;
}

.hamburger-menu.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger-menu.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

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

.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Footer */
.site-footer {
  background-color: #333;
  color: #f4f4f4;
  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;
  padding-bottom: 30px;
}

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

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

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

.footer-col a {
  color: #f4f4f4;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

  .site-header {
    box-shadow: 0 2px 4px var(--shadow-color);
  }

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

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 0;
    margin-right: auto;
  }

  .logo {
    order: 1;
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
    display: block; /* Ensure logo is visible on mobile */
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  .main-nav {
    display: none; /* Default hidden on mobile */
    flex-direction: column; /* Vertical stacking */
    position: fixed; /* Fixed position for mobile menu */
    top: 0;
    left: 0;
    width: 280px; /* Width of the mobile menu */
    height: 100%;
    background-color: var(--secondary-color); /* Dark red for mobile menu */
    padding-top: 80px; /* Space for logo/hamburger */
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease-out;
    box-shadow: 2px 0 5px var(--shadow-color);
    z-index: 1000;
    overflow-y: auto;
  }

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

  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    padding: 0;
  }

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

  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0;
  }

  .mobile-buttons-area {
    display: flex; /* Show mobile buttons */
    width: 100%;
    background-color: var(--secondary-color);
    justify-content: center;
    padding: 10px 15px;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 990; /* Below hamburger/menu, above main content */
  }

  .mobile-buttons-area .btn {
    flex: 1;
    max-width: 120px;
    padding: 8px 10px;
    font-size: 14px;
  }

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

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

  .footer-nav {
    align-items: center;
  }
}

/* Prevent body scroll when menu is open */
body.no-scroll {
  overflow: hidden;
}
