/* --------------------------
   Global Styles
-------------------------- */
body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: #f9f7f4;
  color: #333;
}

/* --------------------------
   Top Navigation
-------------------------- */
.topnav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  z-index: 20;
  transition: background-color 0.3s;
}

.topnav img.logo {
  height: 100px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  color: #FFF;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  font-family: 'Playfair Display', serif;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #555;
}

/* --------------------------
   Hero Section
-------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  background-color: black;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1279 / 733;
  background-image: url('images/HeroPC.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 16px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  margin-bottom: 20px;
  color: #fff;
}

/* --------------------------
   Section Content
-------------------------- */
.content-section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.content-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 20px;
}

.content-section p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

/* --------------------------
   Call-to-Action Button
-------------------------- */
.cta-button {
  background-color: #333;
  color: #fff;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #555;
}

/* --------------------------
   Masonry Portfolio Grid
-------------------------- */
.masonry-grid {
  column-count: 3;
  column-gap: 20px;
  padding-top: 20px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --------------------------
   Footer
-------------------------- */
footer {
  background-color: #f3f1ee;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #777;
  border-top: 1px solid #e0dedc;
}

/* --------------------------
   Social Icons
-------------------------- */
.social-icons a {
  color: #777;
  margin: 0 10px;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #333;
}

/* --------------------------
   Consultation Form
-------------------------- */
.consultation-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  max-width: 600px;
  margin: 40px auto 0;
  text-align: left;
}

.consultation-form label {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  font-family: 'Lato', sans-serif;
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  background-color: #fff;
  color: #333;
  transition: border-color 0.3s;
}

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
  border-color: #999;
  outline: none;
}

.consultation-form textarea {
  resize: vertical;
}

.consultation-form .cta-button {
  width: 100%;
  background-color: #333;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.consultation-form .cta-button:hover {
  background-color: #555;
}

/* --------------------------
   Responsive Styles
-------------------------- */
@media screen and (max-width: 1024px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media screen and (max-width: 768px) {
  .topnav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 5px 6px;
  }

  .nav-links a {
    font-size: 7px;
    padding: 2px;
  }

  .topnav img.logo {
    height: 50px;
  }

  .hero-section::before {
    aspect-ratio: 1059 / 853;
    background-image: url('images/HeroMobile.jpg');
  }

  .hero-section::after {
    background-color: rgba(0, 0, 0, 0.4);
  }

  .hero-content h1 {
    font-size: 20px;
    line-height: 1.2;
    padding: 0 16px;
    white-space: nowrap;
  }

  .content-section {
    padding: 10px 16px;
  }

  .content-section h2 {
    font-size: 20px;
    margin-bottom: -10px;
  }

  .content-section p {
    font-size: 13px;
  }

  .consultation-form {
    padding: 0 16px;
  }

  .consultation-form label {
    font-size: 13px;
    margin-bottom: -10px;
  }

  .social-icons {
    margin-top: 20px;
  }

  .social-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #555;
    font-size: 13px;
  }

  .social-row svg {
    fill: #555;
    width: 16px;
    height: 16px;
  }

  .social-label {
    color: #555;
  }
}

@media screen and (max-width: 600px) {
  .masonry-grid {
    column-count: 1;
  }
}
