/* ==========================================================================
   Kalandri Capital — NBFC website
   Elegant, trustworthy design system (charcoal + gold)
   ========================================================================== */

:root {
  --charcoal:        #272728;
  --charcoal-deep:   #1b1b1c;
  --charcoal-soft:   #33333a;
  --gold:            #c8a45c;
  --gold-deep:       #a8863f;
  --cream:           #f7f5f0;
  --paper:           #ffffff;
  --ink:             #24242a;
  --muted:           #6c6c74;
  --line:            #e7e3d9;
  --line-dark:       rgba(255,255,255,.14);
  --radius:          14px;
  --radius-sm:       9px;
  --shadow:          0 18px 45px -22px rgba(20,20,25,.35);
  --shadow-sm:       0 8px 24px -14px rgba(20,20,25,.28);
  --maxw:            1160px;
  --serif:           "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display:         "Cinzel", Georgia, serif;
  --sans:            "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--charcoal); letter-spacing: .2px; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p  { margin: 0 0 1.1rem; }
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1rem;
}
.lead { font-size: 1.18rem; color: #3c3c44; }
.text-muted { color: var(--muted); }
.center { text-align: center; }
.gold { color: var(--gold-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--charcoal); color: #fff; }
.btn-primary:hover { background: var(--charcoal-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold); color: #241d0c; }
.btn-gold:hover { background: var(--gold-deep); color:#fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: rgba(39,39,40,.25); }
.btn-outline:hover { border-color: var(--charcoal); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color:#fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background:#fff; color: var(--charcoal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: #40404a;
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold);
  transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--charcoal); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: .5rem; }
/* The CTA is a button, not a nav text-link: restore its padding, drop the
   underline (::after) and keep the gold-button hover colour. */
.nav-links .nav-cta a { padding: .55rem 1.4rem; color: #241d0c; }
.nav-links .nav-cta a::after { display: none; }
.nav-links .nav-cta a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(27,27,28,.86), rgba(27,27,28,.94)),
    url("../img/anastasia-dulgier-OKOOGO578eo-unsplash.jpg") center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 70% 20%, rgba(200,164,92,.18), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-top: clamp(5rem, 12vw, 9rem); padding-bottom: clamp(5rem, 12vw, 9rem); max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: rgba(255,255,255,.82); font-size: 1.22rem; margin-bottom: 2rem; max-width: 620px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 3.5rem; padding-top: 2.2rem;
  border-top: 1px solid var(--line-dark);
}
.hero-stats .stat strong { font-family: var(--serif); font-size: 2rem; color: var(--gold); display: block; line-height: 1; }
.hero-stats .stat span { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--charcoal), var(--charcoal-deep));
  color: #fff;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(50% 80% at 50% 0%, rgba(200,164,92,.16), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color:#fff; margin-bottom: .4rem; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 640px; margin: 0 auto; }
.page-hero .eyebrow { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-cream { background: var(--cream); }
.section-charcoal { background: var(--charcoal); color: #fff; }
.section-charcoal h2, .section-charcoal h3 { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.divider { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 1.2rem auto 0; border-radius: 2px; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--charcoal), var(--charcoal-soft));
  color: var(--gold); font-size: 1.35rem; margin-bottom: 1.3rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Split feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media img { margin: 0 auto; max-width: 320px; }
.feature-row h2 { font-size: 2rem; }
.feature-row p { color: var(--muted); }

/* ---------- About / team ---------- */
.team-member {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  margin-bottom: 1.8rem;
}
.team-member img { border-radius: 12px; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top center; box-shadow: var(--shadow-sm); }
.team-member .avatar-fallback {
  width: 100%; aspect-ratio: 1; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--charcoal), var(--charcoal-soft));
  color: var(--gold); font-family: var(--display); font-size: 2.6rem;
}
.team-member h3 { margin-bottom: .1rem; }
.team-member .role { color: var(--gold-deep); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.team-member p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Products ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 2.4rem; font-size: 1.7rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose ul li { margin-bottom: .5rem; }
.prose .fineprint { font-size: .9rem; color: var(--muted); }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.spec {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.2rem 1.4rem;
}
.spec .k { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec .v { font-family: var(--serif); font-size: 1.5rem; color: var(--charcoal); font-weight: 600; }

/* ---------- Investors ---------- */
.doc-list { max-width: 760px; margin: 0 auto; display: grid; gap: 1rem; }
.doc-card {
  display: flex; align-items: center; gap: 1.3rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.8rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--gold); }
.doc-card .doc-icon {
  flex: none; width: 48px; height: 48px; border-radius: 10px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: #fdf0ef; color: #d1443b;
}
.doc-card .doc-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--charcoal); }
.doc-card .doc-sub { font-size: .85rem; color: var(--muted); }
.doc-card .doc-arrow { margin-left: auto; color: var(--gold-deep); font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: #45454e; margin-bottom: .45rem; letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem;
  padding: .8rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,164,92,.18); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-info { background: var(--charcoal); color: #fff; border-radius: var(--radius); padding: 2.4rem; }
.contact-info h3 { color: #fff; }
.contact-info .info-item { display: flex; gap: .9rem; margin-bottom: 1.3rem; color: rgba(255,255,255,.82); font-size: .96rem; }
.contact-info .info-item i { color: var(--gold); margin-top: 3px; }
.contact-info .map { border: 0; border-radius: var(--radius-sm); width: 100%; height: 220px; margin-top: 1rem; filter: grayscale(.2); }

/* ---------- Legal / FPC document ---------- */
.legal { max-width: 840px; margin: 0 auto; }
.legal .block { margin-bottom: 1.6rem; }
.legal .doc-heading {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--charcoal); margin: 2.2rem 0 .4rem;
  padding-bottom: .4rem; border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.legal p { color: #3c3c44; }
.legal ol, .legal ul { padding-left: 1.4rem; }
.legal li { margin-bottom: .7rem; color: #3c3c44; }
.legal .address-box {
  background: var(--cream); border-left: 3px solid var(--gold);
  padding: 1.3rem 1.6rem; border-radius: var(--radius-sm); margin-top: 2rem;
}
.lang-toggle {
  display: inline-block; margin-top: 1rem;
  padding: .5rem 1.2rem; border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 999px; font-size: .85rem; color:#fff; transition: .2s;
}
.lang-toggle:hover { background:#fff; color: var(--charcoal); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--charcoal), var(--charcoal-deep)); color:#fff; text-align:center; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 1.8rem; }

/* ---------- Partners ---------- */
.partner-note { max-width: 760px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-deep); color: rgba(255,255,255,.72); padding: 3.5rem 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { height: 42px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .92rem; max-width: 320px; }
.footer-col h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.1rem; }
.footer-col a { display: block; color: rgba(255,255,255,.72); font-size: .94rem; margin-bottom: .65rem; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- Reveal animation (progressive enhancement) ---------- */
/* Visible by default so content always shows without/with broken JS. */
.reveal { opacity: 1; transform: none; }
/* Only hide-then-animate when JS has confirmed support. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feature-row, .contact-grid { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .feature-media img { max-width: 260px; }
  .team-member { grid-template-columns: 1fr; text-align: center; }
  .team-member img, .team-member .avatar-fallback { max-width: 180px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .spec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: flex-start;
    gap: 0; background: #fff; padding: 1rem 24px 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin: .8rem 0 0; }
  .nav-links .nav-cta a { display: inline-flex; width: auto; padding: .7rem 1.5rem; border-bottom: 0; }
  .nav-toggle { display: block; }
  .hero-stats { gap: 1.6rem; }
}

/* ---------- Policy pages: placeholders + regulatory table ---------- */
.legal .updated { color:#8a8a92; font-size:.9rem; margin:-.4rem 0 1.4rem; }
.legal .todo {
  background:#fff4d6; border-bottom:1px dashed #c9a13a;
  padding:0 .3rem; border-radius:3px; font-weight:600; color:#7a5c00;
}
.legal .reg-table { width:100%; border-collapse:collapse; margin:1rem 0 .5rem; }
.legal .reg-table th, .legal .reg-table td {
  text-align:left; vertical-align:top; padding:.75rem .95rem;
  border-bottom:1px solid var(--line); font-size:.98rem; color:#3c3c44;
}
.legal .reg-table th {
  width:38%; color:var(--charcoal); font-family:var(--sans);
  font-weight:600; background:var(--cream);
}
