/* ============================================================================
   Navigation Component Styles
   ============================================================================ */

/* Navigation Bar Styles */
.navigation {
  background-color: rgba(255, 255, 255, 0.97); /* Near-opaque — no blur needed */
  position: fixed; /* Fixes the navigation bar at the top */
  width: 100%; /* Makes the navigation bar full width */
  max-width: 100vw; /* Prevent viewport overflow */
  z-index: 1000; /* Ensures the navigation bar is on top */
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  overflow: visible; /* Allow mobile nav to escape - but constrain nav-wrapper */
  display: flex; /* Use flexbox for proper height handling */
  align-items: center; /* Center items vertically */
}

.navigation.condensed {
  padding: 5px 0;
}

.navigation.condensed .logo-image {
  max-width: 140px;
  padding: 5px;
  transform: scale(0.9);
}

.navigation.condensed .nav-links a {
  padding: 12px 12px;
}

.navigation.condensed .quote-btn {
  padding: 12px 24px;
  font-size: 16px;
}

/* Adjust navigation position when notice is present */
.navigation.with-notice {
  top: 40px;
}

.navigation.with-notice.condensed {
  top: 30px;
}

/* Shadow appears when scrolled */
.navigation.scrolled {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adds a shadow when the navigation bar is scrolled */
}

.nav-wrapper {
  display: flex; /* Uses flexbox for layout */
  justify-content: space-between; /* Distributes space between items */
  align-items: center; /* Aligns items vertically in the center */
  padding: 12px 24px; /* Adds padding */
  max-width: 1440px; /* Sets the maximum width */
  width: 100%; /* Ensure it doesn't exceed viewport */
  max-width: min(1440px, 100vw); /* Constrain to viewport */
  margin: 0 auto; /* Centers the wrapper */
  position: relative;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box; /* Include padding in width calculation */
  overflow: visible; /* Allow mobile nav to escape */
  min-height: 100%; /* Ensure full height for centering */
}

/* Modern mobile header styling */
@media (max-width: 992px) {
  .nav-wrapper {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 0;
  }
}

.navigation.condensed .nav-wrapper {
  padding: 8px 30px; /* Equal top/bottom padding for proper centering */
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Take full height for centering */
}

.logo-image {
  max-width: 180px; /* Maintain original max-width */
  padding: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}

/* Ensure logo-container img also has smooth transitions */
.logo-container img {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links {
  list-style: none; /* Removes default list styling */
  display: flex; /* Uses flexbox for layout */
  margin: 0; /* Removes default margin */
  padding: 0; /* Removes default padding */
  align-items: center; /* Ensure vertical centering */
  height: 100%; /* Take full height for centering */
}

.nav-links li {
  position: relative; /* Sets position relative for positioning child elements */
  margin-left: 0px; /* Adds margin to the left */
  display: flex; /* Use flexbox for centering */
  align-items: center; /* Center vertically */
}

.nav-links a {
  color: #2d2d2d;
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 12px;
  display: flex; /* Use flexbox for better centering */
  align-items: center; /* Center vertically */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
}

.nav-links a span {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: fit-content;
}

.nav-links a span::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: #2563eb;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links a:focus {
  color: #2563eb;
}

.nav-links a:hover .down-arrow-icon,
.nav-links a:hover .right-arrow-icon {
  stroke: #2563eb;
}

.nav-links a:hover span::after,
.sub-menu a:hover span::after,
.second-level a:hover span::after,
.third-level a:hover span::after {
  width: 100%;
}

/* Update hover states to include arrow color change */
.nav-links a:hover .down-arrow-icon,
.nav-links a:hover .right-arrow-icon,
.sub-menu a:hover .down-arrow-icon,
.sub-menu a:hover .right-arrow-icon,
.second-level a:hover .down-arrow-icon,
.second-level a:hover .right-arrow-icon,
.third-level a:hover .down-arrow-icon,
.third-level a:hover .right-arrow-icon {
  stroke: #2563eb;
}

/* Create a wrapper for the text and arrow */
.sub-menu a,
.second-level a,
.third-level a {
    padding: 6px 15px;
    color: #292929;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
    min-height: 40px;
}

/* Create a wrapper for the text and arrow together */
.sub-menu a span,
.second-level a span,
.third-level a span {
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    width: fit-content;
    gap: 5px; /* Space between text and arrow */
}

/* Update underline animation for all levels */
.sub-menu a span::after,
.second-level a span::after,
.third-level a span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remove any background changes on hover */
.sub-menu a:hover,
.second-level a:hover,
.third-level a:hover {
    color: #2563eb;
    background: none;
}

/* Hide right arrow icons for items without submenus - using :has() for modern browsers */
@supports selector(:has(*)) {
    .sub-menu > li:not(:has(> .second-level)) > a .right-arrow-icon {
        display: none;
    }
    
    .second-level > li:not(:has(> .third-level)) > a .right-arrow-icon {
        display: none;
    }
}

/* Ensure underline covers full width including arrow - span should be fit-content */
.nav-links a span {
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    width: fit-content;
}

/* Make sure the underline spans the entire content width including arrow */
.nav-links a span::after {
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    right: auto;
}

/* Submenu Styles */
.sub-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: -9%;
  background: #fff;
  border-radius: 20px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  min-width: 200px;
  width: max-content;
  max-width: 400px;
}

/* Second-level submenu positioning */
.second-level {
  position: absolute;
  top: -5px;
  left: calc(100% + 10px); /* Position 10px to the right of parent */
  margin-left: 0;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  width: max-content;
  max-width: 400px;
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Third-level submenu positioning */
.third-level {
  position: absolute;
  top: 0;
  left: calc(100% + 10px); /* Position 10px to the right of parent */
  margin-left: 0;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  width: max-content;
  max-width: 400px;
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Add a gap between menu items to prevent accidental closing */
.sub-menu li,
.second-level li,
.third-level li {
  position: relative;
  padding: 0;
  margin: 0;
}

/* Show submenus on hover */
.nav-links li:hover > .sub-menu,
.sub-menu li:hover > .second-level,
.second-level li:hover > .third-level {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-10px);
}

/* Add a gap element to prevent menu closing */
.sub-menu li::after,
.second-level li::after,
.third-level li::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10px; /* Extend 10px to the right */
  width: 10px;
  height: 100%;
  z-index: 999;
}

/* Down Arrow Icon Styles */
.down-arrow-icon,
.right-arrow-icon {
  margin-left: 5px;
  width: 16px;
  height: 16px;
  stroke: #292929;
  vertical-align: middle;
  flex-shrink: 0;
  transition: stroke 0.3s ease;
}

/* Quote Request Button */
.quote-btn {
  padding: 12px 24px;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 10px auto;
  display: block;
  margin-right: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  will-change: transform, background-color, box-shadow;
  filter: brightness(1);
  text-shadow: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.quote-btn:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  background-color: #1d4ed8;
  color: #ffffff;
}

.quote-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  transition: opacity 0.3s ease;
  opacity: 0;
}

.quote-btn:hover::before {
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.quote-btn:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mid-page Quote Request Button */
.quote-btn-midpage {
  padding: 12px 80px;
  max-width: 400px;
  background-image: linear-gradient(to right, #05619a, #128291);
  color: #f5f5f5;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-image 0.4s ease, 
              transform 0.3s ease-out, 
              box-shadow 0.2s ease-out, 
              filter 0.3s ease-out, 
              text-shadow 0.3s ease-out;
              margin: 10px 0; /* Align button to the left */
              display: inline-block; /* Allow left alignment */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  will-change: transform, background-image, box-shadow;
  filter: brightness(1);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.quote-btn-midpage:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(to right, #128291, #05619a);
  filter: brightness(1.1);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.quote-btn-midpage::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

.quote-btn-midpage:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.quote-btn-midpage:active {
  transform: scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.double-arrow-icon {
  width: 14px;
  height: 14px;
  fill: currentColor; /* Uses current text color */
  margin-left: 8px; /* Adds space between text and icon */
  vertical-align: middle;
}


/* Navigation Icons */
.nav-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%; /* Take full height for centering */
  gap: 8px; /* Consistent spacing */
}

.nav-icons .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icons .icon-svg {
  width: 30px;
  height: 24px;
  stroke: #292929;
}

/* Modern Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  transition: all 0.3s ease;
  color: #292929;
  border-radius: 8px;
}

.mobile-menu-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn[aria-expanded="true"] .menu-icon-open {
  display: none;
}

.mobile-menu-btn[aria-expanded="false"] .menu-icon-close {
  display: none;
}

.menu-icon-open,
.menu-icon-close {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw; /* Use viewport width to break out of parent constraints */
  max-width: 100vw; /* Constrain to viewport */
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  visibility: hidden; /* Hide when closed to prevent layout issues */
  pointer-events: none; /* Disable interactions when closed */
  box-sizing: border-box;
  margin: 0; /* Reset any margins */
  /* Break out of any parent constraints */
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
  visibility: visible; /* Show when active */
  pointer-events: auto; /* Enable interactions when active */
}

/* Modern Mobile Navigation Container - Full Screen */
.mobile-nav-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw; /* Use viewport width to break out of parent constraints */
  max-width: 100vw; /* Constrain to viewport */
  height: 100vh;
  height: 100dvh; /* Use dynamic viewport height for mobile */
  background: white;
  z-index: 1002; /* Above overlay and navigation */
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden; /* Prevent container scroll */
  visibility: hidden; /* Hide when closed to prevent layout issues */
  pointer-events: none; /* Disable interactions when closed */
  margin: 0; /* Reset any margins */
  /* Break out of any parent constraints */
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
}

.mobile-nav-container.active {
  display: flex;
  transform: translateX(0);
  visibility: visible; /* Show when active */
  pointer-events: auto; /* Enable interactions when active */
}

/* Mobile Nav Header Bar with Close Button */
.mobile-nav-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: white;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-nav-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

.mobile-nav-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #111827;
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Scrollable Content Area */
.mobile-nav-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0; /* Allow flex shrinking */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nav-links-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive Styles */
/* Adjustments for screens larger than 1200px */
@media (min-width: 1200px) {
  #menu-btn {
    display: none;
  }

  .nav-links {
    display: flex; /* Show the desktop menu */

  }

  .nav-links-mobile {
    display: none; /* Ensure the mobile menu is hidden */
  }
}

/* ============================================================================
   Responsive Breakpoints - Desktop Scaling (Largest to Smallest)
   ============================================================================ */

/* Breakpoint 1: 1280px and below - Initial space-saving adjustments */
@media (max-width: 1280px) {
  .shop-link {
    display: none !important;
  }
  
  .nav-wrapper {
    padding: 12px 18px;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .logo-image,
  .logo-container img {
    max-width: 165px;
    padding: 9px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .quote-btn {
    padding: 11px 20px;
    font-size: 15px;
    margin-right: 15px;
    white-space: nowrap;
    min-width: auto;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Breakpoint 2: 1200px and below - Moderate scaling */
@media (max-width: 1200px) {
  .nav-links a {
    color: #292929;
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    padding: 12px 8px;
    display: inline-block;
    transition: color 0.3s, background 0.3s;
    position: relative;
    white-space: nowrap;
  }

  .sub-menu a,
  .second-level a,
  .third-level a {
    padding: 8px 14px;
    color: #292929;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s, background 0.3s;
    position: relative;
  }

  .nav-wrapper {
    padding: 12px 16px;
  }

  .logo-image,
  .logo-container img {
    max-width: 155px;
    padding: 8px;
  }

  .quote-btn {
    padding: 10px 18px;
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 10px 0;
    margin-right: 12px;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: auto;
    flex-shrink: 0;
  }
  
  .quote-btn:hover {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    transform: scale(1.01);
  }
}

/* Breakpoint 3: 1100px and below - Further compression */
@media (max-width: 1100px) {
  .nav-wrapper {
    padding: 12px 14px;
  }
  
  .logo-image,
  .logo-container img {
    max-width: 145px;
    padding: 7px;
  }
  
  .quote-btn {
    padding: 10px 16px;
    font-size: 13px;
    margin-right: 10px;
  }
  
  .nav-links a {
    padding: 12px 7px;
    font-size: 13px;
  }
}

/* Breakpoint 4: 1000px and below - Aggressive space-saving */
@media (max-width: 1000px) {
  .nav-wrapper {
    padding: 12px 12px;
  }
  
  .logo-image,
  .logo-container img {
    max-width: 135px;
    padding: 6px;
  }
  
  .quote-btn {
    padding: 9px 14px;
    font-size: 12px;
    margin-right: 8px;
  }
  
  .nav-links a {
    padding: 12px 6px;
    font-size: 12px;
  }
}

/* Adjustments for screens smaller than 992px */
@media (max-width: 992px) {

  .nav-wrapper {
    display: flex; /* Uses flexbox for layout */
    justify-content: space-between; /* Distributes space between items */
    align-items: center; /* Aligns items vertically in the center */
    padding: 12px 20px; /* Adds padding */
    max-width: 1440px; /* Sets the maximum width */
    margin: 0 auto; /* Centers the wrapper */
  }

  .nav-links {
    display: none; /* Hide the desktop menu */
  }
  
  /* Hide desktop navigation icons */
  .nav-icons {
    display: none;
  }

  /* Quote Button for Desktop */
  .quote-btn {
    display: none; /* Hide the desktop quote button */
  }

  /* Show modern mobile menu button */
  .mobile-menu-btn {
    display: flex;
  }

  /* Modern Mobile Navigation Styles */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-section,
  .mobile-nav-subsection {
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    min-height: 48px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mobile-nav-link {
    flex: 1;
    color: #111827;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    padding: 14px 20px;
    display: block;
    transition: color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:focus {
    color: #2563eb;
  }

  .mobile-nav-toggle {
    background: none;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mobile-nav-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #111827;
  }

  .mobile-nav-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
  }

  .chevron-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.2s ease;
  }
  
  .mobile-nav-header {
    width: 100%;
  }

  /* Mobile Submenu Styles */
  .sub-menu-mobile {
    display: none !important;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f9fafb;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sub-menu-mobile.active {
    display: block !important;
    max-height: 2000px;
    animation: slideDown 0.3s ease;
  }

  .sub-menu-mobile.nested {
    background: #f3f4f6;
    padding-left: 0;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .sub-menu-mobile li {
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .sub-menu-mobile li:last-child {
    border-bottom: none;
  }

  .sub-menu-mobile a {
    color: #4b5563;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    padding: 12px 20px 12px 40px;
    display: block;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .sub-menu-mobile.nested a {
    padding-left: 60px;
  }
  
  .sub-menu-mobile li {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .sub-menu-mobile a:hover,
  .sub-menu-mobile a:focus {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.05);
  }

  /* Second-level submenu support */
  .sub-menu-mobile li.has-submenu {
    position: relative;
  }
  
  .sub-menu-mobile li.has-submenu > a {
    padding-right: 50px; /* Make room for toggle button */
    position: relative;
    display: block;
    min-height: 44px; /* Ensure consistent height */
    line-height: 44px; /* Center text vertically */
  }
  
  .sub-menu-mobile .sub-menu-toggle {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: auto;
    height: 44px; /* Match link height */
    width: 44px; /* Square touch target */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    /* Keep toggle aligned with link, not affected by submenu expansion */
    transform: none;
  }
  
  .sub-menu-mobile .sub-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #111827;
  }
  
  .sub-menu-mobile .sub-menu-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
  }
  
  .sub-menu-mobile .sub-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #111827;
  }
  
  .sub-menu-mobile .sub-menu-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
  }
  
  .sub-menu-mobile .sub-menu-second-level {
    display: none !important;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f3f4f6;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .sub-menu-mobile .sub-menu-second-level.active {
    display: block !important;
    max-height: 2000px;
    animation: slideDown 0.3s ease;
  }
  
  .sub-menu-mobile .sub-menu-second-level li {
    border-bottom: 1px solid #e5e7eb;
  }
  
  .sub-menu-mobile .sub-menu-second-level a {
    padding: 10px 20px 10px 60px;
    color: #4b5563;
    font-size: 13px;
  }
  
  /* Remove arrow icons from mobile submenu - but keep if it's a toggle */
  .sub-menu-mobile .right-arrow-icon {
    display: none;
  }
  
  /* Remove span wrappers in mobile submenu */
  .sub-menu-mobile a span {
    display: inline;
  }

  /* Modern Mobile Action Buttons - Sticky at Bottom */
  .mobile-nav-actions {
    padding: 20px;
    padding-bottom: max(20px, calc(20px + env(safe-area-inset-bottom)));
    border-top: 1px solid #e5e7eb;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: sticky;
    bottom: 0;
    z-index: 10;
  }
  
  .mobile-action-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    border: 1px solid transparent;
  }

  .mobile-action-btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  .mobile-action-btn-primary:hover {
    background: #1d4ed8;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
  }

  .mobile-action-btn-secondary {
    background: white;
    color: #111827;
    border-color: #e5e7eb;
  }

  .mobile-action-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
  }

  .mobile-action-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
  }

  .sub-menu,
  .second-level,
  .third-level {
    position: static;
    width: 100%;
    min-width: unset;
    max-width: unset;
    box-shadow: none;
    border-radius: 0;
    margin-left: 20px;
    transform: none;
  }

  .sub-menu li::after,
  .second-level li::after,
  .third-level li::after {
    display: none;
  }

  .down-arrow-icon,
  .right-arrow-icon {
    margin-left: 8px;
  }
}


  /* ================================
     Quote Modal
     ================================ */
  
     #quote-modal {
      display: none; /* Hidden by default */
      position: fixed; /* Stay in place */
      z-index: 1000; /* Higher value to ensure it sits on top */
      left: 0;
      top: 0;
      width: 100%; /* Full width */
      height: 100%; /* Full height */
      overflow: auto; /* Enable scroll if needed */
      background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
      padding-top: 60px; /* Add some padding at the top for content */
    }

    .modal-content {
      background-color: #ffffff;
      margin: 0 auto;
      padding: 30px;
      border: none;
      width: 90%;
      max-width: 600px;
      border-radius: 12px; /* Slightly larger radius for a softer look */
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); /* Deeper shadow for more depth */
      position: relative;
      overflow-y: auto; /* Ensure content scrolls if it exceeds max height */
      max-height: 80vh; /* Make sure modal content does not exceed viewport height */
      transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition effects */
      transform: translateY(-20px);
  }
  
  /* When the modal is visible */
  #quote-modal.show .modal-content {
      opacity: 1;
      visibility: visible;
      transform: translateY(0); /* Animate entrance */
  }

/* Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background-color: rgba(245, 245, 245, 0.8); /* Slightly transparent */
  border-radius: 50%;
  color: #333;
  font-size: 20px; /* Set font size for the × */
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: none;
  outline: none;
}

.close:hover,
.close:focus {
  background-color: rgba(200, 200, 200, 0.9); /* Darker on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.close:active {
  transform: scale(0.9); /* Slight "press" effect */
  background-color: rgba(180, 180, 180, 0.9);
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 11px);
    right: 0;
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1003;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 8px);
    right: 8px;
    border: 3px solid transparent;
    border-top-color: #333;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1003;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
}

/* Mobile tooltip adjustments */
@media (max-width: 992px) {
    /* Mobile nav icons removed - tooltip styles no longer needed */
}

/* Mobile Navigation Icons - REMOVED */

/* Hide notice banner when mobile menu is open */
.mobile-nav-container.active ~ .notice-banner {
    display: none;
}

/* Notice Banner */
.notice-banner {
    background: #252525;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
}

.notice-content {
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.notice-icon {
    color: #007bff;
    flex-shrink: 0;
}

.notice-content p {
    margin: 0;
    font-size: 12px;
    color: #dfdfdf;
    line-height: 1.2;
}

.notice-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999999;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-close:hover {
    background-color: #e9ecef;
    color: #767676;
}

.notice-close:active {
    transform: scale(0.95);
}

.notice-link {
  color: #1ea7fd; /* bright blue for visibility */
  text-decoration: underline;
  font-weight: 600;
}

.notice-link:visited {
  color: #9bb8d3; /* slightly muted for visited state */
}

.notice-link:hover,
.notice-link:focus {
  color: #ffffff;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}


/* Mobile adjustments */
@media (max-width: 768px) {
    .notice-content {
        padding: 4px 12px;
    }
    
    .notice-content p {
        font-size: 9px;
        line-height: 1.1;
    }

    .notice-icon {
        width: 16px;
        height: 16px;
    }

    .notice-close {
        width: 20px;
        height: 20px;
    }

    .notice-close svg {
        width: 16px;
        height: 16px;
    }

    .navigation.with-notice {
        top: 32px;
    }
    
    .navigation.with-notice.condensed {
        top: 30px;
    }

    .navigation.condensed .logo-image {
        max-width: 120px;
        transform: scale(0.85);
    }

    .navigation.condensed .nav-links a {
        padding: 12px 12px;
    }
}

/* Search Container Styles */
.search-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.search-box {
    position: relative;
    margin-bottom: 30px;
}

.search-box .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.search-box input:focus + .search-icon {
    color: var(--button-color);
}

.search-box input {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.search-box input::placeholder {
    color: #999;
}

.custom-loading-indicator {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 20px 0;
    display: none;
}

.custom-loading-indicator .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--button-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.custom-loading-indicator span {
    vertical-align: middle;
}

#customResultsContainer {
    margin-top: 20px;
}

#customResultsContainer .search-result {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#customResultsContainer .search-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#customResultsContainer .search-result h3 {
    color: var(--button-color);
    margin: 0 0 10px 0;
    font-size: 18px;
}

#customResultsContainer .search-result p {
    color: #666;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

#customResultsContainer .search-result a {
    color: var(--button-color);
    text-decoration: none;
    font-weight: 500;
}

#customResultsContainer .search-result a:hover {
    text-decoration: underline;
}

#customResultsContainer .search-result mark {
    background-color: rgba(var(--button-color-rgb), 0.1);
    color: var(--button-color);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 500;
}

#customResultsContainer .search-result a {
    color: var(--button-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

#customResultsContainer .search-result a:hover {
    color: var(--button-color-hover);
    text-decoration: underline;
}

#customResultsContainer .search-result p {
    margin-top: 8px;
    color: #666;
    line-height: 1.5;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .search-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .search-box input {
        padding: 12px 20px;
        font-size: 14px;
    }

    #customResultsContainer .search-result {
        padding: 15px;
    }

    #customResultsContainer .search-result h3 {
        font-size: 16px;
    }

    #customResultsContainer .search-result p {
        font-size: 13px;
    }
}

.quote-icon {
    stroke: white !important;
}

/* E-Commerce Shop button in Consumables dropdown - Unique isolated styles */
.sub-menu li a.shop-link-button,
.sub-menu-mobile li a.shop-link-button {
  background-color: #2563eb !important;
  color: white !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  padding: 4px 15px !important;
  margin: 4px 10px !important;
  display: block !important;
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
  min-height: auto !important;
  height: auto !important;
  flex-direction: row !important;
}

.sub-menu li a.shop-link-button:hover,
.sub-menu-mobile li a.shop-link-button:hover {
  background-color: #1d4ed8 !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3) !important;
}

.sub-menu li a.shop-link-button span,
.sub-menu-mobile li a.shop-link-button span {
  color: white !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  position: relative !important;
  margin: 0 auto !important;
}

.sub-menu li a.shop-link-button span::after,
.sub-menu-mobile li a.shop-link-button span::after {
  display: none !important;
  content: none !important;
}

.sub-menu li a.shop-link-button .right-arrow-icon,
.sub-menu-mobile li a.shop-link-button .right-arrow-icon {
  stroke: white !important;
  fill: white !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
}

/* Mobile: Make shop button 90% viewport width */
@media (max-width: 992px) {
  .sub-menu-mobile li a.shop-link-button {
    width: 90vw !important;
    max-width: 90vw !important;
    margin: 4px auto !important;
    text-align: center !important;
  }
}




