:root {
  --white: #ffffff;
  --gray-100: #f4f6f7;
  --gray-300: #ccd0d4;
  --gray-400: #9fa2a5;
  --gray-500: #8F8E8E;
  --gray-600: #707478;
  --gray-700: #6c757d;
  --gray-900: #242a30;
  --black: #000000;
  --blue: #348fe2;

  --primary: var(--blue);
  --text-primary: var(--gray-500);
}

html {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.container {
  margin: 0 auto;
  padding: 0 20px;

  @media (min-width: 768px) {
    max-width: 750px;
  }

  @media (min-width: 992px) {
    max-width: 900px;
  }

  @media (min-width: 1200px) {
    max-width: 1000px;
  }

  @media (min-width: 1500px) {
    max-width: 1200px;
  }
}

header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

ul {
  margin: 0;
  padding: 0;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
}

nav a {
  color: var(--text-primary);
  font-weight: 600;
  transition: color 150ms ease;
}

nav a:hover {
  color: var(--primary);
}

#home {
  display: grid;
  grid-template-rows: auto 1fr;
  background-image: url(/img/bg-home.jpg);
  background-position: center 0px;
  background-color: var(--black);
  height: 100vh;
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

#home h1 {
  color: var(--white);
  font-weight: 600;
  font-size: 48px;
  margin: 0;

  @media (min-width: 768px) {
    font-size: 64px;
  }
}

#home h2 {
  font-size: 32px;
  font-weight: 300;
  color: var(--white);
  margin: 0;
}

#home section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

#home section .actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 3px;
  border: 2px solid;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 600;
}

.btn.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn.btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.logo {
  font-size: 20px;
  color: var(--white);
  font-weight: 400;
}

#services {
  display: flex;
  flex-direction: column;
  
  color: var(--gray-900);
}

section header .container {
  display: flex;
  flex-direction: column;

  @media (min-width: 576px) {
    flex-direction: row;
  }
}

section header .container {
  line-height: 4;
}

section header a {
  display: block;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 500;
}

.section-header h2::after {
  display: block;
  width: 50px;
  height: 2px;
  background-color: var(--gray-900);
  content: '';
  margin: 15px auto;
}

#services ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1fr;
  }

  @media (min-width: 992px) {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#services li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

#services ul h3 {
  font-size: 21px;
  font-weight: 500;
}

#services ul p {
  font-weight: 400;
  color: var(--gray-600);
  line-height: 20px;
}

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

#contact {
  background-color: var(--gray-100);
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1fr;
  }
}

.contact form {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.contact form label {
  text-align: right;
  margin-top: 0.5rem;
}

.contact form input[type="submit"] {
  grid-column: 2 / 2;
  cursor: pointer;
}

input[type="text"], input[type="email"], textarea {
  border: 2px solid var(--gray-300);
  border-radius: 3px;
  line-height: 1.5;
  font-weight: 400;
  transition: border 500ms ease;
  padding: .375rem .75rem;
}

textarea {
  resize: vertical;
  min-height: 5rem;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--gray-400);
  outline: 0;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;

  background-color: var(--gray-900);
  box-shadow: rgba(0, 0, 0, 0.7) 0px 100px 80px -80px inset;
  color: var(--gray-700);
  text-align: center;
}

footer .logo {
  color: var(--white);
}

address {
  font-style: normal;
}

.icon {
  width: 50px;
  height: 50px;
  background-color: var(--gray-900);
  border-radius: 100%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.padding-y-lg {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.bg-gray-900 {
  background-color: var(--gray-900);
}