/* KV Business Advisory — design system, extracted & extended from the approved draft */

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --text: #23211D;
  --text-muted: #55503F;
  --text-soft: #6B6558;
  --text-faint: #8A8474;
  --border: #E7E2D9;
  --accent: #156082;
  --accent-soft: #EAF1F5;
  --dark-bg: #052634;
  --dark-text: #EAF1F5;
  --dark-text-muted: #B8BEB4;
  --dark-accent: #7FB3CE;
  --dark-step: #9FC7B8;
  --dark-border: rgba(241,239,232,0.2);
  --display: 'Newsreader', Georgia, serif;
  --body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ---------- NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,244,0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  position: relative;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 34px; width: auto; }

/* ---------- WORDMARK (text logo) ---------- */
.wordmark {
  display: inline-flex; align-items: baseline; white-space: nowrap;
  font-family: 'Montserrat', var(--body); line-height: 1;
}
.wordmark .kv { font-weight: 700; font-style: italic; color: var(--text); }
.wordmark .kv .v-part { color: #104862; }
.wordmark .name { font-weight: 400; font-style: normal; color: var(--text); margin-left: 4px; }
.nav-logo .wordmark .kv { font-size: clamp(23px, 6vw, 32px); }
.nav-logo .wordmark .name { font-size: clamp(13.5px, 3.4vw, 18.5px); }
.fgrid .flogo .wordmark .kv { font-size: 27px; }
.fgrid .flogo .wordmark .name { font-size: 15px; }

.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; color: var(--text-soft); font-size: 14.5px; font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  text-decoration: none; background: var(--accent); color: #FAF8F4;
  font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 8px;
  white-space: nowrap; transition: opacity .15s;
}
.nav-cta:hover { opacity: .9; }
.lang-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lang-toggle a {
  text-decoration: none; padding: 4px 8px; border-radius: 6px; color: var(--text-faint); font-weight: 600;
}
.lang-toggle a.active { color: var(--text); background: var(--surface); border: 1px solid var(--border); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px;
  width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 14px 26px; border-radius: 9px;
  transition: opacity .15s;
}
.btn-primary { background: var(--accent); color: #FAF8F4; }
.btn-primary:hover { opacity: .9; }
.btn-ghost { color: var(--text); padding: 14px 8px; }
.btn-ghost:hover { color: var(--accent); }
.btn-onaccent { background: #FAF8F4; color: #1F2B27; }
.btn-onaccent:hover { opacity: .92; }
.btn-onaccent-outline { color: #FAF8F4; padding: 14px 12px; border-bottom: 1px solid rgba(250,248,244,0.4); border-radius: 0; }

/* ---------- BADGE / EYEBROW ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  margin-bottom: 24px; font-size: 13px; font-weight: 500; color: var(--text-soft); letter-spacing: .02em;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow.on-dark { color: var(--dark-accent); }

/* ---------- TYPE ---------- */
h1, h2, h3, blockquote { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; }
.h1 { font-size: 58px; line-height: 1.05; }
.h2 { font-size: 42px; line-height: 1.12; }
.h3-title { font-size: 21px; font-weight: 600; font-family: var(--body); letter-spacing: -0.01em; }
.lede { font-size: 19px; line-height: 1.6; color: var(--text-muted); max-width: 36em; }
p.body-text { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin-bottom: 18px; max-width: 42em; }
.small-muted { font-size: 13px; color: var(--text-faint); letter-spacing: .02em; }

/* ---------- SECTIONS ---------- */
section.pad { padding: 96px 32px; }
section.pad-sm { padding: 64px 32px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 680px; margin-bottom: 52px; }

/* ---------- HERO ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 84px 32px 72px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
}
.hero-media { position: relative; }
.ph {
  border-radius: 14px; border: 1px solid var(--border);
  background: repeating-linear-gradient(45deg, #EDE8DF, #EDE8DF 11px, #F3EFE8 11px, #F3EFE8 22px);
  display: flex; align-items: flex-end; padding: 18px; overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-tag {
  font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--text-faint);
  background: rgba(250,248,244,0.92); padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border);
}
.stat-float {
  position: absolute; bottom: -22px; left: -22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px;
  box-shadow: 0 12px 32px rgba(35,33,29,0.08); max-width: 230px;
}
.stat-float .num { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--accent); }
.stat-float .cap { font-size: 13px; color: var(--text-soft); margin-top: 6px; }

/* ---------- CREDENTIAL STRIP ---------- */
.credential {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface);
}
.credential .row {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.credential .label {
  font-size: 12.5px; color: var(--text-faint); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.credential .items { display: flex; gap: 40px; flex-wrap: wrap; color: var(--text-muted); }
.credential .items span { font-family: var(--display); font-size: 18px; }

/* ---------- CARD GRID ---------- */
.grid3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.grid3 .card { background: var(--surface); padding: 38px; }
.grid3 .card .num { font-family: var(--display); font-size: 15px; color: var(--accent); margin-bottom: 18px; }
.grid3 .card p { font-size: 15.5px; line-height: 1.65; color: var(--text-soft); margin-top: 10px; }
.grid3 .card .when {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-faint); line-height: 1.6;
}

/* ---------- DARK SECTION ---------- */
.dark-section { background: var(--dark-bg); color: var(--dark-text); }
.dark-section .lede { color: var(--dark-text-muted); }
.dark-section h3 { color: #FAF8F4; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.step { border-top: 1px solid var(--dark-border); padding-top: 22px; }
.step .num { font-family: var(--display); font-size: 36px; color: var(--dark-step); line-height: 1; margin-bottom: 16px; }
.step h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--dark-text-muted); }
.dna-box {
  max-width: 720px; padding: 22px 26px; border: 1px solid var(--dark-border); border-radius: 12px;
  margin-bottom: 52px; font-size: 15.5px; line-height: 1.65; color: var(--dark-text-muted);
}
.ai-box {
  margin-top: 56px; max-width: 820px; padding-top: 40px; border-top: 1px solid var(--dark-border);
}

/* ---------- STAT STRIP ---------- */
.grid4r { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: left; }
.grid4r .num { font-family: var(--display); font-size: clamp(26px, 3.6vw, 50px); line-height: 1; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
.grid4r .cap { font-size: 14.5px; color: var(--text-soft); margin-top: 10px; }

/* ---------- TESTIMONIAL ---------- */
.testimonial { border-top: 1px solid var(--border); background: var(--surface); }
.testimonial .box { max-width: 900px; margin: 0 auto; padding: 80px 32px; text-align: center; }
.testimonial blockquote { font-size: 30px; line-height: 1.35; text-wrap: balance; }
.testimonial .attrib { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 32px; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: repeating-linear-gradient(45deg, #EDE8DF, #EDE8DF 6px, #F3EFE8 6px, #F3EFE8 12px);
}
.testimonial .name { font-weight: 600; font-size: 15px; }
.testimonial .role { font-size: 14px; color: var(--text-soft); }
.testimonial-placeholder {
  border: 1px dashed var(--border); border-radius: 12px; padding: 40px; text-align: center;
  color: var(--text-faint); font-size: 14px; max-width: 640px; margin: 0 auto;
}

/* ---------- ABOUT SPLIT ---------- */
.about-split {
  max-width: var(--maxw); margin: 0 auto; padding: 92px 32px;
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center;
}
.about-split .ph { aspect-ratio: 5/4; }

/* ---------- TWO-COLUMN SPLIT (specs/why, roles/mindset, etc.) ---------- */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.split2 .aside { border-left: 1px solid var(--border); padding-left: 40px; }

/* ---------- LIST ---------- */
ul.plain { list-style: none; }
ul.plain li {
  position: relative; padding-left: 22px; margin-bottom: 12px; font-size: 16px; color: var(--text-muted); line-height: 1.6;
}
ul.plain li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- CTA BLOCK ---------- */
.cta-block { background: var(--accent); color: #FAF8F4; }
.cta-block .box { max-width: 1000px; margin: 0 auto; padding: 92px 32px; text-align: center; }
.cta-block h2 { color: #FAF8F4; text-wrap: balance; margin-bottom: 18px; }
.cta-block p { font-size: 18px; line-height: 1.6; color: rgba(250,248,244,0.88); max-width: 34em; margin: 0 auto 32px; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.contact-details {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 28px;
  font-size: 14px; color: rgba(250,248,244,0.8);
}

/* ---------- CASES ---------- */
.case-card {
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  padding: 40px; margin-bottom: 28px;
}
.case-card .metric {
  display: inline-block; font-family: var(--display); font-size: 15px; color: var(--accent);
  background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.case-card h3 { font-family: var(--body); font-weight: 600; font-size: 20px; margin-bottom: 18px; }
.case-card .sar { display: grid; grid-template-columns: 1fr; gap: 14px; }
.case-card .sar div span.label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.case-card .sar div p { font-size: 15.5px; line-height: 1.65; color: var(--text-muted); }

/* ---------- FOOTER ---------- */
footer { background: var(--bg); }
.fgrid {
  max-width: var(--maxw); margin: 0 auto; padding: 60px 32px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.fgrid .flogo img { height: 30px; margin-bottom: 16px; }
.fgrid p { font-size: 14px; line-height: 1.6; color: var(--text-faint); max-width: 26em; }
.fcol .ftitle { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.fcol a, .fcol span { display: block; text-decoration: none; color: var(--text-soft); font-size: 14px; margin-bottom: 9px; }
.fcol a:hover { color: var(--text); }
.footcopy {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 32px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-faint);
}
.footcopy .flinks { display: flex; gap: 22px; }
.footcopy a { text-decoration: none; color: var(--text-faint); }
.footcopy a:hover { color: var(--text); }

.open-note {
  border: 1px dashed var(--border); border-radius: 10px; padding: 16px 20px; font-size: 13.5px;
  color: var(--text-faint); margin-top: 18px; max-width: 42em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 56px; }
  .hero-media { order: -1; }
  .h1 { font-size: 42px; }
  .grid4 { grid-template-columns: 1fr 1fr; gap: 30px; }
  .grid4r { grid-template-columns: 1fr 1fr; gap: 26px; }
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .split2 { grid-template-columns: 1fr; gap: 32px; }
  .split2 .aside { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 32px; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav { padding: 12px 18px; }
  .nav-toggle { display: flex; }
  .nav-right {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 18px 20px; box-shadow: 0 16px 28px rgba(35,33,29,0.10);
  }
  .site-header.nav-open .nav-right { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links a { padding: 13px 0; width: 100%; border-bottom: 1px solid var(--border); font-size: 16px; }
  .lang-toggle { margin-top: 14px; }
  .nav-cta { margin-top: 14px; width: 100%; justify-content: center; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 40px 18px 44px; gap: 28px; }
  .h1 { font-size: 34px; }
  .grid3 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr; }
  .grid4r { grid-template-columns: 1fr 1fr; gap: 20px; }
  .h2 { font-size: 28px; }
  .testimonial blockquote { font-size: 23px; }
  .fgrid { grid-template-columns: 1fr; gap: 28px; padding: 48px 18px 32px; }
  .footcopy { flex-direction: column; align-items: flex-start; gap: 12px; }
  section.pad { padding: 56px 18px; }
}
