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

:root {
  --primary-color: #e9f8fc;
  --secondary-color: #6b6b6b;
  --container-normal: 1100px;
  --container-wide: 1400px;
  --container-narrow: 900px;
  --dark-color: #333;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}

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

ul {
  list-style-type: none;
}

img {
  max-width: 100%;
}

/* utility classes */
.bg-primary {
  background: var(--primary-color);

  color: #333;
}

.bg-dark .bg-primary {
  padding: 0 0.3rem;
}

.bg-dark {
  background: var(--dark-color);
  color: #fff;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid #333;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.btn:hover {
  background: #333;
  color: #fff;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.section-heading {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 10px;
}

/* container */
.container {
  max-width: var(--container-normal);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-lg {
  max-width: var(--container-wide);
}
.container-sm {
  max-width: var(--container-narrow);
}

/* header */
.header {
  /* margin: 1.5rem auto; */
  padding: 20px;
  /* background: var(--primary-color); */
}
.header .logo {
  width: 70px;
}

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

.header-title {
  color: #c5d2d6;
}

.header .main-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.header .main-menu a {
  padding: 0.5rem 1rem;
}
.header .main-menu a:hover {
  background: var(--primary-color);
  /* border-radius: 10px; */
}

.current {
  background: var(--primary-color);
  font-weight: 600;
}

/* hero */
.hero {
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero 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);
  border-radius: 8px;
}

.gallery-item img {
  border-radius: 10px;
}
.gallery-item:hover {
  opacity: 0.8;
}

/* footer */
.footer {
  border-top: 1px solid #aaa;
  padding: 5rem 5rem;
  margin-top: 2rem;
}

.footer .footer-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-flex li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer img {
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* margin-left: 10px; */
}

.footer h4 {
  font-size: 1rem;
  margin-top: 3rem;
  /* margin-bottom: 0.5rem; */
  text-align: center;
}

.footer a {
  margin: 0.2rem;
}

/* services */
.services {
  padding: 3rem 0 4rem;
}

.services-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;

  gap: 2rem;
  padding: 20px;
}

.services-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.services-item {
  margin-left: 20px;
}

/* team */
.team {
  padding: 3rem 0 4rem;
}

.team-flex {
  display: flex;
  gap: 1.4rem;
}

.team img {
  border-radius: 10px;
}

/* contact */
.contact {
  padding: 3rem 0 4rem;
}

.contact p {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin: 2rem 0;
}

.contact input,
.contact textarea {
  border: none;
  border-bottom: 1px #333 solid;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  padding-bottom: 1rem;
}

.contact textarea {
  height: 200px;
}

.contact input:focus,
.contact textarea:focus {
  outline: 0;
}

.contact button {
  width: 100%;
}

/* media queires */

@media (max-width: 768px) {
  .header .header-flex,
  .footer .footer-flex,
  .services .services-flex,
  .team .team-flex {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero {
    height: 300px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .gallery-item {
    width: calc(50% - 20px);
  }

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