/*
 * Kern Painting Pro: shared accessibility styles (WCAG 2.1 AA). Linked from every page, after the page's own <style>.
 * Rules to keep: never outline:none without a replacement, text 4.5:1 (large 3:1), 44px touch targets on phones,
 * honor prefers-reduced-motion. No accessibility overlay widgets: accessibility lives in the code.
 */

/* ── Skip link: first focusable element on every page, visible when focused ── */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 12px 20px;
  min-height: 44px;
  background: #0F0A06;
  color: #FFFFFF;
  font: 700 16px/1.4 'DM Sans', system-ui, sans-serif;
  text-decoration: none;
  border: 2px solid #FFFFFF;
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus, .skip-link:focus-visible {
  transform: none;
  outline: 3px solid #F7941F;
  outline-offset: 2px;
}
main:focus, [tabindex="-1"]:focus { outline: none; }

/* ── Visible focus on everything interactive ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, iframe:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid #F7941F;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #0F0A06;
}
.form-group input:focus-visible, .form-group textarea:focus-visible { outline: 3px solid #F7941F; outline-offset: 2px; }

/* Links inside running text and footer text lines are underlined (not color alone); navigation menus are not */
p a:not(.btn), main li a:not(.btn), .footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a { color: rgba(255,255,255,0.82) !important; }

/* ── Accessibility icon (bottom left, every page) ── */
.a11y-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 95;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: #0F0A06;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}
.a11y-fab:hover { background: #2a1a10; transform: translateY(-2px); }
.a11y-fab:focus-visible { outline: 3px solid #F7941F; outline-offset: 3px; box-shadow: 0 0 0 6px #0F0A06; }
.a11y-fab svg { width: 30px; height: 30px; fill: currentColor; }
footer, .card-footer { scroll-margin-bottom: 80px; }
footer { padding-bottom: max(var(--footer-pad, 0px), 88px); }

/* ── Contrast fixes ── */
/* Brand orange (#F7941F) is only 2.3:1 on white; use a darker orange for small text on light backgrounds */
.contact-form-wrap .section-label, .card .step-label, .card-footer a, .eyebrow, .article-container .eyebrow,
.legal-eyebrow, .hero-eyebrow-light { color: #A24A00; }
/* Brand red (#EF3E36) is 3.9:1 on white; darker red for text links on light backgrounds */
main p a:not(.btn), main li a:not(.btn), .back-to-blog, .post-hero .breadcrumb a, .article-container a:not(.btn) { color: #B3201A; }
body:has(.post-hero) .nav-links a.active { color: #B3201A !important; }
.post-hero .breadcrumb span { color: #5C4F3D; }
#why .section-label, #services .section-label, #reviews .section-label, #process .section-label, #about .section-label,
#service-area .section-label, #instagram .section-label { color: #A24A00; }
/* Muted text on dark backgrounds */
.footer-col h4, .footer-col h3, .footer-mini-inner p, .count-label, .breadcrumb span, .post-excerpt { color: rgba(255,255,255,0.78); }
footer a[href$="LvLUpMedia.io"] span { color: rgba(255,255,255,0.92) !important; }
footer a[href$="LvLUpMedia.io"] { opacity: 1 !important; }

/* Brand gradient behind white text: the original orange end was only 2.3:1 with white, so the end stops are darker */
:root { --gradient: linear-gradient(135deg, #9B1422 0%, #C8281F 50%, #B84A00 100%); }
#kp-consent button.kp-accept, #cookieConsent button[onclick] { background: linear-gradient(135deg, #9B1422 0%, #C8281F 50%, #B84A00 100%) !important; }
/* Gradient headline accents on dark backgrounds use a lighter gradient */
.hero-title em, .gallery-hero h1 em, .blog-hero h1 em, div[aria-label="Award recognition"] h2 em {
  background: linear-gradient(135deg, #FF8A7A 0%, #FFB057 100%) !important; -webkit-background-clip: text !important; background-clip: text !important;
}
/* Text over photos and gradient bands */
.hero-sub { text-shadow: 0 1px 12px rgba(15,10,6,0.55); }
.hero-sub { color: #FFFFFF; }
.hero-badge { color: #FFC27A; background: rgba(15,10,6,0.55); }
.gallery-cta-strip, .blog-cta-strip { background: var(--gradient) !important; }
.cta-content p, .post-cta p, .gallery-cta-strip p, .blog-cta-strip p { color: #FFFFFF; }
.cta-content .section-label { color: #FFB057; }
.post-cta .btn-outline, .gallery-cta-strip .btn-outline, .blog-cta-strip .btn-outline { border-color: #FFFFFF; }
.filter-btn { color: rgba(255,255,255,0.82); }

/* ── Touch targets: at least 44px on phones/tablets ── */
@media (max-width: 1024px) {
  .hamburger, .lightbox-close, .lightbox-nav, .star-btn, .filter-btn, .btn, .gallery-item, .mobile-menu a,
  .nav-links a, .footer-col a, .footer-bottom a, .social-float a, .breadcrumb a, .back-to-blog, .card-footer a {
    min-height: 44px;
  }
  .hamburger, .lightbox-close, .star-btn { min-width: 44px; }
  .footer-col li a, .footer-bottom a, .card-footer a { display: inline-flex; align-items: center; }
  .social-float a { width: 44px !important; height: 44px !important; }
  .footer-col a, .breadcrumb a, .home-link, .footer-bottom a { min-width: 44px; }
  .home-link, .breadcrumb a, .contact-phone-card a, a[href$="LvLUpMedia.io"], .footer-mini-inner a, #kp-consent button, #cookieConsent button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px !important; min-width: 44px;
  }
  .contact-phone-card a { padding: 0 12px; }
}

/* ── Motion: honor prefers-reduced-motion everywhere ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1 !important; transform: none !important; }
}

/* Placeholder text */
::placeholder { color: #6B6155; opacity: 1; }
