@media (max-width: 1220px) {
}

@media (max-width: 1140px) {
    .contact-text, .contact hr, .intro p, .intro hr {
        width: 90%;
    }
}

@media (max-width: 1080px) {
    #hide-contact {
        text-decoration: none;
    }

    .mobile-buttons {
        display: flex;
        width: 75%;
        flex-direction: row;
        justify-content: left;
    }

    .contact {
        display: none;
    }

    #_email, #_phone {
        width: 35%;

    }

    #_email:hover, #_phone:hover {
        box-shadow: none;
        transform: none;
    }

    #nav-about, #nav-contact {
        display: none;
        visibility: hidden;
    }

    .nav-links {
        justify-content: space-evenly;
    }

    .about {
        display: none;
        visibility: hidden;
    }

    .contact-header, .contact-text, .contact hr, .intro p, .intro hr {
        width: 75%;
    }


    .services-grid {
        padding: 1em .5em 0 .5em;
    }

    .services-item {
        margin: 0 2em;
        height: 33vh;

    }
    
    .services-text {
        width: 60%;
        margin-top: -1em;
        padding-left: .5em;
    }

    
}

@media (max-width: 950px) {
    .services-grid {
        grid-template-columns: auto;
    }
    #reverse {
        flex-direction: row-reverse;  
    }
    #forward {
        flex-direction: row;
    }

    .services-item {
        height: 100%;
        justify-content: space-evenly;  
    }

    .services-text {
        margin-top: 3em;
        width: 30vw;
        line-height: 1.5em;
    }

    .services-grid img {
        width: 30vw !important;
        margin-top: 2em;
        width: auto;  
    }

}

@media (max-width: 900px) {
    /* Shrinks navbar, hides links, shows HB menu */
    main {
        margin-top: -2vh;
    }
    
    #logo {
        scale: .75;
        max-height: 10vh;
    }

    /* Introduction section */

    .intro {
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    
}

@media (max-width: 760px) {

    .mobile-buttons {
        width: 100%;
        justify-content: center;
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        max-height: 10vh;
    }

    .nav-links {
        display: none;
        visibility: hidden;
    }

    /* HB styles */

    .hamburger-wrapper {
		position: relative;
        display: block;
        visibility: visible;
		width: 100%;

	}

    .hamburger {
		height: 100%;
		width: 80px;
		margin-left: auto;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 6px;
		align-items: center;
		background-color: rgb(242,240,239);
		padding: 15px 0;

	}

	.hamburger div {
		background-color: darkslategray;
		width: 38px;
		height: 4px;
		border-radius: 5px;
	}

	.hamburger-links {
		display: flex;
		pointer-events: none;
		visibility: hidden;
		position: absolute;
		right: 0;
		top: 10vh;
		background-color: rgba(242,240,239,0.98);
		margin: auto;
		align-items: center;
		justify-content: center;
		border-bottom-left-radius: 5px;
		transition: all 0.3s ease-in-out;
		transform: scale(0);
		opacity: 0;
		transform-origin: top right;
		text-transform: capitalize;
	}

	.hb-nav {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 250px;
	}

	.hamburger-links h4 {
		font-size: 24px;
		padding: 6px 0;
		text-transform: uppercase;
		margin: 0;
        color: darkslategray;
        font-family: 'Fjalla One', Arial, sans-serif;
		padding-top: 30px;
		letter-spacing: 3px;
	}

	.bottom-border {
		border-bottom: 1px solid darkslategray;
	}

    .top-border {
        border-top: 1px solid darkslategray;
    }

	.hamburger-links a {
		text-decoration: none;
		text-align: center;
		width: 90%;
		color: darkslategray;
		display: block;
		font-family: Helvetica;
		font-size: 18px;
		padding: 20px 10px;
	}

    /* HB animation styles */

	#toggle:checked ~ .hamburger-links {
		visibility: visible;
		pointer-events: auto;
		transform: scale(1);
		opacity: 1;
	}

	#toggle:checked ~ .hamburger #hb-row-1 {
		transform: translateY(10px) rotate(45deg);
	}

	#toggle:checked ~ .hamburger #hb-row-2 {
		opacity: 0;
		transform: scaleX(0);
	}

	#toggle:checked ~ .hamburger #hb-row-3 {
		transform: translateY(-10px) rotate(-45deg);
	}

	.hamburger div {
		transition: all 0.3s ease-in-out;
		position: relative;
	}

    .services-grid img {
        align-self: center;
    }
    .services-text {
        width: 80%;
        align-self: center;
    }

    .faq-main {
        grid-template-columns: auto;
        margin-top: 10vh;
        padding: 2em 0;
    }

    .faq-info {
        width: 100%;
        padding: 2em;
        justify-self: center;
    }

    .faq-img {
        width: 36%;
        height: auto;
        margin: auto;
        margin-bottom: 2em;
        border-radius: 50px;
    }

    .faq-main h1, .faq-main h1 hr {
        text-align: center;
        margin: auto;
        width: 100%;

    }

}

@media (max-width: 700px) {
    .intro p, .intro hr {
        width: 100%;
    }

    .intro {
        background-image: url('./content/images/splash2.jpg'), linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, .8), rgba(0, 0, 0, .5));
    }

    .contact-text, .contact hr, .contact-buttons {
        width: 96%;
    }

    .contact {
        background-image: url('./content/images/splash.jpeg'), linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, .8), rgba(0, 0, 0, .5));
    }
}

@media (max-width: 640px) {
    html {
        overflow-x: hidden;
    }

    .intro {
        background-image: url(./content/images/splash2.jpg), linear-gradient(to right, rgba(47, 47, 47, 0.9), rgba(47, 47, 47, 0.8), rgba(47, 47, 47, 0.5));
        background-blend-mode: darken;
        background-attachment: scroll;
    }

    .contact {
        display: none;
        visibility: hidden;
    }

    .services-grid {
        display: grid;
        grid-template-columns: auto;
    }
    
    .services-item, .services-item.reverse, #reverse, #forward {
        display: grid;
        grid-template-columns: auto;
        align-items: center;
        margin: 0;
        max-height: 70vh;
        overflow: hidden;
    }

    .services-item ul, .services-item h3 {
        padding-left: 1em;
    }

    .services-item img {
        width: 58% !important;
        margin: auto;
        order: 1;
    }

    .services-text {
        padding-bottom: 0;
        order: 2;
        margin: auto;
        
    }

    .hide_under_600 {
        visibility: hidden;
        display: none;
    }

    .contact {
        margin: 0;
        padding: 0;
        background-color: tan;
        background-image: none;
    }

    .contact hr, .contact-header {
        width: 80%;
        float: none;
        margin: auto;
    }

    .contact-text {
        padding: 1.4em;
        width: 98%;
        margin: auto;
        color: darkslategray;
    }

    .section-header {
        text-align: center;
        margin: auto;
    }

    #_email, #_phone {
        color: white;
    }

}