/* Header Section - Mobile First */

/* Base Mobile Styles (Mobile First) */
.site-header {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 25px;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  padding: 0;
  background-color: #FEFBE6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  background: transparent;
  border-radius: 24px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.site-header.scrolled .header-container {
  max-width: 1400px;
  border-radius: 0;
  margin: 0 auto;
  padding: 15px 40px;
  background-color: transparent;
  box-shadow: none;
}

.logo a {
  display: block;
  line-height: 0;
}

.logo img {
  display: block;
  width: 40px;
  height: 40px;
}

.main-nav {
  display: none;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: var(--font-weight-text);
  color: #421901;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #9E6A3A;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 2001;
  width: 50px;
  height: 50px;
}

.menu-icon {
  position: absolute;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform-origin: center center;
}

.menu-icon.hamburger {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.menu-icon.close {
  opacity: 0;
  transform: rotate(180deg) scale(0.8);
}

/* Menu Icon Toggle Animation */
.mobile-menu-toggle.active .menu-icon.hamburger {
  opacity: 0;
  transform: rotate(-180deg) scale(0.8);
}

.mobile-menu-toggle.active .menu-icon.close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Mobile Menu - Full Screen Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #FEFBE6;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  text-align: center;
  width: 100%;
}

.mobile-nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: var(--font-weight-text);
  color: #421901;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 25px 0;
  width: 60%;
  max-width: 250px;
  border-bottom: 1px solid rgba(66, 25, 1, 0.1);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link:hover {
  color: #9E6A3A;
}

/* 480px Breakpoint - Small Mobile Landscape */
@media (min-width: 480px) {
  .header-container {
    padding: 18px 25px;
  }

  .logo img {
    width: 45px;
    height: 45px;
  }

  .mobile-menu-toggle {
    width: 55px;
    height: 55px;
  }

  .menu-icon.hamburger {
    width: 34px;
    height: 22px;
  }

  .menu-icon.close {
    width: 26px;
    height: 26px;
  }
}

/* 768px Breakpoint - Tablet Portrait */
@media (min-width: 768px) {
  .site-header {
    padding: 20px;
  }

  .header-container {
    padding: 20px 30px;
    border-radius: 32px;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .mobile-menu-toggle {
    width: 60px;
    height: 60px;
  }

  .menu-icon.hamburger {
    width: 37px;
    height: 24px;
  }

  .menu-icon.close {
    width: 28px;
    height: 28px;
  }
}

/* 1024px Breakpoint - Tablet Landscape / Small Desktop */
@media (min-width: 1024px) {
  .header-container {
    padding: 20px 40px;
  }

  .logo img {
    width: 55px;
    height: 55px;
  }

  .desktop-nav {
    display: flex;
    gap: 40px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .nav-link {
    font-size: 16px;
  }
}

/* 1440px Breakpoint - Large Desktop */
@media (min-width: 1440px) {
  .logo img {
    width: 60px;
    height: 60px;
  }

  .main-nav {
    gap: 60px;
  }

  .nav-link {
    font-size: 18px;
  }
}