/* ============================================================
   REFORGE reference design system — styles.css
   Source: the Lipham Landscaping build (validated live, 2026-08/09),
   tokenized so every run applies brand-board values to the SAME
   stylesheet instead of re-inventing one from a paragraph.

   Rules (binding, enforced by scripts/build_master_template.py):
   - The only values that change per client are the :root tokens
     marked "board:". Everything else is byte-identical across runs.
   - Primary brand color is an ACCENT (buttons, rules, eyebrows,
     the one CTA band). It is never a page background.
   - Zero JavaScript. FAQ accordions are <details>/<summary>.
   - Photos of people never get fixed-height object-fit:cover crops
     (.people is exempt from every cover rule below).
   ============================================================ */

:root {
  /* board: visual.colors */
  --primary: #c2410c;           /* accent: buttons, eyebrows, rules, CTA band */
  --primary-deep: #c2410c; /* primary for text on light backgrounds (AA) */
  --secondary: #1e2a32;       /* headings, dark surfaces, footer */
  --accent: #1f6f8b;             /* links, list markers */
  --background: #f6f3ee;     /* page background */
  --surface: #eeece7;           /* hero + alternating section tint */
  --line: #dcdad6;                 /* hairline borders */
  --text: #1b1f23;                 /* body ink */
  --muted: #68696a;               /* captions, trust strip, meta */
  --on-dark: #f6f3ee;           /* text on secondary/primary surfaces */

  /* board: visual.fonts */
  --font-heading: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  /* fixed system values (not board tokens) */
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-photo: 0 18px 44px rgba(0, 0, 0, 0.16);
  --measure: 72ch;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  font-size: 17px;
  line-height: 1.7;
}
img, picture { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--secondary);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: .75rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--secondary); color: var(--on-dark); padding: .6rem 1.2rem; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 0; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.eyebrow { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-deep); margin-bottom: .6rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--background); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; color: var(--secondary); white-space: nowrap; }
.logo img { height: 52px; width: auto; }
.logo:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--text); font-size: .92rem; font-weight: 500; }
.site-nav a:hover { color: var(--primary-deep); text-decoration: none; }
.site-nav a.nav-phone { background: var(--primary); color: var(--on-dark); padding: 12px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 4px; font-weight: 700; } /* 44px tap target (2026-10-17) */
.site-nav a.nav-phone:hover { background: var(--secondary); color: var(--on-dark); }
.site-nav details { border: 0; padding: 0; margin: 0; background: transparent; }
.site-nav details summary { padding: 0; font-weight: 500; font-size: .92rem; cursor: pointer; list-style: none; }
.site-nav details summary::-webkit-details-marker { display: none; }
.site-nav details summary::after { content: " ▾"; font-size: .7em; }
.site-nav .drop-panel { list-style: none; position: absolute; background: var(--background); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; margin-top: 8px; min-width: 220px; }
.site-nav .drop-panel li { padding: 4px 0; }

/* ---------- hero ---------- */
.hero { background: var(--surface); padding: 84px 0 72px; text-align: center; }
.hero p.sub { max-width: 660px; margin: 1.1rem auto 1.8rem; font-size: 1.12rem; color: var(--muted); }
.photo-hero { position: relative; background-size: cover; background-position: center; }
.photo-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .44), rgba(10, 10, 10, .6)); }
.photo-hero .container { position: relative; z-index: 2; }
.photo-hero h1 { color: #fff; text-shadow: 0 2px 26px rgba(0, 0, 0, .55); }
.photo-hero .eyebrow { color: #fff; opacity: .92; }
.photo-hero p.sub { color: #f2ede6; }
.photo-hero .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.photo-hero .btn-secondary:hover { background: #fff; color: var(--text); }

.btn-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-block; padding: 14px 28px; border-radius: 4px; font-weight: 700; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--on-dark); }
.btn-primary:hover { background: var(--secondary); color: var(--on-dark); text-decoration: none; }
.btn-secondary { background: var(--background); color: var(--secondary); border: 2px solid var(--secondary); }
.btn-secondary:hover { background: var(--secondary); color: var(--on-dark); text-decoration: none; }

/* ---------- trust strip (4 items; 2x2 on phones) ---------- */
.trust { background: var(--background); border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding-top: 22px; padding-bottom: 22px; text-align: center; } /* 3-5 items on one row (generator emits 3-5; 2026-10-17) */
.trust span { font-size: .86rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); }
.section-intro { max-width: 720px; margin-bottom: 2.2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--background); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 a { color: var(--secondary); }
.card h3 a:hover { color: var(--primary-deep); text-decoration: none; }
.more { font-weight: 700; font-size: .92rem; }
ul.checks { list-style: none; margin: 0 0 1rem; }
ul.checks li { padding-left: 1.5em; position: relative; margin-bottom: .55rem; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65em; height: .65em; background: var(--primary); }

.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; }
.prose > :first-child { margin-top: 0; }

/* ---------- photo rows (hub / about) ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 38px 0; border-bottom: 1px solid var(--line); }
.svc-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.svc-row.flip .svc-img { order: 2; }
.svc-img img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow-photo); }
.svc-row h3 { font-size: 1.55rem; }

/* ---------- placed photos ---------- */
.page-photo { margin: 26px auto 0; max-width: 1100px; padding: 0 24px; }
.page-photo img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.page-photo:not(.people) img { max-height: 420px; object-fit: cover; object-position: center bottom; }
figure.photo { margin: 0 auto; max-width: 1100px; padding: 0 24px; }
figure.photo img { width: 100%; max-width: 1000px; height: auto; margin: 0 auto; border-radius: 14px; }
figure.photo.portrait img { max-width: 600px; }
figure.photo.square img { max-width: 740px; }
figcaption { font-size: .85rem; color: var(--muted); padding: .5rem 0 0; text-align: center; }

/* ---------- explainer video (self-hosted, no JS) ---------- */
.explainer { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.explainer video { width: 100%; height: auto; border-radius: var(--radius-lg); background: var(--secondary); }
figure[data-provenance="generated_brand_visual"] figcaption::before { content: "Illustration · "; font-weight: 600; }

/* ---------- testimonials ---------- */
.quote-stack { display: grid; gap: 18px; max-width: 860px; }
.quote-card { background: var(--background); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 26px 28px; }
.quote-card blockquote { font-size: 1rem; margin-bottom: .9rem; }
.quote-card cite, .quote-card footer { font-style: normal; font-weight: 700; font-size: .9rem; color: var(--muted); }

/* ---------- FAQ accordions (no JS) ---------- */
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--background); margin-bottom: 12px; padding: 0 22px; }
.faq-list details summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; padding: 18px 0; list-style: none; position: relative; padding-right: 2rem; }
.faq-list details summary::-webkit-details-marker { display: none; }
.faq-list details summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.4rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p { padding-bottom: 18px; margin-bottom: 0; }

/* ---------- citations ---------- */
.citations p { font-size: .98rem; }
.citations p + p { margin-top: .4rem; }

/* ---------- the ONE accent band per page ---------- */
.cta-band { background: var(--primary); padding: 72px 0; text-align: center; }
.cta-band h2, .cta-band p { color: var(--on-dark); }
.cta-band p { max-width: 620px; margin: .9rem auto 1.6rem; }
.cta-band .btn-primary { background: var(--secondary); }
.cta-band .btn-primary:hover { background: var(--background); color: var(--secondary); }
.cta-band .btn-secondary { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.cta-band .btn-secondary:hover { background: var(--on-dark); color: var(--primary-deep); }
.photo-band { position: relative; background-size: cover; background-position: center; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.photo-band .container { position: relative; z-index: 2; }

/* ---------- forms ---------- */
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form .field-full { grid-column: 1 / -1; }
.quote-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: var(--background); color: var(--text); }
.quote-form button { justify-self: start; }

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: .86rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }

/* ---------- footer ---------- */
.site-footer { background: var(--secondary); color: var(--on-dark); padding: 56px 0 32px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { font-family: var(--font-heading); color: var(--on-dark); font-size: 1.05rem; margin-bottom: .7rem; }
.site-footer a { color: var(--on-dark); opacity: .9; }
.site-footer a:hover { color: var(--on-dark); opacity: 1; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.site-footer address { font-style: normal; }
.site-footer .tagline { font-family: var(--font-heading); font-size: 1.15rem; color: var(--on-dark); margin-bottom: .8rem; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 22px; opacity: .8; font-size: .85rem; }

/* ---------- people photos: never cover-cropped ---------- */
.people img { max-height: none !important; object-fit: initial !important; height: auto !important; }

/* ---------- owner-pending card (staging waiver about_person only, 2026-10-17) ----------
   A neutral card in the brand tokens for the about-page portrait slot while the owner photo is pending.
   Rendered only under a ledger staging waiver; deploy_verify refuses it on --stage live. No image, no person. */
.owner-pending .owner-pending-card {
  aspect-ratio: 4 / 5; width: 100%; max-width: 420px; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface) 0%, var(--background) 60%), var(--surface);
  position: relative; overflow: hidden;
}
.owner-pending .owner-pending-card::before {
  content: ""; position: absolute; inset: 14px; border-radius: calc(var(--radius-lg) - 6px);
  border: 2px dashed var(--line);
}
.owner-pending .owner-pending-card::after {
  content: ""; position: absolute; left: 50%; top: 42%; width: 22%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--secondary); opacity: .12;
}
.owner-pending figcaption { color: var(--muted); }

/* ---------- one breakpoint ---------- */
@media (max-width: 760px) {
  .trust .container { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 52px 0; }
  .site-header .container { justify-content: center; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row.flip .svc-img { order: 0; }
  .quote-form { grid-template-columns: 1fr; }
  .site-nav .drop-panel { position: static; border: 0; padding: 4px 0 4px 12px; }
}
