/* ============================================================
   Ballos Auto Parts — Accessibility & UX override
   Load this AFTER assets/css/style.css (add a <link> below it).
   Fixes contrast, focus visibility, skip-link, and helpers.
   ============================================================ */

:root { --focus-ring: #e8c96a; --green-strong: #1f6b45; --red-strong: #a61b1b; }

/* Screen-reader-only text */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible keyboard focus for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip-to-content link (revealed on focus) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: #c9a84c;
  color: #1a1a2e;
  padding: 10px 16px;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Product page SEO / GEO content ---------- */

.part-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
}

.part-seo-content {
  max-width: 920px;
  margin-top: 48px;
}

.part-seo-content h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 10px;
}

.part-seo-content p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.part-faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.part-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
}

.part-faq p {
  margin: 10px 0 0;
}

/* WhatsApp enquiry button: white text needs a darker green (WCAG AA). */
.btn-enquire {
  background: #0b6b3a;
}

.btn-enquire:hover {
  background: #08552d;
}

/* ---------- Contrast fixes (WCAG AA 4.5:1) ---------- */

/* Topbar WhatsApp pill: white on #25d366 was 1.98:1 */
.topbar .whatsapp-link {
  background: #0f7a36;
}
.topbar .whatsapp-link:hover {
  background: #0b6129;
}

/* Footer headings are now <h3> for correct heading order — keep original look */
.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Gold accent on light backgrounds was ~2.3:1 — darken it */
.section-eyebrow { color: #7a5c12; }
.section-title span { color: #8a6a16; }

/* Muted grey text on white / light grey */
.part-original-price { color: #6b6b6b; }   /* was #999 */
.empty-state p { color: #6b6b6b; }         /* was #aaa */
.breadcrumb span { color: #5f5f5f; }       /* was #666 */

/* Text on dark backgrounds */
.topbar { color: #c4c4c4; }                /* was #aaa */
.hero p { color: rgba(255,255,255,.82); }  /* was .7  */
.hero-stat-label { color: rgba(255,255,255,.78); } /* was .6 */
.brand-logo span { color: #b8b8b8; }       /* was #888 on #1a1a2e */
.footer-col p,
.footer-col ul li a,
.contact-list li { color: #b0b0b0; }       /* was #888 */
.footer-bottom p { color: #a0a0a0; }       /* was #666 — failed */
.page-hero p { color: rgba(255,255,255,.8); }

/* Slightly stronger inactive nav/text on dark for readability */
.nav-list > li > a { color: #dcdcdc; }
.brand-pill { color: #cfcfcf; }

/* Brand pills used inside light content sections (parts/stripping pages). */
.section .brand-pill {
  background: #f4f4f4;
  border-color: #ddd;
  color: #4a4a4a;
}

.section .brand-pill:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}