@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Oswald:wght@700&display=swap');

:root {
  --primary-color: #CC0000;
  --secondary-color: #FFD700;
  --text-color: #333;
  --light-text-color: #f0f0f0;
  --background-dark: #222;
  --background-light: #f9f9f9;
}

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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Header Styles */
.site-header {
  background-color: var(--background-dark);
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--secondary-color);
}

/* New button styles */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none; /* Ensure no default button border */
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--background-dark); /* Or a darker text color */
}

/* Group for desktop navigation and buttons */
.header-nav-and-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Space between desktop button and navigation */
}

/* Desktop specific button (hidden on mobile) */
.header-auth-buttons.desktop-only {
  display: block; /* Visible by default on desktop */
}

/* Mobile specific button area (hidden on desktop) */
.mobile-auth-buttons {
  display: none; /* Hidden by default */
}

.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav ul li {
  margin-left: 2rem;
}

.main-nav ul li a {
  color: var(--light-text-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--primary-color);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
  width: 100%;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

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

/* Footer Styles */
.site-footer {
  background-color: var(--background-dark);
  color: var(--light-text-color);
  padding: 3rem 0;
  font-size: 0.9rem;
  border-top: 3px solid var(--primary-color);
}

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

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-brand .footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--light-text-color);
  font-size: 0.85rem;
}

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

.footer-nav ul li {
  margin-bottom: 0.7rem;
}

.footer-nav ul li a {
  color: var(--light-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-contact p {
  margin-bottom: 0.5rem;
}

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

.footer-contact a:hover {
  color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .main-nav ul li {
    margin-left: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }

  /* Hide desktop specific auth buttons */
  .header-auth-buttons.desktop-only {
    display: none;
  }

  /* The .header-nav-and-buttons container itself will no longer be hidden */
  /* Its children (desktop button and main nav) will be handled individually */

  /* Show and style mobile button area */
  .mobile-auth-buttons {
    display: block;
    padding: 1rem 1rem; /* Match header-container mobile padding */
    background-color: var(--background-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }

  .mobile-auth-buttons .btn {
    width: 100%; /* Make button fill its container width */
    max-width: 300px; /* Limit button width for larger mobile screens */
    padding: 1rem 1.5rem; /* Adjust padding for mobile button */
  }

  .hamburger-menu {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 70%;
    height: 100vh;
    background-color: var(--background-dark);
    padding-top: 5rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease-in-out;
    z-index: 999;
  }

  .main-nav.active {
    right: 0; /* Show menu */
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1.5rem;
  }

  .main-nav ul li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav ul li:last-child {
    border-bottom: none;
  }

  .main-nav ul li a {
    display: block;
    padding: 1rem 0;
    width: 100%;
  }

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

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

  .footer-section {
    min-width: unset;
    width: 100%;
    margin-bottom: 1.5rem;
  }

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

@media (max-width: 480px) {
  .logo {
    font-size: 1.8rem;
  }

  .footer-brand .footer-logo {
    font-size: 1.5rem;
  }
}