@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   BPO Solutions / Dental BPO Page Styles
   ============================================================ */

/* Full-width unlock — mirrors .home override in marg101-home.css */
.marg101-bpo-page #brx-content,
.marg101-bpo-page #brx-content.wordpress,
.marg101-bpo-page article#brx-content {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.marg101-bpo-page #brx-content h1 {
  margin-top: 0;
}

/* Global Font Overrides */
#brx-content.wordpress,
#brx-content.wordpress * {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#brx-content.wordpress h1,
#brx-content.wordpress h2,
#brx-content.wordpress h3,
#brx-content.wordpress h4,
#brx-content.wordpress .bpo-hero__title,
#brx-content.wordpress .bpo-section-title,
#brx-content.wordpress .bpo-trust-card__title,
#brx-content.wordpress .bpo-overview-card__title,
#brx-content.wordpress .bpo-detail-card__title,
#brx-content.wordpress .bpo-role-card__title,
#brx-content.wordpress .bpo-process-step__title,
#brx-content.wordpress .bpo-comparison-card__title,
#brx-content.wordpress .bpo-footer-cta__title,
#brx-content.wordpress .bpo-software__title,
#brx-content.wordpress .bpo-stat-item strong {
  font-family: "Space Grotesk", sans-serif !important;
}

/* Canvas styling for BPO Page Hero */
.bpo-hero .marg101-hero-slider__dot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  mix-blend-mode: screen;
}

/* Hero Section */
.bpo-hero {
  position: relative;
  padding: 140px 0 100px;
  background: radial-gradient(circle at 70% 30%, rgba(34, 197, 94, 0.12) 0%, transparent 60%),
              linear-gradient(155deg, #03060f 0%, #000 50%, #050a08 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.bpo-hero__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 255, 135, 0.1) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
  filter: blur(40px);
}

.bpo-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bpo-hero__copy {
  z-index: 2;
}

.bpo-hero__eyebrow {
  display: inline-block;
  color: #22c55e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.bpo-hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.bpo-hero__title span {
  color: #4ade80;
  text-shadow: 0 0 30px rgba(74, 222, 128, 0.35);
}

.bpo-hero__desc {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 620px;
}

.bpo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.bpo-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bpo-hero__btn--primary {
  background: #22c55e;
  color: #fff;
  border: 2px solid #22c55e;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.bpo-hero__btn--primary:hover {
  background: #16a34a;
  border-color: #16a34a;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.4);
}

.bpo-hero__btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.bpo-hero__btn--ghost:hover {
  border-color: #4ade80;
  color: #4ade80;
}

/* Trust Points Card */
.bpo-trust-card {
  background: rgba(10, 18, 15, 0.75);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  z-index: 2;
}

.bpo-trust-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.bpo-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bpo-trust-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.bpo-trust-list svg {
  width: 16px;
  height: 16px;
  color: #4ade80;
  flex-shrink: 0;
}

/* Page Sections Common */
.bpo-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.bpo-section--light {
  background: #f8f9f7;
  color: #0f1a16;
}

.bpo-section--dark {
  background: #070a09;
  color: #fff;
}

.bpo-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bpo-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.bpo-section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #22c55e;
  margin-bottom: 0.75rem;
}

.bpo-section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1rem;
}

.bpo-section-desc {
  font-size: 17px;
  line-height: 1.65;
  opacity: 0.85;
}

/* Capabilities Grid (Medical, Dental, Insurance, Accounting) */
.bpo-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.bpo-overview-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 26, 22, 0.08);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(15, 26, 22, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-margin-top: 140px;
}

.bpo-overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow: 0 15px 35px rgba(15, 26, 22, 0.08);
}

.bpo-overview-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bpo-overview-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(34, 197, 94, 0.06);
  color: #16a34a;
  border-radius: 14px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bpo-overview-card:hover .bpo-overview-card__icon {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.15);
}

.bpo-overview-card__icon--medical { background: rgba(34, 197, 94, 0.08); }
.bpo-overview-card__icon--dental  { background: rgba(34, 197, 94, 0.14); }
.bpo-overview-card__icon--insurance { background: rgba(34, 150, 220, 0.08); }
.bpo-overview-card__icon--billing { background: rgba(139, 92, 246, 0.08); }

.bpo-overview-card__icon svg {
  width: 32px;
  height: 32px;
}

/* Featured card (Dental) */
.bpo-overview-card--featured {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 10px 30px rgba(15, 26, 22, 0.07);
}
.bpo-overview-card--featured .bpo-overview-card__icon {
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.12);
}

.bpo-overview-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.bpo-overview-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.bpo-overview-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.bpo-overview-card__list li {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  position: relative;
  padding-left: 1.25rem;
}

.bpo-overview-card__list li::before {
  content: "•";
  color: #22c55e;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.bpo-overview-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 14px;
  font-weight: 600;
  color: #16a34a;
  text-decoration: none;
  transition: gap 0.2s ease;
  margin-top: auto;
}

.bpo-overview-card__cta:hover {
  gap: 0.6rem;
}

/* Stats Bar */
.bpo-stats-bar {
  background: linear-gradient(90deg, #0d1613 0%, #060a09 100%);
  border-top: 1px solid rgba(74, 222, 128, 0.15);
  border-bottom: 1px solid rgba(74, 222, 128, 0.15);
  padding: 2.5rem 0;
}

.bpo-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.bpo-stat-item strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: #4ade80;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.bpo-stat-item span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Services Detailed Layout */
.bpo-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.bpo-detail-card {
  background: #fff;
  border: 1px solid rgba(15, 26, 22, 0.07);
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: 0 5px 25px rgba(15, 26, 22, 0.03);
}

.bpo-detail-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(34, 197, 94, 0.06);
  color: #16a34a;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.bpo-detail-card__icon svg {
  width: 26px;
  height: 26px;
}

.bpo-detail-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.bpo-detail-card__desc {
  font-size: 17px;
  line-height: 1.65;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.bpo-detail-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bpo-detail-card__list li {
  display: flex;
  align-items: start;
  gap: 0.6rem;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.bpo-detail-card__list svg {
  width: 14px;
  height: 14px;
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Software Experience Logos */
.bpo-software {
  background: rgba(5, 10, 8, 0.85);
  border-top: 1px solid rgba(74, 222, 128, 0.1);
  border-bottom: 1px solid rgba(74, 222, 128, 0.1);
  padding: 3rem 0;
  text-align: center;
}

.bpo-software__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.75rem;
}

.bpo-software__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.bpo-software__item {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Comparison Section */
.bpo-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.bpo-comparison-card {
  background: #fff;
  border: 1px solid rgba(15, 26, 22, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(15, 26, 22, 0.03);
}

.bpo-comparison-card--premium {
  background: rgba(10, 18, 15, 0.95);
  border-color: rgba(74, 222, 128, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3), 0 0 30px -10px rgba(34, 197, 94, 0.15);
  color: #fff;
}

.bpo-comparison-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.bpo-comparison-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bpo-comparison-card__list li {
  display: flex;
  align-items: start;
  gap: 0.85rem;
  font-size: 17px;
  line-height: 1.65;
}

.bpo-comparison-card__list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.bpo-comparison-card--premium .bpo-comparison-card__list li svg {
  color: #4ade80;
}

.bpo-comparison-card__list li svg.is-err {
  color: #ef4444;
}

/* Timeline/Process Section */
.bpo-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 1rem;
}

.bpo-process-step {
  position: relative;
  background: rgba(13, 22, 18, 0.7);
  border: 1px solid rgba(74, 222, 128, 0.12);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.bpo-process-step__number {
  position: absolute;
  top: -1.25rem;
  left: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.bpo-process-step__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.5rem 0 0.75rem;
  color: #fff;
}

.bpo-process-step__desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

/* Roles Grid */
.bpo-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bpo-role-card {
  background: rgba(10, 18, 15, 0.7);
  border: 1px solid rgba(74, 222, 128, 0.12);
  border-radius: 16px;
  padding: 2rem;
}

.bpo-role-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 0.75rem;
  border-left: 3px solid #22c55e;
  padding-left: 0.75rem;
}

.bpo-role-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

/* Practices Supported list */
.bpo-practices-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.bpo-practice-tag {
  background: #fff;
  border: 1px solid rgba(15, 26, 22, 0.08);
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: #1f2937;
  box-shadow: 0 4px 10px rgba(15, 26, 22, 0.02);
}

/* Problems Grid */
.bpo-problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bpo-problem-card {
  background: #fff;
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.02);
}

.bpo-problem-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #b91c1c;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bpo-problem-card__title svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.bpo-problem-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

/* CTA Footer Block */
.bpo-footer-cta {
  background: linear-gradient(135deg, #091a13 0%, #03060f 100%);
  border-top: 1px solid rgba(74, 222, 128, 0.2);
  border-bottom: 1px solid rgba(74, 222, 128, 0.2);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bpo-footer-cta__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.bpo-footer-cta__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1.25rem;
}

.bpo-footer-cta__title span {
  color: #4ade80;
}

.bpo-footer-cta__desc {
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.25rem;
}

.bpo-footer-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Breakpoints */
@media (max-width: 1200px) {
  .bpo-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Tablet Breakpoint (max-width: 991px)
   ============================================================ */
@media (max-width: 991px) {
  .bpo-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* Tablet typography */
  .bpo-hero__title { font-size: 52px; }
  .bpo-section-title { font-size: 38px; }
  .bpo-comparison-card__title { font-size: 27px; }
  .bpo-overview-card__title,
  .bpo-detail-card__title,
  .bpo-process-step__title,
  .bpo-role-card__title,
  .bpo-problem-card__title,
  .bpo-trust-card__title { font-size: 21px; }
  .bpo-footer-cta__title { font-size: 46px; }
  .bpo-footer-cta__desc { font-size: 19px; }
  .bpo-stat-item strong { font-size: 38px; }

  .bpo-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bpo-comparison-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .bpo-process {
    grid-template-columns: repeat(2, 1fr);
  }
  .bpo-roles {
    grid-template-columns: repeat(2, 1fr);
  }
  .bpo-problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bpo-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ============================================================
   Mobile Breakpoint (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
  .bpo-hero {
    padding: 140px 0 60px;
  }
  /* Mobile typography */
  .bpo-hero__title { font-size: 40px; line-height: 1.12; }
  .bpo-hero__desc { font-size: 16px; }
  .bpo-section-title { font-size: 32px; }
  .bpo-section-desc { font-size: 16px; }
  .bpo-section-eyebrow { font-size: 12px; }
  .bpo-hero__eyebrow { font-size: 12px; }
  .bpo-comparison-card__title { font-size: 24px; }
  .bpo-overview-card__title,
  .bpo-detail-card__title,
  .bpo-process-step__title,
  .bpo-role-card__title,
  .bpo-problem-card__title,
  .bpo-trust-card__title { font-size: 20px; }
  .bpo-footer-cta__title { font-size: 36px; }
  .bpo-footer-cta__desc { font-size: 18px; }
  .bpo-stat-item strong { font-size: 32px; }
  .bpo-detail-card__desc,
  .bpo-comparison-card__list li { font-size: 16px; }
  .bpo-hero__btn { font-size: 15px; }
  .bpo-trust-list li,
  .bpo-overview-card__list li,
  .bpo-detail-card__list li,
  .bpo-process-step__desc,
  .bpo-role-card__desc,
  .bpo-problem-card__desc,
  .bpo-overview-card__desc,
  .bpo-practice-tag,
  .bpo-overview-card__cta,
  .bpo-stat-item span { font-size: 13px; }

  .bpo-overview-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .bpo-overview-card__icon svg {
    width: 26px;
    height: 26px;
  }

  .bpo-details-grid {
    grid-template-columns: 1fr;
  }
  .bpo-process {
    grid-template-columns: 1fr;
  }
  .bpo-roles {
    grid-template-columns: 1fr;
  }
  .bpo-problems-grid {
    grid-template-columns: 1fr;
  }
  .bpo-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .bpo-stats-grid {
    grid-template-columns: 1fr;
  }
}
