/* ==========================================================
   Layout fixes (issues sheet: "Issues and comparison")
   Loaded after every other stylesheet on all pages.
   ========================================================== */

/* 1 / 2 — Hero slider: buttons sit in one wrapping group */
.hero-btns-layer{white-space:normal!important}
.hero-btns{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.hero-btns .hero-btn{
    display:inline-block;padding:16px 30px;font-size:13px;line-height:1.3;
    letter-spacing:.4px;white-space:normal;text-align:center;text-decoration:none;
    color:#fff!important;font-family:'Roboto Slab',serif;font-weight:700;border-radius:30px;
    transition:background .2s,color .2s
}
.hero-btns .hero-btn:hover{background:#fff;color:#6b80ad!important}
.hero-btns .hero-eye img{display:block;width:56px;height:auto}
@media (max-width:767px){
    .hero-btns{gap:8px}
    .hero-btns .hero-btn{padding:10px 18px;font-size:12px}
    .hero-btns .hero-eye img{width:44px}
    #rev_slider_116_1 .tparrows{display:none!important}
}

/* 2 — Top contact bar on small screens: centred, evenly spaced */
@media (max-width:767px){
    .topbar .container{display:block;width:100%;padding:0 16px}
    .topbar .top-info{
        display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
        gap:8px 18px;padding:10px 0;float:none
    }
    .topbar .top-info .social-network{
        order:-1;flex-basis:100%;display:flex;justify-content:center;gap:10px;
        float:none!important;margin:0 0 2px!important
    }
    .topbar .top-info .social-network li{margin:0}
    .topbar .top-info .info{float:none;margin:0;display:inline-flex;align-items:center;white-space:nowrap}
    .topbar .top-info .info i{margin-right:6px}
    .topbar .top-info .info strong{margin-right:0}
    .topbar .top-info .info img{max-height:14px;width:auto}
}

/* 2.1 / 6 / 6.1 — Restore side gutters on phones & tablets
   (style.css sets .container{padding:0}, so rows' -15px margins hit the screen edge) */
@media (max-width:991px){
    .container,
    .block .container{padding-left:15px;padding-right:15px}
}

/* 2.1 — News strip: keep "Previously in the News" inside the box, no empty band */
#news-text.gardener{padding:25px 0}
#news-text .news-link{overflow:hidden;padding-top:6px}
#news-text .news-link a{float:right;padding-right:4px}
@media (max-width:767px){
    #news-text.gardener p{font-size:17px;line-height:30px}
    #news-text.gardener p img{max-width:120px;height:auto;vertical-align:middle;margin-right:4px}
    #news-text .news-link a{float:none;display:block;text-align:right;font-size:15px}
}

/* 3 / 3.1 / 3.2 / 4 — Content images never wider than their column */
section [class*="col-"] img,
.block [class*="col-"] img{max-width:100%;height:auto}
.rev_slider img,
.rev_slider_wrapper img,
.owl-carousel .owl-item img.no-fit{max-width:none}

@media (max-width:991px){
    /* floated side images stack and centre instead of sitting indented */
    .para-right-img,
    .para-left-img,
    section [class*="col-"] img.pull-right,
    section [class*="col-"] img.pull-left{
        float:none!important;display:block;margin:10px auto 20px!important
    }
}

/* 5 — "Free Scan" button stays inside its column */
.main_row{flex-wrap:wrap;align-items:center;gap:10px 0}
#col_b{display:flex;justify-content:center}
#col_b .btn{max-width:100%;white-space:normal;text-align:center;margin-top:0}
@media (max-width:767px){
    #col_a,#col_b{width:100%}
    #col_b{justify-content:flex-start;margin-bottom:20px}
}

/* 7 — Popups (pricing / preview slides / sample policy / video / team bios) */
.modal-content{max-width:100%}
.modal-content img,
.modal-content video,
.popup-inner img{max-width:100%;height:auto}
.modelvideo .modal-body video{display:block;width:100%}
.plan ul li{overflow-wrap:anywhere}

@media (max-width:991px){
    /* Bootstrap modals (pricetable variant is shifted -140px with position:absolute) */
    .modal-dialog,
    .modal-dialog.modal-lg{width:auto;max-width:720px;margin:20px auto;padding:0 12px}
    .modal-content,
    .modal-content.pricetable{
        position:relative!important;left:0!important;
        width:100%!important;margin:0 auto!important
    }
    .modal-content.pricetable .pricing-tables{padding:12px}
    .modal-content.pricetable .pricing-tables .row{margin-left:0;margin-right:0}
    .modal-content.pricetable .pricing-tables [class*="col-"]{padding-left:0;padding-right:0}
    .plan{margin:10px 0}
    .plan .head h2{font-size:22px;line-height:1.3}
    .plan ul{padding:14px}
    .plan ul li{font-size:13px;line-height:20px}

    /* site video popup (.modal-overlay > .modal-content, fixed 700px) */
    .modal-overlay,.video-overlay{padding:12px;overflow-y:auto}
    .modal-overlay .modal-content{width:100%!important;margin:40px auto!important}
    .modelvideo .modal-body iframe{width:100%;height:auto;aspect-ratio:16/9}

    /* About Us team bio popups (fixed 480/680px) */
    .popup-inner,
    .popup-inner.team1,.popup-inner.team2,.popup-inner.team3,
    .popup-inner.team4,.popup-inner.team5,.popup-inner.team6{
        width:calc(100% - 24px);max-width:680px;margin:24px auto
    }
    .popup-form{padding:24px 20px}
    .popup-inner .teamcloser{left:auto;margin:-14px -8px 0 auto;width:40px}
}

/* Extra (found while testing): long CTA buttons wrap instead of overflowing on phones */
@media (max-width:767px){
    a.btn.martop30{white-space:normal;max-width:100%;line-height:1.4}
}

/* Homepage hero sits in a .row without a .container — cancel the -15px gutters */
.block.no-padding .row{margin-left:0;margin-right:0}
.block.no-padding .row > .col-md-12{padding-left:0;padding-right:0}
#news-text .sponsor p{padding:0 6px}
