/* WCAG 2.0 AA fixes (loaded after custom-style.css) */

/* 1.4.3 Contrast: white on #e69e0b was 2.26:1. Dark text on the same orange is ~7:1. */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active {
    color: #212529 !important;
}

/* 2.4.7 Focus visible: make keyboard focus obvious on links and buttons. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #1a1a1a !important;
    outline-offset: 2px;
}

/* 2.2.2 Pause, Stop, Hide: pause buttons for the moving carousels. */
.motion-toggle {
    background: #212529;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
}

.hero-motion-toggle {
    position: absolute;
    right: 15px;
    bottom: 15px;
    z-index: 20;
}

.logos-motion-toggle {
    display: block;
    margin: 10px auto 0;
}

/* Skip link: hidden until it receives keyboard focus. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: #fff;
    color: #000;
    padding: 8px 12px;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
}

/* 1.4.3 Contrast: gold headings on white were 2.26:1. Darker gold = 5:1 (same hue). */
.series-door-text .gold-text,
.series-door-text h5.gold-text {
    color: #9a6400 !important;
}

/* 1.4.3 Contrast: Material Design form labels were light grey (rgba(0,0,0,.26)). */
.login label,
.form-group label,
.bmd-label-static,
.bmd-label-floating,
.bmd-label-placeholder {
    color: #555555 !important;
}


/* 1.4.3 Contrast: banner headings sit on photos. A soft backdrop keeps the look but makes text readable. */
.series-doors-banner h1 {
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.85), 0 0 18px rgba(0, 0, 0, 0.6);
}
.contact-us-banner h1 {
    display: inline-block;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 18px;
    border-radius: 4px;
}

/* 1.4.3 Contrast: placeholder text was light grey. #6b6b6b on white = 5.3:1. */
.form-control::placeholder { color: #6b6b6b !important; opacity: 1; }
.form-control::-webkit-input-placeholder { color: #6b6b6b !important; opacity: 1; }
.form-control::-moz-placeholder { color: #6b6b6b !important; opacity: 1; }

/* ---- Accessibility + cookie notice (bottom banner) ---- */
.site-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: #37474f;          /* white text on this = 9.9:1 */
    color: #ffffff;
    text-align: center;
    padding: 18px 60px 16px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
}
.site-notice[hidden] { display: none; }
.site-notice p { margin: 0 auto 8px; max-width: 1100px; color: #ffffff; }
.site-notice-title {
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: underline;
    margin: 0 0 8px;
    color: #ffffff;
}
.site-notice a,
.site-notice a:hover { color: #ffffff; text-decoration: underline; }
.site-notice-actions { margin-top: 4px; }
.site-notice-accept,
.site-notice-close {
    background: none;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
}
.site-notice-accept { text-decoration: underline; padding: 4px 10px; }
.site-notice-close {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
    padding: 8px 12px;
}
/* Keyboard focus must show on the dark background. */
.site-notice a:focus-visible,
.site-notice button:focus-visible { outline: 3px solid #ffffff !important; outline-offset: 2px; }
@media (max-width: 576px) {
    .site-notice { padding: 14px 44px 12px 14px; font-size: 13px; text-align: left; }
    .site-notice-close { top: 8px; right: 6px; transform: none; }
}


/* Heading-order fix: DOOR LINE / FRAME LINE are now <h3 class="h4">; keep their old look.
   1.4.3 Contrast: gold on #f9f9f9 was ~2.2:1, darker gold #9a6400 = ~4.8:1. */
.operations-section h3.h4,
.door-frame-line h3.h4 {
    color: #9a6400;
    font-weight: 500;
}
@media only screen and (min-width: 320px) and (max-width: 767px) {
    .door-line h3.h4,
    .frame-line h3.h4 { text-align: center; }
}


/* 1.4.3 Contrast: all gold text sits on white/light grey; #e69e0b was ~2.2:1, #9a6400 = ~5:1. */
.gold-text,
.gold-text strong { color: #9a6400 !important; }
