/*
 * Page-specific styles for /contact-us.
 *
 * The base `.page-head`, `.crumbs`, and `.page-head h1` rules already live
 * in /style.css (shared with the long-doc pages). What's here is:
 *   * the contact-page page-head variant (lede grid + mono meta items),
 *   * the channels list,
 *   * the address card with the animated map placeholder,
 *   * the socials pill row,
 *   * the form card,
 *   * the FAQ accordion.
 */

/* ---------- page header variant ---------- */

/* Slightly bigger h1 than the long-doc default, per the contact design. */
.contact-head h1 {
  font-size: clamp(56px, 8.4vw, 140px);
}

/* The shared `.head-meta` is a grid (1.05fr/0.95fr) inherited from
   style.css. Contact's right column is a flex column of mono items
   rather than the privacy-style `.stamps` cards. */
.contact-head .head-meta .meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
@media (max-width: 900px) {
  .contact-head .head-meta .meta { align-items: flex-start; }
}
.contact-head .head-meta .meta .item {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The grid backdrop on the page-head is reused from the long-doc pages
   (it lives in style.css via `.page-head::before`). */

/* ---------- contact section grid ---------- */

.contact-section {
  padding: 80px 0;
  border-bottom: 0.5px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* small section header used by the channels column. `.section-title`
   itself lives in style.css (shared utility). */
.contact-section .index {
  margin-bottom: 14px;
}

/* ---------- channels list ---------- */

.channels {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 0.5px solid var(--line);
}
.channel {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--line);
  align-items: center;
  transition: padding 0.3s ease, background-color 0.3s ease;
  position: relative;
}
.channel:hover { padding-left: 8px; }
.channel:hover .ch-arrow {
  transform: translateX(4px);
  color: var(--accent);
}
.channel .idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.channel .body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.channel .body p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.5;
  max-width: 42ch;
}
.channel .body .val {
  display: block;
  margin-top: 6px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.channel .ch-arrow {
  font-size: 20px;
  color: var(--fg-faint);
  transition: all 0.3s ease;
  width: 36px;
  text-align: right;
}
@media (max-width: 600px) {
  .channel { grid-template-columns: 60px 1fr auto; gap: 14px; padding: 22px 0; }
  .channel .body h3 { font-size: 20px; }
}

/* ---------- address card ---------- */

.address {
  margin-top: 48px;
  padding: 28px;
  border: 0.5px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.address .info .eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 14px;
}
.address .info h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.2;
}
.address .info p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
}
.address .map {
  width: 170px;
  height: 170px;
  border-radius: 12px;
  border: 0.5px solid var(--line);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.address .map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* Nudge the light Google map toward the dark UI without hiding detail. */
  filter: grayscale(0.5) contrast(1.05) brightness(0.92);
}
/* Location label pinned to the bottom of the map frame. */
.address .map .lbl {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fg);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.72);
  border: 0.5px solid var(--line);
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 600px) {
  .address { grid-template-columns: 1fr; }
  .address .map { width: 100%; height: 160px; }
}

/* ---------- socials row ---------- */

.socials {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.socials .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-dim);
  transition: all 0.25s ease;
}
.socials .social-link:hover {
  border-color: var(--fg);
  color: var(--fg);
}
.socials .social-link .ext { color: var(--fg-faint); }

/* ---------- form card ---------- */

.form-card {
  position: relative;
  border: 0.5px solid var(--line-strong);
  border-radius: 20px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--card);
  overflow: hidden;
  /* Keep the form clear of the sticky nav when jumped to via #contact-form. */
  scroll-margin-top: 90px;
}

/* Accent "glow" pulse — added by contact-us.js when someone follows a
   #contact-form link (channel card here, or an off-page FAQ answer). */
.form-card.glow {
  animation: contact-form-glow 2.2s ease-out;
}
@keyframes contact-form-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 255, 58, 0);
    border-color: var(--line-strong);
  }
  18% {
    box-shadow: 0 0 0 3px rgba(200, 255, 58, 0.35), 0 0 30px 4px var(--accent);
    border-color: var(--accent);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 255, 58, 0);
    border-color: var(--line-strong);
  }
}
@media (prefers-reduced-motion: reduce) {
  .form-card.glow {
    animation: none;
  }
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 100% 0%,
    color-mix(in oklab, var(--accent) 10%, transparent),
    transparent 50%
  );
  pointer-events: none;
}
.form-card .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 8px;
  position: relative;
}
.form-card .head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  max-width: 14ch;
}
.form-card .head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.form-card .sub {
  color: var(--fg-dim);
  font-size: 14px;
  margin: 6px 0 28px;
  max-width: 42ch;
}

.form-card .form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.form-card .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-card .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) {
  .form-card .row2 { grid-template-columns: 1fr; }
}
.form-card .field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.form-card .field label .req { color: var(--accent); }
.form-card .field input,
.form-card .field textarea,
.form-card .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 0.5px solid var(--line-strong);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  padding: 10px 0 12px;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: var(--body);
  border-radius: 0;
}
.form-card .field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.form-card .field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23999' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
}
.form-card .field input::placeholder,
.form-card .field textarea::placeholder {
  color: var(--fg-faint);
}
.form-card .field input:focus,
.form-card .field textarea:focus,
.form-card .field select:focus {
  border-color: var(--accent);
}
.form-card .field .count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
}

.form-card .topics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-card .topic {
  padding: 8px 14px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--fg-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  font-family: var(--body);
}
.form-card .topic:hover {
  border-color: var(--line-strong);
  color: var(--fg);
}
.form-card .topic.on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.form-card .form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.form-card .form-actions .legal {
  font-size: 12px;
  color: var(--fg-faint);
  max-width: 38ch;
  line-height: 1.5;
  margin: 0;
}
.form-card .form-actions .legal a {
  color: var(--fg-dim);
  border-bottom: 0.5px solid var(--line);
}
.form-card .submit {
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  font-family: var(--body);
}
.form-card .submit:hover {
  background: #fff;
  transform: translateY(-1px);
}
.form-card .submit .arrow { transition: transform 0.25s ease; }
.form-card .submit:hover .arrow { transform: translateX(4px); }
.form-card .submit.is-sent {
  background: color-mix(in oklab, var(--accent) 80%, white);
}

/* FAQ shared chrome (.faq-section / .faq-head / .faq-grid / .faq /
   summary / .plus / .answer) now lives in /style.css. */
