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

:root {
  --primary: #fcf5e9;
  --dark: #333;
  --max-normal: 1100px;
  --max-wide: 1400px;
  --max-narrow: 900px;
  --transition: 0.25s ease;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--dark);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

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

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

.btn {
  padding: 1rem 2rem;
  border: 1px solid var(--dark);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

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

.section-heading {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
}

.container {
  width: 100%;
  max-width: var(--max-normal);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

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

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

.header {
  margin: 1.5rem auto;
}

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

.logo {
  width: 130px;
}

.main-menu {
  display: flex;
  gap: 1rem;
}

.main-menu a {
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.main-menu a:hover,
.main-menu a.current {
  background: var(--primary);
  font-weight: 600;
}

.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: 400;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
}

.gallery-item img {
  object-fit: cover;
  height: 100%;
  transition: var(--transition);
}

.gallery-item:hover img {
  opacity: 0.9;
}

.gallery-item:nth-of-type(2) {
  grid-column: span 2;
}

.gallery-item:nth-of-type(7) {
  grid-column: span 2;
  grid-row: span 2;
}

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

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

.footer img {
  width: 120px;
}

.footer h4 {
  margin-bottom: 0.5rem;
}

.services,
.team,
.contact {
  padding: 3rem 0 4rem;
}

.services-flex,
.team-flex {
  display: flex;
  gap: 2rem;
}

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

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

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

.contact input,
.contact textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--dark);
  padding-bottom: 1rem;
  font: inherit;
}

.contact textarea {
  height: 200px;
}

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

.contact button {
  width: 100%;
}

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

  .hero {
    height: 300px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-of-type(1) {
    grid-column: span 2;
  }

  .gallery-item:nth-of-type(2),
  .gallery-item:nth-of-type(7) {
    grid-column: span 1;
    grid-row: span 1;
  }
}
