/* ==========================================================================
   HEADER & NAVIGATION (Clear Space Compliant)
   ========================================================================== */
header {
  position: fixed;
  inset: 0 0 auto 0;
  background: var(--white);
  height: var(--hh);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  padding: 7px 0;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--gold);
}

.nav-chevron {
  font-size: 0.72rem;
  transition: transform 0.2s var(--ease);
}

.dropdown {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.dropdown:hover .nav-chevron,
.dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 320px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 10px 10px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Invisible bridge prevents mouse cursor gap drops */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.dropdown-item:hover {
  background: var(--soft-grey);
  color: var(--black);
  transform: translateX(5px);
}

.nav-icon-wrap {
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: var(--soft-grey);
  border: 1px solid #ececec;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.nav-item-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s var(--ease);
}

.dropdown-item:hover .nav-icon-wrap {
  background: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(249, 185, 0, 0.2);
}

.dropdown-item:hover .nav-item-img {
  transform: scale(1.1);
}

.btn-nav {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--black);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   MOBILE NAVIGATION OVERLAY
   ========================================================================== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  visibility: hidden;
}

.mobile-overlay.active {
  transform: translateY(0);
  visibility: visible;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--black);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 6px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  user-select: none;
}

#accordionChevron {
  transition: transform 0.3s ease;
  pointer-events: none;
}

.mobile-services-accordion {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 0.3s ease, margin 0.3s ease;
  background: var(--soft-grey);
  border-radius: 8px;
}

.mobile-services-accordion.open {
  max-height: 420px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.mobile-services-accordion a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-grey);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-services-accordion a .nav-icon-wrap {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-services-accordion a .nav-item-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .hamburger-btn {
    display: block;
  }
}

@media (max-width: 640px) {
  :root {
    --hh: 72px;
  }
  .logo img {
    height: 42px;
  }
}