/* ══════════════════════════════════════════════════════════════
   BBS ELECTRIC — /css/templates/service.css
   Individual service page template styles
   Shared by all service sub-pages
══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────
   HERO SECTION
────────────────────────────────────────── */
.service-hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: calc(var(--header-height, 120px) + var(--space-12));
  padding-bottom: var(--space-16);
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 0;
}

.service-hero-content {
  position: relative;
  z-index: 1;
}

.service-hero-text {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Eyebrow badge */
.service-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(244, 89, 41, 0.85); /* tertiary orange, semi-transparent */
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  width: fit-content;
  align-self: flex-start;
  backdrop-filter: blur(4px);
}

.service-hero-title {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.service-hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--line-height-relaxed);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  max-width: 100%;
  margin: 0;
}

.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Breadcrumb */
.service-breadcrumb {
  margin-bottom: var(--space-6);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: color var(--duration-fast) var(--ease-default);
}

.breadcrumb-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
}

.breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

/* ──────────────────────────────────────────
   OVERVIEW SECTION (Split Layout)
────────────────────────────────────────── */
.service-overview-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.service-overview-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.service-overview-heading {
  color: var(--color-heading);
  margin: 0;
}

.service-overview-intro {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.service-overview-intro p {
  margin: 0 0 var(--space-4);
}

.service-overview-intro p:last-child {
  margin-bottom: 0;
}

/* Trust pills */
.service-overview-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.service-overview-cta {
  width: fit-content;
}

/* Image column (sticky) */
.service-overview-image-wrap {
  position: sticky;
  top: calc(var(--header-height, 120px) + var(--space-8));
  align-self: start;
}

.service-overview-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-xl);
}

/* Decorative accent corner on image */
.service-img-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 80px;
  height: 80px;
  background: var(--color-tertiary);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0.7;
}

/* ──────────────────────────────────────────
   BENEFITS / FEATURES (Dark)
────────────────────────────────────────── */
.service-benefits {
  position: relative;
  overflow: hidden;
}

.service-section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.service-section-header-center {
  align-items: center;
  text-align: center;
}

.service-section-intro {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  max-width: 640px;
  margin: 0 auto;
}

/* Section label variants for different backgrounds */
.service-label-light {
  color: rgba(255, 255, 255, 0.9);
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}

.service-label-accent {
  color: var(--color-accent);
}

/* Benefits grid */
.service-benefits-grid {
  width: 100%;
}

/* Benefit card - dark theme */
.service-benefit-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: background var(--duration-normal) var(--ease-default),
              transform var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
}



.service-benefit-icon {
  background: var(--color-tertiary);
  color: #ffffff;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.service-benefit-title {
  color: #ffffff;
  margin: 0;
}

.service-benefit-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* ──────────────────────────────────────────
   WHY CHOOSE BBS ELECTRIC (White)
────────────────────────────────────────── */
.service-why-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.service-why-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.service-why-heading {
  color: var(--color-heading);
  margin: 0;
}

.service-why-intro {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Bullet list */
.service-why-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-why-bullet {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
}

.why-bullet-icon {
  flex-shrink: 0;
  color: var(--color-tertiary);
  margin-top: 2px;
}

.service-why-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* Image frame with floating badge */
.service-why-image-wrap {
  position: sticky;
  top: calc(var(--header-height, 120px) + var(--space-8));
  align-self: start;
}

.service-why-img-frame {
  position: relative;
}

.service-why-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-xl);
}

/* Floating stats badge */
.service-why-badge {
  position: absolute;
  bottom: var(--space-6);
  left: calc(-1 * var(--space-8));
  background: var(--color-secondary);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-xl);
  min-width: 110px;
}

.service-stat-number {
  font-size: var(--font-size-3xl);
  color: var(--color-accent);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
}

/* ──────────────────────────────────────────
   PROCESS SECTION (Primary Blue)
────────────────────────────────────────── */
.service-process {
  position: relative;
  overflow: hidden;
}

/* Steps horizontal layout */
.service-process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.service-process-step {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  position: relative;
}

/* Large step number circle */
.service-process-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Colorful step numbers — cycle through brand colors */
.service-process-step:nth-child(1) .service-process-number {
  background: #2099df !important;
  border-color: #2099df !important;
  color: #ffffff !important;
}

.service-process-step:nth-child(2) .service-process-number {
  background: #f2420d !important;
  border-color: #f2420d !important;
  color: #ffffff !important;
}

.service-process-step:nth-child(3) .service-process-number {
  background: #fed401 !important;
  border-color: #fed401 !important;
  color: #111827 !important;
}

.service-process-step:nth-child(4) .service-process-number {
  background: #3b76c4 !important;
  border-color: #3b76c4 !important;
  color: #ffffff !important;
}

.service-process-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-process-title {
  color: #ffffff;
  margin: 0;
}

.service-process-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Connector line between steps (pseudo-element on step, hidden on last) */
.service-process-connector {
  display: none; /* enabled on desktop via layout override */
}

/* ──────────────────────────────────────────
   GALLERY SECTION
────────────────────────────────────────── */
.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.service-gallery-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  line-height: 0;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
}

.service-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.service-gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform var(--duration-moderate) var(--ease-default);
}

.service-gallery-item:hover .service-gallery-img {
  transform: scale(1.05);
}

/* ──────────────────────────────────────────
   FAQ SECTION (Two-column layout)
────────────────────────────────────────── */
.service-faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
  align-items: start;
}

.service-faq-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: sticky;
  top: calc(var(--header-height, 120px) + var(--space-8));
  align-self: start;
}

.service-faq-heading {
  color: var(--color-heading);
  margin: 0;
}

.service-faq-intro {
  margin: 0;
  line-height: var(--line-height-relaxed);
}

.service-faq-cta {
  width: fit-content;
}

.service-faq-accordion {
  width: 100%;
}

/* ──────────────────────────────────────────
   RELATED SERVICES
────────────────────────────────────────── */
.service-related-grid {
  width: 100%;
}

/* Related service card */
.service-related-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  text-decoration: none;
  color: #ffffff;
  border: 1px solid var(--color-border);
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default),
              border-color var(--duration-normal) var(--ease-default);
}

.service-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-dark);
}

.service-related-icon {
  background: var(--color-accent);
  color: #111827;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.service-related-name {
  color: #ffffff;
  margin: 0;
  flex: 1;
}

.service-related-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-top: auto;
  padding: var(--space-2) var(--space-4);
  background: #f2420d;
  border-radius: var(--radius-md);
  align-self: flex-start;
  transition: gap var(--duration-fast) var(--ease-default),
              background var(--duration-fast) var(--ease-default);
}

.service-related-card:hover .service-related-link {
  color: #ffffff;
  background: #c93309;
  gap: var(--space-3);
}

.service-related-footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

/* ──────────────────────────────────────────
   CTA BANNER (Dark)
────────────────────────────────────────── */
.service-cta-banner {
  position: relative;
  overflow: hidden;
  background-image: url('https://connect.mediaserve.io/storage/v1/object/public/media/78dba5ff-e514-44fd-bc2d-1f49dd7a0a6f/5c9d2d2f-3048-447f-a7dc-308895f8d0cb/media/images/bbs-electric-Hero-2-1920x1080.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(32, 153, 223, 0.72));
  z-index: 0;
}

.service-cta-container {
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}

.service-cta-icon-wrap {
  margin-bottom: var(--space-2);
}

.service-cta-icon {
  background: var(--color-tertiary);
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

.service-cta-heading {
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.service-cta-subtext {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  max-width: 560px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

/* Trust strip below CTA buttons */
.service-cta-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
}

.cta-trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.cta-trust-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--font-size-sm);
}

/* ──────────────────────────────────────────
   RESPONSIVE: TABLET (max 1024px)
────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Overview: stack columns */
  .service-overview-container {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Remove sticky on tablet for overview + why */
  .service-overview-image-wrap,
  .service-why-image-wrap,
  .service-faq-header {
    position: static;
  }

  /* Why section: stack */
  .service-why-container {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Move image above list on mobile */
  .service-why-image-wrap {
    order: -1;
  }

  /* FAQ: stack columns */
  .service-faq-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Floating badge: reposition */
  .service-why-badge {
    left: var(--space-4);
    bottom: var(--space-4);
  }

  /* Process: allow two per row */
  .service-process-step {
    max-width: 220px;
  }

  /* Related grid: 2 cols */
  .grid-3.service-related-grid > * {
    flex: 0 0 calc(50% - var(--grid-gutter) / 2);
  }
}

/* ──────────────────────────────────────────
   RESPONSIVE: MOBILE (max 768px)
────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hero */
  .service-hero {
    min-height: 380px;
    padding-top: calc(var(--header-height, 70px) + var(--space-8));
    padding-bottom: var(--space-10);
  }

  .service-hero-title {
    font-size: var(--font-size-3xl);
  }

  .service-hero-subtitle {
    font-size: var(--font-size-base);
    max-width: 100%;
  }

  .service-hero-text {
    gap: var(--space-4);
  }

  .service-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    width: 100%;
  }

  .service-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Breadcrumb: hide on very small screens */
  .service-breadcrumb {
    display: none;
  }

  /* Overview: tighter gap on mobile */
  .service-overview-container {
    gap: var(--space-8);
  }

  /* Overview trust pills: wrap */
  .service-overview-trust {
    gap: var(--space-2);
  }

  /* Overview CTA full width */
  .service-overview-cta {
    width: 100%;
    justify-content: center;
  }

  /* Benefits: single column */
  .grid-3.service-benefits-grid > * {
    flex: 0 0 100%;
  }

  .service-benefit-card {
    padding: var(--space-6);
  }

  /* Process: single column, no side-by-side on small screens */
  .service-process-steps {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
  }

  .service-process-step {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  /* Gallery: 1 col on small screens */
  .service-gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Related: single column */
  .grid-3.service-related-grid > * {
    flex: 0 0 100%;
  }

  /* CTA trust strip: stack */
  .cta-trust-sep {
    display: none;
  }

  .service-cta-trust {
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-start;
    padding-top: var(--space-4);
  }

  .service-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .service-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Why: reduce heading size on mobile */
  .service-why-heading {
    font-size: var(--font-size-2xl);
  }

  /* Why actions: stack buttons */
  .service-why-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .service-why-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Why badge: hide on mobile (too tight) */
  .service-why-badge {
    display: none;
  }

  /* FAQ CTA button: full width */
  .service-faq-cta {
    width: 100%;
    justify-content: center;
  }

  /* FAQ section: reduce header section gap */
  .service-faq-inner {
    gap: var(--space-6);
  }
}

/* ──────────────────────────────────────────
   RESPONSIVE: SMALL MOBILE (max 480px)
────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Prevent hero title overflow on very small screens */
  .service-hero-title {
    font-size: var(--font-size-2xl);
    word-break: break-word;
  }

  .service-hero {
    padding-top: calc(var(--header-height, 70px) + var(--space-6));
    padding-bottom: var(--space-8);
  }

  /* Benefits card: compact padding */
  .service-benefit-card {
    padding: var(--space-5);
  }

  /* Process number: slightly smaller */
  .service-process-number {
    width: 52px;
    height: 52px;
    font-size: var(--font-size-xl);
  }

  /* Why section: tighter gap */
  .service-why-container {
    gap: var(--space-6);
  }
}

/* ──────────────────────────────────────────
   SERVICE LISTING HERO
────────────────────────────────────────── */
.service-listing-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: calc(var(--header-height, 120px) + var(--space-10));
  padding-bottom: var(--space-14);
}

.service-listing-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 0;
}

.service-listing-hero__content {
  position: relative;
  z-index: 1;
}

.service-listing-hero__title {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: var(--space-4);
}

.service-listing-hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: var(--space-8);
  max-width: 640px;
}

.service-listing-hero .hero-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5) 0;
  flex-wrap: wrap;
}

.service-listing-hero .hero-breadcrumb li {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.service-listing-hero .hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.service-listing-hero .hero-breadcrumb a:hover {
  color: #ffffff;
}

.service-listing-hero .hero-breadcrumb li:last-child {
  color: #ffffff;
  font-weight: var(--font-weight-semibold);
}

.service-listing-hero .hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

@media (max-width: 768px) {
  .service-listing-hero {
    min-height: 340px;
    padding-top: calc(var(--header-height, 70px) + var(--space-8));
    padding-bottom: var(--space-10);
  }

  .service-listing-hero__title {
    font-size: var(--font-size-3xl);
  }

  .service-listing-hero__subtitle {
    font-size: var(--font-size-base);
    max-width: 100%;
    margin-bottom: var(--space-6);
  }

  .service-listing-hero .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .service-listing-hero .hero-cta-group .btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .service-listing-hero__title {
    font-size: var(--font-size-2xl);
    word-break: break-word;
  }

  .service-listing-hero {
    padding-top: calc(var(--header-height, 70px) + var(--space-6));
  }

  .cta-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .cta-btn-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ──────────────────────────────────────────
   SERVICE LISTING — INTRO
────────────────────────────────────────── */
.service-listing-intro {
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.service-listing-intro__heading {
  text-align: center;
  color: var(--color-heading);
  margin: 0;
}

.service-listing-intro__text {
  text-align: center;
  color: var(--color-text-secondary);
  max-width: 700px;
  align-self: center;
  margin: 0;
}

/* ──────────────────────────────────────────
   SERVICE LISTING — GRID & CARDS
────────────────────────────────────────── */
.service-listing-grid__heading {
  text-align: center;
  color: var(--color-heading);
  margin: 0 0 var(--space-10);
  align-self: center;
}

.service-listing-grid {
  width: 100%;
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--grid-gutter);
}

.service-listing-grid > article {
  flex: 0 0 calc(33.333% - var(--grid-gutter) * 2 / 3);
  max-width: calc(33.333% - var(--grid-gutter) * 2 / 3);
}

.service-listing-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
}

.service-listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.service-listing-card__image-wrap {
  position: relative;
  overflow: clip;
  overflow-clip-margin: 25px;
  line-height: 0;
}

.service-listing-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-moderate) var(--ease-default);
}

.service-listing-card:hover .service-listing-card__image {
  transform: scale(1.05);
}

.service-listing-card__icon-wrap {
  position: absolute;
  bottom: -20px;
  left: var(--space-5);
  z-index: 10;
}

.service-listing-card__icon-wrap .icon-circle-light {
  background: var(--color-accent) !important;
  color: #111827 !important;
  width: 44px;
  height: 44px;
  box-shadow: var(--shadow-md);
  border: 2px solid #fff;
}

.service-listing-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: calc(var(--space-8) + var(--space-2)) var(--space-6) var(--space-6);
  flex: 1;
  background: var(--color-primary) !important;
}

.service-listing-card__name {
  color: #ffffff !important;
  margin: 0;
}

.service-listing-card__excerpt {
  color: #ffffff !important;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin: 0;
  flex: 1;
}

.service-listing-card__body .btn-primary {
  background: #f2420d !important;
  color: #ffffff !important;
  border-color: #f2420d !important;
}

.service-listing-card__body .btn-primary:hover {
  background: #d93409 !important;
  border-color: #d93409 !important;
  color: #ffffff !important;
}

/* ──────────────────────────────────────────
   SERVICE LISTING — WHY BBS SECTION
────────────────────────────────────────── */
.service-listing-why {
  align-items: stretch;
  gap: var(--space-12);
}

.service-listing-why__text {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  justify-content: center;
}

.service-listing-why__trust {
  flex: 1 1 360px;
}

/* Trust card (white card on dark section) */
.trust-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  height: 100%;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.trust-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.trust-list__item strong {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-heading);
  margin-bottom: var(--space-1);
}

.trust-list__item p {
  color: var(--color-text-secondary);
  margin: 0;
  line-height: var(--line-height-relaxed);
}

.trust-bbb-badge {
  margin-top: var(--space-2);
  display: block;
}

/* ──────────────────────────────────────────
   SERVICE LISTING — AREAS SECTION
────────────────────────────────────────── */
.service-listing-areas {
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}

.service-listing-areas__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-self: center;
}

.area-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-default),
              border-color var(--duration-fast) var(--ease-default);
}

.area-pill:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  text-decoration: none;
}

.area-pill--muted {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}

.area-pill-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-right: var(--space-1);
  vertical-align: middle;
  color: inherit;
}

/* ──────────────────────────────────────────
   SERVICE LISTING — CTA SECTION
────────────────────────────────────────── */
.service-listing-cta {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-listing-cta__inner {
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  position: relative;
  z-index: 1;
}

/* .service-listing-cta__blob removed — replaced by image background */

.cta-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

/* ──────────────────────────────────────────
   LISTING RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 1024px) {
  .service-listing-why {
    flex-direction: column;
  }

  .service-listing-why__text,
  .service-listing-why__trust {
    flex: 1 1 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .service-listing-grid > article {
    flex: 0 0 calc(50% - var(--grid-gutter) / 2);
    max-width: calc(50% - var(--grid-gutter) / 2);
  }
}

@media (max-width: 768px) {
  .service-listing-grid > article {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .service-listing-card__image {
    height: 180px;
  }

  .cta-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .cta-btn-group .btn {
    width: 100%;
    justify-content: center;
  }

  .service-listing-areas__pills {
    gap: var(--space-2);
  }
}

/* ──────────────────────────────────────────
   REDUCED MOTION
────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .service-gallery-item:hover .service-gallery-img {
    transform: none;
  }

  /* hover on process number removed */
}
