/* ===================================
   COMPLETE NAVIGATION SYSTEM REBUILD
   =================================== */

/* Remove all blur effects */
* {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Main Navigation Container */
.main-navigation {
  position: fixed;
  top: 12px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: none;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 24px;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  z-index: 1002;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

/* Desktop Menu */
.nav-menu-desktop {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu-desktop li {
  margin: 0;
  padding: 0;
}

.nav-menu-desktop li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  display: inline-block;
}

.nav-menu-desktop li a:hover {
  color: #06b6d4;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-content a {
  display: none !important;
}

.nav-dropdown-button {
  background: #ffffff;
  color: #06b6d4;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.nav-dropdown-button:hover {
  background: #ffffff;
  color: #0891b2;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.8), 0 4px 12px rgba(6, 182, 212, 0.4);
}

.nav-dropdown-content:not(.show) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

.nav-dropdown-content:not(.show) * {
  display: none !important;
  visibility: hidden !important;
}

.nav-dropdown-content {
  background-color: #000000 !important;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-radius: 12px !important;
  z-index: 1001;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dropdown-content.show {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  width: auto !important;
  min-width: 180px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: fixed !important;
  top: 80px !important;
  background-color: #000000 !important;
  border-radius: 12px !important;
}

.nav-dropdown-content a {
  display: none !important;
}

.nav-dropdown-content.show a {
  display: block !important;
  color: #ffffff !important;
  padding: 16px 24px 16px 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.nav-dropdown-content.show a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #06b6d4 !important;
}

/* Style for the Locations link to look like other nav items */
.nav-dropdown-link {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  display: inline-block;
  cursor: pointer;
}

.nav-dropdown-link:hover {
  color: #06b6d4;
}

/* CTA Button - White with Cyan Glow */
.nav-cta-button {
  background: #ffffff;
  color: #06b6d4;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.nav-cta-button:hover {
  background: #ffffff;
  color: #0891b2;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.8), 0 4px 12px rgba(6, 182, 212, 0.4);
}

/* Mobile Hamburger - Visible against dark navbar */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger Animation - transforms to BLACK X */
.mobile-menu-toggle.active {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle.active span {
  background: #000000;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 24px 0 0 24px;
}

.mobile-menu-overlay.active .mobile-menu-panel {
  transform: translateX(0);
}

/* Close Button - BLACK styling */
.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #1f2937;
  border: none;
  font-size: 2.5rem;
  color: #ffffff;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
  line-height: 1;
  font-weight: 300;
}

.mobile-menu-close:hover {
  background: #111827;
  transform: rotate(90deg);
}

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

/* Mobile Menu List */
.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0 0;
}

.mobile-menu-list li {
  margin-bottom: 1rem;
}

.mobile-menu-list a {
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 0.75rem 0;
  transition: color 0.3s ease;
}

.mobile-menu-list a:hover {
  color: #06b6d4;
}

.mobile-menu-cta {
  background: #ffffff;
  color: #000000 !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-align: center;
  margin-top: 1rem;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-menu-cta:hover {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.8);
  transform: scale(1.05);
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

/* Tablet and Mobile */
@media (max-width: 991px) {
  /* Hide desktop menu */
  .nav-menu-desktop {
    display: none;
  }
  
  /* Hide desktop CTA */
  .nav-cta-button {
    display: none;
  }
  
  /* Show hamburger */
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Desktop */
@media (min-width: 992px) {
  /* Hide mobile menu completely on desktop */
  .mobile-menu-overlay,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===================================
   FIX TESTIMONIAL TAP TO PLAY BUTTON
   =================================== */

/* Clean, simple styling for audio instruction button */
.audio-instruction {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  padding: 8px 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #000000 !important;
  position: relative !important;
  z-index: 10 !important;
}

.audio-instruction:hover {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* HIDE DUPLICATE BUTTONS */
/* On desktop/iPad: Show only "Hover to hear", hide "Tap to play" */
@media (min-width: 768px) {
  .audio-instruction.mobile {
    display: none !important;
  }
  
  .audio-instruction.desktop {
    display: inline-flex !important;
  }
}

/* On mobile: Show only "Tap to play", hide "Hover to hear" */
@media (max-width: 767px) {
  .audio-instruction.desktop {
    display: none !important;
  }
  
  .audio-instruction.mobile {
    display: inline-flex !important;
  }
}

/* Audio mute button */
.audio-mute-button {
  width: 24px !important;
  height: 24px !important;
  padding: 4px !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.audio-mute-button:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  transform: scale(1.1) !important;
}

.audio-mute-button svg {
  width: 100% !important;
  height: 100% !important;
  color: #000000 !important;
}

/* ===================================
   FIX H1 POSITIONING ON SERVICE PAGES
   =================================== */

/* Add more spacing on desktop only */
@media (min-width: 992px) {
  body h1,
  .heading-2,
  .section-header h1 {
    margin-top: 86px !important;
  }

  /* Specifically target hero section h1 */
  .section-home-hero h1,
  .home-hero-title h1 {
    margin-top: 86px !important;
  }
}

/* ===================================
   FIX CTA SECTION ON MOBILE
   =================================== */

@media (max-width: 767px) {
  /* Full white translucent cover on mobile */
  .global-cta .overlay {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
  }
  
  .global-cta-column._1 {
    background: transparent !important;
    position: relative !important;
  }
  
  /* Ensure background image is visible underneath */
  .cta-card-image {
    opacity: 1 !important;
    display: block !important;
  }
  
  .cta-card-image img {
    display: block !important;
    opacity: 1 !important;
  }
  
  .cta-service {
    position: relative !important;
    z-index: 2 !important;
  }
  
  /* ALL text BLACK on mobile */
  .global-cta .section-caption-text,
  .global-cta .color-tertiary,
  .global-cta .section-header,
  .global-cta .color-white,
  .global-cta h2,
  .global-cta p {
    color: #000000 !important;
  }
}
