/*
 * Juno Mega Menu
 * Scoped, shortcode-safe styles for the [juno_mega_menu] WordPress shortcode.
 */

.juno-mm {
  --juno-black: #000000;
  --juno-ink: #121212;
  --juno-ink-2: #1a1a1a;
  --juno-red: #8a0b0e;
  --juno-red-bright: #a51014;
  --juno-text: #e0e0e0;
  --juno-muted: #bfbfbf;
  --juno-white: #ffffff;
  --juno-line: rgba(255, 255, 255, 0.16);
  --juno-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
  --juno-ease: 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
  position: relative;
  z-index: 999;
  width: 100%;
  color: var(--juno-text);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  line-height: 1.35;
}

.juno-mm *,
.juno-mm *::before,
.juno-mm *::after {
  box-sizing: border-box;
}

.juno-mm a,
.juno-mm button {
  -webkit-tap-highlight-color: transparent;
}

.juno-mm a {
  color: inherit;
  text-decoration: none;
}

.juno-mm button {
  margin: 0;
  border: 0;
  font: inherit;
}

.juno-mm__bar {
  position: relative;
  min-height: 80px;
  background: var(--juno-black);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.juno-mm--fullwidth .juno-mm__bar {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.juno-mm__inner {
  display: flex;
  align-items: stretch;
  width: min(100%, 1840px);
  min-height: 80px;
  margin: 0 auto;
  padding-inline: clamp(16px, 2vw, 34px);
}

.juno-mm__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 192px;
  padding-right: clamp(22px, 2.4vw, 46px);
}

.juno-mm__brand img {
  display: block;
  width: 176px;
  max-width: 100%;
  height: auto;
}

.juno-mm__nav-wrap {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
}

.juno-mm__nav {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
}

.juno-mm__menu {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.juno-mm__item {
  display: flex;
  align-items: stretch;
  min-width: 0;
  list-style: none;
}

.juno-mm__item--simple {
  position: relative;
}

.juno-mm__link,
.juno-mm__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  color: var(--juno-text);
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: color var(--juno-ease), background-color var(--juno-ease);
}

.juno-mm__link {
  padding: 0 clamp(11px, 1vw, 18px);
}

.juno-mm__item--has-mega > .juno-mm__link {
  padding-right: 6px;
}

.juno-mm__link:hover,
.juno-mm__link:focus-visible,
.juno-mm__item.is-current > .juno-mm__link {
  color: var(--juno-white);
  background: var(--juno-red);
  outline: 0;
}

.juno-mm__item--has-mega > .juno-mm__link:hover,
.juno-mm__item--has-mega > .juno-mm__link:focus-visible {
  background: transparent;
}

.juno-mm__toggle {
  width: 28px;
  padding: 0 8px 0 2px;
  background: transparent;
  cursor: pointer;
}

.juno-mm__toggle:hover,
.juno-mm__toggle:focus-visible,
.juno-mm__item.is-open > .juno-mm__toggle,
.juno-mm__item--has-mega:hover > .juno-mm__toggle {
  color: var(--juno-white);
  outline: 0;
}

.juno-mm__toggle:focus-visible {
  box-shadow: inset 0 0 0 2px var(--juno-red-bright);
}

.juno-mm__chevron {
  width: 12px;
  height: 8px;
  transition: transform var(--juno-ease);
}

.juno-mm__item.is-open > .juno-mm__toggle .juno-mm__chevron,
.juno-mm__item--has-mega:hover > .juno-mm__toggle .juno-mm__chevron,
.juno-mm__item--simple:hover > .juno-mm__toggle .juno-mm__chevron {
  transform: rotate(180deg);
}

.juno-mm__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  justify-content: center;
  min-height: 42px;
  margin-left: auto;
  padding: 0 clamp(16px, 1.55vw, 27px);
  color: var(--juno-white);
  background: var(--juno-red);
  border-radius: 2px;
  font-size: clamp(13px, 0.92vw, 15px);
  font-weight: 700;
  letter-spacing: 0.015em;
  transition: background-color var(--juno-ease), transform var(--juno-ease);
}

.juno-mm__cta:hover,
.juno-mm__cta:focus-visible {
  background: var(--juno-red-bright);
  color: var(--juno-white);
  outline: 0;
  transform: translateY(-1px);
}

.juno-mm__mega-panel {
  position: absolute;
  z-index: 1001;
  top: 100%;
  left: 50%;
  display: grid;
  width: min(1140px, calc(100vw - 32px));
  padding: clamp(20px, 2.3vw, 34px);
  overflow: hidden;
  color: var(--juno-text);
  background: var(--juno-ink);
  border-top: 3px solid var(--juno-red);
  box-shadow: var(--juno-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  visibility: hidden;
  transition: opacity var(--juno-ease), transform var(--juno-ease), visibility var(--juno-ease);
}

.juno-mm__item--has-mega.is-open > .juno-mm__mega-panel,
.juno-mm__item--has-mega:focus-within > .juno-mm__mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

@media (hover: hover) and (min-width: 1025px) {
  .juno-mm__item--has-mega:hover > .juno-mm__mega-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
  }
}

.juno-mm__mega-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(18px, 2vw, 26px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--juno-line);
}

.juno-mm__eyebrow {
  margin: 0 0 4px;
  color: #d3d3d3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.juno-mm__mega-title {
  margin: 0;
  color: var(--juno-white);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.juno-mm__all-lines {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--juno-text);
  border-bottom: 1px solid var(--juno-red);
  font-size: 13px;
  font-weight: 700;
  transition: color var(--juno-ease), border-color var(--juno-ease);
}

.juno-mm__all-lines:hover,
.juno-mm__all-lines:focus-visible {
  color: var(--juno-white);
  border-color: var(--juno-white);
  outline: 0;
}

.juno-mm__all-lines svg {
  width: 14px;
  height: 14px;
  transition: transform var(--juno-ease);
}

.juno-mm__all-lines:hover svg,
.juno-mm__all-lines:focus-visible svg {
  transform: translateX(3px);
}

.juno-mm__brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.juno-mm__brand-card {
  display: grid;
  grid-template-columns: minmax(170px, 40%) 1fr;
  min-height: 250px;
  overflow: hidden;
  background: var(--juno-ink-2);
  border: 1px solid var(--juno-line);
  transition: border-color var(--juno-ease), transform var(--juno-ease), box-shadow var(--juno-ease);
}

.juno-mm__brand-card:hover {
  border-color: rgba(165, 16, 20, 0.9);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.juno-mm__brand-media {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: #2b2b2b;
}

.juno-mm__brand-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.45));
  transition: opacity var(--juno-ease);
}

.juno-mm__brand-card:hover .juno-mm__brand-media::after {
  opacity: 0.66;
}

.juno-mm__brand-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.juno-mm__brand-card:hover .juno-mm__brand-media img {
  transform: scale(1.055);
}

.juno-mm__brand-body {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 1.7vw, 25px);
}

.juno-mm__brand-name {
  align-self: flex-start;
  margin: 0 0 9px;
  color: var(--juno-white);
  font-size: clamp(21px, 1.7vw, 27px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.juno-mm__brand-name::after {
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 9px;
  content: "";
  background: var(--juno-red);
  transition: width var(--juno-ease);
}

.juno-mm__brand-name:hover::after,
.juno-mm__brand-name:focus-visible::after {
  width: 100%;
}

.juno-mm__brand-name:focus-visible {
  outline: 2px solid var(--juno-red-bright);
  outline-offset: 4px;
}

.juno-mm__brand-copy {
  margin: 0 0 15px;
  color: var(--juno-muted);
  font-size: 13px;
  line-height: 1.55;
}

.juno-mm__model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.juno-mm__model-list li {
  margin: 0;
}

.juno-mm__model-list a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  color: #dedede;
  border: 1px solid rgba(255, 255, 255, 0.19);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.025em;
  transition: color var(--juno-ease), background-color var(--juno-ease), border-color var(--juno-ease);
}

.juno-mm__model-list a:hover,
.juno-mm__model-list a:focus-visible {
  color: var(--juno-white);
  background: var(--juno-red);
  border-color: var(--juno-red);
  outline: 0;
}

.juno-mm__simple-panel {
  position: absolute;
  z-index: 1002;
  top: 100%;
  left: 0;
  display: grid;
  min-width: 220px;
  margin: 0;
  padding: 9px;
  background: var(--juno-ink);
  border-top: 3px solid var(--juno-red);
  box-shadow: var(--juno-shadow);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-9px);
  visibility: hidden;
  transition: opacity var(--juno-ease), transform var(--juno-ease), visibility var(--juno-ease);
}

.juno-mm__item--simple.is-open > .juno-mm__simple-panel,
.juno-mm__item--simple:focus-within > .juno-mm__simple-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

@media (hover: hover) and (min-width: 1025px) {
  .juno-mm__item--simple:hover > .juno-mm__simple-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }
}

.juno-mm__simple-panel a {
  display: block;
  padding: 10px 11px;
  color: var(--juno-text);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--juno-ease), background-color var(--juno-ease);
}

.juno-mm__simple-panel a:hover,
.juno-mm__simple-panel a:focus-visible {
  color: var(--juno-white);
  background: var(--juno-red);
  outline: 0;
}

.juno-mm__mobile-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 80px;
  margin-left: auto;
  color: var(--juno-white);
  background: transparent;
  cursor: pointer;
}

.juno-mm__mobile-toggle:focus-visible {
  outline: 2px solid var(--juno-red-bright);
  outline-offset: -5px;
}

.juno-mm__mobile-bars,
.juno-mm__mobile-bars::before,
.juno-mm__mobile-bars::after {
  display: block;
  width: 23px;
  height: 2px;
  content: "";
  background: currentColor;
  transition: transform var(--juno-ease), opacity var(--juno-ease);
}

.juno-mm__mobile-bars {
  position: relative;
}

.juno-mm__mobile-bars::before {
  position: absolute;
  top: -7px;
}

.juno-mm__mobile-bars::after {
  position: absolute;
  top: 7px;
}

.juno-mm.is-mobile-open .juno-mm__mobile-bars {
  background: transparent;
}

.juno-mm.is-mobile-open .juno-mm__mobile-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.juno-mm.is-mobile-open .juno-mm__mobile-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1320px) {
  .juno-mm__brand {
    min-width: 158px;
    padding-right: 16px;
  }

  .juno-mm__brand img {
    width: 152px;
  }

  .juno-mm__link {
    padding-inline: 10px;
    font-size: 13px;
  }

  .juno-mm__toggle {
    width: 24px;
    padding-inline: 2px 6px;
  }

  .juno-mm__cta {
    margin-left: 10px;
    padding-inline: 14px;
  }
}

@media (max-width: 1024px) {
  .juno-mm__inner {
    position: relative;
    align-items: center;
  }

  .juno-mm__brand {
    min-width: 0;
    padding-right: 0;
  }

  .juno-mm__brand img {
    width: 158px;
  }

  .juno-mm__mobile-toggle {
    display: inline-flex;
  }

  .juno-mm__nav-wrap {
    position: absolute;
    z-index: 1004;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    background: var(--juno-black);
    box-shadow: var(--juno-shadow);
    opacity: 0;
    pointer-events: none;
    transition: max-height 320ms ease, opacity var(--juno-ease);
  }

  .juno-mm.is-mobile-open .juno-mm__nav-wrap {
    max-height: min(82vh, 780px);
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }

  .juno-mm__nav,
  .juno-mm__menu {
    display: block;
  }

  .juno-mm__menu {
    padding: 8px 0 16px;
  }

  .juno-mm__item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .juno-mm__link,
  .juno-mm__toggle {
    min-height: 55px;
  }

  .juno-mm__link {
    justify-content: flex-start;
    padding: 0 22px;
    font-size: 15px;
  }

  .juno-mm__item--has-mega > .juno-mm__link {
    padding-right: 22px;
  }

  .juno-mm__toggle {
    grid-column: 2;
    width: 54px;
    padding: 0;
    color: var(--juno-text);
  }

  .juno-mm__item.is-open > .juno-mm__toggle {
    background: rgba(138, 11, 14, 0.45);
  }

  .juno-mm__cta {
    grid-column: 1 / -1;
    min-height: 46px;
    margin: 14px 22px 4px;
  }

  .juno-mm__mega-panel,
  .juno-mm__simple-panel {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
    transition: max-height 350ms ease, padding 350ms ease;
  }

  .juno-mm__item--has-mega.is-open > .juno-mm__mega-panel {
    max-height: 1100px;
    padding: 21px 22px 24px;
    border-top: 2px solid var(--juno-red);
  }

  .juno-mm__item--simple.is-open > .juno-mm__simple-panel {
    display: grid;
    max-height: 480px;
    padding: 8px 22px 15px;
    border-top: 2px solid var(--juno-red);
  }

  .juno-mm__mega-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 13px;
  }

  .juno-mm__all-lines {
    padding: 5px 0;
  }

  .juno-mm__brand-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .juno-mm__brand-card {
    grid-template-columns: minmax(145px, 34%) 1fr;
    min-height: 202px;
  }

  .juno-mm__brand-media img {
    min-height: 202px;
  }

  .juno-mm__simple-panel a {
    padding: 10px 12px;
  }
}

@media (max-width: 560px) {
  .juno-mm__inner {
    min-height: 70px;
    padding-inline: 15px;
  }

  .juno-mm__bar,
  .juno-mm__mobile-toggle {
    min-height: 70px;
  }

  .juno-mm__brand img {
    width: 135px;
  }

  .juno-mm__brand-card {
    grid-template-columns: 1fr;
  }

  .juno-mm__brand-media,
  .juno-mm__brand-media img {
    min-height: 150px;
    height: 150px;
  }

  .juno-mm__brand-body {
    min-height: 168px;
    padding: 17px;
  }

  .juno-mm__brand-copy {
    font-size: 12px;
  }

  .juno-mm__model-list a {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .juno-mm *,
  .juno-mm *::before,
  .juno-mm *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}


/* --------------------------------------------------------------------------
   Version 1.1 — centered navigation, compact contact actions and mobile fix
   -------------------------------------------------------------------------- */

.juno-mm__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.juno-mm__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--juno-text);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 2px;
  transition: color var(--juno-ease), background-color var(--juno-ease), border-color var(--juno-ease), transform var(--juno-ease);
}

.juno-mm__contact-icon svg {
  width: 19px;
  height: 19px;
}

.juno-mm__contact-icon:hover,
.juno-mm__contact-icon:focus-visible {
  color: var(--juno-white);
  background: rgba(138, 11, 14, 0.62);
  border-color: var(--juno-red-bright);
  outline: 0;
  transform: translateY(-1px);
}

@media (min-width: 1025px) {
  .juno-mm__inner {
    position: relative;
    justify-content: center;
  }

  .juno-mm__brand {
    position: absolute;
    z-index: 1005;
    top: 0;
    left: clamp(16px, 2vw, 34px);
    height: 80px;
    padding-right: 0;
  }

  .juno-mm__nav-wrap {
    display: flex;
    flex: 0 1 auto;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
  }

  .juno-mm__nav,
  .juno-mm__menu {
    flex: 0 1 auto;
    justify-content: center;
  }

  .juno-mm__link {
    padding-inline: clamp(8px, 0.9vw, 16px);
    font-size: clamp(12px, 0.87vw, 15px);
  }

  .juno-mm__actions {
    position: absolute;
    z-index: 1005;
    top: 50%;
    right: clamp(16px, 2vw, 34px);
    padding-left: clamp(20px, 2vw, 42px);
    transform: translateY(-50%);
  }

  .juno-mm__cta {
    margin-left: 0;
  }
}

@media (max-width: 1024px) {
  .juno-mm__inner {
    min-height: 74px;
    padding-right: 60px;
  }

  .juno-mm__bar {
    min-height: 74px;
  }

  .juno-mm__brand {
    display: flex;
    height: 74px;
    margin-right: auto;
  }

  .juno-mm__mobile-toggle {
    position: absolute;
    z-index: 1006;
    top: 0;
    right: 0;
    width: 60px;
    min-height: 74px;
    margin-left: 0;
  }

  .juno-mm__nav-wrap {
    top: 74px;
  }

  .juno-mm__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .juno-mm__actions .juno-mm__cta {
    flex: 1 1 auto;
    grid-column: auto;
    min-height: 48px;
    margin: 0;
  }

  .juno-mm__actions .juno-mm__contact-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
  }

  .juno-mm__item--has-mega.is-open > .juno-mm__mega-panel {
    max-height: 1500px;
  }
}

@media (max-width: 700px) {
  .juno-mm__inner,
  .juno-mm__bar,
  .juno-mm__mobile-toggle {
    min-height: 72px;
  }

  .juno-mm__brand {
    height: 72px;
  }

  .juno-mm__mobile-toggle {
    width: 58px;
  }

  .juno-mm__nav-wrap {
    top: 72px;
  }

  .juno-mm__link {
    min-height: 54px;
    padding-inline: 18px;
  }

  .juno-mm__item--has-mega.is-open > .juno-mm__mega-panel {
    max-height: 1600px;
    padding: 18px 16px 22px;
  }

  .juno-mm__mega-heading {
    align-items: flex-start;
    gap: 8px;
  }

  .juno-mm__brand-grid {
    gap: 16px;
  }

  .juno-mm__brand-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .juno-mm__brand-media,
  .juno-mm__brand-media img {
    min-height: 178px;
    height: 178px;
  }

  .juno-mm__brand-body {
    min-height: 0;
    padding: 17px;
  }

  .juno-mm__brand-name {
    font-size: 23px;
  }

  .juno-mm__brand-copy {
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.5;
  }

  .juno-mm__model-list {
    gap: 7px;
    margin-top: 0;
  }

  .juno-mm__model-list a {
    min-height: 29px;
    padding: 4px 9px;
    font-size: 11px;
  }

  .juno-mm__actions {
    padding: 15px 18px 6px;
  }
}


/* Phone-only hardening: prevent any horizontal clipping in the product panel. */
@media (max-width: 700px) {
  .juno-mm,
  .juno-mm__bar,
  .juno-mm__inner,
  .juno-mm__nav-wrap,
  .juno-mm__menu,
  .juno-mm__item {
    max-width: 100%;
  }

  .juno-mm__nav-wrap {
    overflow-x: hidden;
  }

  .juno-mm__item--has-mega > .juno-mm__mega-panel,
  .juno-mm__item--has-mega.is-open > .juno-mm__mega-panel {
    position: static;
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 18px 16px 22px;
    overflow: hidden;
    transform: none;
  }

  .juno-mm__mega-heading,
  .juno-mm__brand-grid,
  .juno-mm__brand-card,
  .juno-mm__brand-body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .juno-mm__brand-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .juno-mm__brand-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .juno-mm__brand-media,
  .juno-mm__brand-media img {
    width: 100%;
    max-width: 100%;
  }
}
