/* =========================
   CONTACT SECTION STYLES
========================= */

.contact-section {
  position: relative;
  padding: 3rem 2rem;
  background: url("../assets/images/viber_image_2025-08-13_09-06-08-970.jpg") center/cover no-repeat;
  color: #252522;
  overflow: hidden;
  z-index: 0;
}

/* Subtle overlay for readability */
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: brightness(0.9);
  z-index: 0;
}

/* Header */
.section-title,
.section-subtitle {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Main Layout: Map left + QR/Info right */
.contact-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap; /* ensures wrapping on smaller screens */
}

/* Map (Left Side) */
.map-wrapper {
  flex: 1 1 55%;
  min-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.map-wrapper iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* Right Side: QR + Info stacked */
.contact-right {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: center;   /* center everything horizontally */
  gap: 2rem;             /* more breathing space between QR & info */
  text-align: center;    /* QR naturally centered */
}

/* QR Code */
.qr-code {
  display: flex;
  justify-content: center; /* ensure QR stays centered */
  width: 100%;
}

.qr-code img {
  max-width: 180px;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 8px;
}

/* Contact Info: 3-Column Layout */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
  max-width: 700px;   /* a bit smaller for balance under QR */
  width: 100%;
  margin: 0 auto;
  line-height: 1.35;
  text-align: center;
}

.contact-info .info-block h3 {
  margin-top: 0.8rem;
  margin-bottom: 0.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #867c74;
}

.contact-info .info-block p {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.contact-info a {
  color: #867c74;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  color: #252522;
  text-decoration: underline;
}


/* =========================
   RESPONSIVE CONTACT
========================= */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .contact-section {
    padding: 2.5rem 1.5rem;
    text-align: center;
  }

  /* Stack map + QR + info vertically */
  .contact-layout {
    flex-direction: column;
    align-items: center;
  }

  .map-wrapper {
    min-height: 350px;
    width: 100%;
  }

  .contact-right {
    width: 100%;
    align-items: center;
  }

  /* Contact info becomes 1 column */
  .contact-info {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.2rem;
  }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  .contact-section {
    padding: 1.5rem 1rem;
  }

  /* QR Code */
  .qr-code img {
    max-width: 140px;
    margin-bottom: 1rem;
  }

  /* Contact Info refinements */
  .contact-info {
    font-size: 0.95rem;
  }

  .contact-info h3 {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
  }

  .contact-info p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .contact-info a {
    font-size: 0.9rem;
  }

  /* Map */
  .map-wrapper {
    min-height: 250px;
    border-radius: 8px;
  }
}

