/* ==========================================================================
   Northearts — Contact page. Builds on styles.css tokens + legal.css hero.
   ========================================================================== */

.contact-hero { padding-bottom: 96px; }
.contact-hero::after { height: 64px; }
.contact-hero__lead { margin-top: 20px; max-width: 48ch; font-size: var(--fs-lead); line-height: 1.6; color: rgba(255, 240, 244, .74); }
.contact-hero__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; }
.contact-hero__address { font-family: var(--f-display); font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; }
.contact-hero__address:hover { border-color: var(--rose); color: var(--rose-soft); }

.copy-btn {
  min-height: 40px; padding: 0 16px; border-radius: 99px;
  font-size: .86rem; font-weight: 650; color: #fff;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
  transition: background-color .25s, border-color .25s;
}
.copy-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.copy-btn.is-copied { background: var(--sage); border-color: var(--sage); }

/* ---------- Layout ---------- */
.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
  padding: 56px 0 clamp(72px, 8vw, 110px);
}
.contact-h2 { font-family: var(--f-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; color: var(--charcoal); text-wrap: balance; }
.contact-sub { margin-top: 8px; color: var(--ink-2); }

/* ---------- Form ---------- */
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 40px); }
.field-label { font-size: .82rem; font-weight: 650; color: var(--charcoal); margin-bottom: 10px; padding: 0; }
.topics { border: 0; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  background: var(--cream); border: 1px solid rgba(29, 26, 28, .14);
  transition: background-color .2s, color .2s, border-color .2s;
}
.topic:hover span { border-color: var(--wine); }
.topic input:checked + span { background: var(--plum-800); border-color: var(--plum-800); color: #fff; }
.topic input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 3px; }

.topic-hint {
  margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-size: .92rem; line-height: 1.55;
  background: var(--slate); color: rgba(255, 255, 255, .84);
}
.topic-hint strong { display: block; color: #fff; }

.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.contact-form .field-row + .field { margin-top: 0; }
.contact-form > .contact-form__step > .field { margin-top: 14px; }
.contact-form .field input, .contact-form .field textarea { background: var(--cream); }
.contact-form .field textarea {
  min-height: 150px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(29, 26, 28, .16);
  resize: vertical; line-height: 1.55; font-size: 1rem; color: var(--charcoal);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px rgba(140, 43, 78, .12); background: #fff; }
.contact-form .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.contact-form .field input::placeholder { color: var(--muted); }
.field-count { justify-self: end; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.contact-note { flex: 1 1 220px; font-size: .86rem; color: var(--muted); }

.contact-done { text-align: center; padding: 24px 0 8px; }
.contact-done .contact-h2 { margin-top: 18px; }
.contact-done .contact-sub { max-width: 44ch; margin-inline: auto; }
.contact-done__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 24px; }
.contact-done__actions .link { border: 0; font-size: .95rem; }
.contact-done:focus { outline: none; }

/* ---------- Side column ---------- */
.contact-side { display: grid; gap: 18px; position: sticky; top: 100px; }
.side-block { padding: 24px; border-radius: var(--r-lg); background: var(--cream-2); border: 1px solid var(--line); }
.side-title { font-family: var(--f-body); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.side-mail { font-family: var(--f-display); font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; color: var(--wine); border-bottom: 1px solid rgba(140, 43, 78, .35); overflow-wrap: anywhere; }
.side-mail:hover { color: var(--coral-deep); }
.side-muted { margin-top: 10px; font-size: .92rem; color: var(--ink-2); }
.side-block--safety { background: var(--slate); border-color: var(--slate); color: rgba(255, 255, 255, .8); }
.side-block--safety .side-title { color: #9fd4c0; }
.side-block--safety ul { display: grid; gap: 12px; font-size: .93rem; line-height: 1.5; }
.side-block--safety li { padding-left: 18px; position: relative; }
.side-block--safety li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #9fd4c0; }
.side-block--safety strong { color: #fff; }
.side-links { display: grid; }
.side-links a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-weight: 600; color: var(--charcoal); border-top: 1px solid var(--line); }
.side-links a:first-child { border-top: 0; }
.side-links a:hover { color: var(--wine); }
.side-links svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.side-links a:hover svg { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.contact-faq { padding: 0 0 clamp(88px, 10vw, 130px); }
.faq { margin-top: 28px; border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 0; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-body); font-weight: 500; color: var(--wine); background: var(--rose-soft); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--wine); }
.faq details p { padding: 0 48px 22px 0; color: var(--ink-2); line-height: 1.7; max-width: 70ch; }
.faq details a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; padding-top: 40px; }
  .contact-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .contact-side .side-block:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .contact-hero { padding-bottom: 72px; }
  .contact-form .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form .field-row .field { margin-bottom: 14px; }
  .contact-side { grid-template-columns: 1fr; }
  .contact-actions .btn { width: 100%; }
  .faq details p { padding-right: 0; }
}
