/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: 0.938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
}

/*=============== HEADER ===============*/
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0px 0.09rem 0.54rem 0px #0000001f;
  z-index: 10;
}

.header__call-us {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: var(--brandColor);
  padding: 0.22rem 1.09rem;
}

.header__call-us > a > img {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.28rem;
}
.header__call-us > a {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 150%;
  color: var(--white);
}

/*=============== NAV ===============*/
.nav {
  height: 3.63rem;
}

.nav__logo,
.nav__burger,
.nav__close {
  color: var(--white-color);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  font-weight: var(--font-semi-bold);
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

.nav__logo > img {
  width: 5.31rem;
  height: 2.45rem;
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}
.nav__search-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.nav__toggle {
  position: relative;
  height: 2rem;
  width: 2rem;
}
.nav__toggle > i {
  font-size: 0.87rem;
  color: var(--brandColor);
  border: solid 1.5px var(--brandColor);
  padding: 0.35rem;
  border-radius: 0.18rem;
}

.nav__burger,
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity 0.1s, transform 0.4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 768px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 100%;
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
}

.nav__link {
  color: var(--darkColor);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 150%;
  padding: 0.63rem 1.09rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
  border-bottom: 0.75px solid #2d2d2d0d;
}

.nav__link:hover {
  background-color: var(--white);
  color: var(--brandColor);
}

@media screen and (min-width: 768px) {
  .header__call-us {
    display: none;
  }
  .nav__contactus {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-bottom: 0.28rem;
  }
  .nav__contactus-call {
    width: 4.32rem;
    height: 0.94rem;
    background-color: #d37fa0;
    color: var(--white);
    padding: 0.22rem 0.45rem;
    font-size: 0.45rem;
    font-weight: 500;
    line-height: 150%;
  }
  .nav__contactus-btn {
    width: 3.37rem;
    height: 0.94rem;
    background-color: #e0a5bb;
    color: var(--white);
    padding: 0.22rem 0.45rem;
    font-size: 0.377rem;
    font-weight: 500;
    line-height: 150%;
  }

  .nav__link:hover {
    background-color: transparent;
  }
  .nav__logo > img {
    width: 5.21rem;
    height: 100%;
  }
  .nav__link {
    font-size: 0.377rem;
    border: none;
  }
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform 0.4s;
}

.dropdown__link,
.dropdown__sublink {
  color: var(--darkColor);
  background-color: var(--white);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 150%;

  padding: 0.63rem 2.5rem;

  display: flex;
  align-items: center;
  transition: background-color 0.3s;
  border-bottom: 1.5px solid #2d2d2d0d;
}

.dropdown__link:hover,
.dropdown__sublink:hover {
  color: var(--brandColor);
}

.dropdown__link i,
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover,
.dropdown__sublink:hover {
  background-color: var(--white);
}

.dropdown__menu,
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu,
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height 0.1s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--white);
}

.search-input {
  height: 1.63rem;
  width: 6.36rem;
  border: 1px solid var(--brandColor);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-radius: 0.15rem;
  padding: 0.22rem 0.45rem;
  color: #2d2d2d66;
  font-size: 0.63rem;
}

.search-input i {
  text-align: center;
  font-size: 0.72rem;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 0.22rem;
}
.search-box {
  flex-grow: 1;
  display: flex;
  height: 100%;
}
.search-box input {
  height: 100%;
  width: 100%;
  outline: none;
  font-size: 0.63rem;
  border: none;
  background-color: transparent;
}

.search-box > input::placeholder {
  color: #2d2d2d66;
  font-size: 0.63rem;
  font-weight: 400;
}

/* Scope dropdown hover behavior inside nav */
.dropdown__item {
  position: relative;
}

.nav__link {
  position: relative;
  padding-bottom: 0;
  /* Increases hover area to avoid gap */
}

.dropdown__menu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.dropdown__item:hover .dropdown__menu,
.dropdown__menu:hover {
  display: block;
  opacity: 1;
  padding: 0 1rem;
  visibility: visible;
}

.dropdown__link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  white-space: nowrap;
  color: #2d2d2d80;
}

.dropdown__link:hover {
  background-color: #f5f5f5;
}
/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 768px) {
  .container {
    margin-inline: 1rem;
  }
}

.nav__list {
  background-color: var(--white);
}
/* For large devices */
@media screen and (min-width: 768px) {
  .container {
    margin-inline: auto;
  }
  .search-input {
    margin-left: 1.2rem;
  }
  .nav {
    height: 2.67rem;
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0.9rem;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    font-size: 0.377rem;
    column-gap: 0.6rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: center;
    align-items: center;
  }

  .dropdown__item,
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu,
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, top 0.3s;
    min-width: 6rem;
    max-width: 10rem;
  }
  .dropdown__menu,
  .dropdown__submenu > li {
    border-bottom: 1px solid #2d2d2d0d;
  }
  .dropdown__link,
  .dropdown__sublink {
    font-size: 0.377rem;
    padding: 0.3rem 0.5rem 0.3rem 0.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding: 0.3rem 0.5rem 0.3rem 0.5rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: 0.5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 1rem;
    pointer-events: initial;
    border-top: solid 2px var(--brandColor);
    transition: top 0.3s;
    padding: 0 0;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top 0.3s;
  }

  .search-input {
    width: 5.09rem;
    height: 0.98rem;
    padding: 0.26rem 0.45rem;
  }

  .search-box > input,
  .search-box > input::placeholder,
  .search-input i {
    font-size: 0.41rem;
  }
}
