/* Ad landing pages (/lp/…): the landing layout's header and footer, the hero with the step 1
   card, and the consultation questionnaire (<mt-consultation>, /js/mt-consultation.js).
   Loaded by layout.mjs on every page with `layout: landing`. Brand: DESIGN.md. Parts reused
   from site.css wherever one fits; only what the landing pages need is here.
   Brief: marketing/landing-pages/design-consultation/brief.md. */

/* ---- Header: logo and tap-to-call only ------------------------------------------ */
.lp-header .site-header__inner { align-items: center; }
.lp-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 4px; font-family: var(--font-heading); font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--white); }
.lp-call:hover .lp-call__num { text-decoration: underline; text-underline-offset: 4px; }
.lp-call__icon { flex: none; }
.lp-call, .lp-header .logo__name, .lp-header .logo__tag { white-space: nowrap; }
/* Narrow phones: "Call" sits over the number, so both fit beside the logo inside the photo.
   (460px, not 420: at 430, the big iPhones, the one-line version ran 9px off the screen.) */
@media (max-width: 460px) {
  .lp-call__icon { display: none; }
  .lp-call__words { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .lp-call__label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--sand); }
  .landing .site-header__inner { gap: 12px; padding-inline: 16px; }
}
/* Small Androids (360px): a smaller logo mark, or the number runs off the right edge. */
@media (max-width: 380px) {
  .landing .logo { gap: 8px; }
  .landing .logo__mark { width: 36px; height: 34px; font-size: 15px; }
  .lp-call__num { font-size: 14px; }
}

/* ---- Footer: the legal line only ------------------------------------------------ */
.lp-footer { padding: 28px 0; }
.lp-footer .site-footer__legal { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---- Hero: photo, headline, proof and the step 1 card ----------------------------
   Desktop: the photo fills the frame; headline, lead and proof on the left, the card right.
   Phone: the photo sits behind the header and headline only; the proof and the card follow on
   white, so the first screen holds all four (brief §3). The lead drops under the card on a
   phone, where it leads into the prices. */
.lp-hero { position: relative; display: grid; grid-template-columns: var(--pad) minmax(0, 1fr) minmax(360px, 430px) var(--pad); column-gap: 0; margin-top: var(--top); min-height: min(84vh, 800px); border-radius: var(--r-lg); overflow: hidden; background: var(--indigo); color: var(--white); }
.lp-hero__media { position: absolute; inset: 0; margin: 0; }
.lp-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.lp-hero__media::after { content: ''; position: absolute; inset: 0; background: var(--shade); }
.lp-hero__head { position: relative; grid-column: 2; grid-row: 1; align-self: end; padding: clamp(140px, 13vw, 190px) clamp(24px, 4vw, 64px) 0 0; }
.lp-hero__head h1 { max-width: 11em; color: var(--white); }
.lp-hero__lead { position: relative; grid-column: 2; grid-row: 2; max-width: 30em; margin-top: 24px; padding-right: clamp(24px, 4vw, 64px); color: var(--white); }
.lp-hero__proof { position: relative; grid-column: 2; grid-row: 3; align-self: end; max-width: 34em; margin: 32px 0 0; padding: 20px clamp(24px, 4vw, 64px) var(--pad) 0; border-top: 1px solid rgba(255, 255, 255, .35); }
.lp-hero__form { position: relative; grid-column: 3; grid-row: 1 / 4; align-self: end; margin-bottom: calc(var(--pad) + 44px); }
.lp-hero .cut--bottom.cut--at-right { right: -1px; padding: 12px 22px 10px 10px; --cw: 48px; }
.lp-hero .cut__label { font-weight: 500; color: var(--slate); }

/* Proof: stars, a short review, the name and town. White on the photo, Ink on white. */
.lp-proof { margin: 0; }
.lp-proof .review__stars { display: block; margin-bottom: 6px; color: var(--brass); letter-spacing: 2px; }
.lp-proof blockquote { margin: 0; }
.lp-proof figcaption { margin-top: 8px; }
.lp-proof figcaption strong { font-family: var(--font-heading); font-weight: 600; }
.lp-hero .lp-proof blockquote, .lp-hero .lp-proof figcaption { color: var(--white); }

@media (max-width: 900px) {
  /* The photo and the headline share one grid cell, so the photo is always exactly as tall as
     the header and headline over it. */
  .lp-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 0; overflow: visible; background: none; color: var(--ink); }
  .lp-hero__media { position: relative; grid-column: 1; grid-row: 1; border-radius: var(--r-lg); overflow: hidden; }
  .lp-hero__media img { position: absolute; inset: 0; object-position: 50% 40%; }
  .lp-hero__head { grid-column: 1; grid-row: 1; padding: clamp(66px, 12vw, 120px) var(--pad) 14px; }
  /* The subheading straight under the photo and headline, before the proof and the form (Chris,
     11 Oct 2026: headline, subheading and photo are what stop the bounce, so all three are read first). */
  .lp-hero__lead { grid-column: 1; grid-row: 2; margin: 14px 2px 0; padding: 0; color: var(--slate); }
  .lp-hero__proof { grid-column: 1; grid-row: 3; margin: 12px 2px 0; padding: 0; border: 0; }
  .lp-hero__form { grid-column: 1; grid-row: 4; margin: 10px 0 0; }
  .lp-hero .lp-proof blockquote { color: var(--ink); }
  .lp-hero .lp-proof figcaption { color: var(--slate); }
  .lp-hero .lp-proof figcaption strong { color: var(--ink); }
  /* No photo label on phones: it lands on the headline, and making room for it pushes step 1
     below a 660px screen. Price card 1, straight below, is the same Chalfont job with its details. */
  .lp-hero .cut { display: none; }
  .lp-proof .review__stars { display: inline; margin: 0 6px 0 0; }
  .lp-hero .lp-proof blockquote { display: inline; }
  .lp-hero .lp-proof figcaption { margin-top: 2px; }
}
@media (max-width: 700px) {
  .landing .site-header__inner { padding-top: 12px; }
  .lp-hero__proof { margin-top: 8px; }
  .lp-hero__form { margin-top: 10px; }
}
@media (max-width: 420px) {
  .lp-hero__head { padding-inline: 16px; }   /* lines up with the header on narrow phones */
}

/* ---- The questionnaire: the estimator's look ---------------------------------------
   Every value below is copied from mt-calculator.js (its card, .progress, stepHead, .choice,
   proj-card arrow, .fields, .field-label, .input, .actions, .back, .advisory, .reassure), so the
   site has one form style. Two knowing departures, both to DESIGN.md: the eyebrow is Brass Text
   #856928 (the estimator's #C8A24A fails contrast on white), and hover is Stone (the estimator's
   #FAF9F7 isn't a brand colour). The card is a container, so it adapts to its own width the way
   the estimator does (600px). */
.consult-start, .consult__box { position: relative; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-card); color: var(--ink); container: consult / inline-size; }
.consult-start { overflow: hidden; }
.consult__bar { display: block; height: 3px; background: var(--sand); }
.consult__bar > span { display: block; height: 100%; background: var(--brass); transform: scaleX(.25); transform-origin: left; transition: transform .35s ease; }
.consult__body { padding: clamp(28px, 5cqi, 56px); }
.consult__eyebrow { display: block; font-family: var(--font-heading); font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--brass-text); }
.consult__q { margin-top: 10px; font-family: var(--font-heading); font-size: clamp(26px, 4cqi, 34px); font-weight: 700; line-height: 1.1; letter-spacing: -0.5px; color: var(--indigo); outline: none; }
.consult__rule { display: block; width: 56px; height: 2px; margin-top: 20px; background: var(--brass); }
.consult__sub { max-width: 60ch; margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--slate); }
.consult__choices { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.consult__choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 20px; border: 1px solid var(--sand); border-radius: var(--radius-btn); background: var(--white); text-align: left; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.consult__choice:not([aria-pressed="true"]):hover { background: var(--stone); }
.consult__choice[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); }
.consult__text { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.consult__title { font-family: var(--font-heading); font-size: clamp(15px, 2cqi, 16px); font-weight: 600; line-height: 1.4; color: var(--indigo); }
.consult__desc { font-size: 13.5px; line-height: 1.5; color: var(--slate); }
.consult__arrow { flex: none; font-size: 18px; line-height: 1; color: var(--brass); transition: transform .2s ease; }
.consult__choice:hover .consult__arrow { transform: translateX(3px); }
.consult__choice[aria-pressed="true"] .consult__title { color: var(--white); }
.consult__choice[aria-pressed="true"] .consult__desc { color: rgba(255, 255, 255, .75); }
.consult__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.consult__back { min-height: 44px; padding: 0; border: 0; background: none; font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--slate); cursor: pointer; }
.consult__back:hover { color: var(--indigo); }
.consult__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.consult-field { display: flex; flex-direction: column; gap: 8px; }
.consult__label { font-family: var(--font-heading); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); }
.consult__input { width: 100%; padding: 14px 16px; border: 1px solid var(--sand); border-radius: var(--radius-btn); outline: none; background: var(--white); font-family: var(--font-body); font-size: 16px; color: var(--ink); }
.consult__input::placeholder { color: var(--slate); opacity: 1; }
.consult__input:focus { border-color: var(--indigo); }
.consult__input:focus-visible { outline: 2px solid var(--indigo); outline-offset: 0; }
.consult__input[aria-invalid="true"] { border-color: #ba1a1a; }
.consult__why { font-size: 13.5px; line-height: 1.5; color: var(--slate); }
.consult__fielderr, .consult__error { font-size: 14px; line-height: 1.5; color: #ba1a1a; }
.consult__error { margin-top: 16px; }
.consult__advisory { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--brass); border-radius: 2px; background: var(--stone); font-size: 13px; line-height: 1.5; color: var(--slate); }
.consult__consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.45; color: var(--slate); cursor: pointer; }
.consult__consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--indigo); cursor: pointer; }
.consult__reassure { margin-top: 18px; font-size: 15px; color: var(--slate); }
.consult__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consult .consult-step[hidden], .consult[hidden] { display: none; }
@container consult (max-width: 600px) {
  .consult__body { padding: 24px 18px; }
  .consult__fields { grid-template-columns: 1fr; gap: 24px; }
  .consult__actions { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .consult__actions .btn { width: 100%; }
  .consult__back { text-align: center; }
}

/* The hero card on a phone: the same parts, packed tighter, so the whole of step 1 is on the
   first screen at 390 x 660 (brief §3): a smaller question, no set-out line, 44px answer rows,
   and the help line moved under the answers. The overlay keeps the estimator's full sizes. */
@media (max-width: 700px) {
  .lp-hero .consult__body { display: flex; flex-direction: column; padding: 12px 14px 14px; }
  .lp-hero .consult-step { display: flex; flex-direction: column; }
  .lp-hero .consult__q { margin-top: 4px; font-size: 22px; }
  .lp-hero .consult__rule { display: none; }
  .lp-hero .consult__choices { order: 5; gap: 6px; margin-top: 10px; }
  .lp-hero .consult__sub { order: 6; margin-top: 10px; font-size: 14px; line-height: 1.45; }
  .lp-hero .consult__choice { min-height: 44px; padding: 9px 14px; }
  .lp-hero .consult__text { gap: 0; }
  .lp-hero .consult__title { font-size: 15px; line-height: 1.3; }
  .lp-hero .consult__desc { line-height: 1.35; }
  .lp-hero__form { margin-top: 8px; }
}

/* ---- The overlay: steps 1 to 4 over the page, so no section ever changes height ------
   Wide screens: a centred panel over the page dimmed with the phone menu's shade.
   Phones: the whole screen. */
.consult:not([hidden]) { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 4, 32, .55); overscroll-behavior: contain; }
.consult__box { width: min(680px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.consult__head { position: sticky; top: 0; z-index: 1; background: var(--white); }
.consult__panelbar { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 8px 6px clamp(18px, 5cqi, 56px); border-bottom: 1px solid var(--sand); }
.consult__panelname { flex: 1; font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--indigo); }
.consult__close { position: relative; flex: none; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
.consult__close::before, .consult__close::after { content: ''; position: absolute; left: 12px; top: 23px; width: 24px; height: 2px; background: var(--ink); transform: rotate(45deg); }
.consult__close::after { transform: rotate(-45deg); }
body.consult-open { overflow: hidden; }
@media (max-width: 700px) {
  .consult:not([hidden]) { padding: 0; align-items: stretch; }
  .consult__box { width: 100%; max-height: none; height: 100dvh; border: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); }
  /* The phone bar never covers the step 1 card, and hides while the form is open. */
  .consult-start-in-view .phone-bar.is-shown, .consult-open .phone-bar.is-shown { transform: translateY(110%); visibility: hidden; }
  .phone-bar button.btn { width: 100%; padding-inline: 12px; }
}

/* ---- Real jobs, real prices -------------------------------------------------------- */
.lp-jobs .photo-card__meta { margin-top: 18px; }
.lp-jobs .photo-card__text { max-width: none; color: var(--ink); }
.lp-price { display: grid; gap: 2px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--sand); }
.lp-jobs .photo-card__text { margin-bottom: 20px; }
.lp-price strong { color: var(--indigo); }
.lp-price span { color: var(--slate); }
.lp-jobs .photo-card { height: 100%; }

/* ---- Page glue: small settings on the site's own parts ------------------------------ */
.lp-strip .strip__title { max-width: 22em; }
.lp-steps-note { margin-top: 28px; max-width: 60ch; color: var(--slate); }
.lp-person .ticks { grid-template-columns: 1fr; margin-top: 32px; }
.lp-review .btn { margin-top: 32px; }
.lp-close .btn-row { align-items: center; }
.lp-close .band__list a { grid-template-columns: minmax(0, 1fr) auto; }
.lp-close .band__list span { grid-column: 1; grid-row: 2; }
@media (max-width: 700px) { .lp-review .btn { width: 100%; } }

/* ---- Thank-you page ------------------------------------------------------------------- */
.lp-thanks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); gap: 32px 64px; align-items: end; }
.lp-thanks .frame img { aspect-ratio: 1; object-position: 50% 30%; }
/* Chris's photo says who visits (Chris, 16 Oct 2026): the copy says "we", the face says he walks the space. */
.lp-thanks__me { margin: 0; }
.lp-thanks__me figcaption { margin-top: 14px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.lp-thanks__me figcaption strong { display: block; color: var(--white); font-weight: 600; }
.lp-thanks .frame-hero__lead a { text-decoration: underline; text-underline-offset: 3px; }
.lp-thanks .frame-hero__lead strong { font-weight: 600; }
.lp-book .calendly-inline-widget { min-width: 320px; height: 700px; margin-top: 32px; border-radius: var(--r-md); overflow: hidden; background: var(--white); }
@media (max-width: 700px) {
  .lp-thanks { grid-template-columns: 1fr; }
  .lp-thanks__me { order: -1; display: flex; align-items: center; gap: 16px; }
  .lp-thanks .frame { width: 88px; flex: none; }
  .lp-thanks__me figcaption { margin-top: 0; }
  .lp-next .btn { width: 100%; }
}
/* The hidden booking block still counts as the section before this one, and the site drops the
   top gap between two white sections. Put the gap back under the hero. */
.framed .lp-book[hidden] + .lp-next { padding-top: clamp(72px, 8.5vw, 140px); }
/* Thank-you on a phone: a shorter hero, so the next step starts on the first screen. */
@media (max-width: 700px) {
  .framed .lp-thanks-hero .frame-hero__body { padding-top: 92px; padding-bottom: 36px; }
  .lp-thanks { gap: 20px; }
  .lp-thanks .frame { width: 88px; }
  .framed .lp-book[hidden] + .lp-next, .framed .lp-book { padding-top: 40px; }
}
