/* ============================================================
   THE SHALA — nav.css
   Announcement bar + nav + mobile panel.
   Source: snippet-announcement.html + snippet-nav-v2.html
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   ANNOUNCEMENT BAR
──────────────────────────────────────────────────────────── */

#announcementBar {
  background: var(--charcoal-plum);
  padding: 8px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#announcementBar p {
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  white-space: nowrap;
}

#announcementBar p strong {
  font-weight: 600;
}

#announcementBar p a {
  color: var(--orange);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

#announcementBar p a:hover {
  opacity: 0.7;
}

.ann-dismiss {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.ann-dismiss:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ────────────────────────────────────────────────────────────
   NAV — BASE
──────────────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(212, 0, 98, 0.97);
  backdrop-filter: blur(14px);
  transition: background 0.4s ease;
}

nav.scrolled {
  background: rgba(212, 0, 98, 1);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 66px;
}

.nav-logo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 29px;
  width: auto;
  display: block;
}
/* swap to .nav-logo-svg when SVG is exported */

/* ────────────────────────────────────────────────────────────
   NAV — DESKTOP LINKS
──────────────────────────────────────────────────────────── */

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.nav-links > a,
.nav-links > .nav-has-dropdown > a {
  font-family: "Jost", sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  padding: 0 11px;
  transition: color 0.2s;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

/* ────────────────────────────────────────────────────────────
   NAV — ABOUT DROPDOWN
──────────────────────────────────────────────────────────── */

.nav-has-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 66px;
}

.nav-has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 66px;
}

.nav-has-dropdown > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
  opacity: 0.85;
}

.nav-has-dropdown:hover > a::after,
.nav-has-dropdown:focus-within > a::after {
  transform: rotate(225deg) translateY(-2px);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: white;
  min-width: 440px;
  padding: 24px 28px;
  box-shadow: 0 18px 48px rgba(59, 19, 46, 0.18);
  border-top: 3px solid var(--pink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
  z-index: 201;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 24px;
  align-items: start;
}

.nav-dropdown-col {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-divider {
  background: rgba(75, 58, 67, 0.12);
  width: 1px;
  align-self: stretch;
}

.nav-dropdown a {
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aubergine);
  text-decoration: none;
  padding: 9px 4px;
  font-weight: 500;
  border-bottom: 1px solid rgba(75, 58, 67, 0.08);
  transition:
    color 0.2s,
    padding 0.2s;
}

.nav-dropdown-col a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  color: var(--pink);
  padding-left: 8px;
}

/* Message Us */
.nav-msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  background: var(--orange);
  color: white !important;
  font-family: "Jost", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  margin-left: 12px;
  transition: background 0.2s;
  font-weight: 500;
}

.nav-msg:hover {
  background: #c97d00;
}

/* Log In */
.nav-login {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 14px;
  color: white !important;
  font-family: "Jost", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-login:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Pink rule */
.nav-pink-rule {
  height: 3px;
  background: var(--pink);
  position: sticky;
  top: 66px;
  z-index: 199;
}

/* ────────────────────────────────────────────────────────────
   NAV — MOBILE HAMBURGER
──────────────────────────────────────────────────────────── */

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  position: relative;
  transition: background 0.2s;
}

.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: white;
  transition:
    transform 0.3s ease,
    top 0.3s ease;
}

.nav-burger span::before {
  top: -7px;
}
.nav-burger span::after {
  top: 7px;
}

.nav-burger.open span {
  background: transparent;
}
.nav-burger.open span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-burger.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ────────────────────────────────────────────────────────────
   NAV — MOBILE PANEL
──────────────────────────────────────────────────────────── */

.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--pink);
  z-index: 299;
  padding: 90px 28px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
}

.nav-mobile-panel.open {
  transform: translateX(0);
}

.nav-mobile-panel a {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-mobile-panel a:hover,
.nav-mobile-panel a.active {
  color: var(--orange);
}

.nav-mobile-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile-accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mobile-accordion-head a {
  flex: 1;
  border-bottom: none;
  padding-right: 0;
}

.nav-mobile-accordion-toggle {
  background: none;
  border: none;
  color: white;
  width: 44px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.nav-mobile-accordion-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid white;
  border-bottom: 1.5px solid white;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.nav-mobile-accordion.open .nav-mobile-accordion-toggle::after {
  transform: rotate(225deg) translateY(-2px);
}

.nav-mobile-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-mobile-accordion.open .nav-mobile-accordion-body {
  max-height: 600px;
}

.nav-mobile-accordion-body a {
  font-size: 12px;
  padding: 12px 4px 12px 20px;
  opacity: 0.9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile-accordion-body a:last-child {
  border-bottom: none;
}

.nav-mobile-panel .nav-mobile-login {
  margin-top: 24px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

.nav-mobile-panel .nav-mobile-msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 14px 26px;
  background: var(--orange);
  color: white;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
}

.nav-mobile-panel .nav-mobile-msg:hover {
  background: #c97d00;
  color: white;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 298;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

.nav-mobile-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-burger {
  position: relative;
  z-index: 1001;
}

/* ────────────────────────────────────────────────────────────
   BREAKPOINTS
──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .nav-inner {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: inline-flex;
  }
  .nav-mobile-panel {
    display: block;
  }
  .nav-overlay.open {
    display: block;
  }
  #announcementBar {
    padding: 8px 40px 8px 16px;
  }
  #announcementBar p {
    font-size: 10.5px;
    white-space: normal;
    line-height: 1.4;
  }
  .ann-dismiss {
    right: 8px;
    font-size: 14px;
    padding: 6px 10px;
  }
}

@media (max-width: 600px) {
  .nav-logo-img {
    height: 26px;
  }
  #announcementBar p {
    font-size: 10px;
  }
}
