/* CYW mobile navigation drawer */
.cyw-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(46, 74, 58, 0.18);
  border-radius: 10px;
  background: transparent;
  color: #2e4a3a;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 10002;
}

.cyw-nav-toggle__bars,
.cyw-nav-toggle__bars::before,
.cyw-nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cyw-nav-toggle__bars::before,
.cyw-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.cyw-nav-toggle__bars::before { top: -6px; }
.cyw-nav-toggle__bars::after { top: 6px; }

.cyw-nav-toggle[aria-expanded="true"] .cyw-nav-toggle__bars {
  background: transparent;
}
.cyw-nav-toggle[aria-expanded="true"] .cyw-nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}
.cyw-nav-toggle[aria-expanded="true"] .cyw-nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.cyw-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.cyw-mobile-nav.is-open {
  display: block;
  pointer-events: auto;
}

.cyw-mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 40, 34, 0.45);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.cyw-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: #f4eee0;
  box-shadow: -12px 0 40px rgba(46, 74, 58, 0.2);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 88px 22px 40px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.cyw-mobile-nav.is-open .cyw-mobile-nav__panel {
  transform: translateX(0);
}

.cyw-mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cyw-mobile-nav__list > li > a,
.cyw-mobile-nav__list > li > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #2e4a3a;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(46, 74, 58, 0.08);
  text-align: left;
  cursor: pointer;
}

.cyw-mobile-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 8px;
  display: none;
}

.cyw-mobile-nav__item.is-expanded > .cyw-mobile-nav__sub {
  display: block;
}

.cyw-mobile-nav__sub a {
  display: block;
  padding: 10px 12px 10px 16px;
  font-size: 13px;
  color: #5c524a;
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 74, 58, 0.05);
}

.cyw-mobile-nav__sub a.is-sub {
  padding-left: 28px;
  font-size: 12px;
}

.cyw-mobile-nav__caret {
  font-size: 11px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.cyw-mobile-nav__item.is-expanded .cyw-mobile-nav__caret {
  transform: rotate(180deg);
}

.cyw-mobile-nav__cta {
  display: block;
  margin-top: 22px;
  text-align: center;
  background: #2e4a3a;
  color: #f4eee0 !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: 100px;
  text-decoration: none !important;
  border: 0 !important;
}

body.cyw-nav-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .cyw-nav-toggle {
    display: inline-flex !important;
  }

  /* Force-hide desktop nav even if page CSS uses a different breakpoint */
  .cyw-header__nav {
    display: none !important;
  }
}
