/* ============================================================
   KAPNOX GROUP — site sections
   Original palette: navy #06005e · indigo #130848 · gold #FFD700 · red #dc0000
   Light cream/gold theme to match the logo-reveal hero.
   (Hero/animation styles live in home.css)
   ============================================================ */

:root {
  --navy: #06005e;
  --navy-deep: #0a0430;
  --indigo: #130848;
  --gold: #ffd700;
  --gold-deep: #b8860b;
  --gold-soft: #fff3c4;
  --red: #dc0000;
  --cream: #fffbeb;
  --ink: #1a1633;
  --muted: #605c74;
  --line: #ece6d6;
  --bg: #ffffff;
  --bg-soft: #fffaf0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 12px rgba(6, 0, 94, .07);
  --shadow: 0 18px 50px rgba(6, 0, 94, .13);
  --shadow-lg: 0 30px 80px rgba(6, 0, 94, .22);
  --container: 1180px;
  --ease: cubic-bezier(.22, .9, .3, 1);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--navy); }
h2.section-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
p { margin: 0 0 1rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy);
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons (original navy + gold) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--navy); color: var(--gold); box-shadow: 0 8px 20px rgba(6, 0, 94, .28); }
.btn-primary:hover { background: var(--indigo); box-shadow: 0 14px 30px rgba(6, 0, 94, .38); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--gold); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #ffca10); color: var(--navy); box-shadow: 0 10px 24px rgba(255, 215, 0, .4); }
.btn-gold:hover { box-shadow: 0 16px 34px rgba(255, 215, 0, .55); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.on-dark .btn-ghost:hover { background: #fff; color: var(--navy); }

/* ============================================================
   HEADER (over a light hero)
   ============================================================ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 800; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.scrolled { background: rgba(255, 251, 235, .9); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(6, 0, 94, .08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; }
.brand svg { width: 34px; height: 34px; }
.brand .brand-name { color: var(--navy); }
.brand-logo { height: 34px; width: auto; display: block; flex: none; }
@media (max-width: 560px) { .brand-logo { height: 28px; } }
/* footer emblem (justlogo.svg) rendered white on the dark footer */
.footer-logo { height: 56px; width: auto; display: block; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: .96rem; color: var(--navy); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--red); transition: width .25s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 10px 20px; font-size: .9rem; }
.nav-links a.btn-primary { color: var(--gold); }
.nav-links a.btn-primary::after { display: none; }
.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; transition: .3s; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.bg-soft { background: var(--bg-soft); }
.bg-cream { background: var(--cream); }

/* Ventures / group cards */
.ventures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.venture {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; overflow: hidden;
}
.venture::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent, var(--navy)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.venture:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.venture:hover::before { transform: scaleX(1); }
.venture .v-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft, #f3f0ff); color: var(--accent, var(--navy)); margin-bottom: 20px; }
.venture .v-icon svg { width: 28px; height: 28px; }
.venture h3 { font-size: 1.3rem; }
.venture .v-tag { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent, var(--navy)); }
.venture p { color: var(--muted); font-size: .97rem; }
.venture .v-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--navy); margin-top: 6px; }
.venture .v-link svg { width: 16px; height: 16px; transition: transform .25s; }
.venture:hover .v-link svg { transform: translateX(4px); }

/* About / stats */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px; text-align: center; }
.stat b { display: block; font-size: 2.4rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.value { padding: 28px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.value .v-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.value h3 { font-size: 1.12rem; }
.value p { color: var(--muted); font-size: .94rem; margin: 0; }

/* CTA band */
.cta-band { background: radial-gradient(120% 160% at 10% 0%, #241a86, var(--navy) 60%, var(--navy-deep)); color: #fff; border-radius: 26px; padding: 60px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: #fff; }
.cta-band h2 .gold { color: var(--gold); }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 52ch; margin-inline: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info .ci-row { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .ci-row .v-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; }
.contact-info .ci-row b { display: block; color: var(--navy); }
.contact-info .ci-row span, .contact-info .ci-row a { color: var(--muted); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 7px; color: var(--navy); }
.field { margin-bottom: 18px; }
.form input, .form textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: var(--bg-soft); transition: border-color .2s, box-shadow .2s, background .2s; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(6, 0, 94, .1); }
.form .btn { width: 100%; justify-content: center; }
.form-note { font-size: .84rem; color: var(--muted); margin: 14px 0 0; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #0a8f3c; font-weight: 600; }
.form-note.err { color: var(--red); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); padding: 66px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand .brand-name { color: #fff; }
.site-footer h4 { color: var(--gold); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.footer-about p { font-size: .94rem; max-width: 34ch; margin-top: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cream); padding: 10px 0; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 24px; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 560px) {
  section { padding: 70px 0; }
  .cta-band, .form { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

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