/* Base Styles */
:root {
  --primary-color: #B80000;
  --secondary-color: #FFD700;
  --text-color: #333;
  --light-text-color: #f0f0f0;
  --background-dark: #222;
  --background-light: #fff;
}

* {
  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-light);
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

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

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

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

.main-nav .nav-list {
  display: flex;
  gap: 1.5rem;
}

.main-nav .nav-list a {
  color: var(--light-text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-menu .bar {
  width: 100%;
  height: 3px;
  background-color: var(--light-text-color);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

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

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

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

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

.footer-column h3 {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-column p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-column p a {
  color: var(--light-text-color);
  transition: color 0.3s ease;
}

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

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

.footer-nav ul li a {
  color: var(--light-text-color);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.scroll-to-top {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-dark);
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav .nav-list {
    flex-direction: column;
    padding: 1rem 0;
  }

  .main-nav .nav-list li {
    text-align: center;
    padding: 0.5rem 0;
  }

  .main-nav .nav-list a {
    display: block;
    padding: 0.8rem 1rem;
    border-bottom: none;
  }

  .main-nav .nav-list a:hover,
  .main-nav .nav-list a.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: none;
  }

  .hamburger-menu {
    display: flex;
  }

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

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

  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }

  .scroll-to-top {
    bottom: 15px;
    right: 15px;
  }
}