/* Touch Target Accessibility Improvements */

/* Minimum touch target size should be 44x44px for mobile accessibility */

/* Navigation Links - Desktop */
@media (min-width: 1200px) {
  .navbar-nav .nav-link {
    min-height: 44px !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* Navigation Links - Mobile */
@media (max-width: 1199.98px) {
  .navbar-nav .nav-link {
    min-height: 48px !important;
    padding: 16px 20px !important;
    display: block !important;
    margin: 4px 0 !important;
  }
}

/* Mobile Navigation Toggle */
.navbar-toggler {
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
  margin: 4px !important;
}

/* CTA Button */
.cta-nav-desk {
  min-height: 44px !important;
  padding: 12px 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Footer Links */
footer a {
  min-height: 44px !important;
  padding: 12px 8px !important;
  display: flex !important;
  align-items: center !important;
  margin: 4px 0 !important;
  text-decoration: none !important;
}

/* Footer links - desktop adjustments */
@media (min-width: 768px) {
  footer a {
    padding: 10px 12px !important;
    margin: 2px 0 !important;
  }
}

/* Legal links in footer */
.link_rights a {
  min-height: 44px !important;
  padding: 12px 16px !important;
  margin: 4px 8px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Accordion buttons touch targets */
.accordion-button,
.hs-accordion__item button {
  min-height: 48px !important;
  padding: 16px 20px !important;
}

/* Social media links and stacked icons */
.fa-stack {
  min-width: 44px !important;
  min-height: 44px !important;
  line-height: 44px !important;
}

.social-sharing-icon a {
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 8px !important;
  margin: 4px !important;
}

/* Form buttons and inputs */
.btn {
  min-height: 44px !important;
  padding: 12px 20px !important;
}

input[type="submit"],
button[type="submit"] {
  min-height: 44px !important;
  padding: 12px 20px !important;
}

/* Ensure adequate spacing between touch targets */
.nav-item + .nav-item {
  margin-top: 4px;
}

@media (min-width: 768px) {
  .nav-item + .nav-item {
    margin-top: 0;
    margin-left: 8px;
  }
}

/* Add spacing to footer columns */
footer .d-flex.flex-column a + a {
  margin-top: 8px !important;
}

/* Hover and focus states for better visual feedback */
footer a:hover,
footer a:focus,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  outline: 2px solid rgba(255, 255, 255, 0.3) !important;
  outline-offset: 2px !important;
}

/* Legal links hover state */
.link_rights a:hover,
.link_rights a:focus {
  background-color: rgba(0, 0, 0, 0.05) !important;
  border-radius: 4px !important;
  text-decoration: underline !important;
}

/* Ensure touch targets don't overlap */
.navbar-nav,
footer .d-flex.flex-column {
  gap: 4px !important;
}

/* Mobile-specific improvements */
@media (max-width: 767.98px) {
  /* Increase spacing between navigation items on mobile */
  .navbar-nav .nav-item {
    margin: 6px 0 !important;
  }

  /* Footer links get more padding on mobile */
  footer a {
    padding: 16px 12px !important;
    margin: 6px 0 !important;
  }

  /* Legal links stack vertically with proper spacing */
  .link_rights {
    text-align: center !important;
  }

  .link_rights a {
    display: block !important;
    margin: 8px 0 !important;
    padding: 16px !important;
  }
}