/* Header and Navigation Styles */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #FFFFFF;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header__logo {
  height: 40px;
  display: block;
}

.header__logo img {
  height: 100%;
  width: auto;
}

/* Main Navigation */
.header__nav {
  display: none; /* Hidden on mobile by default */
}

.header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__nav-item {
  position: relative;
}

.header__nav-link {
  font-weight: 500;
  font-size: 16px;
  color: #0A1B2A;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.3s ease;
  position: relative;
}

.header__nav-link:hover {
  color: #5A7152;
}

.header__nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #5A7152;
  transition: width 0.3s ease;
}

.header__nav-link:hover:after,
.header__nav-link.active:after {
  width: 100%;
}

/* Contact link styled as a button */
.header__nav-link--button {
  background-color: #5A7152;
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.header__nav-link--button:hover {
  background-color: #4a5e44;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.header__nav-link--button:after {
  display: none;
}

/* Mobile Menu Toggle */
.header__mobile-toggle {
  display: block;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 24px;
  color: #0A1B2A;
  transition: color 0.3s ease;
}

.header__mobile-toggle:hover {
  color: #5A7152;
}

/* Mobile Navigation */
.header__mobile-nav {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #FFFFFF;
  overflow: hidden;
  transition: height 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 999;
}

.header__mobile-nav.open {
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.header__mobile-nav-list {
  list-style: none;
  padding: 20px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.header__mobile-nav.open .header__mobile-nav-list {
  opacity: 1;
  transform: translateY(0);
}

.header__mobile-nav-item {
  width: 100%;
  text-align: center;
}

.header__mobile-nav-link {
  display: block;
  font-weight: 500;
  font-size: 18px;
  color: #0A1B2A;
  text-decoration: none;
  padding: 12px 20px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.header__mobile-nav-link:hover,
.header__mobile-nav-link.active {
  background-color: rgba(90, 113, 82, 0.1);
  color: #5A7152;
}

.header__mobile-nav-link--button {
  background-color: #5A7152;
  color: #FFFFFF;
  margin-top: 10px;
}

.header__mobile-nav-link--button:hover,
.header__mobile-nav-link--button.active {
  background-color: #4a5e44;
  color: #FFFFFF;
}

/* Adjust body padding to account for fixed header */
body {
  padding-top: 70px;
  scroll-behavior: smooth;
}

/* Media Queries for Responsive Design */
@media screen and (min-width: 992px) {
  .header {
    height: 90px;
  }
  
  .header__logo {
    height: 50px;
  }
  
  .header__nav {
    display: block;
  }
  
  .header__mobile-toggle {
    display: none;
  }
  
  .header__mobile-nav {
    display: none;
  }
  
  body {
    padding-top: 90px;
  }
}

@media screen and (min-width: 768px) {
  .header__container {
    padding: 0 20px;
  }
}