/* Redlab — the brief: the ask beside the enquiry form, with promises and the person who answers.
   Used as the first screen of Contact and as the closing block of every service page.
   Also holds the four-stop route ("What happens next"). Loaded after base.css. */

/* ==========================================================================
   Brief layout: left — the ask, promises, the person; right — the form.
   ========================================================================== */
.brief { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 88px); align-items: stretch; }
.brief-side { display: flex; flex-direction: column; gap: clamp(28px, 4vh, 44px); }
.brief-intro { display: grid; gap: 20px; }
.brief-intro .descriptor { margin-bottom: clamp(4px, 1.5vh, 16px); }
.brief-title { font-size: clamp(44px, 5vw, 80px); line-height: .94; letter-spacing: -.055em; }
.brief-lead { max-width: 26em; font-size: var(--t-lead); line-height: 1.5; color: var(--muted); }

/* Promises: a key on the left, one line beside it — the proof numbers' voice, small. */
.promises { border-top: 1px solid var(--hair); }
.promises li { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 60px; padding-block: 10px; border-bottom: 1px solid var(--hair); font-size: var(--t-body); line-height: 1.4; color: var(--ink-2); }
.promise-key { font-size: 28px; font-weight: 300; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.promises li:first-child .promise-key { color: var(--red); }
.promise-clutch { display: block; }
.promise-clutch .clutch-mark { width: 72px; }
.promises li b:not(.promise-key) { font-weight: 600; color: var(--ink); }

/* The person who answers: a face, a name, a direct way to their calendar. */
.person { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: auto; padding: 12px 12px 12px 12px; border: 1px solid var(--hair); border-radius: var(--r-pill); background: var(--white); }
.person-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.person-text { display: grid; font-size: var(--t-small); line-height: 1.35; color: var(--muted); }
.person-text b { font-size: var(--t-body); font-weight: 600; color: var(--ink); }
.person-call { display: inline-flex; align-items: center; min-height: var(--control); padding: 0 20px; border-radius: var(--r-pill); background: var(--surface); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .25s var(--ease), color .25s var(--ease); }
.person-call::after { content: '↓'; margin-left: 8px; transition: transform .25s var(--ease); }
.person-call:hover { background: var(--ink); color: #fff; }
.person-call:hover::after { transform: translateY(2px); }

/* ==========================================================================
   The form sits in the same tray as How we help: a warm frame, a white sheet.
   ========================================================================== */
.brief-form { display: grid; padding: 8px; border: 1px solid var(--hair); border-radius: var(--r-l); background: var(--surface); }
.enquiry, .enquiry-done { display: grid; align-content: start; gap: 20px; padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--white); }
.field-label { display: block; margin-bottom: 8px; padding: 0; font-size: var(--t-small); font-weight: 500; color: var(--ink-2); }
.field-label .req { color: var(--red); }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
.field { display: grid; align-content: start; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--r-s); background: var(--surface);
  font: inherit; font-size: var(--t-body); color: var(--ink); outline: none; appearance: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 108px; padding-block: 12px; line-height: 1.5; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--hair); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgb(229 55 42 / .12); }
.field textarea::placeholder { color: var(--faint); }
.select { position: relative; display: block; }
.select select { padding-right: 44px; cursor: pointer; }
.select select:invalid, .select select:has(option[value='']:checked) { color: var(--faint); }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field-error { display: none; margin-top: 6px; font-size: var(--t-small); color: var(--red); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--red); background: var(--white); }
.field.is-invalid .field-error { display: block; }

/* Files: a dashed strip that lights up while something is dragged over it. */
.drop { display: grid; gap: 10px; }
.drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-zone {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px;
  border: 1px dashed #d6d0c9; border-radius: var(--r-s); background: var(--paper); cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.drop-zone:hover, .drop.is-over .drop-zone { border-color: var(--ink); background: var(--white); }
.drop.is-over .drop-zone { border-style: solid; border-color: var(--red); background: #fff6f4; }
.drop-input:focus-visible + .drop-zone { outline: 2px solid var(--red); outline-offset: 3px; }
.drop-icon { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); }
.drop-icon::before { content: ''; position: absolute; left: 50%; top: 11px; width: 1.5px; height: 14px; margin-left: -.75px; background: var(--ink); }
.drop-icon::after { content: ''; position: absolute; left: 50%; top: 11px; width: 7px; height: 7px; margin-left: -4px; border: solid var(--ink); border-width: 1.5px 0 0 1.5px; transform: rotate(45deg); }
.drop.is-over .drop-icon { background: var(--red); }
.drop.is-over .drop-icon::before { background: #fff; }
.drop.is-over .drop-icon::after { border-color: #fff; }
.drop-text { display: grid; font-size: var(--t-small); line-height: 1.4; color: var(--muted); }
.drop-text b { font-size: 15px; font-weight: 500; color: var(--ink); }
.drop-touch { display: none; }
@media (hover: none) { .drop-fine { display: none; } .drop-touch { display: inline; } }
.drop-list { display: flex; flex-wrap: wrap; gap: 8px; }
.drop-list:empty { display: none; }
.drop-list li { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; padding: 0 6px 0 14px; border-radius: var(--r-pill); background: var(--surface); font-size: var(--t-small); }
.drop-list .file-name { overflow: hidden; max-width: 22ch; text-overflow: ellipsis; white-space: nowrap; }
.drop-list .file-size { color: var(--muted); }
.drop-list button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--white); font-size: 15px; line-height: 1; cursor: pointer; }
.drop-list button:hover { background: var(--ink); color: #fff; }
.drop-error { font-size: var(--t-small); color: var(--red); }

/* Send row: consent on the left (ticked by default, can be unticked), the button on the right. */
.enquiry-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 20px; border-top: 1px solid var(--hair); }
.consent { display: grid; gap: 6px; max-width: 30em; }
.consent-note { display: block; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.consent-note a { color: var(--ink); text-underline-offset: 3px; }
.consent-note a:hover { color: var(--red); }
.consent.is-invalid .field-error { display: block; }
.check { position: relative; display: block; font-size: var(--t-small); line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.check > span { position: relative; display: block; padding-left: 32px; }
.check > span::before {
  content: ''; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border: 1px solid #cfcac4; border-radius: 6px; background: var(--white) center / 12px no-repeat;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.check input:checked + span::before { border-color: var(--ink); background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.8 9 10 3' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input:focus-visible + span::before { outline: 2px solid var(--red); outline-offset: 3px; }
.consent.is-invalid .check span::before { border-color: var(--red); }
.check a { color: var(--ink); text-underline-offset: 3px; }
.check a:hover { color: var(--red); }
.enquiry-foot .button { flex: none; }

/* Sent: the sheet keeps its place; the mark is the brand's red dot with a tick. */
.enquiry-done { justify-items: start; align-content: center; gap: 16px; outline: none; }
.enquiry-done[hidden], .enquiry[hidden] { display: none; }
.enquiry-done h2 { font-size: var(--t-h2); }
.enquiry-done p { max-width: 30em; font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); }
.enquiry-done .actions { margin-top: 12px; }
.done-mark { position: relative; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 12px 30px -10px rgb(229 55 42 / .7); }
.done-mark::after { content: ''; position: absolute; left: 20px; top: 16px; width: 12px; height: 20px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ==========================================================================
   Route: four stops on one line; the first one is lit.
   ========================================================================== */
.route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.route li { position: relative; display: grid; align-content: start; gap: 12px; padding-top: 32px; padding-right: clamp(8px, 2vw, 32px); border-top: 1px solid var(--hair); }
.route li::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--graphic); box-shadow: 0 0 0 4px var(--paper); }
.route li:first-child::before { background: var(--red); }
.route-n { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); }
.route p { font-size: var(--t-body); line-height: 1.5; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .enquiry-done:not([hidden]) { animation: panel-in .45s var(--ease); }
  .done-mark { animation: done-pop .6s var(--ease) both; }
}
@keyframes done-pop { from { transform: scale(.4); opacity: 0; } }

/* Short laptop screens: tighten the brief so the send button still shows. */
@media (min-width: 1081px) and (max-height: 820px) {
  .brief-title { font-size: clamp(40px, 4.2vw, 64px); }
  .brief-side { gap: 24px; }
  .promises li { min-height: 52px; }
  .enquiry { gap: 16px; }
  .field textarea { min-height: 76px; }
  .drop-zone { min-height: 56px; }
}

/* Tablet */
@media (max-width: 1080px) {
  .brief { grid-template-columns: 1fr; }
  /* One column: the form comes right after the ask; promises and the person follow it. */
  .brief-side { display: contents; }
  .brief-intro { order: 1; }
  .brief-form { order: 2; }
  .promises { order: 3; }
  .person { order: 4; margin-top: 0; }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

/* Phone */
@media (max-width: 760px) {
  .brief-title { font-size: clamp(44px, 12vw, 64px); }
  .brief-form { margin-inline: -8px; }
  .fields { grid-template-columns: 1fr; }
  .person { grid-template-columns: 48px minmax(0, 1fr); border-radius: var(--r-l); }
  .person-photo { width: 48px; height: 48px; }
  .person-call { grid-column: 1 / -1; justify-content: center; }
  .enquiry-foot { flex-direction: column; align-items: stretch; }
  .enquiry-foot .button { width: 100%; }
  .route { grid-template-columns: 1fr; row-gap: 32px; }
}

/* ==========================================================================
   Call: who you'll talk to on the left, the open calendar on the right.
   Shared by Contact and the service pages, so it lives next to the brief.
   ========================================================================== */
.call { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 88px); align-items: start; }
.call-side { position: sticky; top: 110px; display: grid; gap: 20px; }
.call-side .section-sub { max-width: 26em; }
.call-host { position: relative; overflow: hidden; width: min(100%, 320px); margin-top: 12px; border-radius: var(--r-l); background: var(--surface); }
.call-host img { display: block; width: 100%; aspect-ratio: 8 / 9; object-fit: cover; }
.call-host figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; padding: 12px 16px; border-radius: var(--r-m); background: rgb(255 255 255 / .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: var(--t-small); color: var(--muted); }
.call-host figcaption b { font-size: var(--t-body); font-weight: 600; color: var(--ink); }
.call-agenda-title { margin-top: 4px; font-size: var(--t-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.call-agenda { display: grid; gap: 10px; }
.call-agenda li { display: flex; gap: 12px; font-size: var(--t-body); color: var(--ink-2); }
.call-agenda li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--red); }
.call-frame { position: relative; display: grid; padding: 8px; border: 1px solid var(--hair); border-radius: var(--r-l); background: var(--surface); }
.call-frame iframe { display: block; width: 100%; height: 860px; border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--white); }
.call-fallback { justify-self: end; margin: 10px 8px 2px; font-size: var(--t-small); color: var(--muted); text-underline-offset: 3px; }
.call-fallback:hover { color: var(--red); }
/* Calendly waits for consent (js/consent.js): until then this card stands in its place. 20 Nov 2026. */
.consent-embed { display: grid; align-content: center; justify-items: start; gap: 16px; height: 100%; min-height: 560px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-m); background: var(--white); border: 1px solid var(--hair); }
.consent-embed[hidden] { display: none; }
.consent-embed .consent-mark { width: 12px; height: 12px; background: var(--red); }
.consent-embed h3 { font-size: var(--t-h3); font-weight: 500; letter-spacing: -.01em; }
.consent-embed p { max-width: 30em; font-size: var(--t-small); line-height: 1.55; color: var(--muted); }
.consent-embed .consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.consent-embed .consent-actions a { font-size: var(--t-small); color: var(--ink); text-underline-offset: 3px; }
.consent-embed .consent-actions a:hover { color: var(--red); }
iframe[data-consent-src][hidden] { display: none; }
@media (max-width: 1080px) {
  .call { grid-template-columns: 1fr; }
  .call-side { position: static; }
  .call-host { display: none; }
}
@media (max-width: 760px) {
  .call-frame { margin-inline: -8px; }
  .call-frame iframe { height: 760px; }
}
