/* =====================================================================
   Contact page (page-contact.php)
   Intro column (40%) + contact grid (60%); stacks on mobile.
   ===================================================================== */

.ct-section {
  display: flex;
  width: 100%;
  max-width: var(--ast-maxw, 1200px);
  margin-inline: auto;
  padding: 40px 20px 60px;
  color: var(--ast-ink, #1f2937);
}

/* ── Intro column ───────────────────────────────────────────────────── */
.ct-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 40%;
  padding-inline-end: 150px;
}

.ct-intro__title {
  margin: 0;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
}

.ct-intro__text {
  margin: 0;
  color: var(--ast-muted, #6b7280);
}

/* Pinned to the bottom of the column so it lines up with the grid. */
.ct-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.ct-social__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ct-social__link:hover,
.ct-social__link:focus-visible {
  color: var(--ast-accent, #2d9145);
}

/* ── Contact grid ───────────────────────────────────────────────────── */
.ct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 20px;
  width: 60%;
}

.ct-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ct-card--wide {
  grid-column: 1 / -1;
}

.ct-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #777;
}

.ct-card__text {
  margin: 0;
  font-weight: 500;
  line-height: 1.7em;
}

.ct-card__text a {
  color: inherit;
  text-decoration: none;
}

.ct-card__text a:hover,
.ct-card__text a:focus-visible {
  color: var(--ast-accent, #2d9145);
}

/* ── Map embed ──────────────────────────────────────────────────────── */
.ct-map {
  grid-column: 1 / -1;
}

.ct-map iframe,
.ct-map img {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}

/* ── Tablet ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ct-intro {
    padding-inline-end: 40px;
  }

  .ct-social {
    gap: 10px;
  }
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .ct-section {
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
  }

  .ct-intro {
    width: 100%;
    gap: 8px;
    padding-inline-end: 0;
  }

  .ct-intro__title {
    font-size: 32px;
  }

  .ct-intro__text,
  .ct-social {
    font-size: 12px;
  }

  .ct-social {
    margin-top: 12px;
  }

  .ct-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }
}
