/* =========================================================================
   CONTACT page — bespoke sections (loads only on /contact/)
   Builds on assets/css/aurora.css (shared primitives) + assets/js/reveal.js.
   The message form is the live WPForms form (ID 3141) embedded via shortcode
   and restyled below to match the Aurora system.
   ========================================================================= */

/* =========================================================================
   HERO
   ========================================================================= */
.ap-ct-hero {
  position: relative;
  padding-top: clamp(8rem, 15vh, 11rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
  isolation: isolate;
}
.ap-ct-hero__inner { position: relative; z-index: 2; max-width: 46ch; }
.ap-ct-hero__title {
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  line-height: 1.0; letter-spacing: -.03em; margin: 1rem 0 1.1rem;
}
.ap-ct-hero__lead {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.6;
  color: var(--ap-ink-soft); max-width: 52ch;
}
.ap-ct-hero__lead strong { color: var(--ap-ink); font-weight: 600; }

/* =========================================================================
   CONTACT grid — aside (ways to reach) + form card
   ========================================================================= */
.ap-contact { position: relative; padding-block: clamp(1rem, 3vw, 2.5rem) clamp(4rem, 9vw, 7rem); }
.ap-contact__inner {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start;
}

/* ---- Routing list ("reach out about…") ------------------------------- */
.ap-routes { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .25rem; }
.ap-routes li { border-bottom: 1px solid var(--ap-line); }
.ap-routes li:first-child { border-top: 1px solid var(--ap-line); }
.ap-route {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem .25rem; text-decoration: none; color: var(--ap-ink);
  transition: color .25s, padding-left .25s;
}
.ap-route:hover { color: var(--ap-green-ink); padding-left: .5rem; }
.ap-route__label { font-weight: 600; font-size: 1.02rem; }
.ap-route__sub { display: block; font-size: .86rem; color: var(--ap-ink-faint); font-weight: 400; margin-top: .1rem; }
.ap-route__arrow { flex: 0 0 auto; color: var(--ap-green-ink); transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.ap-route:hover .ap-route__arrow { transform: translateX(5px); }

/* ---- Direct email + meta --------------------------------------------- */
.ap-contact__direct { margin: 0 0 1.75rem; }
.ap-contact__klabel {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ap-ink-faint);
  display: block; margin-bottom: .4rem;
}
.ap-contact__email {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: -.02em;
  text-decoration: none; color: var(--ap-ink);
  background-image: var(--ap-grad); background-size: 0% 2px;
  background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s ease, color .25s;
}
.ap-contact__email:hover { color: var(--ap-green-ink); background-size: 100% 2px; }
.ap-contact__note { margin: .6rem 0 0; font-size: .92rem; color: var(--ap-ink-soft); }
.ap-contact__note .ap-dot { margin-right: .5rem; }

/* ---- Socials --------------------------------------------------------- */
.ap-socials { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.75rem 0 0; }
.ap-social {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem;
  border-radius: 14px; color: var(--ap-ink);
  background: rgba(255,255,255,.6); border: 1px solid var(--ap-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .25s, color .25s, border-color .25s, box-shadow .25s;
}
.ap-social:hover { transform: translateY(-3px); color: var(--ap-green-ink); border-color: var(--ap-green); box-shadow: var(--ap-shadow); }
.ap-social svg { width: 1.25rem; height: 1.25rem; }

/* ---- Location -------------------------------------------------------- */
.ap-contact__loc {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 1.75rem 0 0; font-size: .95rem; color: var(--ap-ink-soft);
}
.ap-contact__loc svg { width: 1.05rem; height: 1.05rem; color: var(--ap-green-ink); flex: 0 0 auto; }

/* =========================================================================
   FORM card (WPForms restyled to Aurora)
   ========================================================================= */
.ap-contact__form { padding: clamp(1.5rem, 3.5vw, 2.75rem); border-radius: var(--ap-radius-lg); }
.ap-contact__form h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; margin: 0 0 .4rem; }
.ap-contact__form > p { color: var(--ap-ink-soft); margin: 0 0 1.5rem; }

#ap-contact .wpforms-container { margin: 0; }
#ap-contact .wpforms-field { padding: 0 0 1.1rem; }
#ap-contact .wpforms-field-label {
  display: block; font-weight: 600; font-size: .92rem; line-height: 1.3;
  margin: 0 0 .45rem; color: var(--ap-ink);
}
#ap-contact .wpforms-required-label { color: var(--ap-green-ink); border: 0; }
#ap-contact input[type="text"],
#ap-contact input[type="email"],
#ap-contact input[type="url"],
#ap-contact input[type="tel"],
#ap-contact textarea,
#ap-contact .wpforms-field-medium {
  width: 100%; max-width: 100%; box-sizing: border-box;
  padding: .85em 1em; border-radius: 14px;
  border: 1.5px solid var(--ap-line); background: rgba(255,255,255,.85);
  font: inherit; color: var(--ap-ink);
  transition: border-color .25s, box-shadow .25s;
}
#ap-contact textarea { min-height: 8.5rem; border-radius: 16px; resize: vertical; }
#ap-contact input:focus,
#ap-contact textarea:focus {
  outline: none; border-color: var(--ap-green);
  box-shadow: 0 0 0 4px rgba(18,185,116,.18);
}
#ap-contact .wpforms-field-row,
#ap-contact .wpforms-one-half,
#ap-contact .wpforms-field-medium { float: none; }

/* Submit button → Aurora primary */
#ap-contact .wpforms-submit-container { margin-top: .25rem; }
#ap-contact button.wpforms-submit {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 1em 1.8em; border-radius: 999px; border: 0; cursor: pointer;
  color: #04150d;
  background: linear-gradient(120deg, var(--ap-green) 0%, var(--ap-teal) 60%, var(--ap-cyan) 110%);
  box-shadow: 0 14px 34px -12px rgba(18, 185, 116, .6);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s;
}
#ap-contact button.wpforms-submit:hover { transform: translateY(-2px); box-shadow: 0 20px 46px -14px rgba(18, 185, 116, .75); }

/* Validation + confirmation messaging */
#ap-contact .wpforms-error {
  color: #c0392b; font-size: .85rem; font-weight: 500; margin-top: .35rem;
}
#ap-contact input.wpforms-error,
#ap-contact textarea.wpforms-error { border-color: #c0392b; }
#ap-contact .wpforms-confirmation-container-full {
  background: rgba(18,185,116,.10); border: 1px solid rgba(18,185,116,.35);
  border-radius: var(--ap-radius); padding: 1.1rem 1.25rem; color: var(--ap-ink);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 880px) {
  .ap-contact__inner { grid-template-columns: 1fr; }
  .ap-contact__form { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-social:hover, .ap-route:hover { transform: none; padding-left: .25rem; }
  #ap-contact button.wpforms-submit:hover { transform: none; }
}
