:root {
  --primary-color: #651c01;
  --secondary-color: #9e6c53;
  --dark-bg: #1a1a1a;
  --light-bg: #f9f5f1;
  --footer-bg: #222;
  --footer-bottom-bg: #111;
  --dark-text: #333;
  --light-text: #f5f5f5;
  --gray-text: #999;
  --transition: all 0.3s ease;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --footer-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

/* ===== HEADER STYLES ===== */
header {
  background: rgba(255, 255, 255, 0.98);
  padding: 0 30px;
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 80px;
  transition: var(--transition);
}

header.scrolled {
  height: 70px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-text);
  letter-spacing: 1px;
  position: relative;
  transition: var(--transition);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.logo:hover::after {
  width: 100%;
}

#nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: var(--transition);
}

#nav-links li a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 500;
  font-size: 16px;
  padding: 8px 0;
  position: relative;
}

#nav-links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

#nav-links li a:hover::after, 
#nav-links li a.active::after {
  width: 100%;
}

#nav-links li a:hover, 
#nav-links li a.active {
  color: var(--primary-color);
}

#nav-links li a i {
  margin-right: 5px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark-text);
  transition: var(--transition);
  padding: 8px;
  z-index: 1001; /* Ensure it's above the dropdown */
}

.hamburger:hover {
  color: var(--primary-color);
}

/* ===== FOOTER STYLES ===== */
footer {
  background: var(--footer-bg);
  color: var(--light-text);
  padding: 70px 0 0;
  position: relative;
  box-shadow: var(--footer-shadow);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.footer-about h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-about h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-about p {
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links h4,
.footer-account h4,
.footer-social h4 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-links h4::after,
.footer-account h4::after,
.footer-social h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul,
.footer-account ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-account ul li {
  margin-bottom: 12px;
}

.footer-links ul li a,
.footer-account ul li a {
  color: var(--gray-text);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding-left: 15px;
  display: inline-block;
}

.footer-links ul li a::before,
.footer-account ul li a::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  opacity: 0;
  transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-account ul li a:hover {
  color: var(--light-text);
  padding-left: 20px;
}

.footer-links ul li a:hover::before,
.footer-account ul li a:hover::before {
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  transition: var(--transition);
  font-size: 18px;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  background-color: var(--footer-bottom-bg);
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--gray-text);
  font-size: 14px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  #nav-links {
    gap: 1.5rem;
  }
  
  #nav-links li a {
    font-size: 15px;
  }
  
  .footer-container {
    gap: 30px;
  }
}

/* Update these CSS rules in your headerfooter.css file */

/* Mobile Menu Styles */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark-text);
  transition: var(--transition);
  padding: 8px;
  z-index: 1001; /* Ensure it's above the dropdown */
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  .hamburger {
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  #nav-links {
      position: fixed;
      top: 80px; /* Match header height */
      left: 0;
      right: 0;
      flex-direction: column;
      width: 100%;
      background-color: white;
      box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
      padding: 20px 0;
      gap: 0;
      height: auto;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: all 0.3s ease-out;
      z-index: 1000;
  }
  
  #nav-links.active {
      max-height: 500px; /* More than enough height */
      opacity: 1;
      padding: 20px 0;
  }
  
  #nav-links li {
      width: 100%;
      text-align: center;
      opacity: 0;
      transform: translateY(-20px);
      transition: all 0.3s ease-out;
  }
  
  #nav-links.active li {
      opacity: 1;
      transform: translateY(0);
  }
  
  /* Add delay to each menu item for a staggered animation */
  #nav-links li:nth-child(1) { transition-delay: 0.1s; }
  #nav-links li:nth-child(2) { transition-delay: 0.2s; }
  #nav-links li:nth-child(3) { transition-delay: 0.3s; }
  #nav-links li:nth-child(4) { transition-delay: 0.4s; }
  #nav-links li:nth-child(5) { transition-delay: 0.5s; }
  #nav-links li:nth-child(6) { transition-delay: 0.6s; }
  
  #nav-links li a {
      display: block;
      padding: 15px;
      width: 100%;
  }
}

@media (max-width: 576px) {
  .logo {
    font-size: 22px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-about h3::after,
  .footer-links h4::after,
  .footer-account h4::after,
  .footer-social h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links ul li a,
  .footer-account ul li a {
    padding-left: 0;
  }
  
  .footer-links ul li a::before,
  .footer-account ul li a::before {
    display: none;
  }
  
  .footer-links ul li a:hover,
  .footer-account ul li a:hover {
    padding-left: 0;
  }
  
  .social-icons {
    justify-content: center;
  }
}