/* ==========================================================================
   Jagdeep Ventures, Design System
   Bright, modern, professional. Inspired by bold-color product design.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Core neutrals */
  --ink: #12142b;            /* headings, near-black indigo */
  --text: #40445c;           /* body text */
  --muted: #6b7086;          /* secondary text */
  --bg: #ffffff;
  --bg-soft: #f7f6ff;        /* lavender-tinted section */
  --bg-warm: #fff8f0;        /* warm-tinted section */
  --line: #e7e6f2;

  /* Brand */
  --primary: #4f46e5;        /* indigo, buttons, links */
  --primary-dark: #4338ca;
  --primary-soft: #eeecfd;

  /* Accent family (used for cards, chips, illustration) */
  --violet: #7c3aed;
  --violet-dark: #6d28d9;
  --violet-soft: #f3eeff;

  --orange: #f97316;
  --orange-dark: #c2410c;
  --orange-soft: #fff0e4;

  --green: #10b981;
  --green-dark: #047857;
  --green-soft: #e6f7f1;

  --blue: #0ea5e9;
  --blue-dark: #0369a1;
  --blue-soft: #e6f5fe;

  --coral: #e5484d;
  --coral-dark: #c63a3f;
  --coral-soft: #ffecec;

  --gold: #f5b02c;

  /* Gradient for highlighted display words (dark stops = readable) */
  --grad-highlight: linear-gradient(92deg, #4338ca 0%, #7e22ce 55%, #c63a3f 100%);

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shape + depth */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 2px 6px rgba(18, 20, 43, 0.05), 0 18px 44px -18px rgba(18, 20, 43, 0.14);
  --shadow-pop: 0 4px 12px rgba(79, 70, 229, 0.18), 0 20px 44px -16px rgba(79, 70, 229, 0.35);

  /* Layout */
  --container: 1120px;
  --nav-height: 72px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: #cfc9ff; color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Highlighted words in display copy ---- */
.highlight {
  background: var(--grad-highlight);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary-dark); /* fallback */
  font-weight: 700;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 1em 1.9em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { flex: none; transition: transform 0.18s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(18, 20, 43, 0.06);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-ghost-invert {
  background: #ffffff;
  color: var(--primary-dark);
}
.btn-ghost-invert:hover {
  background: #f2f0ff;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-lg { font-size: 1.0625rem; padding: 1.1em 2.2em; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--text);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-links a:not(.btn):hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.nav-cta { margin-left: 10px; }
.nav-links .btn { font-size: 0.92rem; padding: 0.78em 1.5em; box-shadow: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--ink);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(52rem 30rem at 85% -12%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(44rem 28rem at -10% 22%, rgba(14, 165, 233, 0.10), transparent 60%),
    radial-gradient(36rem 24rem at 55% 118%, rgba(249, 115, 22, 0.10), transparent 60%),
    var(--bg);
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1.15em;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  box-shadow: 0 1px 2px rgba(18, 20, 43, 0.05);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 700;
  margin: 0 auto 1.6rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2.6rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Floating decorative shapes (pure CSS/SVG, gentle motion) */
.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.shape {
  position: absolute;
  animation: floaty 9s ease-in-out infinite;
}
.shape-1 { top: 14%; left: 6%; animation-delay: 0s; }
.shape-2 { top: 62%; left: 11%; animation-delay: -3s; }
.shape-3 { top: 18%; right: 7%; animation-delay: -1.5s; }
.shape-4 { top: 66%; right: 10%; animation-delay: -5s; }
.shape-5 { top: 40%; right: 3%; animation-delay: -7s; }
.shape-6 { top: 44%; left: 2%; animation-delay: -4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}

/* Decision-tree illustration under hero copy */
.hero-art {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}
.hero-art svg { width: 100%; height: auto; }

/* Gentle "energy flowing along the optimal path" animation */
.flow-path {
  stroke-dasharray: 8 10;
  animation: flow 1.6s linear infinite;
}
@keyframes flow {
  to { stroke-dashoffset: -18; }
}

/* ---- Section scaffolding ---- */
.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-warm { background: var(--bg-warm); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 0.55em 1.2em;
  margin-bottom: 1.6rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.section-intro {
  max-width: 660px;
  font-size: 1.0938rem;
}

/* ---- Service cards ---- */
.service-grid {
  display: grid;
  gap: 28px;
  margin-top: 3.5rem;
}

.service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3.5vw, 3rem);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(18, 20, 43, 0.06), 0 28px 60px -20px rgba(18, 20, 43, 0.2);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent, var(--primary));
}

/* Per-card accent variables */
.service-card.accent-violet { --accent: var(--violet); --accent-dark: var(--violet-dark); --accent-soft: var(--violet-soft); }
.service-card.accent-orange { --accent: var(--orange); --accent-dark: var(--orange-dark); --accent-soft: var(--orange-soft); }
.service-card.accent-green  { --accent: var(--green);  --accent-dark: var(--green-dark);  --accent-soft: var(--green-soft); }
.service-card.accent-blue   { --accent: var(--blue);   --accent-dark: var(--blue-dark);   --accent-soft: var(--blue-soft); }

.service-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0.9rem;
}

.service-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-soft, var(--primary-soft));
  color: var(--accent-dark, var(--primary-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.service-name {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
}

.service-price {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-dark, var(--primary-dark));
  background: var(--accent-soft, var(--primary-soft));
  border-radius: 999px;
  padding: 0.6em 1.3em;
  white-space: nowrap;
}

.service-tagline {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

.service-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem 3rem;
  align-items: start;
  margin-top: 0.4rem;
}

.service-description { color: var(--text); }

.service-note {
  margin-top: 1.3rem;
  padding: 1rem 1.25rem;
  background: var(--accent-soft, var(--primary-soft));
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.6;
}

.service-list-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.service-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.service-items li {
  position: relative;
  padding-left: 1.9em;
  font-size: 0.99rem;
  line-height: 1.55;
  color: var(--text);
}

.service-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background-color: var(--accent-soft, var(--primary-soft));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2312142b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 62%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---- Custom engagements banner ---- */
.custom-block {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 4.5vw, 3.4rem);
  background:
    radial-gradient(40rem 22rem at 110% -30%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(30rem 20rem at -12% 130%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(100deg, #4338ca 0%, #6d28d9 55%, #a03291 100%);
  color: #efeeff;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 24px 60px -20px rgba(67, 56, 202, 0.5);
}

.custom-block h3 {
  color: #ffffff;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.custom-block p {
  color: #e4e1ff;
  max-width: 640px;
  font-size: 1rem;
}

/* ---- Approach ---- */
.approach { text-align: center; }

.approach-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

.approach-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 2.6rem auto 0;
}

.approach-step {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75em 1.4em;
  border-radius: 999px;
  border: 2px solid;
}
.approach-step.step-1 { color: var(--blue-dark); border-color: var(--blue); background: var(--blue-soft); }
.approach-step.step-2 { color: var(--violet-dark); border-color: var(--violet); background: var(--violet-soft); }
.approach-step.step-3 { color: var(--green-dark); border-color: var(--green); background: var(--green-soft); }

.approach-arrow { color: var(--muted); flex: none; }

.approach-kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.8rem 0 2rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #b9bdd4;
  padding: 3.5rem 0 2.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-brand:hover { color: #ffffff; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: #b9bdd4;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.footer-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.88rem;
  color: #8f94ae;
}

/* ---- Legal / document pages ---- */
.doc-hero {
  background:
    radial-gradient(40rem 22rem at 90% -30%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(34rem 20rem at 0% 120%, rgba(14, 165, 233, 0.08), transparent 60%),
    var(--bg-soft);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  text-align: center;
}
.doc-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.doc-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-body {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 24px;
}

.doc-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg-soft);
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.4rem 1.7rem;
  margin-bottom: 2.6rem;
}

.doc-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.6rem 0 0.9rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--accent-h2, var(--primary));
}
.doc-body h2:nth-of-type(4n + 1) { --accent-h2: var(--violet); }
.doc-body h2:nth-of-type(4n + 2) { --accent-h2: var(--orange); }
.doc-body h2:nth-of-type(4n + 3) { --accent-h2: var(--green); }
.doc-body h2:nth-of-type(4n + 4) { --accent-h2: var(--blue); }

.doc-body ul { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.doc-body li { margin-bottom: 0.45rem; }

/* ---- 404 ---- */
.error-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 24px;
  background:
    radial-gradient(44rem 26rem at 80% -20%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(38rem 24rem at 8% 110%, rgba(249, 115, 22, 0.10), transparent 60%),
    var(--bg);
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-highlight);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.error-page h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 1rem; }
.error-page p { max-width: 480px; margin: 0 auto 2.2rem; color: var(--muted); }

/* ---- Scroll reveal (progressive enhancement) ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: none; }
/* Show everything if JS never runs */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

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

/* Tablet */
@media (max-width: 900px) {
  .service-body { grid-template-columns: 1fr; gap: 0.6rem; }
  .custom-block { grid-template-columns: 1fr; }
  .shape-5, .shape-6 { display: none; }
}

/* Mobile nav + layout */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(18, 20, 43, 0.25);
    padding: 12px 20px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 14px; font-size: 1.02rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-links .btn { width: 100%; }

  .hero-actions .btn { width: 100%; max-width: 340px; }
  .service-head { flex-direction: column; align-items: flex-start; }
  .footer-top, .footer-bottom { flex-direction: column; text-align: center; }
  .shape-1, .shape-2, .shape-3, .shape-4 { opacity: 0.5; transform: scale(0.8); }
  .approach-arrow { transform: rotate(90deg); width: 100%; display: flex; justify-content: center; }
}

/* Small phones */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.5rem); }
}

@media (max-width: 420px) {
  body { font-size: 1rem; }
  .container { padding: 0 18px; }
  .service-card { border-radius: var(--radius-md); }
}

/* ==========================================================================
   jv-detailed additions, subpages, offerings, editorial
   ========================================================================== */

.nav-links a.nav-active { background: var(--primary-soft); color: var(--primary-dark); }

/* Breadcrumbs */
.breadcrumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 12px 0; font-size: 0.88rem; }
.breadcrumbs li { display: flex; align-items: center; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin: 0 8px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary-dark); }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 500; }

/* Page hero (left-aligned) */
.page-hero { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); background:
  radial-gradient(44rem 24rem at 92% -30%, rgba(124, 58, 237, 0.09), transparent 60%),
  radial-gradient(36rem 22rem at -6% 120%, rgba(14, 165, 233, 0.07), transparent 60%), var(--bg); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; max-width: 800px; margin-bottom: 1.1rem; }
.page-hero .lede { font-size: 1.15rem; color: var(--text); max-width: 720px; line-height: 1.7; }
.page-hero .lede strong { color: var(--ink); }

/* Category page offering list */
.offering-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 2.4rem; }
.offering-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.5rem 1.6rem; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; color: var(--text); }
.offering-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--accent, var(--primary)); color: var(--text); }
.offering-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.45rem; display: flex; align-items: center; gap: 10px; }
.offering-card h3::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent, var(--primary)); flex: none; }
.offering-card p { font-size: 0.96rem; margin: 0; }
.offering-card .more { display: inline-block; margin-top: 0.7rem; font-weight: 600; font-size: 0.92rem; color: var(--accent-dark, var(--primary-dark)); }

/* Offering page layout */
.offering-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 3rem; align-items: start; }
.offering-aside { position: sticky; top: calc(var(--nav-height) + 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.6rem; box-shadow: var(--shadow-card); }
.offering-aside::before { content: ''; display: block; height: 5px; border-radius: 999px; background: var(--accent, var(--primary)); margin-bottom: 1.2rem; }
.spec-row { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.spec-row:last-of-type { border-bottom: 0; }
.spec-label { display: block; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.spec-value { font-size: 0.96rem; color: var(--ink); font-weight: 500; line-height: 1.5; }
.offering-aside .btn { width: 100%; margin-top: 1.1rem; }

/* Process steps */
.process { counter-reset: step; margin: 1.4rem 0 0.6rem; }
.process-step { position: relative; padding: 0 0 1.7rem 3.4rem; }
.process-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.1rem; width: 2.3rem; height: 2.3rem; border-radius: 10px; background: var(--accent-soft, var(--primary-soft)); color: var(--accent-dark, var(--primary-dark)); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.process-step:not(:last-child)::after { content: ''; position: absolute; left: 1.12rem; top: 2.7rem; bottom: 0.3rem; width: 2px; background: var(--line); }
.process-step h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 0.4rem; }
.process-step p { font-size: 1rem; margin: 0; }

/* Method chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 0.4rem; padding: 0; list-style: none; }
.chips li { font-family: var(--font-display); font-size: 0.83rem; font-weight: 600; color: var(--accent-dark, var(--primary-dark)); background: var(--accent-soft, var(--primary-soft)); border-radius: 999px; padding: 0.45em 1em; }

.h2-section { font-size: 1.5rem; font-weight: 700; margin: 2.6rem 0 0.9rem; }
.check-list { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.check-list li { position: relative; padding-left: 1.9em; font-size: 1rem; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.22em; width: 1.15em; height: 1.15em; border-radius: 50%; background-color: var(--accent-soft, var(--primary-soft)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2312142b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E"); background-size: 62%; background-position: center; background-repeat: no-repeat; }

/* Accent scoping for offering/category pages */
.accent-violet-page { --accent: var(--violet); --accent-dark: var(--violet-dark); --accent-soft: var(--violet-soft); }
.accent-orange-page { --accent: var(--orange); --accent-dark: var(--orange-dark); --accent-soft: var(--orange-soft); }
.accent-green-page  { --accent: var(--green);  --accent-dark: var(--green-dark);  --accent-soft: var(--green-soft); }
.accent-blue-page   { --accent: var(--blue);   --accent-dark: var(--blue-dark);   --accent-soft: var(--blue-soft); }

/* Boundary / disclosure block */
.boundary { background: var(--bg-warm); border: 1.5px solid #f3ddc0; border-radius: var(--radius-md); padding: 1.5rem 1.7rem; margin: 2.2rem 0; }
.boundary h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 8px; }
.boundary p, .boundary li { font-size: 0.94rem; color: var(--text); }
.boundary ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.boundary li { margin-bottom: 0.35rem; }

/* Audience routes */
.routes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 2.4rem; }
.route-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.9rem 1.8rem; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.route-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.route-card p { font-size: 0.97rem; flex: 1; }
.route-card .route-links { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.route-card .route-links a { font-weight: 600; font-size: 0.95rem; }

/* Service cards v2 (outcome-led) */
.svc-spec { display: grid; gap: 0.55rem; margin: 1.2rem 0; padding: 1.1rem 1.25rem; background: var(--bg-soft); border-radius: var(--radius-md); font-size: 0.94rem; }
.svc-spec div { display: grid; grid-template-columns: 108px 1fr; gap: 10px; }
.svc-spec dt { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.svc-spec dd { margin: 0; color: var(--ink); font-weight: 500; }
.offering-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.9rem 0 0; padding: 0; list-style: none; }
.offering-links a { display: inline-block; font-family: var(--font-display); font-size: 0.86rem; font-weight: 600; color: var(--accent-dark, var(--primary-dark)); background: var(--accent-soft, var(--primary-soft)); border-radius: 999px; padding: 0.5em 1.05em; transition: transform 0.15s ease; }
.offering-links a:hover { transform: translateY(-2px); }
.svc-cta { margin-top: 1.4rem; font-weight: 700; }

/* Case studies */
.cs-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-card); margin-top: 1.8rem; }
.cs-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.cs-block h3 { font-size: 1.02rem; font-weight: 700; margin: 1.3rem 0 0.4rem; color: var(--accent-dark, var(--primary-dark)); }
.cs-outcome { background: var(--green-soft); border-radius: var(--radius-md); padding: 1rem 1.2rem; margin-top: 1.2rem; font-weight: 500; color: var(--ink); }

/* Insights */
.insight-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.9rem; box-shadow: var(--shadow-card); transition: transform 0.18s ease, box-shadow 0.18s ease; color: var(--text); }
.insight-card:hover { transform: translateY(-3px); color: var(--text); }
.insight-kind { display: inline-block; font-family: var(--font-display); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark, var(--primary-dark)); background: var(--accent-soft, var(--primary-soft)); border-radius: 999px; padding: 0.45em 1em; margin-bottom: 0.9rem; }
.insight-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 2.2rem; }

/* Long-form prose (insights, about) */
.prose { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 3.5rem) 24px; }
.prose p { font-size: 1.06rem; line-height: 1.85; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2.4rem 0 0.9rem; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1.8rem 0 0.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }
.prose .lede-first { font-size: 1.18rem; color: var(--ink); }

/* Footer grid */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.4rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-tag { color: #b9bdd4; font-size: 0.95rem; margin: 1rem 0 1.2rem; max-width: 300px; }
.footer-head { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8f94ae; margin-bottom: 0.9rem; }
.footer-links-col { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-links-col a { color: #b9bdd4; font-size: 0.95rem; }
.footer-links-col a:hover { color: #ffffff; }
.footer-col-brand .btn { font-size: 0.9rem; padding: 0.8em 1.5em; box-shadow: none; }

/* Responsive for new components */
@media (max-width: 900px) {
  .offering-grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .offering-grid, .routes-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .offering-layout { grid-template-columns: 1fr; }
  .offering-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .svc-spec div { grid-template-columns: 1fr; gap: 2px; }
}
