/* =========================================================
   VALLEY FORGE BUILDERS — ad landing page (/consultation)
   Standalone page chrome (no site navigation). Form components come
   from contact.css; this file lays them out for conversion.
   ========================================================= */

body[data-page="consultation"] { padding-top: 0; padding-bottom: 0; } /* the site-wide mobile bar is not used here */
#contact-form, #reviews { scroll-margin-top: 72px; }

.lp-eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--c-ink-soft); font-weight: 500;
}
.lp-eyebrow a { border-bottom: 1px solid currentColor; }
.lp-stars { color: #B98A3A; letter-spacing: 2px; }
.lp-optional { text-transform: none; letter-spacing: 0; font-family: var(--f-sans); color: var(--c-ink-soft); }
a[href^="tel:"] { white-space: nowrap; }

/* ---------- Header: brand + call only ---------- */
.lp-header {
  position: sticky; top: 0; z-index: 70;
  background: color-mix(in srgb, var(--c-bg) 94%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.lp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; }
.lp-brand img { width: 36px; height: 36px; object-fit: contain; }
.lp-brand__name {
  font-family: var(--f-serif); font-size: 19px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em;
  display: grid;
}
.lp-brand__name small {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--c-ink-soft); margin-top: 3px;
}
.lp-header__call {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: var(--c-ink); color: var(--c-bg);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em;
}
.lp-header__call svg { width: 16px; height: 16px; }
.lp-header__call-label { display: none; }

/* ---------- Hero + form ----------
   Desktop: a real finished-project photo fills the hero, headline on the
   left over a dark gradient, form card on the right.
   Phone: the photo shows clearly at the top, the headline sits on its
   darkened lower part, and the form card overlaps the photo's bottom edge. */
.lp-hero { position: relative; isolation: isolate; color: #fff; padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 5vw, 80px); }
.lp-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.lp-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--c-dark); }
.lp-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; filter: brightness(1.15) saturate(1.1) contrast(1.04); }
.lp-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 26, 43, 0.9) 0%, rgba(14, 26, 43, 0.74) 36%, rgba(14, 26, 43, 0.3) 56%, rgba(14, 26, 43, 0.08) 100%);
}
.lp-hero__credit {
  position: absolute; right: 16px; bottom: 12px; z-index: 1;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.lp-hero .lp-eyebrow { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 8px rgba(14, 26, 43, 0.9); }
.lp-hero h1 { margin-top: 14px; font-size: clamp(40px, 4.4vw, 62px); line-height: 1.04; color: #fff; text-shadow: 0 2px 24px rgba(14, 26, 43, 0.5); }
.lp-hero h1 em { font-style: italic; color: var(--c-ivory); font-weight: 400; }
.lp-sub { margin-top: 18px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: var(--c-ivory); max-width: 44ch; }
.lp-trust {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.lp-trust li, .lp-trust a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
}
.lp-trust li {
  padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(14, 26, 43, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lp-trust li::before { content: "✓"; color: #D9B26A; font-weight: 700; }
.lp-trust li:first-child::before { content: none; }
.lp-trust .lp-stars { font-size: 12px; letter-spacing: 1px; color: #E3BC6E; }

.lp-hero__quote {
  margin: 28px 0 0; max-width: 44ch; padding-left: 16px; border-left: 2px solid #D9B26A;
  font-family: var(--f-serif); font-size: 21px; line-height: 1.35; font-style: italic; color: #fff;
}
.lp-hero__quote cite {
  display: block; margin-top: 8px; font-style: normal;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-ivory-soft);
}
.lp-hero__quote .lp-stars { color: #E3BC6E; margin-left: 4px; }
.lp-hero__copy { color: #fff; }
.lp-hero .lp-form, .lp-hero .lp-form__alt { color: var(--c-ink); }
.lp-hero .lp-form__alt { color: var(--c-ivory); background: rgba(14, 26, 43, 0.72); padding: 10px 14px; margin-top: 10px; }
.lp-hero .lp-form__alt a { color: #fff; }
.lp-work__item figcaption {
  margin-top: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-ink-soft);
}

/* Form card */
.lp-form { position: sticky; top: 84px; }
.lp-form .form-card { padding: 28px 28px 30px; box-shadow: 0 18px 50px rgba(14, 26, 43, 0.08); }
.lp-form__head { margin-bottom: 18px; }
.lp-form__title { font-family: var(--f-serif); font-size: 28px; line-height: 1.1; font-weight: 500; }
.lp-form__meta { margin-top: 6px; font-size: 13.5px; color: var(--c-ink-soft); }
.lp-form .step-meta { margin-top: 10px; margin-bottom: 18px; }
.lp-form .step h2 { font-size: 26px; margin-bottom: 4px; }
.lp-form .step__hint { font-size: 14px; margin-bottom: 18px; }
.lp-form .ptype-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.lp-form .ptype { padding: 16px; min-height: 72px; align-content: center; }
.lp-form .ptype__icon { width: 24px; height: 24px; }
.lp-form .ptype__name { font-size: 19px; }
.lp-form .field { gap: 8px; margin-bottom: 18px; }
.lp-form .field label, .lp-form .field__label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-ink-soft);
}
.lp-form .field input, .lp-form .field select, .lp-form .field textarea { padding: 14px 16px; }
.lp-form .field textarea { min-height: 84px; }
/* budget radios stay keyboard-focusable */
.lp-form .budget input { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lp-form .budget label { position: relative; padding: 12px 10px; }
.lp-form .budget label:focus-within { outline: 2px solid var(--c-accent); outline-offset: 2px; }
/* five project types: 3 + 2 on desktop, 2 + 2 + 1 (full width) on phones */
.lp-form .lp-ptype-5 { grid-template-columns: repeat(3, 1fr); }
.lp-form .lp-ptype-5 .ptype { min-height: 64px; padding: 12px; }
.lp-form .lp-ptype-5 .ptype__name { font-size: 17px; }
.success__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.success__actions .success__call { margin-top: 0; }
.lp-form .ptype:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.lp-form .actions { margin-top: 18px; gap: 12px; }
.lp-form .actions .btn-back { white-space: nowrap; flex: none; }
.lp-form .actions .btn { white-space: nowrap; flex: 1; max-width: 320px; min-height: 52px; letter-spacing: 0.12em; }
.lp-btn-dark { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.lp-btn-dark:hover { background: var(--c-accent); color: var(--c-dark); border-color: var(--c-accent); }
.lp-submit { font-weight: 600; }
.lp-form .form-consent { font-size: 12px; }
.lp-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-form__alt { margin-top: 12px; font-size: 14px; color: var(--c-ink-soft); text-align: center; }
.lp-form__alt a { color: var(--c-ink); font-weight: 600; border-bottom: 1px solid var(--c-accent); }

/* Success state */
.lp-form .success { padding: 8px 0; }
.lp-form .success h2 { font-size: 28px; }
.success__lede { color: var(--c-ink-soft); font-size: 15.5px; line-height: 1.55; }
.success__lede a { color: var(--c-ink); font-weight: 600; }
.success__next { text-align: left; margin: 20px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--c-ink-soft); }
.success__next strong { color: var(--c-ink); }
.success__call { margin-top: 20px; min-height: 48px; }
.success__id { display: block; width: fit-content; margin: 16px auto 0; }

/* ---------- Content sections ---------- */
.lp-section { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--c-line); }
.lp-section h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; max-width: 24ch; }
.lp-section-head { margin-bottom: 28px; }
.lp-section-head h2 { margin-top: 10px; }

.lp-reviews { background: var(--c-surface); }
.lp-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-review {
  margin: 0; padding: 24px; background: var(--c-bg); border: 1px solid var(--c-line);
  display: grid; gap: 14px; align-content: start;
}
.lp-review blockquote { margin: 0; font-family: var(--f-serif); font-size: 20px; line-height: 1.35; }
.lp-review figcaption { font-size: 13.5px; color: var(--c-ink-soft); }
.lp-review figcaption a { color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.lp-promises__grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--c-line); background: var(--c-surface); }
.lp-promise { padding: 26px 24px; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.lp-promise:last-child { border-right: 0; }
.lp-promise { border-bottom: 0; }
.lp-promise h3 { font-size: 23px; }
.lp-promise p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--c-ink-soft); }
.lp-promise a { color: var(--c-ink); border-bottom: 1px solid var(--c-accent); }

.lp-work__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lp-work__item { margin: 0; }
.lp-work__item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-line); }
.lp-work__visit { margin-top: 22px; font-size: 16px; color: var(--c-ink-soft); }
.lp-work__visit a { color: var(--c-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Founder: the differentiator, on a dark band */
.lp-team { background: var(--c-dark); color: var(--c-ivory); border-top: 0; }
.lp-team__inner { max-width: 860px; }
.lp-team h2 { color: #fff; }
.lp-team p { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--c-ivory); max-width: 64ch; }

.lp-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-steps__list li { padding: 24px; border: 1px solid var(--c-line); background: var(--c-surface); }
.lp-steps__list span { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; color: #8A6220; }
.lp-steps__list h3 { margin-top: 10px; font-size: 23px; }
.lp-steps__list p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--c-ink-soft); }


.lp-cta { background: var(--c-dark); color: var(--c-ivory); padding: clamp(56px, 7vw, 88px) 0; }
.lp-cta__inner { text-align: center; }
.lp-cta h2 { color: #fff; font-size: clamp(30px, 3.6vw, 48px); max-width: 22ch; margin: 0 auto; }
.lp-cta p { margin-top: 12px; color: var(--c-ivory-soft); font-size: 15px; }
.lp-cta__actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-cta__actions .btn { min-height: 54px; padding-left: 26px; padding-right: 26px; }

.lp-footer { background: var(--c-dark); color: var(--c-ivory-soft); border-top: 1px solid var(--c-dark-2); padding: 28px 0 32px; }
.lp-footer__inner { display: grid; gap: 6px; font-size: 13px; line-height: 1.6; }
.lp-footer strong { color: var(--c-ivory); font-weight: 600; }
.lp-footer a { color: var(--c-ivory); border-bottom: 1px solid rgba(237, 230, 218, 0.3); }

/* Mobile sticky call-to-action (shown by consultation.js) */
.lp-sticky { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .lp-hero { padding: 0 0 36px; color: inherit; }
  .lp-hero__grid { grid-template-columns: 1fr; gap: 0; align-items: start; }
  /* the photo belongs to the headline block only */
  .lp-hero__copy {
    position: relative; isolation: isolate;
    margin: 0 calc(-1 * var(--gut)); padding: clamp(170px, 46vw, 300px) var(--gut) 64px;
  }
  .lp-hero__media::after {
    background: linear-gradient(180deg, rgba(14, 26, 43, 0) 0%, rgba(14, 26, 43, 0) 30%, rgba(14, 26, 43, 0.7) 52%, rgba(14, 26, 43, 0.95) 100%);
  }
  .lp-hero__media img { object-position: 50% 30%; }
  .lp-hero__credit { top: 12px; bottom: auto; right: 12px; font-size: 9px; }
  .lp-hero__quote { display: none; }
  .lp-form { position: relative; top: auto; z-index: 2; margin-top: -40px; }
  .lp-hero .lp-form__alt { color: var(--c-ink-soft); background: none; padding: 0; margin-top: 12px; }
  .lp-hero .lp-form__alt a { color: var(--c-ink); }
  .lp-reviews__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
    margin-right: calc(-1 * var(--gut)); padding-right: var(--gut);
  }
  .lp-review { scroll-snap-align: start; }
  .lp-promises__grid { grid-template-columns: 1fr 1fr; }
  .lp-promise:nth-child(2n) { border-right: 0; }
  .lp-promise:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
  .lp-steps__list { grid-template-columns: 1fr 1fr; gap: 10px; }

  .lp-sticky {
    display: grid; grid-template-columns: 56px 1fr; gap: 8px;
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 80;
    transform: translateY(140%); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .lp-sticky.is-visible { transform: none; opacity: 1; pointer-events: auto; }
  .lp-sticky a {
    min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 10px 28px rgba(14, 26, 43, .22);
    font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  }
  .lp-sticky__call { background: var(--c-surface); color: var(--c-ink); border: 1px solid var(--c-line); }
  .lp-sticky__call svg { width: 22px; height: 22px; }
  .lp-sticky__cta { background: var(--c-accent); color: var(--c-dark); }
  .lp-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .lp-header__inner { min-height: 56px; }
  .lp-brand img { width: 30px; height: 30px; }
  .lp-brand__name { font-size: 15.5px; }
  .lp-brand__name small { font-size: 8px; letter-spacing: 0.16em; }
  .lp-header__call { padding: 0 14px; }
  .lp-header__call-number { display: none; }
  .lp-header__call-label { display: inline; }

  .lp-eyebrow { font-size: 9.5px; letter-spacing: 0.06em; }
  .lp-hero__copy { padding-top: 150px; padding-bottom: 56px; }
  .lp-hero h1 { margin-top: 6px; font-size: 30px; line-height: 1.06; }
  .lp-sub { display: none; } /* the trust chips carry the same promises */
  .lp-trust { margin-top: 12px; gap: 6px; }
  .lp-trust li { padding: 6px 8px; }
  .lp-trust li, .lp-trust a { font-size: 9.5px; letter-spacing: 0.04em; gap: 4px; }
  .lp-trust .lp-stars { font-size: 10px; }

  .lp-form .form-card { padding: 18px 16px 20px; }
  .lp-form__head { margin-bottom: 12px; }
  .lp-form__title { font-size: 24px; }
  .lp-form__meta { font-size: 12.5px; }
  .lp-form .step-meta { display: none !important; } /* the step bar already shows progress */
  .lp-form .step-bar { margin-bottom: 14px; }
  .lp-form .step h2 { font-size: 22px; }
  .lp-form .step__hint { font-size: 13.5px; margin-bottom: 12px; }
  .lp-form .ptype-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lp-form .ptype { padding: 14px 12px; min-height: 62px; align-content: center; }
  .lp-form .ptype__icon, .lp-form .ptype__desc { display: none; }
  .lp-form .lp-ptype-5 { grid-template-columns: 1fr 1fr; }
  .lp-form .lp-ptype-5 .ptype { min-height: 54px; }
  .lp-form .lp-ptype-5 .ptype:last-child { grid-column: 1 / -1; }
  .lp-team p { font-size: 15.5px; }
      .lp-form .ptype__name { font-size: 18px; }
  .lp-form .row-2 { grid-template-columns: 1fr; gap: 0; }
  .lp-form .field { gap: 6px; margin-bottom: 12px; }
  .lp-form .field label, .lp-form .field__label { font-size: 10px; }
  .lp-form .field input, .lp-form .field select { padding: 12px 14px; }
  .lp-form .actions .btn { padding-left: 16px; padding-right: 16px; }

  .lp-section { padding: 44px 0; }
  .lp-section-head { margin-bottom: 18px; }
  .lp-review { padding: 20px; }
  .lp-review blockquote { font-size: 18px; }
  .lp-promise { padding: 16px 14px; }
  .lp-promise h3 { font-size: 19px; line-height: 1.15; }
  .lp-promise p { font-size: 13.5px; line-height: 1.45; margin-top: 6px; }
  .lp-work__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lp-work__item figcaption { font-size: 9px; letter-spacing: 0.08em; }
  .lp-steps__list { grid-template-columns: 1fr; }
  .lp-steps__list li { padding: 14px 16px; display: grid; grid-template-columns: 30px 1fr; column-gap: 6px; align-items: baseline; }
  .lp-steps__list span { grid-row: span 2; }
  .lp-steps__list h3 { font-size: 20px; margin-top: 0; }
  .lp-steps__list p { margin-top: 4px; font-size: 14px; }
  .lp-cta__actions .btn { width: 100%; }
}

/* ---------- Small phones (≤ 380px) ---------- */
.lp-eyebrow a { white-space: nowrap; }
@media (max-width: 380px) {
  .lp-brand { gap: 8px; }
  .lp-brand__name { font-size: 13.5px; letter-spacing: 0; white-space: nowrap; }
  .lp-brand__name small { font-size: 7.5px; letter-spacing: 0.12em; }
  .lp-eyebrow { font-size: 9px; letter-spacing: 0.06em; }
  .lp-hero h1 { font-size: 29px; }
}
