/* Shared patterns reused across non-product pages (About, Contact, Process,
   Reviews, Gallery, Privacy, Terms) and the Windows/Home pages. */

/* ---------- Generic page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--surface-inset); padding: clamp(48px, 6vw, 80px) 0; }
.page-hero--sm { padding: clamp(44px, 5.5vw, 68px) 0; }
.page-hero--tight { padding: clamp(48px, 6vw, 72px) 0; }
.page-hero--lg { padding: clamp(56px, 7vw, 86px) 0; }
.page-hero__rules { position: absolute; inset: -14% 0; background: repeating-linear-gradient(90deg, transparent 0 119px, var(--line-guide) 119px 120px); pointer-events: none; }
.page-hero__watermark {
  position: absolute; right: -2vw; top: -10%;
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase;
  font-size: min(22vw, 240px); line-height: .8; color: transparent;
  -webkit-text-stroke: 1px rgba(234, 234, 232, .055);
  pointer-events: none; white-space: nowrap; z-index: 0;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase;
  letter-spacing: -0.02em; color: var(--text-strong); line-height: .94; margin: 0 0 18px;
  font-size: clamp(34px, 4.4vw, 54px);
}
.page-hero--lg h1 { font-size: clamp(36px, 4.6vw, 58px); }
.page-hero--sm h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 14px; }
.page-hero h1 em { font-style: normal; color: var(--text-accent); font-weight: 400; }
.page-hero p.lede { color: var(--text-body); font-size: 17px; max-width: 580px; margin: 0; text-wrap: pretty; }
.page-hero__meta { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.08em; color: var(--text-muted); margin: 0; }
.page-hero__stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 8px; }
.page-hero__stat span { display: block; }
.page-hero__stat-num { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.02em; font-size: 44px; color: var(--text-accent); line-height: .94; }
.page-hero__stat-label { font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.08em; color: var(--text-muted); }
.page-hero--split .page-hero__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 4vw, 64px); align-items: end; }

/* ---------- Generic content section ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--loose { padding: clamp(64px, 8vw, 110px) 0; }
.section--inset { background: var(--surface-inset); }
.section--bordered { border-top: 1px solid var(--line-hairline); border-bottom: 1px solid var(--line-hairline); }
.section__inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.section__inner--narrow { max-width: 820px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase;
  letter-spacing: -0.02em; color: var(--text-strong); line-height: .94; margin: 0; max-width: 560px;
  font-size: clamp(30px, 3.4vw, 44px);
}
.section-head p { max-width: 400px; color: var(--text-muted); font-size: 15.5px; margin: 0; text-wrap: pretty; }
.section h2.section-title {
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase;
  letter-spacing: -0.02em; color: var(--text-strong); line-height: .94; margin: 0 0 12px; max-width: 620px;
  font-size: clamp(28px, 3.2vw, 40px);
}
.section p.section-sub { color: var(--text-muted); font-size: 15.5px; max-width: 520px; margin: 0 0 44px; text-wrap: pretty; }
.section p.section-sub a { color: var(--text-strong); }

/* ---------- Bordered card grid (finishes / credentials / service area / timeline) ---------- */
.grid-cards { display: grid; gap: 1px; background: var(--line-hairline); border: 1px solid var(--line-hairline); }
.grid-cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-cards--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.card-cell { background: var(--surface-card); padding: 32px 28px; }
.card-cell--inset { background: var(--surface-inset); }
.card-cell h3 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase;
  letter-spacing: -0.02em; margin: 0 0 10px; color: var(--text-strong); line-height: .94; font-size: 19px;
}
.card-cell p { color: var(--text-muted); font-size: 14.5px; margin: 0; text-wrap: pretty; }
.card-cell__eyebrow { font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.1em; color: var(--text-muted); display: block; margin-bottom: 10px; }
.card-cell__num { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.02em; font-size: 36px; color: var(--text-muted); display: block; margin-bottom: 14px; line-height: .94; }

/* ---------- CTA split (heading/copy + embedded lead form) ---------- */
.cta-split { background: var(--surface-inset); }
.cta-split--bordered { border-top: 1px solid var(--line-hairline); border-bottom: 1px solid var(--line-hairline); }
.cta-split__inner {
  max-width: 1240px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 32px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(32px, 4vw, 64px); align-items: start;
}
.cta-split__inner--center { align-items: center; }
.cta-split h2 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase;
  letter-spacing: -0.02em; color: var(--text-strong); font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 18px; line-height: .94;
}
.cta-split p { color: var(--text-muted); font-size: 15.5px; max-width: 440px; margin: 0 0 26px; text-wrap: pretty; }
.cta-split p a { color: var(--text-strong); }
.cta-split__list { display: flex; flex-direction: column; gap: 12px; }
.cta-split__list div { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-body); }
.cta-split__list svg { width: 16px; height: 16px; flex: none; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: var(--size-label); font-family: var(--font-label);
  font-weight: 700; text-transform: uppercase; letter-spacing: var(--track-label); color: var(--text-strong);
  border-bottom: 1px solid currentColor; padding-bottom: 2px; text-decoration: none;
}

/* ---------- Photo placeholder art ---------- */
.art-slot {
  border: 1px solid var(--line-hairline); display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--ink-300) 0 10px, var(--ink-200) 10px 20px);
}
.art-slot span { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); text-align: center; padding: 0 14px; line-height: 1.7; white-space: pre-line; }

/* ---------- Service-area map (contact page) ---------- */
/* Geometry is generated — tools/make-service-map.py. Colour lives here and
   only here, so the map tracks the palette instead of freezing a copy of it. */
.service-map { border: 1px solid var(--line-hairline); background: var(--surface-inset); padding: 26px 24px 24px; margin: 0; container-type: inline-size; }
/* The column this sits in is fluid (.contact-grid is auto-fit, no breakpoint),
   so the legend moves beside the map on the figure's own width, not the
   viewport's. */
.service-map__inner { display: grid; gap: 22px; }
@container (min-width: 430px) {
  .service-map__inner { grid-template-columns: 232px 1fr; gap: 30px; align-items: center; }
  .service-map__legend { margin-top: 0; }
}
.service-map__svg { display: block; width: min(100%, 262px); height: auto; margin-inline: auto; }
/* Three tiers, weakest first: the whole state we would quote, the region we
   work in, the counties we are registered in. */
.service-map__outline { fill: var(--surface-raised); stroke: var(--line-strong); stroke-width: 1.6; stroke-linejoin: round; }
.service-map__focus { fill: var(--acid-600); }
/* The state line, redrawn over the band so the Louisville end reads as
   being across a border rather than as a bump on Indiana. */
.service-map__border { fill: none; stroke: var(--line-strong); stroke-width: 1.6; stroke-linejoin: round; }
.service-map__county { fill: var(--surface-accent); stroke: var(--surface-inset); stroke-width: 0.9; stroke-linejoin: round; transition: fill var(--dur-fast) var(--ease-standard); }
@media (hover: hover) {
  .service-map__county:hover { fill: var(--state-hover-accent); }
}
.service-map__legend { margin-top: 4px; display: flex; flex-direction: column; gap: 13px; }
.service-map__key { display: grid; grid-template-columns: 10px 1fr; gap: 0 11px; align-items: start; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.service-map__key b { display: block; font-family: var(--font-label); font-size: 10.5px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.service-map__swatch { width: 10px; height: 10px; margin-top: 3px; background: var(--surface-accent); }
.service-map__swatch--focus { background: var(--acid-600); }
.service-map__swatch--rest { background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line-strong); }
.service-map__note { margin: 0; padding-top: 13px; border-top: 1px solid var(--line-hairline); font-size: 13px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }

/* ---------- Legal pages (Privacy / Terms) ---------- */
.legal-banner { background: var(--surface-inset); border-bottom: 1px solid var(--line-hairline); padding: 20px 0; }
.legal-banner p { font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.05em; color: var(--text-muted); margin: 0; line-height: 1.8; }
.legal-section { margin-bottom: 44px; }
.legal-section h2 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase;
  letter-spacing: -0.02em; color: var(--text-strong); font-size: 24px; line-height: .94; margin: 0 0 14px;
}
.legal-section p { color: #3f4442; font-size: 16px; margin: 0 0 14px; text-wrap: pretty; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-footnote { border-top: 1px solid var(--line-hairline); padding-top: 28px; }
.legal-footnote p { color: #3f4442; font-size: 16px; margin: 0; }

/* ---------- Reviews ---------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  border: 1px solid var(--line-strong); background: transparent; color: var(--text-muted);
  min-height: 44px; padding: 0 18px; border-radius: 2px; cursor: pointer;
  font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
}
.filter-btn[aria-pressed="true"] { background: var(--surface-accent); color: var(--text-on-accent); border-color: var(--surface-accent); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--line-hairline); border: 1px solid var(--line-hairline); }
.review-card { background: var(--surface-card); padding: 32px 30px; display: flex; flex-direction: column; gap: 16px; }
.review-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-card__stars { color: var(--text-strong); font-size: 14px; letter-spacing: 2px; }
.review-card__date { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.06em; color: var(--text-muted); }
.review-card p { font-size: 15.5px; color: var(--text-strong); margin: 0; text-wrap: pretty; }
.review-card__who { font-family: var(--font-label); font-size: 11.5px; color: var(--text-muted); letter-spacing: 0.02em; margin-top: auto; line-height: 1.6; }
.review-count { font-family: var(--font-label); font-size: 11.5px; color: var(--text-muted); margin: 24px 0 0; }

/* ---------- Gallery ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.project-card { border: 1px solid var(--line-hairline); background: var(--surface-card); display: flex; flex-direction: column; }
.project-card__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-hairline); }
.project-card__photo { aspect-ratio: 1; position: relative; overflow: hidden; background: var(--ink-200); }
.project-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-card__photo:not(:has(img)) { display: flex; align-items: flex-end; justify-content: flex-start; padding: 12px; }
.project-card__photo--before:not(:has(img)) { background: repeating-linear-gradient(135deg, #DCD9D1 0 8px, var(--ink-300) 8px 16px); }
.project-card__photo--after:not(:has(img)) { background: repeating-linear-gradient(135deg, var(--ink-300) 0 8px, #EFEDE7 8px 16px); }
.project-card__photo span { position: absolute; left: 12px; bottom: 12px; z-index: 1; font-family: var(--font-label); font-size: 10.5px; letter-spacing: 0.1em; color: var(--text-muted); background: var(--surface-card); padding: 4px 7px; }
.project-card__photo--after span { color: var(--text-strong); }
.project-card__body { padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-card__meta { font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.1em; color: var(--text-muted); }
.project-card h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.02em; font-size: 22px; margin: 0; color: var(--text-strong); line-height: .94; }
.project-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; text-wrap: pretty; }
.project-card dl { display: flex; gap: 22px; flex-wrap: wrap; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid rgba(20, 20, 20, 0.12); }
.project-card dt { font-family: var(--font-label); font-size: 10.5px; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 3px; }
.project-card dd { margin: 0; font-size: 14px; color: var(--text-strong); }
.project-card .text-link { margin-top: 6px; align-self: flex-start; }

/* ---------- About / Process specific ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; }
.photo-strip .art-slot { aspect-ratio: 3 / 4; }
.pull-quote {
  border-left: 1px solid var(--line-accent); padding-left: 20px; margin: 32px 0 0;
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase;
  letter-spacing: -0.02em; font-size: 19px; color: var(--text-strong); text-wrap: pretty;
}
.pull-quote cite { display: block; margin-top: 10px; font-family: var(--font-label); font-style: normal; font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 4vw, 64px); align-items: start; }

.process-step { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line-hairline); }
.process-step__num { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(56px, 7vw, 88px); color: var(--text-accent); display: block; line-height: 1; margin-bottom: 14px; }
.process-step h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.02em; color: var(--text-strong); font-size: clamp(26px, 3vw, 36px); margin: 0 0 12px; line-height: .94; }
.process-step__duration { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.process-step p { color: var(--text-muted); font-size: 16px; margin: 0 0 16px; max-width: 560px; text-wrap: pretty; }
.process-step p:nth-of-type(2) { margin-bottom: 26px; }
.process-step__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; padding-top: 22px; border-top: 1px solid var(--line-hairline); }
.process-step__meta h3 { font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; font-weight: 400; }
.process-step__meta p { font-size: 14.5px; color: var(--text-strong); margin: 0; text-wrap: pretty; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(32px, 4vw, 56px); align-items: start; }
.contact-card { border: 1px solid var(--line-hairline); background: var(--surface-inset); padding: 32px 30px; }
.contact-card--plain { background: transparent; padding: 30px 28px; }
.contact-card__label { font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.12em; color: var(--text-muted); display: block; margin-bottom: 10px; }
.contact-card__phone { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(28px, 3.4vw, 38px); color: var(--text-strong); text-decoration: none; line-height: .94; display: block; }
.contact-card__phone:hover { color: var(--acid-200); }
.contact-card__note { color: var(--text-muted); font-size: 14px; margin: 14px 0 0; }
.contact-card h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.02em; font-size: 20px; margin: 0 0 16px; color: var(--text-strong); line-height: .94; }
.contact-card dl { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-card dt { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px; }
.contact-card dd { margin: 0; font-size: 15px; color: var(--text-strong); }
.contact-card dd small { font-family: var(--font-label); font-size: 11.5px; color: var(--text-muted); }
.contact-quicklinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1px; background: var(--line-hairline); border: 1px solid var(--line-hairline); }
.contact-quicklinks a { background: var(--surface-inset); padding: 24px 22px; text-decoration: none; color: inherit; }
.contact-quicklinks a:hover { background: var(--surface-raised); }
.contact-quicklinks span { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); display: block; margin-bottom: 8px; }
.contact-quicklinks strong { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.02em; font-size: 18px; color: var(--text-strong); display: block; line-height: .94; }

/* Cross-links between the service-area city pages. */
.service-area-nearby { display: inline; }
.service-area-nearby a { white-space: nowrap; }
.service-area-nearby a:not(:last-of-type)::after { content: ','; color: var(--text-muted); }
