/* Table of Contents
--------------------------------------------------------------------------------------------
- 1) Color Variables
- 2) Elements
- 3) Typography
- 4) Navigation
- 5) Page Layout
- 6) Heroes
- 7) Partners
- 8) Services
- 9) Forms
- 10) Media Queries
----------------------------------------------------------------------------------------- */

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

/* 1) Color Variables
----------------------------------------------------------------------------------------- */
:root {
  --bg-default: #f5f5f5;
  --bg-content: #fff;
  --bg-nav: #B13332;
  --bg-nav-rollover: #84201B;
  --co-border: #c0c0c0;
  --co-default: #333;
  --co-nav: #f5f5f5;
  --co-footer: #444;
  --co-footer-h3: #B13332;
  --co-default-red: #B2252C;
  --co-default-blue: #0370AA;
  --co-default-blue-h3: #0C70AB;
}

/* 2) Elements
----------------------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

a {
  color: var(--bg-nav);
}

html, body {
  overscroll-behavior-y: none;
}

body {
  background: var(--bg-default);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

i {
  margin-right: .5rem;
}

img {
  border: none;
  max-width: 100%;
  display: block;
}

img.logo {
  width: 400px;
}

/* 3) Typography
----------------------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
p {
  margin: 0 0 1.6rem 0;
}

p:first-of-type {
	margin-bottom: 0;
	padding-bottom: 0;
}

p:first-of-type.margin-bottom {
  margin-bottom: 1.6rem;
}

p:last-child {
  margin-bottom: 0;
}

h2 {
	text-align: center;
}

h3 {
  color: var(--co-footer-h3);
  letter-spacing: .5px;
}

h5 {
	background-color: var(--bg-nav);
	color: var(--co-nav);
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: .5px;
	line-height: 1.2;
	margin: 0 0 1.5rem 0;
	padding: 2rem;
	text-align: center;
}

/* 4) Navigation
----------------------------------------------------------------------------------------- */
nav {
  background-color: var(--bg-content);
  text-align: right;
}

nav ul {
  list-style: none;
  list-style-image: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  display: inline-block;
  color: var(--co-nav);
  font-size: 1.25rem;
  letter-spacing: .5px;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
}

.close-nav {
  border: 0;
  background: 0;
  color: var(--co-nav);
  font-weight: 700;
  font-size: 3rem;
  cursor: pointer;
  padding: 0 1rem;
  position: absolute;
  top: 0;
  right: 0;
}

.open-nav {
  border: 0;
  background: var(--bg-content);
  color: var(--bg-nav);
  cursor: pointer;
  padding: .5rem 1rem;
  margin-left: auto;
  font-size: 2.5rem;
}

.nav {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 100%;
  transform: translateX(0);
  transition: transform 250ms;
}

.nav-list {
  background: var(--bg-nav);
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
}

.navigation-open {
  transform: translateX(-100%);
}

@media (min-width: 720px) {

  nav {
    background-color: var(--bg-nav);
    color: var(--co-nav);
    padding: 1em;
    text-align: center;
    position: sticky;
    top: 0;
  }
  
  nav ul li {
    border-left: solid 1px var(--co-nav);
    display: inline-block;
    line-height: 1.4;
    margin: 0 .25em;
    vertical-align: middle;
  }
  
  nav ul li:first-child {
    border-left: none;
  }
  
  nav ul li a {
    border-top: solid 2px var(--bg-nav);
    border-bottom: solid 2px var(--bg-nav);
    color: inherit;
    font-size: 15px;
    margin-left: 1em;
    padding: 0 .25em;
    /* text-transform: uppercase; */
    transition: all 0.3s ease;
  }
  
  nav ul li a:hover {
    border-bottom: solid 2px var(--co-nav);
  }

  .close-nav,
  .open-nav {
    display: none;
  }

  .nav {
    position: initial;
  }

  .nav-list {
    flex-direction: row;
    justify-content: center;
  }

}

/* 5) Page Layout
----------------------------------------------------------------------------------------- */

.container {
  margin: 0 auto;
  max-width: 60em;
  padding: 1em;
  /* outline: solid 2px magenta; */
}

.content {
  padding: 2em 0 1em;
}

header {
  background: var(--bg-content);
  margin-top: -1rem;
}

header img {
  margin: 0 auto;
}

main {
  background: var(--bg-content);
}

footer {
  border-top: solid 2px var(--co-border);
  color: var(--co-footer);
  padding: 1rem 0;
  text-align: center;
}

footer ul.cities-served {
  font-size: .9rem;
  margin: 0;
  -moz-column-count: 3;
  -moz-column-gap: 1em;
  -webkit-column-count: 3;
  -webkit-column-gap: 1em;
  column-count: 3;
  column-gap: 1em;
}

footer ul li.contact {
  letter-spacing: .5px;
}

/* 6) Heroes
----------------------------------------------------------------------------------------- */

main .hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.35)),
    url(../images/hero_1.jpg);
  background-position: center;
  background-size: cover;
  color: var(--co-nav);
  letter-spacing: 1px;
  padding: 6em 2em;
  text-align: center;
}

main .hero h1 {
  text-transform: uppercase;
}

main .hero h1 {
  line-height: 1.3;
}

main .services h2,
main .hero h2 {
  line-height: 1.2;
}

main .service h2 {
  background:
    linear-gradient(rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.35)),
    url(../images/unified-communcations.jpg);
  background-position: center;
  background-size: cover;
  color: var(--co-nav);
  font-size: 2rem;
  letter-spacing: 1px;
  padding: 10rem 2rem;
  text-align: center;
  text-transform: uppercase;
}

main .service.backup-recovery h2 {
  background:
  linear-gradient(rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.35)),
  url(../images/backup-recovery-2.jpg);
  background-position: bottom;
}

main .service.remote-services h2 {
  background:
  linear-gradient(rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.35)),
  url(../images/remote.jpg);
  background-position: center;
}

/* 7) Partners
----------------------------------------------------------------------------------------- */

main .partners {
  text-align: center;
}

main .partners h2 {
  color: var(--co-footer-h3);
}

main .partners > p {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

main .partners > p img {
  height: 100%;
  /* width: 160px; */
  margin: 1rem;
}

/* 8) Services
----------------------------------------------------------------------------------------- */

main .services {
  padding: 0 0 1rem 0;
  text-align: center;
}

main .services p {
  margin: 0 auto;
  max-width: 900px;
  text-align: left;
}

main .services p:last-child {
  text-align: center;
}

main .services h3 {
  margin: 2rem 0 .5rem;
}

main .services h4 {
  margin-bottom: .25rem;
}

main .services ul {
  margin: 0;
}

main .services ul li {
  line-height: 1.2;
  margin: 1rem 0;
}

main .services strong {
  display: block;
  text-align: center;
}

main ul,
footer ul {
  list-style: none;
  padding: 0;
}

main ul {
  text-align: center;
}

main ul li {
  margin-bottom: .35em;
}

main .service.backup-recovery.dr-rocket p {
  text-align: center;
}

main .service.backup-recovery.dr-rocket img {
  margin: 1rem auto;
}

main .service.remote-services p {
  padding-bottom: 2rem;
}

/* 9) Forms
----------------------------------------------------------------------------------------- */

form {
  margin: 0 auto;
  max-width: 600px;
}

form > p.center {
  text-align: center;
}

input[type=text],
input[type=email],
textarea  {
  border: solid 2px var(--co-default);
  padding: 1rem;
  width: 100%;
}

.button {
  border: none;
  border-radius: 2rem;
  background: var(--bg-nav);
  color: var(--co-nav);
  cursor: pointer;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.button.focus,
.button:hover {
  background: var(--bg-nav-rollover);
}

a.button {
  text-decoration: none;
}

form .button {
  margin-bottom: 1rem;
}

.success {
  padding: 6rem 2rem;
  text-align: center;
}

.success p {
  padding: 1rem;
}

/* 10) Media Queries
----------------------------------------------------------------------------------------- */

@media (min-width: 600px) {

  nav ul li {
    margin: 0 .5em;
  }

  nav ul li a {
    padding: 0 .5em;
  }

  main .hero {
    padding: 8em;
  }

  main .partners > p {
    flex-direction: row;
  }

  h5 {
    padding: 2rem 4rem;
  }

  footer {
    text-align: left;
  }

  footer .container {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-auto-rows: auto;
    gap: 1em;
  }
}

@media (min-width: 720px) {
  header {
    margin-top: 0;
  }
}

@media (min-width: 900px) {

  h5 {
    padding: 2rem 12rem;
  }

}