/*
  File: css/services.css
  Purpose: Page styles for the six service landing pages (/kitchen-remodeling,
           /bathroom-remodeling, /home-additions, /whole-home-remodeling,
           /custom-homes, /commercial-construction) — the per-page hero band
           photo, the single reading column, the included list, the numbered
           process, the static before/after pair, the recent projects grid and
           the FAQ disclosures.
           Loaded through layouts/public's renderSection('head'), so it lands
           after bootstrap-4.4.1.css, main.css and site-shell.css: every rule
           here restates font, size and spacing rather than inheriting them,
           and every class is prefixed service- so nothing collides with
           Bootstrap or main.css. Design tokens (--band, --teal, --display,
           --serif …) come from css/site-shell.css.
           The closing dark band is the shared .site-cta (markup in
           Views/partials/site_cta.php, rules in css/site-shell.css) — the
           .service-cta / .service-siblings rules it replaced were deleted
           2026-09-14.
  Used by: Views/public/services/_page.php — the one template all six pages
           render through (via <?= $this->section('head') ?>)
  Last Modified: 2026-09-16 — commercial hero swapped from stock to an own
           M&M shot (upscaled from 768×576); 2026-09-14 — tall photo hero
           per page; dead .service-cta block removed
*/

/* ── hero band photos ─────────────────────────────────────
   layouts/public stamps data-page="service-<slug>" on .wrapper2 (from the
   controller's $bodyId) and data-hero="tall" on .banner3, which grows the
   band to ~430px (540px past 1125px tall) so the photo actually shows —
   rules in main.css. Nothing else on the site keys on a service- prefix:
   the hub is the exact selector [data-page="services"]. Photos are our own
   project shots, 1920×1080 cuts with no faces — commercial is an M&M
   hallway/reception shot upscaled ~2.5× from a 768×576 original (softness
   is expected and accepted). */
.wrapper2[data-page^="service-"] {
  background-attachment: scroll;   /* fixed would frame only the top edge in a 430px band */
}

.wrapper2[data-page="service-kitchen-remodeling"] {
  background-image: url(../images/home/hero-kitchen.jpg);
  background-position: center 50%;
}

.wrapper2[data-page="service-bathroom-remodeling"] {
  background-image: url(../images/home/hero-bath.jpg);
  background-position: center 62%;
}

.wrapper2[data-page="service-home-additions"] {
  background-image: url(../images/home/hero-additions.jpg);
  background-position: center 50%;
}

.wrapper2[data-page="service-whole-home-remodeling"] {
  background-image: url(../images/home/hero-whole-home.jpg);
  background-position: center 38%;
}

.wrapper2[data-page="service-custom-homes"] {
  background-image: url(../images/home/hero-custom-homes.jpg);
  background-position: center 50%;
}

.wrapper2[data-page="service-commercial-construction"] {
  background-image: url(../images/home/hero-commercial.jpg);
  background-position: center 40%;
}

/* ── reading column ───────────────────────────────────── */
.service-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.service-wrap h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 2.75rem 0 1rem;
}

.service-wrap h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 .4rem;
}

.service-wrap p {
  margin: 0 0 1.1rem;
  text-indent: 0;
}

.service-wrap a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.service-wrap a:hover,
.service-wrap a:focus {
  color: var(--ink);
}

/* ── eyebrow + intro ──────────────────────────────────── */
.service-eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 1.25rem;
}

.service-intro p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
}

/* ── what's included ──────────────────────────────────── */
.service-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.service-list li {
  position: relative;
  margin: 0 0 .7rem;
  padding-left: 1.6rem;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--teal);
}

/* ── how we work ──────────────────────────────────────── */
.service-steps {
  counter-reset: service-step;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.service-steps li {
  counter-increment: service-step;
  position: relative;
  margin: 0 0 1.2rem;
  padding-left: 3rem;
  min-height: 2rem;
}

.service-steps li::before {
  content: counter(service-step);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deep);
  font-family: var(--display);
  font-weight: 700;
  font-size: .85rem;
  line-height: 2rem;
  text-align: center;
}

.service-steps strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

/* ── before / after pair (static, two columns) ────────── */
.service-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0 0;
}

.service-compare-item {
  margin: 0;
}

.service-compare-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.service-compare-item figcaption {
  font-family: var(--display);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .5rem;
}

/* ── recent projects ──────────────────────────────────── */
.service-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-project-card {
  margin: 0;
}

.service-project-card p {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.service-project-thumb {
  display: block;
  margin-bottom: .75rem;
}

.service-project-thumb img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.service-project-card h3 a {
  text-decoration: none;
}

.service-project-card h3 a:hover,
.service-project-card h3 a:focus {
  text-decoration: underline;
}

/* ── questions ────────────────────────────────────────── */
.service-faq-item {
  border-bottom: 1px solid var(--line);
  padding: .2rem 0;
}

.service-faq-item summary {
  display: list-item;
  cursor: pointer;
  list-style: disclosure-closed;
  margin-left: 1.1rem;
  padding: .85rem 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
}

.service-faq-item[open] summary {
  list-style: disclosure-open;
  color: var(--teal-deep);
}

.service-faq-item p {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

/* ── credentials (commercial page only) ───────────────── */
.service-credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.service-credentials li {
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  background: var(--paper);
  font-size: .95rem;
  line-height: 1.6;
}

.service-clients {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: .95rem;
}

.service-clients li {
  break-inside: avoid;
  margin: 0 0 .45rem;
  padding-left: 1.1rem;
  position: relative;
}

.service-clients li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--teal);
}

/* ── narrow screens ───────────────────────────────────── */
@media (max-width: 900px) {
  .service-project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .service-wrap { padding: 2rem 1rem 3rem; }
  .service-wrap h2 { font-size: 1.35rem; }
  .service-intro p { font-size: 1.08rem; }
  .service-compare { grid-template-columns: 1fr; }
  .service-project-grid { grid-template-columns: 1fr; }
  .service-credentials { grid-template-columns: 1fr; }
  .service-clients { columns: 1; }
}
