.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #d300ba;
    --bs-btn-border-color: #d300ba;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #b903a4;
    --bs-btn-hover-border-color: #ad0e9b;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ad0e9b;
    --bs-btn-active-border-color: #bd09a8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #d300ba;
    --bs-btn-disabled-border-color: #d300ba;
}

.btn-outline-primary {
    --bs-btn-color: #d300ba;
    --bs-btn-border-color: #d300ba;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d300ba;
    --bs-btn-hover-border-color: #d300ba;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #d300ba;
    --bs-btn-active-border-color: #d300ba;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #d300ba;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #d300ba;
    --bs-gradient: none;
}

/* ==========================================================================
   WCAG 2.1 AA Accessibility Improvements
   Color contrast fixes and link accessibility enhancements
   ========================================================================== */

/* Updated WCAG-Compliant Color Variables */
:root {
  /* Original accent: #ed00ce (3.82:1) → Updated: #d800bb (4.53:1) ✅ */
  --accent-color-wcag: #d800bb;
  /* Original nav-hover: #f3268c (3.84:1) → Updated: #dd237f (4.54:1) ✅ */
  --nav-hover-color-wcag: #dd237f;
}

/* Link Accessibility - Underlines for better identification */
.content a,
.about a,
.faq a,
section:not(.hero) a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.content a:hover,
.about a:hover,
.faq a:hover,
section:not(.hero) a:hover {
  text-decoration-thickness: 2px;
}

/* Navigation links - keep no underline in header for design, but add on hover */
.navmenu a {
  text-decoration: none;
}

.navmenu a:hover,
.navmenu a:focus {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Focus Indicators for Keyboard Navigation */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent-color-wcag, #d800bb);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(216, 0, 187, 0.2);
}

/* Skip Link for Keyboard Users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--heading-color, #5a0b80);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  a {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
  }
  
  .btn-primary {
    border: 2px solid currentColor;
  }
  
  .btn-outline-primary {
    border-width: 3px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Better Typography Spacing for Readability */
p, li {
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 0.75em;
}

/* Focus styles for form elements */
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-color-wcag, #d800bb);
  outline-offset: 1px;
  border-color: var(--accent-color-wcag, #d800bb);
}

/* Ensure minimum touch target size (44x44px) for mobile */
@media (max-width: 768px) {
  .btn,
  a.btn,
  button,
  [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  .navmenu a {
    padding: 12px 8px;
  }
}