/* ================================================================
   Astra Child Theme - Accessibility Overrides
   CRITICAL: Loads LAST to fix WCAG AA contrast issues
   ================================================================ */

/* ALL LINKS: #0066cc (WCAG AA accessible) */
a {
  color: #0066cc !important;
}

a:visited {
  color: #004499 !important;
}

a:hover,
a:active {
  color: #0052a3 !important;
  text-decoration: underline !important;
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #0f172a !important;
  outline-offset: 2px !important;
}

/* Specific selectors to override Astra */
.site-content a {
  color: #0066cc !important;
}

.entry-content a {
  color: #0066cc !important;
}

.wp-block-button__link {
  color: white !important;
}

/* Navigation links */
.site-navigation a:hover {
  color: #0066cc !important;
}

/* ========== WORDPRESS FORM ADJUSTMENTS ========== */

/* Form inputs - apply Inter font */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="url"],
textarea,
select {
  font-family: 'Inter', sans-serif !important;
  color: #1a1a1a !important;
  border-color: #e2e8f0 !important;
}

/* Form input focus state */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1) !important;
}

/* Comment form labels */
.comment-form label {
  font-family: 'Outfit', sans-serif !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}

/* Comment submit button - use design system colors */
.comment-form input[type="submit"],
.comment-form button[type="submit"] {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-family: 'Outfit', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  cursor: pointer !important;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.comment-form input[type="submit"]:hover,
.comment-form button[type="submit"]:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3) !important;
}

/* WP Block buttons */
.wp-block-button__link {
  font-family: 'Outfit', sans-serif !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: white !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  border: none !important;
}

.wp-block-button__link:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

/* Tablet (921px and below) */
@media (max-width: 921px) {
  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 16px !important;
    padding: 12px 14px !important;
  }

  .comment-form input[type="submit"],
  .comment-form button[type="submit"] {
    width: 100% !important;
    margin-top: 1rem !important;
  }
}

/* Mobile (544px and below) */
@media (max-width: 544px) {
  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 14px !important;
    padding: 10px 12px !important;
    width: 100% !important;
  }

  .comment-form input[type="submit"],
  .comment-form button[type="submit"] {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }

  .comment-form label {
    font-size: 14px !important;
    margin-top: 1rem !important;
  }
}

/* Ultra-mobile (375px and below) */
@media (max-width: 375px) {
  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 14px !important;
    padding: 8px 10px !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
  }

  .comment-form input[type="submit"],
  .comment-form button[type="submit"] {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  .comment-form label {
    font-size: 13px !important;
    margin-top: 0.75rem !important;
  }

  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 20px !important;
  }
}
