/* ==============================================
   CELESTIAL LUXURY — NAVBAR
   ============================================== */

#header,
#headerimg {
  background: #fff !important;
  border-bottom: 1px solid #ebebeb !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
}

/* Strip default WordPress header styles */
#headerimg h1,
#headerimg h2,
#header h1,
#header h2 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* ---- Navbar container ---- */
.cl-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
}

/* ---- Logo ---- */
.cl-navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.cl-navbar__logo img {
  max-height: 52px;
  width: auto;
  display: block;
}

/* ---- Nav links ---- */
.cl-navbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cl-navbar__nav a {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: .92rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.cl-navbar__nav a:hover {
  background: #f5f5f5;
  color: #000;
}

/* CTA button inside nav */
.cl-navbar__nav .cl-navbar__cta {
  background: #000;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  margin-left: 8px;
}
.cl-navbar__nav .cl-navbar__cta:hover {
  background: #333 !important;
  color: #fff !important;
}

/* ---- More dropdown ---- */
.cl-dropdown {
  position: relative;
}

.cl-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: .92rem;
  font-weight: 500;
  color: #1a1a1a;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background .18s;
  white-space: nowrap;
}
.cl-dropdown__trigger:hover { background: #f5f5f5; }
.cl-dropdown__trigger svg {
  width: 14px;
  height: 14px;
  transition: transform .2s;
  flex-shrink: 0;
}
.cl-dropdown--open .cl-dropdown__trigger svg {
  transform: rotate(180deg);
}

.cl-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 200px;
  padding: 8px;
  z-index: 9999;
}
.cl-dropdown--open .cl-dropdown__menu {
  display: block;
  animation: cl-fade-in .15s ease;
}

@keyframes cl-fade-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cl-dropdown__menu a {
  display: block !important;
  padding: 10px 14px !important;
  font-size: .88rem !important;
  color: #1a1a1a !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: background .15s !important;
  border-bottom: none !important;
  background: none !important;
}
.cl-dropdown__menu a:hover {
  background: #f5f5f5 !important;
  color: #000 !important;
}

/* ---- Hamburger button ---- */
.cl-navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background .18s;
}
.cl-navbar__burger:hover { background: #f5f5f5; }

.cl-navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}

/* Burger → X animation */
.cl-navbar__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cl-navbar__burger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.cl-navbar__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {

  .cl-navbar {
    padding: 0 16px;
    height: 64px;
    position: relative;
  }

  .cl-navbar__burger { display: flex; }

  .cl-navbar__nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 9998;
  }

  .cl-navbar__nav--open { display: flex; }

  .cl-navbar__nav a {
    padding: 14px 12px;
    font-size: 1rem;
    border-radius: 8px;
    border-bottom: 1px solid #f0f0f0;
  }
  .cl-navbar__nav a:last-child { border-bottom: none; }

  .cl-navbar__nav .cl-navbar__cta {
    margin: 12px 0 0;
    text-align: center;
    padding: 14px;
    border-radius: 100px;
  }

  /* Dropdown on mobile — inline, not absolute */
  .cl-dropdown { width: 100%; }
  .cl-dropdown__trigger {
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
    border-radius: 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
  }
  .cl-dropdown__menu {
    display: none !important;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #fafafa;
    padding: 4px 0 4px 12px;
    min-width: unset;
    animation: none;
  }
  .cl-dropdown--open .cl-dropdown__menu { display: block !important; }
  .cl-dropdown__menu a {
    padding: 12px 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-radius: 0 !important;
  }
}
