/* Contact page. Isolated from styles.css so local theme customizations stay untouched. */

.contact-page {
  padding: clamp(0.5rem, 2vw, 1rem) 0 clamp(2rem, 8vw, 5rem);
}

.contact-page__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(7.5rem, 17vw, 11rem);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  margin-bottom: clamp(2.2rem, 6vw, 4.8rem);
}

.contact-page__eyebrow,
.contact-page__label {
  margin: 0 0 0.85rem;
  color: var(--green, #176a49);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-page__eyebrow::before,
.contact-page__label::before {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--orange, #e86c2f);
  content: "";
  vertical-align: 0.03rem;
}

.contact-page__heading-copy h1 {
  margin: 0;
  color: var(--ink, #17372c);
  font-size: clamp(3rem, 9vw, 6.7rem);
  font-weight: 620;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.contact-page__heading-copy > p:last-child {
  max-width: 52ch;
  margin: 1.35rem 0 0;
  color: var(--ink-soft, #315449);
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.05rem, 2.3vw, 1.32rem);
  line-height: 1.65;
}

.contact-page__signal {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.contact-signal {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.contact-signal--outer {
  width: 100%;
  height: 64%;
  border: 1px solid rgba(23, 106, 73, 0.26);
  transform: translate(-50%, -50%) rotate(28deg);
}

.contact-signal--inner {
  width: 60%;
  height: 100%;
  border: 1px solid rgba(232, 108, 47, 0.24);
  transform: translate(-50%, -50%) rotate(-34deg);
}

.contact-signal--core {
  width: 39%;
  height: 39%;
  background: var(--green, #176a49);
  box-shadow: inset -0.55rem -0.4rem 0 rgba(0, 0, 0, 0.06);
}

.contact-signal--dot {
  left: 77%;
  top: 26%;
  width: 0.72rem;
  height: 0.72rem;
  background: var(--orange, #e86c2f);
  box-shadow: 0 0 0 0.34rem rgba(232, 108, 47, 0.12);
}

.contact-page__grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.contact-page__aside {
  position: sticky;
  top: 1.25rem;
  padding-top: 0.3rem;
}

.contact-page__email {
  display: inline-block;
  color: var(--ink, #17372c);
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  overflow-wrap: anywhere;
  text-decoration-color: rgba(23, 106, 73, 0.25);
  text-underline-offset: 0.25em;
}

.contact-page__email:hover {
  color: var(--orange, #e86c2f);
  text-decoration-color: currentColor;
}

.contact-page__note {
  max-width: 30ch;
  margin: 1.2rem 0 0;
  color: var(--ink-soft, #5f746a);
  font-size: 0.83rem;
  line-height: 1.65;
}

.contact-page__form-wrap {
  min-width: 0;
}

.contact-form,
.contact-page__offline {
  padding: clamp(1.35rem, 4vw, 2.4rem);
  border: 1px solid rgba(23, 106, 73, 0.14);
  border-radius: clamp(1.2rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 98% 0%, rgba(232, 108, 47, 0.09), transparent 15rem),
    rgba(255, 253, 247, 0.68);
  box-shadow: 0 20px 60px rgba(43, 64, 52, 0.08);
}

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

.contact-form__field {
  margin-bottom: 1.15rem;
}

.contact-form__field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  color: var(--green, #176a49);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.contact-form__field label span {
  color: var(--ink-soft, #708078);
  font-size: 0.64rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(23, 106, 73, 0.18);
  border-radius: 0.9rem;
  outline: none;
  background: rgba(255, 253, 247, 0.78);
  color: var(--ink, #17372c);
  font: inherit;
  line-height: 1.55;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.contact-form input {
  min-height: 3rem;
  padding: 0.72rem 0.85rem;
}

.contact-form textarea {
  min-height: 13rem;
  padding: 0.85rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green, #176a49);
  background: #fffdf7;
  box-shadow: 0 0 0 3px rgba(23, 106, 73, 0.1);
}

.contact-form__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.42rem;
  color: var(--ink-soft, #74847c);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.64rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.contact-form__error {
  margin: 0.4rem 0 0;
  color: #a14424;
  font-size: 0.78rem;
  line-height: 1.45;
}

.contact-form__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(23, 106, 73, 0.12);
}

.contact-form__submit p {
  max-width: 34ch;
  margin: 0;
  color: var(--ink-soft, #6b7d74);
  font-size: 0.76rem;
  line-height: 1.55;
}

.contact-form__submit button {
  flex: 0 0 auto;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--green, #176a49);
  border-radius: 999px;
  background: var(--green, #176a49);
  color: #fffdf7;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.contact-form__submit button:hover {
  border-color: var(--orange, #e86c2f);
  background: var(--orange, #e86c2f);
}

.contact-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-notice {
  margin: 0 0 2rem;
  padding: 0.95rem 1.1rem;
  border-radius: 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.contact-notice--success {
  border: 1px solid rgba(23, 106, 73, 0.2);
  background: rgba(218, 235, 220, 0.72);
  color: #174c38;
}

.contact-notice--error {
  border: 1px solid rgba(181, 82, 45, 0.22);
  background: rgba(248, 223, 206, 0.72);
  color: #873e24;
}

.contact-page__offline h2 {
  max-width: 24ch;
  margin: 0 0 1rem;
  color: var(--ink, #17372c);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.contact-page__offline p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft, #315449);
}

@media (max-width: 760px) {
  .contact-page__header,
  .contact-page__grid,
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-page__signal {
    width: min(9rem, 38vw);
    justify-self: start;
  }

  .contact-page__aside {
    position: static;
  }

  .contact-page__note {
    max-width: 48ch;
  }

  .contact-form__submit {
    align-items: flex-start;
    flex-direction: column;
  }
}
