/* ==========================================================================
   Let's talk (contact) page
   ========================================================================== */

.contact-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 140px;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* ---------- Intro ---------- */
.contact-intro .section-head { margin-bottom: clamp(32px, 6vh, 64px); }
.contact-intro h1 {
  font-size: clamp(56px, 7vw, 112px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 32px;
}
.lede {
  font-family: var(--font-alt);
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 48px;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-alt);
  font-size: 20px;
}
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
}
.contact-list a {
  border-bottom: 1px solid var(--ink-faint);
  transition: border-color .2s ease;
}
.contact-list a:hover { border-color: var(--ink); }
.contact-list em { font-style: normal; color: var(--ink-muted); }

/* ---------- Form card ---------- */
.form-card {
  background: var(--surface);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 48px);
  transition-delay: .12s;
}
.form-title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.contact-form { display: flex; flex-direction: column; gap: 26px; }
.contact-form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label,
.label-row {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.counter { font-weight: 400; letter-spacing: 0; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.counter.is-near { color: var(--ink); }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-alt);
  font-size: 22px;
  line-height: 1.5;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }
.field input:hover,
.field textarea:hover { border-color: var(--ink-muted); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--ink); }
.field input:focus-visible,
.field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--ink); }

.field.has-error input,
.field.has-error textarea { border-color: #e0937a; }
.field-error { min-height: 0; font-size: 16px; color: #e0937a; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--block { justify-content: center; width: 100%; margin-top: 6px; border: 0; cursor: pointer; font-family: inherit; }
.btn--block svg { transition: transform .25s ease; }
.btn--block:hover svg { transform: translateX(4px); }
.btn--block[disabled] { opacity: .6; cursor: progress; }

/* "or book a call" alternative under the form */
.form-alt { margin-top: 24px; }
.form-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.form-or::before,
.form-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn--outline.btn--block {
  margin-top: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.btn--outline:hover { opacity: 1; background: var(--accent); color: var(--on-accent); }
.btn--outline .i-cal { fill: none; stroke: currentColor; stroke-width: 1.3; }
.form-alt-note { margin-top: 10px; font-size: 13px; color: var(--ink-muted); text-align: center; }
.form-status { font-size: 16px; color: var(--ink-muted); text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: #e0937a; }

/* ---------- Success state ---------- */
.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; outline: none; }
.form-success[hidden] { display: none; }
.form-success .form-title { margin-bottom: 0; }
.success-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  animation: pop .5s cubic-bezier(.22, 1, .36, 1) both;
}
.success-mark svg { width: 22px; height: 22px; }
.success-text { font-family: var(--font-alt); font-size: 20px; color: var(--ink-soft); margin-bottom: 12px; max-width: 36ch; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Animated background (Velaris) ----------
   Colours are read by js/main.js; --vel-vignette 1 darkens the edges (dark theme only). */
:root {
  --vel-bg: #11100d;
  --vel-1: #3b3426;
  --vel-2: #6a5e44;
  --vel-3: #2c3324;
  --vel-4: #11100d;
  --vel-vignette: 1;
  --vel-grain: 0.3;
}
:root[data-theme="light"] {
  --vel-bg: #ffffff;
  --vel-1: #ece5d5;
  --vel-2: #e3ddcd;
  --vel-3: #e2e7da;
  --vel-4: #f7f5f0;
  --vel-vignette: 0;
  --vel-grain: 0.15;
}
.velaris-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
main, .site-footer { position: relative; z-index: 1; }
.site-footer { background: transparent; }
/* Frosted form card so the motion shows through softly */
.form-card {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.site-footer { padding-bottom: 110px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-hero { align-items: flex-start; }
}
@media (max-width: 760px) {
  .contact-hero { padding-top: 100px; }
  .lede { margin-bottom: 36px; }
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] .field.has-error input,
:root[data-theme="light"] .field.has-error textarea { border-color: #b3532f; }
:root[data-theme="light"] .field-error,
:root[data-theme="light"] .form-status.is-error { color: #b3532f; }
