/* ==========================================================================
   JUST LAWNMOWERS - SHARED MEGA MENU DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Containers & Base Utilities
   -------------------------------------------------------------------------- */
.jlm-amasty-menu,
.jlm-amasty-menu-compact,
.jlm-amasty-menu-single {
  background-color: #ffffff;
  color: #334155;
  padding: 1.5rem 1rem;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 6px 6px;
  box-sizing: border-box;

  /* Hover Intent Transition Delay */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  transition-delay: 0ms;
}

/* Hover State (Triggers Flyout with 250ms delay) */
.ammenu-item:hover .jlm-amasty-menu,
.ammenu-item:hover .jlm-amasty-menu-compact,
.ammenu-item:hover .jlm-amasty-menu-single,
li.level0:hover .jlm-amasty-menu,
li.level0:hover .jlm-amasty-menu-compact,
li.level0:hover .jlm-amasty-menu-single {
  opacity: 1;
  visibility: visible;
  transition-delay: 250ms;
}

/* Width Layout Variations */
.jlm-amasty-menu { width: 100%; }
.jlm-amasty-menu-compact { width: 520px; }
.jlm-amasty-menu-single { width: 260px; padding: 1.25rem 1rem; }


/* --------------------------------------------------------------------------
   2. Grid System
   -------------------------------------------------------------------------- */
.jlm-amasty-menu .menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.jlm-amasty-menu-compact .menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.jlm-amasty-menu .menu-col,
.jlm-amasty-menu-compact .menu-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}


/* --------------------------------------------------------------------------
   3. Footer-Style Headings
   -------------------------------------------------------------------------- */
.jlm-amasty-menu .menu-heading,
.jlm-amasty-menu-compact .menu-heading,
.jlm-amasty-menu-single .menu-heading {
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #22c55e;
}

.jlm-amasty-menu .menu-heading a,
.jlm-amasty-menu-compact .menu-heading a {
  color: inherit;
  text-decoration: none;
}

.jlm-amasty-menu .menu-heading a:hover,
.jlm-amasty-menu-compact .menu-heading a:hover {
  color: #16a34a;
}


/* --------------------------------------------------------------------------
   4. Navigation Links & Animations (With Resets)
   -------------------------------------------------------------------------- */
.jlm-amasty-menu .menu-links,
.jlm-amasty-menu-compact .menu-links,
.jlm-amasty-menu-single .menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* EXPLICIT LI TARGETING (Resets external 10px margin AND 24px line-height) */
.jlm-amasty-menu .menu-links li,
.jlm-amasty-menu-compact .menu-links li,
.jlm-amasty-menu-single .menu-links li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

.jlm-amasty-menu .menu-links li a,
.jlm-amasty-menu-compact .menu-links li a {
  display: inline-block;
  color: #475569;
  text-decoration: none;
  font-size: 0.8125rem;
  padding: 0.2rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.jlm-amasty-menu-single .menu-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475569;
  text-decoration: none;
  font-size: 0.8125rem;
  padding: 0.3rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.jlm-amasty-menu .menu-links li a:hover,
.jlm-amasty-menu-compact .menu-links li a:hover,
.jlm-amasty-menu-single .menu-links li a:hover {
  color: #16a34a;
  transform: translateX(3px);
}


/* --------------------------------------------------------------------------
   5. Badges
   -------------------------------------------------------------------------- */
.jlm-amasty-menu .badge,
.jlm-amasty-menu-compact .badge,
.jlm-amasty-menu-single .badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  text-transform: uppercase;
}
.badge-hot { background-color: #ef4444; color: #ffffff; }
.badge-deal { background-color: #eab308; color: #1a201c; }
.badge-new { background-color: #ff9900; color: #ffffff; }
.badge-vip,
.badge-service { background-color: #0f172a; color: #ffffff; }


/* --------------------------------------------------------------------------
   6. Promotional Cards & Feature Banners
   -------------------------------------------------------------------------- */
/* Clearance / Sale Card */
.jlm-amasty-menu .clearance-card,
.jlm-amasty-menu-compact .clearance-card {
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jlm-amasty-menu .clearance-card:hover,
.jlm-amasty-menu-compact .clearance-card:hover {
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
}

.jlm-amasty-menu .clearance-title,
.jlm-amasty-menu-compact .clearance-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.8125rem;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.jlm-amasty-menu .clearance-desc,
.jlm-amasty-menu-compact .clearance-desc {
  font-size: 0.775rem;
  color: #64748b;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

/* Brand Spotlights Wrapper & Cards */
.jlm-amasty-menu .brand-spotlights {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.jlm-amasty-menu .brand-card {
  display: block;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: hidden;
  margin: 0 !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.jlm-amasty-menu .brand-card:hover {
  border: none !important;
  box-shadow: none !important;
  opacity: 0.9;
  transform: translateY(-2px);
}

.jlm-amasty-menu .brand-card img {
  width: 100%;
  height auto;
  display: block;
  border: none !important;
  border-radius: 0 !important;
  object-fit: cover;
}

/* Promo & Delivery Cards (.promo-card and .delivery-card) */
.jlm-amasty-menu .delivery-card,
.jlm-amasty-menu-compact .delivery-card,
.jlm-amasty-menu .promo-card,
.jlm-amasty-menu-compact .promo-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.jlm-amasty-menu .delivery-card:hover,
.jlm-amasty-menu-compact .delivery-card:hover,
.jlm-amasty-menu .promo-card:hover,
.jlm-amasty-menu-compact .promo-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.jlm-amasty-menu .delivery-card img,
.jlm-amasty-menu-compact .delivery-card img,
.jlm-amasty-menu .promo-img,
.jlm-amasty-menu-compact .promo-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

.jlm-amasty-menu .delivery-card-title,
.jlm-amasty-menu-compact .delivery-card-title,
.jlm-amasty-menu .promo-title,
.jlm-amasty-menu-compact .promo-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.8125rem;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.jlm-amasty-menu .delivery-card-desc,
.jlm-amasty-menu-compact .delivery-card-desc,
.jlm-amasty-menu .promo-desc,
.jlm-amasty-menu-compact .promo-desc {
  font-size: 0.775rem;
  color: #64748b;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}


/* --------------------------------------------------------------------------
   7. Brands Specific Styling & Overrides
   -------------------------------------------------------------------------- */
.jlm-amasty-menu .featured-brand-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.jlm-amasty-menu .featured-link {
  font-weight: 700;
  color: #0f172a !important;
  padding: 0.2rem 0 !important;
}

.jlm-amasty-menu .lawnflite-text-logo {
  color: #dc2626 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  font-style: italic !important;
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin-top: -2px !important;
  display: inline-block;
}

.jlm-amasty-menu .lawnflite-text-logo:hover {
  color: #b91c1c !important;
  transform: translateX(3px);
}


/* --------------------------------------------------------------------------
   8. Bottom Utility Footer
   -------------------------------------------------------------------------- */
.jlm-amasty-menu .menu-bottom-bar,
.jlm-amasty-menu-compact .menu-bottom-bar,
.jlm-amasty-menu-single .menu-bottom-bar {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #64748b;
}

.jlm-amasty-menu-single .menu-bottom-bar {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.jlm-amasty-menu .menu-bottom-bar a,
.jlm-amasty-menu-compact .menu-bottom-bar a,
.jlm-amasty-menu-single .menu-bottom-bar a {
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
}

.jlm-amasty-menu .menu-bottom-bar a:hover,
.jlm-amasty-menu-compact .menu-bottom-bar a:hover,
.jlm-amasty-menu-single .menu-bottom-bar a:hover {
  text-decoration: underline;
}