/* =========================================================
   extraplast.css - project overrides (customizable layer)
   Loaded AFTER custom.css in body.php. Additive only.
   ========================================================= */

/* --- Servis plastových okien: intro block with photo --- */
.service-intro-with-photo {
    margin-top: 50px;
    margin-bottom: 40px;
}
.service-intro-with-photo figure {
    margin: 0 0 28px;
    border-radius: 20px;
    overflow: hidden;
}
.service-intro-with-photo figure img {
    width: 100%;
    height: auto;
    display: block;
}
.service-intro-with-photo p {
    margin-bottom: 18px;
}
.service-intro-with-photo .about-us-btn {
    margin-top: 6px;
}

/* "Kedy potrebujete servis" - checklist karty (2-stĺpcový grid) */
.service-single-content .service-solutions-box > ul {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.service-single-content .service-solutions-box > ul li {
    position: relative;
    margin: 0;
    padding: 20px 22px 20px 56px;
    background: #fff;
    border: 1px solid #e7e9f0;
    border-radius: 14px;
    font-weight: 500;
    color: #545454;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(4, 34, 69, 0.04);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.service-single-content .service-solutions-box > ul li:hover {
    box-shadow: 0 14px 34px rgba(4, 34, 69, 0.09);
    transform: translateY(-3px);
    border-color: #c9d6f7;
}
.service-single-content .service-solutions-box > ul li::before {
    content: "\f058"; /* fa circle-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 19px;
    color: #025BDE;
    font-size: 18px;
    line-height: 1.5;
}
.service-single-content .service-solutions-box > ul li strong,
.service-single-content .service-solutions-box > ul li b {
    color: #042245;
    font-weight: 700;
}
@media (max-width: 767px) {
    .service-single-content .service-solutions-box > ul {
        grid-template-columns: 1fr;
    }
}

/* lead CTA footer (button + phone box) keeps theme look but wraps nicely */
.service-single-content .about-us-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 36px;
    margin: 28px 0 0;
}
/* tight, aligned phone contact box (like the theme design) */
.service-single-content .about-contact-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.service-single-content .about-contact-box .icon-box {
    margin-right: 0;
    flex: 0 0 auto;
}
.service-single-content .about-contact-box-content p {
    margin: 0 0 2px;
}
.service-single-content .about-contact-box-content h3 {
    margin: 0;
    line-height: 1.2;
}

/* --- Why-choose Extraplast section spacing on this page --- */
.section-servis-why {
    padding: 90px 0;
}
.section-servis-why .why-choose-counter-box {
    justify-content: center;
    margin-top: 10px;
}

/* --- Trust scroller (pásik dôvery pod CTA) --- */
.trust-scroller {
    margin-top: 38px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.trust-track {
    display: flex;
    width: max-content;
    animation: trust-scroll 30s linear infinite;
    will-change: transform;
}
.trust-scroller:hover .trust-track { animation-play-state: paused; }
.trust-set { display: flex; flex: 0 0 auto; }
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #042245;
}
.trust-item i { color: #025BDE; font-size: 19px; }
.trust-item::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #025BDE;
    opacity: 0.35;
    margin: 0 32px;
}
@keyframes trust-scroll {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .trust-track { animation: none; }
}

/* --- Benefits grid (6 trust cards) --- */
.servis-benefits-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.servis-benefits-box .benefit-item {
    width: auto;
    background: #fff;
    border: 1px solid #ececf1;
    border-radius: 20px;
    padding: 30px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.servis-benefits-box .benefit-item::before { display: none; }
.servis-benefits-box .benefit-item:hover {
    box-shadow: 0 18px 40px rgba(4, 34, 69, 0.08);
    transform: translateY(-4px);
}
.servis-benefits-box .benefit-item .icon-box {
    display: none; /* benefity bez ikon - nemáme ikonu ku každej položke */
}
.servis-benefits-box .benefit-item .icon-box img {
    max-width: 34px;
    height: auto;
}
.servis-benefits-box .benefit-item-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #042245;
}
.servis-benefits-box .benefit-item-content p {
    margin: 0;
    color: #545454;
}

/* --- Bonus box (+ZADARMO) --- */
.servis-bonus-box {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 28px 34px;
    background: #fff8e1;
    border: 1px solid #f3d98a;
    border-radius: 20px;
}
.servis-bonus-badge {
    flex: 0 0 auto;
    display: inline-block;
    padding: 10px 18px;
    background: #f5b301;
    color: #042245;
    font-weight: 700;
    border-radius: 50px;
    white-space: nowrap;
}
.servis-bonus-content h3 {
    font-size: 20px;
    margin: 0 0 6px;
    color: #042245;
}
.servis-bonus-content p {
    margin: 0;
    color: #5a4a17;
}

/* --- Final CTA --- */
.servis-final-cta {
    padding: 90px 0;
}
.servis-final-cta .section-title h2,
.servis-final-cta .section-title p {
    color: #fff;
}
.servis-final-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.servis-final-cta-contact p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.servis-final-cta-contact p a {
    color: #fff;
}
.servis-final-cta-contact p a:hover {
    color: #f5b301;
}

/* --- Active state in services sidebar nav --- */
.page-catagery-list ul li.active > a {
    font-weight: 700;
    color: #025bde;
}

/* --- Scroll to top (progress ring) --- */
.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 80px;
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 26px rgba(4, 34, 69, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .25s ease;
    z-index: 9990;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top.is-visible:hover { transform: translateY(-5px); background: #025BDE; }
.scroll-top svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scroll-top svg path { fill: none; stroke: #025BDE; stroke-width: 6; transition: stroke-dashoffset .1s linear, stroke .25s ease; }
.scroll-top i { position: relative; color: #025BDE; font-size: 17px; transition: color .25s ease; }
.scroll-top:hover i { color: #fff; }
.scroll-top:hover svg path { stroke: #fff; }
@media (max-width: 575px) {
    .scroll-top { right: 16px; bottom: 66px; width: 46px; height: 46px; }
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .servis-benefits-box {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .servis-benefits-box {
        grid-template-columns: 1fr;
    }
    .servis-final-cta-actions {
        flex-direction: column;
    }
}
