/* Base Styles */
:root {
  --primary-color: #FFD700; /* Gold */
  --auxiliary-color: #000080; /* Navy Blue */
  --dark-grey: #1a1a1a;
  --text-light: #ffffff;
  --text-dark: #333333;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f4f4f4;
  transition: padding-top 0.3s ease; /* Smooth transition for padding-top */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Header Top Area (Logo & Buttons) */
.header-top {
  background-color: var(--auxiliary-color); /* Navy Blue */
  padding: 10px 0;
}

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

.logo {
  color: var(--primary-color);
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block; /* Ensure logo is always visible */
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none; /* Remove underline for buttons */
}

.btn-primary {
  background: linear-gradient(to right, var(--primary-color), #FFA500); /* Gold to Orange */
  color: var(--auxiliary-color);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(to right, #FFA500, var(--primary-color));
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--auxiliary-color);
}

/* Main Navigation Area - Desktop First */
.main-nav {
  background-color: var(--dark-grey); /* Dark Grey/Black */
  padding: 10px 0;
  display: flex; /* Desktop default: flex */
  flex-direction: row; /* Desktop default: row */
  position: static; /* Desktop default: static */
  width: 100%; /* Ensure it spans full width */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap; /* Allow items to wrap on smaller desktop screens */
}

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

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

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001; /* Above mobile buttons and overlay */
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Mobile Navigation Buttons (Mobile Only) */
.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
}

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

/* Site Footer */
.site-footer {
  background-color: var(--dark-grey);
  color: var(--text-light);
  padding: 40px 0 20px 0;
  margin-top: 50px; /* Provide some space from main content */
}

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

.footer-col {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
  padding-right: 20px;
}

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

.footer-col p,
.footer-col li {
  font-size: 14px;
  line-height: 1.8;
}

.footer-col a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

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

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

/* Responsive Styles - Mobile First Overrides */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column; /* Stack header-top and mobile-nav-buttons */
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    position: relative; /* For logo centering */
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%; /* Adjust as needed */
    line-height: 1; /* For vertical alignment */
    font-size: 24px;
  }

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

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
  }

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

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--auxiliary-color); /* Match header-top background */
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu items */
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 280px; /* Width of the slide-out menu */
    background-color: var(--dark-grey);
    padding-top: 60px; /* Space for potential fixed elements on top of menu */
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  }

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

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

  .nav-link {
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

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

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

  .footer-col {
    flex: 1 1 100%; /* Stack columns on mobile */
    padding-right: 0;
  }

  .footer-col:not(:last-child) {
    margin-bottom: 20px;
  }

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

  body.no-scroll {
    overflow: hidden;
  }
}