/* Bar */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  padding: 0 40px;
  background: #ffc845;
  z-index: 1000;
}

/* ensure content starts below nav */
body {
  margin-top: 100px; /* same as nav height */
}

html {
  scroll-behavior: smooth;
}

.nav-inner {
  width: 100%;
  height: 100px; /* fixed height */
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center; /* vertical center */
  justify-content: space-between; /* left group + join */
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand .black {
  display: inline-block;
  width: 180px;
  height: 44px;
  background-image: url("../img/logo/logo_black.svg"); /* adjust path if different */
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.brand .white {
  display: inline-block;
  width: 180px;
  height: 44px;
  background-image: url("../img/logo/logo_white.svg"); /* adjust path if different */
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.logo-mobile-black {
  display: inline-block;
  width: 110px;
  height: 27px;
  background-image: url("../img/logo/logo_black.svg"); /* adjust path if different */
  background-repeat: no-repeat;
  background-size: 100% 100%;
  margin-right: 14px;
}

.brand-arrow {
  display: inline-block;
  height: 28px;
  width: 2px;
  background-image: url("../img/icons/vertical-line.svg"); /* adjust path if different */
  background-repeat: no-repeat;
  background-size: 100% 100%;
  margin-right: 14px;
}

.logo-mobile-crea {
  display: inline-block;
  width: 24px;
  height: 35px;
  background-image: url("../img/logo/crea.svg"); /* adjust path if different */
  background-repeat: no-repeat;
}

.logo-desktop-crea {
  display: inline-block;
  width: 31.4952px;
  height: 45px;
  background-image: url("../img/logo/crea.svg"); /* adjust path if different */
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.menu-down {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("../img/chevrons/menu_down.svg  "); /* adjust path if different */
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.nav-sep {
  display: inline-block;
  width: 1px;
  height: 40px;
  background-image: url("../img/strokes/menu_stroke.svg"); /* adjust path if different */
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  border: none;
  background: none;
}
.menu-item.disabled .menu-link {
  opacity: 0.5;
  cursor: not-allowed;
}
.menu-item a.menu-link {
  color: var(--Black, #000);
  font-family: Poppins;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px; /* 146.667% */
  letter-spacing: 0.15px;
  text-transform: uppercase;
}

.menu-item button {
  cursor: pointer;
}

.chev {
  transition: transform 0.2s ease;
}

/* Button right */
.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #eb5a68;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* Mega dropdown */
.menu-item.has-mega {
  position: relative;
}
.menu-item.has-mega .mega {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  width: 580px;
  border-radius: 14px;
  border: 1px solid #e9e9e9;
  background: #fff;
  padding: 20px;
  display: none;
  z-index: 1000;
}

.mega.medium {
  width: 300px !important;
}

.menu-item.has-mega .mega::before {
  content: "";
  position: absolute;
  top: -16px; /* height equals the desired visual gap */
  left: 0;
  right: 0;
  height: 16px;
  /* no background: it's invisible but hoverable */
}

.menu-item.has-mega[aria-expanded="true"] .mega,
.menu-item.has-mega .menu-link[aria-expanded="true"] + .mega {
  display: grid;
}

.menu-link > span {
  color: var(--Black, #000);
  font-family: Poppins;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px; /* 146.667% */
  letter-spacing: 0.15px;
  text-transform: uppercase;
}

.mega {
  grid-template-columns: 1fr 300px;
  gap: 8px;
  font-family: Poppins;
}
.mega-col {
  min-width: 0;
}

/* Left list */
.mega-list {
  display: flex;
  flex-direction: column;
}

.mega.medium .mega-list {
  width: max-content;
}

.mega-item {
  color: var(--Black, #000);
  font-family: Poppins;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px; /* 146.667% */
  letter-spacing: 0.15px;
  padding: 16px;
}
.mega-item:hover {
  border-radius: 8px;
  background: #fcedef;
  color: var(--500-Crea-Pink, #fa455c);
  font-family: Poppins;
  font-size: 15px;
  font-style: normal;
  line-height: 22px; /* 146.667% */
  letter-spacing: 0.15px;
}

/* Right preview */
.mega-preview__img {
  width: 300px;
  height: 288px;
  border-radius: 16px;
  background: #00807d;
  background-size: cover;
  background-position: center;
}
.mega-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e6e6e6;
  text-decoration: none;
  font-weight: 700;
  color: #111;
}

/* Open/close affordance */
.menu-item.has-mega:hover .chev,
.menu-item.has-mega .menu-link[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

/* Keep mega from hugging edges on tiny screens */
@media (max-width: 680px) {
  .nav-inner {
    height: auto;
    padding: 12px;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: -2rem;
  }
  .menu {
    flex-wrap: wrap;
    gap: 12px;
  }
  .menu-item.has-mega .mega {
    width: min(92vw, 560px);
  }
}

/* Primary (filled pink), Outline (black border on yellow) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 44px;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--500-Crea-Pink, #fa455c);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-block;
}

.btn--primary {
  background: #eb5a68; /* pink-ish */
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: #000;
  border-radius: 12px;
  border: 1px solid var(--Black, #000);
}
.btn--outline span {
  font-family: Poppins;
  font-weight: 400;
  font-style: Regular;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 1%;
}

.ex-card__cta {
  font-family: Poppins;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px; /* 150% */
  letter-spacing: 0.16px;
  text-transform: uppercase;
  margin-top: 20px;
}
.ex-card__cta:hover {
  text-decoration: underline;
}
.ex-card__cta-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 41px;
  background: #fa455c;
  align-items: center;
  justify-content: center;
}
.ex-card__cta-icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.ex-card-wrapper {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.mobile-bar,
.mobile-menu-panel {
  display: none;
}

/* =========================================================
   MOBILE NAV WRAPPER
   ========================================================= */
@media (max-width: 980px) {
  body {
    margin-top: 80px;
  }
  .site-nav {
    height: 80px;
  }

  /* Hide desktop menu */
  .nav-inner {
    display: none;
  }

  /* Show top mobile bar */
  .mobile-bar {
    display: flex;
  }

  /* Menu panel is hidden by default (off canvas) */
  .mobile-menu-panel {
    display: block; /* allow transform slide */
    transform: translateX(100%);
  }

  .mobile-menu-panel.open {
    transform: translateX(0);
  }

  /* ALWAYS hide submenu until .active is added */
  .mobile-accordion .submenu {
    display: none;
  }

  .mobile-accordion.active .submenu {
    display: flex;
  }

  .mobile-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 30px;
    background: #ffc845;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2000;
  }

  .mobile-bar-right {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
  }

  .mobile-bar .brand {
    width: 110px;
  }

  .mobile-join {
    display: inline-flex;
    display: flex;
    height: 40px;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    background: #fa455c;
    color: #fff;
    font-family: Poppins;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px; /* 183.333% */
    letter-spacing: 0.12px;
    width: fit-content;
  }

  .mobile-hamburger {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .mobile-hamburger span {
    width: 100%;
    height: 3px;
    background: #000;
  }

  .mobile-close {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #000;
  }

  /* ===================== PANEL ===================== */
  .mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #e9f6f7;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 3000;
    overflow-y: auto;
    padding: 0 30px;
  }
  .mobile-menu-panel.open {
    transform: translateX(0);
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
  }

  .mobile-menu-list {
    list-style: none;
    padding: 24px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-list a {
    color: #000;
    font-family: Poppins;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px; /* 146.667% */
    letter-spacing: 0.15px;
    text-transform: uppercase;
  }

  .mobile-menu-list li {
    padding: 16px 8px;
    border-bottom: 1px solid #d8d8d8;
  }

  .mobile-bottom-join {
    display: flex;
    margin: 0 auto;
    align-self: stretch;
    justify-content: center;
    gap: 12px;
    padding: 8px 16px;
    height: 44px;
    width: 100%;
  }

  .mobile-open-join {
    width: 100%;
    margin-top: 24px;
  }

  /* ===================== ACCORDION ===================== */

  .accordion-toggle {
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    font-family: Poppins;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px; /* 146.667% */
    letter-spacing: 0.15px;
    text-transform: uppercase;
  }

  .theme-chevron {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("../img/chevrons/theme-menu-mobile.svg"); /* adjust path if different */
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
  }

  .mobile-accordion.active .theme-chevron {
    transform: rotate(0);
  }

  .submenu {
    display: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
  }
  .submenu li {
    padding: 16px;
    border-bottom: none;
  }

  .mobile-accordion.active .submenu {
    display: flex;
  }
}
