/* Base Styles ------- */

@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

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

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #666;
}

a {
  text-decoration: none;
  color: #b93211;
}

p {
  padding: 0.75rem 0;
}

h2 {
  margin-bottom: 0.75rem;
}

input::placeholder,
textarea::placeholder {
  font-family: 'Roboto', sans-serif;
}

/* Utility Classes ----------------- */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
  overflow: hidden;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: #b93211;
}

.lg-heading {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.md-heading {
  font-size: 2rem;
}

.lead {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: #b93211;
  padding: 10px 25px;
  color: #fff;
  font-size: 1rem;
  border-radius: 5px;
  /* to remove the border if we add this class to a button */
  border: none;
}

.btn:hover {
  background: #84230c;
  transition: all 0.3s;
}

.btn.bg-light:hover {
  color: #fff;
  background: #84230c;
  transition: all 0.3s;
}

.bg-dark {
  background: #333;
  color: #fff;
}

.bg-light {
  background: #fff;
  color: #666;
}

.bg-primary {
  background: #b93211;
  color: #fff;
}

.py-1 { padding: 1rem 0;}
.py-2 { padding: 2rem 0;}
.py-3 { padding: 3rem 0;}

.p-1 { padding: 1rem;}
.p-2 { padding: 2rem;}
.p-3 { padding: 3rem;}

.list {
  list-style: none;
  margin: 0.5rem 0;
}

.list li {
  padding: 0.5rem 0;
  border-bottom: #666 dotted 1px;
}

/* Navbar ----------------------- */

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  color: #666;
  /* Make the navbar stickyto the top and always over the top of everything else */
  position: sticky;
  top: 0;
  z-index: 1;
  /* padding around the navbar container */
  padding: 1rem;
}

#navbar #logo-img {
  width: 120px;
}

#navbar h1 {
  align-items: center;
}

#navbar ul {
  display: flex;
  align-items: center;
  margin-left: auto;
  list-style: none;
  text-align: center;
}

#navbar ul li a {
  color: #666;
  padding: 0.75rem;
  margin: 0 0.25rem;
  text-align: center;
}

#navbar ul li a:hover {
  color: #b20710;
  transition: all 0.3s;
}

#navbar ul li:last-of-type a {
  color: #b20710;
}

/* Header with showcase img ---------------- */

#showcase {
  /* relative path is from within the css folder */
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../img/roofing-hero.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  /* X and Y */ 
  background-position: 50% 48%;
  height: 55vh;
  color: #fff;
}

.showcase-content {
  display: flex;
  flex-direction: column;
  /* column layout so centers horizontally (cross axis) */
  align-items: center;
  /* column layout so centers vertically (main axis) NEEDS HEIGHT TO WORK */
  height: 100%;
  justify-content: center;
  text-align: center;
}

#showcase p {
  max-width: 700px;
}

.showcase-content .btn {
  font-size: 1.2rem;
}

/* Section: Services ------------------- */

#services .flex-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

#services .item {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 1rem;
}

#services i {
  margin: 1rem 0;
  background: #b20710;
  color: #fff;
  /* create background circles and center icons using flex */
  height: 4rem;
  width: 4rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Section: About Us ------------------- */

#about {
  display: flex;
}

#about .about-img,
#about .about-info {
  flex-basis: 50%;
}

#about .about-img {
  background: #333 url('../img/about-image-flat-roof.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Section: Portfolio ------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 2rem;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
}

/* Section: Contact -------------------- */

#contact {
  display: flex;
}

#contact .contact-form,
#contact .map {
  width: 50%;
}

#contact .contact-form .form-group {
  margin: 0.75rem 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 5px;
  border: none;
}

#contact input[type="submit"] {
  margin-top: 1rem;
}

/* Google Map -------------- */

.map {
  overflow: hidden;
  padding-bottom: 70%;
  position: relative;
  height: 0;
}

.map iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}

/* Footer ---------------- */
footer .container {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
}

footer .social {
  font-size: 1.2rem;
  font-weight: bold;
}

footer .social-wrapper i {
  padding-left: 0.5rem;
}

footer p {
  font-size: 0.9rem;
  padding: 0.2rem;
}
footer a {
  color: #b93211;
}
