:root {
  --color-primary: #FFD700; /* Gold */
  --color-secondary: #1E90FF; /* Dodger Blue */
  --color-dark-bg: #1a202c; /* Dark Grey/Blue for header-top */
  --color-light-bg: #f5f5f5; /* Light grey for main-nav (alternative to primary if too bright) */
  --color-text-light: #ffffff;
  --color-text-dark: #333333;

  --header-top-height: 60px;
  --main-nav-height: 45px;
  --mobile-buttons-height: 60px;
  --header-height-desktop: calc(var(--header-top-height) + var(--main-nav-height));
  --header-height-mobile: calc(var(--header-top-height) + var(--mobile-buttons-height));
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-text-dark);
  padding-top: var(--header-height-desktop); /* Desktop default */
}

body.no-scroll {
  overflow: hidden;
}

/* Site Header - Fixed & Suspended */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-height: var(--header-height-desktop);
  background-color: var(--color-dark-bg); /* Default background, will be overridden by header-top/main-nav */
}

/* Header Top Area - Desktop */
.header-top {
  background-color: var(--color-dark-bg);
  width: 100%;
  padding: 10px 0;
  display: flex;
  align-items: center;
  min-height: var(--header-top-height);
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--color-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block; /* Ensure logo is visible */
  padding: 5px 0;
}

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

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

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  box-shadow: 0 4px 8px rgba(30, 144, 255, 0.4);
}

.btn-primary:hover {
  background-color: #1a7ae0;
  box-shadow: 0 6px 12px rgba(30, 144, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-dark-bg);
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

.btn-secondary:hover {
  background-color: #e6c200;
  box-shadow: 0 6px 12px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}

/* Main Navigation - Desktop */
.main-nav {
  background-color: var(--color-primary);
  width: 100%;
  display: flex; /* Desktop default: flex */
  flex-direction: row; /* Desktop default: row */
  justify-content: center;
  align-items: center;
  min-height: var(--main-nav-height);
  position: static; /* Desktop default: static */
  transform: translateX(0); /* Desktop default: visible */
  transition: none; /* No transition on desktop */
}

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

.nav-link {
  color: var(--color-dark-bg);
  text-decoration: none;
  padding: 8px 15px;
  font-weight: 600;
  font-size: 0.95em;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

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

/* Hamburger menu and mobile buttons - Hidden on Desktop */
.hamburger-menu,
.mobile-buttons {
  display: none;
}

/* Footer */
.site-footer {
  background-color: var(--color-dark-bg);
  color: var(--color-text-light);
  padding: 40px 0 20px;
  font-size: 0.9em;
}

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

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

.footer-column h3 {
  color: var(--color-primary);
  font-size: 1.2em;
  margin-bottom: 15px;
}

.footer-column p,
.footer-column a {
  color: var(--color-text-light);
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
}

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

.footer-nav a {
  padding: 2px 0;
}

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

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

  .site-header {
    min-height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .header-top {
    padding: 10px 0;
    min-height: var(--header-top-height);
  }

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

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

  .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: 1001; /* Above mobile buttons */
    position: relative;
    left: 0;
    top: 0;
    order: -1; /* Place to the left */
  }

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

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

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

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

  .mobile-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--color-dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999; /* Below hamburger menu, above content */
    width: 100%;
    box-sizing: border-box;
    min-height: var(--mobile-buttons-height);
  }

  .mobile-buttons .btn {
    flex: 1;
    font-size: 0.9em;
    padding: 8px 15px;
  }

  .main-nav {
    display: none; /* Mobile default: hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 70%; /* Adjust width as needed */
    height: 100vh;
    background-color: var(--color-dark-bg);
    flex-direction: column; /* Mobile: vertical */
    justify-content: flex-start;
    padding-top: var(--header-top-height);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-out;
    z-index: 1001; /* Above overlay */
    overflow-y: auto;
  }

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

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

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

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

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

  .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: 1000;
    transition: opacity 0.3s ease-out;
    opacity: 0;
  }

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

  .site-footer .footer-container {
    flex-direction: column;
    gap: 20px;
  }

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