/* ==========================================================================
   Solving Dispatch — Shared Styles
   Red & White brand palette.
   ========================================================================== */

:root {
  /* Neutrals — white, warm-neutral text */
  --ink: #1a1414;         /* near-black — headings/text */
  --ink-soft: #4a3a3a;    /* warm dark gray — body copy */
  --muted: #8a7676;       /* muted warm gray — captions/meta */
  --bg: #fff8f8;          /* barely-tinted white — page background */
  --panel: #ffffff;       /* cards, header, form surfaces */
  --line: #f3dede;        /* hairline borders */

  /* Brand — Red & White */
  --axis: #7a1225;        /* deep wine red — headers, primary buttons, hero/footer bg */
  --axis-2: #9c1c33;      /* lighter red — hover state / gradients */
  --accent: #e0202f;      /* vivid crimson — CTAs, growth highlights */
  --accent-2: #ff4d5e;    /* coral-red — links, secondary accent */
  --amber: #9f1239;       /* dark rose — "coming soon"/tag badges only */
  --deep: #1a0508;        /* near-black red — gradient base / footer-dark accents */

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(26, 20, 20, 0.08);
  --max-width: 1160px;

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
section.tight { padding: 48px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #b8121f; box-shadow: 0 8px 20px rgba(224,32,47,.3); }

.btn-secondary {
  background: transparent;
  border-color: var(--panel);
  color: var(--panel);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--axis);
  color: var(--axis);
}
.btn-outline-dark:hover { background: var(--axis); color: #fff; }

.btn-book {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-book:hover { background: #fff; color: var(--accent); box-shadow: 0 8px 20px rgba(224,32,47,.3); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--axis);
  display: inline-block;
}
.footer-logo-badge {
  display: inline-block;
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.footer-logo-badge img {
  height: 54px;
  width: auto;
  display: block;
}
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.social-row a:hover {
  background: var(--accent);
  color: #fff;
}
.social-row .icon-svg {
  width: 18px;
  height: 18px;
}
.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  position: relative;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
  padding: 6px 2px;
  cursor: pointer;
  transition: color .15s ease;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right .18s ease;
}
nav.main-nav a:hover {
  color: var(--axis);
  text-decoration: none;
}
nav.main-nav a:hover::after {
  right: 0;
}
nav.main-nav a.active {
  color: var(--axis);
  text-decoration: none;
}
nav.main-nav a.active::after {
  right: 0;
  background: var(--axis);
}
nav.main-nav a:focus-visible,
.nav-toggle:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle .icon-svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 16px;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary.desktop-only { display: none; }
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(224,32,47,.6); }
  70% { box-shadow: 0 0 0 8px rgba(224,32,47,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,32,47,0); }
}

/* ---------- Hero v2 ---------- */
.hero-v2 {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
  padding: 80px 0 96px;
}
.hero-v2-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-v2-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(1400px 600px at 10% -20%, rgba(156,28,51,.9) 0%, rgba(122,18,37,.87) 40%, rgba(26,5,8,.9) 100%);
  z-index: 1;
}
.hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 15% 20%, black, transparent 70%);
  pointer-events: none;
  z-index: 2;
}
.hero-v2 .container { position: relative; z-index: 3; max-width: var(--max-width); }
.hero-single { max-width: 720px; text-align: center; margin: 0 auto; }
.hero-single .cta-row { justify-content: center; }

.hero-v2 h1 { color: #fff; }
.hero-v2 h1 .accent-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-v2 p.lead {
  color: rgba(255,255,255,.78);
  font-size: 1.15rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-v2 .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.hero-v2 .micro {
  margin-top: 20px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* ---------- Dashboard mockup (software.html product teaser only — no fake home-page previews) ---------- */
.dash-frame {
  background: linear-gradient(135deg, var(--axis) 0%, var(--axis-2) 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 640px;
  margin: 40px auto 0;
  box-shadow: var(--shadow);
}
.dash-panel {
  position: relative;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  padding: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.dash-panel .dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.dash-panel .dash-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-panel .dash-title .dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
.dash-panel .dash-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(224,32,47,.4);
  padding: 3px 8px;
  border-radius: 999px;
}
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  margin-bottom: 18px;
}
.dash-bars span {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  opacity: .85;
}
.dash-rows { display: flex; flex-direction: column; gap: 10px; }
.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  padding: 9px 12px;
  border-radius: 8px;
}
.dash-row .status {
  font-weight: 700;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 999px;
}
.dash-row .status.on-time { color: #fff; background: rgba(255,77,94,.35); }
.dash-row .status.transit { color: #fff; background: rgba(224,32,47,.35); }
.dash-row .status.pending { color: rgba(255,255,255,.85); background: rgba(255,255,255,.15); }

.module-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.module-list li {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  text-align: center;
}
@media (max-width: 700px) {
  .module-list { grid-template-columns: repeat(2, 1fr); }
}
.module-peek-note {
  margin-top: 18px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}

.page-hero {
  background: var(--axis);
  color: #fff;
  padding: 72px 0;
}
.page-hero .eyebrow { color: var(--amber); }
.page-hero p.lead { color: rgba(255,255,255,.8); max-width: 680px; }
.page-hero.has-photo {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
}
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(122,18,37,.9) 0%, rgba(26,5,8,.72) 55%, rgba(26,5,8,.4) 100%);
  z-index: 1;
}
.page-hero.has-photo .container { position: relative; z-index: 2; }

/* On narrow viewports a wide multi-person photo can lose people off the left/right
   edges under object-fit:cover. Switch to contain (full photo, letterboxed) instead. */
@media (max-width: 700px) {
  .page-hero.has-photo .page-hero-img {
    object-fit: contain;
    background: var(--deep);
  }
}

/* ---------- Grid / Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card ul { padding-left: 1.1em; margin: 1em 0; color: var(--ink-soft); }
.card ul li { margin-bottom: .5em; }

.section-header { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-header.left { text-align: left; margin: 0 0 48px; }

.center { text-align: center; }

/* ---------- Icon system (replaces emoji glyphs site-wide) ---------- */
.icon-svg {
  width: 1.4em;
  height: 1.4em;
  display: inline-block;
  vertical-align: -0.25em;
  flex-shrink: 0;
}

/* ---------- Feature list ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature .icon-badge { margin-bottom: 14px; width: 44px; height: 44px; border-radius: 12px; }
.feature .icon-badge .icon-svg { width: 22px; height: 22px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--axis);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin: 0 24px;
  max-width: calc(var(--max-width) - 48px);
}
.cta-band h2 { color: #fff; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--bg);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
}
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.checkbox-row input { width: auto; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; text-align: center; }
.form-success {
  display: none;
  background: rgba(224,32,47,.08);
  border: 1px solid var(--accent);
  color: var(--axis);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
}
.form-success.show { display: block; }

/* ---------- Pillars (Consulting page) ---------- */
.pillar {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.pillar + .pillar { margin-top: 32px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.footer-grid a {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  margin-bottom: 10px;
}
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Badges / misc ---------- */
.badge-soon {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Host cities strip (Training page) ---------- */
.city-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.city-pill {
  background: rgba(224,32,47,.08);
  border: 1px solid var(--line);
  color: var(--axis);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 18px;
  border-radius: 999px;
}

/* ---------- Stats bar (bento layout: one featured stat + 3 supporting stats) ---------- */
.stats-bar {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-bento {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 0;
}
.stat-feature {
  background: linear-gradient(135deg, var(--axis) 0%, var(--axis-2) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
}
.stat-feature-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-feature-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255,255,255,.85);
  margin-top: 10px;
}
.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-mini {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-mini-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--axis);
  line-height: 1;
}
.stat-mini-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: 8px;
}
@media (max-width: 700px) {
  .stats-bento { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .stats-mini-grid { grid-template-columns: 1fr; }
}

/* ---------- Ecosystem pillar cards v2 ---------- */
.pillar-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(224,32,47,.18);
}
.icon-badge {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 18px;
  background: rgba(122,18,37,.08);
  color: var(--axis);
}
.icon-badge .icon-svg { width: 26px; height: 26px; }
.icon-badge.accent { background: rgba(224,32,47,.1); color: var(--accent); }
.icon-badge.blue { background: rgba(255,77,94,.12); color: var(--accent-2); }
.pillar-card .tag-pill {
  position: absolute;
  top: 28px; right: 28px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(159,18,57,.12);
  color: var(--amber);
}
.pillar-card ul.mini-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.pillar-card ul.mini-list li {
  font-size: .88rem;
  color: var(--ink-soft);
  padding: 5px 0 5px 20px;
  position: relative;
}
.pillar-card ul.mini-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.pillar-card .card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: var(--axis);
}
.pillar-card .card-footer:hover { color: var(--accent); }

/* ---------- Journey circle ----------
   Fixed-pixel geometry (only used above the 860px breakpoint, where the
   circle always renders at its full 900x900 size — see media query below).
   Ring: 260px circle centered at (450,450). Every node sits OUTSIDE that
   ring with a clear gap, and its text block flows further outward (away
   from the ring), never back across it. The container is sized with real
   headroom above/below/beside the ring so a full text block (icon + h3 +
   up to 5 lines of body copy + badge, ~260px tall) never runs past the
   container edge into the section header above it. ---------- */
.journey-circle {
  position: relative;
  width: 900px;
  max-width: 100%;
  height: 900px;
  margin: 40px auto 40px;
}
.journey-ring {
  position: absolute;
  top: 450px; left: 450px;
  width: 260px; height: 260px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed rgba(224,32,47,.45);
  animation: journey-spin 50s linear infinite;
}
/* Orbit: a small "planet" that continuously travels the ring's path, plus the
   ring itself slowly turning — the solar-system motion cue. Only decorative
   elements move; the four labeled nodes stay put and stay readable. */
.journey-orbit {
  position: absolute;
  top: 450px; left: 450px;
  width: 260px; height: 260px;
  transform: translate(-50%, -50%);
  animation: journey-spin 9s linear infinite;
  z-index: 1;
}
.journey-planet {
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 3px rgba(224,32,47,.55);
}
.journey-center {
  position: absolute;
  top: 450px; left: 450px;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  pointer-events: none;
}
.journey-center span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--axis);
}
@keyframes journey-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .journey-ring, .journey-orbit { animation: none; }
}
.journey-step { position: absolute; }
.journey-step .step-text { width: 210px; }

.journey-node-top,
.journey-node-bottom {
  left: 450px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  text-align: center;
}
.journey-node-top .step-text,
.journey-node-bottom .step-text { width: 230px; }
.journey-node-top {
  bottom: 600px; /* container height (900) minus icon's bottom edge (300) */
  flex-direction: column-reverse; /* text renders above the icon, outside the ring */
}
.journey-node-bottom {
  top: 600px; /* mirrors journey-node-top */
  flex-direction: column;
}

.journey-node-left,
.journey-node-right {
  top: 450px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}
.journey-node-left {
  right: 600px; /* container width (900) minus icon's right edge (300) */
  flex-direction: row-reverse; /* text renders left of the icon, outside the ring */
  text-align: right;
}
.journey-node-right {
  left: 600px; /* mirrors journey-node-left */
  flex-direction: row;
  text-align: left;
}

.step-node {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 2px solid var(--accent);
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.journey-node-top .step-node,
.journey-node-bottom .step-node { margin: 0 auto; }
.step-node .icon-svg { width: 26px; height: 26px; }
.journey-node-top .step-text { margin-bottom: 16px; }
.journey-node-bottom .step-text { margin-top: 16px; }
.step-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .journey-circle {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 40px auto 0;
  }
  .journey-ring,
  .journey-orbit,
  .journey-center { display: none; }
  .journey-step {
    position: static;
    text-align: center !important;
    flex-direction: column !important;
    gap: 16px !important;
    transform: none !important;
  }
  .journey-step .step-text { width: auto !important; margin: 0 !important; }
  .journey-node-top .step-node,
  .journey-node-bottom .step-node,
  .journey-node-left .step-node,
  .journey-node-right .step-node { margin: 0 auto !important; }
}

/* ---------- About / illustration section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-illustration {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--axis) 0%, var(--axis-2) 60%, var(--deep) 100%);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.about-illustration svg { width: 84%; height: 84%; }
.about-illustration img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-list li { display: flex; align-items: flex-start; gap: 14px; }
.about-list .icon-badge { margin-bottom: 0; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; }
.about-list .icon-badge .icon-svg { width: 20px; height: 20px; }
.about-list strong { display: block; color: var(--ink); margin-bottom: 2px; }
.about-list span.desc { color: var(--muted); font-size: .9rem; }

/* ---------- Curriculum sub-groups (Compliance page) ---------- */
.curriculum-group { margin-top: 20px; }
.curriculum-group h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--axis);
  margin-bottom: 8px;
}
.curriculum-group ul { margin-top: 0; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 860px) {
  .cert-grid { grid-template-columns: 1fr; }
}
.cert-box {
  margin-top: 0;
  background: var(--accent);
  border-radius: 14px;
  padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cert-box:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px rgba(224,32,47,.35);
}
.cert-box h4 { color: #fff; }
.cert-box ul { color: #fff; }
.cert-box ul li { color: #fff; }
.cert-box p { color: #fff; margin: 0; font-size: .95rem; }

/* ---------- Program layout (course details left, booking right) ---------- */
.program-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.program-booking {
  position: sticky;
  top: 88px;
}
/* The right column is narrower than the page, so a booking-block's price
   cards always stack here instead of trying to sit side by side. */
.program-booking .booking-block { margin-top: 0; padding-top: 0; border-top: none; }
.program-booking .pricing-row { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .program-layout { grid-template-columns: 1fr; }
  .program-booking { position: static; }
}

/* ---------- Booking / pricing cards ---------- */
.booking-block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.booking-block h3 { margin-bottom: 4px; }
.booking-block > p { color: var(--ink-soft); margin-bottom: 20px; }
.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pricing-row.solo { grid-template-columns: minmax(0, 340px); }
@media (max-width: 700px) {
  .pricing-row { grid-template-columns: 1fr; }
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.price-card .price-format {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  margin-bottom: 10px;
}
.price-card .price-amount {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 14px;
}
.price-card .price-amount span {
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex-grow: 1;
}
.price-card ul li {
  font-size: .85rem;
  color: var(--ink-soft);
  padding: 5px 0 5px 20px;
  position: relative;
}
.price-card ul li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.price-note {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ---------- Cascading date picker (training.html booking) ---------- */
/* Three .field-select-styled <select>s (Year/Month/Date), built by
   js/booking.js, sitting side by side instead of each stacking full-width. */
.date-picker {
  display: flex;
  gap: 8px;
}
.date-picker select {
  width: auto;
  flex: 1;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
}
.date-picker select option:disabled {
  color: var(--muted);
}

/* ---------- Speedy — site assistant widget ---------- */
.speedy-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  font-family: var(--font-body);
}
.speedy-toggle {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 8px 16px rgba(26,20,20,.35));
  transition: transform .18s ease, filter .18s ease;
}
.speedy-toggle:hover { transform: translateY(-4px) scale(1.06); filter: drop-shadow(0 12px 20px rgba(26,20,20,.4)); }
.speedy-toggle svg { width: 68px; height: 68px; }
.speedy-toggle .speedy-dot {
  position: absolute;
  top: 2px; right: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 2px solid #fff;
  animation: pulse-dot 2s infinite;
}
.speedy-widget.open .speedy-toggle .speedy-dot { display: none; }

@keyframes speedy-attention {
  0% { transform: rotate(0deg) scale(1); }
  15% { transform: rotate(-14deg) scale(1.05); }
  30% { transform: rotate(14deg) scale(1.05); }
  45% { transform: rotate(-10deg) scale(1.05); }
  60% { transform: rotate(360deg) scale(1.1); }
  85% { transform: rotate(360deg) scale(1); }
  100% { transform: rotate(360deg) scale(1); }
}
.speedy-toggle.attention { animation: speedy-attention 1.6s ease-in-out; }

.speedy-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-bottom-left-radius: 2px;
  padding: 11px 14px;
}
.speedy-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: speedy-typing-bounce 1.2s infinite ease-in-out;
}
.speedy-typing span:nth-child(2) { animation-delay: .15s; }
.speedy-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes speedy-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.speedy-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 48px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(26,20,20,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.speedy-widget.open .speedy-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.speedy-panel-header {
  background: transparent;
  color: var(--ink);
  padding: 16px 16px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.speedy-panel-header svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 10px rgba(26,20,20,.25));
}
.speedy-panel-header strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--ink); }
.speedy-panel-header span { display: block; font-size: .72rem; color: var(--muted); }
.speedy-panel-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1;
}
.speedy-panel-close:hover { background: rgba(122,18,37,.1); color: var(--axis); }

.speedy-messages {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg);
}
.speedy-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: .85rem;
  line-height: 1.45;
}
.speedy-msg.bot {
  align-self: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-bottom-left-radius: 2px;
}
.speedy-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.speedy-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 12px;
  background: var(--bg);
}
.speedy-suggestions button {
  font-size: .72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--axis);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.speedy-suggestions button:hover { background: var(--axis); color: #fff; border-color: var(--axis); }

.speedy-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.speedy-input-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .85rem;
  background: var(--bg);
}
.speedy-input-row input:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.speedy-input-row button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease;
}
.speedy-input-row button:hover { background: #b8121f; }

@media (max-width: 480px) {
  .speedy-widget { bottom: 16px; right: 16px; }
  .speedy-panel { width: calc(100vw - 32px); }
}
.price-card.is-soon { border-color: var(--amber); }

/* ---------- Booking confirm modal (training.html) ---------- */
.booking-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,20,20,.55);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.booking-modal-overlay.open {
  display: flex;
}
.booking-modal {
  background: var(--panel);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26,20,20,.35);
}
.booking-modal-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 22px 20px;
  text-align: center;
}
.booking-modal-header img {
  height: 52px;
}
.booking-modal-body {
  padding: 24px 24px 8px;
}
.booking-modal-body h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.booking-modal-course {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 4px;
}
.booking-modal-date {
  color: var(--accent);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 4px;
}
.booking-modal-times {
  color: var(--ink-soft);
  font-size: .85rem;
  margin-bottom: 14px;
}
.booking-modal-note {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.booking-modal-actions {
  display: flex;
  gap: 10px;
  padding: 20px 24px 24px;
}
.booking-modal-actions .btn {
  flex: 1;
  justify-content: center;
}

/* ---------- Form response modal (site-wide, all forms) ---------- */
.form-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,20,20,.55);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.form-modal-overlay.open { display: flex; }
.form-modal {
  background: var(--panel);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26,20,20,.35);
  text-align: center;
}
.form-modal-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 22px 20px;
}
.form-modal-header img { height: 52px; }
.form-modal-body { padding: 24px; }
.form-modal-message {
  font-size: .98rem;
  color: var(--ink);
  line-height: 1.6;
}
.form-modal-actions { padding: 0 24px 24px; }
.form-modal-actions .btn { width: 100%; justify-content: center; }
