/* --------------------------
   Global Styles
-------------------------- */
body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: #f9f7f4;
  color: #333;
}
body.modal-open { overflow: hidden; }
html { scroll-behavior: smooth; }

/* --------------------------
   Top Navigation
-------------------------- */
.topnav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  display: flex;
  align-items: flex-start; 
  justify-content: space-between;
  padding: 8px 16px; 
  z-index: 20;
  transition: background-color 0.3s;
}
.hamburger {
  display: none;
}
.topnav img.logo {
  height: 60px; 
}
.nav-links {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 30px;
}
.nav-links a {
  color: #FFF;
  font-weight: 600;
  text-align: center;
  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);
}
.consultation-button {
  border: 2px solid #FFF;
  box-sizing: border-box;
  padding: 6px 14px;
}

/* --------------------------
   Hero Section (image controls height)
-------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-section .hero-media {
  display: block;
  line-height: 0; 
}
.hero-section .hero-media img {
  display: block;
  width: 100%;
  height: auto;  
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 1;
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 0 16px;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  margin: 0 0 20px;
  color: #fff;
}

/* --------------------------
    About Section
-------------------------- */
.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  text-align: left;
}
.about-section p {
  max-width: 600px;
}
.about-section img {
  height: 300px;
}

/* --------------------------
   Section Content
-------------------------- */
.content-section {
  padding: 40px 100px;
  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;
  padding-left: 100px;
  padding-right: 100px;
}
.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);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.masonry-item img:is(:hover, :focus) {
  transform: scale(1.01);
  outline: none;
}

/* --------------------------
   Lightbox (Image Viewer)
-------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox.is-open { display: flex; }

.lightbox__stage {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 32px;
  line-height: 1;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  opacity: 0.9;
}
.lightbox__close:hover { opacity: 1; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  font-size: 36px;
  width: 56px;
  height: 56px;
  cursor: pointer;
  display: grid;
  place-items: center;
  user-select: none;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.15); }

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #ddd;
  font-size: 14px;
  letter-spacing: 0.3px;
  background: rgba(0,0,0,0.35);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* --------------------------
   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;
}

/* --------------------------
   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-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; }

  .lightbox__nav { width: 44px; height: 44px; font-size: 28px; }
}

@media screen and (max-width: 600px) {
  .masonry-grid { column-count: 1; }
}

/* ========= Services (Solara-style cards, adapted to AWP) ========= */
.service-grid {
  max-width: 1920px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
}

.service-card {
  background: #fff;
  border: 1px solid #e6e2dc;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}

.service-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-media::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.18);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.service-card:hover .service-media::after { opacity: 1; }

.service-body {
  padding: 16px;
  flex-grow: 1;
  text-align: left;        
}
.service-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 6px 0 8px;
  color: #333;
  font-family: 'Playfair Display', serif; 
}
.service-body p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}
.service-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  text-decoration: none;
  color: #808080;             /* your brand blue */
}
.service-link:hover { text-decoration: underline; }

/* Responsive parity with portfolio grid */
@media (max-width: 1200px) {
  .service-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

.contact-inner { max-width: 920px; margin: 0 auto; text-align: center; } /* h2 sits outside */

.contact-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  line-height: 1.4;
}
.contact-item svg {
  width: 22px; height: 22px; fill: var(--text);
  flex: 0 0 22px;
}
.contact-item strong { font-weight: 700; }

.contact-divider {
  border: none;
  border-top: 1px solid var(--text);
  margin: 22px auto;
  max-width: 300px;
}

.contact-social {
  display: flex; justify-content: center; gap: 14px; align-items: center; margin-top: 20px;
}
.social {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.social svg { width: 30px; height: 30px; fill: var(--text); }
.social:hover { transform: translateY(-2px); background: var(--primary); }

/* ===== Free Consultation Popup ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.popup-overlay.active { display: flex; }

.popup {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  max-width: 520px;
  width: 92%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  text-align: left;
}
.popup h2 {
  margin: 0 0 14px 0;
  font-family: 'Playfair Display', serif;
}
.popup form label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 700;
}
.popup form input,
.popup form textarea {
  width: 100%;
  padding: 10px 0px;
  border-radius: 8px;
  border: 1px solid #cccccc;
  font-family: inherit;
}
.popup .close-btn {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 22px;
  line-height: 1;
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
}

.popup form button {
  border-radius: 4px;   
  padding: 10px 18px;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}
