/* ==========================================================================
   Contacts page: quick contact cards, places + map, CTA
   ========================================================================== */
.contacts {
  display: grid;
  gap: 24px;
  margin-bottom: 80px;
}

/* ---- quick contact ---- */
.contacts-quick {
  display: grid;
  gap: 12px;
}

.quick-card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg-elevated);
  transition:
    border-color 0.25s ease,
    transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

a.quick-card:hover {
  border-color: var(--color-text-muted);
  transform: translateY(-3px);
}

.quick-card--accent {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-text-white);
}

a.quick-card--accent:hover {
  border-color: var(--color-accent);
}

.quick-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.quick-card__value {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  word-break: break-word;
}

.quick-card__note {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.7;
}

.quick-card__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.quick-card__socials a {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.quick-card__socials a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---- places + map ---- */
.contacts-places {
  display: grid;
  gap: 12px;
}

.contacts-places__list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.place {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg-elevated);
  transition: border-color 0.25s ease;
}

/* the place shown on the map */
.place:has(.place__show.is-active) {
  border-color: var(--color-accent);
}

.place__head {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.place__tag {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(233, 105, 18, 0.14);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
}

.place__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
}

.place__addr {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.place__addr svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.place__rows {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--color-border);
}

.place__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.place__row dt {
  color: var(--color-text-muted);
}

.place__row dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.place__row a:hover {
  color: var(--color-accent);
}

.place__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 20px;
}

.place__show {
  padding: 11px 18px;
  border: 1px solid var(--color-text-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.place__show:hover {
  background: var(--color-text-light);
  color: var(--color-bg);
}

.place__show.is-active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-text-white);
}

.place__ext {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.place__ext svg {
  width: 16px;
  height: 16px;
}

.place__ext:hover {
  color: var(--color-text-light);
}

.contacts-map {
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg-elevated);
}

.map-embed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* ---- CTA ---- */
.contacts-cta {
  display: grid;
  gap: 20px;
  padding: 28px 24px;
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(233, 105, 18, 0.22), transparent 60%),
    var(--color-bg-elevated);
  border: 1px solid var(--color-border);
}

.contacts-cta__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}

.contacts-cta__text {
  margin-top: 8px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.contacts-cta__actions {
  display: grid;
  gap: 10px;
}

@media (min-width: 768px) {
  .contacts-quick {
    grid-template-columns: repeat(3, 1fr);
  }

  .contacts-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 32px;
  }

  .contacts-cta__actions {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .contacts {
    margin-bottom: 110px;
  }

  /* list on the left, the map fills the rest and matches its height */
  .contacts-places {
    grid-template-columns: minmax(380px, 5fr) 7fr;
    align-items: stretch;
  }

  .contacts-map {
    min-height: 560px;
  }
}
