/*** Home Services Section ***/
.home-title-link {
    text-decoration: none;
    color: var(--green);
}

.home-title-link:hover {
    text-decoration: underline;
    color: var(--green);
}

.services-item a {
    max-width: 408px;
    width: 100%;
    height: 306px;
    overflow: hidden;
    position: relative;
    display: block;
    margin-inline: auto;
}

.services-item a::before {
    position: absolute;
    top: 100%;
    height: 100%;
    width: 100%;
    background-color: #ffffff9c;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    content: "View More";
    opacity: 0;
    transition: all 0.2s ease-out;
    pointer-events: none;
    z-index: 1;
}

.services-item a:hover::before {
    top: 0;
    opacity: 100%;
}

.services-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.home-certified {
    padding: 0 0 50px 0;
    background-color: white;
    text-align: center;
}

.home-certified > h2 {
    font-size: 36px;
    font-weight: 500;
}

.home-certified > h2 span {
    font-weight: 600;
    color: var(--green);
}

.home-certified > h3 {
    font-size: 16px;
    font-weight: 500;
}

.home-certified-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 32px;
    row-gap: 24px;
    flex-wrap: wrap;
}

.home-certified-row img {
    width: 300px;
    max-width: 80vw;
    height: 200px;
    max-height: calc(0.67 * 80vw);
    object-fit: contain;
}


/*** Home Hero Video Section ***/

.hero-video-content {
    position: relative;
    height: auto;
    min-height: 400px;
    max-height: 860px;
    overflow: hidden;
}

.hero-video-container {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}


.hero-video-overlay {
    position: absolute;
    width: 100%;
    backdrop-filter: brightness(0.75);
    top: 0;
    bottom: 0;
    z-index: 0;
}

.hero-video-container video {
    display: block;
    min-height: 700px;
    width: 100%;
}

.hero-video-row-wrapper {
	position: absolute;
	max-width: 100%;
	width: 100%;
	top: 30%;
}


.hero-video-text {
	width: 100%;
	z-index: 99;
	color: #fff;
	text-align: center;
}

.hero-title {
	font-size: 4.5em;
	color: #05c240;
        font-weight: 700;
}

.hero-title span{
    color: var(--accent-color);
}

.h1-sub-heading {
	margin-top: 15px;
	font-size: 1.82em;
	color: #fff;
	font-weight: 500;
	font-style: italic;
	line-height: 1.3em;
}


/******** Media Queries *********/


@media (max-width: 2000px) {

    .hero-video-container video {
        width: 2400px !important;
    }
}

@media (max-width: 981px) {


    .hero-video-container #bgHeroVideo {
        display: none !important;
    }

    .hero-video-content {
        position: relative;
        height: auto;
        min-height: unset;
        max-height: unset;
        width: 100% !important;
        overflow: hidden;
        background-image: linear-gradient(180deg, rgba(15, 15, 15, .8) 25%, rgba(15, 15, 15, 1) 100%), url(/imageserver/UserMedia/engelmannroofing/hero_bg.webp);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        padding: 80px 25px;
    }

    .hero-video-container {
        min-height: unset;
    }

    .hero-video-overlay {
        display: none;
    }

    .hero-video-row-wrapper {
        position: relative;
        max-width: 100%;
        width: 100%;
        top: 10%;
    }

    .hero-video-text h1 {
        max-width: 100%;
    }

.hero-title {
	font-size: 3.2em;
	color: #05c240;
}

}


.main-image.project-image {
	max-width: 1700px;
}

.main-image.project-image img {
	max-width: 100%;
}

/*** Image Slider ***/
.slider-container {
    width: 100%;
    max-width: 1700px;
    height: auto;
    overflow: hidden;
    position: relative;
}

.slider {
    display: flex;
    width: 200%; /* Twice the width because of duplicated slides */
    height: auto;
    animation: scroll 40s linear infinite; 
}

.slide {
	width: 24.4%;
	flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/*** Keyframes ***/
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-122%); 
    }
}


@media (max-width: 500px) {

.hero-title {
	font-size: 2.5em;
	color: #05c240;
}

.h1-sub-heading {
	font-size: 1.25em;
}
}

/*** Project Of The Month ***/

#potm_section {
    padding: 80px 5%;
    background-color: var(--light-gray);
}
.potm-wrapper {
    max-width: 1450px;
}
.potm-wrapper h2 {
    color: var(--blue);
}
.potm-swiper {
    margin: 45px auto 20px;
}
.potm-swiper .swiper-slide {
    max-width: 500px;
    width: 100%;
    background: #ddd;
}
.potm-swiper .swiper-slide img {
    display: block;
    max-width: 500px;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.potm-swiper .swiper-button-prev,
.potm-swiper .swiper-button-next {
    color: #fff !important;
}
.potm-swiper .swiper-button-prev::after,
.potm-swiper .swiper-button-next::after {
    font-size: 25px !important;
    font-weight: 800;
}
.swiper-pagination-bullet {
    width: 15px !important;
    height: 15px !important;
}
.swiper-pagination-bullet-active {
    background-color: var(--blue) !important;
}

.potm-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background-color: #f2f4f8;
    border: 5px solid #f2f4f8;
    border-radius: 5px;
    background-image: url(/imageserver/UserMedia/engelmannroofing/zoom_in_icon.svg);
    background-size: cover;
    background-position: center;
}

/*** GAF Coating Pro ***/

#gaf_coat_section {
    padding-top: 0;
    transform: translateY(-35px);
    margin-bottom: -35px;
}
.gaf-coat-wrapper {
    display: flex;
    align-items: center;
    max-width: 1400px;
    gap: 5%;
    box-shadow: 0 4px 14px rgba(5, 5, 5, .1);
    border-radius: 20px;
    padding: 50px 30px;
    background-color: #f2f4fc;
}
.gaf-coat-logo {
    width: 30%;
}
.gaf-coat-logo img {
    display: block;
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 20px auto;
}
.gaf-coat-content {
    width: 70%;
    text-align: left;
}
.gaf-coat-content p {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.3em;
    text-align: left;
    margin: 20px auto;
    padding-left: 15px;
    border-left: 3px solid var(--green);
}
.gaf-coat-content .gaf-coat-large {
    font-size: 1.15em;
    display: block;
    line-height: 1.15em;
    margin-bottom: 8px;
    font-weight: 800;
    font-style: italic;
}
.gaf-coat-content .gaf-coat-highlight-title {
    font-weight: 800;
    color: var(--blue);
}
.gaf-coat-content .gaf-coat-highlight-year {
    font-weight: 800;
    color: var(--gray);
}

@media (max-width: 1024px) {
    .gaf-coat-wrapper {
        flex-direction: column;
    }
    .gaf-coat-logo,
    .gaf-coat-content {
        width: 100%;
    }
    .gaf-coat-logo img {
        max-width: 235px;
    }
    .gaf-coat-content p {
        position: relative;
        text-align: center;
        padding-top: 25px;
        padding-left: 0;
        border-left: none;
    }
    .gaf-coat-content p::before {
        content: "";
        position: absolute;
        top: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 3px;
       background-color: var(--green);
    }
}

@media (max-width: 750px) {
    .gaf-coat-content p {
        font-size: 1.25rem;
    }
}

/*** Celebrating 50 Years Pop Up ***/

.pop-up-wrapper {
    position: fixed;
    background-color: #f2f4f8;
    max-width: 700px;
    width: 90%;
    margin: 0;
    padding: 40px 5%;
    border-radius: 20px;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    z-index: -1;
    text-align: center;
    transition: top .33s, opacity .33s, z-index 0s .33s;
}
.pop-up-wrapper + .backdrop {
    content: "";
    position: fixed;
    inset: 100% 0 0;
    background-color: rgba(0, 0, 0, .75);
    backdrop-filter: blur(5px);
    opacity: 0;
    z-index: 9999;
    transition: opacity .33s, top 0s .33s;
}
.pop-up-content {
    overflow: scroll;
    height: 100%;
}
.pop-up-content .pop-up-icon {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 20px auto;
    animation: iconBounce 2s ease-in-out infinite;
}
@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.pop-up-content h2 {
    font-weight: 800;
    line-height: 1.15em;
}
.pop-up-content .text-highlight {
    color: var(--green);
}
.pop-up-content .pop-up-years {
    background-color: #e4e6ed;
    border: 1px solid #d4d6dd;
    width: fit-content;
    margin: 20px auto 35px;
    padding: 5px 25px;
    border-radius: 25px;
    font-weight: 800;
    color: #111;
    font-size: 1.05rem;
}
.pop-up-content p {
    font-size: .95rem;
    margin-block: 20px;
}

.pop-up-wrapper-show {
    top: 60px;
    opacity: 1;
    z-index: 99999;
    transition: top .33s, opacity .33s;
}
.pop-up-wrapper-show + .backdrop {
    top: 0;
    opacity: 1;
    transition: opacity .33s;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: #d2d4da;
    border: 1px solid transparent;
    border-radius: 10px;
    z-index: 1;
    transition: background-color .33s, border-color .33s;
}
.close-btn:hover,
.close-btn:focus {
    background-color: #e2e4ea;
    border-color: #111;
}
.close-btn::before,
.close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 3px;
    background-color: #111;
}
.close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 480px) {
    .pop-up-content .pop-up-icon {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .pop-up-wrapper {
        padding-inline: 20px;
    }
}