
main {
    line-height: 1.5;
}

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

a,
a:focus,
a:hover {
    color: inherit;
}

.btn {
    /* every btns in service pages are uppercase */
    text-transform: uppercase;
    padding-inline: 1.5rem;
}

.btn-black {
    border-color: black;
    background-color: black;
    color: white;
}

.btn-black:focus,
.btn-black:hover {
    background-color: white;
    color: black;
}

.btn-white {
    border-color: white;
    background-color: white;
    color: black;
}

.btn-white:focus,
.btn-white:hover {
    border-color: black;
    background-color: black;
    color: white;
}

.h1,
.h2 {
    font-size: 1.5rem;
    line-height: 1.2;
}

@media screen and (min-width: 768px) {
    .h1,
    .h2 {
        font-size: 1.75rem;
    }
}

.h3 {
    font-size: 1.25rem;
    line-height: 1.2;
}

.youtube {
    aspect-ratio: 560 / 315;
    max-width: 100%;
    height: auto;
}

.container--narrow {
    max-width: 550px;
}

.section_spacer {
    padding-block: 2rem;
}

@media screen and (min-width: 768px) {
    .section_spacer {
        padding-block: 5rem;
    }
}

.bookmark_header {
    padding-top: 4rem;
    padding-bottom: 2rem;
    text-align: center;
    position: relative;
    isolation: isolate;
}
.bookmark_header::after {
    content: "";
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 2rem;
    /* simulating shadow bottom  */
    /* https://non-boring-gradients.netlify.app/ black 50% -> transparent / easeOutQuad */
    background-image: linear-gradient(180deg, rgb(0% 0% 0% / 0.5) 0%, rgb(0% 0% 0% / 0.439453125) 6.25%, rgb(0% 0% 0% / 0.3828125) 12.5%, rgb(0% 0% 0% / 0.330078125) 18.75%, rgb(0% 0% 0% / 0.28125) 25%, rgb(0% 0% 0% / 0.236328125) 31.25%, rgb(0% 0% 0% / 0.1953125) 37.5%, rgb(0% 0% 0% / 0.158203125) 43.75%, rgb(0% 0% 0% / 0.125) 50%, rgb(0% 0% 0% / 0.095703125) 56.25%, rgb(0% 0% 0% / 0.0703125) 62.5%, rgb(0% 0% 0% / 0.048828125) 68.75%, rgb(0% 0% 0% / 0.03125) 75%, rgb(0% 0% 0% / 0.017578125) 81.25%, rgb(0% 0% 0% / 0.0078125) 87.5%, rgb(0% 0% 0% / 0.001953125) 93.75%, rgb(0% 0% 0% / 0) 100% );
}

/*==================================*/
/*========== serviceBanner =========*/
/*==================================*/

.serviceBanner {
    background-position: center;
    background-size: cover;
    color: white;
    text-align: center;
}

.serviceBanner__btnContainer {
    text-align: center;
}

.serviceBanner__btnContainer {
    display: grid;
    gap: 1rem;
}

@media screen and (min-width: 768px) {
    .serviceBanner__btnContainer {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
    }
    .serviceBanner__btnContainer .btn {
        display: grid;
        place-content: center;
    }
}


/*==================================*/
/*=========== serviceCta ===========*/
/*==================================*/
.serviceCta__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 992px) {
    .serviceCta__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.serviceCta__card {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--light);
}

.serviceCta__card--white {
    background-color: white;
}

.serviceCta__card--link {
    --btn-transition: all .5s ease;
    transition: var(--btn-transition)
}

.serviceCta__card--link:focus,
.serviceCta__card--link:hover {
    background-color: black;
    color: white;
}

.serviceCta__card--link img {
    transition: var(--btn-transition);
}

.serviceCta__card--link:focus img,
.serviceCta__card--link:hover img {
    filter: invert();
}

.serviceCta__text {
    text-transform: uppercase;
    font-size: 1rem;
    line-height: 1.2;
}


/*==================================*/
/*========= squaredSection =========*/
/*==================================*/
.squaredSection {
    background-color: var(--bg-color2, #f8f9fa);
    text-align: center;
}
@media screen and (min-width: 768px) {
    .squaredSection {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: dense;
    }
    .squaredSection__img {
        height: 100%;
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    .squaredSection__content {
        place-self: center;
    }
    .squaredSection__content:nth-of-type(2n+1) {
        grid-column: 2 / span 1;
    }
    .squaredSection--reversed .squaredSection__content:nth-of-type(2n+1) {
        grid-column: 1 / span 1;
    }
    .squaredSection--reversed .squaredSection__content:nth-of-type(2n) {
        grid-column: 2 / span 1;
    }
}


/*==================================*/
/*=========== longSection ==========*/
/*==================================*/
.longSection {
    background-color: #343a40;
}

.longSection__content {
    text-align: center;
    background-color: white;
}

.longSection__img {
    display: none;
}

@media screen and (min-width: 767px) {
    .longSection {
        display: grid;
        grid-template-columns: 70% 30%;
        background-color: white;
    }
    .longSection__content {
        place-self: center;
    }
    .longSection__img {
        display: block;
        height: 100%;
        width: 100%;
        object-fit: cover;
    } 
}

