/* ==========================================================================
   KADER RESEARCH & SYSTEMS — design system
   Brand olive #667D3F sampled from the logo artwork.
   ========================================================================== */

:root {
  /* Brand */
  --olive:        #667D3F;
  --olive-deep:   #4C5F2E;
  --olive-dark:   #354323;
  --olive-ink:    #232C17;
  --olive-tint:   #F1F4EA;
  --olive-tint-2: #E2E8D4;
  --signal:       #00B050;   /* phase arrows in the deck */

  /* Neutrals */
  --ink:      #1A1D18;
  --body:     #40453C;
  --muted:    #6E747A;
  --line:     #DFE2D8;
  --line-soft:#EDEFE8;
  --paper:    #FFFFFF;
  --paper-2:  #FAFBF7;

  /* Status (used by the process map) */
  --ok:    #667D3F;
  --warn:  #C08A2E;
  --gap:   #B4472F;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Barlow Condensed", "Oswald", "Arial Narrow", var(--sans);

  /* Space + shape */
  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(35,44,23,.06), 0 2px 6px rgba(35,44,23,.05);
  --shadow:    0 2px 4px rgba(35,44,23,.05), 0 10px 28px rgba(35,44,23,.09);
  --shadow-lg: 0 4px 8px rgba(35,44,23,.06), 0 24px 60px rgba(35,44,23,.14);
  --wrap: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--olive-deep); text-decoration-color: color-mix(in srgb, var(--olive) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--olive-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--olive) 55%, transparent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); letter-spacing: -.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }
p  { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); line-height: 1.6; color: var(--body); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--olive-deep); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--olive); flex: none; }
.eyebrow.is-light { color: var(--olive-tint-2); }
.eyebrow.is-light::before { background: var(--signal); }
.eyebrow.no-rule::before { display: none; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-tint { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.section-olive { background: var(--olive-tint); border-block: 1px solid var(--olive-tint-2); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: .97rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--olive); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--olive-deep); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn-ghost:hover { border-color: var(--olive); color: var(--olive-deep); background: var(--paper); }
.btn-onDark { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-onDark:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-lg { padding: 1em 1.9em; font-size: 1.02rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .bar { display: flex; align-items: center; gap: 1.25rem; height: 74px; }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .5em .85em; border-radius: 999px; text-decoration: none;
  color: var(--body); font-size: .95rem; font-weight: 550;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav a:hover { background: var(--olive-tint); color: var(--olive-dark); }
.nav a[aria-current="page"] { color: var(--olive-dark); background: var(--olive-tint); }
.nav .btn { margin-left: .5rem; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 10px; width: 44px; height: 42px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .22s var(--ease), opacity .16s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .8rem 1.25rem 1.25rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .7em .8em; }
  .nav .btn { margin: .4rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, var(--olive-ink) 0%, var(--olive-dark) 46%, var(--olive-deep) 100%);
  color: #fff; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background:
    radial-gradient(60% 55% at 88% 8%, rgba(0,176,80,.34), transparent 62%),
    radial-gradient(45% 45% at 5% 95%, rgba(102,125,63,.5), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.84); }
.hero .lede { max-width: 46ch; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-marks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.hero-marks span {
  font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.24);
  padding: .45em 1em; border-radius: 999px;
}

/* Hero side card: mini value-stream teaser */
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-lg); padding: 1.6rem; backdrop-filter: blur(6px);
}
.hero-card h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--olive-tint-2); }
.card-num {
  font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1;
  color: var(--olive-tint-2); margin-bottom: .5rem; letter-spacing: -.02em;
}

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--olive-tint); color: var(--olive-deep); margin-bottom: 1rem; flex: none;
}
.icon-badge svg { width: 23px; height: 23px; }

/* Feature list with check marks */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 11px; height: 6px; border-left: 2.5px solid var(--olive); border-bottom: 2.5px solid var(--olive);
  transform: rotate(-45deg);
}
.ticks.on-dark li::before { border-color: var(--signal); }

/* ---------- Phase rail (the 4-phase program) ---------- */
.phase-rail { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: ph; }
.phase {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.75rem 1.5rem 1.5rem;
}
.phase-tag {
  display: inline-block; font-family: var(--display); font-weight: 700; letter-spacing: .08em;
  font-size: .78rem; text-transform: uppercase; color: #fff; background: var(--olive);
  padding: .3em .8em; border-radius: 999px; margin-bottom: .9rem;
}
.phase:nth-child(2) .phase-tag { background: #5C7239; }
.phase:nth-child(3) .phase-tag { background: #4C5F2E; }
.phase:nth-child(4) .phase-tag { background: var(--olive-dark); }
.phase h3 { font-size: 1.12rem; }
.phase ul { margin: .9rem 0 0; padding-left: 1.1rem; font-size: .93rem; color: var(--muted); }
.phase ul li { margin-bottom: .3rem; }

/* ---------- Stats ---------- */
.stat { text-align: left; }
.stat .n { font-family: var(--display); font-size: clamp(2.6rem, 2rem + 2.2vw, 3.6rem); font-weight: 700; line-height: 1; color: var(--olive); letter-spacing: -.02em; }
.stat .l { font-size: .93rem; color: var(--muted); margin-top: .4rem; }

/* ---------- Quote ---------- */
.quote { border-left: 3px solid var(--olive); padding-left: 1.75rem; }
.quote p { font-size: clamp(1.1rem, 1rem + .7vw, 1.45rem); line-height: 1.5; color: var(--ink); font-weight: 450; letter-spacing: -.015em; }
.quote cite { display: block; font-style: normal; font-size: .92rem; color: var(--muted); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--olive-dark), var(--olive-deep) 70%, var(--olive));
  color: #fff; border-radius: var(--r-lg); padding: clamp(2.25rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; max-width: 52ch; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive-ink); color: rgba(255,255,255,.7); padding: clamp(3rem, 5vw, 4rem) 0 2rem; font-size: .93rem; }
.site-footer img.mark { height: 40px; width: auto; margin-bottom: 1.1rem; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.13);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.5);
}
.tagline-rule { font-family: var(--display); letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; color: var(--signal); font-weight: 600; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.15rem; }
.field label, .q-label { display: block; font-weight: 620; color: var(--ink); margin-bottom: .4rem; font-size: .96rem; }
.field .hint, .q-hint { font-size: .87rem; color: var(--muted); font-weight: 400; margin: -.15rem 0 .55rem; }
.req { color: var(--gap); font-weight: 700; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%; padding: .78em .95em; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--olive);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--olive) 18%, transparent);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--gap); }
.err { color: var(--gap); font-size: .86rem; margin-top: .3rem; display: none; }
.err.show { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

/* Choice chips (radio / checkbox) */
.choices { display: grid; gap: .6rem; }
.choices.cols-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.choices.cols-3 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.choice {
  display: flex; gap: .8rem; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .85rem 1rem;
  cursor: pointer; background: var(--paper);
  transition: border-color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
}
.choice:hover { border-color: var(--olive-tint-2); background: var(--paper-2); }
.choice input { margin: .28em 0 0; accent-color: var(--olive); flex: none; width: 17px; height: 17px; }
.choice-body { flex: 1; min-width: 0; }
.choice-title { font-weight: 570; color: var(--ink); line-height: 1.35; }
.choice-desc { font-size: .855rem; color: var(--muted); margin-top: .15rem; line-height: 1.45; }
.choice:has(input:checked) { border-color: var(--olive); background: var(--olive-tint); box-shadow: 0 0 0 1px var(--olive) inset; }
.choice:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--olive) 55%, transparent); outline-offset: 2px; }

/* 0–10 scale */
.scale { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.scale label {
  flex: 1 1 auto; min-width: 42px; text-align: center; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .6em .2em;
  font-weight: 600; font-size: .95rem; color: var(--body); background: var(--paper);
  transition: all .14s var(--ease);
}
.scale input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale label:hover { border-color: var(--olive-tint-2); background: var(--paper-2); }
.scale input:checked + span, .scale label.sel { background: var(--olive); border-color: var(--olive); color: #fff; }
.scale label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--olive) 55%, transparent); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: .45rem; }

/* ---------- Notices ---------- */
.notice { border-radius: var(--r-sm); padding: 1rem 1.15rem; font-size: .93rem; display: flex; gap: .75rem; align-items: flex-start; }
.notice-ok   { background: var(--olive-tint); border: 1px solid var(--olive-tint-2); color: var(--olive-dark); }
.notice-warn { background: #FDF6E7; border: 1px solid #F0DFB4; color: #7A5A15; }
.notice-err  { background: #FCEEEB; border: 1px solid #F3CFC6; color: #8C3521; }

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.small { font-size: .89rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--olive); color: #fff; padding: .7em 1.2em; border-radius: 0 0 8px 8px; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
