/* Landhep header — Anada-style gradient bar + dropdown menus */

.is-hidden,
.hidden {
  display: none !important;
}

/* ---- Header bar (full-width gradient) ---- */
.lh-header,
#site-header.lh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h, 5rem);
  background: linear-gradient(90deg, #437eeb 0%, #5b5fe8 45%, #6600ff 100%);
  box-shadow: 0 4px 24px rgba(67, 126, 235, 0.25);
  border: none;
}

.lh-header.is-scrolled,
#site-header.lh-header.is-scrolled {
  box-shadow: 0 6px 28px rgba(67, 126, 235, 0.35);
}

.lh-navbar {
  height: 100%;
}

.lh-navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Brand */
.lh-navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.lh-navbar-brand__icon {
  display: block;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.lh-navbar-brand__text {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
}

/* Center nav wrapper */
.lh-navbar-collapse {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.lh-navbar-nav {
  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lh-navbar-nav > .lh-nav-item {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Nav links — white, bold, like sample */
.lh-nav-link,
.lh-navbar-nav .lh-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.lh-nav-link:hover,
.lh-navbar-nav .lh-dropdown-toggle:hover,
.lh-nav-link[aria-current="page"],
.lh-dropdown.is-open > .lh-dropdown-toggle {
  color: #ffffff;
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.25rem;
}

.lh-nav-chevron {
  font-size: 0.55rem;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.lh-dropdown.is-open .lh-nav-chevron {
  transform: rotate(180deg);
}

/* CTA on bar (visible on all breakpoints) */
.lh-navbar-attr {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.lh-navbar-cta {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #437eeb !important;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.lh-navbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  color: #6600ff !important;
}

/* ---- Dropdown panel (white card) ---- */
.lh-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1100;
  min-width: 200px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(7, 20, 52, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.lh-dropdown-end .lh-dropdown-menu {
  left: auto;
  right: 0;
}

.lh-dropdown-menu > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lh-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: #1b2546;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.lh-dropdown-menu a:hover {
  background: #f4f7fc;
  color: #437eeb;
}

.lh-dropdown-menu .lh-dropdown-featured {
  font-weight: 600;
  color: #437eeb;
  border-bottom: 1px solid #eef1f6;
  margin-bottom: 0.25rem;
  padding-bottom: 0.75rem;
}

/* Desktop: show menu + hover dropdowns */
@media (min-width: 992px) {
  .lh-navbar-nav {
    display: flex !important;
  }

  .lh-navbar-toggle {
    display: none !important;
  }

  /* Invisible bridge so the pointer can reach the panel without losing hover */
  .lh-dropdown::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
    z-index: 1099;
  }

  .lh-dropdown:hover .lh-dropdown-menu,
  .lh-dropdown.is-hover .lh-dropdown-menu,
  .lh-dropdown:focus-within .lh-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .lh-dropdown:hover > .lh-dropdown-toggle,
  .lh-dropdown.is-hover > .lh-dropdown-toggle,
  .lh-dropdown:focus-within > .lh-dropdown-toggle {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0.25rem;
  }

  .lh-dropdown:hover > .lh-dropdown-toggle .lh-nav-chevron,
  .lh-dropdown.is-hover > .lh-dropdown-toggle .lh-nav-chevron,
  .lh-dropdown:focus-within > .lh-dropdown-toggle .lh-nav-chevron {
    transform: rotate(180deg);
  }
}

.lh-dropdown.is-open .lh-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile toggle */
.lh-navbar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.lh-nav-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lh-navbar-toggle[aria-expanded="true"] .lh-nav-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.lh-navbar-toggle[aria-expanded="true"] .lh-nav-bar:nth-child(2) {
  opacity: 0;
}

.lh-navbar-toggle[aria-expanded="true"] .lh-nav-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lh-nav-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--header-h, 5rem);
  z-index: 999;
  background: rgba(15, 23, 42, 0.45);
}

.lh-nav-overlay:not(.is-hidden) {
  display: block;
  pointer-events: auto;
}

/* Mobile menu */
@media (max-width: 991px) {
  .lh-navbar-collapse {
    flex: 0;
  }

  .lh-navbar-nav.is-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h, 5rem);
    z-index: 1001;
    padding: 0.5rem 0 1rem;
    background: linear-gradient(180deg, #437eeb 0%, #6600ff 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    max-height: calc(100dvh - var(--header-h, 5rem));
    overflow-y: auto;
  }

  .lh-navbar-nav .lh-nav-link,
  .lh-navbar-nav .lh-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .lh-dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0;
  }

  .lh-dropdown.is-open .lh-dropdown-menu {
    display: block;
  }

  .lh-dropdown-menu a {
    padding: 0.6rem 1.5rem;
    color: #1b2546;
  }
}
