/* =========================================================
   Service detail pages (Plumbing, Electrical, HVAC, Drywall,
   Painting, Carpentry, Commercial Maintenance).
   Built on the tokens in styles.css (brand guideline).
   ========================================================= */

.sd { --sd-gap: 20px; }
.sd .kicker { margin-bottom: 10px; }
.kicker--orange { color: var(--orange-600); }
.kicker--navy { color: var(--navy); }
.sd h2 { font-family: var(--font-head); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin: 0; }
.sd h3 { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin: 0; }
.sd p { margin: 0; }
.sd .muted { color: var(--text-muted); }
.sd .ico { color: var(--green); }
.sd-ico--orange .ico, .ico.sd-orange { color: var(--orange); }
.sd .btn .ico, .sd .card-link .ico, .sd .sd-related .ico, .sd .text-link .ico { color: inherit; }
.sd .ico.sd-big { width: 64px; height: 64px; color: var(--green-900); stroke-width: 1.4; }
.sd .hero-proof .ico { color: var(--green); }
.sd-ico--navy .ico, .ico.sd-navy { color: var(--navy); }

/* ---------- Breadcrumbs ---------- */
.sd-crumbs { padding-top: 14px; }
.sd-crumbs .breadcrumbs ol { font-size: 13.5px; }

/* ---------- Hero ---------- */
.sd-hero { padding: 18px 0 26px; }
.sd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: 32px; align-items: center; }
.sd-hero h1 {
  margin: 0; font-weight: 800; font-size: clamp(32px, 3vw, 44px); line-height: 1.06;
  letter-spacing: -0.035em; color: var(--navy);
}
.sd-hero .lede { margin: 14px 0 0; font-size: clamp(16px, 1.25vw, 17.5px); line-height: 1.45; color: var(--text-muted); max-width: 660px; }
.sd-hero .hero-ctas { margin-top: 24px; align-items: center; gap: 20px; }
.sd-hero .btn-lg { min-width: 230px; }
.sd-hero-grid--ba { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; }
.sd-media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 684 / 340; }
.sd-media img { width: 100%; height: 100%; object-fit: cover; }
.sd-media--tall { aspect-ratio: 684 / 455; }
.sd-media .hero-proof { width: 236px; }
.sd-badge {
  position: absolute; top: 28px; right: 14px; display: flex; gap: 12px; align-items: center;
  padding: 12px 16px; background: var(--white); border: 2px solid var(--green); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.sd-badge .ico { width: 34px; height: 34px; fill: var(--green-900); stroke: var(--white); }
.sd-badge strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--navy); }
.sd-badge span { display: block; font-size: 13px; color: var(--text-muted); }
.sd-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 18px;
  background: rgba(11, 45, 91, 0.92); color: var(--white); font-size: 15px;
}

/* Full-bleed hero image on the right (Painting, Commercial) */
.sd-hero--bleed { position: relative; padding: 18px 0 26px; min-height: 380px; overflow: hidden; }
.sd-hero--bleed .sd-bleed { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; margin: 0; }
.sd-hero--bleed .sd-bleed img { width: 100%; height: 100%; object-fit: cover; }
.sd-hero--bleed .sd-bleed--wide { width: 58%; }
.sd-hero--bleed .sd-bleed::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--white) 0%, rgba(255,255,255,0.55) 14%, rgba(255,255,255,0) 34%);
}
.sd-hero--bleed .hero-proof { z-index: 2; top: 50%; bottom: auto; transform: translateY(-50%); right: 40px; width: 214px; }
.sd-hero--bleed .sd-hero-copy { position: relative; z-index: 3; max-width: 640px; }

/* Hero trust row */
.sd-trust { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; }
.sd-trust li { display: flex; gap: 8px; align-items: center; font-size: 12.5px; line-height: 1.3; color: var(--text-muted); }
.sd-trust .ico { width: 28px; height: 28px; stroke-width: 1.6; }
.sd-trust strong { display: block; font-family: var(--font-head); font-size: 13px; color: var(--navy); }

/* Hero check list (HVAC) */
.sd-hero-checks { display: grid; grid-template-columns: auto auto; gap: 16px 24px; align-items: center; margin-top: 18px; }
.sd-checks { display: grid; gap: 8px; }
.sd-checks li { display: flex; gap: 10px; align-items: center; font-size: 16px; color: var(--text-muted); }
.sd-checks .ico { width: 24px; height: 24px; }
.sd-local {
  display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: var(--radius-lg); background: var(--tint-green);
}
.sd-local .ico { width: 58px; height: 58px; color: var(--green-900); stroke-width: 1.5; }
.sd-local strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--green-900); }
.sd-local small { display: block; margin-top: 4px; font-family: var(--font-head); font-weight: 700; font-size: 10.5px; letter-spacing: 0.2em; color: var(--navy); }

/* ---------- Generic blocks ---------- */
.sd-section { padding: 12px 0; }
.sd-rule { border-top: 1px solid var(--line); }
.sd-panel { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--tint-blue); }
.sd-panel--green { background: var(--tint-green); }
.sd-panel--orange { background: #fff4ec; border: 1px solid #ffe0cc; }
.sd-box { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.sd-title-bar::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--green); }
.sd-head h2 { font-size: clamp(24px, 2.2vw, 31px); }
.sd-head p { margin-top: 6px; font-size: 16px; color: var(--text-muted); }
.sd-head--split { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between; }
.sd-rowlabel {
  display: flex; align-items: center; gap: 16px; margin: 14px 0 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--navy);
}
.sd-rowlabel::after { content: ""; flex: 1; height: 1.5px; background: var(--green); order: 1; }
.sd-rowlabel span { order: 2; letter-spacing: 0.08em; font-weight: 500; font-size: 12px; }

.sd-grid { display: grid; gap: 14px; }
.sd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sd-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sd-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sd-split { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.sd-split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sd-split--form { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }

/* Task card (icon on top) */
.sd-task { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.sd-task > .ico { width: 56px; height: 56px; stroke-width: 1.4; }
.sd-task h3 { font-size: 16.5px; line-height: 1.25; }
.sd-task p { font-size: 14.5px; line-height: 1.4; color: var(--text-muted); }
.sd-task .card-link { margin-top: auto; padding-top: 6px; color: var(--navy); font-size: 14px; }
.sd-task--center { align-items: center; text-align: center; border: 1px solid var(--line); box-shadow: none; }
.sd-task--center > .ico { width: 44px; height: 44px; color: var(--navy); stroke-width: 1.5; }

/* Media card (icon in a tinted circle on the left) */
.sd-feature { display: flex; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.sd-circle { display: grid; place-items: center; flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; background: var(--tint-green); }
.sd-circle--orange { background: var(--tint-orange); }
.sd-circle--blue { background: var(--tint-blue); }
.sd-circle .ico { width: 50px; height: 50px; stroke-width: 1.4; }
.sd-circle--orange .ico { color: var(--orange); }
.sd-circle--sm { width: 56px; height: 56px; }
.sd-circle--sm .ico { width: 30px; height: 30px; stroke-width: 1.6; }
.sd-feature h3 { font-size: 17px; line-height: 1.25; }
.sd-feature p { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--text-muted); }
.sd-feature .card-link { margin-top: 10px; color: var(--green-text); }

/* Photo card */
.sd-photo { overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.sd-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sd-photo div { padding: 10px 12px 14px; }
.sd-photo h3 { font-size: 15px; color: var(--navy); }
.sd-photo p { margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: var(--text-muted); }

/* Why choose list */
.sd-why { display: grid; gap: 14px; margin-top: 14px; }
.sd-why li { display: flex; gap: 16px; align-items: flex-start; }
.sd-why strong { display: block; font-family: var(--font-head); font-size: 16px; color: var(--navy); }
.sd-why span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.4; color: var(--text-muted); }
.sd-why .tick { width: 30px; height: 30px; flex-shrink: 0; color: var(--white); fill: var(--orange); stroke: var(--white); stroke-width: 2.2; }
.sd-why-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.sd-why-row li { display: flex; gap: 10px; align-items: flex-start; }
.sd-why-row strong { display: block; font-family: var(--font-head); font-size: 13.5px; color: var(--navy); }
.sd-why-row span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--text-muted); }
.sd-why-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 14px; text-align: center; }
.sd-why-cols .sd-circle { margin: 0 auto 10px; width: 86px; height: 86px; }
.sd-why-cols .sd-circle .ico { width: 42px; height: 42px; }
.sd-why-cols strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--navy); }
.sd-why-cols span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.4; color: var(--text-muted); }

/* Check list (2-col variant for included tasks) */
.sd-ticks { display: grid; gap: 7px; }
.sd-ticks li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.4; color: var(--text-muted); }
.sd-ticks li::before, .sd-callout-ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--green-900) 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.sd-ticks--cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; }
.sd-ticks--cols li { font-size: 13.5px; }

/* Process steps */
.sd-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.sd-steps li { position: relative; display: flex; gap: 12px; align-items: flex-start; }
.sd-steps li + li::before { content: "›"; position: absolute; left: -12px; top: 12px; color: var(--navy); font-size: 22px; line-height: 1; }
.sd-step-num {
  display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 14px;
}
.sd-step-num--soft { width: 44px; height: 44px; background: var(--tint-blue); color: var(--navy); font-size: 22px; }
.sd-steps strong { display: block; font-family: var(--font-head); font-size: 14.5px; color: var(--navy); }
.sd-steps span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--text-muted); }
.sd-steps .sd-circle { width: 64px; height: 64px; }
.sd-steps .sd-circle .ico { width: 30px; height: 30px; }

/* Service area chips */
.sd-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.sd-areas li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.sd-areas .ico { width: 30px; height: 30px; fill: var(--green-900); stroke: var(--white); stroke-width: 1.4; }
.sd-areas strong { display: block; font-family: var(--font-head); font-size: 16px; color: var(--navy); }
.sd-areas span { font-size: 14px; color: var(--text-muted); }
.sd-area-map { width: 100%; max-width: 250px; height: auto; justify-self: center; }

/* Callout (safety note) */
.sd-callout { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; padding: 18px; border-radius: var(--radius-lg); background: var(--tint-green); }
.sd-callout .ico { width: 44px; height: 44px; color: var(--green-900); stroke-width: 1.5; }
.sd-callout strong { display: block; font-family: var(--font-head); font-size: 15.5px; color: var(--green-900); }
.sd-callout p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--text-muted); }

/* Offer card with photo (Painting) */
.sd-offer { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); overflow: hidden; border-radius: var(--radius-lg); background: var(--tint-green); }
.sd-offer--blue { background: var(--tint-blue); }
.sd-offer > img { width: 100%; height: 100%; object-fit: cover; }
.sd-offer-body { display: flex; gap: 14px; padding: 18px 20px; }
.sd-offer h3 { font-size: 20px; color: var(--navy); }
.sd-offer p { margin: 6px 0 10px; font-size: 14.5px; line-height: 1.45; color: var(--text-muted); }

/* Before/after (Drywall) */
.sd-ba { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--tint-blue); }
.sd-ba-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--white); }
.sd-ba figure { position: relative; margin: 0; }
.sd-ba img { width: 100%; height: auto; aspect-ratio: 3 / 5; object-fit: cover; }
.sd-ba figcaption {
  position: absolute; top: 14px; left: 12px; padding: 4px 12px; border-radius: var(--radius);
  background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 14px;
}
.sd-ba > p { padding: 10px 16px 12px; text-align: center; font-size: 14.5px; color: var(--text-muted); }

/* ---------- Forms on service pages ---------- */
.sd-form-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-md); scroll-margin-top: 110px; }
.sd-form-card--tint { background: var(--tint-blue); border-color: transparent; box-shadow: none; }
.sd-form-card > h2 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.sd-form-card > p { margin-top: 6px; font-size: 15.5px; color: var(--text-muted); }
.sd-form-card .quote-form { margin-top: 14px; gap: 12px 12px; }
.sd-form-card .quote-form input, .sd-form-card .quote-form select { height: 42px; }
.sd-note { display: flex; align-items: center; justify-content: center; gap: 8px; grid-column: 1 / -1; font-size: 13.5px; color: var(--text-muted); text-align: center; }
.sd-note .ico { width: 18px; height: 18px; color: var(--green); }
.sd-related { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--gray-300); }
.sd-related h3 { font-size: 15.5px; }
.sd-related ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; }
.sd-related a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--navy); text-decoration: none; }
.sd-related a:hover { color: var(--orange-600); }
.sd-related .ico { width: 18px; height: 18px; color: var(--navy); }

.sd-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-column: 1 / -1; }
.sd-choice label { display: flex; gap: 10px; padding: 12px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-lg); cursor: pointer; }
.sd-choice input { width: 18px !important; height: 18px !important; margin: 2px 0 0; accent-color: var(--orange); flex-shrink: 0; }
.sd-choice label:has(input:checked) { border-color: var(--orange); background: #fff8f2; }
.sd-choice strong { display: block; font-family: var(--font-head); font-size: 14px; color: var(--navy); }
.sd-choice span { display: block; font-size: 12.5px; line-height: 1.35; color: var(--text-muted); }
.sd-upload {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer;
  border: 1.5px dashed var(--gray-300); border-radius: var(--radius-lg); background: var(--gray-50);
}
.sd-upload:hover { border-color: var(--navy); }
.sd-upload .ico { width: 34px; height: 34px; color: var(--navy); stroke-width: 1.6; }
.sd-upload strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: 14.5px; color: var(--navy); }
.sd-upload span { display: block; font-size: 12.5px; color: var(--text-muted); }
.sd-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sd-upload-list { margin-top: 6px; font-size: 13px; color: var(--green-text); }

.sd-mini textarea { width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; font-size: 15px; border: 1.5px solid var(--gray-300); border-radius: var(--radius); resize: vertical; background: var(--white); }
.sd-mini .btn { width: 100%; margin-top: 12px; }

/* CTA strip extras */
.cta-strip-inner .cta-note { display: block; margin-top: 6px; text-align: center; font-size: 12.5px; color: var(--text-muted); }
.cta-strip-inner .cta-action { margin-left: auto; text-align: center; }
.cta-strip-inner .cta-action .btn { margin-left: 0; }
.cta-strip-badges { display: flex; gap: 22px; margin-left: 28px; }
.cta-strip-badges li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-muted); }
.cta-strip-badges .ico { width: 22px; height: 22px; color: var(--navy); }
.cta-band .ico.cta-band-icon { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .sd-grid--5, .sd-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sd-ticks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-why-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-strip-badges { display: none; }
}
@media (max-width: 1140px) {
  .sd-hero-grid, .sd-hero-grid--ba, .sd-split, .sd-split--even, .sd-split--form { grid-template-columns: 1fr; }
  .sd-ba { max-width: 520px; }
  .sd [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .sd-hero--bleed .sd-bleed, .sd-hero--bleed .sd-bleed--wide { position: relative; width: 100%; height: 300px; margin: 0; }
  .sd-hero--bleed .sd-bleed::before { display: none; }
  .sd-hero--bleed .hero-proof { display: none; }
  .sd-grid--4, .sd-steps, .sd-why-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-steps li + li::before { display: none; }
}
@media (max-width: 760px) {
  .sd-grid--2, .sd-grid--3, .sd-grid--4, .sd-grid--5, .sd-grid--6, .sd-steps, .sd-why-cols, .sd-why-row, .sd-areas, .sd-ticks--cols { grid-template-columns: 1fr; }
  .sd-media .hero-proof, .sd-badge { display: none; }
  .sd-hero-checks { grid-template-columns: 1fr; }
  .sd-offer { grid-template-columns: 1fr; }
  .sd-offer > img { aspect-ratio: 16 / 9; }
  .sd-choice { grid-template-columns: 1fr; }
  .sd-hero .btn-lg { width: 100%; }
}
