/* ============================================================
   H9K Systems — single stylesheet
   Brand: light, green-forward, quietly technical
   ============================================================ */

/* ---- Design tokens ---------------------------------------- */
:root {
  --white:   #FFFFFF;
  --mint:    #F2F8F5;   /* soft mint section background */
  --emerald: #2E9E6B;   /* primary accent */
  --bright:  #46C283;   /* hover / highlight */
  --pale:    #DDF2E7;   /* card borders, badges, callouts */
  --navy:    #17335C;   /* headlines, key text */
  --steel:   #2A5284;   /* secondary text */
  --ink:     #1B2430;   /* body text */

  --maxw: 1080px;
  --radius: 12px;
  --rule-w: 56px;

  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shadow: 0 1px 2px rgba(23,51,92,.04), 0 6px 20px rgba(23,51,92,.05);
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--emerald); text-decoration: none; }
a:hover { color: var(--bright); }

/* ---- Layout ----------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section--mint { background: var(--mint); }
.section--tight { padding: 60px 0; }

/* ---- Typography ------------------------------------------- */
h1, h2, h3 { font-weight: 800; color: var(--navy); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.005em; }
p  { margin: 0 0 1.1em; max-width: 68ch; }
.lead { font-size: 1.18rem; color: var(--steel); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 14px;
  display: block;
}

/* thin green accent rule under headlines */
.rule {
  width: var(--rule-w);
  height: 4px;
  border: 0;
  border-radius: 3px;
  background: var(--emerald);
  margin: 22px 0 26px;
}
.rule--center { margin-left: auto; margin-right: auto; }

.muted { color: var(--steel); }
.mono  { font-family: var(--mono); }

/* ---- Header / nav ----------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--pale);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--navy); font-size: 1.12rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--navy); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--emerald); color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em;
}
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--steel); font-weight: 500; font-size: 0.97rem; }
.nav__links a:hover, .nav__links a.active { color: var(--emerald); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--emerald); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 8px; border: 2px solid var(--emerald);
  cursor: pointer; transition: background .18s, border-color .18s, transform .18s;
  line-height: 1;
}
.btn:hover { background: var(--bright); border-color: var(--bright); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--emerald); }
.btn--ghost:hover { background: var(--pale); border-color: var(--emerald); color: var(--emerald); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---- Hero ------------------------------------------------- */
.hero { padding: 68px 0 66px; background: linear-gradient(180deg, var(--white) 0%, var(--mint) 100%); }
.hero h1 { max-width: 20ch; line-height: 1.06; }
.hero .rule { margin: 18px 0 20px; }
.hero .lead { max-width: 60ch; margin: 0 0 6px; }
.hero__sub { font-family: var(--mono); font-size: 0.92rem; color: var(--steel); letter-spacing: 0.02em; margin: 0; max-width: 62ch; }
.hero .btn-row { margin-top: 26px; }

/* ---- Cards ------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--pale);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: border-color .18s, transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
a.card:hover { border-color: var(--emerald); transform: translateY(-3px); color: var(--ink); box-shadow: 0 8px 28px rgba(46,158,107,.12); }
.card__num { font-family: var(--mono); font-size: 0.8rem; color: var(--emerald); font-weight: 600; letter-spacing: 0.1em; margin-bottom: 12px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--steel); font-size: 0.98rem; margin-bottom: 16px; }
.card__more { font-family: var(--mono); font-size: 0.82rem; font-weight: 600; color: var(--emerald); margin-top: auto; letter-spacing: 0.03em; }

/* badge / callout */
.badge {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--emerald);
  background: var(--pale); padding: 5px 11px; border-radius: 20px;
}
.callout {
  background: var(--pale); border: 1px solid #c6e8d5;
  border-radius: var(--radius); padding: 22px 26px; margin: 26px 0;
}
.callout p { margin: 0; color: var(--navy); }

/* ---- Stats strip (the one navy band allowed) -------------- */
.stats {
  background: var(--navy); color: #fff;
}
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat__num { font-family: var(--mono); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--bright); line-height: 1; }
.stat__label { font-size: 0.86rem; color: #b9c6da; margin-top: 8px; letter-spacing: 0.01em; }

/* ---- Method / steps --------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.step { position: relative; padding-top: 20px; border-top: 3px solid var(--pale); }
.step__k { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--emerald); letter-spacing: 0.1em; }
.step h3 { font-size: 1.1rem; margin: 8px 0 6px; }
.step p { font-size: 0.96rem; color: var(--steel); margin: 0; }
.method-line { font-family: var(--mono); font-weight: 600; color: var(--navy); font-size: 1.05rem; margin-top: 36px; letter-spacing: 0.01em; }

/* ---- Service sections (services page) --------------------- */
.svc { padding: 72px 0; border-bottom: 1px solid var(--pale); }
.svc:last-child { border-bottom: 0; }
.svc__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
.svc ul.feat { list-style: none; padding: 0; margin: 18px 0 0; }
.svc ul.feat li { position: relative; padding-left: 26px; margin-bottom: 11px; color: var(--ink); }
.svc ul.feat li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 9px; height: 9px; border-radius: 2px; background: var(--emerald);
}
.svc__terms { font-family: var(--mono); font-size: 0.85rem; color: var(--steel); letter-spacing: 0.02em; margin-top: 22px; }

/* ---- About ------------------------------------------------ */
.about__grid { display: grid; grid-template-columns: 260px 1fr; gap: 46px; align-items: start; }
.headshot {
  width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--pale); border: 1px solid #c6e8d5;
  object-fit: cover; display: block;
}
.headshot--ph {
  display: grid; place-items: center; text-align: center;
  font-family: var(--mono); font-size: 0.8rem; color: var(--steel); padding: 20px;
}
.pull { font-family: var(--sans); font-weight: 800; color: var(--navy); font-size: 1.3rem; line-height: 1.4; border-left: 4px solid var(--emerald); padding-left: 20px; margin: 30px 0; max-width: 30ch; }

/* ---- Contact ---------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; max-width: 520px; }
.contact-list li { display: flex; gap: 16px; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--pale); }
.contact-list .k { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--emerald); min-width: 92px; }
.contact-list .v { font-size: 1.08rem; color: var(--navy); font-weight: 500; }

/* ---- Download rows (samples) ------------------------------ */
.dl { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--pale); border-radius: var(--radius); background: var(--white); margin-bottom: 16px; box-shadow: var(--shadow); }
.dl__icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 9px; background: var(--pale); color: var(--emerald); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 0.72rem; }
.dl__body { flex: 1; }
.dl__body h3 { font-size: 1.05rem; margin-bottom: 3px; }
.dl__body p { margin: 0; font-size: 0.94rem; color: var(--steel); }
.dl .btn { flex: 0 0 auto; }

/* ---- CTA band --------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin: 0 auto; }

/* ---- Footer ----------------------------------------------- */
.footer { background: var(--navy); color: #c3d0e2; padding: 40px 0; font-size: 0.93rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: center; text-align: center; }
.footer a { color: var(--bright); font-weight: 500; }
.footer a:hover { color: #fff; }
.footer .sep { color: #3a5580; }
.footer__note { display: block; width: 100%; text-align: center; color: #7f93b3; margin-top: 14px; font-size: 0.85rem; }

/* ---- Section intros --------------------------------------- */
.intro { max-width: 62ch; }
.intro.center { margin: 0 auto; text-align: center; }

/* ---- Utilities -------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 860px) {
  .grid--3, .grid--2, .steps, .stats__inner { grid-template-columns: 1fr 1fr; }
  .svc__grid { grid-template-columns: 1fr; gap: 20px; }
  .about__grid { grid-template-columns: 1fr; gap: 26px; }
  .headshot { max-width: 240px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 66px 0 56px; }
  .grid--3, .grid--2, .steps, .stats__inner { grid-template-columns: 1fr; }
  .stats__inner { gap: 30px; }
  .nav__links {
    position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--pale);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 18px; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--mint); }
  .nav__toggle { display: block; }
  .dl { flex-wrap: wrap; }
  .dl .btn { width: 100%; justify-content: center; }
}
