/* ============================================================
   SyberDigitals — contact page (loads after site.css)
   Navy hero with the routes as a numbered index, a quiet
   editorial form on white, a ruled contact index and a navy
   booking card that echoes the Living Orbit.
   Scoped under body.site .page-contact. Nothing is hidden for
   animation here; the only motion is a slow ring drift on the
   booking card, and only without a reduced-motion request.
   ============================================================ */

/* ---------- Hero: the fastest routes as a numbered index ---------- */
body.site .page-contact .hero--page { padding-block: clamp(56px, 8vw, 112px) clamp(56px, 7vw, 96px); }
body.site .page-contact .hero--page h1 { max-width: 9em; }
body.site .page-contact .routes { counter-reset: route; }
body.site .page-contact .routes .sc-row { counter-increment: route; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 0 14px; align-items: baseline; padding: 16px 0; }
body.site .page-contact .routes .sc-title + .sc-row { padding-top: 2px; }
body.site .page-contact .routes .sc-row::before { content: counter(route, decimal-leading-zero); font: 500 .78rem/1 var(--mono); letter-spacing: .06em; color: var(--teal-soft); }
body.site .page-contact .routes .sc-text strong { display: block; font-size: 1.02rem; }
body.site .page-contact .routes .tag-line { margin-top: 5px; font-size: .84rem; overflow-wrap: anywhere; }
body.site .page-contact .routes .tag-line a { display: inline-block; padding-block: 11px; margin-block: -11px; }
/* breadcrumb link: a 40px+ tap target without moving the line */
body.site .page-contact .crumbs a { display: inline-block; padding-block: 12px; margin-block: -12px; }
body.site .page-contact .routes .sc-note { position: relative; padding-left: 18px; color: var(--on-2); }
body.site .page-contact .routes .sc-note::before { content: ""; position: absolute; left: 0; top: calc(14px + .55em); width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0, 184, 148, .18); }

/* ---------- Form band ---------- */
body.site .page-contact #form { position: relative; }
body.site .page-contact #form::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--hair); }
body.site .page-contact .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); }

/* the form: a calm sheet with a navy top rule */
body.site .page-contact .form-card { position: relative; border-color: var(--hair); border-top: 3px solid var(--navy); border-radius: 4px 4px 16px 16px; padding: clamp(24px, 4.2vw, 48px); box-shadow: 0 1px 0 var(--hair), 0 30px 60px -40px rgba(8, 40, 90, .35); }
body.site .page-contact .form-head { display: flex; align-items: center; gap: 18px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--hair); }
body.site .page-contact .form-mark { width: 52px; height: 52px; flex-shrink: 0; }
body.site .page-contact .form-mark g { stroke: var(--hair-strong); }
body.site .page-contact .form-mark .arc { stroke: var(--teal-deep); }
body.site .page-contact .form-mark .hub { fill: var(--navy); }
body.site .page-contact .form-mark .pin { fill: var(--teal); }
body.site .page-contact .form-title { margin: 0 0 4px; font: 700 clamp(1.45rem, 1.2rem + .9vw, 1.85rem)/1.15 var(--font); letter-spacing: -.025em; }
body.site .page-contact .form-sub { margin: 0; font-size: .97rem; color: var(--ink-2); }

body.site .page-contact .form-row { gap: 0 22px; }
body.site .page-contact .field { margin-bottom: 22px; }
body.site .page-contact .field label { margin-bottom: 8px; font-size: .9rem; letter-spacing: .005em; }
body.site .page-contact .field input,
body.site .page-contact .field select,
body.site .page-contact .field textarea { min-height: 48px; padding: 13px 15px; border-radius: 8px; background-color: var(--white); }
body.site .page-contact .field textarea { min-height: 168px; line-height: 1.55; }
body.site .page-contact .field select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308285a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9.5l6 6 6-6'/></svg>") right 14px center / 18px no-repeat; }
body.site .page-contact .field select:invalid { color: var(--ink-3); }
body.site .page-contact .field select option { color: var(--ink); }
body.site .page-contact .field input:hover,
body.site .page-contact .field select:hover,
body.site .page-contact .field textarea:hover { border-color: var(--ink-2); }
/* keyboard focus: the shared navy ring plus the field's own border */
body.site .page-contact .field :is(input, select, textarea):focus { border-color: var(--navy); }
body.site .page-contact .field :is(input, select, textarea):focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 8px; box-shadow: none; }

/* validation: marker + text, never colour alone */
body.site .page-contact .field .err { position: relative; padding-left: 22px; font-weight: 500; }
body.site .page-contact .field .err::before { content: "!"; position: absolute; left: 0; top: .1em; width: 15px; height: 15px; border-radius: 50%; background: var(--bad); color: #fff; font: 700 .66rem/15px var(--font); text-align: center; }
body.site .page-contact .field.invalid label { color: var(--bad); }
body.site .page-contact .field.invalid :is(input, select, textarea) { background-color: #fffafa; }

body.site .page-contact .btn-send { min-width: 200px; margin-top: 6px; }
body.site .page-contact .form-status:not(:empty) { margin-top: 18px; padding: 12px 16px; border-radius: 8px; border-left: 3px solid currentColor; font-size: .94rem; line-height: 1.5; }
body.site .page-contact .form-status.ok { background: var(--ok-tint); color: #166534; } /* #15803d on the tint is only 4.51:1 */
body.site .page-contact .form-status.fail { background: var(--bad-tint); }
body.site .page-contact .form-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px dashed var(--hair-strong); font: 400 .8rem/1.55 var(--mono); letter-spacing: .01em; color: var(--ink-3); }

/* ---------- Aside: a ruled, numbered contact index + the booking card ---------- */
body.site .page-contact .contact-aside { position: sticky; top: calc(var(--header-h) + 32px); }
body.site .page-contact .contact-list { counter-reset: line; border-top: 2px solid var(--navy); }
body.site .page-contact .contact-list > div { counter-increment: line; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 4px 14px; padding: 22px 0; border-bottom: 1px solid var(--hair-strong); }
body.site .page-contact .contact-list > div:first-child { padding-top: 22px; }
body.site .page-contact .contact-list > div::before { content: counter(line, decimal-leading-zero); grid-row: span 2; padding-top: .15em; font: 500 .74rem/1.4 var(--mono); letter-spacing: .06em; color: var(--teal-deep); }
body.site .page-contact .contact-list dt { margin: 0; }
body.site .page-contact .contact-list dd { font-size: 1.08rem; font-weight: 600; color: var(--navy); }
body.site .page-contact .contact-list dd a { display: inline-block; padding-block: 8px; margin-block: -8px; color: var(--teal-deep); }
body.site .page-contact .contact-list dd a:hover { color: var(--navy); }

/* booking: a small navy surface with the orbit rings */
body.site .page-contact .booking-card { position: relative; overflow: hidden; isolation: isolate; margin-top: 36px; padding: clamp(26px, 3vw, 34px); background: var(--navy-deep); border: 1px solid var(--navy); border-radius: 16px; color: var(--on-2); box-shadow: 0 24px 50px -30px rgba(4, 20, 47, .6); }
body.site .page-contact .booking-card::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px; border-radius: 0 3px 3px 0; background: var(--teal); }
body.site .page-contact .booking-rings { position: absolute; z-index: -1; right: -150px; top: -150px; width: 320px; height: 320px; pointer-events: none; }
body.site .page-contact .booking-rings circle { fill: none; stroke: rgba(180, 196, 221, .16); stroke-width: 1; }
body.site .page-contact .booking-rings circle.on { stroke: rgba(94, 224, 196, .42); }
body.site .page-contact .booking-rings .pin { fill: var(--teal-soft); stroke: none; }
body.site .page-contact .booking-card h3 { margin: 0 0 10px; font-size: 1.3rem; color: #fff; }
body.site .page-contact .booking-card p { margin: 0; font-size: .98rem; line-height: 1.65; color: var(--on-2); }
body.site .page-contact .booking-card a { color: var(--teal-soft); font-weight: 600; overflow-wrap: anywhere; }
body.site .page-contact .booking-card a:hover { color: #fff; }
body.site .page-contact .booking-card :focus-visible { outline-color: var(--teal-soft); }

/* ---------- Motion: a slow drift, never a hiding state ---------- */
@media (prefers-reduced-motion: no-preference) {
  body.site .page-contact .booking-rings .spin { transform-origin: 160px 160px; animation: contact-drift 80s linear infinite; }
  body.site .page-contact .form-mark .arc { transform-box: fill-box; transform-origin: center; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
  body.site .page-contact .form-card:focus-within .form-mark .arc { transform: rotate(120deg); }
}
@keyframes contact-drift { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  body.site .page-contact .contact-grid { grid-template-columns: minmax(0, 1fr); }
  body.site .page-contact .contact-aside { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
  body.site .page-contact .booking-card { margin-top: 0; }
  body.site .page-contact .contact-list > div { grid-template-columns: 2em minmax(0, 1fr); gap: 4px 10px; }
  body.site .page-contact .contact-list dd { font-size: 1rem; }
}
@media (max-width: 760px) {
  body.site .page-contact .contact-aside { grid-template-columns: minmax(0, 1fr); }
  body.site .page-contact .booking-card { margin-top: 32px; }
}
@media (max-width: 640px) {
  body.site .page-contact .routes { padding: 24px 20px; }
  body.site .page-contact .routes .sc-row { grid-template-columns: 1.8em minmax(0, 1fr); gap: 0 10px; }
  body.site .page-contact .routes .tag-line { font-size: .76rem; }
  body.site .page-contact .form-card { padding: 24px 20px; }
  body.site .page-contact .form-head { gap: 14px; }
  body.site .page-contact .form-mark { width: 44px; height: 44px; }
  body.site .page-contact .btn-send { width: 100%; }
}
