@charset "UTF-8";
/* CSS Document */

* {
	margin: 0;
	padding: 0;
	box-sizing:border-box;
}

body {
	font-family: sans-serif;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: hidden;
}

.header-container {
	display: grid;
	grid-template-rows: 1fr 2fr;
	height: 140px;	
}

.header-top-bar {
	background-color: #4D69B1;
	display: flex;
	gap: .75rem;
	align-items: center;
	justify-content:flex-start;
	padding: 7px 5px 5px 15px;
}

.reviews img{
	width: 20px;
}

.header-bottom-bar {
	background-color:White;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 5px 5px 15px;
	margin-bottom: 10px;
}

.logo {
	display: flex;
	justify-content: flex-start;
	align-content: center;
}

.navigation {
	display: flex;
	justify-content: flex-end;
	align-content: center;
	margin-right: 40px;
}

nav ul {
	display: flex;
	list-style-type: none;
	gap: 1rem;
}

header li a {
    color: black;
    text-decoration: none;
}

header li a:hover {
	color:lightgray;	
}

header li a.active {
	color: #3966C9;	
}

main {
	flex-grow: 1;
}

.background-image-container p {
	text-align: right;
	padding-right: 40px;
	padding-top: 20px;
	padding-bottom: 400px;
	font-style: italic;
	color: darkgray;
	font-size: 1.5rem;
}

.background-image {
	background-image: url("../images/backgroundimage_med.jpg");
	background-repeat: no-repeat;
	background-size:cover;
	opacity: .80;
	background-position: center center;
}

.main-content {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 1fr 3fr 2fr;
	padding: 15px;
}

.roof-experience-container {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	height: min-content;
}

.roofing-experience img {
	object-fit: cover;
	max-width: 100%;
	padding: 15px 15px 15px 15px;
}

.best-roofers {
	padding: 10px;
	font-family:Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
}

.best-roofers h1 {
	font-size: 1.5rem;
	padding-bottom: 5px;
}

.best-roofers p {
 	font-weight:375;
	line-height: 23px;
}

.gutter-clean {
	height: min-content;
	color: #000;
	padding: 20px 20px 20px 20px;
	font-weight:600;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.gutter-image img {
	max-width: 100%;
	object-fit: cover;
}

.gutter-clean p {
	margin-top: 1px;
	font-size: .95rem;
	font-weight:500;
	font-style:italic;
}

/*This is the services Page*/

.sas-page-title {
	font-size: 2rem;
	display: grid;
	grid-gap: 20px;
	max-width: 960px;
	grid-template-columns: 1fr;
	padding: 20px 0px 0px 20px;
	margin: 0px auto 0px auto;
}

.service-areas-container {
	display: grid;
	grid-gap: 20px;
	max-width: 960px;
	grid-template-columns: 1fr 2fr;
	padding: 20px;
	margin: 0px auto 0px auto;
}

.service-areas-container div {
	background: #4D69B1;
	font-size: 1rem;
}

.service-area-list td {
	font-size: .9rem;
	padding: 0px 25px 0px 0px;
}

.service-area-list {
	background-color:#4D69B1;
	padding:20px 20px 20px 20px;
	color: white;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.service-area-list h1 {
	font-size: 1.25rem;
	margin-bottom: 5px;
}

.service-area-list p {
	margin-bottom: 5px;
	font-size: .9rem;
}

.google-map-container {
	position: relative;
	overflow: hidden;
  	width: 100%;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

iframe {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	width: 100%;
	height: 100%;
}
	
.roofing-services-container {
	display: grid;
	grid-gap: 20px;
	max-width: 960px;
	grid-template-columns: repeat(4,1fr);
	padding: 0px 20px 20px 20px;
	margin: 0px auto 0px auto;
}

.roofing-services-container h1 {
	font-size: .95rem;
	font-weight: 600;
	color: #414042;
	padding-bottom: 7px;
}

.roofing-services-container p {
	font-size: .9rem;
	font-style: italic;
	color: #6D6E71;
	line-height: 1.2rem;
}

.new-roof-installtion {
	display: grid;
	alight-items: center;
	justify-items: center;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	padding: 15px;
	justify-content: center;
	text-align: center;
}

.roof-repair {
	display: grid;
	alight-items: center;
	justify-items: center;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	padding: 15px;
	text-align: center;
}

.gutters {
	display: grid;
	alight-items: center;
	justify-items: center;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	padding: 15px;
	text-align: center;
}

.estimate {
	display: grid;
	alight-items: center;
	justify-items: center;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	padding: 15px;
	text-align: center;
}

/*This is the testimonials Page*/

.testimonials-container {
	display: grid;
	grid-gap: 20px;
	max-width: 960px;
	max-height: 600px;
	grid-template-columns: repeat(1,1fr);
	padding: 20px 20px 20px 20px;
	margin: 0px auto 0px auto;
	overflow: auto;
}

.testreviews {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	padding: 20px;
	text-align: left;
	font-size: .8rem;
	line-height: 1.2rem;
}

.testreviews img {
	min-width: 25%;
}

.test-page-title {
	font-size: 2rem;
	display: grid;
	grid-gap: 20px;
	max-width: 960px;
	grid-template-columns: 1fr;
	padding: 20px 0px 20px 20px;
	margin: 0px auto 0px auto;
}

/*This is the contact Page*/

.contact-page {
	width: 75%;
	display: flex;
	justify-content:center;
	flex-wrap: wrap;
	margin: auto;
	gap: 1rem;
}

form {
	flex: 1;
	max-width: 500px;
	background-color: #4D69B1;
	margin-top: 50px;
	padding: 20px;
}

form input,
form textarea {
	width: 100%;
	padding: 10px;
	margin-bottom: 20px;
	border: 1px solid #000;
	outline: none;
	font-size: 1rem;
}

label {
	color: white;
	font-size: 1rem;
	font-weight: 200;
	letter-spacing: .05rem;
}

button {
	background-color: white;
	font-size: 1rem;
	padding: 5px 20px 5px 20px;
	color: black;
}

.contact-info {
	max-width: 300px;
	margin-top: 50px;
	padding: 20px;
	color: #4D69B1;
}

.contact-info p {
	line-height: 25px;
}

.contact-info a {
	text-decoration: none;
	color:#4D69B1;
}

/*This is the footer*/

footer {
	background-color: #4D69B1;
	color: white;
	padding: 10px;
	text-align: center;
	font-size: 1rem;
	font-weight: 350;
	bottom: 0px;
	letter-spacing: .05rem;
}

footer a {
	text-decoration: none;
	color: white;
}

@media (width < 750px) {
	
	.main-content {
	grid-template-columns: none;
	justify-content: center;
}
	
	.testimonials-container {
	max-height: 1200px;
}
	
	.service-areas-container {
	grid-template-columns: none;
	justify-content: center;
}
	
	.roofing-services-container {
	grid-template-columns: none;
	justify-content: center;
}
	
	.background-image {
	height: 30vh;
	}
	
	.background-image p {
		display: none;
	}
	
nav ul {
	display: block;
	background:white;
	position: fixed;
	z-index: 999;
	top: 42px;
	right: 0;
 	height: 40vh;
	margin: 0;
	width: 45%;
	text-align: right;
	padding: 2em;
	transform: translateX(100%);
	transition: transform 0.5s ease-in-out;
	
		li {
			margin: 1em 0;
			
			&:nth-of-type(1) {
				margin-bottom: 2em;
			}
		}
	}
	.open {
		transform: translateX(0%);
		}
}

@media (width >= 750px) {
	.hide-desktop {
		display: none;
	}
}
