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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ecf0f1;
  background-color: #2C3E50;
  padding-top: 100px; /* Default for desktop: header-top (50px) + main-nav (50px) */
  transition: padding-top 0.3s ease;
}

body.no-scroll {
  overflow: hidden;
}

/* Shared Container Styles */
.header-container, .nav-container, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Site Header (Fixed & Suspended) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background-color: #2C3E50; /* Fallback/base for the whole header */
  min-height: 100px; /* Ensures header has min height for desktop */
}

/* Header Top Area */
.header-top {
  background-color: #2C3E50; /* Dark blue-grey */
  color: #ecf0f1;
  padding: 10px 0;
}

.header-top .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #E74C3C; /* Accent color for logo */
  text-decoration: none;
  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: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.btn-primary, .btn-mobile-primary {
  background-color: #E74C3C; /* Accent red */
}
.btn-primary:hover, .btn-mobile-primary:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

.btn-secondary, .btn-mobile-secondary {
  background-color: #F39C12; /* Vibrant orange */
}
.btn-secondary:hover, .btn-mobile-secondary:hover {
  background-color: #e67e22;
  transform: translateY(-2px);
}

.btn-tertiary, .btn-mobile-tertiary {
  background-color: #1ABC9C; /* Turquoise */
}
.btn-tertiary:hover, .btn-mobile-tertiary:hover {
  background-color: #16a085;
  transform: translateY(-2px);
}

.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: #ecf0f1;
  transition: all 0.3s ease-in-out;
}

/* Main Navigation Area (Desktop) */
.main-nav {
  background-color: #34495E; /* Slightly lighter blue-grey, distinct from header-top */
  padding: 10px 0;
  display: flex; /* Desktop default: visible */
  flex-direction: row; /* Desktop default: horizontal */
  min-height: 50px;
  align-items: center;
}

.main-nav .nav-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.nav-link {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #E74C3C; /* Accent color */
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: #E74C3C;
}

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

.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

/* Footer */
.site-footer {
  background-color: #2C3E50;
  color: #bdc3c7;
  padding: 40px 0 20px;
  font-size: 14px;
}

.site-footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

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

.footer-col p, .footer-col ul {
  margin-bottom: 10px;
}

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

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

.footer-col ul li a:hover {
  color: #E74C3C;
}

.footer-col a {
  color: #bdc3c7;
  text-decoration: none;
}

.footer-col a:hover {
  color: #E74C3C;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #34495E;
  padding-top: 20px;
  margin-top: 20px;
  color: #7f8c8d;
}

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

  .header-container, .nav-container, .footer-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
  }

  .site-header {
    min-height: auto; /* Allow height to adjust dynamically */
  }

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

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

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

  .hamburger-menu {
    display: block;
    order: 1;
    margin-right: auto; /* Push hamburger to left */
  }

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

  .mobile-buttons-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #34495E; /* Same as main-nav desktop for consistency */
    min-height: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .btn-mobile-primary, .btn-mobile-secondary, .btn-mobile-tertiary {
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 6px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 80%; /* Sidebar width */
    height: 100%;
    background-color: #2C3E50; /* Darker background for menu */
    flex-direction: column;
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    padding-top: 20px; /* Add padding for content inside menu */
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
  }

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

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    gap: 15px;
  }

  .nav-link {
    width: 100%;
    padding: 10px 0;
    font-size: 18px;
  }
  .nav-link::after {
    left: auto;
    right: 0;
  }

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

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

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

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

  .footer-col h3 {
    margin-top: 20px;
  }

  .footer-col ul {
    padding: 0;
  }
}
