/**
 * BBI service pages — Mammoth-inspired simplicity + BBI atmosphere
 * Clean hierarchy, airy layout, content over living network background.
 */

.service-page {
  --sp-max: 1080px;
  background: transparent;
  color: var(--bbi-text, #f5edf0);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}

.service-page a {
  color: var(--bbi-gold, #f25282);
}

.service-page a:hover {
  text-decoration: none;
}

.service-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

/* Sections stay translucent so the moving network reads through */
.service-page.has-bbi-atmosphere .service-section:not(.service-hero) {
  position: relative;
  z-index: 1;
  background: rgba(8, 6, 7, 0.42);
  backdrop-filter: blur(2px);
}

.service-page.has-bbi-atmosphere .service-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  min-height: min(72vh, 720px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 96px 20px 72px;
}

/* Keep copy readable over the phoenix — darken the text side, not the brand palette */
.service-page.has-bbi-atmosphere .service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 3, 4, 0.92) 0%,
    rgba(5, 3, 4, 0.78) 42%,
    rgba(5, 3, 4, 0.28) 68%,
    transparent 100%
  );
}

.service-page.has-bbi-atmosphere .service-hero .bbi-phoenix {
  inset: 0;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 1;
  padding-right: 2%;
}

.service-page.has-bbi-atmosphere .service-hero .bbi-phoenix-stage {
  width: min(92vw, 1100px);
  margin-right: -4%;
  margin-left: auto;
}
.service-page.has-bbi-atmosphere .service-hero .bbi-phoenix-watermark {
  opacity: 0.62;
  mix-blend-mode: screen;
}

.service-page.has-bbi-atmosphere .service-hero .inner {
  position: relative;
  z-index: 10;
  max-width: min(560px, 100%);
  margin: 0;
  margin-right: auto;
  text-align: left;
}

.service-section {
  padding: 72px 20px;
  border-bottom: 1px solid rgba(220, 53, 88, 0.08);
}

.service-section .inner {
  max-width: var(--sp-max);
  margin: 0 auto;
}

.service-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bbi-ice, var(--bbi-cobalt, #2da5e8));
  margin-bottom: 16px;
  display: block;
  font-weight: 600;
}

.service-hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
  color: #fff;
}

.service-hero .promise {
  font-size: 1.12rem;
  color: rgba(247, 240, 218, 0.78);
  max-width: 540px;
  margin: 0 0 32px;
  line-height: 1.6;
}

.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-page h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin: 0 0 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Overview — open columns, no cards */
.service-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.service-overview-grid h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bbi-gold, #f25282);
  margin: 0 0 10px;
  font-weight: 700;
}

.service-overview-grid p {
  margin: 0;
  color: rgba(247, 240, 218, 0.72);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Pillars — light frames, not heavy panels */
.service-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pillar-card.proof-card {
  padding: 28px 24px;
  border: 1px solid rgba(220, 53, 88, 0.16);
  border-radius: 12px;
  background: rgba(10, 8, 6, 0.35);
}

.pillar-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #fff;
}

.pillar-card p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: rgba(247, 240, 218, 0.7);
}

.pillar-card .value {
  margin: 0;
  font-size: 0.86rem;
  color: var(--bbi-gold, #f25282);
  font-weight: 600;
}

/* Process — simple horizontal steps */
.service-process-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.process-step {
  padding: 8px 4px 8px 0;
  border: none;
  border-top: 1px solid rgba(220, 53, 88, 0.35);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.process-step strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
  margin: 12px 0 6px;
}

.process-step span {
  font-size: 0.8rem;
  color: rgba(247, 240, 218, 0.62);
  line-height: 1.45;
}

.service-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-proof-grid h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bbi-gold, #f25282);
  margin: 0 0 10px;
}

.service-proof-grid p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(247, 240, 218, 0.72);
}

.service-cta-section {
  text-align: center;
  background: rgba(8, 6, 7, 0.28) !important;
  border-bottom: none;
}

.service-cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
}

.service-cta-section p {
  color: rgba(247, 240, 218, 0.72);
  max-width: 480px;
  margin: 0 auto 28px;
}

.service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 900px) {
  .service-process-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .service-overview-grid,
  .service-proof-grid,
  .service-pillars {
    grid-template-columns: 1fr;
  }
  .service-process-list {
    grid-template-columns: 1fr 1fr;
  }
  .service-page.has-bbi-atmosphere .service-hero {
    min-height: auto;
    padding: 64px 20px 48px;
  }
  .service-page.has-bbi-atmosphere .service-hero::before {
    background: linear-gradient(
      180deg,
      rgba(5, 3, 4, 0.82) 0%,
      rgba(5, 3, 4, 0.55) 48%,
      rgba(5, 3, 4, 0.22) 100%
    );
  }
  .service-page.has-bbi-atmosphere .service-hero .bbi-phoenix {
    inset: 0;
    align-items: center;
    justify-content: center;
    padding-top: 0;
  }
  .service-page.has-bbi-atmosphere .service-hero .bbi-phoenix-stage {
    width: min(155vw, 760px);
    margin-left: auto;
    margin-right: -10%;
  }
  .service-page.has-bbi-atmosphere .service-hero .bbi-phoenix-watermark {
    opacity: 0.82;
  }
  .service-page.has-bbi-atmosphere .service-hero .inner {
    max-width: 100%;
  }
}
