/* Contact page cards are intentionally sized for clear reading and easy tapping. */
.contact-options {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: stretch;
  gap: clamp(16px, 2.5vw, 28px);
}

.contact-options article {
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(30, 45, 55, .08);
}

.contact-options h2 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
}

.contact-options article > p {
  max-width: 46ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.contact-methods {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  gap: 13px;
  margin-top: 26px;
}

.contact-method {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 24px;
  align-items: center;
  min-width: 0;
  min-height: 96px;
  gap: 15px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  box-shadow: 0 7px 22px rgba(30, 45, 55, .06);
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.contact-method:hover {
  transform: translateY(-2px);
  border-color: var(--coral);
  box-shadow: 0 12px 28px rgba(30, 45, 55, .12);
}

.contact-method:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.contact-method > span:nth-child(2) {
  display: grid;
  width: auto;
  height: auto;
  min-width: 0;
  gap: 4px;
  place-items: stretch;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: inherit;
}

.contact-method strong {
  color: var(--ink);
  font: 700 21px/1.2 var(--serif);
  letter-spacing: -.025em;
}

.contact-method small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-method > b {
  justify-self: end;
  color: var(--muted);
  font-size: 20px;
}

.contact-method .contact-method-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--coral) 14%, var(--paper));
  color: var(--coral-dark);
  font-size: 23px;
}

.contact-sms .contact-method-icon {
  background: #e7f0fa;
  color: #527bab;
}

.contact-whatsapp .contact-method-icon {
  background: #e4f4e8;
  color: #27864e;
}

.contact-email-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.contact-email-card > p { margin-bottom: 0; }

.contact-email {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 7px 22px rgba(30, 45, 55, .06);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.social-section {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-top: 42px;
  padding-bottom: 62px;
}

.social-section h2 {
  margin: 10px 0;
  font-size: clamp(34px, 4vw, 44px);
}

.social-section p {
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.7;
}

.social-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  gap: 16px;
}

.social-chip {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-width: 0;
  min-height: 112px;
  column-gap: 15px;
  row-gap: 5px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 9px 26px rgba(30, 45, 55, .07);
  font-size: 21px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.social-chip > b {
  grid-row: 1 / 3;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--coral) 14%, var(--paper));
  color: var(--coral-dark);
  font-size: 29px;
}

.social-chip small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

html[data-theme="dark"] .contact-options article {
  background: #182332;
  border-color: #34485d;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .contact-method,
html[data-theme="dark"] .contact-email,
html[data-theme="dark"] .social-chip {
  background: #111b28;
  border-color: #34485d;
  box-shadow: 0 9px 26px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .contact-sms .contact-method-icon {
  background: #20364c;
  color: #a8c7ef;
}

html[data-theme="dark"] .contact-whatsapp .contact-method-icon {
  background: #1b3a31;
  color: #85d5a0;
}

html[data-theme="dark"] .social-chip > b {
  background: #382c38;
  color: #ffaaa1;
}

@media (max-width: 760px) {
  .contact-options { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact-options h2 { font-size: clamp(33px, 7vw, 42px); }
  .social-section { gap: 20px; }
}

@media (max-width: 520px) {
  .contact-options article { padding: 22px 18px; border-radius: 20px; }
  .contact-options article > p { font-size: 15px; }
  .contact-methods { gap: 10px; margin-top: 21px; }
  .contact-method {
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    min-height: 88px;
    gap: 11px;
    padding: 14px;
    border-radius: 16px;
  }
  .contact-method strong { font-size: 19px; }
  .contact-method small { font-size: 13px; }
  .contact-method .contact-method-icon { width: 46px; height: 46px; font-size: 21px; }
  .social-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .social-chip {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    justify-items: center;
    min-height: 132px;
    gap: 6px;
    padding: 15px 9px;
    text-align: center;
    font-size: 18px;
  }
  .social-chip > b { grid-row: auto; width: 46px; height: 46px; font-size: 25px; }
  .social-chip small { font-size: 12px; }
}
