/* ==============================
   Contact Page Styles
   File: contact.css
   ============================== */

/* Global Mobile Fix */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Wrapper */
.contact {
  padding: 3rem 1rem;
  text-align: center;
}

/* Heading */
.contact h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  line-height: 1.3;
  color: #111827;
}

/* Intro */
.contact .intro {
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  color: #374151;
  max-width: 720px;
}

/* Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    border-bottom: 1px solid var(--color-gray);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Contact Info Block */
.contact-info {
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-info h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #111827;
}

.contact-info strong {
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.25rem;
  color: #111827;
}

.contact-info a {
  color: var(--color-accent-start);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.contact-info a:hover {
  color: var(--color-accent-end);
  transform: translateX(3px);
  text-decoration: underline;
}

.contact-info p:last-of-type {
  margin-bottom: 1.5rem;
}

/* Link Utility */
.link-highlight {
  color: var(--color-accent-start);
  font-weight: bold;
  text-decoration: underline;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

/* Map App Icon Size */
.map-icon {
  width: 18px;
  height: 18px;
  vertical-align: text-bottom;
  margin-right: 6px;
}

/* Parking Info Box */
.contact-parking {
  grid-column: span 2;
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  background-color: #f9fafb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.contact-parking:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.contact-parking h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.contact-parking p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .contact-parking {
    grid-column: span 1;
    text-align: center;
    padding: 1.5rem 1.25rem;
    margin-top: 1.5rem;
  }

  .contact-parking h3 {
    font-size: 1.1rem;
  }

  .contact-parking p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Transportation + Map Section */
.reach-info {
  grid-column: span 2;
  margin-top: 2rem;
  text-align: center;
}

.reach-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.reach-info p {
  font-size: 1rem;
  color: #374151;
}

/* Grid for image and map */
.reach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: flex-start;
}

.reach-grid picture,
.reach-grid iframe {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Transportation image */
.transpo-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transpo-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Map iframe */
.reach-grid iframe {
  height: 300px;
  border: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .reach-grid {
    grid-template-columns: 1fr;
  }

  .reach-grid iframe {
    height: 260px;
  }

  .transpo-image img {
    border-radius: 8px;
    margin-top: 1rem;
  }

  .contact h1 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
  }

  .contact .intro {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/* Parking Icon */
.parking-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.95;
  position: relative;
  top: -1px;
}
