/* ==========================================================================
   Aptris: Let's Talk (/lets-talk) and Not found (/404) page styles.
   Only page-scoped layout lives here; every component comes from styles.css.
   ========================================================================== */

/* ---------- Let's Talk: hero ---------- */
.contact-hero .page-hero__subtitle { max-width: 36rem; }

/* ---------- Let's Talk: two-column layout ---------- */
.contact-section { padding-top: clamp(56px, 6vw, 88px); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px clamp(48px, 6vw, 96px);
  align-items: start;
}
.contact-layout__aside { display: grid; gap: 48px; min-width: 0; }
.contact-layout__form { min-width: 0; }

/* On wide screens the form card rises into the lower, lighter part of the hero. */
@media (min-width: 1024px) {
  .contact-layout__form { margin-top: calc(-1 * clamp(140px, 13vw, 200px)); position: relative; z-index: 2; }
}
@media (max-width: 1023.98px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  /* Form first on small screens: it is the reason people come here. */
  .contact-layout__form { order: -1; }
}

.contact-intro > * + * { margin-top: 16px; }
.contact-intro__title { font-size: var(--fs-h2); }
.contact-intro__text { max-width: 30rem; color: var(--muted-color); font-size: var(--fs-lead); line-height: 1.55; }

.contact-details {
  gap: 0;
  border-top: 1px solid var(--rule-color);
}
.contact-details > div {
  padding-block: 20px;
  border-bottom: 1px solid var(--rule-color);
}
.contact-details dd { margin: 0; }
.contact-details .contact-list__value { font-size: 1.125rem; }
.contact-details__note { display: block; margin-top: 4px; color: var(--muted-color); font-size: var(--fs-small); line-height: 1.5; }

.contact-next__title { margin-bottom: 24px; font-size: var(--fs-h3); }

/* ---------- Form card ---------- */
.contact-layout .form-card { padding: clamp(24px, 4vw, 56px); border-top: 4px solid var(--accent-500); }
.contact-form__head { display: grid; gap: 12px; padding-bottom: 8px; }
.contact-form__title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
.contact-form__intro { max-width: 46ch; color: var(--muted-color); }
.contact-layout .form { gap: 32px; }
/* Divider between the two groups sits under the first one (a fieldset border would run through the legend). */
.contact-layout .form__group:first-of-type { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.contact-form__consent { padding: 16px 18px; border-radius: var(--radius-btn); background: var(--canvas); }
.contact-form__consent .checkbox { font-size: var(--fs-small); line-height: 1.5; }
.contact-layout .form-success { padding-block: clamp(48px, 6vw, 96px); }
.contact-layout .form-success__title { text-wrap: balance; }

/* Error banner: keep the mailto fallback link readable. */
.form__status a { color: inherit; text-decoration: underline; }

@media (max-width: 599.98px) {
  .form__footer .btn { width: 100%; }
}

/* ---------- 404 ---------- */
.notfound-hero__code {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--container)) / 2));
  bottom: -0.16em;
  z-index: 0;
  font-family: var(--font-heading);
  font-size: clamp(8rem, 4rem + 16vw, 20rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  user-select: none;
}

.notfound-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.notfound-links__item { display: flex; min-width: 0; }
.notfound-links__link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 28px 0 0;
  border-top: 1px solid var(--rule-color);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease-out);
}
.notfound-links__link:hover { border-top-color: var(--accent-500); }
.notfound-links__num {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem);
  font-weight: 500;
  line-height: 1;
  color: var(--numeral-color);
}
.notfound-links__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.2;
  color: var(--heading-color);
}
.notfound-links__text { color: var(--muted-color); }
.notfound-links__more {
  margin-top: auto;
  padding-top: 8px;
  color: var(--link-color);
  font-family: var(--font-heading);
  font-weight: 600;
}
.notfound-links__link:hover .notfound-links__more { text-decoration: underline; text-underline-offset: 0.25em; }
@media (max-width: 1023.98px) { .notfound-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--grid-gap); } }
@media (max-width: 599.98px) { .notfound-links { grid-template-columns: minmax(0, 1fr); } }
