/* ============================================================
   INNER PAGES — SHARED STYLES
   ============================================================ */

/* PAGE HERO */
.page-hero {
  background: var(--navy);
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(0,174,239,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: var(--space-4); }
.page-hero .lead { color: rgba(255,255,255,0.75); }
.page-hero--sm { padding: var(--space-16) 0 var(--space-12); }

/* CONTENT LAYOUT */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-16);
  align-items: start;
}
.content-main {}
.content-sidebar {
  position: sticky;
  top: 88px;
}

/* SIDEBAR CARD */
.sidebar-card {
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}
.sidebar-card h5 { margin-bottom: var(--space-4); font-size: var(--text-base); }
.sidebar-cta-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}
.sidebar-cta-card h5 { color: var(--white); margin-bottom: var(--space-3); font-size: var(--text-base); }
.sidebar-cta-card p { color: rgba(255,255,255,0.7); font-size: var(--text-sm); max-width: none; margin-bottom: var(--space-5); }
.sidebar-cta-card .btn { width: 100%; justify-content: center; }
.sidebar-nav { display: flex; flex-direction: column; gap: var(--space-1); }
.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--grey-700);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}
.sidebar-nav a:hover { background: var(--grey-100); color: var(--blue); }
.sidebar-nav a.active { background: rgba(26,111,212,0.08); color: var(--blue); font-weight: var(--weight-semibold); }
.sidebar-nav a svg { width: 14px; height: 14px; opacity: 0.4; }

/* RICH TEXT CONTENT */
.rich-content h2 { margin: var(--space-10) 0 var(--space-4); }
.rich-content h3 { margin: var(--space-8) 0 var(--space-3); }
.rich-content h4 { margin: var(--space-6) 0 var(--space-2); }
.rich-content p { margin-bottom: var(--space-4); color: var(--body-text); }
.rich-content ul, .rich-content ol {
  margin: var(--space-4) 0 var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.rich-content li { color: var(--body-text); font-size: var(--text-base); line-height: var(--leading-relaxed); }
.rich-content ul li { list-style: disc; }
.rich-content ol li { list-style: decimal; }
.rich-content > *:first-child { margin-top: 0; }

/* TWO-COL INFO */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin: var(--space-8) 0;
}
.info-block {
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.info-block h5 { margin-bottom: var(--space-3); font-size: var(--text-base); }
.info-block ul { margin: 0; padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.info-block li { list-style: disc; font-size: var(--text-sm); color: var(--grey-600); }

/* HIGHLIGHT BOX */
.highlight-box {
  background: rgba(0,174,239,0.06);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
}
.highlight-box p { color: var(--body-text); margin: 0; max-width: none; }

/* DELIVERABLES LIST */
.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin: var(--space-6) 0;
}
.deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
}
.deliverable-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green); margin-top: 2px; }
.deliverable-item span { font-size: var(--text-sm); color: var(--grey-800); line-height: 1.4; }

/* CHECK LIST */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--body-text);
  list-style: none;
}
.check-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(76,175,80,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234CAF50'%3E%3Cpath d='M13.5 2.5L5.5 10.5 2.5 7.5l-1 1 4 4 9-9z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* OUTCOME CARDS */
.outcome-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-8) 0;
}
.outcome-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border-top: 3px solid var(--cyan);
}
.outcome-card h5 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.outcome-card p { font-size: var(--text-sm); color: var(--grey-600); max-width: none; margin: 0; }

/* RELATED LINKS ROW */
.related-section {
  border-top: 1px solid var(--grey-100);
  padding-top: var(--space-10);
  margin-top: var(--space-10);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.related-card:hover { border-color: rgba(26,111,212,0.25); box-shadow: var(--shadow); }
.related-card-type { font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.related-card-title { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--navy); }
.related-card-desc { font-size: var(--text-xs); color: var(--grey-600); }

/* INDUSTRY PAGE SPECIFICS */
.industry-hero-meta {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
.industry-hero-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}
.industry-hero-meta-item svg { width: 16px; height: 16px; color: var(--cyan); }

/* FUNCTIONS LIST */
.functions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.function-item {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
}
.function-item svg { width: 28px; height: 28px; color: var(--blue); margin: 0 auto var(--space-3); }
.function-item span { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--navy); }

/* DOWNLOAD CTA */
.download-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
}
.download-cta h3 { color: var(--white); margin-bottom: var(--space-3); }
.download-cta p { color: rgba(255,255,255,0.7); max-width: none; margin: 0; font-size: var(--text-sm); }
.download-cta-actions { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-end; }

/* PAGE NAV (prev/next) */
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-10);
  border-top: 1px solid var(--grey-100);
  margin-top: var(--space-10);
}
.page-nav-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  text-decoration: none;
  max-width: 45%;
}
.page-nav-item--next { align-items: flex-end; margin-left: auto; }
.page-nav-label { font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-400); }
.page-nav-title { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--navy); }
.page-nav-item:hover .page-nav-title { color: var(--blue); }

/* OVERVIEW GRID PAGE */
.overview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.overview-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--duration) var(--ease);
}
.overview-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(26,111,212,0.2); }
.overview-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: rgba(26,111,212,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.overview-card-icon svg { width: 24px; height: 24px; }
.overview-card h4 { font-size: var(--text-lg); color: var(--navy); }
.overview-card p { font-size: var(--text-sm); color: var(--grey-600); max-width: none; margin: 0; flex: 1; }
.overview-card-link { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--blue); margin-top: auto; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .outcome-cards { grid-template-columns: repeat(2, 1fr); }
  .functions-grid { grid-template-columns: repeat(3, 1fr); }
  .download-cta { grid-template-columns: 1fr; }
  .download-cta-actions { align-items: flex-start; flex-direction: row; }
  .overview-cards { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .deliverables { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; }
  .outcome-cards { grid-template-columns: 1fr; }
  .functions-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-cards { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .download-cta-actions { flex-direction: column; }
}

/* ============================================================
   BREADCRUMB FIXES
   - Wrap in nav.breadcrumb for correct styling
   - Visible on dark (navy) hero background
   ============================================================ */
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb .breadcrumb__sep {
  color: rgba(255,255,255,0.3);
}
.page-hero .breadcrumb .breadcrumb__current {
  color: rgba(255,255,255,0.85);
  font-weight: var(--weight-medium);
}

/* FOOTER LOGO FIX — white box prevention */
.footer-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
  display: block;
  max-height: 40px;
  width: auto;
}

/* PAGE HERO EYEBROW spacing fix */
.page-hero .eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  color: var(--cyan);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   INFOGRAPHICS — shared across pages
   ============================================================ */

/* 5-stage consulting flow */
.consulting-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: var(--space-8) 0;
  overflow-x: auto;
}
.cf-stage {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: var(--space-5) var(--space-3);
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  margin-right: var(--space-2);
  transition: box-shadow var(--duration) var(--ease);
}
.cf-stage:last-child { margin-right: 0; }
.cf-stage:hover { box-shadow: var(--shadow); }
.cf-stage-arrow {
  position: absolute;
  right: calc(-1 * var(--space-3));
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--grey-200);
  z-index: 1;
}
.cf-stage:last-child .cf-stage-arrow { display: none; }
.cf-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}
.cf-label {
  font-size: var(--text-sm); font-weight: var(--weight-bold);
  color: var(--navy); margin-bottom: var(--space-2);
}
.cf-desc {
  font-size: var(--text-xs); color: var(--grey-600);
  line-height: 1.4; max-width: none;
}

/* Enterprise architecture stack */
.arch-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-8) 0;
}
.arch-layer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--grey-100);
}
.arch-layer-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  background: var(--navy);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  min-width: 140px;
  text-align: center;
}
.arch-layer-items {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.arch-pill {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
  border: 1px solid var(--grey-100);
  color: var(--grey-700);
  background: var(--grey-50);
  font-weight: var(--weight-medium);
}

/* Industry mapping visual */
.industry-map {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  margin: var(--space-8) 0;
  align-items: center;
}
.imap-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}
.imap-header {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: var(--navy);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  text-align: center;
  width: 100%;
}
.imap-item {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-100);
  color: var(--grey-700);
  background: var(--white);
  text-align: center;
  width: 100%;
  line-height: 1.3;
}
.imap-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-300);
}
.imap-arrow svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .consulting-flow { flex-direction: column; }
  .cf-stage { margin-right: 0; margin-bottom: var(--space-2); }
  .cf-stage-arrow { display: none; }
  .industry-map { grid-template-columns: 1fr; }
  .imap-arrow { transform: rotate(90deg); }
  .arch-layer { flex-direction: column; align-items: flex-start; }
}
