/* Header styles */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: var(--transition);
}

.header-shadow {
  box-shadow: var(--shadow);
}

/* Top bar */
.top-bar {
  background-color: var(--gray-dark);
  box-shadow: var(--shadow);
  height: 45px;
}

.top-bar-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0 44px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  height: 45px;
}

.logo img {
  height: auto;
  width: 80px;
  margin-top: 10px;
}

.logo-text {
  color: var(--green-dark);
  font-weight: 500;
}

.hamburger-menu {
  display: none;
}

.contact-email {
  display: flex;
  color: var(--gray-dark);
}

.contact-email a {
  font-size: 13px;
  font-family: "Poppins", sans-serif;
  color: var(--white);
}

.contact-email i {
  margin-right: 0.1rem;
}

.email_contact_hover:hover {
  color: var(--green-dark);
}

.tel_contact_hover:hover {
  color: var(--green-dark);
}

.contact-mobile {
  display: none;
}

.social-icon-menu {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 5px;
  width: 100%;
  height: 45px;
}

.social-icon-i {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #444;
  color: var(--white);
  transition: var(--transition);
}

.social-icon-i:hover {
  background-color: var(--green-dark);
  color: var(--white);
}

/* Navigation bar */
.nav-bar {
  background-color: var(--beige);
  padding: 0 20px;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  align-items: center;
}

.desktop-menu {
  display: block;
}

.desktop-menu ul {
  display: flex;
  gap: 0.8rem;
}

.desktop-menu ul li {
  list-style: none;
  font-size: 16px !important;
  font-family: "Playfair Display", serif !important;
}

.nav-link {
  position: relative;
  font-weight: 600;
  transition: var(--transition);
}

.nav-link.active {
  color: var(--green-dark);
}

.nav-link:hover {
  color: var(--green-dark);
}

.search-container {
  position: relative;
  float: right;
}
.search-container button {
  border: none;
}

.search-input {
  padding-left: 2.5rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--beige);
  outline: none;
  font-size: 0.875rem;
  box-shadow: var(--shadow);
}

.search-input:focus {
  border-color: var(--green-dark);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(36, 114, 74, 0.1);
  color: var(--green-dark);
  border-radius: 100%;
  padding: 12px;
  cursor: pointer;
}
.search-icon i {
  font-size: 13px;
}
.search-container:hover .search-icon{
background-color: var(--green-dark);
  color: var(--white);
}

.social-mobile {
  display: none;
}

.subscribe-btn {
  background-color: var(--green-dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  /* Header styles */
  .sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    transition: var(--transition);
  }

  .header-shadow {
    box-shadow: var(--shadow);
  }

  /* Top bar */
  .top-bar {
    box-shadow: var(--shadow);
    height: fit-content;
    padding: 3px 0px;
  }

  .top-bar-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0 26px;
  }

  .logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    height: 45px;
  }

  .logo img {
    height: auto;
    width: 80px;
    margin-top: 10px;
  }

  .logo-text {
    color: var(--green-dark);
    font-weight: 500;
  }

  .hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 5px;
    width: 100%;
    height: 45px;
  }

  .hamburger-i {
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    cursor: pointer;
    background-color: var(--green-dark);
  }
  #hamburger-i-close {
    display: none;
  }

  /* Navigation bar */
  .nav-bar {
    background-color: var(--beige);
    padding: 0px 20px;
    height: 130%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    padding-top: 20px;
    transition: var(--transition);
    border-radius: 0px 0px 10px 10px;
    display: none;
  }

  .nav-content {
    display: block !important;
    height: 100%;
  }

  .desktop-menu {
    display: block;
  }

  .desktop-menu ul {
    display: block;
    gap: 0.8rem;
  }

  .desktop-menu ul li {
    text-align: center;
    width: 100%;
    padding: 5px;
    list-style: none;
    font-size: 20px !important;
    font-family: "Playfair Display", serif !important;
  }

  .nav-link {
    position: relative;
    font-weight: 600;
    transition: var(--transition);
    width: 100% !important;
  }

  .nav-link.active {
    color: var(--green-dark);
  }

  .nav-link:hover {
    color: var(--green-dark);
  }

  .search-container {
    position: relative;
    float: none;
    width: 80%;
    margin: auto;
    margin-top: 10px;
  }

  .search-input {
    padding-left: 2.5rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--beige);
    outline: none;
    width: 100%;
    font-size: 0.875rem;
  }

  .search-input:focus {
    border-color: var(--green-dark);
  }

  .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-medium);
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .subscribe-btn {
    background-color: var(--green-dark);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
  }

  .contact-email {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--gray-dark);
    margin-top: 20px;
    text-align: center;
  }

  .contact-email a {
    font-size: 13px;
    font-family: "Poppins", sans-serif;
    color: var(--green-dark);
  }

  .contact-email i {
    margin-right: 0.1rem;
  }

  .email_contact_hover:hover {
    color: var(--green-dark);
  }

  .tel_contact_hover:hover {
    color: var(--green-dark);
  }

  .contact-desktop {
    display: none;
  }

  .social-icon-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: fit-content;
    padding-top: 20px;
  }

  .social-icon-i {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #444;
    color: var(--white);
    transition: var(--transition);
  }

  .social-icon-i:hover {
    background-color: var(--green-dark);
    color: var(--white);
  }

  .social-desktop {
    display: none;
  }
}
