/* ==========================================================================
   CCF Enterprise — Enterprise Curriculum landing page for Correct Code Press.
   Reuses the CCF Consulting component library (.ccf-consult-*) for the shared
   premium marketing language (hero, buttons, section shells, philosophy bands,
   pricing cards) and adds the enterprise-specific components below, scoped
   under .ccf-enterprise-* to avoid collisions with shared brand classes.
   ========================================================================== */

/* Pending / disabled state for curriculum CTAs that have no destination yet */
.ccf-enterprise-btn-pending,
.ccf-consult-btn-ghost[disabled],
.ccf-consult-btn-gold[disabled] {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.ccf-enterprise-pending-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--ccf-muted2);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ccf-enterprise-emphasis {
  color: var(--gold);
}

/* ==========================================================================
   Value proposition pillars (Understand / Build / Reason)
   ========================================================================== */

.ccf-enterprise-pillars {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.ccf-enterprise-pillar {
  border: 1px solid var(--ccf-border);
  background: var(--ccf-card);
  border-radius: 1.25rem;
  padding: 1.6rem;
}

.ccf-enterprise-pillar-step {
  display: block;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}

.ccf-enterprise-pillar-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.ccf-enterprise-pillar-text {
  color: var(--ccf-muted);
}

/* ==========================================================================
   Curriculum track cards
   ========================================================================== */

.ccf-enterprise-tracks {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.ccf-enterprise-track {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ccf-border);
  background: var(--ccf-card);
  border-radius: 1.25rem;
  padding: 1.6rem;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.ccf-enterprise-track:hover {
  border-color: rgba(255,255,255,.22);
  transform: translateY(-3px);
}

.ccf-enterprise-track--lead {
  border-color: rgba(200, 167, 93, .55);
  background:
    radial-gradient(300px 220px at 100% 0%, rgba(200,167,93,.12), transparent 65%),
    var(--ccf-card);
}

.ccf-enterprise-track-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: .9rem;
  border: 1px solid rgba(200, 167, 93, .4);
  background: rgba(200, 167, 93, .1);
  color: var(--gold);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.ccf-enterprise-track-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .2rem;
}

.ccf-enterprise-track-sub {
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.ccf-enterprise-track-desc {
  color: var(--ccf-muted);
  font-size: .95rem;
  margin-bottom: .85rem;
}

.ccf-enterprise-track-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: .5rem;
}

.ccf-enterprise-track-list li {
  color: var(--ccf-muted);
  padding-left: 1.4rem;
  position: relative;
  font-size: .95rem;
}

.ccf-enterprise-track-list li::before {
  content: "\2713";
  color: var(--gold);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}

.ccf-enterprise-track-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  color: var(--ccf-muted2);
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ccf-enterprise-track-progress i {
  color: var(--gold);
  font-size: .65rem;
}

.ccf-enterprise-track-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-top: auto;
  padding-top: 1rem;
}

/* ==========================================================================
   Reasoning band (Technology Changes. Reasoning Endures.)
   ========================================================================== */

.ccf-enterprise-reasoning-lead {
  color: var(--ccf-muted);
  max-width: 44rem;
  margin-inline: auto;
}

.ccf-enterprise-reasoning-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  text-align: left;
}

.ccf-enterprise-reasoning-label {
  color: var(--ccf-muted2);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Pipeline stepper */
.ccf-enterprise-pipeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  justify-items: start;
}

.ccf-enterprise-pipeline--path {
  justify-items: center;
  max-width: 24rem;
  margin-inline: auto;
}

.ccf-enterprise-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  border: 1px solid var(--ccf-border);
  background: var(--ccf-card);
  border-radius: .9rem;
  padding: .75rem 1.15rem;
  font-weight: 700;
  color: var(--ccf-fg);
}

.ccf-enterprise-pipeline--path .ccf-enterprise-step {
  align-items: center;
  text-align: center;
}

.ccf-enterprise-step--gold {
  border-color: rgba(200, 167, 93, .55);
  color: var(--gold);
}

.ccf-enterprise-step-arrow {
  color: var(--ccf-muted2);
  font-size: .8rem;
  padding: .4rem 0;
}

/* CCF framework framing cards */
.ccf-enterprise-frame {
  border: 1px solid var(--ccf-border);
  background: var(--ccf-card);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: .9rem;
}

.ccf-enterprise-frame-name {
  display: block;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: .25rem;
}

.ccf-enterprise-frame-desc {
  color: var(--ccf-muted);
}

/* ==========================================================================
   Architecture Labs
   ========================================================================== */

.ccf-enterprise-labs {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.ccf-enterprise-lab {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  border: 1px solid var(--ccf-border);
  background: var(--ccf-card);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
}

.ccf-enterprise-planned-badge {
  align-self: flex-start;
  border: 1px solid rgba(200, 167, 93, .4);
  background: rgba(200, 167, 93, .08);
  color: var(--gold);
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ccf-enterprise-lab-text {
  color: var(--ccf-fg);
  font-weight: 600;
}

/* ==========================================================================
   Enterprise Case Files
   ========================================================================== */

.ccf-enterprise-casegrid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.ccf-enterprise-case {
  border: 1px solid var(--ccf-border);
  background: var(--ccf-card);
  border-radius: 1.25rem;
  padding: 1.6rem;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.ccf-enterprise-case:hover {
  border-color: rgba(200, 167, 93, .5);
  transform: translateY(-3px);
}

/* ==========================================================================
   Who this is for
   ========================================================================== */

.ccf-enterprise-roles {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.ccf-enterprise-role {
  border: 1px solid var(--ccf-border);
  background: var(--ccf-card);
  border-radius: 999px;
  padding: .55rem 1.1rem;
  color: var(--ccf-fg);
  font-weight: 600;
  font-size: .95rem;
}

/* ==========================================================================
   Enterprise Skills Matrix
   ========================================================================== */

.ccf-enterprise-matrix {
  width: 100%;
  border-collapse: collapse;
}

.ccf-enterprise-matrix th,
.ccf-enterprise-matrix td {
  border: 1px solid var(--ccf-border);
  padding: .85rem 1rem;
  text-align: center;
}

.ccf-enterprise-matrix th {
  color: var(--gold);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.03);
}

.ccf-enterprise-matrix td:first-child {
  text-align: left;
  color: var(--ccf-fg);
  font-weight: 600;
}

.ccf-enterprise-check {
  color: var(--gold);
  font-size: 1rem;
}

.ccf-enterprise-matrix th:first-child {
  text-align: left;
}

/* ==========================================================================
   Certification alignment
   ========================================================================== */

.ccf-enterprise-align {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.ccf-enterprise-align-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  border: 1px solid var(--ccf-border);
  background: var(--ccf-card);
  border-radius: .9rem;
  padding: .85rem 1rem;
  color: var(--ccf-fg);
  font-weight: 600;
  font-size: .95rem;
}

.ccf-enterprise-disclaimer {
  color: var(--ccf-muted2);
  font-size: .9rem;
}

/* ==========================================================================
   Enterprise Curriculum architecture diagram
   ========================================================================== */

.ccf-enterprise-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 40rem;
  margin-inline: auto;
}

.ccf-enterprise-diagram-node {
  border: 1px solid var(--ccf-border);
  background: var(--ccf-card);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .85rem;
  text-align: center;
  width: min(100%, 20rem);
  color: var(--ccf-fg);
}

.ccf-enterprise-diagram-node--gold {
  color: var(--gold);
  border-color: rgba(200, 167, 93, .55);
}

.ccf-enterprise-diagram-stem {
  width: 2px;
  height: 1.25rem;
  background: rgba(200, 167, 93, .55);
}

.ccf-enterprise-diagram-span {
  width: min(100%, 30rem);
  height: 2px;
  background: rgba(200, 167, 93, .55);
}

.ccf-enterprise-diagram-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 30rem);
}

.ccf-enterprise-diagram-cell {
  display: grid;
  justify-items: center;
}

/* ==========================================================================
   Enterprise sign-off line
   ========================================================================== */

.ccf-enterprise-signoff {
  color: var(--gold);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Matrix becomes stacked cards on small screens */
@media (max-width: 639.98px) {
  .ccf-enterprise-matrix thead {
    display: none;
  }

  .ccf-enterprise-matrix,
  .ccf-enterprise-matrix tbody,
  .ccf-enterprise-matrix tr,
  .ccf-enterprise-matrix td {
    display: block;
    width: 100%;
  }

  .ccf-enterprise-matrix tr {
    border: 1px solid var(--ccf-border);
    background: var(--ccf-card);
    border-radius: 1rem;
    padding: .6rem 1rem;
    margin-bottom: 1rem;
  }

  .ccf-enterprise-matrix td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: none;
    border-bottom: 1px solid var(--ccf-border);
    text-align: right;
    padding: .55rem 0;
  }

  .ccf-enterprise-matrix td:last-child {
    border-bottom: none;
  }

  .ccf-enterprise-matrix td::before {
    content: attr(data-label);
    text-align: left;
    color: var(--ccf-muted2);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .ccf-enterprise-matrix td:first-child::before {
    content: "Capability";
    color: var(--gold);
  }

  .ccf-enterprise-matrix td:first-child {
    text-align: left;
  }
}

/* Diagram collapses to a single column on small screens */
@media (max-width: 639.98px) {
  .ccf-enterprise-diagram-row {
    grid-template-columns: 1fr;
    width: min(100%, 20rem);
  }

  .ccf-enterprise-diagram-span {
    display: none;
  }
}
