/* ==========================================================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS FOR AUDIFORT
   ========================================================================== */

/* Universal Mobile Fixes */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

body.no-scroll {
  overflow: hidden !important;
}

/* Header & Sticky Navigation */
#navMenu {
  position: sticky !important;
  top: 0 !important;
  z-index: 1050 !important;
  background: linear-gradient(135deg, #00515e 0%, #003d47 60%, #002a31 100%) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28) !important;
  width: 100%;
}

.navigation-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 60px;
}

.logo a {
  text-decoration: none !important;
  display: flex;
  align-items: center;
}

.logo span {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  letter-spacing: -0.5px;
}

/* Desktop Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  list-style: none;
  margin: 0 4px;
}

.nav-links li a {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-block;
}

.nav-links li a:hover {
  color: #ffeb00 !important;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links li:last-of-type a {
  background-color: #ffeb00 !important;
  border: 2px solid #ffd814 !important;
  color: #000000 !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-links li:last-of-type a:hover {
  background-color: #ffd814 !important;
  transform: translateY(-1px);
}

/* Hamburger Icon */
.burger {
  cursor: pointer;
  display: none;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.burger:hover {
  background: rgba(255, 255, 255, 0.2);
}

.burger div {
  background-color: #ffffff !important;
  height: 3px;
  margin: 5px 0;
  transition: all 0.3s ease;
  width: 25px;
  border-radius: 2px;
}

.burger.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
  background-color: #ffeb00 !important;
}

.burger.toggle .line2 {
  opacity: 0;
}

.burger.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
  width: 25px;
  background-color: #ffeb00 !important;
}

/* Mobile Drawer (<= 767px) */
@media screen and (max-width: 767px) {
  .burger {
    display: block !important;
  }

  .nav-links {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    height: calc(100dvh - 60px) !important;
    background: linear-gradient(180deg, #002a31 0%, #00191d 100%) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 1.5rem 1.25rem 3rem !important;
    transform: translateX(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease !important;
    z-index: 1045 !important;
    overflow-y: auto !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .nav-links.nav-active {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .nav-links li {
    width: 100% !important;
    margin: 0 0 0.5rem 0 !important;
  }

  .nav-links li a {
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.95rem 1.25rem !important;
    font-size: 1.05rem !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-align: center !important;
    min-height: 48px !important;
  }

  .nav-links li a:hover,
  .nav-links li a:active {
    background: rgba(255, 235, 0, 0.15) !important;
    color: #ffeb00 !important;
    border-color: rgba(255, 235, 0, 0.3) !important;
  }

  .nav-links li:last-of-type {
    margin-top: 1rem !important;
  }

  .nav-links li:last-of-type a {
    background-color: #ffeb00 !important;
    color: #000000 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 15px rgba(255, 235, 0, 0.35) !important;
  }
}

/* Fluid Responsive Buttons for Mobile */
.btn-new {
  box-sizing: border-box !important;
  max-width: 100% !important;
  text-align: center !important;
  white-space: normal !important;
}

@media (max-width: 576px) {
  .btn-new {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 380px !important;
    padding: 0.95rem 1.25rem !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.3px !important;
    border-radius: 12px !important;
  }

  /* Headings Adjustments */
  .display-2 {
    font-size: 2.25rem !important;
    line-height: 1.15 !important;
  }
  .display-4 {
    font-size: 1.9rem !important;
  }
  .display-5 {
    font-size: 1.65rem !important;
  }
  .display-6 {
    font-size: 1.45rem !important;
  }

  /* Hero adjustments */
  .hero {
    min-height: auto !important;
    padding: 1.5rem 0 2rem !important;
  }
  .hero-content .hero-text {
    padding-top: 1.25rem !important;
    padding-bottom: 1rem !important;
  }
  .hero-text h1 {
    font-size: 2.25rem !important;
  }
  .hero-text h2 {
    font-size: 1.6rem !important;
  }
  .hero-text p.fs-5 {
    font-size: 1.05rem !important;
    margin-bottom: 1.5rem !important;
  }
  .hero-img-wrapper img,
  .hero-content img {
    max-width: 290px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Container and Spacing */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .mx-12 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Pricing cards on mobile */
  .price-box-details .h4,
  .price-box-details h4 {
    font-size: 2.5rem !important;
  }
  .rounded-20 {
    border-radius: 16px !important;
  }

  /* Comparison Table on Mobile */
  .comparation-table {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .comparation-table table {
    font-size: 0.82rem !important;
    width: 100% !important;
    table-layout: auto !important;
  }
  .comparation-table th,
  .comparation-table td {
    padding: 0.65rem 0.35rem !important;
    vertical-align: middle !important;
  }
  .comparation-table th:first-child,
  .comparation-table td:first-child {
    width: 52% !important;
    font-size: 0.82rem !important;
    padding-left: 0.6rem !important;
    line-height: 1.35 !important;
  }
  .comparation-table th:nth-child(2),
  .comparation-table td:nth-child(2) {
    width: 25% !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
  .comparation-table th:nth-child(3),
  .comparation-table td:nth-child(3) {
    width: 23% !important;
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  /* FAQ Accordion */
  .gsc-accordion-header {
    font-size: 1.02rem !important;
    padding: 1rem 3rem 1rem 1rem !important;
    line-height: 1.35 !important;
    border-radius: 14px !important;
  }
  .gsc-accordion-header:after {
    right: 1rem !important;
    font-size: 1.5rem !important;
  }
  .gsc-accordion-content {
    padding: 0.9rem 1rem 1.25rem !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  .gsc-accordion-item {
    border-radius: 14px !important;
    margin-bottom: 0.85rem !important;
  }

  /* Ingredients Cards */
  .usp-ingredients-tile {
    font-size: 0.95rem !important;
  }
  #ingredients .bg-white-new {
    padding: 0.75rem !important;
  }
  #ingredients .bg-white-new img {
    width: 75px !important;
    height: 75px !important;
  }

  /* References & Disclaimers */
  .reference-text {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
  }
  ol.reference-text {
    padding-left: 1.25rem !important;
  }

  /* Modal on Mobile */
  .gsc-modal-content.large {
    max-height: 90vh !important;
    padding: 1rem !important;
  }
}

/* Extra small devices (<= 380px, e.g. iPhone SE) */
@media (max-width: 380px) {
  .btn-new {
    padding: 0.85rem 1rem !important;
    font-size: 0.95rem !important;
  }
  .display-2 {
    font-size: 2rem !important;
  }
  .display-6 {
    font-size: 1.35rem !important;
  }
  .hero-text h1 {
    font-size: 2rem !important;
  }
  .hero-text h2 {
    font-size: 1.45rem !important;
  }
  .comparation-table table {
    font-size: 0.78rem !important;
  }
}
