/* ================================================================
   COLUMBIA PUBLICATION — pages/bp.css
   All bp-* component styles for service pages.
   Extracted from inline style blocks — now one global file.
   Load via $page_css in header.php on all bp-* pages.
   Created April 2026.
   ================================================================ */

@keyframes bppulse {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(212,164,74,.4) }
  50%      { opacity:.8; box-shadow:0 0 0 6px rgba(212,164,74,0) }
}

/* ── Hero shell ─────────────────────────────────────────────── */
.bp-hero {
  background: var(--ink);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.bp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 0% 110%, rgba(184,135,42,.07) 0, transparent 55%),
              linear-gradient(150deg, #0a1525 0, #060d1b 50%, #07101f 100%);
  pointer-events: none;
  z-index: 0;
}

.bp-hero-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold-light) 50%, var(--gold) 75%, transparent);
  z-index: 5;
}

/* ── Hero grid ──────────────────────────────────────────────── */
.bp-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-4xl);
  align-items: start;
  padding: var(--space-4xl) 0;
}

/* ── Hero left: H1, answer, stats, CTAs ─────────────────────── */
.bp-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  letter-spacing: -.02em;
}

.bp-h1 em {
  display: block;
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
}

.bp-hero-answer {
  background: rgba(253,251,247,.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: var(--sp-5) var(--sp-6);
  font-size: .9375rem;
  line-height: 1.8;
  color: rgba(253,251,247,.85);
  margin-bottom: var(--sp-6);
}

.bp-hero-answer strong { color: var(--white); }
.bp-hero-answer a      { color: var(--gold-light); font-weight: 600; }

.bp-hero-desc {
  font-family: var(--font-ui);
  font-size: .9375rem;
  color: rgba(253,251,247,.75);
  line-height: 1.75;
  margin-bottom: var(--sp-6);
}

/* ── Stats row ──────────────────────────────────────────────── */
.bp-stats {
  display: flex;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(253,251,247,.1);
  flex-wrap: wrap;
}

.bp-stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.bp-stat-n sup { font-size: .6em; }

.bp-stat-l {
  display: block;
  font-family: var(--font-ui);
  font-size: .75rem;
  color: rgba(253,251,247,.5);
  margin-top: 2px;
}

.bp-hero-note {
  font-family: var(--font-ui);
  font-size: .8125rem;
  color: rgba(253,251,247,.45);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.bp-avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  animation: bppulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Hero right: form card ──────────────────────────────────── */
.bp-form-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.bp-form-head {
  background: var(--forest);
  padding: var(--sp-6);
}

.bp-form-badge {
  display: inline-block;
  background: rgba(184,135,42,.2);
  border: 1px solid rgba(184,135,42,.35);
  border-radius: var(--r);
  padding: 4px 12px;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: var(--sp-4);
}

.bp-form-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 4px;
}

.bp-form-head p {
  font-family: var(--font-ui);
  font-size: .8125rem;
  color: rgba(253,251,247,.65);
  margin: 0;
}

.bp-form-body { padding: var(--sp-6); }

.bp-form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  background: var(--parchment);
  border-top: 1px solid var(--border-light);
}

.bp-ftb {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 500;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Proof strip ────────────────────────────────────────────── */
.bp-proof-strip {
  border-bottom: 1px solid var(--border-light);
  padding: var(--sp-4) 0;
}

.bp-proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: .875rem;
  color: var(--muted);
}

.bp-stars { color: var(--gold); font-size: .875rem; letter-spacing: 1px; }

.bp-pf { display: flex; align-items: center; gap: var(--sp-2); }

/* ── Numbers bar ────────────────────────────────────────────── */
.bp-numbers-bar {
  background: var(--ink);
  padding: var(--sp-6) 0;
}

.bp-nums {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.bp-nv {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--ivory);
  line-height: 1;
  text-align: center;
}

.bp-nv em { font-style: normal; font-size: .6em; color: var(--gold-light); }
.bp-nl    { display: block; font-family: var(--font-ui); font-size: .75rem; color: rgba(253,251,247,.5); margin-top: 4px; }

/* ── AEO quick answer boxes ────────────────────────────────── */
.bp-aeo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.bp-aeo-box {
  background: var(--parchment);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: box-shadow var(--ease);
}

.bp-aeo-box:hover { box-shadow: var(--shadow-sm); }

.bp-aeo-box h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-4);
  line-height: 1.4;
}

.bp-aeo-box p {
  font-size: .9375rem;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}

/* ── Included grid ──────────────────────────────────────────── */
.bp-inc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.bp-inc-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: box-shadow var(--ease), transform var(--ease);
}

.bp-inc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.bp-inc-card--featured {
  border-color: var(--forest);
  position: relative;
}

.bp-inc-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--forest-light, #2a4e7c));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.bp-inc-icon  { font-size: 1.75rem; display: block; margin-bottom: var(--sp-4); line-height: 1; }
.bp-inc-card h3 { font-size: 1.125rem; margin-bottom: var(--sp-3); }
.bp-inc-card p  { font-size: .9375rem; color: var(--muted); line-height: 1.7; margin: 0; }
.bp-inc-card a  { color: var(--forest); font-weight: 500; }

.bp-inc-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 600;
  color: var(--forest);
  background: var(--forest-pale, #e8eef5);
  border-radius: var(--r-pill);
  padding: .25rem .75rem;
  margin-top: var(--sp-4);
}

/* ── Process steps ──────────────────────────────────────────── */
.bp-proc-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.bp-proc-arrow {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--gold-light);
  align-self: center;
  padding: 0 var(--sp-2);
  opacity: .5;
}

.bp-pstep {
  flex: 1;
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  background: rgba(253,251,247,.06);
  border: 1px solid rgba(253,251,247,.08);
  border-radius: var(--r-lg);
}

.bp-pstep-n {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
}

.bp-pstep h3   { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; color: var(--ivory); margin-bottom: var(--sp-3); }
.bp-pstep p    { font-family: var(--font-ui); font-size: .8125rem; color: rgba(253,251,247,.6); line-height: 1.65; margin-bottom: var(--sp-3); }
.bp-pstep-t    { font-family: var(--font-ui); font-size: .75rem; font-weight: 600; color: var(--gold-light); letter-spacing: .06em; text-transform: uppercase; }

/* ── Guarantees ─────────────────────────────────────────────── */
.bp-guar-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-align: center;
}

.bp-guar-card--featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,135,42,.08);
  position: relative;
}

.bp-guar-ic    { font-size: 2rem; display: block; margin-bottom: var(--sp-4); line-height: 1; }
.bp-guar-card h3 { font-size: 1.125rem; margin-bottom: var(--sp-3); }
.bp-guar-card p  { font-size: .9375rem; color: var(--muted); line-height: 1.7; margin: 0; }

.bp-guar-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-pale);
  border: 1px solid rgba(184,135,42,.25);
  border-radius: var(--r-pill);
  padding: .25rem .75rem;
  margin-top: var(--sp-4);
}

/* ── Story / case study card ────────────────────────────────── */
.bp-story-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-10);
  position: relative;
  overflow: hidden;
}

.bp-story-card::before {
  content: '\201C';
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-6);
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: var(--parchment);
  font-weight: 700;
  pointer-events: none;
}

.bp-story-header { display: flex; align-items: center; gap: var(--sp-5); margin-bottom: var(--sp-6); }
.bp-story-stars  { color: var(--gold); font-size: 1rem; letter-spacing: 2px; }

.bp-story-outcome {
  font-family: var(--font-ui);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--forest);
  background: var(--forest-pale, #e8eef5);
  border-radius: var(--r-pill);
  padding: .375rem .875rem;
}

.bp-story-quote    { margin-bottom: var(--sp-6); }
.bp-story-quote p  { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.8; color: var(--ink-light); font-style: italic; }

.bp-story-author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border-light);
}

.bp-story-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bp-story-name { font-family: var(--font-ui); font-size: 1rem; font-weight: 600; color: var(--ink); }
.bp-story-meta { font-family: var(--font-ui); font-size: .8125rem; color: var(--muted); margin-top: 2px; }

.bp-story-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.bp-result {
  text-align: center;
  padding: var(--sp-4);
  background: var(--parchment);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bp-result strong { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--forest); line-height: 1; }
.bp-result span   { font-family: var(--font-ui); font-size: .75rem; color: var(--muted); margin-top: 2px; display: block; }

/* ── Differentiator cards ───────────────────────────────────── */
.bp-diff-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  transition: box-shadow var(--ease);
}

.bp-diff-card:hover { box-shadow: var(--shadow-md); }
.bp-diff-icon       { font-size: 1.75rem; flex-shrink: 0; line-height: 1; }
.bp-diff-card h3    { font-size: 1.125rem; margin-bottom: var(--sp-3); }
.bp-diff-card p     { font-size: .9375rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ── Mobile sticky bar ──────────────────────────────────────── */
.bp-mob-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--white);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(26,26,24,.1);
}

/* ── Service card (related services grid) ───────────────────── */
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border); }

.service-card__icon { font-size: 1.75rem; line-height: 1; }
.service-card h3    { font-size: 1.0625rem; color: var(--navy); margin: 0; }
.service-card p     { font-size: .875rem; color: var(--muted); line-height: 1.65; margin: 0; flex: 1; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bp-hero-grid  { grid-template-columns: 1fr 380px; gap: var(--space-2xl); }
  .bp-inc-grid   { grid-template-columns: repeat(2, 1fr); }
  .bp-proc-grid  { flex-wrap: wrap; gap: var(--sp-4); }
  .bp-proc-arrow { display: none; }
  .bp-pstep      { flex: 0 0 calc(33% - var(--sp-4)); }
}

@media (max-width: 768px) {
  .bp-hero-grid  { grid-template-columns: 1fr; padding: var(--sp-10) 0; }
  .bp-inc-grid   { grid-template-columns: 1fr; }
  .bp-aeo-grid   { grid-template-columns: 1fr; }
  .bp-proc-grid  { flex-direction: column; }
  .bp-pstep      { flex: 1 1 auto; width: 100%; }
  .bp-stats      { flex-wrap: wrap; gap: var(--sp-5); }
  .bp-story-results { grid-template-columns: repeat(2, 1fr); }
  .bp-mob-sticky { display: block; }
  .bp-nums       { gap: var(--sp-8); }
  .bp-proof-inner { gap: var(--sp-4); }
  .bp-story-header { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════════════════════════════
   AMAZON PAGE SPECIFIC — amz-* components
   ════════════════════════════════════════════════════════════════ */

/* KDP gap comparison grid */
.amz-gap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin: var(--sp-8) 0;
}

.amz-gap-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}

.amz-gap-card--needed { border-color: rgba(180,83,9,.3); }
.amz-gap-card--we     { border-color: var(--navy); background: var(--navy-pale); }

.amz-gap-head {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.amz-gap-head h3  { font-size: 1.0625rem; margin: 0; width: 100%; }
.amz-gap-icon     { font-size: 1.5rem; line-height: 1; }

.amz-gap-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .6rem;
  border-radius: var(--r-pill);
  background: var(--parchment);
  color: var(--muted);
}

.amz-gap-tag--amber { background: rgba(180,83,9,.08); color: #B45309; }
.amz-gap-tag--green { background: rgba(26,122,74,.08); color: var(--success); }

.amz-gap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
}

.amz-gap-list li          { font-family: var(--font-ui); font-size: .875rem; color: var(--ink-light); line-height: 1.5; }
.amz-gap-list--amber li   { color: rgba(180,83,9,.9); }
.amz-gap-list--green li   { color: var(--navy); font-weight: 500; }

/* Included services grid */
.amz-inc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* Responsive */
@media (max-width: 1100px) {
  .amz-gap-grid { grid-template-columns: 1fr; }
  .amz-inc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .amz-inc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 375px) {
  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px; /* buttons ke darmiyan spacing */
  }

  .btn-group button,
  .btn-group a {
    width: 100%; /* full width buttons */
    display: block;
    text-align: center;
  }
}