/* Scoped enhancements: original stylesheet remains unchanged. */
.hero.hero-with-truck {
    position: relative;
    isolation: isolate;
    background: #eef3f8 url('../images/hero-banner.jpg') center center/cover no-repeat;
    min-height: clamp(430px, 50vw, 650px)
}

.hero.hero-with-truck:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgb(255 255 255 / 42%) 35%, rgba(255, 255, 255, .62) 57%, rgba(255, 255, 255, .04) 100%);
    z-index: -1
}

.hero.hero-with-truck .hero-layout {
    display: block
}

.hero.hero-with-truck .hero-content {
    max-width: min(620px, 62%)
}

.danekas-marquee {
    overflow: hidden;
    background: #112e48;
    color: white;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 700
}

.marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 0;
    animation: danekasTicker 36s linear infinite
}

.marquee-track span {
    flex: none;
    padding: 0 27px;
    border-right: 1px solid #ffffff55;
    white-space: nowrap
}

.danekas-marquee:hover .marquee-track {
    animation-play-state: paused
}

@keyframes danekasTicker {
    to {
        transform: translateX(-50%)
    }
}

#projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px
}

#projects .gallery-tile {
    display: block;
    position: relative;
    aspect-ratio: 1.35/1;
    min-width: 0;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    cursor: zoom-in;
    background: #e9edf0;
    box-shadow: 0 4px 16px #122b4020
}

#projects .gallery-tile img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform .25s
}

#projects .gallery-tile:hover img {
    transform: scale(1.04)
}

.gallery-lightbox[hidden],
.quote-overlay[hidden] {
    display: none !important
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(4, 10, 17, .94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 48px
}

.gallery-lightbox img {
    display: block;
    max-width: calc(100vw - 160px);
    max-height: calc(100dvh - 125px);
    object-fit: contain;
    width: auto;
    height: auto;
    border-radius: 6px
}

.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;
    background: #fff;
    border: 0;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 25px;
    color: #112e48
}

.gallery-close {
    top: 17px;
    right: 18px
}

.gallery-prev {
    left: 10px
}

.gallery-next {
    right: 10px
}

.gallery-count {
    position: absolute;
    bottom: 14px;
    color: #fff;
    font-size: 13px
}

#testimonials .testimonial-slider {
    display: flex;
    gap: 10px;
    align-items: center
}

#testimonials .testimonial-viewport {
    min-width: 0;
    flex: 1;
    overflow: hidden
}

#testimonials .testimonial-track {
    display: flex;
    gap: 16px;
    transition: transform .4s ease;
    will-change: transform
}

#testimonials .testimonial-card {
    box-sizing: border-box;
    flex: 0 0 calc((100% - 32px)/3);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: auto
}

#testimonials .testimonial-card h3 {
    font-size: 20px;
    margin: 0
}

#testimonials .testimonial-card p {
    flex: 1;
    margin: 0
}

#testimonials .testimonial-card small {
    color: #526171
}

#testimonials .example-badge {
    font-size: 11px;
    letter-spacing: .08em;
    color: #19538b;
    font-weight: 800
}

#testimonials .slider-arrow {
    flex: 0 0 35px;
    width: 35px;
    height: 42px;
    cursor: pointer;
    border: 1px solid #cbd6e1;
    border-radius: 8px;
    background: #fff;
    color: #112e48;
    font-size: 20px
}

#testimonials .slider-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 18px
}

#testimonials .slider-dots button {
    height: 9px;
    width: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #a4b1c0;
    cursor: pointer
}

#testimonials .slider-dots button[aria-current=true] {
    background: #125da1;
    width: 23px;
    border-radius: 8px
}

.quote-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: #071522bd;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    overflow: auto
}

.quote-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    width: min(950px, 100%);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 90px #0007
}

.quote-form-panel {
    padding: clamp(20px, 3vw, 38px);
    min-width: 0
}

.quote-form-panel h2 {
    margin: 8px 0 10px;
    color: #112e48
}

.quote-form-panel p {
    font-size: 14px;
    margin: 0 0 14px
}

.quote-form-panel form {
    display: grid;
    gap: 6px
}

.quote-form-panel label {
    font-size: 12px;
    font-weight: 700;
    color: #112e48
}

.quote-form-panel input,
.quote-form-panel textarea,
.quote-form-panel select {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #bdcad5;
    border-radius: 7px;
    background: #fff;
    color: #112e48;
    font: inherit;
    font-size: 14px
}

.quote-form-panel textarea {
    resize: vertical;
    min-height: 66px
}

.quote-form-panel form .btn {
    justify-content: center;
    margin: 8px 0 0
}

.quote-form-panel small {
    font-size: 11px;
    line-height: 1.4
}

.quote-photo {
    background-size: cover;
    background-position: center;
    min-height: 100%
}

.quote-close {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 12px;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #112e48;
    box-shadow: 0 2px 12px #0004;
    cursor: pointer;
    font-size: 25px
}

.floating-contact {
    position: fixed;
    z-index: 990;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px
}

.floating-contact a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background: #112e48;
    box-shadow: 0 3px 12px #0004;
    text-decoration: none
}

.floating-contact a:hover,
.floating-contact a:focus-visible {
    background: #1766a2
}

.quote-overlay-open {
    overflow: hidden
}

@media(max-width:991px) {
    .hero.hero-with-truck .hero-content {
        max-width: 68%
    }

    #projects .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    #testimonials .testimonial-card {
        flex-basis: calc((100% - 16px)/2)
    }
}

@media(max-width:680px) {
    .hero.hero-with-truck {
        background-position: 65% center;
        min-height: unset
    }

    .hero.hero-with-truck:before {
        background: linear-gradient(90deg, #ffffffe6 0%, #ffffff47 100%);
    }

    .hero.hero-with-truck .hero-content {
        max-width: 100%
    }

    .hero.hero-with-truck .hero-layout {
        padding-top: 10px;
        padding-bottom: 10px
    }

    #projects .projects-grid {
        gap: 9px
    }

    #projects .gallery-tile {
        aspect-ratio: 1/1
    }

    #testimonials .testimonial-card {
        flex-basis: 100%
    }

    #testimonials .slider-arrow {
        width: 30px;
        flex-basis: 30px
    }

    .quote-dialog {
        grid-template-columns: 1fr
    }

    .quote-photo {
        min-height: 160px;
        grid-row: 2
    }

    .quote-form-panel {
        padding: 18px
    }

    .floating-contact {
        top: auto;
        bottom: 80px;
        right: 8px;
        transform: none
    }

    .floating-contact a {
        width: 35px;
        height: 35px
    }

    .gallery-lightbox {
        padding: 50px 40px
    }

    .gallery-lightbox img {
        max-width: calc(100vw - 90px);
        max-height: calc(100dvh - 100px)
    }

    .gallery-close {
        right: 10px
    }
}

@media(max-width:360px) {
    #projects .projects-grid {
        grid-template-columns: 1fr
    }

    .floating-contact a {
        width: 32px;
        height: 32px
    }
}

@media(prefers-reduced-motion:reduce) {
    .marquee-track {
        animation: none
    }

    #testimonials .testimonial-track,
    #projects .gallery-tile img {
        transition: none
    }
}