/* Service page banner (service-banner.twig).
   Same look as the Cybersecurity banner (rounded 700px image, text on the left).
   The image fills the box behind the text and the box grows with longer texts
   instead of letting them spill out. The image doesn't size the box, so the 1px
   lazy-load placeholder can't stretch it before the real image loads. */

#banner.service-banner .banner-wrap{
    display: flex;
    min-height: 700px;
    border-radius: 30px;
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.37);
    overflow: hidden;
    isolation: isolate;
    background-color: #323D47; /* shown until the image loads, or if it is missing */
}

#banner.service-banner .banner-img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Darkens the image behind the text, so any image keeps the text readable */
#banner.service-banner .banner-wrap::after{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(34, 44, 53, 0.7) 0%, rgba(34, 44, 53, 0.35) 45%, rgba(34, 44, 53, 0) 75%);
}

#banner.service-banner .card-content{
    position: relative;
    z-index: 1;
    padding-top: 60px;
    padding-bottom: 60px;
}

@media screen and (max-width: 991.98px){
    #banner.service-banner .banner-wrap::after{
        background: rgba(34, 44, 53, 0.45);
    }
}
@media screen and (max-width: 575.98px){
    #banner.service-banner .banner-wrap{
        min-height: 560px;
    }
    #banner.service-banner .card-content{
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* Banner with the enquiry form (.has-form, see service-banner.twig):
   text on the left, form on the right, both over the image.
   The box takes the height of its content instead of the fixed 700px,
   and the image is darkened evenly so the form stays readable on any image. */
#banner.service-banner.has-form .banner-wrap{
    min-height: 0;
}
#banner.service-banner.has-form .banner-wrap::after{
    background: linear-gradient(90deg, rgba(34, 44, 53, 0.8) 0%, rgba(34, 44, 53, 0.55) 50%, rgba(34, 44, 53, 0.5) 100%);
}
#banner.service-banner.has-form .banner-grid{
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 64px 0;
}
#banner.service-banner.has-form .card-content{
    padding: 0 48px 0 80px;
}
#banner.service-banner.has-form .card-content h2{
    margin-bottom: 20px;
}
#banner.service-banner.has-form .banner-form{
    padding: 0 80px 0 24px;
}

/* Phones and tablets: text over the image, form below it on the plain
   dark background, so the fields never sit on a busy part of the image. */
@media screen and (max-width: 991.98px){
    #banner.service-banner.has-form .banner-img{
        object-position: center top;
    }
    #banner.service-banner.has-form .banner-grid{
        padding: 0;
    }
    #banner.service-banner.has-form .card-content{
        padding: 56px 40px 40px;
    }
    #banner.service-banner.has-form .banner-form{
        position: relative;
        background-color: #222C35;
        padding: 32px 40px 40px;
    }
}
@media screen and (max-width: 575.98px){
    #banner.service-banner.has-form .banner-wrap{
        min-height: 0;
    }
    #banner.service-banner.has-form .card-content{
        padding: 40px 24px 32px;
    }
    #banner.service-banner.has-form .banner-form{
        padding: 24px 16px 16px;
    }
}
