/* ─────────────────────────────────────────────────────────────
   Klassen Capital Partners — one-page marketing site.
   Institutional, conservative, restrained. No external dependencies.
   ───────────────────────────────────────────────────────────── */

:root {
  --navy:        #0d1b2a;   /* primary brand / dark sections */
  --navy-deep:   #091320;
  --slate:       #1b2a3c;
  --ink:         #16202b;   /* body text */
  --body:        #33414f;
  --muted:       #647386;
  --line:        #e2e6ec;
  --line-dark:   #22324a;
  --paper:       #ffffff;
  --paper-alt:   #f6f8fa;
  --gold:        #9a7b3f;   /* restrained accent */
  --gold-soft:   #b89a5e;
  --max:         1120px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 14px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 11px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--slate); border-color: var(--slate); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* On dark backgrounds */
.hero .btn-ghost { color: #dfe6ef; border-color: rgba(255,255,255,.28); }
.hero .btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.7); }

/* ── Brand ───────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--gold-soft);
  padding: 7px 9px;
  border-radius: 2px;
  line-height: 1;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* ── Header ──────────────────────────────────────────────── */
.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(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--ink); }
.header-cta { margin-left: 8px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(154,123,63,.18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #e8edf3;
  padding: 104px 0 96px;
  border-bottom: 1px solid var(--line-dark);
}
.hero-inner { max-width: 880px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero-title {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-lede {
  font-size: clamp(17px, 2vw, 20px);
  color: #c4cfdb;
  max-width: 660px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin: 64px 0 0;
  padding-top: 36px;
  border-top: 1px solid var(--line-dark);
}
.hero-stats div { min-width: 120px; }
.hero-stats dt {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  color: #fff;
}

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 92px 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 760px; margin: 0 0 56px; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.18; margin-bottom: 18px; }
.section-sub { font-size: 18px; color: var(--muted); margin: 0; }

.two-col {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.col-narrow .section-sub { margin-top: 18px; }

.prose p { font-size: 17px; margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }

/* ── Feature grid ────────────────────────────────────────── */
.grid { display: grid; gap: 1px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid {
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.feature {
  background: var(--paper);
  padding: 32px 30px;
}
.section-alt .feature { background: var(--paper-alt); }
.feature h3 {
  font-size: 19px;
  margin-bottom: 10px;
  position: relative;
  padding-top: 14px;
}
.feature h3::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--gold);
}
.feature p { margin: 0; font-size: 15.5px; color: var(--body); }

.section-cta { margin-top: 48px; text-align: center; }

/* ── Principles (numbered) ───────────────────────────────── */
.principles { list-style: none; counter-reset: p; margin: 0; padding: 0; }
.principles li {
  counter-increment: p;
  position: relative;
  padding: 26px 0 26px 64px;
  border-top: 1px solid var(--line);
}
.principles li:first-child { border-top: none; padding-top: 0; }
.principles li:first-child::before { top: -4px; }
.principles li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}
.principles h3 { font-size: 19px; margin-bottom: 6px; }
.principles p { margin: 0; font-size: 16px; color: var(--body); }

/* ── Contact ─────────────────────────────────────────────── */
.contact-line { margin: 8px 0 24px; }
.contact-email {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--navy);
  border-bottom: 2px solid var(--gold-soft);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.contact-email:hover { color: var(--gold); border-color: var(--gold); }
.fineprint { font-size: 14px; color: var(--muted); margin: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: #aeb9c6;
  padding: 56px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { font-size: 14px; color: #aeb9c6; transition: color .15s ease; }
.footer-nav a:hover { color: #fff; }

.footer-legal { padding-top: 28px; }
.footer-legal p { font-size: 12.5px; line-height: 1.7; color: #8b97a6; margin: 0 0 14px; max-width: 920px; }
.footer-legal strong { color: #c4cfdb; }
.copyright { font-size: 12.5px; color: #6f7c8c; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 72px; }
  .section { padding: 68px 0; }
  .hero-stats { gap: 32px; }
}

@media (max-width: 520px) {
  .header-cta { display: none; }
  .brand-name { font-size: 15px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
