/* sm-about.css: the About page only (design-lead, 2026-11-18). Dan's pick C, "Coast road" (deliver/boards/picked-about.html),
   at the board's proportions. Built by build-about-contact.js about. Tokens and the shared parts (header, footer, .form,
   .wrap) are in sm-site.css. Amber is a fill only (the hub stop); small accents on light use --accent. */

:where(.sm-page.about main) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.sm-page.about main) :where(li) { margin: 0; }

/* ---------- hero (2026-11-20): the homepage's feeling, not its build (Dan: "Do not copy the homepage...just give the about
   page hero the same feeling"). The H1 and lead on the page ground at left, then the photo edge to edge across the whole
   window at full strength: no card, no corner radius, no wash, nothing else in the hero. The frame is 3:2 with the workers in
   its right two-thirds, so the full width always shows and only the top and bottom are trimmed: the whole 3:2 on phones and
   tablets, 2:1 from 1024, and never taller than 80% of the screen (at 1920 x 1080 that keeps the middle two-thirds of the
   frame's height). Not the town hero: those words are centered and their photo is a rounded 3:1 band inside the wrap.
   The lead is in the body color, as the homepage's and the town pages' leads are, at a reading measure. ---------- */
.about .ab-hero { padding: 32px 0 0; }
.about .ab-hero h1 { font-size: var(--h1-inner); }
.about .ab-lead { margin-top: 18px; font-size: 18px; max-width: 860px; }
.about .ab-hero-pic { margin: 40px 0 0; }
.about .ab-hero-pic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 50%;
  border-radius: 0; background: var(--alt); }

/* ---------- conditions (2026-11-20): the head across the top, then the 3:2 photo (the lead standard) with the first two
   items stacked beside it and the last two under them, side by side. The items are plain words on the page: no card, no
   rule beside them (the town note owns the side rule, the homepage weather band the ruled columns). ---------- */
.about .ab-cond { padding: 72px 0 0; }
.about .ab-cond h2, .about .ab-who h2 { font-size: 30px; }
.about .ab-cond-lead { margin-top: 14px; font-size: 18px; color: var(--muted); }
.about .ab-cond-body { margin-top: 30px; display: grid; gap: 30px; }
.about .ab-cond-pic { margin: 0; }
.about .ab-cond-pic img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); background: var(--alt); }
.about .ab-cond-item h3 { font: 600 21px/1.3 var(--head); color: var(--brand); }
.about .ab-cond-item p { margin-top: 8px; font-size: 16.5px; }

/* ---------- who (2026-11-20): a stone band of white tiles, one per reader, the whole tile a link to that service page.
   Not the services card below it (one white card of rows on the page ground): a different job, a different shape. ---------- */
.about .ab-who { background: var(--alt); margin-top: 72px; padding: 64px 0; }
.about .ab-who-list { margin-top: 28px; display: grid; gap: 16px; }
.about .ab-who-list li { position: relative; background: var(--card); border-radius: var(--r); padding: 24px 24px 26px; }
.about .ab-who h3 { font: 600 20px/1.3 var(--head); color: var(--brand); }
.about .ab-who h3 a { color: var(--brand); text-decoration: none; }
.about .ab-who h3 a::after { content: "\00a0\2192"; color: var(--accent); }
.about .ab-who h3 a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.about .ab-who-list li:hover h3 a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.about .ab-who-list p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ---------- services: one white card, two columns read down ---------- */
.about .ab-services { padding: 72px 0 0; }
.about .ab-services h2, .about .ab-creds-sec h2, .about .ab-steps-sec h2 { font-size: 30px; }
.about .ab-svc { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 22px; }
.about .ab-svc li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.about .ab-svc li:last-child { border-bottom: 0; }
.about .ab-svc h3 { font: 600 19px/1.35 var(--head); color: var(--brand); }
.about .ab-svc h3 a { color: var(--brand); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.about .ab-svc h3 a:hover { text-decoration-color: var(--accent); }
.about .ab-svc p { margin-top: 4px; color: var(--muted); font-size: 16px; }

/* ---------- where: the coast road ---------- */
.about .ab-where { background: var(--alt); margin-top: 72px; padding: 64px 0 56px; }
/* the head uses the whole wrap, so a one-line paragraph (the county line) stays on one line; only a paragraph that runs
   to several lines keeps a reading measure (2026-11-20: the sheet's second paragraph) */
.about .ab-where-head p + p { max-width: 860px; margin-inline: auto; }
.about .ab-where h2 { font-size: 32px; }
.about .ab-where-head p { margin-top: 16px; color: var(--muted); font-size: 17px; }
/* phones and tablets: the road runs down the page */
.about .ab-road { position: relative; margin-top: 40px; display: grid; gap: 18px; }
.about .ab-road::before { content: ""; position: absolute; left: 13px; top: 15px; bottom: 15px; width: 4px; border-radius: 4px; background: var(--brand); }
.about .ab-road li { position: relative; display: grid; grid-template-columns: 30px 1fr; column-gap: 18px; align-items: center; }
.about .ab-road i { display: block; grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 4px solid var(--brand); }
.about .ab-road li.hub i { width: 40px; height: 40px; margin-left: -5px; background: var(--cta); border-color: var(--brand); }
.about .ab-stop-name { font: 600 19px/1.25 var(--head); color: var(--brand); }
.about .ab-stop-name a { color: var(--brand); text-decoration: none; }
.about .ab-stop-name a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.about .ab-stop-county { grid-column: 2; font-size: 14px; color: var(--muted); }
.about .ab-hills { margin: 44px 0 0; }
.about .ab-hills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }

/* ---------- credentials: three white cards ruled in the brand color, the words centered so no card reads as an empty frame ---------- */
.about .ab-creds-sec { padding: 72px 0 0; }
.about .ab-creds { margin-top: 28px; display: grid; gap: 16px; }
.about .ab-creds li { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: var(--r); padding: 26px 26px;
  font: 600 22px/1.3 var(--head); color: var(--brand); text-align: center; }

/* ---------- steps: form to estimate, the big numbers on stone cards ---------- */
.about .ab-steps-sec { padding: 72px 0 0; }
.about .ab-steps { margin-top: 28px; display: grid; gap: 16px; }
/* the numeral sits above the heading at every width (REWRITE-STANDARD 7), so a step heading has the card's full width
   (round 3: beside a 64 px numeral, "You get a written estimate" broke onto a second line of two words at 375).
   The homepage's .step-n is the same numeral (13.13). */
.about .ab-steps li { background: var(--alt); border-radius: var(--r); padding: 26px 22px; }
.about .ab-num { display: block; font: 600 44px/1 var(--head); color: var(--accent); margin-bottom: 14px; }
.about .ab-steps h3 { font: 600 21px/1.3 var(--head); color: var(--brand); }
.about .ab-steps p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* ---------- close: stacked and centered, the heading, the line under it, then the form (round 2, Dan 2026-11-19:
   "Stack that area and center the elements."). No box: the form sits on the page; Lead Simplify draws its own panel. ---------- */
.about .ab-close { padding: 72px 0 80px; }
.about .ab-close-text { text-align: center; }
.about .ab-close h2 { font-size: 32px; }
.about .ab-close-text p { margin: 16px auto 0; color: var(--muted); font-size: 18px; text-wrap: balance; }
.about .ab-close .form { max-width: 640px; margin: 36px auto 0; }

@media (min-width: 768px) {
  .about .ab-hero { padding-top: 48px; }
  .about .ab-hero-pic { margin-top: 48px; }
  .about .ab-lead { font-size: 19px; }
  .about .ab-cond { padding-top: 96px; }
  .about .ab-cond h2, .about .ab-who h2 { font-size: 34px; }
  .about .ab-cond-lead { font-size: 19px; }
  .about .ab-cond-body { margin-top: 36px; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
  .about .ab-cond-pic { grid-column: 1 / -1; }
  .about .ab-who { margin-top: 96px; padding: 80px 0; }
  .about .ab-who-list { margin-top: 32px; grid-template-columns: 1fr 1fr; gap: 20px; }
  .about .ab-who-list li { padding: 28px 28px 30px; }
  .about .ab-who-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .about .ab-services { padding-top: 96px; }
  .about .ab-services h2, .about .ab-creds-sec h2, .about .ab-steps-sec h2 { font-size: 34px; }
  .about .ab-svc { padding: 8px 36px; }
  .about .ab-svc li { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 20px 0; }
  .about .ab-svc p { margin-top: 0; }
  .about .ab-where { margin-top: 96px; padding: 88px 0 80px; }
  .about .ab-where-head { text-align: center; }
  .about .ab-where h2 { font-size: 38px; }
  .about .ab-where-head p { font-size: 18px; margin-top: 18px; }
  .about .ab-road { max-width: 460px; margin: 48px auto 0; }
  .about .ab-hills img { aspect-ratio: 3 / 1; }   /* the band standard (DESIGN-DIRECTION.md "Photo slot sizes") */
  .about .ab-hills { margin-top: 56px; }
  .about .ab-creds-sec, .about .ab-steps-sec { padding-top: 96px; }
  .about .ab-creds { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .about .ab-creds li { padding: 30px 28px; }
  .about .ab-close { padding: 96px 0 104px; }
  .about .ab-close .form { margin-top: 44px; }
  .about .ab-close h2 { font-size: 36px; }
}

@media (min-width: 1024px) {
  .about .ab-hero { padding-top: 56px; }
  .about .ab-hero-pic { margin-top: 56px; }
  .about .ab-hero-pic img { aspect-ratio: 2 / 1; max-height: 80svh; }
  .about .ab-cond { padding-top: 104px; }
  /* the photo beside the first two items (centered against them), the last two under, half and half */
  .about .ab-cond-body { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 48px; }
  .about .ab-cond-pic { grid-column: 1 / 4; grid-row: 1 / 3; align-self: center; }
  .about .ab-cond-item:nth-child(2) { grid-column: 4 / 7; grid-row: 1; }
  .about .ab-cond-item:nth-child(3) { grid-column: 4 / 7; grid-row: 2; }
  .about .ab-cond-item:nth-child(4) { grid-column: 1 / 4; grid-row: 3; }
  .about .ab-cond-item:nth-child(5) { grid-column: 4 / 7; grid-row: 3; }
  .about .ab-who { margin-top: 104px; padding: 88px 0; }
  /* three tiles, then two wider ones: the row is always full */
  .about .ab-who-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .about .ab-who-list li, .about .ab-who-list li:last-child:nth-child(odd) { grid-column: span 2; }
  .about .ab-who-list[data-n="5"] li:nth-child(n+4), .about .ab-who-list[data-n="4"] li { grid-column: span 3; }
  .about .ab-services, .about .ab-creds-sec, .about .ab-steps-sec { padding-top: 104px; }
  .about .ab-svc { padding: 12px 40px; }
  .about .ab-where { margin-top: 104px; padding: 96px 0 88px; }
  /* desktop: the road runs across the page, one stop per column, the hub marked in amber */
  .about .ab-road { max-width: none; margin-top: 64px; display: grid; grid-auto-flow: row; grid-template-rows: none;
    grid-template-columns: repeat(var(--n), 1fr); gap: 0; }
  .about .ab-road::before { left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 13px; bottom: auto; width: auto; height: 4px; }
  .about .ab-road li { display: block; text-align: center; padding: 0 6px; }
  .about .ab-road i { width: 30px; height: 30px; margin: 0 auto 18px; }
  .about .ab-road li.hub i { width: 40px; height: 40px; margin: -5px auto 13px; }
  .about .ab-stop-name, .about .ab-stop-county { display: block; }
  .about .ab-stop-county { margin-top: 6px; }
  .about .ab-hills { margin-top: 64px; }
  .about .ab-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .about .ab-steps li { padding: 30px 24px; }
  .about .ab-num { font-size: 56px; margin-bottom: 18px; }
  .about .ab-close h2 { font-size: 38px; }
}

/* the H1 on one line from 768 (round 3): the words now have the whole wrap above the photo, so the old 1024 to 1239
   stacking rule and the 1240 side-by-side columns are gone with the side-by-side hero (2026-11-20). */

/* conditions from 1280: the photo takes two thirds, the first two items the last third beside it */
@media (min-width: 1280px) {
  .about .ab-cond-pic { grid-column: 1 / 5; }
  .about .ab-cond-item:nth-child(2), .about .ab-cond-item:nth-child(3) { grid-column: 5 / 7; }
}

@media (min-width: 1100px) {
  /* the services card in two columns, read down, in menu order */
  .about .ab-svc { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(var(--rows), auto); column-gap: 56px; }
  .about .ab-svc li.end { border-bottom: 0; }
}
