/* Contact page: header and brand come from signup.css, tokens and buttons from base.css */

.reach {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  max-width: 44rem;
  padding-block: 0.5rem 4rem;
}

.reach__intro {
  text-align: center;
  animation: fade-up 0.7s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.reach__title {
  margin: 0 0 1rem;
  font: 800 clamp(2rem, 6vw, 3rem)/1.15 var(--font-display);
}

/* short red line under the page title */
.reach__title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin: 0.9rem auto 0;
  border-radius: var(--radius-pill);
  background: var(--red);
}

.reach__lead {
  margin: 0;
  color: #333;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  line-height: 1.6;
}

.reach__h2 {
  margin: 0 0 1rem;
  font: 800 clamp(1.3rem, 4vw, 1.7rem)/1.25 var(--font-display);
}

/* ---------- Channels ---------- */
.channels {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channels > li {
  animation: fade-up 0.6s calc(0.35s + var(--i, 0) * 0.08s) ease-out both;
}

.channel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1rem;
  align-items: center;
  padding: 1rem;
  padding-inline-end: 1.5rem;
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, translate 0.2s;
}

.channel:hover {
  border-color: var(--red);
  color: var(--red);
  translate: 0 -3px;
}

.channel__icon {
  grid-row: 1 / span 2;
  width: 3.5rem;
  height: 3.5rem;
}

.channel__name {
  font: 700 1.1rem/1.3 var(--font-display);
}

.channel__value {
  grid-column: 2;
  overflow-wrap: anywhere;
  color: #444;
  font-weight: 500;
  text-align: start;
  unicode-bidi: plaintext;
}

.channel:hover .channel__value {
  color: inherit;
}

/* social cards have only a name: center it next to the icon */
.channels--social .channel__icon {
  grid-row: 1;
}

@media (min-width: 40rem) {
  .channels--social {
    grid-template-columns: repeat(3, 1fr);
  }

  .channels--social .channel {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 1.25rem 1rem;
    text-align: center;
  }
}

/* ---------- Arabic / RTL ---------- */
[lang="ar"] .reach__title,
[lang="ar"] .reach__h2,
[lang="ar"] .channel__name {
  line-height: 1.5;
}

/* the value is dir="ltr", so its "end" is the right edge: that is the start side under the Arabic name */
[lang="ar"] .channel__value {
  text-align: end;
}
