/* River Business family of sites — forms, footer, responsive and still mode. Loaded after sections.css. */
/* ---------- Contact form (opens an email) ---------- */
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form { display: grid; gap: 18px; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; font: 400 1rem/1.4 var(--body);
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); transition: border-color .2s, box-shadow .2s;
}
.t-ink .field input, .t-ink .field select, .t-ink .field textarea, .t-deep .field input, .t-deep .field select, .t-deep .field textarea { background: rgba(245,241,234,.05); border-color: rgba(245,241,234,.28); }
.field select option { color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242,163,58,.3); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--fg-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--amber); flex: none; }
.form-note { font-size: 0.9rem; color: var(--fg-soft); }
.form-status { font-weight: 600; min-height: 1.4em; }
.contact-list { display: grid; gap: 22px; }
.contact-list .c-item { border-top: 1px solid var(--line); padding-top: 18px; }
.contact-list .c-label { color: var(--fg-soft); font-size: 0.92rem; margin-bottom: 4px; }
.contact-list .c-value { font: 700 clamp(1.2rem, 2vw, 1.6rem)/1.2 var(--display); font-stretch: 106%; }
.contact-list .c-value a { text-decoration: none; }
.contact-list .c-value a:hover { color: var(--amber); }

/* ---------- Close ---------- */
.close { position: relative; padding: calc(var(--section-pad) * 1.15) var(--gutter); overflow: hidden; }
.close::before {
  content: ""; position: absolute; width: 70vw; height: 70vw; right: -20vw; top: -30vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 163, 58, 0.22), rgba(242, 163, 58, 0) 65%); pointer-events: none;
}
.close > * { position: relative; z-index: 2; }
.close-title { font: 900 clamp(3rem, 10vw, 10rem)/0.9 var(--display); font-stretch: 125%; letter-spacing: -0.035em; margin-bottom: 0.25em; }
.close-title.is-mid { font-size: clamp(2.6rem, 7.4vw, 7.4rem); }
.close-sub { max-width: 48ch; font-size: 1.2rem; color: var(--fg-soft); }
.close-doors { display: flex; flex-wrap: wrap; gap: 12px; margin: 44px 0 40px; }
.close-doors .river-end { left: 0; top: 50%; background: var(--bg); }
.close-contact { display: flex; flex-wrap: wrap; gap: 10px 32px; color: var(--fg-soft); }
.close-contact a { color: var(--fg); text-underline-offset: 5px; }
.close .risk { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--mist); padding: 64px var(--gutter) 40px; font-size: 0.95rem; }
.footer-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--mist-faint); }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.footer-cols h2 { font: 600 0.85rem/1.2 var(--body); color: var(--sand); margin-bottom: 14px; letter-spacing: .02em; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-cols a, .footer-sites a, .footer-legal a { text-decoration: none; }
.footer-cols a:hover, .footer-sites a:hover, .footer-legal a:hover { color: var(--sand); text-decoration: underline; text-underline-offset: 4px; }
.footer-mid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; padding: 26px 0; border-bottom: 1px solid var(--mist-faint); }
.footer-sites, .footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-sites a[aria-current="true"] { color: var(--sand); }
.footer-bottom { padding-top: 24px; display: grid; gap: 8px; }
.footer-bottom a { color: var(--sand); }

/* ---------- Responsive ---------- */
.brand { flex: none; }
@media (max-width: 1520px) {
  [data-site="djm"] .main-nav { display: none; }
}
@media (max-width: 1360px) {
  [data-site="pfe"] .main-nav, [data-site="ffe"] .main-nav, [data-site="lv"] .main-nav { display: none; }
}
@media (max-width: 1240px) {
  .main-nav { display: none; }
}
@media (max-width: 980px) {
  .mega { grid-template-columns: 1fr; padding-top: calc(110px + env(safe-area-inset-top, 0px)); }
  .mega-side { display: none; }
  .process-grid { grid-template-columns: 1fr; }
  .process-stage { top: 84px; height: 38vh; margin-top: 32px; z-index: 4; }
  .steps { padding: 30vh 0 24vh; }
  .step { min-height: 60vh; }
  .people-grid { grid-template-columns: 1fr; }
  .people-photo { max-width: 360px; }
  .split, .contact-grid, .prose-grid { grid-template-columns: minmax(0, 1fr); }
  .split.flip .split-media { order: 0; }
  .prose-aside { position: static; }
  .footer-top { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .proof-grid, .proof-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .door-row { flex-direction: column; height: auto; }
  .door { min-height: 400px; flex: none; }
  .door-text, .door-link { opacity: 1; max-height: none; }
  .door-text { margin-top: 12px; } .door-link { margin-top: 14px; }
  .door-img { transform: none; filter: saturate(0.9) brightness(0.7); }
  .who .section-head { max-width: none; }
  .who-map { height: auto; }
  .who-lines, .who-core > .river-node { display: none; }
  .who-core { position: relative; top: auto; left: auto; transform: none; white-space: normal; border-radius: var(--radius-media); }
  .who-branches { position: relative; top: auto; grid-template-columns: 1fr; gap: 0; margin-top: 18px; border-left: 2px solid var(--line); margin-left: 24px; }
  .who-branch { text-align: left; padding: 18px 0 18px 26px; }
  .who-branch::before { left: -1px; top: 26px; }
  .row { grid-template-columns: 1fr; }
  .ticks.cols { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .door-text, .door-link { opacity: 1; max-height: none; }
  .door-text { margin-top: 12px; } .door-link { margin-top: 14px; }
  .x-preview { display: none; }
}
@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .site-header { height: 64px; gap: 12px; }
  .brand { flex: 0 1 auto; min-width: 0; gap: 10px; }
  .brand-name { font-size: 1rem; }
  .brand-line { font-size: 0.6rem; white-space: normal; max-width: 150px; }
  .mark { width: 38px; height: 38px; }
  .menu-toggle { flex: none; padding: 0 12px; gap: 8px; }
  .header-right { flex: none; }
  .header-cta { display: none; }
  .hero-copy { bottom: 128px; }
  .hero-controls { left: var(--gutter); right: auto; justify-content: flex-start; bottom: 26px; }
  .phero .media-tag { right: auto; left: var(--gutter); }
  .scroll-cue { display: none; }
  .sec, .statement, .close { padding-left: calc(var(--gutter) + 14px); }
  .statement > .river-node { left: 17px; }
  .section-head > .river-node, .people-copy > .river-node, .head-node, .split-head > .river-node,
  .door-row > .river-way, .process-grid > .river-way { left: -17px; }
  .proof-grid, .proof-grid.three { grid-template-columns: 1fr; }
  .step { padding-left: 64px; }
  .step .step-num { left: 18px; width: 40px; height: 40px; }
  .stack-card .tracker li span { font-size: 0.66rem; }
  .close-doors .btn { width: 100%; justify-content: flex-start; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; max-width: 100%; }
  .close-doors .btn { text-align: left; }
  .form .pair { grid-template-columns: 1fr; }
  .x-arrow { width: 38px; height: 38px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Still mode for visitors who turn motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero, .phero { height: 100vh; }
  .bp-draw, .ps-check { stroke-dashoffset: 0; }
}

/* Long words, wide pictures and long dropdown options never push a page sideways. */
.prose, .contact-grid > *, .form, .field { min-width: 0; }
.prose { overflow-wrap: break-word; }
.prose img { height: auto; }
.prose table { display: block; overflow-x: auto; }
.field input, .field select, .field textarea { max-width: 100%; min-width: 0; }
.contact-list .c-value { overflow-wrap: anywhere; }
