/* =============================================================
   training-costs.css — page-specific styles for training-costs.html
   Design system tokens live in css/styles.css (do not redefine here)
   ============================================================= */

/* ─────────────────────────────────────────────────────────────
   PAGE HERO tagline & CTAs (extends .page-hero from components.css)
───────────────────────────────────────────────────────────── */
.page-hero__tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 8px 0 24px;
}

.page-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ─────────────────────────────────────────────────────────────
   SHARED CHECKLIST  (.checklist)
   Used across multiple sections — keep one definition here
───────────────────────────────────────────────────────────── */
.checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--color-text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%231a6b8a' opacity='0.12'/%3E%3Cpath d='M5.5 10l3 3 6-6' stroke='%231a6b8a' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Light variant — used on dark navy backgrounds */
.checklist--light li {
  color: rgba(255, 255, 255, 0.92);
}

.checklist--light li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23c9a84c' opacity='0.25'/%3E%3Cpath d='M5.5 10l3 3 6-6' stroke='%23c9a84c' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Two-column checklist */
.checklist--2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
}

/* ─────────────────────────────────────────────────────────────
   SECTION 2 — INTRO
───────────────────────────────────────────────────────────── */
.tc-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-md, 12px);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

/* When icon stack is removed, use full width */
.tc-intro--no-visual {
  grid-template-columns: 1fr;
}

.tc-intro__lead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 16px;
}

.tc-intro__sub {
  color: var(--color-muted);
  margin-bottom: 4px;
}

.tc-intro__close {
  color: var(--color-text);
  margin-top: 16px;
}

/* Intro checklist with inline icons */
.tc-intro__checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 0;
}

.tc-intro__checklist li::before {
  display: none;
}

.tc-intro__checklist li i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(26,107,138,0.08), rgba(26,107,138,0.15));
  color: var(--color-sky);
  border: 1px solid rgba(26,107,138,0.12);
  flex-shrink: 0;
}

/* Decorative icon stack */
.tc-intro__visual {
  flex-shrink: 0;
}

.tc-intro__icon-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tc-intro__icon-stack i {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26,107,138,0.08), rgba(26,107,138,0.15));
  color: var(--color-sky);
  border: 1px solid rgba(26,107,138,0.12);
}

/* ─────────────────────────────────────────────────────────────
   SECTION 3 — TOTAL INVESTMENT BANNER
───────────────────────────────────────────────────────────── */
.tc-total-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a3a52 100%);
  border-radius: var(--radius-md, 12px);
  padding: 56px 64px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative ring */
.tc-total-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(201,168,76,0.08);
  pointer-events: none;
}

.tc-total-banner__left .section-tag {
  color: var(--color-gold);
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.1);
  display: inline-block;
  margin-bottom: 16px;
}

.tc-total-banner__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin: 0 0 8px;
}

.tc-total-banner__amount {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin: 0 0 16px;
}

.tc-total-banner__note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 38ch;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   SECTION 4 — PHASE CARDS
───────────────────────────────────────────────────────────── */
.tc-phases {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tc-phase-card {
  background: var(--color-white);
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tc-phase-card__header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 36px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(90deg, rgba(26,107,138,0.04) 0%, transparent 100%);
}

.tc-phase-card__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tc-phase-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sky);
  white-space: nowrap;
}

.tc-phase-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-sky), #155a75);
  border-radius: 12px;
  color: #fff;
  font-size: 1.2rem;
}

.tc-phase-card__title-wrap h2 {
  margin: 0 0 4px;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--color-navy);
}

.tc-phase-sub {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-family: 'DM Sans', sans-serif;
}

/* Tables inside phase cards */
.tc-phase-card .table-wrap {
  padding: 28px 36px 28px;
  overflow-x: auto;
}

/* Context note inside phase card */
.tc-context-note {
  margin: 24px 36px 28px;
  padding: 20px 24px;
  background: rgba(26,107,138,0.05);
  border-left: 3px solid var(--color-sky);
  border-radius: 0 8px 8px 0;
}

.tc-context-note__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sky);
  margin: 0 0 8px;
}

.tc-context-note p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 4px;
}

.tc-context-note .checklist {
  margin: 8px 0 0;
}

.tc-context-note .checklist li {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* ─────────────────────────────────────────────────────────────
   COST TABLE (used in phases + summary)
───────────────────────────────────────────────────────────── */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
}

.cost-table th,
.cost-table td {
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.cost-table th {
  background: rgba(26,107,138,0.06);
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cost-table tbody tr:hover {
  background: rgba(26,107,138,0.03);
}

/* Right-align cost column */
.cost-table .col-cost {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--color-navy);
  font-weight: 500;
}

/* Subtotal row */
.cost-table__subtotal td {
  background: rgba(26,107,138,0.07);
  border-top: 2px solid rgba(26,107,138,0.2);
  font-size: 0.95rem;
}

.cost-table__subtotal .col-cost {
  color: var(--color-sky);
  font-size: 1rem;
}

/* Total row (summary table only) */
.cost-table__total td {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
  font-size: 1rem;
}

.cost-table__total .col-cost {
  color: var(--color-gold);
  font-size: 1.1rem;
}

.cost-table__total td.col-cost,
.cost-table__total td.col-cost strong,
.cost-table__total td strong {
  color: var(--color-gold) !important;
}

/* Summary table — slightly more padded */
.cost-table--summary {
  max-width: 640px;
}

/* ─────────────────────────────────────────────────────────────
   SECTION 5 — SUMMARY WRAPPER
───────────────────────────────────────────────────────────── */
.tc-summary {
  max-width: 640px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────
   SECTION 6 — REALITY CHECK
───────────────────────────────────────────────────────────── */
.tc-reality-check {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  background: #fff8ed;
  border: 2px solid #e8a020;
  border-radius: var(--radius-md, 12px);
  padding: 48px;
  box-shadow: 0 4px 24px rgba(232,160,32,0.12);
}

.tc-reality-check__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,160,32,0.15);
  border-radius: 16px;
  color: #e8a020;
  font-size: 1.8rem;
}

.tc-reality-check__body h2 {
  color: #7a4800;
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.tc-reality-check__intro {
  color: #7a4800;
  font-weight: 500;
  margin: 0 0 20px;
}

.tc-reality-check__sub {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #a05c00;
  margin: 0 0 12px;
}

.tc-reality-check__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.tc-reality-check__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-text);
}

.tc-reality-check__list i {
  color: #e8a020;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.tc-reality-check__reassurance {
  font-size: 0.88rem;
  color: var(--color-muted);
  font-style: italic;
  margin: 0 0 12px;
}

.tc-reality-check__cta-note {
  color: var(--color-text);
  margin: 0;
  font-size: 0.95rem;
}

/* ─────────────────────────────────────────────────────────────
   SECTION 7 — COST INSIGHT GRID
───────────────────────────────────────────────────────────── */
.tc-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.tc-insight-card {
  background: var(--color-white);
  border-radius: var(--radius-md, 12px);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tc-insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tc-insight-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.22));
  border-radius: 14px;
  color: var(--color-gold);
  font-size: 1.4rem;
}

.tc-insight-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 8px;
}

.tc-insight-card p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   SECTION 8 — WHAT MOST PEOPLE MISS
───────────────────────────────────────────────────────────── */
.tc-miss-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-md, 12px);
  padding: 48px 56px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.tc-miss-wrap__header .section-tag {
  display: inline-block;
  margin-bottom: 12px;
}

.tc-miss-wrap__header h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.tc-miss-intro {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0 0 8px;
}

.tc-miss-close {
  margin-top: 20px;
  color: var(--color-text);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   SECTION 9 — PRINCIPLES GRID
───────────────────────────────────────────────────────────── */
.tc-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.tc-principle-card {
  background: var(--color-white);
  border-radius: var(--radius-md, 12px);
  padding: 32px 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tc-principle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tc-principle-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26,107,138,0.08), rgba(26,107,138,0.16));
  border-radius: 12px;
  color: var(--color-sky);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.tc-principle-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 8px;
}

.tc-principle-card p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   SECTION 10 — WHY GUIDANCE MATTERS
───────────────────────────────────────────────────────────── */
.tc-guidance {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.tc-guidance .section-tag {
  display: inline-block;
  margin-bottom: 12px;
}

.tc-guidance__text h2 {
  margin: 0 0 16px;
}

.tc-guidance__lead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-navy);
  margin: 0 0 12px;
}

.tc-guidance__sub {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  margin: 0 0 6px;
}

.tc-guidance__close {
  margin-top: 16px;
  color: var(--color-text);
  line-height: 1.6;
}

/* Stat stack */
.tc-guidance__stat-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tc-stat {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 12px);
  padding: 24px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 180px;
}

.tc-stat__num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-sky);
  line-height: 1;
  margin-bottom: 6px;
}

.tc-stat__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tc-principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .tc-total-banner {
    padding: 40px 40px;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .tc-intro,
  .tc-miss-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tc-intro__visual {
    display: none;
  }

  .tc-guidance {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tc-guidance__stat-stack {
    flex-direction: row;
    justify-content: center;
  }

  .tc-insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tc-total-banner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px;
  }

  .tc-total-banner::before {
    display: none;
  }

  .tc-reality-check__list {
    grid-template-columns: 1fr;
  }

  .checklist--2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tc-phase-card__header {
    padding: 20px 20px;
  }

  .tc-phase-card .table-wrap {
    padding: 16px 20px 0;
  }

  .tc-context-note {
    margin: 16px 20px 20px;
  }

  .tc-reality-check {
    flex-direction: column;
    gap: 20px;
    padding: 32px 28px;
  }

  .tc-reality-check__icon {
    width: 52px;
    height: 52px;
  }

  .tc-intro,
  .tc-miss-wrap {
    padding: 32px 28px;
  }

  .tc-miss-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tc-principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .tc-insight-grid {
    grid-template-columns: 1fr;
  }

  .tc-guidance__stat-stack {
    flex-direction: column;
    align-items: center;
  }

  .tc-stat {
    min-width: 0;
    width: 100%;
  }

  .tc-total-banner {
    padding: 28px 24px;
  }

  .page-hero__ctas {
    flex-direction: column;
  }

  .page-hero__ctas .btn {
    text-align: center;
  }
}