/* ==========================================================================
   Contact page. Loads after home.css and service.css (shared header, logo bar,
   FAQ accordion, footer). Brand board only: #947AD3, #70B5F0, #D3D3D3, black.
   ========================================================================== */

/* ---------- hero: copy + routes on the left, the brief on the right ---------- */
.contact-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 72px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-copy .page-title { font-size: clamp(38px, 4.6vw, 64px); }
.contact-copy .hero-lead { max-width: 30em; margin-bottom: 34px; }

.routes { border-top: 1px solid var(--line); }
.route { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, padding .25s var(--ease); }
a.route:hover { background: var(--lav); padding-left: 14px; }
.route--static { cursor: default; }
.route-icon { display: grid; place-items: center; width: 48px; height: 48px; background: var(--purple-t); transition: background .2s; }
a.route:hover .route-icon { background: var(--purple); }
.route-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.route-dot { fill: var(--ink); stroke: none; }
.route-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.route-text b { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.route-text span { font-size: 16px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.route-go { font-size: 20px; color: var(--violet); transition: transform .25s var(--ease); }
a.route:hover .route-go { transform: translateX(4px); }

/* ---------- the brief card ---------- */
.brief-wrap { position: relative; padding: 0 0 30px 30px; }
.brief-wrap::before { content: ""; position: absolute; inset: 44px 30px 0 0; background: var(--blue); }
.brief { position: relative; z-index: 1; background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.14); }
.brief-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.brief-tab { position: relative; padding: 18px 12px; border: 0; background: transparent; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.brief-tab:hover { color: var(--text); background: var(--lav); }
.brief-tab.is-on { color: #fff; background: var(--ink); }
.brief-panel { padding: clamp(24px, 3vw, 40px); }
.brief-panel[hidden] { display: none; }
.brief-panel:not([hidden]) { animation: panel-in .4s var(--ease); }
.brief-title { font: 400 clamp(28px, 2.8vw, 38px)/1.1 var(--serif); letter-spacing: -.025em; margin-bottom: 10px; }
.brief-intro { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 24px; max-width: 34em; }

/* form fields (the Webflow classes are kept so the form still works there) */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 600; }
.field { display: block; width: 100%; margin-bottom: 18px; padding: 13px 14px; border: 1px solid #cfcfd4; border-radius: 0; background: #fff; color: var(--text); font: 400 15px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s; }
.field::placeholder { color: #8b8b94; }
.field:hover { border-color: #9a9aa3; }
.field:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(148,122,211,.25); }
textarea.field { min-height: 116px; resize: vertical; }
select.field { appearance: none; background: #fff no-repeat right 14px center / 12px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23111216' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m1 1.5 5 5 5-5'/></svg>"); padding-right: 38px; }
.optional { color: var(--muted); font-weight: 400; }
.more-toggle { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 0; border: 0; background: transparent; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
.more-toggle:hover { color: var(--violet); }
.more-plus { position: relative; flex: none; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%; }
.more-plus::before, .more-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.more-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.more-toggle[aria-expanded="true"] .more-plus::after { transform: translate(-50%, -50%) rotate(0); }
.more:not([hidden]) { animation: panel-in .35s var(--ease); }
.button--block { display: flex; width: 100%; }
input.button { appearance: none; border-radius: 0; }
.w-form-done, .w-form-fail { display: none; }
.w-form-done.is-shown { display: block; padding: 22px; background: var(--purple-t); font-weight: 600; }
.w-form-done > div { display: flex; align-items: center; gap: 14px; }
.w-form-fail { margin-top: 14px; padding: 14px 18px; background: #fdecec; color: #8a1c1c; }
.brief-actions { display: grid; gap: 12px; margin-bottom: 18px; }
.small-note { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- live roles (third-party widget, restyled to the brand) ---------- */
.jobs-preview { background: #fff; }
#hiresome-jobs { max-width: none !important; margin: 0 !important; padding: 0 !important; font-family: inherit !important; min-height: 120px; }
#hiresome-jobs:empty::before { content: "Open roles load here."; display: block; padding: 28px; border: 1px dashed #bdbdc4; color: var(--muted); }
#hiresome-jobs * { font-family: inherit !important; border-radius: 0 !important; }
#hiresome-jobs .hiresome-filter-select { border: 1px solid var(--line); padding: 12px 14px; background: #fff; color: var(--text); font-size: 15px; }
#hiresome-jobs .hiresome-job { border: 1px solid var(--line); background: #fff; box-shadow: none; transition: border-color .2s, transform .2s; }
#hiresome-jobs .hiresome-job:hover { border-color: var(--purple); transform: translateY(-2px); }
#hiresome-jobs .hiresome-job-title, #hiresome-jobs .hiresome-job-title * { color: var(--text); font-weight: 700; }
#hiresome-jobs .hiresome-job-detail { color: var(--muted); }
#hiresome-jobs .hiresome-job-apply-btn { background: var(--ink) !important; color: #fff !important; text-decoration: none; }
#hiresome-jobs .hiresome-job-apply-btn:hover { background: var(--violet-d) !important; }
#hiresome-jobs .hiresome-pagination-btn { border: 1px solid var(--line); }
.jobs-preview #hiresome-jobs .hiresome-filters, .jobs-preview #hiresome-jobs .hiresome-pagination { display: none !important; }
.jobs-preview #hiresome-jobs .hiresome-job:nth-of-type(n+6) { display: none !important; }

/* ---------- candidates band (closes the page) ---------- */
.cand-band { padding: clamp(64px, 8vw, 96px) 0; background: var(--purple-t); }
.cand-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: end; }
.cand-band .closing-title { margin-bottom: 0; }
.cand-copy { max-width: 30em; margin-bottom: 22px; color: rgba(0,0,0,.8); }
.cand-band .light-link { color: var(--ink); border-bottom-color: var(--purple); }
.cand-band .small-note { margin-top: 14px; }

@media (max-width: 1020px) {
  .contact-grid, .cand-band-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid > *, .cand-band-grid > * { min-width: 0; }
}
@media (max-width: 560px) {
  .brief-wrap { padding: 0 0 22px 14px; }
  .brief-wrap::before { inset: 34px 14px 0 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .route { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; }
  .route-icon { width: 44px; height: 44px; }
  .brief-tab { font-size: 13px; padding: 16px 8px; }
}
