/* ==========================================================
   nawa Contact page.
   Builds on base.css, background.css and sections.css (header, footer,
   background depth, container, buttons, type scale). This file only adds
   the contact layout: the lead column, the form card, its fields, and the
   status / "message sent" states. Copy is word for word from the previous
   site; only the look changes.
   ========================================================== */

/* ---------- Layout: lead column + form card ---------- */
.ct-sec {
  position: relative;
  padding-top: calc(var(--section-space) + var(--space-4));
  padding-bottom: var(--section-space);
}
.ct-grid {
  display: grid;
  gap: var(--split-gap);
  align-items: start;
}
@media (min-width: 900px) {
  .ct-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-8); }
}

.ct-lead { max-width: 34rem; }
.ct-h {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}
.ct-p {
  margin-top: var(--space-3);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- Form card ---------- */
.ct-card {
  padding: var(--card-pad);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--panel);
}
@media (min-width: 768px) { .ct-card { padding: var(--space-5); } }

.ct-form { display: grid; gap: var(--space-3); }
.ct-field { display: grid; gap: var(--space-1); }
.ct-field > span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.ct-field textarea { min-height: 128px; resize: vertical; }
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: var(--text-3); }
.ct-field select { appearance: none; cursor: pointer; }
.ct-field select:invalid { color: var(--text-3); }
.ct-field input:hover,
.ct-field select:hover,
.ct-field textarea:hover { border-color: rgba(255, 255, 255, 0.28); }
.ct-field input:focus-visible,
.ct-field select:focus-visible,
.ct-field textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-color: transparent;
}
/* A field flagged by validation */
.ct-field.bad input,
.ct-field.bad select,
.ct-field.bad textarea { border-color: var(--ct-err); }

/* ---------- Honeypot: off-screen, never shown to a real visitor ---------- */
.ct-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Status line ---------- */
:root { --ct-err: #ff9aa8; }
.ct-status {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-2);
}
.ct-status.err { color: var(--ct-err); }
.ct-status[hidden] { display: none; }

.ct-actions { margin-top: var(--space-1); }
.ct-submit { width: 100%; }

/* ---------- "Message sent" state ---------- */
.ct-done {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}
.ct-done[hidden] { display: none; }
.ct-done-h {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.ct-done-p { margin: 0; color: var(--text-2); text-wrap: pretty; }
.ct-again { margin-top: var(--space-2); }
