/* ---------- site-nav ---------- */
.site-nav {
  width: 100%;
  z-index: 1000;
}

/* ---------- Desktop Menu ---------- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav-item {
  border-bottom: 2px solid transparent;
}

.site-nav-item:focus-visible {
  outline: none;
}

.site-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 400;
  transition: background 0.15s ease;
  min-height: 5rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-nav-link:hover {
	color: white;
}

.has-mega.open .site-nav-link:hover, .has-mega.open .site-nav-link {
  color: white;
}

.has-mega.open.site-nav-item {
  border-bottom-color: #ef4a25;
}

.caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
}

.has-mega.open .caret {
  transform: rotate(-135deg);
  margin-top: 2px;
}

/* ---------- Mega Menu (desktop) ---------- */
.mega-menu-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 100vw;
  max-width: none;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
  z-index: 999;
}

.has-mega.open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-content {
  display: grid;
  display: flex;
  grid-template-columns: repeat(4, 1fr) 1fr;
  padding: 24px;
  gap: 24px;
}

.mega-content > * {
  flex: 1;
}

.mega-column h4 {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: #666;
}

.mega-column ul li a:hover {
  color: #d97757;
}

.mega-promo {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 16px;
}

.mega-promo p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

/* ---------- Hamburger button ---------- */
.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.site-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #1a1a1a;
  background: #fff;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.site-nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Overlay ---------- */
.mega-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--col);
  padding-bottom: 13px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f0eff1;
}

.mega-heading::before {
  content: "";
  display: inline-block;
  vertical-align: 1px;
  margin-right: 7px;
  width: 0;
  height: 0;
  border-left: 6px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.mega-item,
.mega-heading {
  --col: var(--col-multi, #ef4a25);
}

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

.mega-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: start;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 9px;
}

.mega-item:hover {
  background: #f6f5f7;
}

.mega-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--col) 13%, transparent);
  color: var(--col);
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.mega-item:hover .mega-icon {
  background: color-mix(in srgb, var(--col) 22%, transparent);
}

.mega-logo-icon {
  background: color-mix(in srgb, var(--logo) 15%, transparent);
  color: var(--logo);
}

.mega-item:hover .mega-logo-icon {
  background: color-mix(in srgb, var(--logo) 26%, transparent);
}

.mega-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  max-width: 100%;
}

.mega-title {
  font-size: 14px;
  font-weight: 600;
  color: #181325;
  line-height: 1.4;
  display: block;
}

.mega-item:hover .mega-title {
  color: var(--col);
}

.mega-description {
  font-size: 12.5px;
  font-weight: 400;
  color: #7b7589;
  line-height: 1.45;
  margin-top: 1px;
  display: block;
}

.mega-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #ef4a25;
  margin-bottom: 7px;
}

.mega-rail-stack h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
  color: #181325;
}

.mega-rail-stack p {
  font-size: 12.8px;
  color: #7b7589;
  line-height: 1.5;
  margin: 8px 0 0;
}

.mega-rail-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 13px;
  font-weight: 700;
  color: #c93a1b;
}

.mega-rail.mega-soon .mega-rail-link {
  color: #4b3246;
}

.mega-rail-link::after {
  content: " \2192";
}

.mega-rail-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-self: start;
}

.mega-footer {
  background: #f6f5f7;
  border-top: 1px solid #e7e6e7;
  border-radius: 0 0 10px 10px;
}

.mega-footer-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.mega-footer-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.mega-footer-main strong {
  font-size: 15px;
  font-weight: 700;
  color: #c93a1b;
  letter-spacing: -0.015em;
}

.mega-footer-main span {
  font-size: 13px;
  color: #7b7589;
}

.mega-footer-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

.mega-footer-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: #4c4658;
}

.mega-footer-links a:hover {
  color: #c93a1b;
}

.mega-rail.mega-soon {
  background: #f3eff2;
}

.mega-rail.mega-soon .mega-eyebrow {
  color: #4b3246;
}

.mega-contents {
  margin: 13px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mega-contents li {
  font-size: 13px;
  font-weight: 500;
  color: #4c4658;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-contents li a {
  color: inherit;
}

.mega-contents a:hover {
  color: #c93a1b;
  text-decoration: underline;
}

.mega-contents li::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid #4b3246;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  flex-shrink: 0;
}

.mega-rail {
  background: #f6f5f7;
  border-radius: 12px;
  padding: 22px;
  align-self: start;
}

.mega-chip {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: 2px;
  color: #4b3246;
  background: #ffffff;
  border: 1px solid #4b3246;
}

.mega-item.mega-more .mega-title::after {
  content: " \2192";
}

/* =========================================================
   RESPONSIVE — MOBILE / TABLET
   ========================================================= */
@media (max-width: 1000px) {
  .navbar-menu.is-active {
    background: none;
    padding: 0;
  }

  .navbar-end {
    display: none;
  }

  .site-nav-toggle {
    display: flex;
  }

  .site-nav-item {
    border: none;
  }

  .site-nav-toggle.active {
    gap: 5px;
  }

  .site-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    transition: max-height 0.35s ease;
    z-index: 950;
  }

  .site-nav-menu.open {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
  }

  .site-nav-link {
    padding: 14px 10px;
    justify-content: space-between;
    width: 100%;
    color: #1a1a1a;
    min-height: auto;
  }

  .nav-list .has-mega.open .site-nav-link, .site-nav-link:hover {
    color: #1a1a1a;
  }

  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #fafafa;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease;
  }

  .has-mega.open .mega-menu {
    max-height: none;
    transform: none;
    border: none;
    background: none;
  }

  .mega-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 10px;
  }

  .mega-rail-stack {
    gap: 16px;
  }
  .mega-footer {
    display: none;
  }
}