/* ─────────────────────────────────────────────────────────────
   Capgemini Invent — AI Design Authority
   Shared site stylesheet. Builds on colors_and_type.css tokens.
   ───────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }
body { line-height: 1.6; }

a { color: var(--cg-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 50px; }
@media (max-width: 720px){ .wrap { padding: 0 24px; } }

/* ── Progress bar (brand device) ─────────────────────────────── */
.progress-bar { height: 5px; background: var(--progress-bar-h); }
.pbar-draw { transform-origin: left center; animation: draw 900ms var(--ease) both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Eyebrow ─────────────────────────────────────────────────── */
.eyebrow { font-size: var(--type-eyebrow); font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; display: block; color: var(--cg-blue); }
.eyebrow--light { color: var(--cg-light-blue); }

/* ── Header / nav ────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cg-dark-blue);
  border-bottom: 1px solid rgba(255,255,255,0.12); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__brand img { height: 26px; display: block; }
.nav__brand span { font-weight: 500; font-size: 14px; color: #fff; border-left: 1px solid rgba(255,255,255,0.25); padding-left: 14px; }
.nav__links { display: flex; gap: 4px; align-items: center; }
.nav__links a { font-size: 14px; color: #fff; padding: 8px 12px; border-radius: 4px; transition: background var(--duration-base) var(--ease); }
.nav__links a:hover { background: rgba(255,255,255,0.10); text-decoration: none; }
.nav__links a.active { color: var(--cg-light-blue); font-weight: 500; }
.nav__toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: #fff; }
@media (max-width: 860px){
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--cg-dark-blue); border-bottom: 1px solid rgba(255,255,255,0.12); padding: 8px 50px 16px; gap: 2px; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 8px; }
  .nav__toggle { display: block; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero { background: var(--cg-dark-blue); color: #fff; padding: 104px 0 96px; position: relative; overflow: hidden; }
.hero .eyebrow { color: var(--cg-light-blue); margin-bottom: 20px; }
.hero h1 { font-size: var(--type-h1); font-weight: 300; margin: 0 0 24px; line-height: 1.08; max-width: 18ch; }
.hero p.lead { font-size: 20px; font-weight: 300; margin: 0 0 32px; max-width: 60ch; color: #D7DEEA; }
.hero .promise { font-size: 15px; color: var(--cg-light-blue); margin-top: 40px; letter-spacing: 0.02em; }
@media (max-width: 720px){ .hero { padding: 72px 0 64px; } .hero h1 { font-size: 38px; } }

.page-hero { background: var(--cg-dark-blue); color: #fff; padding: 72px 0 64px; }
.page-hero .eyebrow { color: var(--cg-light-blue); margin-bottom: 16px; }
.page-hero h1 { font-size: 44px; font-weight: 300; margin: 0 0 18px; line-height: 1.12; max-width: 22ch; }
.page-hero p { font-size: 18px; font-weight: 300; color: #D7DEEA; max-width: 66ch; margin: 0; }
@media (max-width: 720px){ .page-hero h1 { font-size: 32px; } }

/* ── Sections ────────────────────────────────────────────────── */
section.band { padding: 80px 0; }
section.band--alt { background: var(--bg-2); }
section.band--dark { background: var(--cg-dark-blue); color: #fff; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font-size: var(--type-h2); font-weight: 400; margin: 14px 0 16px; line-height: 1.15; }
.section-head p { font-size: 18px; color: var(--fg-muted); margin: 0; }
section.band--dark .section-head p { color: #C4CDDC; }

h3 { font-size: var(--type-h3); font-weight: 500; }

/* ── Grid ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px){ .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Cards ───────────────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--border); border-radius: 2px; padding: 28px;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--duration-base) var(--ease), transform var(--duration-base) var(--ease); }
.card--link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin: 0 0 10px; font-size: 20px; }
.card p { margin: 0 0 8px; color: var(--fg-muted); font-size: 15px; }
.card .num { font-size: 13px; font-weight: 500; color: var(--cg-blue); letter-spacing: 0.14em; text-transform: uppercase; }
.card__top { height: 4px; border-radius: 2px 2px 0 0; margin: -28px -28px 20px; }

.card-dark { background: #1B2547; color: #fff; border: 1px solid #2A3765; border-radius: 2px; padding: 28px; }
.card-dark h3 { color: #fff; margin: 0 0 10px; }
.card-dark p { color: #C4CDDC; }

/* pillar accent tops (secondary palette for infographic use only) */
.top-blue { background: var(--cg-blue); }
.top-teal { background: var(--cg-teal); }
.top-turq { background: var(--cg-turquoise); }
.top-purple { background: var(--cg-purple); }

/* ── Lists ───────────────────────────────────────────────────── */
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 15px; color: var(--fg-1); }
ul.clean li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  background: var(--cg-light-blue); border-radius: 999px; }
ul.clean.dark li { color: #D7DEEA; }

/* ── Chips / tags ────────────────────────────────────────────── */
.chip { display: inline-block; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 999px;
  background: #EAF3FB; color: var(--cg-blue); letter-spacing: 0.02em; }
.chip--mandatory { background: #EAF3FB; color: var(--cg-blue); }
.chip--recommended { background: #E7F7F0; color: #0A7D53; }
.chip--dark { background: rgba(29,184,242,0.16); color: var(--cg-light-blue); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--cg-blue); color: #fff;
  border: none; padding: 12px 22px; font-family: var(--font-body); font-size: 14px; font-weight: 500;
  cursor: pointer; border-radius: 4px; transition: background var(--duration-base) var(--ease); text-decoration: none; }
.btn:hover { background: #004A8F; text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--outline { background: transparent; color: var(--cg-blue); border: 1px solid var(--cg-blue); }
.btn--outline:hover { background: #EAF3FB; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Tables ──────────────────────────────────────────────────── */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.tbl th, table.tbl td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.tbl th { font-weight: 500; color: var(--fg-1); background: var(--bg-2); font-size: 13px; letter-spacing: 0.02em; }
table.tbl td { color: var(--fg-1); }
table.tbl tr:last-child td { border-bottom: none; }
.tbl-wrap { border: 1px solid var(--border); border-radius: 2px; overflow: auto; box-shadow: var(--shadow-sm); }

/* ── Gate flow ───────────────────────────────────────────────── */
.gate-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 8px; }
@media (max-width: 900px){ .gate-flow { grid-template-columns: repeat(2, 1fr); } }
.gate-node { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--cg-blue);
  border-radius: 2px; padding: 18px; box-shadow: var(--shadow-sm); }
.gate-node .g-id { font-size: 12px; font-weight: 500; color: var(--cg-blue); letter-spacing: 0.14em; text-transform: uppercase; }
.gate-node h4 { margin: 6px 0 6px; font-size: 16px; font-weight: 500; }
.gate-node p { margin: 0; font-size: 13px; color: var(--fg-muted); }

/* Detailed gate block */
.gate { border: 1px solid var(--border); border-radius: 2px; box-shadow: var(--shadow-sm); background: #fff; margin-bottom: 24px; overflow: hidden; }
.gate__head { display: flex; align-items: baseline; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--border); }
.gate__head .g-id { font-size: 13px; font-weight: 700; color: #fff; background: var(--cg-blue); padding: 4px 12px; border-radius: 999px; letter-spacing: 0.08em; }
.gate__head h3 { margin: 0; font-size: 22px; }
.gate__head .g-when { margin-left: auto; font-size: 13px; color: var(--fg-muted); }
.gate__body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 720px){ .gate__body { grid-template-columns: 1fr; } }
.gate__col { padding: 22px 28px; }
.gate__col:first-child { border-right: 1px solid var(--border); }
@media (max-width: 720px){ .gate__col:first-child { border-right: none; border-bottom: 1px solid var(--border); } }
.gate__col h5 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cg-blue); font-weight: 500; }

/* ── Numbered steps ──────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__n { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 999px; background: var(--cg-blue);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 16px; }
.step h4 { margin: 6px 0 6px; font-size: 18px; font-weight: 500; }
.step p { margin: 0; color: var(--fg-muted); font-size: 15px; }

/* ── Process flow (left → right) ─────────────────────────────── */
.flow { position: relative; margin: 8px 0 4px; }
.flow__track { display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; position: relative; }
/* the gradient spine behind the dots */
.flow__spine { position: absolute; left: 6%; right: 6%; top: 22px; height: 4px; border-radius: 999px;
  background: var(--progress-bar-h); transform-origin: left center; }
.flow.in-view .flow__spine { animation: draw 900ms var(--ease) both; }
.flow__end { position: absolute; right: 4.4%; top: 15px; width: 0; height: 0;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 12px solid var(--cg-turquoise); }
.flow-node { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 8px; text-decoration: none; }
.flow-node__dot { width: 46px; height: 46px; border-radius: 999px; background: #fff; border: 2px solid var(--cg-blue);
  color: var(--cg-blue); display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 18px;
  box-shadow: 0 0 0 6px var(--bg-1); transition: transform var(--duration-base) var(--ease), background var(--duration-base) var(--ease), color var(--duration-base) var(--ease); z-index: 2; }
.flow-node:hover .flow-node__dot { background: var(--cg-blue); color: #fff; transform: translateY(-3px); }
.flow-node__gid { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cg-blue); margin: 14px 0 4px; }
.flow-node__title { font-size: 15px; font-weight: 500; color: var(--fg-1); line-height: 1.25; }
.flow-node__sub { font-size: 12px; color: var(--fg-muted); margin-top: 4px; }
section.band--dark .flow__spine { box-shadow: none; }
section.band--dark .flow-node__dot { background: var(--cg-dark-blue); box-shadow: 0 0 0 6px var(--cg-dark-blue); border-color: var(--cg-light-blue); color: var(--cg-light-blue); }
section.band--dark .flow-node:hover .flow-node__dot { background: var(--cg-light-blue); color: var(--cg-dark-blue); }
section.band--dark .flow-node__gid { color: var(--cg-light-blue); }
section.band--dark .flow-node__title { color: #fff; }
section.band--dark .flow-node__sub { color: #C4CDDC; }
@media (max-width: 760px){
  .flow__track { grid-template-columns: 1fr; gap: 4px; }
  .flow__spine { left: 22px; right: auto; top: 6%; bottom: 6%; width: 4px; height: auto;
    background: var(--progress-bar-v); transform-origin: center top; }
  .flow.in-view .flow__spine { animation: drawv 900ms var(--ease) both; }
  .flow__end { display: none; }
  .flow-node { flex-direction: row; align-items: center; gap: 16px; text-align: left; padding: 10px 0; }
  .flow-node__dot { box-shadow: 0 0 0 6px var(--bg-1); flex: 0 0 auto; }
  section.band--dark .flow-node__dot { box-shadow: 0 0 0 6px var(--cg-dark-blue); }
  .flow-node__gid { margin: 0; }
  .flow-node__meta { display: flex; flex-direction: column; }
}
@keyframes drawv { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* wide (7-step) variant */
.flow--wide .flow__track { grid-template-columns: repeat(7, 1fr); }
.flow--wide .flow-node__dot { width: 40px; height: 40px; font-size: 16px; }
.flow--wide .flow__spine { top: 19px; }
.flow--wide .flow-node__title { font-size: 13.5px; }
.flow--wide .flow-node__sub { font-size: 11px; }
.flow--wide .flow__end { top: 12px; }
@media (max-width: 760px){ .flow--wide .flow__track { grid-template-columns: 1fr; } }

/* gate badge sitting on a flow step */
.flow-node__gate { position: absolute; top: -14px; right: 50%; transform: translateX(50%);
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--cg-blue); color: #fff; padding: 2px 8px; border-radius: 999px; white-space: nowrap; z-index: 3; }
section.band--dark .flow-node__gate { background: var(--cg-light-blue); color: var(--cg-dark-blue); }
@media (max-width: 760px){ .flow-node__gate { position: static; transform: none; display: inline-block; margin-left: 8px; } }

/* ── Stat / metric ───────────────────────────────────────────── */
.stat { }
.stat .fig { font-size: 44px; font-weight: 300; color: var(--cg-blue); line-height: 1; }
.stat .lbl { font-size: 14px; color: var(--fg-muted); margin-top: 8px; }
section.band--dark .stat .fig { color: var(--cg-light-blue); }
section.band--dark .stat .lbl { color: #C4CDDC; }

/* ── Callout ─────────────────────────────────────────────────── */
.callout { border-left: 3px solid var(--cg-light-blue); background: var(--bg-2); padding: 20px 24px; border-radius: 0 2px 2px 0; }
.callout strong { color: var(--fg-1); }
.callout--refusal { border-left-color: var(--cg-orange); }

/* ── CTA band ────────────────────────────────────────────────── */
.cta { background: var(--cg-dark-blue); color: #fff; border-radius: 2px; padding: 48px; display: flex;
  align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: 30px; font-weight: 300; margin: 0 0 8px; }
.cta p { margin: 0; color: #C4CDDC; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--cg-dark-blue); color: #fff; padding: 56px 0 40px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
@media (max-width: 720px){ .site-footer .cols { grid-template-columns: 1fr; gap: 24px; } }
.site-footer img { height: 26px; margin-bottom: 16px; }
.site-footer p { color: #B7C0D2; font-size: 14px; margin: 0 0 6px; max-width: 46ch; }
.site-footer h5 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cg-light-blue); margin: 0 0 14px; font-weight: 500; }
.site-footer a { color: #D7DEEA; font-size: 14px; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .meta { border-top: 1px solid #2A3765; padding-top: 20px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; font-size: 12px; color: #8C97AE; }

/* ── Breadcrumb / meta row ───────────────────────────────────── */
.meta-row { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #C4CDDC; margin-top: 22px; }
.meta-row span b { color: #fff; font-weight: 500; }

/* utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.lead-in { font-size: 18px; color: var(--fg-muted); max-width: 70ch; }
