/* All In Indonesia — contact information layout.
 * Load after style.css. All rules are scoped to the contact section.
 */

/* Section introduction and equal-width contact cards. */
.contact-connect {
  padding-block: clamp(48px, 6vw, 88px);
}

.contact-connect__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.contact-connect .section-title {
  margin: 0;
}

.contact-connect__intro {
  max-width: 285px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-method {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 2.8vw, 40px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: #10100e;
  transition: border-color 0.2s ease;
}

.contact-method:focus-within {
  border-color: var(--gold);
}

.contact-method__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-method__heading h3 {
  margin: 0;
  color: var(--muted);
  font: 500 11px/1.5 var(--sans);
  letter-spacing: 0.15em;
}

.contact-method__index {
  color: var(--gold);
  font: italic 26px/1 var(--editorial);
}

/* Both values occupy the same row height on wider screens. */
.contact-method__value {
  display: flex;
  align-items: center;
  min-height: 66px;
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-method__value:hover {
  color: var(--gold);
}

.contact-method__value--phone {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: 0.015em;
  font-variant-numeric: lining-nums tabular-nums;
}

.contact-method__value--email {
  display: block;
  align-content: center;
  font-family: var(--sans);
  font-size: clamp(21px, 2.05vw, 30px);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.contact-method__description {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Bottom-aligned actions keep both cards balanced and easy to scan. */
.contact-method__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.contact-action {
  display: inline-flex;
  flex: 1 1 130px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.contact-action svg {
  flex: 0 0 20px;
}

.contact-action--primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
}

.contact-action:hover,
.contact-action:focus-visible {
  border-color: var(--gold-light);
  background: var(--gold-light);
  color: var(--black);
}

.contact-action:focus-visible,
.contact-method__value:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

/* Stack cards on tablets and phones; allow long email addresses to wrap. */
@media (max-width: 991.98px) {
  .contact-methods {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .contact-method__value--email {
    font-size: clamp(21px, 3.2vw, 30px);
  }
}

@media (max-width: 767.98px) {
  .contact-connect__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .contact-connect__intro {
    max-width: 340px;
    margin: 0;
    font-size: 15px;
  }

  .contact-method {
    padding: 24px 20px;
  }

  .contact-method__heading {
    margin-bottom: 22px;
  }

  .contact-method__value {
    min-height: 0;
  }

  .contact-method__description {
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-method,
  .contact-method__value,
  .contact-action {
    transition: none;
  }
}
