/* ================= HEADER BASE ================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #e7e5d6;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);

  display: flex;
  align-items: center;
  min-height: 72px;
}

/* ================= LOGO (LEFT) ================= */

.header-logo {
  padding-left: 20px;
  flex-shrink: 0;
}

.header-logo img {
  height: 56px;              /* DESKTOP */
  display: block;
}

/* ================= CENTER + RIGHT ================= */

.header-inner {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

/* ================= NAV LINKS ================= */

.nav-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 20px;
  color: #000;
  white-space: nowrap;
  transition: background-color 0.25s ease;
}

.nav-btn:hover {
  background-color: #d6d3c2;
}

.nav-btn.active {
  background-color: #c8c4ad;
  font-weight: 500;
}

/* ================= RIGHT ACTIONS ================= */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

/* SEARCH BAR */
.search-box input {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #cfcbb5;
  background-color: #f6f5ef;
  font-size: 14px;
  width: 150px;
  outline: none;
}

/* CONTACT BUTTON */
.contact-btn {
  padding: 10px 22px;
  background-color: #7b8f3a;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border-radius: 24px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.contact-btn:hover {
  background-color: #66782f;
}

/* =========================
   HEADER RESPONSIVE FIXES
   ========================= */

/* Large Tablets */
@media (max-width: 1024px) {
  .nav-btn {
    font-size: 17px;
    padding: 6px 12px;
  }

  .header-inner {
    padding: 0 16px;
  }
}

/* Tablets & Mobile */
@media (max-width: 768px) {
  .site-header {
    position: sticky; /* better mobile UX */
    top: 0;
  }

  .header-inner {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-btn {
    font-size: 16px;
    padding: 6px 10px;
  }

  /* ❌ Disable hover dropdowns on mobile */
  .nav-dropdown:hover .dropdown-menu,
  .services-menu:hover .services-container {
    display: none;
  }

  /* Hide mega menu completely */
  .services-container,
  .dropdown-menu {
    display: none !important;
  }

  /* Actions row */
  .header-actions {
    justify-content: center;
    width: 100%;
  }

  .search-box {
    display: none;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .header-logo img {
    height: 36px;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-btn {
    font-size: 15px;
  }

  .contact-btn {
    width: auto;
    padding: 8px 18px;
    font-size: 15px;
  }
}


/*servicesdrop down*/

/* ================= SERVICES DROPDOWN ================= */

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 280px;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 10px 0;
  z-index: 999;
}
.nav-dropdown {
  position: relative;
}

/* dropdown hidden state */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 10px 0;
  z-index: 3000;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* show dropdown */
.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* DROPDOWN LINKS */
.dropdown-menu a {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 13px;
  color: #222;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

/* Services dropdown links – look like normal text */
.service-panel a,
.service-panel a:visited,
.service-panel a:hover,
.service-panel a:active {
  color: #222;              /* normal text color */
  text-decoration: none;    /* no underline */
}

/* HOVER EFFECT */
.dropdown-menu a:hover {
  background-color: #f0f0e6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}


.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.services-menu {
  position: relative;
}

.services-container {
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  gap: 18px;
  background: #fff;
  padding: 16px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  display: none;
}

.services-menu:hover .services-container {
  display: flex;
}

/* LEFT */
.services-left {
  list-style: none;
  width: 285px;
  border-right:#000 1px solid;
}

.service-item {
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.service-item.active {
  background: #f3f3e8;
}

/* RIGHT */
.services-right {
  display: none;
  width: 350px;
}

.services-right.active {
  display: block;
}

.service-panel {
  display: none;
  list-style: none;
}

.service-panel.active {
  display: block;
}

.service-panel li {
  padding: 10px 14px;
  border-radius: 12px;
}

.service-panel li:hover {
  background: #f1f1e6;
}

.arrow {
  pointer-events: none;
}


/*--search box auto complete----*/
.search-box {
  position: relative;
}

.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  list-style: none;
  padding: 6px;
  margin: 0;
  display: none;
  z-index: 999;
  max-height: 260px;
  overflow-y: auto;
}

.search-results li {
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  color: #222;
}

.search-results li:hover,
.search-results li.active {
  background: #e6e4d2;
}


.services-left .service-item,
.services-left .service-item a,
.services-left .service-item .arrow {
  color: #000;
}
