/* ==========================================================================
   THE WATER PROJECT DESIGN SYSTEM 2025 - NAVIGATION COMPONENT
   ========================================================================== */

/* 
 * Modern navigation component that replaces Bootstrap navbar
 * Features theme awareness, mobile-first design, and accessibility
 * 
 * IMPORTANT: This file contains ALL navigation styles
 * DO NOT edit navigation styles in the main design-system-2025.css file
 */

/* ========================================
   NAVIGATION TOKENS - GLOBAL (not scoped to motif-2025)
   ======================================== */

:root {
  /* Font variables for navigation */
  --nav-font-primary: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Navigation layout - Enhanced */
  --nav-height: 76px;
  --nav-height-mobile: 64px;
  --nav-padding-x: 20px;
  --nav-item-gap: 16px;
  --nav-font-size: 15px;
  --nav-font-weight: 500;
  --nav-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-hover-transform: translateY(-2px);
  --nav-mobile-width: 350px;
  --nav-mobile-backdrop: rgba(0, 0, 0, 0.75);
  --nav-mobile-slide-duration: 0.4s;
  --nav-bg: rgba(255, 255, 255, 0.98);
  --nav-border: rgba(45, 100, 132, 0.08);
  --nav-text: #334155;
  --nav-text-hover: #2D6484;
  --nav-cta-bg: #DC2626; /* Red for donate buttons */
  --nav-cta-text: #ffffff;
}

/* ========================================
   BASE NAVIGATION STRUCTURE - GLOBAL
   ======================================== */

.nav-2025 {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999999 !important; /* Increased to ensure dropdowns stay on top */
  background: var(--nav-bg) !important;
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 4px 24px rgba(45, 100, 132, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  height: var(--nav-height);
  font-family: var(--nav-font-primary);
  transition: var(--nav-transition);
  overflow: visible !important; /* Ensure dropdowns aren't clipped */
}

.nav-2025__container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  max-width: 1800px;
  min-width: 0; /* Remove min-width to prevent overflow */
  margin: 0 auto;
  padding: 0;
  position: relative;
  overflow: visible; /* Allow dropdowns to show */
  box-sizing: border-box;
}

/* ========================================
   BRAND AREA - GLOBAL
   ======================================== */

.nav-2025__brand {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 1;
  width: 240px;
}

.nav-2025__logo {
  transition: var(--nav-transition);
}

.nav-2025__logo:hover {
  transform: scale(1.02);
}

.nav-2025__logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* ========================================
   DESKTOP NAVIGATION - GLOBAL
   ======================================== */

.nav-2025__menu {
  display: none;
  justify-content: center;
  min-width: 0;
  max-width: 1000px;
  overflow: visible;
  position: relative;
  z-index: 2;
  /* Prevent overlap with absolutely positioned brand and actions */
  margin: 0 280px; /* Space for brand (240px) + actions (240px) + padding */
  margin-right: 350px; /* Increased right margin to create space before buttons */
}

.nav-2025__list {
  display: flex;
  align-items: center;
  gap: 6px; /* Reduced from 8px for more compact base spacing */
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap;
  justify-content: center;
  white-space: nowrap;
}

.nav-2025__list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-2025__item {
  position: relative;
}

/* Hover bridge: keep hover alive between trigger and dropdown */
.nav-2025__menu .nav-2025__item:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px; /* small buffer area */
  background: transparent;
  pointer-events: auto;
}

.nav-2025__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 6px; /* Reduced horizontal padding from 8px to 6px for compactness */
  font-family: var(--nav-font-primary);
  font-size: var(--nav-font-size);
  font-weight: var(--nav-font-weight);
  color: var(--nav-text);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--nav-transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Home icon link styling */
.nav-2025__link--home {
  padding: 12px 10px;
  font-size: 18px;
}

/* Current page indicator */
.nav-2025__link--current {
  color: var(--nav-text-hover);
  background: rgba(45, 100, 132, 0.08);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 0 var(--nav-text-hover);
}

.nav-2025__link--current:hover {
  background: rgba(45, 100, 132, 0.12);
}

.nav-2025__link:hover {
  color: var(--nav-text-hover);
  background: rgba(45, 100, 132, 0.06);
  transform: var(--nav-hover-transform);
  box-shadow: 0 4px 12px rgba(45, 100, 132, 0.15);
}

.nav-2025__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 100, 132, 0.1), transparent);
  transition: width 0.4s ease;
  z-index: -1;
}

.nav-2025__link:hover::before {
  width: 100%;
}

/* ========================================
   DROPDOWN MENUS - GLOBAL
   ======================================== */

/* Dropdown indicator - Removed to save space */
.nav-2025__link--dropdown::after {
  display: none; /* Chevrons removed to save horizontal space */
}

.nav-2025__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  /* Sit flush under trigger to avoid hover gap */
  transform: translateX(-50%) translateY(0);
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(45, 100, 132, 0.08) !important;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(45, 100, 132, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06) !important;
  backdrop-filter: saturate(180%) blur(16px);
  min-width: 240px;
  max-width: 320px;
  padding: 16px 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--nav-transition), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999999 !important; /* Extremely high z-index to ensure visibility */
  overflow: hidden;
}

.nav-2025__item:hover .nav-2025__dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  /* Remove hover gap between trigger and dropdown */
  transform: translateX(-50%) translateY(0) !important;
  z-index: 9999999 !important; /* Match the base dropdown z-index */
  position: absolute !important;
}

/* Removed chevron rotation on hover */

.nav-2025__dropdown--right {
  left: auto;
  right: 0;
  /* Sit flush under trigger */
  transform: translateY(0);
  z-index: 99998 !important;
  position: absolute !important;
}

.nav-2025__item:hover .nav-2025__dropdown--right {
  /* Remove hover gap for right-aligned dropdowns */
  transform: translateY(0) !important;
  z-index: 999999 !important;
  position: absolute !important;
}

.nav-2025__dropdown-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-2025__dropdown-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Fix dropdown menu bullets - do not remove padding on links */
.nav-2025__dropdown ul,
.nav-2025__dropdown li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
}

.nav-2025__dropdown-link {
  display: block;
  padding: 16px 28px; /* restore comfortable left padding */
  font-size: 15px;
  font-weight: 450;
  color: #334155;
  text-decoration: none;
  transition: var(--nav-transition);
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.nav-2025__dropdown-link:hover {
  color: #2D6484;
  background: linear-gradient(90deg, rgba(45, 100, 132, 0.08), rgba(45, 100, 132, 0.04));
  border-left-color: #2D6484;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(45, 100, 132, 0.1);
}

.nav-2025__dropdown-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(45, 100, 132, 0.1), rgba(45, 100, 132, 0.05));
  transition: width 0.3s ease;
  z-index: -1;
}

.nav-2025__dropdown-link:hover::before {
  width: 100%;
}

.nav-2025__dropdown-divider {
  height: 1px;
  background: #e6ebf0;
  margin: 12px 28px;
}

/* ========================================
   CONTACT CARD STYLES
   ======================================== */

.nav-2025__contact-card {
  min-width: 280px;
  max-width: 320px;
  padding: 20px;
}

.nav-2025__contact-header h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2D6484;
}

.nav-2025__contact-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.nav-2025__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.nav-2025__contact-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.nav-2025__contact-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.nav-2025__contact-link {
  display: block;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}

.nav-2025__contact-link:hover {
  color: #2D6484;
}

.nav-2025__contact-divider {
  height: 1px;
  background: rgba(45, 100, 132, 0.1);
  margin: 12px 0;
}

.nav-2025__contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-2025__contact-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Desktop Contact Card Social Icons */
.nav-2025__social-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #ffffff;
  color: #6B7280;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.nav-2025__social-icon:hover {
  color: #2D6484;
  background: rgba(45, 100, 132, 0.06);
  transform: translateY(-1px);
  border-color: rgba(45, 100, 132, 0.2);
}

.nav-2025__social-icon svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   CTA AREA STYLES - GLOBAL
   ======================================== */

.nav-2025__actions {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 1;
  width: auto; /* Changed to auto to prevent overflow */
  justify-content: flex-end;
  margin-left: 50px; /* Use margin instead of padding to create space */
}

/* CTA item containers */
.nav-2025__item--cta {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}


.nav-2025__phone {
  display: block;
  font-size: 14px;
  color: #64748b;
  text-decoration: none;
  font-weight: 400;
  padding: 12px 14px;
  border-radius: 10px;
  transition: var(--nav-transition);
  white-space: nowrap;
}

/* Phone tooltip component */
.nav-2025__phone-container {
  position: relative;
}

.nav-2025__phone-trigger {
  background: none;
  border: none;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--nav-transition);
}

.nav-2025__phone-trigger:hover {
  background: rgba(45, 100, 132, 0.06);
}

.nav-2025__phone-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(45, 100, 132, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(45, 100, 132, 0.12);
  backdrop-filter: saturate(180%) blur(16px);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999999;
  min-width: 200px;
}

.nav-2025__phone-container:hover .nav-2025__phone-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.nav-2025__phone-item {
  margin-bottom: 8px;
}

.nav-2025__phone-item:last-child {
  margin-bottom: 0;
}

.nav-2025__phone-link {
  display: block;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-2025__phone-link:hover {
  color: #2D6484;
}

.nav-2025__cta {
  background: var(--nav-cta-bg);
  color: var(--nav-cta-text);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--nav-transition);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(45, 100, 132, 0.25);
  flex-shrink: 0; /* Prevent buttons from shrinking */
  min-width: 85px; /* Ensure minimum readable size */
  white-space: nowrap;
}

.nav-2025__cta:hover {
  background: linear-gradient(135deg, #1e4a5f 0%, #2D6484 100%);
  color: #ffffff;
  transform: var(--nav-hover-transform) scale(1.02);
  box-shadow: 0 8px 24px rgba(45, 100, 132, 0.4), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-2025__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.nav-2025__cta:hover::before {
  left: 100%;
}

.nav-2025__cta--secondary {
  background: transparent;
  color: #2D6484;
  border: 2px solid #2D6484;
  box-shadow: 0 2px 8px rgba(45, 100, 132, 0.2);
}

.nav-2025__cta--secondary:hover {
  background: #2D6484;
  color: #ffffff;
  border-color: #2D6484;
  box-shadow: 0 6px 20px rgba(45, 100, 132, 0.3);
}

/* ========================================
   MOBILE NAVIGATION - GLOBAL
   ======================================== */

/* Mobile toggle */
.nav-2025__mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--nav-transition);
  flex-shrink: 0; /* Never allow hamburger to shrink */
  margin-left: auto; /* Push to right edge */
}

.nav-2025__hamburger {
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--nav-text);
  transition: var(--nav-transition);
}

.nav-2025__hamburger::before,
.nav-2025__hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--nav-text);
  transition: var(--nav-transition);
}

.nav-2025__hamburger::before {
  top: -8px;
}

.nav-2025__hamburger::after {
  bottom: -8px;
}

/* Active state - transforms to X */
.nav-2025__mobile-toggle[aria-expanded="true"] .nav-2025__hamburger {
  background: transparent;
}

.nav-2025__mobile-toggle[aria-expanded="true"] .nav-2025__hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-2025__mobile-toggle[aria-expanded="true"] .nav-2025__hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Mobile off-canvas menu */
.nav-2025__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(280px, 85vw); /* Reduce width to prevent overflow on small screens */
  max-width: 280px; /* Reduce maximum width constraint */
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e6ebf0;
  box-shadow: 0 10px 24px rgba(45,100,132,0.25);
  transform: translateX(-100%);
  transition: transform var(--nav-mobile-slide-duration) ease;
  z-index: 99997;
  overflow-y: auto;
  overflow-x: hidden; /* Prevent horizontal overflow */
}

.nav-2025__mobile-menu--open {
  transform: translateX(0);
}

.nav-2025__mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nav-mobile-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--nav-mobile-slide-duration) ease;
  z-index: 99998;
}

.nav-2025__mobile-backdrop--open {
  opacity: 1;
  visibility: visible;
}

.nav-2025__mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e6ebf0;
}

.nav-2025__mobile-close {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: var(--nav-transition);
  font-size: 20px;
}

.nav-2025__mobile-close:hover {
  background: #f8fafc;
  color: #1e293b;
}

.nav-2025__mobile-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-2025__mobile-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-2025__mobile-item {
  border-bottom: 1px solid #f1f5f9;
}

.nav-2025__mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-family: var(--nav-font-primary);
  font-size: 18px;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  transition: var(--nav-transition);
}

.nav-2025__mobile-link:hover {
  background: #f8fafc;
  color: #2D6484;
}

.nav-2025__mobile-cta-area {
  padding: 28px 20px 44px 20px !important; /* Better horizontal padding for mobile */
  border-top: 1px solid #e6ebf0;
  background: #f8fafc;
  margin-bottom: 20px; /* Safe area at bottom */
}

.nav-2025__mobile-cta {
  display: block !important;
  width: 100% !important; /* Full width for better touch target */
  text-align: center;
  background: #2D6484;
  color: #ffffff;
  padding: 20px 24px !important; /* Increased padding for better touch targets */
  border-radius: 12px;
  font-size: 18px !important; /* Larger font for better mobile readability */
  font-weight: 700 !important; /* Bolder for mobile */
  text-decoration: none;
  transition: var(--nav-transition);
  margin-bottom: 24px !important; /* More space before phone number */
  box-sizing: border-box; /* Include padding in width calculation */
}

.nav-2025__mobile-cta:hover {
  background: #1a4056;
  transform: translateY(-1px);
}

.nav-2025__mobile-cta--secondary {
  background: transparent !important;
  color: #2D6484 !important;
  border: 2px solid #2D6484 !important;
  margin-top: 12px !important; /* Space between buttons */
}

.nav-2025__mobile-cta--secondary:hover {
  background: #2D6484 !important;
  color: #ffffff !important;
  border-color: #2D6484 !important;
  transform: translateY(-1px);
}

.nav-2025__mobile-phone {
  display: block;
  text-align: center;
  color: #64748b;
  font-size: 16px !important; /* Slightly larger for mobile */
  font-weight: 600 !important; /* Slightly bolder */
  text-decoration: none;
  margin-bottom: 16px !important; /* More space before social icons */
  padding: 12px !important; /* Add padding for better touch target */
}

/* Mobile Social Icons */
.nav-2025__mobile-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 24px 0; /* Added bottom padding for clearance */
  border-top: 1px solid #f1f5f9;
  margin-top: 16px;
}

.nav-2025__mobile-social-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ffffff;
  color: #6B7280;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.nav-2025__mobile-social-icon:hover {
  color: #2D6484;
  background: rgba(45, 100, 132, 0.06);
  transform: translateY(-1px);
  border-color: rgba(45, 100, 132, 0.2);
}

.nav-2025__mobile-social-icon svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   RESPONSIVE BEHAVIOR - GLOBAL
   ======================================== */

@media (min-width: 768px) {
  .nav-2025__menu {
    display: flex;
  }
  
  .nav-2025__mobile-toggle {
    display: none;
  }
  
  /* Phone icon visibility is now managed by contact dropdown breakpoint logic */
  /* .nav-2025__item--phone rule moved to contact dropdown management */
  
  .nav-2025__item--desktop-only {
    display: block;
  }
  
  /* Container width constraints */
  .nav-2025__dropdown {
    /* Ensure dropdowns don't exceed viewport */
    max-width: min(360px, calc(100vw - 40px));
  }
}

@media (min-width: 1051px) {
  .nav-2025__item--desktop-large-only {
    display: block;
  }
  
  .nav-2025__item--contact-icon {
    display: none !important;
  }
}
  
  /* Enhanced spacing on larger screens - BALANCED */
  .nav-2025__brand {
    left: 24px;
    width: 280px;
  }
  
  .nav-2025__actions {
    right: 24px;
    gap: 12px;
    width: 330px; /* Increased to accommodate padding */
    padding-left: 50px; /* Maintain left padding */
  }
  
  .nav-2025__menu {
    max-width: 1200px;
    margin: 0 300px; /* Adjust for larger brand (280px) + actions (280px) areas */
    margin-right: 380px; /* Increased right margin for button spacing */
  }
  
  .nav-2025__list {
    gap: 8px; /* Reduced from 12px for more compact spacing */
  }
  
  .nav-2025__link {
    padding: 12px 8px; /* Reduced from 13px 10px for compactness */
  }
  
  .nav-2025__cta {
    padding: 12px 18px;
    font-size: 13px;
  }

@media (max-width: 767px) {
  .nav-2025 {
    height: var(--nav-height-mobile);
    padding: 0 12px;
  }
  
  .nav-2025__container {
    padding: 0 8px;
    gap: 8px;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Spread items apart */
  }
  
  .nav-2025__mobile-toggle {
    display: flex !important;
    position: static !important;
    margin-left: auto !important; /* Push to right */
    margin-right: 8px !important; /* Add some margin from edge */
  }
  
  .nav-2025__logo img {
    height: 32px;
    max-width: 140px;
  }
  
  /* Reset desktop menu margins on mobile */
  .nav-2025__menu {
    margin: 0 !important;
    margin-right: 0 !important;
  }
  
  .nav-2025__item--desktop-only,
  .nav-2025__item--desktop-large-only {
    display: none;
  }
  
  .nav-2025__phone {
    display: none;
  }
  
  /* Mobile layout override */
  .nav-2025__container {
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 8px;
    min-width: 320px; /* Prevent mobile collapse - ensures no overlap */
    gap: 8px; /* Ensure space between brand, actions, and hamburger */
  }
  
  .nav-2025__brand {
    position: static !important;
    transform: none !important;
    flex-shrink: 0; /* Prevent logo from shrinking */
    max-width: 140px; /* Limit to prevent overlap */
  }
  
  .nav-2025__actions {
    position: static !important;
    transform: none !important;
    flex-shrink: 1; /* Allow actions to shrink on narrow screens */
    width: auto !important; /* Remove fixed width */
    padding-left: 0 !important; /* Remove padding on mobile */
    margin-left: 0 !important;
  }
  
  .nav-2025__menu {
    display: none !important;
    margin: 0 !important; /* Reset large margins on mobile */
  }
  
  /* Hide desktop CTA buttons on mobile - mobile menu has proper full-width buttons */
  .nav-2025__actions {
    gap: 4px;
    min-width: 0;
    display: none !important; /* Hide entire actions container on mobile */
  }
  
  .nav-2025__cta {
    display: none !important;
  }
  
  /* Ensure mobile menu doesn't overflow */
  .nav-2025__mobile-menu {
    max-width: min(280px, calc(100vw - 40px)); /* Add more margin to prevent edge overflow */
  }
}

/* Compact spacing for medium screens - BALANCED */
@media (max-width: 1199px) {
  .nav-2025__brand {
    left: 12px;
    width: 200px;
  }
  
  .nav-2025__actions {
    right: 12px;
    gap: 6px;
    width: 270px; /* Increased to accommodate padding and two buttons */
    padding-left: 50px; /* Maintain left padding */
  }
  
  .nav-2025__menu {
    max-width: 900px;
    margin: 0 240px; /* Adjust for brand (200px) + actions (220px) + padding */
    margin-right: 320px; /* Increased right margin for button spacing */
  }
  
  .nav-2025__list {
    gap: 3px; /* Reduced from 4px for tighter spacing with larger CTA buttons */
  }
  
  .nav-2025__link {
    padding: 11px 5px; /* Reduced from 6px for more compact menu */
  }
}

/* Phone icon management based on contact dropdown visibility */

/* Hide phone icon when contact dropdown is visible (wider screens) */
@media (min-width: 1051px) {
  .nav-2025__item--phone {
    display: none !important;
  }
}

/* Show phone icon when contact dropdown is hidden (medium screens) */
@media (min-width: 1001px) and (max-width: 1050px) {
  .nav-2025__item--phone {
    display: flex !important;
  }
}

/* Hide phone icon on very narrow screens to save space */
@media (max-width: 1000px) {
  .nav-2025__item--phone {
    display: none !important;
  }
}

/* Progressive menu hiding - only when truly needed */
@media (max-width: 1050px) {
  .nav-2025__item--desktop-large-only {
    display: none;
  }
  
  .nav-2025__item--contact-icon {
    display: block !important;
  }
}

/* Progressive hiding to maintain center balance */
@media (max-width: 1300px) {
  /* Hide search text but keep icon */
  .nav-2025__search-text {
    display: none;
  }
}

@media (max-width: 1100px) {
  /* Hide search completely */
  .nav-2025__item--search {
    display: none;
  }
  
  .nav-2025__list {
    gap: 12px;
  }
}

@media (max-width: 1000px) {
  /* Phone icon visibility is now controlled by the contact dropdown logic above */
  /* .nav-2025__item--phone rules moved to contact dropdown breakpoint management */
  
  .nav-2025__list {
    gap: 8px; /* Reduced from 16px to accommodate larger CTA buttons */
  }
  
  .nav-2025__link {
    padding: 12px 10px; /* Reduced from 16px horizontal padding for compactness */
    font-size: var(--nav-font-size);
  }
}

/* Hide desktop Donate link on smaller screens to prevent crowding */
@media (max-width: 900px) {
  .nav-2025__item--desktop-only {
    display: none;
  }
  
  .nav-2025__brand {
    left: 12px;
    width: 160px;
  }
  
  .nav-2025__actions {
    right: 12px;
    gap: 6px;
    width: 240px; /* Increased to accommodate padding and buttons */
    padding-left: 50px; /* Maintain left padding */
  }
  
  .nav-2025__menu {
    margin: 0 210px; /* Prevent overlap: brand (160px) + actions (190px) + padding */
    margin-right: 290px; /* Increased right margin for button spacing */
  }
  
  .nav-2025__list {
    gap: 6px; /* Reduced from 12px for tighter spacing */
  }
  
  .nav-2025__link {
    padding: 10px 8px; /* Reduced from 14px horizontal padding */
    font-size: var(--nav-font-size);
  }
}

/* Ultra-compact for very small screens */
@media (max-width: 480px) {
  .nav-2025__brand {
    left: 8px;
    width: 100px;
  }
  
  .nav-2025__actions {
    right: 8px;
    gap: 2px;
    max-width: 80px;
  }
  
  .nav-2025__logo img {
    height: 24px;
    max-width: 80px;
  }
  
  /* Hide desktop CTA buttons completely on very small screens - mobile menu has proper buttons */
  .nav-2025__cta {
    display: none;
  }
}

/* Ultra-small screen emergency overlap prevention */
@media (max-width: 320px) {
  .nav-2025__container {
    min-width: 320px;
    overflow-x: auto; /* Allow horizontal scroll if absolutely necessary */
    gap: 4px;
  }
  
  .nav-2025__brand {
    max-width: 100px; /* Further limit logo size */
  }
  
  .nav-2025__logo img {
    height: 20px;
    max-width: 80px;
  }
  
  .nav-2025__mobile-toggle {
    width: 36px;
    height: 36px;
    padding: 6px;
  }
}

/* ========================================
   BODY PADDING FOR FIXED NAVIGATION
   ======================================== */

/* Add body padding for fixed navigation */
body:has(.motif-2025 .nav-2025),
body.has-nav-2025 {
  padding-top: 76px;
  transition: padding-top 0.3s ease;
}

@media (max-width: 767px) {
  body:has(.motif-2025 .nav-2025),
  body.has-nav-2025 {
    padding-top: 64px;
  }
}

@media (max-width: 480px) {
  body:has(.motif-2025 .nav-2025),
  body.has-nav-2025 {
    padding-top: 60px;
  }
}

/* ========================================
   Z-INDEX NUCLEAR OPTION - FORCE NAVIGATION ABOVE ALL
   ======================================== */

/* Force navigation above ALL content - POLISHED */
.nav-2025 {
  position: fixed !important;
  z-index: 999999 !important;
  will-change: auto !important;
  contain: none !important;
  animation: navSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes navSlideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-2025__dropdown {
  position: absolute !important;
  z-index: 999999 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(45, 100, 132, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 24px rgba(45, 100, 132, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06) !important;
  backdrop-filter: saturate(180%) blur(16px) !important;
  will-change: auto !important;
  contain: none !important;
  transform-style: flat !important;
}

.nav-2025 *,
.nav-2025__dropdown *,
.nav-2025__mobile-menu *,
.nav-2025__mobile-menu {
  z-index: 999999 !important;
}

/* Enhanced micro-interactions */
.nav-2025__logo:hover {
  transform: scale(1.05) rotate(1deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-2025__hamburger,
.nav-2025__hamburger::before,
.nav-2025__hamburger::after {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.nav-2025__link:focus,
.nav-2025__cta:focus {
  outline: 2px solid #2D6484;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(45, 100, 132, 0.2);
}