/* ============================================
   KruFund — Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

/* --- Reset & Base --- */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: #3A3632;
  background-color: #F5F0EB;
}

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

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

/* --- Design Tokens --- */

:root {
  --cream:        #F5F0EB;
  --blue:         #6B3A3A;
  --deep:         #3B2020;
  --charcoal:     #3A3632;
  --camel:        #C4A77D;
  --slate:        #8C7B6E;
  --max-width:    900px;
  --side-margin:  15%;
}

/* --- Typography --- */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.25;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; letter-spacing: 0.12em; }

p, li {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: #3A3632;
}

/* --- Layout --- */

.page-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.section {
  padding: 5rem var(--side-margin);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Divider --- */

.divider {
  border: none;
  border-top: 1px solid var(--camel);
  margin: 0;
}

.section-inner .divider {
  margin: 3.5rem 0;
}

/* --- Navigation --- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--side-margin);
  background-color: var(--deep);
  transition: background-color 0.3s ease;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.nav-logo a {
  color: var(--cream);
  transition: opacity 0.2s;
}

.nav-logo a:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--cream);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero Sections --- */

.hero {
  background-color: var(--deep);
  color: var(--cream);
  padding: 10rem var(--side-margin) 6rem;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
}

.hero-home {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.7;
  max-width: 560px;
}

.hero-home .subtitle {
  margin: 0 auto 3rem;
  color: var(--slate);
}

.hero .body-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.8;
  line-height: 1.7;
  max-width: 560px;
  margin-top: 1.5rem;
}

/* --- Home Page Links --- */

.home-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.home-link {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--camel);
  padding: 0.7rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.home-link:hover {
  border-bottom-color: var(--camel);
}

.home-link-arrow {
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 0.2s ease;
  font-size: 0.85em;
}

.home-link:hover .home-link-arrow {
  transform: translateX(3px);
}

/* --- Pull Quote --- */

.pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.55;
  color: var(--blue);
  border-left: 2px solid var(--camel);
  padding-left: 1.75rem;
  margin-bottom: 2.5rem;
  max-width: 680px;
}

/* --- Service Tiles --- */

.tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.tile {
  border: 1px solid var(--slate);
  background-color: var(--cream);
  padding: 2rem 1.75rem;
  transition: border-color 0.3s;
}

.tile:hover {
  border-color: var(--blue);
}

.tile h4 {
  color: var(--blue);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.tile p {
  font-size: 0.88rem;
  color: var(--charcoal);
  line-height: 1.7;
}

/* --- Split Section (PE Exit) --- */

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.split-left {
  background-color: var(--deep);
  color: var(--cream);
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 4.5rem;
  color: var(--camel);
  line-height: 1.1;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.stat-caption {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.7;
  max-width: 280px;
}

.split-right {
  background-color: var(--cream);
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-right h2 {
  color: var(--deep);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.split-right p {
  font-size: 0.92rem;
  margin-bottom: 2rem;
  max-width: 420px;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  font-size: 0.88rem;
  color: var(--charcoal);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--camel);
  padding-left: 0;
}

.checklist li:last-child {
  border-bottom: none;
}

/* --- Deliverables --- */

.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.deliverable-col h3 {
  color: var(--blue);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.35rem;
}

.deliverable-col .col-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.deliverable-col ul {
  list-style: none;
  padding: 0;
}

.deliverable-col li {
  font-size: 0.88rem;
  color: var(--charcoal);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(196, 167, 125, 0.3);
}

.deliverable-col li:last-child {
  border-bottom: none;
}

.deliverables-footer {
  margin-top: 2.5rem;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--slate);
  border-top: 1px solid var(--camel);
  padding-top: 1.5rem;
}

/* --- Team Cards --- */

.team-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.team-card {
  border: 1px solid var(--slate);
  background-color: var(--cream);
  padding: 2rem 1.5rem;
}

.team-card h4 {
  color: var(--blue);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.team-card .role-descriptor {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--camel);
  margin-bottom: 1.25rem;
}

.team-card p {
  font-size: 0.84rem;
  color: var(--charcoal);
  line-height: 1.65;
}

.team-footer {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--slate);
  font-style: italic;
}

/* --- Why Advisory Kru (Contrast Section) --- */

.contrast-section {
  background-color: var(--deep);
  color: var(--cream);
}

.contrast-section h2 {
  color: var(--cream);
}

.contrast-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(196, 167, 125, 0.25);
}

.contrast-row:last-of-type {
  border-bottom: none;
}

.contrast-label {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
}

.contrast-label-others {
  color: var(--slate);
}

.contrast-label-ak {
  color: var(--blue);
}

.contrast-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--cream);
  opacity: 0.85;
}

.contrast-side-others .contrast-text {
  opacity: 0.55;
}

/* --- Contact / CTA --- */

.cta-section .subtitle {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.engagement-details {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.engagement-details li {
  font-size: 0.88rem;
  color: var(--charcoal);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(196, 167, 125, 0.3);
}

.engagement-details li:last-child {
  border-bottom: none;
}

.contact-email {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  border-bottom: 1px solid var(--camel);
  padding-bottom: 0.2rem;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--deep);
}

/* --- Footer --- */

.site-footer {
  padding: 2.5rem var(--side-margin);
  text-align: center;
  border-top: 1px solid var(--camel);
}

.site-footer p {
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.04em;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 0.95rem !important;
  color: var(--charcoal) !important;
  margin-bottom: 0.75rem;
}

/* --- KFI Page --- */

.kfi-body {
  font-size: 0.95rem;
  max-width: 600px;
  line-height: 1.8;
  color: var(--cream);
  opacity: 0.85;
}

.kfi-hero {
  min-height: 100vh;
  align-items: center;
}

/* --- Responsive --- */

@media (max-width: 900px) {
  :root {
    --side-margin: 8%;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }

  .hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: 50vh;
  }

  .hero-home {
    min-height: 100vh;
  }

  .tiles-grid,
  .deliverables-grid,
  .contrast-row {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-left, .split-right {
    padding: 3.5rem var(--side-margin);
  }

  .team-cards {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 3.5rem;
  }
}

@media (max-width: 600px) {
  :root {
    --side-margin: 6%;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .section {
    padding: 3.5rem var(--side-margin);
  }

  .hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .home-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--deep);
    flex-direction: column;
    padding: 1.5rem var(--side-margin);
    gap: 1.2rem;
    border-top: 1px solid rgba(196, 167, 125, 0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .pull-quote {
    font-size: 1.2rem;
  }

  .stat-number {
    font-size: 2.8rem;
  }
}
