/* =============================================================
   DCC-i — Pillars Section Refinements
   File: css/dcci-pillars-refined.css
   Purpose: Visual depth, hero continuity and split layout for
            the "Explore tools and resources" section.
   Scope: Overrides only. Drop this AFTER dcci-portal.css.
   ============================================================= */


/* ──────────────────────────────────────────────────────────────
   1. SECTION BACKGROUND & AMBIENT GLOW
   ────────────────────────────────────────────────────────────── */

.dcci-pillars-band {
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(155, 89, 182, 0.18)  0%,
      rgba(155, 89, 182, 0.08) 35%,
      rgba(155, 89, 182, 0.02) 60%,
      transparent              100%
    ),
    linear-gradient(to bottom, #f2ecfa 0%, #e9e2f3 100%);
  position: relative;
  overflow: visible;
  padding: 96px 0 100px;
}

/* Split (logged-out) variant — seamlessly continues from org section's #4e1f72 bottom,
   mirrors the org gradient in reverse, arriving at pale lavender before text appears */
.dcci-pillars-band--split {
  background:
    linear-gradient(180deg,
      #4e1f72  0%,
      #7a4aa8 12%,
      #a07abf 22%,
      #c4a8dc 32%,
      #ddd0ee 42%,
      #e8ddf4 55%,
      #f0eaf8 68%,
      #f2ecfa 100%
    );
}

.dcci-pillars-band::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(155, 89, 182, 0.15),
    rgba(233, 30, 99, 0.08),
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.dcci-pillars-inner {
  position: relative;
  z-index: 1;
}


/* ──────────────────────────────────────────────────────────────
   2. STANDARD LAYOUT — centred header + heading underline
   ────────────────────────────────────────────────────────────── */

.dcci-pillars-heading {
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}

.dcci-pillars-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(to right, #9b59b6, #e91e63);
  border-radius: 2px;
}

.dcci-pillars-header {
  margin-bottom: 68px;
}

.dcci-pillars-subtext {
  text-align: center;
  white-space: normal;
  max-width: 720px;
}


/* ──────────────────────────────────────────────────────────────
   3. GRID — breathing room
   ────────────────────────────────────────────────────────────── */

.dcci-pillars-grid {
  gap: 24px;
  margin-top: -120px;
}

/* Standard (trainer/admin) layout — no overlap with header text */
.dcci-pillars-band:not(.dcci-pillars-band--split) .dcci-pillars-grid {
  margin-top: 0;
}

/* Practice Areas page (individual dashboard) — the grid follows intro text,
   so the front-page negative pull-up must not apply or cards overlap the copy. */
.dcci-ind-dash .dcci-pillars-grid {
  margin-top: 0;
}

/* 2-column variant used in the split layout RHS */
.dcci-pillars-grid--2col {
  grid-template-columns: repeat(2, 1fr) !important;
}


/* ──────────────────────────────────────────────────────────────
   4. SPLIT LAYOUT — LHS text + RHS cards (logged-out visitor)
   ────────────────────────────────────────────────────────────── */

.dcci-pillars-inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* LHS: stacked text blocks */
.dcci-pillars-lhs {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 300px;
}

/* RHS: card grid */
.dcci-pillars-rhs {
  position: sticky;
  top: 24px;
  padding-top: 400px;
}

/* Individual content block */
.dcci-pillars-block {
  padding: 32px 0;
}

.dcci-pillars-block-divider {
  border: none;
  border-top: 1px solid rgba(155, 89, 182, 0.18);
  margin: 4px 0;
}


/* ──────────────────────────────────────────────────────────────
   5. BLOCK TYPOGRAPHY
   ────────────────────────────────────────────────────────────── */

/* Org eyebrow — purple */
.dcci-pillars-block-eyebrow {
  display: block;
  font-family: var(--dcc-font, 'Montserrat', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.dcci-pillars-block-eyebrow--org {
  color: #8d2f88;
}

/* Individual eyebrow — pink, matches org eyebrow sizing exactly */
.dcci-pillars-eyebrow--individual {
  display: block;
  font-family: var(--dcc-font, 'Montserrat', sans-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e91e63;
  margin-bottom: 16px;
}

/* Block headings — matches org section clamp(28px, 3.8vw, 48px) */
.dcci-pillars-block-heading {
  font-family: var(--dcc-font, 'Montserrat', sans-serif);
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 800;
  color: #3e1e67;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
/* No size override needed — individual heading matches org exactly */
.dcci-pillars-block-heading--individual {}

/* Body paragraphs — matches org section clamp(14px, 1.2vw, 16px) / weight 500 */
.dcci-pillars-block-body {
  font-family: var(--dcc-font, 'Montserrat', sans-serif);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
  color: #3e1e67;
  opacity: 0.72;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 520px;
}
.dcci-pillars-block-body--bold {
  font-weight: 700;
  opacity: 1;
  color: #3e1e67;
}

.dcci-logo-row .dcci-pillars-membership-logo {
  display: block !important;
  margin-bottom: 0 !important;
}

/* Membership logo */
.dcci-pillars-membership-logo {
  display: block;
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 12px rgba(255,255,255,0.35));
}


/* ──────────────────────────────────────────────────────────────
   6. PILOT ORG LIST
   ────────────────────────────────────────────────────────────── */

.dcci-pillars-pilot {
  margin-top: 20px;
}

.dcci-pillars-pilot-label {
  font-family: var(--dcc-font, 'Montserrat', sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: #3e1e67;
  opacity: 0.60;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.dcci-pillars-pilot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.dcci-pillars-pilot-list li {
  font-family: var(--dcc-font, 'Montserrat', sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: #8d2f88;
  background: rgba(141, 47, 136, 0.07);
  border: 1px solid rgba(141, 47, 136, 0.18);
  border-radius: 100px;
  padding: 4px 12px;
  white-space: nowrap;
}


/* ──────────────────────────────────────────────────────────────
   7. CTA BUTTONS
   ────────────────────────────────────────────────────────────── */

.dcci-pillars-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 4px;
}

.dcci-pillars-cta {
  display: inline-block;
  font-family: var(--dcc-font, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 100px;
  padding: 11px 24px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Primary: pink-purple gradient */
.dcci-pillars-cta--primary {
  background: linear-gradient(135deg, #9b59b6 0%, #e91e63 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.28);
}
.dcci-pillars-cta--primary:hover {
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.40);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Primary org: purple gradient */
.dcci-pillars-cta--org {
  background: linear-gradient(135deg, #6b1a6b 0%, #8d2f88 100%);
  box-shadow: 0 4px 16px rgba(141, 47, 136, 0.28);
}
.dcci-pillars-cta--org:hover {
  box-shadow: 0 8px 24px rgba(141, 47, 136, 0.40);
  color: #ffffff;
}

/* Secondary: ghost outline */
.dcci-pillars-cta--secondary {
  background: transparent;
  color: #9b59b6;
  border: 2px solid rgba(155, 89, 182, 0.40);
}
.dcci-pillars-cta--secondary:hover {
  background: rgba(155, 89, 182, 0.07);
  border-color: #9b59b6;
  transform: translateY(-2px);
  color: #9b59b6;
}


/* ──────────────────────────────────────────────────────────────
   8. CARD SURFACE
   ────────────────────────────────────────────────────────────── */

.dcci-pcard {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(155, 89, 182, 0.08);
  border-top: 1.5px solid rgba(var(--pc-r), var(--pc-g), var(--pc-b), 0.35);
  box-shadow:
    0 10px 30px rgba(46, 50, 64, 0.08),
    0  2px  8px rgba(46, 50, 64, 0.04);
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dcci-pcard::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: radial-gradient(
    circle at top left,
    rgba(var(--pc-r), var(--pc-g), var(--pc-b), 0.10),
    transparent 60%
  );
  z-index: 0;
}
.dcci-pcard-body { position: relative; z-index: 1; }

.dcci-pcard--safeguarding::before   { background: radial-gradient(circle at top left, rgba(233,  30,  99, 0.11), transparent 60%); }
.dcci-pcard--mental-cap::before     { background: radial-gradient(circle at top left, rgba( 52, 152, 219, 0.11), transparent 60%); }
.dcci-pcard--person-centred::before { background: radial-gradient(circle at top left, rgba( 46, 204, 113, 0.10), transparent 60%); }
.dcci-pcard--neurodiversity::before { background: radial-gradient(circle at top left, rgba(230, 126,  34, 0.10), transparent 60%); }
.dcci-pcard--legal::before          { background: radial-gradient(circle at top left, rgba(155,  89, 182, 0.12), transparent 60%); }
.dcci-pcard--coproduction::before   { background: radial-gradient(circle at top left, rgba( 54,  70, 158, 0.11), transparent 60%); }

.dcci-pcard-wrap:hover .dcci-pcard {
  transform: translateY(-6px);
  border-color: rgba(155, 89, 182, 0.12);
  border-top-color: rgba(var(--pc-r), var(--pc-g), var(--pc-b), 0.60);
  box-shadow:
    0 18px 40px rgba(46, 50, 64, 0.12),
    0  4px 12px rgba(46, 50, 64, 0.06);
}

.dcci-pcard-wrap:hover .dcci-pcard-circle {
  box-shadow:
    0 0 0 2.5px rgba(var(--pc-r), var(--pc-g), var(--pc-b), 0.30),
    0 5px 14px rgba(0, 0, 0, 0.15),
    0 2px 5px  rgba(0, 0, 0, 0.10);
}

.dcci-pcard-desc { opacity: 0.70; }

.dcci-pcard-signal-tag:first-child {
  background: rgba(var(--pc-r), var(--pc-g), var(--pc-b), 0.11);
  border: 1.5px solid rgba(var(--pc-r), var(--pc-g), var(--pc-b), 0.24);
}
.dcci-pcard-signal-tag:last-child {
  border: 1.5px solid rgba(var(--pc-r), var(--pc-g), var(--pc-b), 0.34);
}


/* ──────────────────────────────────────────────────────────────
   9. RESPONSIVE
   ────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .dcci-pillars-inner--split {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .dcci-pillars-inner--split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .dcci-pillars-rhs {
    position: static;
  }
  .dcci-pillars-grid--2col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 560px) {
  .dcci-pillars-band {
    padding: 56px 0 64px;
  }
  .dcci-pillars-inner--split {
    padding: 0 20px;
  }
  .dcci-pillars-grid--2col {
    grid-template-columns: 1fr !important;
  }
  .dcci-pillars-ctas {
    flex-direction: column;
    gap: 10px;
  }
  .dcci-pillars-cta {
    width: 100%;
    text-align: center;
  }
  .dcci-pillars-pilot-list {
    flex-direction: column;
    gap: 6px;
  }
  .dcci-pillars-header {
    margin-bottom: 48px;
  }
}

@media (max-width: 900px) {
  .dcci-pillars-band {
    padding: 72px 0 80px;
  }
  .dcci-pillars-band::after {
    width: 500px;
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dcci-pcard,
  .dcci-pcard-wrap:hover .dcci-pcard {
    transition: box-shadow 0.2s ease;
    transform: none;
  }
}