/* Header Styles */
header {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  z-index: 8888;
  width: 100%;
}

.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.6);
}

/* Logo */
.logo-wrapper a img {
  height: 40px;
}

.navigation-wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.get-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1rem;
  height: 40px;
}

.search-wrapper {
  height: 40px;
  padding: 4px 16px;
  background-color: #ffffff;
  border-radius: 4px;
}

.search-wrapper input[type="search"] {
  height: 100%;
  width: 332px;
  border: none;
}
.search-wrapper input[type="search"]:focus{
  outline: none;
}

.search-filed{
  outline: none !important;
}

.suggestions-box {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  max-height: 250px;
  overflow-y: auto;
  width: 100%;
  z-index: 1000;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

.sidebar-bottom{
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}


.get-quote button{
  width: 140px;
  height: 40px;
  border-radius: 5px;
  background-color:#CA9C57;
  color: #ffffff;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.5s ease-in-out;
}

.get-quote button:hover{
  background:#926e38;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  width: 30px;
  height: 24px;
  cursor: pointer;
  position: relative;
}

.hamburger span {
  height: 4px;
  width: 100%;
  background: #001845;
  position: absolute;
  left: 0;
  transition: 0.4s ease;
  border-radius: 25px;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

/* Sidebar Menu */

.logo-sidebar img{
  width: 280px;
  margin: 30px 20px;
}

.menu-backdrop {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: #001845b4;
  box-shadow: -2px 0 8px rgba(255, 255, 255, 0.1);
  z-index: 10000;
  transition: right 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.list-menu{
    display: flex;
    flex-direction: column;
    background-color: #001845;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.377);
    width: 400px;
    height: 100%;
    padding: 40px 30px;
    border-radius: 25px 0 0 25px;
}

.list-menu svg#closeMenuBtn {
  margin-left: auto;
  margin-bottom: 10px;
  cursor: pointer;
}

.menu-backdrop.active {
  right: 0;
}

/* Nav Links */
.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 2rem 0;
  gap: 1rem;
}

.nav-links li {
  list-style: none;
  position: relative;
  width: 100%;
}

.nav-links a {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background-color: #ffffff;
  width: 0%;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Submenu */
.nav-links .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #001845;
  padding: 10px 5px;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.377);
  border-radius: 8px;
  z-index: 1002;
}

.nav-links li:hover > .sub-menu {
  display: block;
}

.nav-links .sub-menu li {
  width: 100%;
}

.nav-links .sub-menu a {
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-weight: 400;
  text-transform: none;
  width: 100%;
}

.nav-links li.has-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links li.has-submenu > a::after {
  content: "▾";
  font-size: 1rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

/* Optional: Prevent scroll on body when menu is open */
body.menu-open {
  overflow: hidden;
}


.contact-wrap{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;

}

.contact-wrap p, .contact-wrap a {
  font-size: 18px;
  text-decoration: none;
  color: #ffffff;
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
  header {
    position: sticky;
  }

  .navbar-wrapper {
    padding: 15px 30px;
    height: 80px;
  }

  .get-quote {
    display: none; /* optionally hide or relocate this */
  }

  .hamburger {
    display: flex; /* show hamburger */
  }

  .search-wrapper {
    display: none; /* optionally hide or relocate */
  }

  .list-menu {
    width: 80%; /* sidebar takes 80% of screen */
  }

  .nav-links {
    align-items: flex-start;
    padding: 2rem;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 1px;
  }
  .contact-wrap p, .contact-wrap a {
    padding: 0.5rem 1rem;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .navbar-wrapper {
    padding: 10px 20px;
    height: 70px;
  }

  .logo-wrapper a img {
    height: 30px;
  }

  .list-menu {
    width: 100%;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hamburger {
    width: 24px;
    height: 20px;
  }

  .hamburger span {
    height: 2px;
  }

  .nav-links .sub-menu {
    position: static;
    box-shadow: none;
    background: none;
    padding: 0;
  }
    .nav-links .sub-menu {
    display: none;
  }

  .nav-links li.active > .sub-menu {
    display: block;
  }
}
