/* ============================================
   Kanvest Holdings — shared stylesheet
   ============================================ */

:root {
  --cream: #F9F7F4;
  --sand: #F0EBDF;
  --navy: #0B2A41;
  --navy-deep: #071C2C;
  --navy-soft: #24405A;
  --gold: #D09639;
  --gold-soft: #E4B667;
  --slate: #5B6B78;
  --line: rgba(11, 42, 65, 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: 'Public Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 480;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); font-weight: 560; }

p { margin: 0 0 16px; color: var(--navy-soft); max-width: 62ch; }

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--slate);
  max-width: 56ch;
}

.eyebrow {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 10px;
}

.rule {
  width: 46px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 0 0 24px;
}

.rule.center { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
}
.btn-primary:hover { background: var(--navy-deep); }

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

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.brand img { height: 34px; width: auto; }

.brand-word {
  font-family: 'Fraunces', serif;
  font-weight: 560;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--navy-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Sections */
.section {
  padding: 96px 0;
}
.section.tight { padding: 64px 0; }
.section-alt {
  background: var(--sand);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Hero */
.hero {
  padding: 88px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Route graphic */
.route-graphic {
  width: 100%;
  height: auto;
}

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

/* Cards */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 32px 28px;
}
.section-alt .card { background: var(--cream); }

.card .num {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

.card p:last-child { margin-bottom: 0; }

/* Market cards */
.market-card {
  border-top: 2px solid var(--gold);
  padding-top: 20px;
}

.market-card .flag-label {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--slate);
  margin-bottom: 6px;
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.stat-strip .stat h3 {
  font-size: 15px;
  color: var(--slate);
  font-weight: 400;
  margin-bottom: 6px;
  font-family: 'Public Sans', sans-serif;
}
.stat-strip .stat p {
  color: var(--navy);
  font-size: 15px;
  margin: 0;
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--cream);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: rgba(249,247,244,0.75); margin: 0 auto 28px; }
.cta-band .btn-primary { background: var(--gold); color: var(--navy-deep); }
.cta-band .btn-primary:hover { background: var(--gold-soft); }
.cta-band .btn-ghost { color: var(--cream); border-color: rgba(249,247,244,0.3); }
.cta-band .btn-ghost:hover { border-color: var(--cream); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(249,247,244,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-word {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer-grid h4 {
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  color: rgba(249,247,244,0.5);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a { text-decoration: none; color: rgba(249,247,244,0.75); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(249,247,244,0.12);
  padding-top: 22px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Contact form */
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 14px;
  color: var(--navy-soft);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--navy);
  border-radius: 2px;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--gold);
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 32px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 220ms ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .reveal.d1 { animation-delay: 90ms; }
  .reveal.d2 { animation-delay: 180ms; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
