/* ==========================================================
   MEGA MENU — Custom CSS Variables (replace with your brand)
   ========================================================== */
:root {
  /* Colors */
  --mm-bg: #ffffff;
  --mm-dropdown-bg: #fff;
  --mm-text: #1a1a2e;
  --mm-text-light: #555555;
  --mm-heading-color: #1a1a2e;
  --mm-link-color: #333333;
  --mm-link-hover: #333333;
  --mm-border: #e2e5ea;
  --mm-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  --mm-section-hover: #f7f8fa;
  /* Typography */
  --mm-font-family: inherit;
  --mm-top-link-size: 1rem;
  --mm-top-link-weight: 500;
  --mm-heading-size: 1.125rem;
  --mm-heading-weight: 700;
  --mm-link-size: 0.9375rem;
  --mm-caption-size: 0.8125rem;

  /* Spacing */
  --mm-top-padding: 0.75rem 1.25rem;
  --mm-dropdown-padding: 2rem;
  --mm-section-gap: 2rem;
  --mm-link-gap: 0.5rem;
  --mm-image-margin-top: 0;

  /* Layout */
  --mm-max-width: 1200px;
  --mm-image-max-width: 100%;
  --mm-breakpoint: 1024px;

  /* Transitions */
  --mm-transition-speed: 0.2s;Item
}


/* RESETS*/

.button:focus, .button:hover, button:focus, button:hover {background-color:transparent; font-weight: 600; font-family:inherit;}
/* ==========================================================
   NAV BAR
   ========================================================== */
.mega-menu {
  position: static;
  z-index: 1000;
}

.mega-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.mega-menu__list.mega-menu__list {position: static!important; justify-content: center;}

/* ==========================================================
   TOP-LEVEL ITEMS
   ========================================================== */
.mega-menu__top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 10px 20px;
  font-size: var(--mm-top-link-size)!important;
  font-weight: var(--mm-top-link-weight)!important;;
  color: var(--mm-text)!important;;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mm-font-family);
  transition: all 100ms ease;
  white-space: nowrap;
border-bottom: 3px solid transparent;
  padding:15px 0 10px;
}

.mega-menu__top-link:hover {
  border:none;
  font-weight: 800;
 border-color: transparent; 
  border-bottom: 3px solid #db323b;
  border-radius: 0;
}
*/
/* Chevron rotation */
.mega-menu__chevron {
  transition: transform var(--mm-transition-speed);
}

.mega-menu__item--active > .mega-menu__toggle .mega-menu__chevron {
  transform: rotate(180deg);
}

/* ==========================================================
   DROPDOWN PANEL
   ========================================================== */
.mega-menu__dropdown {
  background-color: #efefef;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--mm-dropdown-bg);
  border-top: 1px solid var(--mm-border);
  box-shadow: var(--mm-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity var(--mm-transition-speed),
    visibility var(--mm-transition-speed),
    transform var(--mm-transition-speed);
  pointer-events: none;
  overflow:hidden;
}

.mega-menu__item--active > .mega-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu__dropdown-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap:0;
  margin: 0;
  padding: 0;
}

/* ==========================================================
   SECTIONS
   ========================================================== */
.mega-menu__section {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  position: relative;
}

      
.mega-menu__section.callout.imagePresent::after {content: ''; background: linear-gradient(135deg, rgba(0,0,0,.6), rgba(0,0,0,.2)); z-index: 2; position: absolute; inset: 0;}
.mega-menu__section.callout.imagePresent .text, .mega-menu__section.callout.imagePresent a {position: relative; z-index: 3;}
.mega-menu__section.callout.imagePresent .text * {color:#fff!important; text-shadow: 0 0 15px black;}
.mega-menu__section.callout p {font-size: 1rem;}


.mega-menu__dropdown-inner.five {grid-template-columns: repeat(5, 1fr);}
.mega-menu__section.fit {padding: 2rem .5rem; }

.mega-menu__section:hover {
  background-color: var(--mm-section-hover);
}
.mega-menu__section.killHover:hover {
  background-color: transparent;
}



.mega-menu__section-heading {
  font-size: var(--mm-heading-size);
  font-weight: var(--mm-heading-weight);
  color: var(--mm-heading-color);
  padding-bottom: .25rem;
  border-bottom: 2px solid #db323b;
  margin: 0 0 0.75rem 0;
  display: inline-block;
  align-self: flex-start;
}

.

 /* .mega-menu__links.list li, .mega-menu__section-heading.list {text-align:center;}  */
.mega-menu__links.list li {margin-bottom: .5rem; display:block;}

.mega-menu__section-heading--link {
  text-decoration: none;
  transition: color var(--mm-transition-speed);
}

.mega-menu__section-heading--link:hover {
  color: var(--mm-link-hover);
}
@media (min-width: 1030px) {

  .mega-menu__section.callout {background-color:var(--mm-section-hover);}
.mega-menu__section-heading.list {margin-bottom: .75rem; padding-bottom: .75rem;  border-bottom: 2px solid #db323b; display: block; }
  .mega-menu__links.list li {margin-bottom: .5rem;}
  .mega-menu__section {position:relative;}
  .mega-menu__dropdown-inner .mega-menu__section:not(:last-child):not(.callout)::after {
  content:''; width: 1px; height: 80%; top: 10%; background-color:#efefef; right: 0; position: absolute;
}
}

/* ==========================================================
   LINKS
   ========================================================== */
.mega-menu__links {
  list-style: none;
  margin: 0;
  padding: 0;
  
  display: flex;
  flex-direction: column;
  gap: var(--mm-link-gap);
}

.mega-menu__links.list {display:inline-block; gap:0; }

.mega-menu__link {
  font-size: var(--mm-link-size);
  color: var(--mm-link-color);
  text-decoration: none;
  transition: color var(--mm-transition-speed);
  line-height: 1.5;
}

.mega-menu__link:hover {
  color: var(--mm-link-hover);
}

/* ==========================================================
   OPTIONAL IMAGE
   ========================================================== */
.mega-menu__image-wrapper {
  margin-top: var(--mm-image-margin-top);
  max-width: var(--mm-image-max-width);
  position: relative;
  margin-bottom: 1.5rem;
  aspect-ratio: 6/5;
}

.mega-menu__image-link {
  display: block;
  text-decoration: none;
}

.mega-menu__image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.mega-menu__image-caption {
  display: inline-block;
  border-radius: 0 0 10px 10px;
  font-size: 1.125rem; font-weight: 400;
  color: #fff;
  position: absolute; bottom: 0; right: 0; left: 0; background:linear-gradient(45deg, #db323b, transparent); padding: 5px 5px 5px 20px; letter-spacing: 1px;
}

.mega-menu__image-link:hover .mega-menu__image {
  opacity: 0.85;
}

.bottomBar {display:flex; width: 100%; justify-content: flex-end; padding: .5rem; gap: .5rem;  background: linear-gradient(to right, var(--mm-section-hover), #efefef); }
.bottomBar a, .calloutButton {padding: .5rem 2rem; background-color: #db323b; color: #fff; text-transform: uppercase; height: auto!important; }
.calloutButton {align-self:flex-start}

/* ==========================================================
   MOBILE — Accordion
   ========================================================== */
@media (max-width: 1030px) {
  .mega-menu__list {
    flex-direction: column;
    align-items: stretch;
  }

  .mega-menu__top-link {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--mm-border);
  }

  /* Reset desktop absolute positioning */
  .mega-menu__dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    transform: none;
    /* Accordion slide */
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition:
      max-height 0.35s ease,
      padding 0.35s ease;
    pointer-events: auto;
    padding: 0;
  }

  .mega-menu__item--active > .mega-menu__dropdown {
    max-height: 2000px; /* generous max for content */
    padding: 1rem 0;
    transform: none;
  }

  .mega-menu__dropdown-inner {
    grid-template-columns: 1fr;
    padding: 0 1.25rem;
  
  }

  .mega-menu__image-wrapper {
    max-width: 100%;
  }

  .mega-menu__image {
    max-width: 220px;
  }
}



/* ==========================================================
   ACCESSIBILITY — Focus styles
   ========================================================== */
.mega-menu__top-link:focus-visible,
.mega-menu__link:focus-visible,
.mega-menu__section-heading--link:focus-visible,
.mega-menu__image-link:focus-visible {
  outline: 2px solid var(--mm-link-hover);
  outline-offset: 2px;
}


/* ==========================================================
   HEADER STYLES WHEN THIS MODULE PRESENT
   ========================================================== */

#mobileNavButton {
  position:relative;
  display:none;
  width: 32px;
  height: 24px;
  cursor: pointer;
}

#mobileNavButton::before,
#mobileNavButton::after,
#mobileNavButton .bar {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileNavButton::before { top: 0; }
#mobileNavButton .bar    { top: 50%; transform: translateY(-50%); }
#mobileNavButton::after  { top: 100%; transform: translateY(-100%); }

/* Open state */
#mobileNavButton.open::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
#mobileNavButton.open .bar {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}
#mobileNavButton.open::after {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

@media (max-width: 1130PX) {
  #mobileNavButton {display:inline-block;}
  header .header__column {justify-content: space-between; padding-top: 1rem; }
  header .utilityDesktop {display:none;}
   header.modern .menu--desktop, .mega-menu .menu--desktop .utilityBar, header.modern .header__right  {display:none;}
 
}




/* ==========================================================
   MOBILE NAV — Full screen slide-in
   ========================================================== */

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 420px;
  background: #fff;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

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

/* Overlay */
.mobile-nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.mobile-menu-open .mobile-nav__overlay {
  display: block;
  opacity: 1;
}

/* Header */
.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--mm-border);
  flex-shrink: 0;
}

.mobile-nav__logo {
  max-height: 40px;
  width: auto;
}

/* Close button */
.mobile-nav__close {
  position: relative;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.mobile-nav__close span {
  display: block;
  position: absolute;
  width: 20px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  top: 50%;
  left: 50%;
}

.mobile-nav__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-nav__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Body — scrollable */
.mobile-nav__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* List */
.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav__item {
  border-bottom: 1px solid var(--mm-border);
}

/* Top-level links & toggles */
.mobile-nav__top-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mm-text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mm-font-family);
  text-align: left;
}

/* Chevron */
.mobile-nav__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mobile-nav__item--has-dropdown.open > .mobile-nav__toggle .mobile-nav__chevron {
  transform: rotate(180deg);
}

/* Accordion dropdown */
.mobile-nav__dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #f7f8fa;
}

.mobile-nav__item--has-dropdown.open > .mobile-nav__dropdown {
  max-height: 2000px;
}

/* Sections inside dropdown */
.mobile-nav__section {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--mm-border);
}

.mobile-nav__section:last-child {
  border-bottom: none;
}

.mobile-nav__section--callout {
  background: #f0f4ff;
  display:none;
}

.mobile-nav__section-heading {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mm-heading-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mobile-nav__section-heading--link {
  text-decoration: none;
  color: var(--mm-heading-color);
}

.mobile-nav__section-heading--link:hover {
  color: var(--mm-link-hover);
}

/* Links */
.mobile-nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav__links li {
 
}

.mobile-nav__link {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.9375rem;
  color: var(--mm-link-color);
  text-decoration: none;
  line-height: 1.5;
  padding-left: 20px;
}

.mobile-nav__link:hover {
  color: var(--mm-link-hover);
}

/* Bottom bar inside dropdown */
.mobile-nav__bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #efefef;
}

.mobile-nav__bottom-bar a {
  text-align: center;
  padding: 0.5rem 1rem;
  background-color: #db323b;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
}

/* Footer */
.mobile-nav__footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border-top: 1px solid var(--mm-border);
  background: #fff;
}

.mobile-nav__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mm-text);
  text-decoration: none;
}

.mobile-nav__cta {
  display: block;
  text-align: center;
}

.mobile-nav__bottom-bar a {text-transform: uppercase;}

/* Only show mobile nav at 860px and below */
.mobile-nav,
.mobile-nav__overlay {
  display: none;
}

@media (max-width: 1130px) {
  .mobile-nav__bottom-bar a {
    color: var(--mm-link-color);
  text-align: inherit;
  padding:inherit;
  background-color:inherit;
  font-weight: 600;
  color: var(--mm-heading-color);
  text-decoration: inherit;
  font-size:inherit;
    padding: 10.8px 0;
}
  .mobile-nav__dropdown .mobile-nav__section:last-child {padding-bottom: 0;}
  
  .mobile-nav__bottom-bar {background: transparent; gap:0;}
  
  .mobile-nav {
    display: flex;
  }

  .mobile-nav__overlay {
    display: none; /* controlled by JS via body class */
  }

  body.mobile-menu-open .mobile-nav__overlay {
    display: block;
  }
} 

body.mobile-menu-open .header__navigation {opacity: 1;}