/* Phase O rollout: shared components for subpages (service pages, category
   pages, about/contact/service-areas/resources/thank-you). Loaded ALONGSIDE
   lumo.min.css, not merged into it -- these rules don't apply to the
   homepage, so bundling them there would just be dead weight on its
   critical path. Everything here builds on Lumo's own tokens, same as
   lumo-extend.css does for the homepage. Homepage-shared pieces (hero CTA
   stack, .section-heading, testimonials, FAQ, product cards, the 3-column
   "features" grid) are NOT redefined here -- those come from lumo.min.css
   and are reused byte-for-byte via the same class names. */

/* ---------- Breadcrumb (dark hero background, so white/light text) ---------- */
.svc-breadcrumb {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 18px;
}
.svc-breadcrumb a { color: #fff; font-weight: 600; }
.svc-breadcrumb a:hover { text-decoration: underline; }
.svc-breadcrumb .svc-breadcrumb-sep { margin: 0 6px; opacity: 0.5; }

/* ---------- Subpage hero: solid dark band -- breadcrumb, H1 (.svc-h1), lede
   sentence, then the homepage's own CTA stack markup/classes. Service pages
   with a hero photo (tools/photos.js "svc-hero" slots) drop the homepage's
   .hero-photo-layer + .hero-photo-overlay in behind the text; pages without
   one keep the plain band. ---------- */
.svc-hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  /* top padding clears the floating .header-pill (position:absolute, sits
     58px-114px from viewport top on desktop, 48px+its own height on
     mobile) -- measured, not guessed, since the pill's height differs
     slightly by breakpoint. */
  padding: 150px 20px 64px;
  text-align: center;
}
@media (max-width: 900px) {
  .svc-hero { padding-top: 130px; }
}
.svc-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
/* Darker than the homepage overlay: everything in this hero is small text
   (down to the 65%-white breadcrumb), and at >=78% overlay even a pure-white
   patch of photo stays at AA 4.5:1 behind it. */
.svc-hero .hero-photo-overlay {
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.8) 0%, rgba(10, 15, 30, 0.78) 50%, rgba(10, 15, 30, 0.88) 100%);
}
/* This page's one H1 -- unlike the homepage, there's no separate brand-name
   display line above it, so (unlike .hero-h1, which is deliberately small
   body text sitting under the homepage's big .hero-display) this IS the big
   headline treatment, in the display font. */
.svc-h1 {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0 0 16px;
}
.svc-hero-lede {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 28px;
}
.svc-hero .hero-cta-stack { margin-top: 8px; }

/* Hero CTA colors (.hero-cta-primary/.hero-cta-outline) are shared with the
   homepage and defined once in lumo-extend.css, not duplicated here -- both
   the homepage hero and every subpage hero reuse the exact same classes. */

/* Contact's hero has its own "Call" button (.svc-btn-row, not the standard
   hero-cta-stack, since Contact has no Instant Estimate CTA of its own) that
   otherwise inherits .pill-btn.dark's solid-black fill -- invisible against
   this same black hero without this override. */
.svc-hero .svc-btn-row .pill-btn.dark { background: var(--orange); color: #fff; }
.svc-hero .svc-btn-row .pill-btn.dark:hover { background: var(--orange-deep); }

/* ---------- Long-form content sections (preserved body copy) ---------- */
/* Generous, uniform block padding on every section so pages read as a
   stack of separate cards instead of running text -- matches the homepage's
   own major-section padding (90-130px). Same value on every page/section so
   the whole site feels like one system. */
.svc-section { padding: 90px 20px; }
.svc-section-inner { max-width: var(--container); margin: 0 auto; }
.svc-section .section-heading { margin-bottom: 24px; }
.svc-lede {
  text-align: center;
  color: var(--gray);
  max-width: 680px;
  margin: -6px auto 28px;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
}
.svc-copy {
  font-family: var(--font-body);
  color: var(--black);
  max-width: 680px;
  margin: 0 auto 18px;
  line-height: 1.6;
  font-size: 17px;
}
.svc-copy:last-child { margin-bottom: 0; }
.svc-copy a { color: var(--orange); font-weight: 700; }
.svc-copy a:hover { text-decoration: underline; }

/* Checklist treatment: any preserved list of included items/benefits reads
   as a clean 2-column (desktop) / 1-column (mobile) checklist with a simple
   line-icon check mark, instead of a plain bulleted list. */
.svc-list {
  list-style: none;
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 32px;
  row-gap: 14px;
  text-align: left;
}
@media (min-width: 640px) {
  .svc-list { grid-template-columns: 1fr 1fr; }
}
.svc-list li {
  position: relative;
  padding-left: 30px;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.5;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}
.svc-section-alt { background: var(--card); }

/* Numbered-circle "How It Works" steps -- scoped under .svc-section so the
   homepage's own (unscoped) use of the same .features-row/.feature-index
   classes for its own 3-column section is untouched. */
.svc-section .feature-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
}

/* The homepage's own .features-row is a fixed 3-column grid (its "Why"
   section is always exactly 3 value props) and gets reused as-is, unchanged,
   for the one fixed 3-step "How It Works" section every page has. Preserved
   per-page content sometimes has a different step count (4, 5...), so this
   is a separate auto-fit variant sharing the same visual language (numbered
   circle, title, description). */
.svc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 36px;
  text-align: center;
}
.svc-step-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}
.svc-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--black);
}
.svc-step p { color: var(--gray); font-family: var(--font-body); font-size: 14px; line-height: 1.6; margin: 0 auto; max-width: 280px; }

/* ---------- Related services (in-body editorial links) ---------- */
.svc-related-list {
  list-style: none;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}
.svc-related-list a { color: var(--orange); font-weight: 700; }
.svc-related-list a:hover { text-decoration: underline; }

/* ---------- Category page card grid: reuses .products-row / .product-card
   from lumo.min.css, but as a static wrapping grid instead of the
   homepage's horizontal scroll-snap carousel (a category page's grid is
   short enough -- 2 to 8 cards -- to just wrap, no arrows needed). ---------- */
.svc-card-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  /* auto-fit + a capped track width + centering: 2, 3, 4 or 8 cards all sit
     centered with no empty phantom column (auto-fill left one on the right). */
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
  gap: 28px;
  padding: 0 20px;
}
@media (max-width: 640px) { .svc-card-grid { grid-template-columns: 1fr; } }
.svc-card-grid .product-card { width: 100%; }
/* Related-services rows use the homepage's shared .products-carousel
   (lumo-extend.css); cancel this section's 20px side padding so the row
   runs edge to edge exactly like the homepage's. */
.svc-section > .products-carousel { margin: 0 -20px; }

/* ---------- Service area city tags (service-areas page) ---------- */
.svc-tag-list {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.svc-tag {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--black);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ---------- A row of equal-weight secondary actions (About/Contact
   "reach us another way" rows) -- same visual language as the homepage's
   hero-cta-outline buttons, just not tied to the hero. ---------- */
.svc-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.svc-btn-row .pill-btn { min-width: 140px; text-align: center; }

/* ---------- Contact form (the popup's no-JS fallback) ---------- */
.svc-form {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.svc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .svc-form-row { grid-template-columns: 1fr; } }
.svc-form-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.svc-form-field label { font-family: var(--font-body); font-weight: 700; font-size: 13.5px; color: var(--black); }
.svc-form-field input,
.svc-form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 2px solid #e6e6e6;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--black);
}
.svc-form-field input:focus,
.svc-form-field textarea:focus { outline: none; border-color: var(--orange); }
.svc-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.svc-form-submit { width: 100%; border: 0; cursor: pointer; }
.svc-form-message { text-align: center; font-family: var(--font-body); font-size: 14px; margin: 0; }
.svc-form-message.is-error { color: #c0392b; }
.svc-form-message.is-success { color: var(--black); font-weight: 700; }

/* ---------- Closing CTA: the one body CTA every subpage ends on (hero and
   the sticky bar are the only other CTAs on the page). ---------- */
.svc-closing-cta { background: var(--black); padding: 90px 20px; text-align: center; }
.svc-closing-cta-heading {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.2;
  max-width: 640px;
  margin: 0 auto 24px;
}
.svc-closing-cta-btn { background: var(--orange); color: #fff; }
.svc-closing-cta-btn:hover { background: var(--orange-deep); }

/* ---------- Service page photos (written by tools/photos.js): a 2-up
   before/after pair, or a gallery once a page has 3+ photos. Flex-wrap with
   a centered last row, so 5 photos lay out 3 + 2 instead of leaving one
   orphan tile hanging off the left. ---------- */
.svc-gallery {
  --gallery-gap: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gallery-gap);
  max-width: 1060px;
  margin: 0 auto;
}
.svc-gallery-item { position: relative; margin: 0; flex: 0 1 calc((100% - 2 * var(--gallery-gap)) / 3); }
.svc-gallery-pair { --gallery-gap: 14px; max-width: 760px; }
.svc-gallery-pair .svc-gallery-item { flex-basis: calc((100% - var(--gallery-gap)) / 2); }
@media (max-width: 640px) {
  .svc-gallery { --gallery-gap: 12px; }
  .svc-gallery-item { flex-basis: calc((100% - var(--gallery-gap)) / 2); }
}
.svc-gallery-item img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.svc-gallery-item figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--black);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
}

/* ---------- About page owner portrait ---------- */
.svc-portrait { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); }

/* ---------- Privacy policy: a long-form reading page. Topic headings are
   sized for reading (not the big centered section headings) and lists get
   plain bullets back (the global reset strips them). ---------- */
.svc-policy { max-width: 680px; margin: 0 auto; }
.svc-policy h2 {
  font-family: var(--font-display);
  color: var(--black);
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 44px 0 14px;
}
.svc-policy h2:first-child { margin-top: 0; }
.svc-policy ul { list-style: disc; padding-left: 22px; margin: 0 0 18px; }
.svc-policy li {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--black);
  margin-bottom: 8px;
}
.svc-policy li a { color: var(--orange); font-weight: 700; }
.svc-policy li a:hover { text-decoration: underline; }
