/* Base Styles */
:root {
  --primary-color: #1A1A2E;
  --secondary-color: #E6B34B;
  --text-color: #f0f0f0;
  --text-dark: #333;
  --background-dark: #0f0f1d;
  --header-top-bg: var(--primary-color); /* Dark blue/purple */
  --main-nav-bg: var(--secondary-color); /* Gold/Orange for strong contrast */
  --button-primary-bg: var(--secondary-color); /* Gold/Orange */
  --button-secondary-bg: var(--primary-color); /* Dark blue/purple */
  --button-tertiary-bg: #4CAF50; /* Green for 'Download App' */
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-dark);
  padding-top: 110px; /* Default desktop padding: header-top (60px) + main-nav (50px) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

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

ul {
  list-style: none;
}

/* Site Header - Fixed and Floating */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  min-height: auto;
  background-color: transparent; /* Children provide background */
}

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

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

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

.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;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none; /* Remove underline for buttons */
}

.btn-primary {
  background-color: var(--button-primary-bg);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(230, 179, 75, 0.4);
}

.btn-primary:hover {
  background-color: #ffc86b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 179, 75, 0.6);
}

.btn-secondary {
  background-color: var(--button-secondary-bg);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

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

.btn-tertiary {
  background-color: var(--button-tertiary-bg);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-tertiary:hover {
  background-color: #66bb6a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

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

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

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

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

.main-nav {
  background-color: var(--main-nav-bg);
  padding: 10px 0;
  width: 100%;
  display: flex; /* Desktop default: visible */
  flex-direction: row; /* Desktop default: horizontal */
  position: static; /* Desktop default: in normal flow */
  min-height: 50px; /* Approximate height */
}

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

.nav-link {
  color: var(--primary-color); /* Contrasts with secondary-color background */
  padding: 8px 15px;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 5px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-color); /* Light text on hover */
  background-color: rgba(26, 26, 46, 0.1); /* Dark primary color with transparency for hover */
}

.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Footer Styles */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 40px 20px 20px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: inline-block;
}

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

.footer-section p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

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

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

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

  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    justify-content: space-between; /* Space between hamburger and logo */
  }

  .logo {
    order: 2; /* Move logo to center */
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
  }
  
  .hamburger-menu {
    display: block; /* Show hamburger */
    order: 1;
  }

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

  .mobile-buttons-area {
    display: flex; /* Show mobile buttons area */
    padding: 10px 0;
    background-color: var(--header-top-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 998;
    min-height: 60px; /* Approximate height */
    align-items: center;
  }

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

  .mobile-buttons-container .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
  }

  .main-nav {
    display: none; /* Hide main nav by default on mobile */
    position: fixed;
    top: 0; 
    left: 0;
    width: 75%; /* Sidebar width */
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    transform: translateX(-100%); /* Hidden off-screen */
    transition: transform 0.3s ease-out;
    z-index: 1002;
    padding-top: 60px; /* Space for a top bar inside the fixed menu */
    overflow-y: auto; /* Enable scrolling for long menus */
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  }

  .main-nav.active {
    display: flex; /* MUST be flex to show */
    transform: translateX(0); /* Visible */
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color); /* Light text for dark menu background */
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: rgba(230, 179, 75, 0.1); /* Auxiliary color with transparency for hover */
    color: var(--secondary-color);
  }

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

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

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

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