
/*
===============
Hero
===============
*/
/* underline added to globals */

.hero .underline{
    margin-bottom: 0.5rem;
    margin-left: 0;
}

.hero-img {
    /* hide image on small screen */
    display: none;
}

.hero{
    background: var(--clr-primary-9);
}

.hero-center{
    min-height: calc(100vh - 5rem);
    display: grid;
    place-items: center;

}
.hero-info{
    display: none;
}

.hero-info h4{
    color: var(--clr-grey-5);
}

.hero-icons{
    justify-items: start;
}

.hero-btn{
    margin-top: 1.25rem;
}

.hero-info-small-screen h1{
    font-size: 2.65rem;
}


@media screen and (min-width: 992px){
    .hero-info{
        display: block;
    }
    .hero-info-small-screen{
        display: none;
    }
    .hero{
        background: var(--clr-white);
    }



}




/* Slideshow container */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    /*padding-top: 50px;*/

}

/* Hide the assets by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;

}

.active, .dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.dot-circles{

    position: absolute;
    margin-top: -60px;
    left: 600px;
    bottom: 150px;
    z-index: 1;

}

.slideshow-container{

    height: 500px;

}

.slide-show-pic{
    width: 100%;

    padding-top: 50px;


}

/*
===============
About
===============
*/


/* section title added to globals */
/* small screen style */
.about-title{
    text-align: left;
    margin-bottom: 2rem;
}

.about-title .underline{
    margin-left: 0;
}

.about-center{
    display: grid;
    gap: 3rem 2rem; /* gap btn row , column */
}

.about-img{
    justify-self: center;
}

@media screen and (min-width: 992px) {
    .about-center{
        grid-template-columns: 1fr 1fr;
    }

    .about-img{
        position: relative;
    }
    /* overiding some styling  */

    .about-img::before{
        left: -2rem;
    }
    .about-info{
        align-self: center;
    }
    /* background box behind image */
    /* combined with about section */
    .about-img::before{
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border: 0.25rem solid var(--clr-primary-5);
        top: 2rem ;
        right: -2rem;
        border-radius: var(--radius);

    }
}
.about-photo{
    max-width: 25rem;
    max-height: 30rem;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: var(--radius);
    position: relative;
}
/*
===============
Services
===============
*/
/* small screen layout setup */
/* bg-grey in globals */

/*
we chose to use margins and padding not grid
to ensure that at least on the users phone that do not support css grid, our content will be displayed

*/
.service{
    background: var(--clr-white);
    padding: 3rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.service-icon{
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service .underline {
    width: 3rem;
    height: 0.12rem;
    transition: var(--transition);
}

.service p{
    transition: var(--transition);
}

.service:hover{
    background: var(--clr-primary-6);
    color: var(--clr-white);
}
/* overiding the specificity that we set in our global variables */
.service:hover p {
    color: var(--clr-white);
}
.service:hover .underline {
    background: var(--clr-white);
}

.services-btn{
    /* reminder that it is a block item, hence we are able to do this */
    text-align: center;
}

@media screen and (min-width: 676px){
    .services-center{
        display: grid;
        grid-template-columns: 1fr 1fr;
        -moz-column-gap: 2rem;
        column-gap: 2rem;
    }
}

@media screen and (min-width: 992px){
    .services-center{

        grid-template-columns: repeat(3,1fr);

    }
}


/*
===============
Meet the Boss
===============
*/


.mechanic-img {
    /* hide image on small screen */
    display: none;


}


.mechanic{
    background: var(--clr-primary-10);
}

.mechanic-center{
    min-height: calc(100vh - 5rem);
    display: grid;
    place-items: center;
}

.about-header{
    display: flex;
    padding: 2rem 0;

    justify-content: space-between;
    align-items: center;
}

.mechanic-photo-mini{

    border-radius: 50%;


}

.mechanic-info h4,p,h5{
    color: var(--clr-grey-3);
}
.mechanic-info p, h1{
    padding-right: 1rem;
}

.about-header-subtitle{

    padding-left: 2rem;

}


@media screen and (min-width: 712px){
    .mechanic-img{
        display: block;
        position: relative; /* we have set this element relative to its parent, the ::before element we introduced */
    }
    .mechanic-center{
        grid-template-columns: 1fr 1fr;
    }

    .mechanic-img-mini{
        display: none;
    }
    .about-header-subtitle{

        padding: 0;

    }

    /* background box behind image */
    /* combined with about section */
    .mechanic-img::before{
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border: 0.25rem solid var(--clr-primary-5);
        top: 2rem ;
        right: -2rem;
        border-radius: var(--radius);

    }
}
.mechanic-photo{
    max-width: 25rem;
    max-height: 30rem;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: var(--radius);
    position: relative;
}


/*
===============
Location
===============
*/

.location{
    background: var(--clr-grey-10);
}

/* section title added to globals */
/* small screen style */
.location-title{
    text-align: left;
    margin-bottom: 2rem;
}

.location-title .underline{
    margin-left: 0;
}

.location-center{
    display: grid;
    gap: 3rem 2rem; /* gap btn row , column */

}

.location-iframe{
    justify-self: stretch;
    transition: var(--transition);

}

.location-iframe:hover{
    transform: scale(1.1);

}

.location-map{
    width: 100%;

}

@media screen and (min-width: 992px) {
    .location-center{
        grid-template-columns: 1fr 2fr;
    }


}

