/* ==========================================================================
   Bedrok Media — Homepage Styles
   Page-specific CSS only. Design tokens and shared classes live in base.css.
   ========================================================================== */

/* ---- Hero ----------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-block: 64px 56px;
  overflow: hidden;
  background:
    radial-gradient(55% 90% at 88% 16%, var(--c-glow) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  padding-bottom: 0;
}

.hero-content h1 {
  color: var(--c-ink);
  margin-bottom: .35em;
}

.hero-content h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--c-accent);
  border-radius: 3px;
  margin: 18px 0 24px;
}

.hero-content .lead {
  color: var(--c-text-soft);
  margin-bottom: 1.5rem;
}

.hero-bullets {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-bullets li {
  color: var(--c-text);
  padding-left: 1.4em;
  position: relative;
  font-size: 1.05rem;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-accent);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-image img {
  max-height: 560px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 26px 50px rgba(12,17,21,.22));
}

/* Accent bar under split-section headings (consistent left-aligned motif) */
.operations-content h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--c-accent);
  border-radius: 3px;
  margin-top: 16px;
}

/* ---- Media Buying channel icons ------------------------------------------- */
.card-svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--c-accent-tint);
  margin-bottom: 18px;
}
.card-svg-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--c-accent);
  display: block;
}

/* ---- Two-column media split (Live Call Transfers) ------------------------- */
.split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-text h2 {
  margin-bottom: .4em;
}

.split-text h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--c-accent);
  border-radius: 3px;
  margin-top: 16px;
}

.split-text p {
  color: var(--c-text-soft);
  font-size: 1.12rem;
  margin-bottom: 0;
}

/* ---- Conversion Power Pyramid (rebuilt from the original infographic) ----- */
/*
  Approach: trapezoid shape lives on a ::before pseudo-element (clip-path there
  only). Text lives in the main flow and is NEVER clipped. This guarantees tier
  labels always render inside their band regardless of pyramid taper.
  Side labels sit in a 3-col grid: [label-col] [tier-col] [label-col].
  The tier column takes 62% of the row; labels share the remaining 38%.
*/

.pyramid {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: transparent;
}

.pyramid__head {
  display: grid;
  grid-template-columns: 1fr 62% 1fr;
  gap: 0;
  margin-bottom: 10px;
  font-weight: 800;
  color: var(--c-ink);
  font-size: .9rem;
  line-height: 1.25;
}
.pyramid__head-lbl {
  line-height: 1.3;
}
.pyramid__head-lbl--l { text-align: right; padding-right: 12px; }
.pyramid__head-lbl--c { /* spacer */ }
.pyramid__head-lbl--r { text-align: left;  padding-left:  12px; }
.pyramid__arrow { display: block; font-weight: 400; opacity: .5; }

.pyramid__row {
  display: grid;
  grid-template-columns: 1fr 62% 1fr;
  align-items: center;
  /* no margin between rows — tiers touch edge-to-edge */
}

.pyramid__lbl {
  font-weight: 700;
  font-size: .88rem;
  color: var(--c-ink);
  line-height: 1.3;
}
.pyramid__lbl--l { text-align: right; padding-right: 14px; }
.pyramid__lbl--r { text-align: left;  padding-left:  14px; }

/*
  .pyramid__tier: the visible colored band.
  - position:relative so ::before can be absolutely positioned behind text.
  - overflow:visible so text is never clipped by the element's own box.
  - The ::before pseudo carries the clip-path trapezoid (colored bg).
  - Text is z-indexed above ::before so it always renders.
  - Padding keeps text clear of the angled edges; top tiers use lighter padding
    (the clip cuts in less at the bottom). Bottom tiers get generous side padding.
  - min-height ensures single-line tiers are still tall enough for the shape.
*/
.pyramid__tier {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Horizontal padding accounts for the angled clip on ::before.
     Top inset (--ti) = clip % on top edge of THIS tier.
     Bot inset (--bi) = clip % on bottom edge of THIS tier.
     We pad by whichever is larger so text never overlaps the visible shape edge.
     Values are set per-tier via inline style. */
  padding: 14px calc(var(--pad, 9%) + 4px);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
  /* overflow visible = text never clipped */
  overflow: visible;
  /* no background on the element itself */
  background: transparent;
}

.pyramid__tier::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tier-bg);
  clip-path: polygon(var(--t) 0%, calc(100% - var(--t)) 0%, calc(100% - var(--b)) 100%, var(--b) 100%);
  z-index: 0;
}

.pyramid__tier span {
  position: relative;
  z-index: 1;
}

/* ---- Responsive tweaks ---------------------------------------------------- */
@media (max-width: 680px) {
  .pyramid__head { font-size: .8rem; }
  .pyramid__lbl  { font-size: .78rem; }
  .pyramid__tier { font-size: .88rem; min-height: 62px; }
}

@media (max-width: 420px) {
  .pyramid__head { font-size: .72rem; }
  .pyramid__lbl  { font-size: .7rem;  }
  .pyramid__lbl--l { padding-right: 8px; }
  .pyramid__lbl--r { padding-left:  8px; }
  .pyramid__tier { font-size: .8rem; min-height: 56px; }
}

/* ---- DAQ-C Method pillars (two-column grid) ------------------------------- */
.pillars-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

.pillars-list li {
  padding: 20px 0;
  border-top: 1px solid var(--c-line);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text-soft);
}

.pillars-grid li:nth-child(1),
.pillars-grid li:nth-child(2) {
  border-top: none;
  padding-top: 0;
}

.pillars-list li strong {
  display: block;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 4px;
  font-size: 1.05rem;
}

/* ---- Process steps (Drive Consistent Growth section) ---------------------- */
.process-step {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 32px;
}

.process-step h3 {
  color: var(--c-white);
  margin-bottom: .4em;
}

.process-step p {
  color: rgba(255,255,255,.7);
  margin: 0;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--c-yellow);
  line-height: 1;
  margin-bottom: 16px;
}

/* Compliance section now uses the shared .section-head + .grid grid-3 + .card pattern. */

/* ---- US Operations ------------------------------------------------------- */
.operations-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.operations-content h2 {
  color: var(--c-ink);
  margin-bottom: .6em;
}

.operations-content p {
  color: var(--c-text-soft);
}

.operations-content p:last-of-type {
  margin-bottom: 2rem;
}

.operations-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ---- Verticals ------------------------------------------------------------ */
.verticals-grid .card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.verticals-grid .card ul li {
  padding: 8px 0;
  border-top: 1px solid var(--c-line);
  color: var(--c-text-soft);
  font-size: .97rem;
}

.verticals-grid .card ul li:first-child {
  border-top: none;
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .hero-image {
    justify-content: center;
  }

  .hero-image img {
    max-height: 380px;
  }

  .split-inner,
  .operations-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  /* On one column, restore the divider above the 2nd pillar */
  .pillars-grid li:nth-child(2) {
    border-top: 1px solid var(--c-line);
    padding-top: 20px;
  }
}

@media (max-width: 560px) {
  .hero-section {
    padding-block: 56px 0;
  }

  .hero-image img {
    max-height: 260px;
  }

  .step-number {
    font-size: 2rem;
  }
}
