/* =============================================================
   BBS ELECTRIC — HOME PAGE STYLES
   Page-specific section styles for index.html
   All values use CSS custom properties from base.css
   ============================================================= */

/* =============================================================
   1. HERO SECTION
   ============================================================= */

.hero-home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(19, 38, 63, 0.75) 0%,
    rgba(19, 38, 63, 0.55) 60%,
    rgba(19, 38, 63, 0.75) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 2.5rem 0 4rem;
}

.hero-eyebrow {
  background: var(--color-tertiary);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  align-self: flex-start;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero-title span {
  color: var(--color-accent);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 550px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-badge-item i {
  color: var(--color-accent);
}

/* =============================================================
   1b. HERO BG
   ============================================================= */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* =============================================================
   2. TRUST BAR SECTION
   ============================================================= */

.trust-bar {
  background: var(--color-secondary);
  padding: 1.25rem 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.trust-item,
.trust-bbb {
  min-width: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.trust-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(251, 211, 1, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.trust-item-text {
  display: flex;
  flex-direction: column;
}

.trust-item-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

.trust-item-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.trust-bbb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-bbb img {
  height: 38px;
  width: auto;
}

/* =============================================================
   3. SERVICES SECTION
   ============================================================= */

.services-home {
  background: var(--color-bg-secondary);
}

.services-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card-home {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card-home:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.service-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.service-card-home:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--color-primary);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.service-card-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: #f2420d;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  margin-top: auto;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card-link svg {
  color: #ffffff;
}

.service-card-link:hover {
  background: #d63509;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 66, 13, 0.35);
}

/* =============================================================
   4. ABOUT TEASER SECTION
   ============================================================= */

.about-home {
  background: #fff;
}

.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-home-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-home-img-wrap {
  position: relative;
}

.about-home-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: block;
}

.about-stat-bubble {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-tertiary);
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(244, 89, 41, 0.3);
}

.about-stat-bubble .num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.about-stat-bubble .lbl {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  display: block;
  margin-top: 0.25rem;
}

.about-home-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-home-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text);
  font-family: var(--font-body);
}

.about-home-list li i {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* =============================================================
   5. VALUES SECTION
   ============================================================= */

.values-home {
  background: var(--color-secondary);
}

.values-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.values-intro .section-label {
  color: var(--color-accent);
  align-self: center;
}

.values-intro .heading-lg {
  color: #fff;
}

.values-intro p {
  color: rgba(255, 255, 255, 0.8);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.value-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(22, 108, 157, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 0.75rem;
}

.value-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.value-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* =============================================================
   6. SERVICE AREAS SECTION
   ============================================================= */

.areas-home {
  background: var(--color-bg-secondary);
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.areas-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.areas-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-self: stretch;
}

.areas-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.area-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.area-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateX(4px);
}

.area-item a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.area-item a:hover {
  color: var(--color-primary);
}

.area-item i {
  color: var(--color-primary);
  flex-shrink: 0;
}

.areas-cta-box {
  background: var(--color-primary);
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.areas-cta-box h3 {
  color: #fff;
  font-family: var(--font-heading);
  margin: 0;
}

.areas-cta-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin: 0;
}

.areas-img-wrap {
  position: relative;
  display: flex;
  height: 100%;
}

.areas-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  display: block;
}

/* =============================================================
   7. TESTIMONIALS SECTION
   ============================================================= */

.testimonials-home {
  background-color: var(--color-primary);
}

.testimonials-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-header h2 {
  color: #ffffff !important;
}

.testimonials-header .section-label {
  align-self: center;
  background: none;
  color: var(--heading-colored);
}

.testimonials-home .t-rating-text {
  color: #f3f4f6;
  font-weight: 600;
}

.testimonials-home .t-stars svg {
  color: #fed401;
  stroke: #fed401;
}

.trustindex-widget {
  width: 100%;
}

/* =============================================================
   8. FAQ SECTION
   ============================================================= */

.faq-home {
  background: var(--color-bg-secondary);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.faq-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--header-height, 80px) + 2rem);
  align-self: start;
}

.faq-intro .section-label {
  align-self: flex-start;
}

.faq-intro h2 {
  color: var(--color-heading);
}

.faq-intro p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* =============================================================
   9. CTA BOTTOM SECTION
   ============================================================= */

.cta-home-bottom {
  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;
  padding: 5rem 0;
}

.cta-home-bottom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(242, 66, 13, 0.73) 0%, rgba(201, 62, 18, 0.77) 100%);
  z-index: 0;
}

.cta-bottom-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 500px;
  text-align: center;
  margin: 0;
}

.cta-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn-cta-white {
  background: #fff;
  color: var(--color-tertiary);
  font-weight: 700;
  border-radius: 50px;
  padding: 0.875rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: var(--font-heading);
  font-size: 1rem;
  border: 2px solid transparent;
}

.btn-cta-white:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
  background: transparent;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fed401;
  color: #fed401 !important;
  transform: translateY(-2px);
}

/* =============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================= */

@media (max-width: 1024px) {
  /* Hero */
  .hero-content {
    min-height: 85vh;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Values */
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Areas */
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .areas-img-wrap {
    order: -1;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .faq-intro {
    position: static;
  }
}

/* =============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================= */

@media (max-width: 768px) {
  /* Hero */
  .hero-content {
    padding: 2rem 0 3rem;
    align-items: flex-start;
    min-height: 85vh;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

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

  .hero-badge-row {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  /* Trust bar — 2-column grid on tablet */
  .trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* About */
  .about-home-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-stat-bubble {
    bottom: -15px;
    left: 10px;
  }

  /* Values */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  

  /* CTA bottom */
  .cta-bottom-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-cta-white,
  .btn-cta-outline {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================================
   6b. WHY CHOOSE US SECTION
   ============================================================= */
.why-choose-home {
  background: #fff;
}
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}
.why-choose-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.why-choose-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.why-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-heading);
  margin-bottom: 0.25rem;
}
.why-feature-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}
.why-choose-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.bbb-card {
  background: #13263F;
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  border: 2px solid #F45929;
  flex: 1;
}
.bbb-badge-img {
  height: 80px;
  width: auto;
}
.bbb-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fed401;
}
.bbb-desc {
  font-size: 0.875rem;
  color: #f3f4f6;
  line-height: 1.6;
  margin: 0;
}
.why-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.why-stat {
  background: #13263F;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid #F45929;
}
.why-stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fed401;
  line-height: 1;
}
.why-stat-label {
  font-size: 0.78rem;
  color: #ffffff;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.why-aside-photo {
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
}
.why-aside-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .why-choose-aside {
    position: static;
  }
}

/* =============================================================
   6c. AREAS RADIUS BADGE
   ============================================================= */
.areas-radius-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: #f2420d;
  color: #fff;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.areas-radius-badge i {
  color: var(--color-accent);
  flex-shrink: 0;
}
.areas-img-wrap {
  position: relative;
}
.area-item-more {
  background: var(--color-primary-light) !important;
}
.area-item-more span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
  width: 100%;
}

/* =============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================= */

@media (max-width: 480px) {
  /* Services single column */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Values single column */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Trust bar — single column on mobile */
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
  }

  /* Areas list single column */
  .areas-list {
    grid-template-columns: 1fr;
  }
}
