/* ============================================
   Accessibility Fixes — 2026-04-12
   Lighthouse audit: color-contrast + heading-order
   To revert: remove this file + enqueue in functions.php
   ============================================ */

/* Links: #05a1c9 (3.02:1) -> #07799a (4.64:1) on white */
a.blog-link {
    color: #07799a;
}

/* Buttons: #32addf bg (2.56:1) -> #1a7fa8 (4.58:1) with white text */
.btn,
input.btn[type="submit"],
a.btn {
    background-color: #1a7fa8;
}

/* P3: Footer nav labels changed from h5 to span — match original h5 appearance */
.footer-container .center-piece span.footer-heading,
.footer-container .center-piece span.footer-heading a {
    display: block;
    font-size: 15px !important;
    font-weight: 400;
    color: #62cae5 !important;
    line-height: 15px;
    margin: 30px 0 10px;
    text-transform: uppercase;
    text-decoration: none !important;
}
.footer-container .center-piece span.footer-heading a {
    margin: 0;
}

/* P3: Banner subtitle changed from h3 to h2 — match original h3 appearance */
.banner-details .center-piece.go-left h2 {
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 30px !important;
    margin: 0;
    width: 80%;
}

/* Banner text position */
.banner-details {
    bottom: 50px !important;
}

/* Banner title: spacing below */
.banner-details .center-piece.go-left h1 {
    margin-bottom: 12px !important;
}

/* Banner subtitle: spacing below before CTA */
.banner-details .center-piece.go-left h2 {
    margin-bottom: 35px !important;
}

/* Hero image: native <img> replaces CSS background-image for faster LCP discovery */
/* height: 100% needs !important to beat theme's `img { height: auto }` base rule —
   without it the img falls back to intrinsic 16:9 aspect ratio and leaves a dark strip
   at the bottom where the #1a1a2e header-container background shows through */
.banner-img-wrap,
.banner-hero-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0;
}

/* Banner overlay: 20% -> 35% for better text readability */
.banner-item .darker-bg {
    background-color: rgba(0, 0, 0, 0.35) !important;
    z-index: 1;
}

/* Ensure text stays above image + overlay */
.banner-item .banner-details {
    z-index: 2;
    position: relative;
}

/* Responsive: small desktop / large tablet — reduce text, keep bottom positioning */
@media screen and (max-width: 1024px) {
    .banner-details .center-piece.go-left h1 {
        font-size: 28px !important;
        line-height: 36px !important;
    }
    .banner-details .center-piece.go-left h2 {
        font-size: 18px !important;
        line-height: 26px !important;
        margin-bottom: 20px !important;
    }
    .banner-details .banner-bottom a {
        font-size: 13px !important;
        padding: 10px 20px !important;
    }
}

/* Unified hero sizing: fixed 540px tall at every viewport.
   - Definite height → <img> height:100% resolves properly → no dark strip leak
   - Shorter than natural 16:9 on desktop → object-fit:cover crops top+bottom
     (user asked: don't let the hero take the whole big screen)
   - Banner-details absolute-positioned bottom:50px works because container is definite */
.home-page .header-container {
    height: 540px !important;
    max-height: 540px !important;
    min-height: 540px !important;
    overflow: hidden !important;
}
.home-page .banner-container,
.home-page .banner-container > ul {
    height: 540px !important;
    max-height: 540px !important;
}
.home-page .banner-container li.banner-item {
    height: 540px !important;
    max-height: 540px !important;
    padding-top: 0 !important;
    position: relative !important; /* containing block for .banner-img-wrap */
}
.home-page .banner-details {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 50px !important;
    top: auto !important;
}

/* Responsive font sizes only — no more layout/positioning changes per breakpoint */
@media screen and (max-width: 768px) {
    .banner-details .center-piece.go-left h1 {
        font-size: 22px !important;
        line-height: 30px !important;
    }
    .banner-details .center-piece.go-left h2 {
        font-size: 15px !important;
        line-height: 22px !important;
        margin-bottom: 20px !important;
    }
}

/* Responsive: mobile */
@media screen and (max-width: 425px) {
    .banner-details .center-piece.go-left {
        padding-top: 50px !important;
    }
    .banner-details .center-piece.go-left h1 {
        font-size: 18px !important;
        line-height: 24px !important;
    }
    .banner-details .center-piece.go-left h2 {
        font-size: 12px !important;
        line-height: 18px !important;
        margin-bottom: 15px !important;
    }
}
