/* css/header-footer.css */
/* Styles for the header (navigation) and footer - consistent across all pages */

/* ==================== HEADER ==================== */
header {
  background: linear-gradient(to bottom, #000000, #1a1a1a);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px; /* Fixed height for consistency */
}

/* Logo */
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.logo span {
  color: var(--primary);
}

/* Main Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
}

nav a {
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary);
  transition: all 0.3s ease;
}

nav a:hover::after {
  width: 100%;
  left: 0;
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
}

/* Active mobile menu state (JS will toggle .active class) */
header.active {
  background: #000;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -8px);
}

/* ==================== FOOTER ==================== */
footer {
  background: #111111;
  color: #cccccc;
  padding: 4rem 0 2rem;
  margin-top: auto; /* Push footer to bottom if content is short */
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h3::after {
  content: '';
  width: 60px;
  height: 2px;
  background: var(--primary);
  display: block;
  margin-top: 0.5rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: #cccccc;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--accent);
}

/* Contact Info */
.contact-info i {
  color: var(--primary);
  margin-right: 0.8rem;
  width: 20px;
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

.footer-bottom a {
  color: var(--accent);
}

/* ==================== RESPONSIVE ADJUSTMENTS (supplement responsive.css) ==================== */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    transition: left 0.4s ease;
  }

  nav ul.active {
    left: 0;
  }

  nav a {
    font-size: 1.3rem;
    padding: 1rem 0;
  }

  nav a::after {
    display: none;
  }
}

@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}