/* Performance/SEO support layer for Strong Tower Electrical. */
html, body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

.ste-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(0, 0, 0, .88);
}

.ste-lightbox.is-open {
    display: flex;
}

.ste-lightbox-image {
    max-width: min(92vw, 1400px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, .35);
}

.ste-lightbox-close,
.ste-lightbox-prev,
.ste-lightbox-next {
    position: fixed;
    z-index: 2;
    border: 0;
    background: rgba(255, 255, 255, .94);
    color: #353494;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}

.ste-lightbox-close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 32px;
}

.ste-lightbox-prev,
.ste-lightbox-next {
    top: 50%;
    width: 44px;
    height: 56px;
    margin-top: -28px;
    border-radius: 8px;
    font-size: 26px;
}

.ste-lightbox-prev { left: 18px; }
.ste-lightbox-next { right: 18px; }

html.ste-lightbox-open,
html.ste-lightbox-open body {
    overflow: hidden;
}

@media (max-width: 600px) {
    .ste-lightbox { padding: 16px; }
    .ste-lightbox-prev { left: 8px; }
    .ste-lightbox-next { right: 8px; }
    .ste-lightbox-close { top: 8px; right: 8px; }
}


/* Keyboard-accessible skip link and focus indication. */
.ste-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100000;
    padding: 10px 14px;
    border-radius: 4px;
    background: #fff;
    color: #353494;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
}

.ste-skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #ec6322;
    outline-offset: 3px;
}

/* Keep the existing orange services design, but allow the new longer labels
   to wrap naturally without absolute-position clipping. */
body.page.home .wrapper section .flexible-content .columns#services .col-content-wrap ul li {
    align-items: center;
    justify-content: center;
    min-height: 125px;
    padding: 18px;
}

body.page.home .wrapper section .flexible-content .columns#services .col-content-wrap ul li span {
    position: static;
    display: block;
    width: 100%;
    transform: none;
}

@media (max-width: 575.98px) {
    body.page.home .wrapper section .flexible-content .columns#services .col-content-wrap ul li {
        width: 100%;
        min-height: auto;
        margin-right: 0;
        padding: 18px 20px;
    }
}

/* Fixed background effects are expensive on mobile and can cause paint/jank. */
@media (max-width: 991.98px) {
    .hero-slides .slider-content,
    body.page.home .wrapper section .flexible-content .columns#services .bg-wrap .col-bg-1 {
        background-attachment: scroll !important;
    }
}

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