/* ==========================================================================
   Professional Movers Buffalo NY - custom enhancements (2026)
   Skip link, focus, cookie banner, legal pages, FAQ, utilities, AA contrast.
   Loaded LAST so it wins over the template.
   ========================================================================== */

/* ---------- Skip link (WCAG 2.4.1) ---------- */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100000;
    background: #005f85; color: #fff; padding: 12px 20px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; outline: 3px solid #f5a623; }

/* ---------- Visible keyboard focus (WCAG 2.4.7) ---------- */
a:focus, button:focus, input:focus, textarea:focus, select:focus, [tabindex]:focus {
    outline: 3px solid #f5a623 !important; outline-offset: 2px;
}

/* ---------- WCAG AA contrast: theme blue #0093d0 is only 3.45:1 on white ---------- */
a { color: #0076a8; }
a:hover, a:focus { color: #005f85; }
#footer a, #bottom a, .top-bar a, .navbar-nav > li > a { color: inherit; }

/* ---------- Utility (replaces inline styles) ---------- */
.img-float-right { float: right; margin-left: 20px; margin-bottom: 20px; border: 0; max-width: 100%; height: auto; }
.border-0 { border: 0; }
@media (max-width: 600px) { .img-float-right { float: none; margin: 0 0 18px; display: block; } }

.img-responsive-block { max-width: 100%; height: auto; display: block; }
.txt-black { color: #000; }
.offscreen-hp { position: absolute; top: -10000px; left: -10000px; }

/* ---------- FAQ accordions (native details/summary) ---------- */
.faq-section { max-width: 900px; margin: 40px auto 20px; padding: 0 15px; }
.faq-item { border: 1px solid #d9e3e6; margin-bottom: 12px; background: #f7fbfc; }
.faq-item > summary {
    cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; font-size: 17px;
    color: #00506f; list-style: none; position: relative;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:after { content: "+"; position: absolute; right: 18px; top: 13px; font-size: 22px; color: #0076a8; }
.faq-item[open] > summary:after { content: "\2212"; }
.faq-item .faq-a { padding: 0 18px 18px; font-size: 15px; color: #444; line-height: 1.6; }

/* ---------- Legal / informational pages ---------- */
.legal-page { max-width: 900px; margin: 40px auto 60px; padding: 0 20px; color: #333; line-height: 1.7; font-size: 16px; }
.legal-page h1 { font-size: 32px; margin-bottom: 10px; color: #222; }
.legal-page h2 { font-size: 24px; margin-top: 34px; color: #0076a8; }
.legal-page h3 { font-size: 19px; margin-top: 24px; color: #333; }
.legal-page ul { margin: 12px 0 12px 22px; list-style: disc outside; }
.legal-page li { margin-bottom: 8px; list-style: disc outside; display: list-item; }
.legal-page a { color: #0076a8; text-decoration: underline; }
.legal-updated { color: #666; font-style: italic; margin-bottom: 24px; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
    background: #16232b; color: #fff; padding: 16px 20px; box-shadow: 0 -2px 10px rgba(0,0,0,.35); display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cookie-banner__text { font-size: 14px; line-height: 1.5; margin: 0; flex: 1 1 420px; color: #fff; }
.cookie-banner__text a { color: #7fd4f5; text-decoration: underline; }
.cookie-banner__actions { flex: 0 0 auto; }
.cookie-btn { border: 0; padding: 10px 18px; margin-left: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.cookie-btn--accept { background: #0076a8; color: #fff; }
.cookie-btn--accept:hover, .cookie-btn--accept:focus { background: #005f85; }
.cookie-btn--decline { background: #e6e6e6; color: #222; }
.cookie-btn--decline:hover, .cookie-btn--decline:focus { background: #cfcfcf; }
@media (max-width: 600px) { .cookie-banner__actions { margin-top: 8px; } .cookie-btn { margin: 6px 8px 0 0; } }

/* ---------- Floating back-to-top ---------- */
.bv-top {
    position: fixed; bottom: 22px; right: 22px; z-index: 100040; width: 48px; height: 48px;
    border: none; border-radius: 50%; background: #0076a8; color: #fff; cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
    display: flex; align-items: center; justify-content: center; padding: 0;
}
.bv-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.bv-top:hover, .bv-top:focus { background: #005f85; outline: 3px solid #f5a623; }
.bv-top svg { width: 22px; height: 22px; fill: #fff; }

/* ---------- Footer legal links ---------- */
.footer-legal { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; }
.footer-legal li { display: inline-block; margin: 0 10px 4px 0; }

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

/* ---------- WCAG AA: theme blue #0093d0 fails on headings (3.45:1 white / 3.08:1 on #f2f2f2) ---------- */
h1, h3, .why-choose-us h3, h3 > strong { color: #00688f; }
/* white-on-blue nav hover/active was 3.45:1 -> 6.22:1 */
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus,
.navbar-inverse .navbar-nav .dropdown-menu > li:hover > a,
.navbar-inverse .navbar-nav .dropdown-menu > li:focus > a,
.navbar-inverse .navbar-nav .dropdown-menu > li.active > a { background-color: #00688f; color: #fff; }
