/* =====================================================
   SERVICE PAGES B: automatic, manual, lightning protection
   Built on css/design-system.css tokens. Everything scoped under .ds.
   Each page has its own layout:
     Automatic  = product-led (full-bleed photo + spec sheet)
     Manual     = practical, light (how-it-works sequence)
     Lightning  = dramatic (storm bands + checklist)
   ===================================================== */

/* ---------- Shared hero parts ---------- */
.ds .ds-svc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 1em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8dcc8;
  font-family: var(--ds-font-body);
  font-weight: 600;
  font-size: 0.85rem;
}

.ds .ds-svc-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-brass);
}

.ds .ds-svc-title {
  margin: 0.45rem 0 0.35rem;
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.2vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ds-white);
  text-wrap: balance;
}

.ds .ds-svc-sub {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.ds .ds-svc-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.5rem 0 1.6rem;
}

.ds .ds-svc-ctas .hero-btn {
  width: auto;
}

.ds .ds-svc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds .ds-svc-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.ds .ds-svc-stat > i {
  color: var(--ds-brass);
}

.ds .ds-svc-stat b {
  margin-right: 6px;
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ds-brass);
}

/* Live open/closed status (filled in by script.js) */
.ds .ds-svc-stat .open-status {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: inherit;
  font-weight: 600;
}

.ds .ds-svc-stat .open-status .status {
  margin-right: 6px;
  padding: 0;
  background: none;
  text-shadow: none;
  font-weight: 700;
}

.ds .ds-svc-stat .open-status .status.open {
  color: #2ecc71;
}

.ds .ds-svc-stat .open-status .status.closed {
  color: #ff6b6b;
}

.ds .ds-svc-stat-hours:has(.open-status.is-open) > i {
  color: #2ecc71;
}

.ds .ds-svc-stat-hours:has(.open-status.is-closed) > i {
  color: #ff6b6b;
}

.ds .ds-lead,
.ds .ds-section .ds-lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ds-graphite);
}

.ds .ag-generator-hero a:focus-visible,
.ds .mg-manual-hero a:focus-visible,
.ds .lp-lightning-hero a:focus-visible {
  outline: 3px solid var(--ds-brass);
  outline-offset: 3px;
}

/* Full-bleed photo heroes (automatic + lightning).
   script.js sets padding-top: 0 inline, so spacing lives on the inner. */
.ds .ds-svc-hero {
  position: relative;
  min-height: 0;
  padding: 0 0 clamp(40px, 6vw, 80px);
  color: var(--ds-white);
  background-color: var(--ds-graphite);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.ds .ds-svc-hero-inner {
  position: relative;
  padding-top: clamp(56px, 9vw, 120px);
}

/* =====================================================
   AUTOMATIC: product-led
   ===================================================== */
.ds .ag-generator-hero.ds-auto-hero {
  background-image:
    linear-gradient(100deg, rgba(17, 19, 22, 0.94) 22%, rgba(17, 19, 22, 0.58) 60%, rgba(17, 19, 22, 0.3) 100%),
    url('https://storage.googleapis.com/kws-clients/Waldman%20Electrical%20Contractors/Automatic/Cummins%20Power%20Gen%20Neill%20Gas%20DSC5719.webp');
}

.ds .ds-auto-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ds-maroon-bright), var(--ds-brass));
}

/* Intro: copy beside a captioned product photo */
.ds .ds-auto-intro {
  background: var(--ds-white);
}

.ds .ds-auto-intro-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.ds .ds-auto-intro-copy .ds-lead {
  margin-bottom: 1em;
}

.ds .ds-auto-intro-photo {
  margin: 0;
}

.ds .ds-auto-intro-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 30px 60px -24px rgba(26, 29, 33, 0.45);
}

.ds .ds-auto-intro-photo figcaption {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--ds-maroon);
  font-family: var(--ds-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ds-graphite);
}

/* Spec sheet: photo bleeds to the left edge, spec list on the right */
.ds .ds-auto-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ds-graphite);
  color: var(--ds-white);
}

.ds .ds-auto-spec-photo {
  margin: 0;
  min-height: 100%;
}

.ds .ds-auto-spec-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.ds .ds-auto-spec-body {
  padding: var(--ds-section-y) clamp(20px, 6vw, 96px);
  max-width: 680px;
}

.ds .ds-auto-spec .ds-h2 {
  color: var(--ds-white);
}

.ds .ds-spec {
  margin: 0;
  border-top: 2px solid var(--ds-brass);
}

.ds .ds-spec-row {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) 3fr;
  gap: 8px 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ds .ds-spec dt {
  font-family: var(--ds-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ds-white);
}

.ds .ds-spec dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

/* How the system works */
.ds .ds-auto-system {
  background: var(--ds-steel);
}

.ds .ds-auto-system-lead {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.ds .ds-auto-snow,
.ds .ds-auto-switch-photo {
  margin: 0;
}

.ds .ds-auto-snow img,
.ds .ds-auto-switch-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 30px 60px -28px rgba(26, 29, 33, 0.5);
}

.ds .ds-auto-snow img {
  aspect-ratio: 16 / 10;
}

.ds .ds-auto-switch {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(36px, 6vw, 80px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--ds-rule);
}

.ds .ds-auto-switch-photo img {
  aspect-ratio: 3 / 2;
}

.ds .ds-section .ds-auto-switch-pull {
  margin-top: 1.2em;
  padding-left: 18px;
  border-left: 3px solid var(--ds-maroon);
  font-family: var(--ds-font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  color: var(--ds-graphite);
}

/* Cummins Onan dealer band */
.ds .ds-auto-dealer {
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(176, 38, 72, 0.22), transparent 60%),
    var(--ds-graphite);
  color: var(--ds-white);
}

.ds .ds-auto-dealer-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.ds .ds-auto-dealer-photo {
  position: sticky;
  top: 140px;
  margin: 0;
}

.ds .ds-auto-dealer-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  outline: 1px solid rgba(201, 160, 106, 0.4);
  outline-offset: 10px;
}

.ds .ds-auto-dealer .ds-h2,
.ds .ds-auto-dealer .ds-h3 {
  color: var(--ds-white);
}

.ds .ds-auto-dealer .ds-h3 {
  margin-top: 1.4em;
  font-size: 1.5rem;
}

.ds .ds-section.ds-auto-dealer p {
  color: rgba(255, 255, 255, 0.75);
}

.ds .ds-auto-benefits-title {
  margin: 1.6em 0 0.4em;
  font-family: var(--ds-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ds-brass);
}

.ds .ds-auto-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds .ds-auto-benefits li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.ds .ds-auto-benefits li::before {
  content: '\f00c';
  position: absolute;
  left: 0;
  top: 15px;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--ds-brass);
}

.ds .ds-auto-benefits strong {
  display: block;
  color: var(--ds-white);
  font-family: var(--ds-font-display);
  font-weight: 600;
  font-size: 1.08rem;
}

.ds .ds-section.ds-auto-dealer .ds-auto-dealer-note {
  margin-top: 1.6em;
  padding-top: 1.2em;
  border-top: 2px solid var(--ds-brass);
  font-size: 1.1rem;
  color: var(--ds-white);
}

/* Closing band */
.ds .ds-auto-cta {
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(176, 38, 72, 0.35), transparent 60%),
    linear-gradient(160deg, #4a0e1c 0%, var(--ds-oxblood) 45%, #3a0a15 100%);
}

.ds .ds-auto-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.ds .ds-auto-cta .ds-h2 {
  color: var(--ds-white);
  max-width: 20ch;
  margin-bottom: 0.35em;
}

.ds .ds-section.ds-auto-cta p {
  color: rgba(255, 255, 255, 0.84);
}

.ds .ds-auto-cta .hero-btn {
  flex: none;
  width: auto;
}

/* =====================================================
   MANUAL: practical, light, how-it-works
   ===================================================== */
.ds .mg-manual-hero.ds-man-hero {
  position: relative;
  padding: 0 0 clamp(40px, 6vw, 80px);
  background: linear-gradient(180deg, var(--ds-steel) 0%, var(--ds-white) 100%);
  color: var(--ds-graphite);
  overflow: hidden;
}

.ds .ds-man-hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(48px, 8vw, 104px);
}

.ds .ds-svc-chip-light {
  background: var(--ds-white);
  border-color: var(--ds-rule);
  color: var(--ds-oxblood);
}

.ds .ds-man-hero .ds-svc-chip-dot {
  background: var(--ds-maroon);
}

.ds .ds-man-hero .ds-svc-ctas {
  flex-wrap: nowrap;
}

.ds .ds-man-hero .ds-svc-title {
  color: var(--ds-graphite);
}

.ds .ds-man-hero .ds-svc-sub {
  color: var(--ds-ink-2);
}

.ds .ds-man-hero .hero-btn-secondary {
  background: var(--ds-white);
  color: var(--ds-graphite);
}

.ds .ds-man-hero .hero-btn-secondary:hover {
  color: var(--ds-white);
}

.ds .ds-man-facts {
  padding-top: 16px;
  border-top: 1px solid var(--ds-rule);
}

.ds .ds-man-facts .ds-svc-stat {
  color: var(--ds-ink-2);
}

.ds .ds-man-facts .ds-svc-stat > i,
.ds .ds-man-facts .ds-svc-stat b {
  color: var(--ds-oxblood);
}

.ds .ds-man-facts .open-status .status.open {
  color: #1e8f4e;
}

.ds .ds-man-facts .open-status .status.closed {
  color: #c62828;
}

.ds .ds-man-facts .ds-svc-stat-hours:has(.open-status.is-open) > i {
  color: #1e8f4e;
}

.ds .ds-man-facts .ds-svc-stat-hours:has(.open-status.is-closed) > i {
  color: #c62828;
}

.ds .ds-man-hero-photo {
  margin: 0;
}

.ds .ds-man-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 14px 14px 14px 80px;
  box-shadow: 0 34px 70px -30px rgba(26, 29, 33, 0.55);
}

/* Intro: illustration + copy */
.ds .ds-man-intro {
  background: var(--ds-white);
  border-top: 1px solid var(--ds-rule);
}

.ds .ds-man-intro-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}

.ds .ds-man-intro-art {
  margin: 0;
}

.ds .ds-man-intro-art img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
}

.ds .ds-man-intro .ds-lead {
  margin-bottom: 1em;
}

/* "Include" list: typographic, hairline dividers, no boxes */
.ds .ds-man-include {
  background: var(--ds-steel);
}

.ds .ds-man-include-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.ds .ds-man-list {
  columns: 2;
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds .ds-man-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 16px 0 18px;
  border-top: 1px solid #c3c9d0;
  break-inside: avoid;
  color: var(--ds-ink-2);
  line-height: 1.5;
}

.ds .ds-man-list li > i {
  margin-top: 4px;
  color: var(--ds-maroon);
  font-size: 1.05rem;
}

.ds .ds-man-list strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--ds-font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ds-graphite);
}

/* Steps: numbered rail */
.ds .ds-man-steps-sec {
  background: var(--ds-white);
}

.ds .ds-man-steps {
  position: relative;
  margin: clamp(20px, 4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.ds .ds-man-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background: linear-gradient(180deg, var(--ds-maroon), var(--ds-brass));
}

.ds .ds-man-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 6fr 5fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: clamp(16px, 3vw, 32px) 0;
}

.ds .ds-man-step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  align-self: start;
  border-radius: 50%;
  background: var(--ds-maroon);
  border: 3px solid var(--ds-white);
  box-shadow: 0 0 0 2px var(--ds-brass);
  color: var(--ds-white);
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: 1.3rem;
}

.ds .ds-man-step-copy {
  padding-top: 8px;
}

.ds .ds-section .ds-man-step-copy p {
  font-size: 1.1rem;
  color: var(--ds-graphite);
}

.ds .ds-man-step-copy p + p {
  margin-top: 0.9em;
}

.ds .ds-man-step-img {
  margin: 0;
}

.ds .ds-man-step-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 24px 48px -28px rgba(26, 29, 33, 0.5);
}

.ds .ds-man-step-img-art img {
  object-fit: contain;
  padding: 16px;
  background: var(--ds-steel);
  box-shadow: none;
}

/* Closing: big phone number */
.ds .ds-man-cta {
  background: var(--ds-graphite);
  text-align: center;
}

.ds .ds-man-cta-inner .ds-h2 {
  color: var(--ds-white);
  margin: 0 auto 0.3em;
  max-width: 22ch;
}

.ds .ds-section.ds-man-cta p {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
}

.ds .ds-man-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1.1;
  color: var(--ds-brass);
  text-decoration: none;
  border-bottom: 3px solid rgba(201, 160, 106, 0.4);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ds .ds-man-cta-phone i {
  font-size: 0.6em;
}

.ds .ds-man-cta-phone:hover {
  color: var(--ds-white);
  border-color: var(--ds-maroon-bright);
}

/* =====================================================
   LIGHTNING: dramatic
   ===================================================== */
.ds .lp-lightning-hero.ds-lp-hero {
  background-image:
    radial-gradient(70% 70% at 50% 40%, rgba(17, 19, 22, 0.35), rgba(8, 9, 12, 0.92)),
    linear-gradient(180deg, rgba(8, 9, 12, 0.5), rgba(8, 9, 12, 0.85)),
    url('https://storage.googleapis.com/kws-clients/Waldman%20Electrical%20Contractors/Lightning/lightning-header-bg.webp');
}

.ds .ds-lp-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: clamp(420px, 62vh, 640px);
  justify-content: center;
  padding-bottom: 12px;
}

.ds .ds-lp-hero .ds-svc-title {
  font-size: clamp(3rem, 9vw, 6.2rem);
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}

.ds .ds-lp-hero .ds-svc-sub {
  margin: 0 auto;
  max-width: 44ch;
}

.ds .ds-lp-hero .ds-svc-ctas,
.ds .ds-lp-hero .ds-svc-stats {
  justify-content: center;
}

/* Intro with checklist */
.ds .ds-lp-intro {
  background: var(--ds-white);
}

.ds .ds-lp-intro-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.ds .ds-lp-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 1.2em 0 1.4em;
  padding: 16px 0;
  border-top: 1px solid var(--ds-rule);
  border-bottom: 1px solid var(--ds-rule);
  list-style: none;
}

.ds .ds-lp-checklist li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ds-font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ds-graphite);
}

.ds .ds-lp-checklist li::before {
  content: '\f0e7';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--ds-maroon);
}

.ds .ds-lp-intro-photo {
  position: relative;
  margin: 0;
}

.ds .ds-lp-intro-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 30px 60px -24px rgba(26, 29, 33, 0.5);
}

.ds .ds-lp-intro-photo::after {
  content: '';
  position: absolute;
  inset: auto -14px -14px auto;
  width: 45%;
  height: 45%;
  border-right: 3px solid var(--ds-brass);
  border-bottom: 3px solid var(--ds-brass);
  border-radius: 0 0 12px 0;
  pointer-events: none;
}

/* Dark storm band */
.ds .ds-lp-storm {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(120, 140, 200, 0.16), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(176, 38, 72, 0.2), transparent 60%),
    #0d0f13;
  color: var(--ds-white);
}

.ds .ds-lp-storm .ds-h2 {
  color: var(--ds-white);
  max-width: 18ch;
}

.ds .ds-lp-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(16px, 3vw, 32px);
}

.ds .ds-lp-col {
  padding: 4px clamp(20px, 4vw, 56px) 4px 0;
}

.ds .ds-lp-col + .ds-lp-col {
  padding: 4px 0 4px clamp(20px, 4vw, 56px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.ds .ds-lp-col .ds-h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ds-white);
  font-size: 1.5rem;
}

.ds .ds-lp-col .ds-h3 i {
  color: var(--ds-brass);
  font-size: 1rem;
}

.ds .ds-section.ds-lp-storm p {
  color: rgba(255, 255, 255, 0.74);
}

.ds .ds-lp-inline {
  color: var(--ds-brass);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ds .ds-lp-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin-top: clamp(32px, 5vw, 56px);
}

.ds .ds-lp-strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #1a1d21;
}

.ds .ds-lp-strip img {
  display: block;
  width: 100%;
  height: clamp(180px, 22vw, 280px);
  object-fit: cover;
  object-position: top;
  filter: saturate(0.9);
}

/* Products as spec rows */
.ds .ds-lp-products-sec {
  background: var(--ds-steel);
}

.ds .ds-lp-product {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 16px clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(22px, 3vw, 34px) 0;
  border-top: 1px solid #c3c9d0;
}

.ds .ds-lp-product:last-of-type {
  border-bottom: 1px solid #c3c9d0;
}

.ds .ds-lp-product .ds-h3 {
  font-size: 1.6rem;
  margin: 0;
}

.ds .ds-lp-product p {
  max-width: 64ch;
}

.ds .ds-lp-see {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--ds-graphite);
  border-radius: 999px;
  color: var(--ds-graphite);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ds .ds-lp-see:hover,
.ds .ds-lp-see:focus-visible {
  background: var(--ds-graphite);
  color: var(--ds-white);
}

/* Closing storm band */
.ds .ds-lp-cta {
  background:
    linear-gradient(180deg, rgba(13, 15, 19, 0.82), rgba(13, 15, 19, 0.92)),
    url('https://storage.googleapis.com/kws-clients/Waldman%20Electrical%20Contractors/Lightning/lightning-cta-bg.webp') center/cover no-repeat;
  text-align: center;
  border-top: 4px solid var(--ds-maroon-bright);
}

.ds .ds-lp-cta .ds-h2 {
  color: var(--ds-white);
  margin: 0 auto 0.35em;
  max-width: 20ch;
}

.ds .ds-section.ds-lp-cta p {
  margin: 0 auto 1.4em;
  color: rgba(255, 255, 255, 0.82);
}

.ds .ds-lp-cta .hero-btn {
  width: auto;
}

.ds .ds-section.ds-lp-cta .ds-lp-store {
  margin: 1.6em auto 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.ds .ds-lp-store a {
  color: var(--ds-brass);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =====================================================
   Tablet
   ===================================================== */
@media (max-width: 991px) {
  .ds .ds-auto-intro-grid,
  .ds .ds-auto-system-lead,
  .ds .ds-auto-switch,
  .ds .ds-auto-dealer-grid,
  .ds .ds-man-hero-grid,
  .ds .ds-man-intro-grid,
  .ds .ds-man-include-grid,
  .ds .ds-lp-intro-grid {
    grid-template-columns: 1fr;
  }

  .ds .ds-auto-spec {
    grid-template-columns: 1fr;
  }

  .ds .ds-auto-spec-photo img {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ds .ds-auto-spec-body {
    max-width: none;
  }

  .ds .ds-auto-dealer-photo {
    position: static;
    max-width: 420px;
  }

  .ds .ds-man-hero-photo {
    max-width: 600px;
  }

  .ds .ds-man-step {
    grid-template-columns: 48px 1fr;
  }

  .ds .ds-man-step-img {
    grid-column: 2;
  }

  .ds .ds-lp-intro-photo {
    max-width: 520px;
  }

  .ds .ds-lp-intro-photo img {
    aspect-ratio: 16 / 10;
  }

  .ds .ds-lp-product {
    grid-template-columns: 1fr auto;
  }

  .ds .ds-lp-product p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* =====================================================
   Mobile
   ===================================================== */
@media (max-width: 768px) {
  .ds .ag-generator-hero.ds-auto-hero,
  .ds .lp-lightning-hero.ds-lp-hero,
  .ds .mg-manual-hero.ds-man-hero {
    padding: 0 0 30px;
  }

  .ds .ag-generator-hero.ds-auto-hero {
    background-image:
      linear-gradient(180deg, rgba(17, 19, 22, 0.7), rgba(17, 19, 22, 0.92)),
      url('https://storage.googleapis.com/kws-clients/Waldman%20Electrical%20Contractors/Automatic/Cummins%20Power%20Gen%20Neill%20Gas%20DSC5719.webp');
  }

  .ds .ds-svc-hero-inner {
    padding-top: 36px;
    text-align: center;
  }

  .ds .ds-svc-sub {
    margin: 0 auto;
  }

  .ds .ds-svc-ctas {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    margin: 1.2rem 0;
  }

  .ds .ds-svc-ctas .hero-btn {
    padding: 11px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.4px;
  }

  .ds .ds-svc-ctas .hero-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 6px !important;
  }

  .ds .ds-svc-stats {
    justify-content: center;
    gap: 6px 16px;
  }

  .ds .ds-svc-stat {
    font-size: 0.85rem;
  }

  .ds .ds-svc-stat b {
    font-size: 1.05rem;
  }

  .ds .ds-lead,
  .ds .ds-section .ds-lead {
    font-size: 1.08rem;
  }

  .ds .ds-lp-hero-inner {
    min-height: 0;
    padding-top: 56px;
  }

  .ds .ds-man-hero-grid {
    padding-top: 32px;
    text-align: center;
  }

  .ds .ds-man-facts {
    border-top: 0;
    padding-top: 0;
  }

  .ds .ds-man-hero-photo img {
    aspect-ratio: 16 / 10;
    border-radius: 12px 12px 12px 48px;
  }

  .ds .ds-auto-spec-body {
    padding: 44px 16px;
  }

  .ds .ds-spec-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px 0;
  }

  .ds .ds-auto-snow img {
    aspect-ratio: 16 / 11;
  }

  .ds .ds-auto-benefits {
    grid-template-columns: 1fr;
  }

  .ds .ds-auto-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ds .ds-man-intro-art img {
    max-width: 220px;
  }

  .ds .ds-man-list {
    columns: 1;
  }

  .ds .ds-man-list li {
    padding: 12px 0 14px;
  }

  .ds .ds-man-steps::before {
    left: 17px;
  }

  .ds .ds-man-step {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 14px 0;
  }

  .ds .ds-man-step-num {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }

  .ds .ds-section .ds-man-step-copy p {
    font-size: 1rem;
  }

  .ds .ds-man-step-copy {
    padding-top: 4px;
  }

  .ds .ds-lp-checklist {
    gap: 8px 18px;
  }

  .ds .ds-lp-checklist li {
    font-size: 1.05rem;
  }

  .ds .ds-lp-intro-photo::after {
    inset: auto -8px -8px auto;
  }

  .ds .ds-lp-columns {
    grid-template-columns: 1fr;
  }

  .ds .ds-lp-col,
  .ds .ds-lp-col + .ds-lp-col {
    padding: 18px 0;
    border-left: 0;
  }

  .ds .ds-lp-col + .ds-lp-col {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .ds .ds-lp-strip {
    grid-template-columns: 1fr 1fr;
  }

  .ds .ds-lp-strip figure:first-child {
    grid-column: span 2;
  }

  .ds .ds-lp-strip img {
    height: 150px;
  }

  .ds .ds-lp-strip figure:first-child img {
    height: 190px;
  }

  .ds .ds-lp-product {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ds .ds-lp-product p {
    grid-row: auto;
  }

  .ds .ds-lp-see {
    justify-self: start;
  }
}

@media (max-width: 359px) {
  .ds .ds-svc-ctas {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds .ds-lp-see,
  .ds .ds-man-cta-phone {
    transition: none;
  }
}

/* Let the manual hero columns shrink on very small phones */
.ds .ds-man-hero-grid > * {
  min-width: 0;
}
