/* ============================================================
   Stratagem Healthworks — corporate design system
   Source of truth: SHW-BRAND-001 v1.1 / SHW-BRAND-TOKENS.md
   Green never as text on white. Headings in Strategic Black.
   ============================================================ */

:root {
  /* Brand color */
  --green:        #9ACD32;   /* fills / CTA bg / accents — dark text only */
  --green-hover:  #7BA428;
  --black:        #1C1C1C;   /* text, headings, chess */
  --white:        #FFFFFF;
  --blue:         #2C3E50;   /* secondary ground */
  --teal:         #3498DB;
  --gray:         #7F8C8D;   /* captions, borders, minor headings */
  --gold:         #F39C12;   /* warm accent, sparing */
  --red:          #E74C3C;   /* form errors only */
  --light:        #F8F9FA;   /* callout / alt-row bg */
  --ink-soft:     #4a4a4a;
  --dark:         #18211b;   /* dark section ground: Strategic-Black family, subtle green undertone (replaces blue) */
  --dark-2:       #23302a;   /* lighter partner for dark gradients */

  /* Derived */
  --hairline:     #e4e7e8;
  --grad-primary: linear-gradient(45deg, #2C3E50, #3498DB);

  /* Type — sanctioned fallback stack, no licensed font */
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --max: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --radius: 6px;
  --shadow: 0 6px 24px rgba(28,28,28,0.08);
  --shadow-lg: 0 14px 44px rgba(28,28,28,0.12);
  --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;               /* base up from guide's 14pt print for web legibility */
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Type scale (headings always Strategic Black on light) ---------- */
h1, h2, h3, h4 { color: var(--black); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2rem); font-weight: 600; line-height: 1.3; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.15rem; font-weight: 500; color: var(--gray); line-height: 1.4; }
p  { margin: 0 0 1rem; }
.lede { font-size: clamp(1.05rem, 2.1vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.caption { font-size: .8rem; color: var(--gray); }
.kicker {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--black); margin: 0 0 .9rem;
}
.kicker::before {
  content: ""; display: inline-block; width: 26px; height: 3px; background: var(--green);
  vertical-align: middle; margin-right: .6rem; border-radius: 2px;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-light { background: var(--light); }
.section-dark  { background: var(--dark); color: #eaf1f8; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.grid { display: grid; gap: 1.6rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4,1fr); } }
.center { text-align: center; } .center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 500 1rem/1.2 var(--sans); letter-spacing: .01em;
  padding: .85rem 1.5rem; border-radius: var(--radius); cursor: pointer;
  border: 2px solid transparent; transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary   { background: var(--green); color: var(--black); }   /* dark text on green = compliant */
.btn-primary:hover { background: var(--green-hover); color: var(--black); }
.btn-secondary { background: var(--white); color: var(--black); border-color: var(--green); }
.btn-secondary:hover { background: var(--green); color: var(--black); }
.btn-tertiary  { background: transparent; color: var(--black); border-color: var(--black); }
.btn-tertiary:hover { background: var(--gray); color: var(--white); border-color: var(--gray); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--hairline);
  transition: box-shadow .25s var(--ease), padding .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand-logo { display: flex; align-items: center; gap: .6rem; }
.brand-logo img { width: clamp(180px, 20vw, 420px); height: auto; transition: width .25s var(--ease); }
.site-header.is-scrolled .brand-logo img { width: clamp(150px, 12vw, 240px); }
@media (max-width: 600px) { .brand-logo img { width: 168px; } .site-header.is-scrolled .brand-logo img { width: 148px; } }
.brand-logo span { font-weight: 700; color: var(--black); font-size: 1.05rem; letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--black); font-weight: 500; font-size: .95rem; padding: .35rem 0; position: relative; }
.nav-links a:hover { text-decoration: none; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--green);
  transition: width .22s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--black); margin: 5px 0; transition: .25s var(--ease); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--white); border-bottom: 1px solid var(--hairline);
    padding: .5rem var(--gutter) 1.2rem; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .22s var(--ease);
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--hairline); width: 100%; }
  .nav-cta { margin: .8rem 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem); overflow: hidden; }
.hero-chess {                                   /* chessboard motif, ≤10% opacity */
  position: absolute; inset: 0; z-index: 0; opacity: .06; pointer-events: none;
  background-image:
    linear-gradient(45deg, var(--black) 25%, transparent 25%, transparent 75%, var(--black) 75%),
    linear-gradient(45deg, var(--black) 25%, transparent 25%, transparent 75%, var(--black) 75%);
  background-size: 64px 64px; background-position: 0 0, 32px 32px;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero .lede { margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.accent-bar { width: 54px; height: 4px; background: var(--green); border-radius: 2px; margin-bottom: 1.4rem; }

/* ---------- Video hero (green-tinted background) ---------- */
.hero-video { position: relative; color: #fff; padding-block: clamp(4rem, 12vw, 8.5rem); overflow: hidden; background: var(--dark); }
.hero-video .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video .hero-tint {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,26,20,.9) 0%, rgba(22,30,24,.66) 42%, rgba(35,48,42,.42) 100%),
    linear-gradient(180deg, rgba(122,164,40,.28), rgba(28,28,28,.2) 70%);
}
.hero-video > .wrap { position: relative; z-index: 2; }
.hero-video h1 { color: #fff; }
.hero-video .kicker { color: #fff; }
.hero-video .lede { color: #eaf0e2; }
.hero-video .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.hero-video .btn-secondary:hover { background: #fff; color: var(--black); border-color: #fff; }

/* 3 service pillars line (Consulting / Mentoring / Fractional C-Suite) */
.service-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.3rem; margin-top: 2rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: .82rem; }
.service-line .sp { color: #dfeecb; display: inline-flex; align-items: center; gap: 1.3rem; }
.service-line .sp::after { content: "\265F"; color: var(--green); font-size: 1.1em; }
.service-line .sp:last-child::after { content: none; }
@media (prefers-reduced-motion: reduce) { .hero-video .hero-bg { display: none; } }

/* ---------- Branded dark hero (inner pages) ---------- */
.hero-brand {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(85% 120% at 88% 15%, rgba(122,164,40,.30), transparent 58%),
    linear-gradient(120deg, #16220e 0%, #1c281b 48%, #23302a 100%);
}
.hero-brand .hero-chess { display: none; }
.hero-brand::after {                 /* faint chess-piece watermark */
  content: ""; position: absolute; right: 2%; top: 50%; transform: translateY(-50%);
  height: 118%; width: 34%; z-index: 0; pointer-events: none; opacity: .16;
  background: url(/assets/img/chess/king.png) right center / contain no-repeat;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.5));
}
.hero-brand > .wrap { position: relative; z-index: 1; }
.hero-brand h1 { color: #fff; }
.hero-brand .kicker { color: #fff; }
.hero-brand .lede { color: #e7eddd; }
.hero-brand .accent-bar { background: var(--green); }
@media (max-width: 760px) { .hero-brand::after { opacity: .1; width: 46%; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .card-icon {
  width: 46px; height: 46px; border-radius: 8px; display: grid; place-content: center;
  background: rgba(154,205,50,.18); color: var(--black); margin-bottom: 1rem; font-size: 1.4rem;
}
.card h3 { margin-bottom: .4rem; }
.pillar-num { font-weight: 700; color: var(--green-hover); font-size: .85rem; letter-spacing: .1em; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .35rem; color: var(--black); }
.field input, .field textarea {
  width: 100%; font: inherit; padding: .75rem .85rem; border: 1px solid var(--gray);
  border-radius: var(--radius); background: var(--white); color: var(--black); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(154,205,50,.25);
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray); }
.field .error { color: var(--red); font-size: .85rem; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; }         /* honeypot */
.form-status { margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius); font-size: .95rem; }
.form-status.is-ok  { background: rgba(39,174,96,.12); border: 1px solid #27AE60; color: #1e7e46; }
.form-status.is-err { background: rgba(231,76,60,.1); border: 1px solid var(--red); color: #b23a2f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #cfd3d4; padding-block: 3rem 1.6rem; }
.site-footer a { color: #e6e9ea; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand img { height: 92px; width: auto; margin-bottom: .9rem; }
.footer-bottom { border-top: 1px solid #333; margin-top: 2.2rem; padding-top: 1.2rem; font-size: .82rem; color: var(--gray); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; }

/* ---------- Utilities ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--black); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: .5rem; top: .5rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-hover); background: rgba(154,205,50,.14); padding: .25rem .6rem; border-radius: 3px; }
.draft { outline: 2px dashed var(--gold); outline-offset: 3px; }   /* marks placeholder copy awaiting sign-off */

/* ---------- Stats / animated counters ---------- */
.stats { display: grid; gap: 1.4rem; grid-template-columns: repeat(2,1fr); }
@media (min-width: 760px) { .stats.stats-4 { grid-template-columns: repeat(4,1fr); } .stats.stats-3 { grid-template-columns: repeat(3,1fr); } }
.stat { text-align: center; padding: 1.2rem 1rem; }
.stat .num { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; color: var(--black); line-height: 1; }
.stat .num .suffix { color: var(--green-hover); }
.stat .label { font-size: .9rem; color: var(--gray); margin-top: .5rem; letter-spacing: .02em; }
.section-dark .stat .num { color: #fff; } .section-dark .stat .label { color: #afc0d0; }

/* ---------- Marquee band (single, slow, pauses on hover; motion-safe) ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--hairline); background: var(--white); padding-block: 1.1rem; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-weight: 600; color: var(--gray); font-size: .95rem; letter-spacing: .04em; white-space: nowrap; display: flex; align-items: center; gap: 3rem; }
.marquee-item::after { content: "\265F"; color: var(--green); }   /* chess pawn separator */
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Testimonial / pull-quote ---------- */
.quote { border-left: 4px solid var(--green); padding: .3rem 0 .3rem 1.4rem; }
.quote blockquote { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-style: italic; color: var(--black); line-height: 1.45; }
.quote .cite { display: block; margin-top: 1rem; font-style: normal; font-size: .9rem; color: var(--gray); font-weight: 600; }

/* ---------- Logo / focus-area strip ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { border: 1px solid var(--hairline); background: var(--white); border-radius: 999px; padding: .45rem 1rem; font-size: .9rem; font-weight: 500; color: var(--black); }
.chip::before { content: "\25C6"; color: var(--green-hover); margin-right: .5rem; font-size: .7em; }

/* ---------- Steps / timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--hairline); }
.timeline li { position: relative; padding: 0 0 1.6rem 2.4rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--hairline); }
.timeline .yr { font-weight: 700; color: var(--green-hover); font-size: .9rem; letter-spacing: .06em; }
.timeline h3 { margin: .1rem 0 .3rem; font-size: 1.15rem; }

/* ---------- Media split ---------- */
.media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- Chess-piece pillar cards ---------- */
.pillar { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pillar .piece {
  height: 128px; width: auto; margin-bottom: 1.1rem; padding: 1rem 1.4rem;
  background: radial-gradient(120% 100% at 50% 15%, rgba(154,205,50,.16), rgba(28,28,28,.05) 70%);
  border: 1px solid var(--hairline); border-radius: 16px;
  filter: drop-shadow(0 6px 12px rgba(28,28,28,.14)); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pillar:hover .piece { transform: translateY(-4px) scale(1.03); box-shadow: 0 12px 26px rgba(28,28,28,.12); }
.pillar .pillar-num { margin-bottom: .3rem; }
.pillar p { color: var(--ink-soft); }

/* piece as inline section accent */
.piece-accent { height: 200px; width: auto; filter: drop-shadow(0 10px 20px rgba(28,28,28,.16)); }

/* ---------- Founder / headshot ---------- */
.founder { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .founder { grid-template-columns: 320px 1fr; } }
.founder .portrait { position: relative; }
.founder .portrait img { border-radius: 10px; box-shadow: var(--shadow-lg); width: 100%; max-width: 340px; }
.founder .portrait::before { content: ""; position: absolute; inset: auto -14px -14px auto; width: 70%; height: 70%; background: var(--green); opacity: .16; border-radius: 10px; z-index: -1; }

/* two-column credential lists */
.cred-cols { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cred-cols.c3 { grid-template-columns: repeat(3,1fr); } }
.cred h4 { color: var(--black); font-size: 1rem; font-weight: 700; margin-bottom: .6rem; padding-bottom: .5rem; border-bottom: 2px solid var(--green); }
.cred ul { list-style: none; margin: 0; padding: 0; }
.cred li { padding: .3rem 0 .3rem 1.2rem; position: relative; font-size: .95rem; color: var(--ink-soft); }
.cred li::before { content: "\2666"; color: var(--green-hover); position: absolute; left: 0; font-size: .7em; top: .55em; }

/* ---------- Scroll reveal (JS adds .reveal; .is-visible on enter) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

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