/* =============================================================
   xroof-dark service page extensions
   Styles for sections NOT in the original theme:
   process steps, pricing, reviews, credentials, mid-CTA, local, final-CTA
   ============================================================= */

/* ---- Trust badges in hero ---- */
.hero__trust-list {
  padding: 0;
}
.hero__trust-item {
  font-size: 0.875rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* ---- Process steps ---- */
.services-details__process .process__card {
  background: var(--xr-card-bg, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.2s;
}
.services-details__process .process__card:hover {
  border-color: #EE212B;
}
.process__number {
  display: inline-block;
  font-size: 2.25rem;
  font-weight: 700;
  color: #EE212B;
  line-height: 1;
  margin-bottom: 0.75rem;
  font-family: 'Outfit', sans-serif;
}
.process__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.process__body {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: rgba(255,255,255,0.72);
}

/* ---- Pricing tiers ---- */
.services-details__pricing .pricing__card {
  background: var(--xr-card-bg, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.services-details__pricing .pricing__card:hover {
  border-color: rgba(238,33,43,0.5);
}
.services-details__pricing .pricing__card--featured {
  border-color: #EE212B;
  position: relative;
}
.services-details__pricing .pricing__card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #EE212B;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing__card-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
.pricing__tier-name {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}
.pricing__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
  font-family: 'Outfit', sans-serif;
}
.pricing__features {
  flex: 1;
}
.pricing__feature {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.6rem;
}
.pricing__cta {
  display: block;
  text-align: center;
  width: 100%;
}

/* ---- Mid-page CTA ---- */
.services-details__mid-cta {
  background: linear-gradient(135deg, #EE212B 0%, #c0141c 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.mid-cta__heading {
  color: #fff;
}
.mid-cta__body {
  color: rgba(255,255,255,0.85);
}
.mid-cta__phone {
  color: #fff;
  text-decoration: none;
}
.mid-cta__phone-number {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ---- Sidebar active state ---- */
.sidebar__item--active > .sidebar__link,
.sidebar__item--active {
  color: #EE212B;
  font-weight: 600;
}
.sidebar__link {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
}
.sidebar__link:hover {
  color: #EE212B;
}

/* ---- Local relevance area badges ---- */
.local__area-badge {
  background: #fff;
  border: 2px solid #EE212B;
  color: #1a1a1a;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  display: inline-block;
}
.local__area-badge:hover {
  background: #EE212B;
  color: #fff;
  text-decoration: none;
}

/* ---- Reviews section ---- */
.reviews--style-1 {
  background: #111;
}
.review__card {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  height: 100%;
  transition: border-color 0.2s;
}
.review__card:hover {
  border-color: rgba(238,33,43,0.4);
}
.review__text {
  color: rgba(255,255,255,0.8);
  font-style: italic;
  line-height: 1.6;
}
.review__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #EE212B;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.review__name {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}
.review__location {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.reviews__source {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}
.reviews__write-link {
  color: #EE212B;
  text-decoration: none;
}

/* ---- Credentials ---- */
.credentials {
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.credentials .title-xl,
.credentials h2 {
  color: #fff;
}
.credentials .subtitle {
  color: rgba(255,255,255,0.6);
}
.credential__name-badge {
  background: rgba(238,33,43,0.12);
  border: 1px solid rgba(238,33,43,0.35);
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 20px;
}

/* ---- Final CTA section ---- */
.final-cta--style-1 {
  background-color: #0a0a0a;
  position: relative;
}
.final-cta--style-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/hero_image_hero_hero_main.webp') center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}
.final-cta--style-1 > .container {
  position: relative;
  z-index: 1;
}
.final-cta__phone {
  color: #fff;
  text-decoration: none;
}
.final-cta__phone-number {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ---- Responsive adjustments ---- */
@media (max-width: 991.98px) {
  .services-details__mid-cta {
    text-align: center;
  }
  .services-details__mid-cta .d-flex {
    justify-content: center;
  }
}
