/* Contact page. Same grammar as the service pages: a hero, then numbered
   sections built on the two-column split, alternating tint and light. */

.contact-hero {
  padding-top: clamp(5rem, 9vw, 8rem);
  overflow: hidden;
  background: radial-gradient(circle at 82% 12%, rgba(168, 126, 20, 0.09), rgba(247, 246, 244, 0) 42%), var(--bg);
}

.contact-hero .container {
  max-width: 1100px;
}

.contact-hero h1 {
  max-width: 1000px;
}

.contact-hero-lede {
  max-width: 66ch;
  margin-bottom: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
  gap: clamp(3.5rem, 8vw, 8rem);
}

/* The one heading in a left rail is a short question, so it runs at the
   reduced display scale the service pages use for their rail headings. */
.split-layout > div > h2 {
  max-width: 24ch;
  margin-bottom: 0;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.16;
}

/* Numbered sections: a hairline at every boundary, tint on the odd ones. */
.contact-form-section,
.contact-read,
.contact-direct {
  border-top: 1px solid var(--hairline);
}

.contact-form-section,
.contact-direct {
  background: var(--surface-tint);
}

.contact-direct {
  border-bottom: 1px solid var(--hairline);
}

/* The form is the right column of section 01, on the accent rail the about
   page gives its question form. */
.empire-form {
  min-width: 0;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  border-left: 1px solid var(--accent);
}

.form-head {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
}

.form-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.form-field {
  display: grid;
  min-width: 0;
  gap: 0.55rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field > span {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.25s ease;
}

.form-field input {
  min-height: 3.25rem;
  padding: 0.6rem 0;
}

.form-field textarea {
  min-height: 9rem;
  padding: 0.8rem 0;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #76736d;
}

.form-botcheck {
  position: absolute;
  left: -9999px;
}

.form-submit {
  margin-top: 2rem;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  color: var(--positive);
}

.form-status.is-error {
  color: #8d2f25;
}

/* Quiet rows: the reading links in section 02 and the contact details in 03. */
.contact-rows {
  min-width: 0;
  max-width: 68ch;
  border-top: 1px solid var(--hairline);
}

.contact-rows > a,
.contact-rows > p {
  display: block;
  margin: 0;
  padding-block: clamp(1.1rem, 2.2vw, 1.6rem);
  border-bottom: 1px solid var(--hairline);
  line-height: 1.6;
}

.contact-rows > a {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.contact-rows > a:hover,
.contact-rows > a:focus-visible {
  color: var(--accent);
}

.contact-rows > p {
  color: var(--ink-soft);
}

.contact-rows > p a {
  color: var(--accent);
}

.contact-direct-copy {
  min-width: 0;
  max-width: 68ch;
}

.contact-direct-note {
  max-width: 64ch;
  margin: clamp(1.75rem, 3vw, 2.25rem) 0 0;
}

@media (max-width: 960px) {
  .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-layout > div > h2 {
    max-width: 28ch;
  }
}

@media (max-width: 760px) {
  .empire-form {
    padding-top: 1.5rem;
    padding-left: 0;
    border-top: 1px solid var(--accent);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-field-full {
    grid-column: auto;
  }

  .form-submit {
    width: 100%;
  }
}
