/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: #1a1a1a;
  padding-top: 110px; /* Default for desktop header height, adjusted for mobile later */
}

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

/* Header Styles (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-height: 60px; /* Minimum height, content will expand */
}

.header-top {
  background-color: #1A237E; /* Dark blue, contrasting with main-nav */
  padding: 10px 0;
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: #FF4500; /* Primary color for logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 0;
  display: block;
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none; /* Remove underline for buttons */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background-color: #FF4500; /* Primary color */
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #e63900;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #1E90FF; /* Secondary color */
  color: #fff;
  border: none;
}

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

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

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.hamburger-menu span:last-child {
  margin-bottom: 0;
}

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

.main-nav {
  background-color: #2C3E50; /* Darker grey-blue, contrasting with header-top */
  padding: 10px 0;
  display: flex; /* Desktop default: flex */
  flex-direction: row; /* Desktop default: row */
  justify-content: center;
  align-items: center;
}

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

.nav-link {
  color: #f0f0f0;
  font-size: 1.1em;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover,
.nav-link.current-page {
  background-color: rgba(255, 69, 0, 0.2); /* Light primary color tint */
  color: #FF4500;
}

.mobile-menu-overlay {
  display: none; /* Hidden by default */
}

/* Footer Styles */
.site-footer {
  background-color: #1a1a1a;
  color: #bbb;
  padding: 40px 0 20px;
  border-top: 1px solid #333;
}

.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-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  color: #FF4500; /* Primary color for headings */
  margin-bottom: 15px;
  font-size: 1.2em;
}

.footer-section p {
  font-size: 0.9em;
  margin-bottom: 10px;
}

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

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

.footer-nav a {
  color: #bbb;
  transition: color 0.3s ease;
  font-size: 0.9em;
}

.footer-nav a:hover {
  color: #FF4500;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.85em;
  color: #999;
}

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

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

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

  .header-top .header-container {
    justify-content: flex-start; /* Adjust for hamburger + centered logo */
    position: relative;
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1;
    margin-right: 15px;
  }

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

  .logo {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8em;
  }

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

  .mobile-buttons-bar {
    display: block; /* Show mobile buttons bar */
    background-color: #333; /* Darker background for button bar */
    padding: 8px 0;
    text-align: center;
  }

  .mobile-buttons-bar .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical layout on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #222; /* Dark background for mobile menu */
    padding: 80px 20px 20px;
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease-in-out;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    align-items: flex-start;
    overflow-y: auto;
  }

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

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

  .main-nav .nav-link {
    width: 100%;
    text-align: left;
    font-size: 1.2em;
    padding: 12px 15px;
    color: #f0f0f0;
  }

  .main-nav .nav-link:hover,
  .main-nav .nav-link.current-page {
    background-color: rgba(255, 69, 0, 0.3);
    color: #FF4500;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

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

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

  .footer-section {
    min-width: unset;
    width: 100%;
    margin-bottom: 20px;
  }

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

  .footer-nav li {
    display: inline-block;
    margin: 0 10px 10px 0;
  }

  .footer-nav li:last-child {
    margin-right: 0;
  }

  .footer-section.footer-contact p {
    font-size: 1em;
  }
}