/* sm-home.css: the homepage only (design-lead, 2026-11-18). Dan's pick, deliver/boards/picked-home.html:
   A's first screen and service cards, then B from Typical Prices down. Tokens and shared parts are in sm-site.css.
   The homepage H1 is the site's H1 cap: exactly var(--h1-max), 36 / 48 / 52. */

/* ---------- first screen (Dan, 2026-11-20) ----------
   "The problem with this design is it has three elements all roughly the same visual weight. Let's redesign that section with
   the photo taking up the entire viewport, form on the right, headline left."
   The photo fills the first screen and runs under the floating header. On it: the H1 and trust row at left over a dark wash,
   the form at right (Lead Simplify's own panel; no box of ours). Phones and tablets: the photo fills the screen with the H1 at
   its top, the form follows. Dan, 2026-11-20: "Move the text up so we can see the DECK" (the H1 sits high, never on the deck). The lead paragraphs sit under the photo. The H1 stays at the site's cap, var(--h1-max). */
.home .hero { max-width: none; margin: 0; padding: 0; display: block; }
.home .hero-stage { position: relative; isolation: isolate; display: grid; grid-template-areas: "photo" "form";
  margin-top: calc(-1 * (var(--hdr-top) + var(--hdr-h))); }
.home .hero-photo { grid-area: photo; z-index: -2; width: 100%; height: 100svh; min-height: 560px; aspect-ratio: auto;
  object-fit: cover; object-position: 38% 50%; border-radius: 0; }
.home .hero-stage::before { content: ""; grid-area: photo; z-index: -1;
  background: linear-gradient(to bottom, rgba(10,24,34,.82) 0%, rgba(10,24,34,.62) 38%, rgba(10,24,34,0) 62%); }
.home .hero-inner { display: contents; }
.home .hero-main { grid-area: photo; align-self: start; width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: calc(var(--hdr-top) + var(--hdr-h) + 28px) var(--gutter) 0; }
.home .hero h1 { color: #fff; font-size: var(--h1-max); line-height: 1.0; margin: 0; text-shadow: 0 2px 22px rgba(0,0,0,.35); }
.home .hero h1 { color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,.3); } /* Dan, 2026-11-20: the white part 100% white (a tight shadow, no gray halo) */
.home .hero h1 em { display: block; font-weight: 300; color: var(--alt); } /* Dan, 2026-11-20: the italic line on its own line */ /* Dan, 2026-11-20: lighter, in the services band color (#E6E8E5) */
.home .hero h1 em span { display: block; } /* each sentence of the italic line on its own line, breaking at the period */
.home .creds { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; color: var(--brand); }
.home .creds li { display: flex; align-items: center; gap: 10px; }
.home .creds li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cta); flex: none; }
.home .hero .creds { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.home .hero .form { grid-area: form; width: 100%; max-width: 560px; margin: 0 auto; padding: 40px var(--gutter) 0; }
.home .hero-text { max-width: var(--wrap); margin: 0 auto; padding: 36px var(--gutter) 56px; }
.home .hero-lead { font-size: 18px; max-width: 980px; }
.home .hero-lead p + p { margin-top: 12px; }
.home .hero-text > h2 { margin: 0 0 18px; } /* the introduction's heading (Dan, 2026-11-20) */
/* the two "if" paragraphs of the introduction, side by side from tablet up, each under a short accent rule */
.home .intro-paths { display: grid; gap: 28px; margin: 30px 0; padding: 0; list-style: none; }
.home .intro-paths li { margin: 0; padding-top: 16px; border-top: 3px solid var(--cta); }
/* three distinct parts (Dan, 2026-11-20): the closing paragraph gets the same orange rule, full width, and room above it */
.home .hero-lead .intro-paths + p { margin-top: 0; padding-top: 16px; border-top: 3px solid var(--cta); }
@media (min-width: 768px) { .home .intro-paths { grid-template-columns: 1fr 1fr; gap: 40px; margin: 44px 0; } }
@media (min-width: 768px) {
  .home .hero-main { padding-top: calc(var(--hdr-top) + var(--hdr-h) + 40px); }
  .home .creds { column-gap: 32px; }
  .home .hero-lead { font-size: 19px; }
  .home .hero-text { padding: 48px var(--gutter) 72px; }
}
@media (min-width: 1024px) {
  .home .hero-stage { display: flex; align-items: flex-start; min-height: 100svh; grid-template-areas: none;
    padding: calc(var(--hdr-top) + var(--hdr-h) + 40px) var(--gutter) 56px; }
  .home .hero-photo { position: absolute; inset: 0; height: 100%; min-height: 0; }
  .home .hero-inner { display: grid; width: 100%; max-width: var(--wrap); margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) 400px; column-gap: 48px; align-items: start; }
  /* the H1 starts under the logo's wordmark (Dan, 2026-11-20, marked on the page): the bar's 22px padding plus where the
     wordmark starts in the 46px logo (column 136 of the 514 x 96 image) */
  .home .hero-main { grid-area: auto; max-width: none; margin: 0; padding: 92px 0 0 calc(22px + 46px * 136 / 96); } /* top: Dan marked it, 2026-11-20 */ /* the whole column beside the form (Dan, 2026-11-20: "Use the space I outlined") */
  .home .hero .form { grid-area: auto; max-width: none; margin: 0; padding: 0; }
  .home .hero .form > h2 { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5), 0 2px 18px rgba(0,0,0,.55); }
  .home .hero-text { padding: 64px var(--gutter) 84px; }
}
@media (min-width: 1200px) { .home .hero-inner { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 44px; } } /* room for the H1 on three lines from 1200 */

/* the photo at full strength, and a translucent black band behind the H1 from the left edge of the window to the right,
   under the form (Dan, 2026-11-20: "Run the picture at full intensity, then place a translucent black band under the text,
   extending under the form to the edge"). The band hangs off the H1 itself, so it follows the H1 at every width. */
.home .hero-stage { overflow: clip; }
.home .hero-stage::before { display: none; }
.home .hero h1 { position: relative; }
.home .hero h1::before { content: ""; position: absolute; z-index: -1; top: -26px; bottom: -30px; left: -100vw; right: -100vw;
  background: rgba(0,0,0,.66); } /* Dan, 2026-11-20: a bit darker */
@media (min-width: 1024px) {
  .home .hero h1::before { top: -34px; bottom: -40px; }
  /* the form stays at the top; its heading in the body font, in the Submit button's orange (#FF7B1A, sampled from Lead Simplify's button) (Dan, 2026-11-20) */
  .home .hero .form > h2 { color: #FF7B1A; font-family: var(--body); font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.85), 0 2px 10px rgba(0,0,0,.6); } /* black drop shadow (Dan) */
}

/* the hero video (Dan's Midjourney animation of the hero frame, 2026-11-20): js/hero-video.js lays it over the photo on screens
   768 px and up and fades it in once it plays; same placement and crop as the photo, so the two line up exactly */
.home .hero-video { grid-area: photo; z-index: -2; width: 100%; height: 100svh; min-height: 560px; object-fit: cover;
  object-position: 38% 50%; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.home .hero-video.is-on { opacity: 1; }
@media (min-width: 1024px) { .home .hero-video { position: absolute; inset: 0; height: 100%; min-height: 0; } }

/* ---------- section heads ---------- */
.home .sec-intro { color: var(--muted); margin: 14px 0 32px; font-size: 18px; }
.home .sec-head { margin-bottom: 32px; }
.home .sec-head p { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 640px; }
.home .band-brand .sec-head p { color: var(--on-brand-muted); }
@media (min-width: 1024px) {
  .home .sec-intro { margin-bottom: 40px; }
  .home .sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 44px; }
  .home .sec-head p { margin-top: 0; }
}

/* ---------- service cards (A) ---------- */
.home .svc-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.home .svc-card { background: var(--card); border-radius: var(--r-lg); padding: 12px 12px 22px; display: flex; flex-direction: column; }
.home .svc-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.home .svc-card h3 { font-size: 22px; margin: 16px 0 6px; }
.home .svc-card p { font-size: 15px; color: var(--muted); margin: 0 0 14px; flex: 1; text-wrap: balance; }
.home .svc-card a { margin: 0; color: var(--link); font-weight: 700; font-size: 15px; text-decoration: none; text-wrap: balance; }
.home .svc-card a::after { content: "\00a0\2192"; color: var(--accent); }
.home .svc-card a:hover { text-decoration: underline; }
/* phones (one card across): the words line up with the photo edge, so a short blurb keeps its one line */
@media (max-width: 639px) { .home .svc-card { padding: 12px 14px 22px; } .home .svc-card h3, .home .svc-card p, .home .svc-card a { margin-left: 0; margin-right: 0; } }
@media (min-width: 640px) { .home .svc-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .home .svc-cards { grid-template-columns: repeat(12, 1fr); gap: 20px; }
  .home .svc-card { grid-column: span 3; }
  .home .svc-card.svc-big { grid-column: span 4; }
}

/* ---------- typical prices (B, the menu) ---------- */
.home .prices-wrap { display: grid; gap: 32px; align-items: center; }
.home .prices-text > p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.home .prices-text .prices-small { font-size: 15px; margin-top: 18px; }
.home .price-menu { background: var(--card); border-radius: var(--r-lg); padding: 6px 22px; }
.home .price-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.home .price-item:last-child { border-bottom: 0; }
.home .pi-row { display: flex; align-items: baseline; gap: 14px; }
.home .price-item h3 { font-size: 19px; flex: 0 1 auto; }
.home .pi-dots { flex: 1 1 20px; min-width: 20px; border-bottom: 2px dotted var(--line); align-self: flex-end; margin-bottom: 6px; }
.home .pi-price { flex: none; font: 600 22px/1.1 var(--head); color: var(--brand); white-space: nowrap; }
.home .pi-desc { font-size: 15px; color: var(--muted); margin-top: 6px; }
@media (max-width: 519px) {
  .home .pi-row { flex-direction: column; gap: 6px; }
  .home .pi-dots { display: none; }
}
@media (min-width: 768px) { .home .price-menu { padding: 12px 40px; } .home .price-item { padding: 24px 0; } .home .price-item h3 { font-size: 20px; } .home .pi-price { font-size: 24px; } }
@media (min-width: 1024px) { .home .prices-wrap { grid-template-columns: 5fr 7fr; gap: 64px; } .home .price-menu { padding: 12px 32px; } }
@media (min-width: 1024px) and (max-width: 1239px) { .home .pi-row { flex-direction: column; gap: 6px; } .home .pi-dots { display: none; }
  /* even columns here, so the heading's last three words ("around Santa Maria") fit its column (port, 2026-11-19) */
  .home .prices-wrap { grid-template-columns: 1fr 1fr; } }

/* ---------- wood or composite (B, the two boards) ---------- */
.home .vs { display: grid; gap: 20px; position: relative; container-type: inline-size; }
.home .vs article { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 14px 30px; }
.home .vs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.home .vs h3 { font-size: 26px; margin: 22px 14px 10px; }
.home .vs h3 a { color: var(--brand); text-decoration: none; }
.home .vs h3 a::after { content: " \2192"; color: var(--accent); font: 700 22px var(--body); }
.home .vs h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.home .vs p { margin: 0 14px; }
.home .vs-or { display: none; }
@media (min-width: 768px) {
  .home .vs { grid-template-columns: 1fr 1fr; gap: 24px; }
  .home .vs-or { position: absolute; left: 50%; top: calc(15px + (50cqw - 12px - 30px) * 9 / 32); /* the middle of the photos */ display: grid; transform: translate(-50%, -50%); width: 72px; height: 72px;
    border-radius: 50%; background: var(--cta); color: var(--cta-ink); place-items: center; font: 600 22px/1 var(--head); border: 6px solid var(--alt); }
  .home .vs h3 { font-size: 28px; margin: 22px 16px 10px; }
  .home .vs p { margin: 0 16px; }
}

/* ---------- weather (B, the midnight band) ---------- */
.home .wx { display: grid; gap: 28px; align-items: start; } /* columns end with their words; order 2, 1, 4, 3 (Dan, 2026-11-19) is in the markup */
.home .wx > div { border-top: 2px solid var(--line-on-brand); padding-top: 20px; }
.home .wx h3 { font-size: 24px; margin-bottom: 10px; }
.home .wx p + p { margin-top: 12px; }
.home .wx a { color: var(--on-brand); text-decoration: underline; text-decoration-color: var(--cta); text-decoration-thickness: 2px; }
@media (min-width: 768px) { .home .wx { grid-template-columns: 1fr 1fr; gap: 40px 40px; } }
@media (min-width: 1280px) { .home .wx { grid-template-columns: repeat(4, 1fr); gap: 32px; } .home .wx h3 { font-size: 23px; } }

/* ---------- how it works: the form-to-estimate steps ----------
   Round 3 (Dan, 2026-11-19: "make the 01, 02, 03 the same orange as on the About page...be consistent with that"):
   the numerals are About's .ab-num exactly, 600 44px/1 Fraunces in --accent above each step's heading, 56px from 1024.
   The midnight circles and the line that joined them are gone (REWRITE-STANDARD 7 and 13.13). */
.home .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.home .step-n { display: block; font: 600 44px/1 var(--head); color: var(--accent); margin-bottom: 14px; }
.home .steps h3 { font-size: 21px; margin-bottom: 6px; }
/* three steps since the port (2026-11-19, home.md: LocusPilot's fourth step cut), three across from 768, as About */
@media (min-width: 768px) { .home .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
@media (min-width: 1024px) {
  .home .steps { gap: 40px; }
  .home .step-n { font-size: 56px; margin-bottom: 18px; }
}

/* ---------- towns (B) ---------- */
.home .towns-wrap { display: grid; gap: 36px; align-items: center; }
.home .towns-wrap p { font-size: 18px; margin-top: 14px; }
.home .town-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; column-gap: 32px; }
.home .town-list li { border-top: 1px solid var(--line); margin: 0; }
.home .town-list a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; text-decoration: none; font: 600 19px/1.3 var(--head); color: var(--brand); }
.home .town-list a::after { content: "\2192"; color: var(--accent); font-family: var(--body); }
.home .town-list a:hover { text-decoration: underline; }
.home .town-photos { display: grid; gap: 16px; }
.home .town-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
@media (min-width: 640px) { .home .town-list { grid-template-columns: 1fr 1fr; } .home .town-photos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .home .towns-wrap { grid-template-columns: 7fr 5fr; gap: 64px; }
  .home .town-photos { grid-template-columns: 1fr; }
}

/* ---------- history (B) ---------- */
.home .hist-wrap { display: grid; gap: 36px; align-items: center; }
.home .hist-wrap p { font-size: 18px; margin-top: 16px; text-wrap: balance; }
.home .hist-wrap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
@media (min-width: 1024px) { .home .hist-wrap { grid-template-columns: 6fr 5fr; gap: 64px; } .home .hist-wrap img { aspect-ratio: 4 / 5; } }

/* ---------- guides (added in the port, 2026-11-19): a special report (REWRITE-STANDARD 13.9 / 13.15) ----------
   The service pages' guides block in the homepage's own terms: the guide pages' drawing grid behind it, square corners,
   a 2 px outer rule and 1.5 px rules between cells. Seven guides would make a tall empty heading cell on the left (13.4),
   so the heading and its one line sit in a cell across the top, and each guide is one compact ruled row under it: the
   guide's photo framed, its title, its line, an arrow cell. From 1180 the title and the line are cells of their own, so a
   row reads like a line in a printed index. Nothing here looks like the service cards (rounded, on stone; 12.13). */
.home { --cat-rule: var(--brand); --cat-grid: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.home .cat-report { padding: 48px 0 56px; background-color: var(--card);
  background-image: linear-gradient(var(--cat-grid) 1px, transparent 1px), linear-gradient(90deg, var(--cat-grid) 1px, transparent 1px);
  background-size: 24px 24px; }
.home .cat-rep { border: 2px solid var(--cat-rule); background: var(--card); }
.home .cat-rep-head { padding: 20px 18px; border-bottom: 1.5px solid var(--cat-rule); }
.home .cat-rep-h { font-size: 24px; line-height: 1.15; }   /* phones: "Santa Maria homeowners" holds one line in the cell */
.home .cat-rep-head p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.home .cat-rep-list { list-style: none; margin: 0; padding: 0; }
.home .cat-rep-list li { margin: 0; }
.home .cat-rep-list li + li { border-top: 1.5px solid var(--cat-rule); }
/* phones: the photo small beside the words, the arrow after the title */
.home .cat-rep-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px;
  text-decoration: none; color: inherit; }
.home .cat-rep-item.no-photo { grid-template-columns: minmax(0, 1fr); }
.home .cat-rep-pic img { display: block; width: 96px; height: 64px; object-fit: cover; border: 1.5px solid var(--cat-rule); }
.home .cat-rep-text b { display: block; font: 600 18px/1.3 var(--head); color: var(--brand); text-wrap: balance; }
.home a.cat-rep-item .cat-rep-text b::after { content: "\00a0\2192"; color: var(--accent); font: 700 18px/1 var(--body); }
.home .cat-rep-text > span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: balance; }
.home .cat-rep-go { display: none; }
.home a.cat-rep-item:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* from 600: every part of a row is its own ruled cell, the arrow in a cell of its own */
@media (min-width: 600px) {
  .home .cat-rep-head { padding: 24px 28px; }
  .home .cat-rep-h { font-size: 28px; }
  .home .cat-rep-item { grid-template-columns: auto minmax(0, 1fr) 64px; gap: 0; align-items: stretch; padding: 0; }
  .home .cat-rep-item.no-photo { grid-template-columns: minmax(0, 1fr) 64px; }
  .home .cat-rep-item.no-link { grid-template-columns: auto minmax(0, 1fr); }
  .home .cat-rep-pic { display: flex; align-items: center; padding: 14px; border-right: 1.5px solid var(--cat-rule); }
  .home .cat-rep-pic img { width: 150px; height: 100px; }
  .home .cat-rep-text { display: flex; flex-direction: column; justify-content: center; padding: 14px 24px; }
  .home .cat-rep-text b { font-size: 19px; }
  .home a.cat-rep-item .cat-rep-text b::after { content: none; }
  .home .cat-rep-go { display: flex; align-items: center; justify-content: center; border-left: 1.5px solid var(--cat-rule);
    color: var(--accent); font: 700 24px/1 var(--body); }
  .home a.cat-rep-item:hover .cat-rep-go { background: var(--alt); }
}
@media (min-width: 768px) { .home .cat-report { padding: 64px 0 72px; } }
@media (min-width: 1024px) {
  .home .cat-report { padding: 80px 0 88px; }
  .home .cat-rep-head { padding: 28px 32px; }
  .home .cat-rep-h { font-size: 32px; }
  .home .cat-rep-item { grid-template-columns: auto minmax(0, 1fr) 76px; }
  .home .cat-rep-item.no-photo { grid-template-columns: minmax(0, 1fr) 76px; }
  .home .cat-rep-pic { padding: 14px 18px; }
  .home .cat-rep-text { padding: 14px 32px; }
  .home .cat-rep-text b { font-size: 20px; }
}
/* from 1180: the title and its line side by side, each in its own ruled cell */
@media (min-width: 1180px) {
  .home .cat-rep-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 0; }
  .home .cat-rep-text b { display: flex; align-items: center; padding: 14px 32px; border-right: 1.5px solid var(--cat-rule); }
  .home .cat-rep-text > span { display: flex; align-items: center; margin: 0; padding: 14px 32px; font-size: 16px; text-wrap: pretty; }
}

/* ---------- FAQ (B: heading left, questions right). The FAQ itself (tray, cards, marker) is the shared look in sm-site.css. ---------- */
.home .faq-wrap { display: grid; gap: 28px; }
/* port, 2026-11-19: the sheet's FAQ heading needs 383 px for its last three words at 42 px, and a 4fr column is 376 px
   at most (304 at 1024), so it ended on "Santa Maria" alone. Heading above the questions to 1279; from 1280, even halves
   (at 5fr it balanced to three lines with "questions" alone). */
@media (min-width: 1280px) { .home .faq-wrap { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

/* ---------- the close (B): heading and line left, the one closing ask right ---------- */
.home .cta-bar { padding: var(--band-pad) 0; }
.home .close-in { display: grid; gap: 28px; border-top: 1px solid var(--line); padding-top: 48px; }
.home .close-in p { color: var(--muted); margin-top: 10px; max-width: 640px; font-size: 18px; }
.home .close-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) {
  .home .close-in { grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding-top: 56px; }
  .home .cta-bar h2 { font-size: 44px; }
  .home .close-actions { justify-content: flex-end; }
}
