/*
 * Window Cleaning service page (v1.5.2 rebuild).
 * Section, count-diagram and calculator styles. Depends on base.css tokens;
 * check-list, callout and before/after slider styles come from patterns/*.css.
 */
/* shared section rhythm + lead copy.
   padding-block only: the lateral padding must stay with the theme rules
   (.full-width-bg re-adds the mobile gutter; a `padding: X 0` shorthand here
   was zeroing it and let text touch the screen edges on mobile). */
.wc-included, .wc-ba, .wc-calc, .wc-methods, .wc-work, .wc-proof, .wc-neighborhoods {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}
.wc-lead {
  max-width: 760px;
  margin: 1.25rem auto 0;
  color: var(--wp--preset--color--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.wc-ba > .wc-lead, .wc-calc > .wc-lead, .wc-methods > .wc-lead,
.wc-work > .wc-lead, .wc-included > .wc-lead, .wc-neighborhoods > .wc-lead {
  margin-bottom: var(--section-header-spacing);
}

/* --- A. What's included --- */
.wc-included { background: var(--wp--preset--color--neutral); }
.wc-included-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}
.wc-included .check-list { max-width: none; }
.wc-included-note { background: var(--wp--preset--color--base); }

/* --- merged pricing: how-we-count diagram (6 panels: clean 3 + 3) --- */
.wc-count-title { text-align: center; font-size: 1.25rem; margin: 0 0 1.75rem; }
.wc-count-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.wc-count-panel { text-align: center; }
.wc-count-art {
  height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--wp--preset--color--contrast);
  margin-bottom: 0.65rem;
}
.wc-count-art .wc-win { width: auto; height: 100%; }
/* merged "Counts as 2" panel: two glyphs side by side with a small "or" */
.wc-count-art--dual { gap: 0.5rem; }
.wc-count-art--dual .wc-win { height: 46px; }
.wc-count-or { align-self: center; font-size: 0.75rem; color: var(--wp--preset--color--text); }
.wc-count-n {
  display: block;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  font-size: 0.9375rem;
  margin-bottom: 0.2rem;
}
.wc-count-cap { font-size: 0.8125rem; line-height: 1.5; color: var(--wp--preset--color--text); margin: 0; }

/* --- D. Estimator / calculator --- */
.wc-calc { background: var(--wp--preset--color--neutral); }
/* white "Why Clean Windows Matter" + tighter gap into "How We Clean" (review) */
.service-benefits { background: var(--wp--preset--color--base) !important; padding-bottom: calc(var(--section-padding) / 2) !important; }
.wc-methods { padding-top: calc(var(--section-padding) / 2); }
.wc-est-card {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow-hover);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  overflow: hidden;
}
.wc-est-build { padding: 2rem; }
.wc-est-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--wp--preset--color--text);
  margin: 0 0 0.75rem;
}
.wc-est-section-label + .wc-step-card { margin-top: 0; }
.wc-est-build .wc-est-section-label:not(:first-child) { margin-top: 1.75rem; }
.wc-step-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.wc-step-card:last-of-type { border-bottom: 0; }
.wc-step-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--primary);
  background: var(--wp--preset--color--neutral);
  border-radius: 10px;
}
.wc-step-icon .wc-win { width: 30px; height: 30px; }
.wc-step-body { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.wc-step-name { font-weight: 700; color: var(--wp--preset--color--contrast); }
.wc-step-note { font-size: 0.8125rem; color: var(--wp--preset--color--text); }
.wc-stepper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.wc-step-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--base);
  border-radius: 9999px;
  color: var(--wp--preset--color--contrast);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}
.wc-step-btn:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}
.wc-step-btn:focus-visible {
  outline: 3px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}
.wc-step-count {
  width: 58px;
  height: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--wp--preset--color--contrast);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 10px;
  background: var(--wp--preset--color--base);
  -moz-appearance: textfield;
  appearance: textfield;
}
.wc-step-count::-webkit-outer-spin-button,
.wc-step-count::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wc-step-count:focus-visible {
  outline: 3px solid var(--wp--preset--color--primary);
  outline-offset: 1px;
  border-color: var(--wp--preset--color--primary);
}
.wc-stepper--sm .wc-step-btn { width: 38px; height: 38px; font-size: 1.1rem; }
.wc-stepper--sm .wc-step-count { width: 52px; height: 38px; }

.wc-step-sub { font-size: 0.75rem; color: var(--wp--preset--color--text); opacity: 0.85; }
.wc-step-math { font-size: 0.8125rem; color: var(--wp--preset--color--primary); font-weight: 600; min-height: 1rem; }

/* segmented controls (service type, yes/no) */
.wc-seg { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.wc-seg-btn {
  flex: 1;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--base);
  border-radius: 9999px;
  font-weight: 700;
  color: var(--wp--preset--color--contrast);
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}
.wc-seg-btn:hover { border-color: var(--wp--preset--color--primary); }
.wc-seg-btn:focus-visible { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 2px; }
.wc-seg-btn.is-active { background: var(--wp--preset--color--contrast); color: #fff; border-color: var(--wp--preset--color--contrast); }
.wc-seg--sm { margin-bottom: 0; }
.wc-seg--sm .wc-seg-btn { flex: 0 0 auto; min-width: 60px; padding: 0.45rem 1rem; }

/* post-construction yes/no row */
.wc-est-yn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 1rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
  margin-bottom: 1rem;
}
.wc-est-yn-body { display: flex; flex-direction: column; line-height: 1.3; }
.wc-est-yn-name { font-weight: 700; color: var(--wp--preset--color--contrast); }
.wc-est-yn-note { font-size: 0.8125rem; color: var(--wp--preset--color--text); }

/* storm rough-count reveal */

/* window-tracks sub-section (inside & out only) */
.wc-tracks-section { margin-top: 0.5rem; }
.wc-est-section-sub { font-weight: 400; font-size: 0.75rem; color: var(--wp--preset--color--text); text-transform: none; letter-spacing: 0; }
.wc-tracks-note { font-size: 0.8125rem; color: var(--wp--preset--color--text); margin: 0 0 0.75rem; }

.wc-est-summary {
  background: var(--wp--preset--color--contrast);
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
/* slim sticky running-total bar (mobile only; keeps the price visible while picking) */
.wc-est-mtotal { display: none; }
.wc-est-mtotal-info { display: flex; flex-direction: column; line-height: 1.35; }
.wc-est-mtotal-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); }
.wc-est-mtotal-count { font-size: 0.875rem; color: rgba(255, 255, 255, 0.9); }
.wc-est-mtotal-disc { font-size: 0.75rem; color: #9be3a8; }
.wc-est-mtotal-min { font-size: 0.75rem; color: #ffc9a8; }
.wc-est-mtotal-num { font-size: 1.375rem; font-weight: 700; }
.wc-est-mtotal-num.is-quote { font-size: 1rem; }
.wc-est-summary-count { font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); margin-top: 0.1rem; }
.wc-est-hint { font-size: 0.8125rem; color: var(--wp--preset--color--text); margin: 0 0 0.75rem; }
.wc-est-summary-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}
.wc-est-total {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0.25rem;
}
.wc-est-total.is-quote { font-size: 1.75rem; }
.wc-est-total-note { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); margin-top: 0.15rem; }
/* highlighted discount / minimum callouts in the summary (desktop parity with the mobile bar) */
.wc-est-callout {
  margin-top: 0.85rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.wc-est-callout--disc { background: rgba(155, 227, 168, 0.15); color: #9be3a8; }
.wc-est-callout--min { background: rgba(255, 201, 168, 0.15); color: #ffc9a8; }
.wc-est-lines {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.wc-est-lines li {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.wc-est-lines li .wc-line-amt { font-weight: 700; white-space: nowrap; }
.wc-est-lines li.wc-line-qual { color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; }
.wc-est-empty { color: rgba(255, 255, 255, 0.6) !important; font-style: italic; }
.wc-est-disclaimer { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); line-height: 1.5; margin: 1.25rem 0 1.25rem; }
.wc-est-cta {
  display: block;
  text-align: center;
  padding: 0.9rem 1.5rem;
  background: var(--wp--preset--color--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.wc-est-cta:hover { background: var(--wp--preset--color--primary-dark); transform: translateY(-2px); }
.wc-est-cta-secondary {
  display: block;
  text-align: center;
  margin-top: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  transition: color var(--transition-fast);
}
.wc-est-cta-secondary:hover { color: #fff; }

/* --- B. How we clean --- */
.wc-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}
.wc-method-card { max-width: none; text-align: left; }
/* icon to the left of the title to save vertical space (Mike v1.3) */
.wc-method-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.75rem; }
.wc-method-head .feature-icon { margin: 0; flex-shrink: 0; }
.wc-method-head .feature-title { margin: 0; }
.wc-quote-flow { max-width: 760px; margin: 0 auto; }
.wc-quote-title { text-align: center; font-size: 1.25rem; margin: 0 0 1.5rem; }
.wc-quote-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.wc-quote-step { display: flex; align-items: flex-start; gap: 0.85rem; }
.wc-quote-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--wp--preset--color--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
}
.wc-quote-text { color: var(--wp--preset--color--text); line-height: 1.6; padding-top: 0.3rem; }

/* --- E. See the difference (two before/after sliders) + on-the-job gallery --- */
.wc-ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.wc-ba-item { margin: 0; }
.wc-ba-grid .wc-ba-slider { aspect-ratio: 1 / 1; max-width: none; margin: 0; }
.wc-work-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.wc-work-item { margin: 0; flex: 0 1 305px; }
.wc-work-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow-hover);
}

/* --- F. Proof --- */
.wc-proof { background: var(--wp--preset--color--contrast); }
.wc-proof-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}
.wc-proof-rating { text-align: center; display: flex; flex-direction: column; gap: 0.35rem; }
.wc-proof-stars { color: var(--wp--preset--color--primary); font-size: 1.5rem; letter-spacing: 0.12em; }
.wc-proof-score { color: #fff; font-size: 2rem; font-weight: 700; line-height: 1; }
.wc-proof-count { color: rgba(255, 255, 255, 0.7); font-size: 0.9375rem; line-height: 1.5; }
.wc-proof-count a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.wc-proof-guarantee { border-left: 1px solid rgba(255, 255, 255, 0.18); padding-left: 2.5rem; }
.wc-proof-title { color: #fff; text-align: left !important; margin: 0 0 0.75rem; }
.wc-proof-title::after { left: 0 !important; transform: none !important; }
.wc-proof-guarantee p { color: rgba(255, 255, 255, 0.82); line-height: 1.7; margin: 0; }

/* --- G. Neighborhoods --- */
.wc-neighborhoods { background: var(--wp--preset--color--neutral); }
.wc-hood-grid {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.wc-hood {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  background: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 9999px;
  color: var(--wp--preset--color--contrast);
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.wc-hood span { color: var(--wp--preset--color--primary); }
.wc-hood:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }

/* --- responsive --- */
@media (max-width: 900px) {
  .wc-est-card { grid-template-columns: 1fr; }
  .wc-included-grid, .wc-proof-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .wc-proof-guarantee { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 1.75rem; }
  .wc-proof-title { text-align: center !important; }
  .wc-proof-title::after { left: 50% !important; transform: translateX(-50%) !important; }
  .wc-method-grid { grid-template-columns: 1fr; }
  .wc-ba-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  /* width:100% keeps both stacked sliders the same size — auto margins alone
     turn off grid-item stretching and shrink each figure to its caption width */
  .wc-ba-item { margin: 0 auto; max-width: 480px; width: 100%; }
}
@media (max-width: 767px) {
  .wc-count-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 0.75rem; }
  .wc-work-item { flex: 0 1 160px; }
  .wc-hood-grid { grid-template-columns: 1fr 1fr; }
  /* mobile trust row: keep only the Google review + Background-Checked (Mike v1.3) */
  .service-hero .wc-hide-mobile { display: none !important; }
  /* pre-existing theme quirk: .service-benefits loses its mobile gutter */
  .service-benefits { padding-left: var(--content-padding-mobile, 1rem) !important; padding-right: var(--content-padding-mobile, 1rem) !important; }
  .wc-ba-slider { aspect-ratio: 1 / 1; }
  .wc-lead { font-size: 1rem; }
  /* compact the calculator so more fits, and pin a running total at the top */
  .wc-est-card { overflow: visible; }  /* let the sticky total escape (desktop clips for rounded corners) */
  .wc-est-mtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: sticky;
    top: 155px; /* clears the sticky header (utility bar + the 23%-smaller nav) on mobile */
    z-index: 6;
    background: var(--wp--preset--color--contrast);
    color: #fff;
    padding: 0.7rem 1.25rem;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
  }
  .wc-est-build { padding: 1rem 1.25rem; }
  .wc-step-card { padding: 0.5rem 0; gap: 0.7rem; }
  .wc-step-icon { width: 38px; height: 38px; }
  .wc-step-icon .wc-win { width: 26px; height: 26px; }
  .wc-step-note { font-size: 0.75rem; }
  .wc-est-summary { padding: 1.5rem 1.25rem; }
  .wc-est-total { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wc-est-cta, .wc-step-btn, .wc-toggle, .wc-hood { transition: none; }
  .wc-hero-bg { transform: none; }
}

/* --- hero: blurred branded-van background + white text (Mike v1.3) --- */
/* full-bleed: the parent column is already viewport-wide, so un-cap the WP
   constrained max-width / auto-margins; children stay centered by the hero's
   own constrained layout. Plus breathing room top/bottom. */
.service-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--wp--preset--color--contrast);
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  /* pull the hero up to sit flush under the sticky header, like the homepage.
     .page-content adds --page-top-padding above it, which otherwise left a gap
     that made the sticky bar look too tall until the hero scrolled up under it. */
  margin-top: calc(-1 * var(--page-top-padding)) !important;
  padding-top: 4.5rem !important;
  padding-bottom: 4rem !important;
}
/* intro under the hero: top padding was 2rem vs 3rem bottom; match the bottom */
.service-intro { padding-top: 3rem !important; }

@media (max-width: 782px) {
  .service-hero {
    padding-top: 3rem !important;
    padding-bottom: 2.75rem !important;
    /* escape the parent's mobile gutter, same as the theme's .full-width-bg */
    margin-left: calc(-1 * var(--content-padding-mobile, 1rem)) !important;
    margin-right: calc(-1 * var(--content-padding-mobile, 1rem)) !important;
    padding-left: var(--content-padding-mobile, 1rem);
    padding-right: var(--content-padding-mobile, 1rem);
  }
}
.wc-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
  /* Mike v1.3: no blur, sharp photo like the homepage; darkened so the
     centered white text stays readable, with a scrim (::after) on top. */
  filter: brightness(0.62) saturate(1.05);
  z-index: -2;
}
.service-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(35, 36, 38, 0.35), rgba(35, 36, 38, 0.55));
  z-index: -1;
}
.service-hero .wp-block-heading,
.service-hero .page-hero-subtitle { color: #fff; }
.service-hero .trust-items { border-color: rgba(255, 255, 255, 0.22); }
.service-hero .trust-item,
.service-hero .trust-item span,
.service-hero .trust-item strong,
.service-hero .trust-icon { color: #fff; }
.service-hero .wp-block-button.is-style-outline .wp-block-button__link { color: #fff !important; border-color: #fff !important; }
.service-hero .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.14) !important; }

/* clickable review (Mike v1.3: link to Google, like the homepage) */
.testimonial-link { display: block; text-decoration: none; color: inherit; transition: transform var(--transition-fast); }
.testimonial-link:hover { transform: translateY(-2px); }
.testimonial-link:focus-visible { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 3px; border-radius: 10px; }
/* clickable hero rating badge, like the homepage hero trust line */
/* homepage-style Google review element (Google logo + gold stars + count) */
.service-hero .wc-hero-review {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}
.wc-hero-review-g { display: inline-flex; }
.wc-hero-review-g svg { width: 20px; height: 20px; display: block; }
.wc-hero-review-stars { color: #fbbf24; letter-spacing: 0.06em; font-size: 1.05em; }
.wc-hero-review-txt { color: #fff; }
.wc-hero-review:hover .wc-hero-review-txt { text-decoration: underline; text-underline-offset: 3px; }
.wc-hero-review:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 6px; }

