/* Base Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Site Header (Fixed & Sticky) */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 60px; /* Ensures content adaptability */
  display: flex;
  flex-direction: column; /* Default desktop, but allows mobile override */
}

/* Header Top Area */
.header-top {
  background-color: #2C3E50; /* Dark Blue-Grey for header top */
  width: 100%;
  padding: 15px 0;
}

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

.logo {
  color: #FF4500; /* Main brand color */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #FF6347;
}

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

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

/* Hamburger Menu (hidden on desktop) */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002;
}

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

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

/* Main Navigation Area */
.main-nav {
  background-color: #FF4500; /* Main brand color for navigation */
  width: 100%;
  display: flex; /* Desktop default: flex */
  justify-content: center;
  padding: 10px 0;
}

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

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background-color: #1E90FF; /* Auxiliary color on hover/active */
  color: #fff;
}

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

.btn-primary {
  background-image: linear-gradient(45deg, #FF4500, #FF6347);
  color: #fff;
}

.btn-primary:hover {
  background-image: linear-gradient(45deg, #FF6347, #FF4500);
  box-shadow: 0 6px 15px rgba(255, 69, 0, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-image: linear-gradient(45deg, #1E90FF, #4682B4);
  color: #fff;
}

.btn-secondary:hover {
  background-image: linear-gradient(45deg, #4682B4, #1E90FF);
  box-shadow: 0 6px 15px rgba(30, 144, 255, 0.4);
  transform: translateY(-2px);
}

.btn-tertiary {
  background-color: #34495E; /* Darker neutral color */
  color: #fff;
}

.btn-tertiary:hover {
  background-color: #4A657C;
  box-shadow: 0 6px 15px rgba(52, 73, 94, 0.4);
  transform: translateY(-2px);
}

/* Site Footer */
.site-footer {
  background-color: #2C3E50; /* Dark Blue-Grey */
  color: #ecf0f1;
  padding: 40px 20px 20px;
  font-size: 14px;
  margin-top: 50px;
}

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

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

.footer-column h3 {
  color: #FF4500;
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-column p,
.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-column ul li a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #1E90FF;
}

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

.footer-bottom p {
  margin: 0;
  color: #bdc3c7;
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: 125px; /* Adjust based on header-top + mobile-nav-buttons height */
  }

  .site-header {
    flex-direction: column;
  }

  .header-top {
    padding: 10px 0;
  }

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

  .logo {
    order: 2;
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
  }

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

  .hamburger-menu {
    display: block;
    order: 1;
    color: #fff;
  }

  .mobile-nav-buttons {
    display: block;
    width: 100%;
    background-color: #34495E; /* Slightly different background for mobile buttons */
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 999; /* Below hamburger menu overlay */
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 80%; /* Sidebar width */
    height: 100%;
    background-color: #2C3E50; /* Dark background for mobile menu */
    flex-direction: column;
    padding-top: 80px;
    transform: translateX(-100%); /* Off-screen to the left */
    transition: transform 0.3s ease;
    z-index: 1001; /* Above overlay */
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .main-nav.active {
    display: flex; /* MUST be set to flex/block for visibility */
    transform: translateX(0); /* Slide into view */
  }

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

  .nav-link {
    width: 100%;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: #ecf0f1;
  }

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

  .nav-link:hover {
    background-color: rgba(30, 144, 255, 0.2);
  }

  .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: 1000; /* Below menu, above mobile buttons */
    opacity: 0;
    transition: opacity 0.3s ease;
  }

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

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

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

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