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

/* variables */
:root {
  --primary-color: #fcf5e9;
  --container-normal: 1100px;
  --container-wide: 1400px;
  --container-narrow: 900px;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: #333;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
}
/* utility classes */
.bg-primary {
  background: var(--primary-color);
}
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* container */
.container {
  max-width: var(--container-normal);
  margin: 0 auto;
  padding: 0 1.5rem;
  /* border: 1px solid red; */
}
.container-lg {
  max-width: var(--container-wide);
}
.container-sm {
  max-width: var(--container-narrow);
}

/* header */
.header {
  margin: 1.5rem auto;
}

.header .logo {
  width: 130px;
}
/* flex */
.header .header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header .main-menu {
  display: flex;
  gap: 1rem;
}
.header .main-menu a {
  padding: 0.5rem 1rem;
  &:hover {
    background-color: var(--primary-color);
  }
}
.current {
  background-color: var(--primary-color);
  border-radius: 10px;
  font-weight: 600;
}

/* hero section */
.hero {
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* border: 1px solid red; */
  h2 {
    font-size: 3rem;
    line-height: 1.4;
    font-weight: normal;
  }
}

.gallery-flex {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery-item {
  width: calc(33.333% - 20px);
  img {
    border-radius: 10px;
    object-fit: cover;
  }
  &:hover {
    opacity: 0.9;
  }
}

/* footer */
.footer {
  border-top: 1px solid #aaa;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  .footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  img {
    width: 120px;
    height: 35px;
  }
  h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  a {
    margin: 0.2rem;
  }
}

/* service section */
.services {
  background-color: rgb(49, 47, 47);
  color: #fff;
  padding: 2.5rem 0 4rem;
  h2 {
    text-align: center;
  }
  .service-flex {
    display: flex;
    margin-top: 1rem;
    padding: 1.5rem 0;
  }
  .service-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
}

/* team */
.team {
  /* border: 1px solid red; */
  h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
  }
  .team-flex {
    display: flex;
    gap: 2rem;
    padding: 3rem 2rem;
  }
  img {
    border-radius: 10px;
  }
}

.hero.contact {
  background-color: rgb(49, 47, 47);
  color: #fff;
  span {
    color: #000;
    padding: 0 0.4rem;
  }
}

/* contact */
.contact {
  padding: 3rem 0 4rem;
  h2 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  p {
    text-align: center;
    margin-bottom: 2rem;
  }
  .form-group {
    margin: 2rem 0;
    input,
    textarea {
      border: none;
      border-bottom: 1px solid #333;
      width: 100%;
      font-size: inherit;
      padding-bottom: 1rem;
      font-family: inherit;
    }
    input:focus,
    textarea:focus {
      outline: none;
    }
  }
  textarea {
    height: 200px;
  }
}

.contact .btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid #333;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  width: 100%;
}
.contact .btn:hover {
  background-color: #333;
  color: #fff;
}

/* Media Query */
@media (max-width: 768px) {
  .header .header-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero {
    min-height: 270px;
    h2 {
      font-size: 1.8rem;
    }
  }
  .gallery-item {
    width: calc(50% - 20px);
  }
  .footer .footer-flex {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .team .team-flex {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.3rem;
  }
  .services .service-flex {
    flex-direction: column;
    gap: 2rem;
  }
}
