/* ══════════════════════════════════════════════════════════════
   BBS ELECTRIC: service-area.css
   Template CSS for individual service area pages
   Sections: Hero > Intro > Services > Why Choose > Testimonials > FAQ > Nearby > CTA
══════════════════════════════════════════════════════════════ */

/* ── SECTION 1: HERO ── */
.sa-hero {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sa-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(19, 38, 63, 0.85) 0%,
    rgba(22, 108, 157, 0.70) 100%
  );
  z-index: 0;
}

.sa-hero-blob {
  position: absolute;
  bottom: -80px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--color-tertiary);
  opacity: 0.08;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.sa-hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-height, 70px) + var(--space-10));
  padding-bottom: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

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

.sa-breadcrumb-list li {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
}

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

.sa-breadcrumb-list a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.sa-breadcrumb-list [aria-current="page"] {
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
}

/* Hero Text */
.sa-hero-text {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.sa-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(251, 211, 1, 0.15);
  border: 1px solid rgba(251, 211, 1, 0.35);
  color: var(--color-accent);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  width: fit-content;
  align-self: flex-start;
  letter-spacing: 0.03em;
}

.sa-hero-title {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.15;
}

.sa-hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--line-height-relaxed);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

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

.sa-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sa-hero-trust span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--font-weight-medium);
}

/* ── SECTION 2: INTRO / OVERVIEW ── */
.sa-intro {
  background: var(--color-bg);
}

.sa-intro-container {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: var(--space-12);
}

.sa-intro-content {
  flex: 1 1 52%;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.sa-intro-text {
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
}

.sa-intro-text p {
  margin-bottom: var(--space-4);
}

.sa-intro-text p:last-child {
  margin-bottom: 0;
}

/* Trust Pills */
.sa-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.sa-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid rgba(22, 108, 157, 0.2);
}

.sa-intro-cta {
  padding-top: var(--space-2);
}

/* Intro Image */
.sa-intro-image-wrap {
  flex: 0 0 44%;
  position: sticky;
  top: calc(var(--header-height, 70px) + var(--space-6));
  align-self: flex-start;
}

.sa-intro-img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
}

/* Floating credential badge on intro image */
.sa-intro-credential {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.sa-intro-credential-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
}

.sa-intro-credential-inner > div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sa-intro-credential-inner strong {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
}

.sa-intro-credential-inner span {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

/* ── SECTION 3: SERVICES WE OFFER ── */
.sa-services-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.sa-services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}

.sa-service-card {
  flex: 0 0 calc(33.333% - var(--space-6) * 2 / 3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--duration-normal) var(--ease-default);
}

.sa-service-card:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(22, 108, 157, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.sa-service-icon {
  background: var(--color-primary);
  flex-shrink: 0;
  align-self: flex-start;
}

.sa-service-name {
  color: #fff;
  margin: 0;
}

.sa-service-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  flex: 1;
  margin: 0;
}

.sa-service-link {
  align-self: flex-start;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  margin-top: auto;
}

.sa-service-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.sa-services-bottom {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

/* ── SECTION 4: WHY CHOOSE BBS ── */
.sa-why-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.sa-why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.sa-why-item {
  flex: 0 0 calc(33.333% - var(--space-6) * 2 / 3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: background var(--duration-normal) var(--ease-default);
}

.sa-why-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sa-why-title {
  margin: 0;
}

.sa-why-desc {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Stats bar */
.sa-why-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-6) var(--space-8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  flex-wrap: wrap;
}

.sa-why-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}

.sa-why-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* ── SECTION 5: TESTIMONIALS ── */
.sa-testimonials {
  background: var(--color-bg-secondary);
}

.sa-testimonials-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.sa-testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.sa-testimonial-card {
  flex: 0 0 calc(33.333% - var(--space-6) * 2 / 3);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.sa-testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.sa-testimonial-stars {
  display: flex;
  gap: var(--space-1);
  color: var(--color-accent);
}

.sa-testimonial-text {
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  flex: 1;
  font-style: italic;
}

.sa-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.sa-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  text-transform: uppercase;
}

.sa-testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sa-testimonial-name {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-secondary);
}

.sa-testimonial-location {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.sa-testimonials-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

/* ── SECTION 6: FAQ ── */
.sa-faq {
  background: var(--color-bg);
}

.sa-faq-inner {
  display: flex;
  gap: var(--space-12);
  align-items: flex-start;
}

.sa-faq-header {
  flex: 0 0 505px;
  position: sticky;
  top: calc(var(--header-height, 70px) + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-self: flex-start;
}

.sa-faq-header h2 {
  margin: 0;
}

.sa-faq-cta-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sa-faq-badges {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.sa-bbb-badge {
  max-width: 130px;
  height: auto;
  display: block;
}

.sa-faq-credential {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.sa-faq-accordion {
  flex: 1;
}

/* ── SECTION 7: NEARBY SERVICE AREAS ── */
.sa-nearby {
  background: var(--color-primary);
}

.sa-nearby .section-label {
  color: rgba(255, 255, 255, 0.85);
}

.sa-nearby-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.sa-nearby-header .heading-lg {
  color: var(--heading-colored);
}

.sa-nearby-header .text-body,
.sa-nearby-header .text-secondary {
  color: var(--text-colored);
}

.sa-nearby-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.sa-nearby-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-default);
}

.sa-nearby-pill:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.sa-nearby-pill svg {
  color: var(--accent-500);
  flex-shrink: 0;
}

.sa-nearby-pill:hover svg {
  color: var(--color-primary);
}

.sa-nearby-pill-all {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.sa-nearby-pill-all:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.sa-nearby-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  max-width: 640px;
  margin: 0 auto;
  color: #fff;
}

.sa-nearby-note i {
  flex-shrink: 0;
  margin-top: 2px;
  color: #fff;
}

.sa-nearby-note p {
  margin: 0;
  line-height: var(--line-height-relaxed);
  color: var(--text-colored);
}

.sa-nearby-note a {
  color: #fff;
  font-weight: var(--font-weight-semibold);
  text-decoration: underline;
}

.sa-nearby-note a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

/* ── SECTION 8: CTA BANNER ── */
.sa-cta-banner {
  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-1920x1080.webp');
  background-size: cover;
  background-position: center;
  background-color: var(--dark-bg);
}

.sa-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  z-index: 0;
  pointer-events: none;
}

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

.sa-cta-eyebrow {
  display: flex;
  justify-content: center;
}

.sa-cta-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

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

.sa-cta-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: center;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE: TABLET (max-width: 1024px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Map sticky override */
  .sa-coverage-map {
    position: static;
  }

  /* Intro */
  .sa-intro-container {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: var(--space-8);
  }

  .sa-intro-content {
    flex: 1 1 100%;
  }

  .sa-intro-image-wrap {
    flex: 1 1 100%;
    position: static;
    align-self: auto;
  }

  /* Services grid */
  .sa-services-grid {
    gap: var(--space-5);
  }

  .sa-service-card {
    flex: 0 0 calc(50% - var(--space-5) / 2);
  }

  /* Why Choose grid */
  .sa-why-grid {
    gap: var(--space-5);
  }

  .sa-why-item {
    flex: 0 0 calc(50% - var(--space-5) / 2);
  }

  /* Testimonials */
  .sa-testimonial-card {
    flex: 0 0 calc(50% - var(--space-6) / 2);
  }

  /* FAQ layout */
  .sa-faq-inner {
    flex-direction: column;
    gap: var(--space-8);
  }

  .sa-faq-header {
    flex: none;
    position: static;
    width: 100%;
  }

  /* Stats bar */
  .sa-why-stat-divider {
    display: none;
  }

  .sa-why-stats {
    gap: var(--space-6);
  }

  /* Coverage section (listing template): stack on tablet */
  .sa-coverage-container {
    flex-direction: column !important;
    gap: var(--space-8);
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE: MOBILE (max-width: 768px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hero */
  .sa-hero {
    min-height: 480px;
  }

  .sa-hero-content {
    padding: var(--space-8) var(--space-4);
    padding-top: calc(var(--header-height, 70px) + var(--space-8));
  }

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

  .sa-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .sa-hero-trust {
    flex-direction: column;
    gap: var(--space-2);
  }

  /* Services grid */
  .sa-service-card {
    flex: 0 0 100%;
  }

  /* Why Choose grid */
  .sa-why-item {
    flex: 0 0 100%;
  }

  /* Testimonials grid */
  .sa-testimonial-card {
    flex: 0 0 100%;
  }

  /* FAQ CTA */
  .sa-faq-cta-stack {
    flex-direction: column;
  }

  /* CTA actions */
  .sa-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .sa-cta-trust {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  /* Nearby pills */
  .sa-nearby-pills {
    justify-content: flex-start;
  }

  /* Stats */
  .sa-why-stats {
    justify-content: center;
    gap: var(--space-4);
  }

  /* Intro credential badge */
  .sa-intro-credential {
    bottom: var(--space-3);
    left: var(--space-3);
    padding: var(--space-2) var(--space-3);
  }

  /* Coverage section (listing template): stack on mobile */
  .sa-coverage-container {
    flex-direction: column !important;
    gap: var(--space-8);
  }

  /* Listing hero CTA buttons: full width on mobile */
  .sa-listing-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Listing hero CTA wrapper: stack on mobile */
  .sa-listing-hero-actions {
    flex-direction: column !important;
    align-items: stretch;
  }

  /* Listing hero padding reduction */
  .sa-listing-hero__content {
    padding-top: calc(var(--header-height, 70px) + var(--space-8)) !important;
    padding-bottom: var(--space-12) !important;
  }

  /* Why travel items: single column */
  .sa-why-travel-item {
    flex: 0 0 100% !important;
    padding: var(--space-6) var(--space-5);
  }

  /* Area card button: full width on mobile */
  .sa-area-card__body .btn {
    width: 100%;
    justify-content: center;
    align-self: stretch;
  }
}

/* ══════════════════════════════════════════════════════════════
   SERVICE AREA LISTING CARDS
   Applied to sa-area-card__body on the listing page
══════════════════════════════════════════════════════════════ */
.sa-area-card__body {
  background: var(--color-primary) !important;
}

.sa-area-card__name {
  color: #ffffff !important;
}

.sa-area-card__excerpt {
  color: rgba(255, 255, 255, 0.85) !important;
}

.sa-area-card__body .icon-circle-sm {
  background: var(--color-accent) !important;
  color: #111827 !important;
}

.sa-area-card__body .btn-outline {
  background: #f2420d !important;
  color: #ffffff !important;
  border-color: #f2420d !important;
}

.sa-area-card__body .btn-outline:hover,
.sa-area-card__body .btn-outline:focus-visible {
  background: #d63309 !important;
  border-color: #d63309 !important;
  color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════════════
   PRINT STYLES
══════════════════════════════════════════════════════════════ */
@media print {
  .sa-hero {
    min-height: 200px;
    background-image: none !important;
    background: var(--color-secondary) !important;
  }

  .sa-hero-overlay {
    display: none;
  }
}
