* {
  box-sizing: border-box;
  border: none;
}

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

body,
html {
  margin: 0px;
}

html {
  font-size: 62.5%; /* (62.5/100) * 16px = 10px */
  scroll-behavior: smooth;
  scroll-padding-top: 12rem;
}

body {
  color: #2b3428;
  font-size: 1.6rem;
  font-family: "DM Sans", sans-serif;
  line-height: 1.25;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Rubik", sans-serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(3rem, 4vw, 4.8rem);
}

h2 {
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
}

p {
  color: #2b3428;
  max-width: 60ch;
  line-height: 1.5;
  font-size: clamp(1.6rem, 2vw, 1.8rem);
}

p a {
  color: #78bd48;
}

button {
  cursor: pointer;
  text-align: center;
}

button * {
  text-align: center;
}

.btn {
  font-weight: 500;
  text-align: center;
  padding: 12px 16px;
  border-radius: 8px;
  color: #2b3428;
  border: solid 1px #dddddd;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
  text-decoration: none;
  transition: 0.3s;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.btn-fill {
  background: #ce5e0d;
  border-width: 0px;
  color: #ffffff;
}

.btn:hover {
  border: solid 1px #aaaaaa;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 1px 3px, rgba(0, 0, 0, 0.48) 0px 1px 2px;
}

.btn-fill:hover {
  border-width: 0px;
  background: #ae4c06;
}

.btn img {
  max-height: 20px;
}

.page-block {
  padding: 6vw 0px;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.inner-block {
  max-width: 1200px;
  width: 92%;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.inner-block form {
  width: 100%;
  margin-top: 40px;
}

header {
  position: sticky;
  flex-wrap: wrap;
  top: 0;
  background: #ffffff;
  width: 100%;
  display: flex;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 2;
}

header.scrolled {
  border-bottom: solid 1px #dae8d0;
}

header .inner-block {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.logo {
  transition: 0.3s;
  width: 160px;
}

header.scrolled .logo {
  width: 100px;
  cursor: pointer;
}

header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

header nav a {
  color: #2b3428;
  text-decoration: none;
  font-weight: 500;
}

.form-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}

.form-row {
  display: flex;
  width: 100%;
  gap: 24px;
}

.field-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

form {
  width: 100%;
}

form * {
  font-family: "Poppins", sans-serif;
}

input[type="text"],
input[type="email"],
textarea,
select {
  font-size: 1.6rem;
  width: 100%;
  padding: 16px;
  outline: solid 1px #dddddd;
  border-radius: 8px;
  transition: 0.3s;
}

fieldset {
  padding: 0px;
  margin: 0px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

fieldset legend {
  margin-bottom: 16px;
}

input:focus,
textarea:focus,
select:focus {
  outline: solid 1px #aeaeae;
}

select {
  border-right: 16px solid transparent;
}

footer {
  padding: 16px 32px;
  border-top: 1px solid #ddd;
}

footer p {
  font-size: 1.3rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0px;
}

footer a {
  color: white;
}

.optional:after {
  content: " (Optional)";
  color: rgba(255, 255, 255, 0.25);
}

.mobile-nav {
  border-top: solid 1px #ddd;
  width: 100%;
  margin-top: 24px;
  display: none;
  flex-direction: column;
  padding: 16px 8px;
  gap: 4px;
  a {
    text-decoration: none;
    padding: 12px;
  }
}

.mobile-nav.open {
  display: flex;
}

#banner {
  position: relative;
  padding: clamp(100px, 10vw, 400px) 0px;
}

#banner .inner-block {
  padding-right: 30vw;
}

#banner img {
  position: absolute;
  object-fit: cover;
  height: 100%;
  width: 100%;
  top: 0px;
  left: 0px;
  z-index: -1;
  filter: brightness(0.6);
}

#banner h1 {
  color: white;
  text-wrap: balance;
}

.services-container {
  width: 100%;
  display: flex;
  gap: 20px;
  margin-top: -40px;
}

.service {
  background: white;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: solid 1px #dae8d0;
  i {
    color: #78bd48;
    font-size: 3.2rem;
    margin-bottom: 24px;
  }
}

.service img {
  max-height: 40px;
  margin-bottom: 32px;
}

.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.projects-header h2 {
  margin: 0px;
}

#testimonials {
  background: #2a3c25;
}

.testimonials-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 32px;
}

.testimonials-header h2 {
  margin: 0px;
  color: white;
}

.testimonials-header img {
  max-height: 32px;
}

.testimonial-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  width: 100%;
}

.testimonial {
  background: white;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  border-radius: 8px;
  padding: 40px;
  border: solid 1px #dae8d0;
}

.testimonial p {
  font-style: italic;
}

.testimonial p:last-of-type {
  font-style: normal;
  margin: 0px;
  text-align: right;
  font-size: 1.4rem;
  font-weight: 600;
}

.contact-wrap {
  display: flex;
  gap: 120px;
  align-items: center;
}

.contact-social {
  margin-top: 80px;
  p i {
    margin-right: 12px;
  }
}

.contact-social .btn {
  margin-right: 8px;
  margin-top: 16px;
}

.contact-left,
.contact-right {
  width: 100%;
}

.contact-right form {
  margin: 0px;
  input,
  textarea {
    margin-bottom: 16px;
  }
  button {
    margin-top: 16px;
  }
}

.mobile-menu-toggle {
  display: none;
}

@media only screen and (max-width: 960px) {
  header nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  #banner {
    padding: clamp(100px, 16vw, 400px) 0px;
  }

  #banner .inner-block {
    padding-right: 0vw;
  }

  .services-container {
    margin-top: -24px;
  }
  .services-container {
    flex-direction: column;
    gap: 16px;
  }

  .service {
    flex-direction: row;
    gap: 32px;
  }

  .service img {
    max-height: 32px;
  }

  .page-block {
    padding: 12vw 0px;
  }
  header {
    padding: 16px 24px;
  }
  .logo {
    width: 100px;
  }
  .social {
    gap: 20px;
  }
  .social img {
    max-height: 20px;
    width: auto;
  }
  .contact-social {
    margin-top: 20px;
  }
  .contact-wrap {
    flex-direction: column;
    gap: 40px;
  }
  .form-row {
    flex-direction: column;
  }
}

@media only screen and (max-width: 480px) {
  .service {
    flex-direction: column;
    gap: 0px;
  }
  .testimonial-wrapper {
    grid-template-columns: 1fr;
    .testimonial {
      padding: 24px;
    }
  }
  .projects-header {
    flex-direction: column;
    gap: 16px;
  }
  .page-block {
    padding: 16vw 0px;
  }
}
