/* Contact page only. Layered on top of style.css (nav, background blobs, fonts).
   All classes are prefixed (.contact, .c-*) so nothing collides with other pages. */

.contact {
  --c-text: #e8ecf4;
  --c-muted: #8b93a7;
  --c-line: rgba(255, 255, 255, 0.09);
  --c-surface: rgba(255, 255, 255, 0.035);
  --c-surface-hover: rgba(255, 255, 255, 0.07);
  --c-accent: #8ab4ff;

  position: relative;
  z-index: 1; /* sit above the animated blobs */
  width: min(1080px, calc(100% - 3rem));
  margin: 0 auto;
  padding-top: 150px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  color: var(--c-text);
  font-family: "Manrope", system-ui, sans-serif;
}

/* ---------- Intro (left) ---------- */

.contact-intro h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.contact-intro p {
  margin: 0;
  max-width: 34ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-muted);
}

/* ---------- Methods (right) ---------- */

.contact-methods ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.c-item {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.c-row {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-surface);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

a.c-row:hover {
  background: var(--c-surface-hover);
  border-color: rgba(138, 180, 255, 0.35);
}

.c-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(138, 180, 255, 0.1);
  color: var(--c-accent);
}

.c-tile svg,
.c-go {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.c-text strong {
  font-size: 1rem;
  font-weight: 600;
}

.c-text small {
  font-size: 0.875rem;
  color: var(--c-muted);
  overflow-wrap: anywhere;
}

.c-text small a {
  color: var(--c-accent);
  text-decoration: none;
}

.c-text small a:hover {
  text-decoration: underline;
}

.c-go {
  flex: none;
  color: var(--c-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

a.c-row:hover .c-go {
  color: var(--c-text);
  transform: translate(2px, -2px);
}

/* Copy / Show buttons that sit beside a row */
.c-action {
  flex: none;
  padding: 0 1.1rem;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: transparent;
  color: var(--c-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.c-action:hover {
  background: var(--c-surface-hover);
  border-color: rgba(138, 180, 255, 0.35);
}

.c-status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--c-accent);
}

/* ---------- Focus (keyboard) ---------- */

.contact a:focus-visible,
.c-action:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* ---------- Desktop: intro left, methods right ---------- */

@media (min-width: 860px) {
  .contact {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: start;
  }
}

/* ---------- Small phones ---------- */

@media (max-width: 480px) {
  .c-row {
    padding: 0.8rem 0.9rem;
    gap: 0.8rem;
  }

  .c-action {
    padding: 0 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-row,
  .c-action,
  .c-go {
    transition: none;
  }
}
