:root {
  --primary-color: #1A2E44;
  --secondary-color: #FFD700;
  --text-color-light: #f0f0f0;
  --text-color-dark: #333;
  --header-top-bg: var(--primary-color);
  --main-nav-bg: #2C4257; /* Slightly lighter dark blue for contrast */
  --mobile-buttons-bg: #1A2E44;
  --header-height-desktop: 110px; /* header-top (60px) + main-nav (50px) */
  --header-height-mobile: 110px;  /* header-top (60px) + mobile-buttons (50px) */
}

* {
  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-color-dark);
  padding-top: var(--header-height-desktop); /* Default for desktop */
  transition: padding-top 0.3s ease;
}

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.15);
  min-height: var(--header-height-desktop);
  background-color: var(--header-top-bg); /* Fallback, specific backgrounds set below */
}

/* Header Top Area (Logo + Desktop Buttons) */
.header-top {
  background-color: var(--header-top-bg);
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
}

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

/* Logo */
.logo {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--secondary-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #fff;
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}

/* Main Navigation Area */
.main-nav {
  background-color: var(--main-nav-bg);
  width: 100%;
  min-height: 50px;
  display: flex; /* Default for desktop */
  flex-direction: row; /* Default for desktop */
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.nav-link {
  color: var(--text-color-light);
  text-decoration: none;
  font-size: 1.05em;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

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

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

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

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

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

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

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

.btn-secondary:hover {
  background-color: #2C4257;
  color: #fff;
  transform: translateY(-2px);
}

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

.btn-tertiary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 40px 0 20px;
  font-size: 0.95em;
  margin-top: 30px;
}

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

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

.footer-section h3 {
  color: var(--secondary-color);
  font-size: 1.3em;
  margin-bottom: 15px;
}

.footer-section p,
.footer-section ul {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--secondary-color);
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .nav-container {
    gap: 15px;
    padding: 10px 15px;
  }
  .nav-link {
    font-size: 1em;
  }
  .header-container {
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: var(--header-height-mobile); /* Adjust for mobile header + buttons */
  }

  .site-header {
    min-height: auto;
  }

  .header-top {
    justify-content: space-between;
    padding: 10px 15px;
    min-height: 60px;
  }

  .header-container {
    padding: 0;
    justify-content: flex-start;
    gap: 10px;
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 0;
    position: relative; /* For z-index to work against logo/buttons if needed */
    z-index: 1002;
  }

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

  .logo {
    order: 1;
    flex-grow: 1;
    text-align: center;
    font-size: 1.8em;
    padding-left: 10px; /* Offset from hamburger */
  }

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

  .mobile-nav-buttons {
    display: flex; /* Show mobile buttons */
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    background-color: var(--mobile-buttons-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 50px;
  }

  /* Main Navigation (Hamburger Menu Content) */
  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px; /* Sidebar width */
    background-color: var(--main-nav-bg);
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-top: 60px; /* Space for top bar elements like close button if added */
    z-index: 1000;
  }

  .main-nav.active {
    display: flex; /* Must be flex to show */
    transform: translateX(0); /* Slide into view */
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    width: 100%;
    max-width: none; /* Important for mobile container */
    gap: 0; /* Remove gap for vertical list */
  }

  .nav-link {
    width: 100%;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    font-size: 1.1em;
  }

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

  .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.5);
    z-index: 999;
    transition: opacity 0.3s ease;
    opacity: 0;
  }

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

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

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

  .footer-section ul {
    text-align: center;
  }

  .footer-section ul li a {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 0;
  }

  .footer-bottom {
    margin-top: 30px;
  }
}
