/* Lead Train - shared styles. Contrast pairs checked to WCAG 2.2 AA:
   orange #f7941e is only used as a fill behind dark text or as text on the dark ink
   background; on white, links and accent text use --accent-strong (#a8490a, 5.6:1). */
:root {
  --accent: #f7941e;
  --accent-hover: #ffa836;
  --accent-strong: #a8490a;
  --accent-050: #fff6ea;
  --ink-900: #101216;
  --ink-800: #1a1d24;
  --line-dark: #2a2f39;
  --on-dark: #f4f6f9;
  --on-dark-muted: #b4bbc8;
  --text: #1a1d23;
  --muted: #535a69;
  --line: #e5e8ee;
  --paper: #ffffff;
  --paper-2: #f8f9fb;
  --paper-3: #eef1f5;
  --r: 12px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16,18,24,.05), 0 6px 16px -10px rgba(16,18,24,.14);
  --shadow-md: 0 2px 4px rgba(16,18,24,.05), 0 18px 40px -22px rgba(16,18,24,.28);
  --container: 1120px;
  --measure: 720px;
  --font-display: "Clash Display", "Satoshi", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--font-sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 .55em; color: var(--ink-900); }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--measure); margin-left: auto; margin-right: auto; }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--ink-900); font-weight: 700;
  padding: 10px 16px; border-radius: var(--r); text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink-900); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.site-header { background: var(--ink-900); border-bottom: 1px solid var(--line-dark); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; padding: 8px 0; }
.brand img { height: 30px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  display: inline-block; color: var(--on-dark); text-decoration: none; font-weight: 500;
  padding: 10px 14px; border-radius: var(--r-pill); min-height: 44px; line-height: 24px;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta a { background: var(--accent); color: var(--ink-900); font-weight: 700; padding: 10px 20px; margin-left: 6px; }
.site-nav .nav-cta a:hover { background: var(--accent-hover); color: var(--ink-900); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 26px; border-radius: var(--r-pill); border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--ink-900); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--on-dark); border-color: var(--line-dark); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink-900); color: var(--on-dark); }
.btn-dark:hover { background: var(--ink-800); }

/* Hero */
.hero { background: var(--ink-900); color: var(--on-dark); padding: 96px 0 104px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 0%, rgba(247,148,30,.16), rgba(247,148,30,0) 70%);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; max-width: 17ch; margin-left: auto; margin-right: auto; }
.hero h1 .hl { color: var(--accent); display: block; }
.hero p.lead { color: var(--on-dark-muted); font-size: 1.2rem; max-width: 46em; margin: 0 auto 2em; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.page-hero { padding: 72px 0 76px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }

/* Strip */
.strip { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 40px 0; text-align: center; }
.strip h2 { font-family: var(--font-sans); font-size: .95rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin-bottom: 18px; }
.trade-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.trade-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px; font-weight: 500; color: var(--ink-800); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 30px 28px; }
.card .step { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-050); color: var(--accent-strong); font: 700 1.1rem/44px var(--font-display); justify-content: center; margin-bottom: 18px; }
.card p { color: var(--muted); margin: 0; }

/* Founder band */
.founder { background: linear-gradient(135deg, #f7941e 0%, #e9821a 55%, #d9741a 100%); color: var(--ink-900); padding: 80px 0; }
.founder .container { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.founder img { width: 220px; height: 220px; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-md); }
.founder blockquote { margin: 0; }
.founder blockquote p { font-size: 1.3rem; line-height: 1.55; font-weight: 500; color: var(--ink-900); }
.founder figcaption { margin-top: 18px; font-weight: 700; }
.founder figcaption span { display: block; font-weight: 500; }

/* Prose */
.prose h2 { margin-top: 1.6em; padding-bottom: .4em; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.about-photo { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-md); }
.about-photo figcaption { background: var(--paper-2); padding: 12px 16px; font-size: .92rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 32px; padding: 0; list-style: none; }
.stats li { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stats strong { display: block; font: 700 1.9rem/1.1 var(--font-display); color: var(--ink-900); }
.stats span { color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta-band { background: var(--ink-900); color: var(--on-dark); padding: 80px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); font-size: 1.15rem; max-width: 36em; margin: 0 auto 1.8em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-md); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink-900); }
.field .req { color: var(--accent-strong); font-weight: 700; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--paper);
  border: 1.5px solid #8a92a3; border-radius: 8px; padding: 12px 14px; min-height: 48px;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink-900); }
.form-note { font-size: .95rem; color: var(--muted); margin: 0 0 22px; }
.aside-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.aside-box ol { padding-left: 1.2em; margin: 0; }
.aside-box li { margin-bottom: .7em; }

/* Footer */
.site-footer { background: var(--ink-900); color: var(--on-dark-muted); padding: 48px 0 40px; border-top: 1px solid var(--line-dark); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer img { height: 24px; width: auto; }
.site-footer ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer a { color: var(--on-dark); text-decoration: none; padding: 10px 12px; display: inline-block; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p { margin: 0; font-size: .95rem; }

@media (max-width: 900px) {
  .cards, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .founder .container { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { gap: 40px; }
  .about-photo { max-width: 420px; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 0 72px; }
  .section { padding: 64px 0; }
  .form-grid, .stats { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .site-header .container { justify-content: center; padding-top: 6px; padding-bottom: 6px; }
  .site-nav ul { justify-content: center; }
}

/* Homepage hero photo carousel (crossfade, fatrank-style). Decorative: aria-hidden.
   Overlay kept at 74-84% ink so white and muted hero text stay >= 4.5:1 on the
   brightest photo pixels. Reduced-motion = static first slide. */
.hero-rotating { padding: 120px 0 128px; }
.hero-rotating::before { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--ink-900); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: heroSlides 24s infinite; will-change: opacity; }
.hero-slide.s1 { background-image: url(/images/lead-train-pest-control-technician-spraying-foundation-hero.webp); background-position: 60% 45%; animation-delay: 0s; }
.hero-slide.s2 { background-image: url(/images/lead-train-water-damage-restoration-air-movers-drying-room-hero.webp); background-position: 70% 55%; animation-delay: 6s; }
.hero-slide.s3 { background-image: url(/images/lead-train-roofer-installing-architectural-shingles-hero.webp); background-position: 60% 50%; animation-delay: 12s; }
.hero-slide.s4 { background-image: url(/images/lead-train-tree-service-arborist-chainsaw-limb-hero.webp); background-position: 70% 50%; animation-delay: 18s; }
@keyframes heroSlides { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
.hero-rotating .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(16,18,22,.74), rgba(16,18,22,.84)),
    radial-gradient(66% 56% at 50% -8%, rgba(247,148,30,.18), transparent 62%);
}
.hero-rotating .container { position: relative; z-index: 2; }
.hero-rotating h1, .hero-rotating p.lead { text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.hero-rotating p.lead { color: #d6dbe3; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none !important; }
  .hero-slide.s1 { opacity: 1; }
}
@media (max-width: 640px) {
  .hero-rotating { padding: 72px 0 96px; }
}

/* Hero eyebrow line above the H1. Written in sentence case in the HTML and uppercased
   by CSS so screen readers read it as words, not letters. */
.eyebrow {
  margin: 0 0 18px; color: var(--accent); font: 700 .95rem/1.4 var(--font-sans);
  text-transform: uppercase; letter-spacing: .12em;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
@media (max-width: 640px) { .eyebrow { font-size: .8rem; letter-spacing: .08em; } }

/* "A Recent Site We Built" screenshot */
.results-shot { margin: 0 auto; max-width: 1080px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.results-shot img { width: 100%; height: auto; }
