/*
==========
Styles for header.
==========
*/

.header {
  /*position: sticky;
  top: 0;*/
  width: 100%;
  z-index: 3000;
  box-shadow: 0 2px 8px var(--black-color-transparent);
}

.header__top-row {
  background-color: var(--blue-color);
  display: flex;
  justify-content: flex-end;
  padding: 8px 20px;
}

.header__whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--green-color);
  color: var(--white-color);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  transition: all ease-in-out .3s;
}

.header__whatsapp-btn:hover {
  background-color: var(--lightgreen-color);
  transition: all ease-in-out .3s;
}

.header__whatsapp-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__whatsapp-icon svg{
  width: 100%;
  height: 100%;
  fill: var(--white-color);
}

/* 
==========
Second row: logo + nav 
==========
*/

.header__bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white-color);
  padding: 10px 20px;
  position: relative;
}

/* 
==========
Logo 
==========
*/

.header__logo-container {
  display: flex;
  align-items: center;
}

.header__logo {
  height: 100px;
  width: auto;
}

/* 
==========
Desktop navigation 
==========
*/

.header__nav-list {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav-link {
  text-decoration: none;
  color: var(--blue-color);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--orange-color);
  transition: width 0.3s;
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
  width: 100%;
}

.header__nav-link--active {
  color: var(--blue-color);
}

/* 
==========
Hamburger mobile 
==========
*/

.header__hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* 
==========
Mobile nav overlay 
==========
*/

.header__mobile-nav {
  position: absolute;
  top: 163px;
  left: 0;
  width: 100%;
  background-color: var(--white-color);
  /*box-shadow: 0 6px 8px -0px var(--black-color-transparent);*/
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-in-out;
  z-index: 1000;
}

.header__mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.header__mobile-nav-item {
  width: 100%;
  text-align: center;
}

.header__mobile-nav-link {
  display: inline-block; 
  padding: 14px 0;
  text-decoration: none;
  color: var(--blue-color);
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
}

.header__mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--orange-color);
  transition: width 0.3s ease;
}

.header__mobile-nav-link:hover::after,
.header__mobile-nav-link--active::after {
  width: 100%; 
}

.header__mobile-nav-link:hover,
.header__mobile-nav-link--active {
  color: var(--blue-color);
}

/*
==========
Responsive in 900px
==========
*/

@media screen and (max-width: 900px) {
  .header__nav-list {
    display: none;
  }

  .header__hamburger-btn {
    display: block;
    width: 30px;
    height: 30px;
  }

  .header__hamburger-btn svg{
    display: block;
    width: 100%;
    height: 100%;
    fill: var(--orange-color);
    transform: rotate(180deg);
  }
}