/* ============================================================
   JOSHUA TREE CAPITAL MANAGEMENT — Website Stylesheet
   Design: Bowmoor-inspired clean, minimal, institutional.
   Brand palette: dark green + gold.
   ============================================================ */

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

:root {
  --black: #1B3A2D;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --warm-gray: #f0efec;
  --light-gray: #e8e7e3;
  --border: #dddbd6;
  --mid-gray: #a09c94;
  --text: #3d3d3a;
  --text-light: #6b6860;
  --gold: #C8A951;
  --gold-light: #d4ba6a;
  --dark-band: #0f231a;
  --charcoal: #142e23;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', Helvetica, sans-serif;
  --body-serif: 'Source Serif 4', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAVIGATION — flat links, no dropdowns
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.nav.nav-dark {
  background: rgba(27,58,45,0.85);
  border-bottom-color: rgba(255,255,255,0.06);
}
.nav.nav-dark .nav-logo-name,
.nav.nav-dark .nav-links a { color: rgba(255,255,255,0.9); }
.nav.nav-dark .nav-logo-sub { color: rgba(255,255,255,0.35); }
.nav.nav-dark .nav-toggle span { background: #fff; }
.nav.nav-dark .nav-links a:hover { color: #fff; }
.nav.nav-dark .nav-links a.active { color: #fff; }
.nav.nav-dark .nav-logo svg line { stroke: #fff; }
.nav.nav-dark .nav-logo svg circle { fill: #fff; }

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center; height: 80px;
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--black);
}
.nav-logo svg { flex-shrink: 0; vertical-align: middle; margin-top: -2px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; justify-content: center; }
.nav-logo-name {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: 0.3px; color: var(--black); transition: color 0.3s;
}
.nav-logo-sub {
  font-size: 9px; letter-spacing: 2.8px; text-transform: uppercase;
  color: var(--mid-gray); font-weight: 500; margin-top: 4px; transition: color 0.3s;
}
.nav-links {
  display: flex; gap: 6px; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text);
  text-decoration: none; transition: color 0.2s; position: relative;
  padding: 8px 14px; display: inline-block;
}
.nav-links a:hover { color: var(--black); }
.nav-links a.active { color: var(--black); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 2px; background: var(--gold);
}

/* Mobile nav */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--black); transition: all 0.3s; }

/* ============================================================
   HERO — FULL IMAGE
   ============================================================ */
.hero-image {
  position: relative; min-height: 90vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero-image::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,35,26,0.45) 0%, rgba(15,35,26,0.25) 60%, rgba(15,35,26,0.1) 100%);
}
.hero-image-content {
  position: relative; z-index: 2;
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 40px;
  padding-top: 80px;
}
.hero-image-content .hero-label {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 20px;
}
.hero-image-content h1 {
  font-family: var(--serif); font-size: 64px; font-weight: 300;
  line-height: 1.1; color: var(--white); max-width: 750px;
  margin-bottom: 24px; letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-image-content .hero-sub {
  font-family: var(--body-serif); font-size: 20px; font-weight: 300;
  line-height: 1.8; color: rgba(255,255,255,0.75); max-width: 560px; margin-bottom: 40px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
.hero-cta {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white); background: var(--gold);
  padding: 16px 40px; border-radius: 3px;
  text-decoration: none; transition: all 0.25s;
}
.hero-cta:hover { background: var(--gold-light); }

/* Page-level hero (shorter, section header) */
.page-hero {
  padding: 160px 40px 80px;
  text-align: center;
  background: var(--dark-band);
}
.page-hero .section-label { color: var(--gold); }
.page-hero h1 {
  font-family: var(--serif); font-size: 54px; font-weight: 300;
  color: var(--white); margin-bottom: 16px;
}
.page-hero p {
  font-family: var(--body-serif); font-size: 19px; font-weight: 300;
  color: rgba(255,255,255,0.55); max-width: 620px; margin: 0 auto;
}

/* Page header — text-only pages */
.page-header {
  padding: 140px 40px 60px;
  max-width: 1200px; margin: 0 auto; text-align: center;
}
.page-header h1 {
  font-family: var(--serif); font-size: 54px; font-weight: 300;
  color: var(--black); margin-bottom: 16px;
}
.page-header p {
  font-family: var(--body-serif); font-size: 19px; font-weight: 300;
  color: var(--text-light); max-width: 620px; margin: 0 auto;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 100px 40px; max-width: 1200px; margin: 0 auto; }
.section-narrow { padding: 100px 40px; max-width: 800px; margin: 0 auto; }
.section-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 12px;
}
.section h2 {
  font-family: var(--serif); font-size: 44px; font-weight: 300;
  color: var(--black); margin-bottom: 16px; letter-spacing: -0.3px;
}
.section-intro {
  font-family: var(--body-serif); font-size: 19px; font-weight: 300;
  line-height: 1.8; color: var(--text-light); max-width: 700px; margin-bottom: 56px;
}
.divider { width: 40px; height: 2.5px; background: var(--gold); margin-bottom: 28px; }

/* ============================================================
   GRIDS & LAYOUT
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 4px;
  padding: 40px; transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  border-color: var(--gold); box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.card h3 {
  font-family: var(--serif); font-size: 26px; font-weight: 400;
  color: var(--black); margin-bottom: 14px;
}
.card p { font-size: 16px; line-height: 1.75; color: var(--text-light); }

/* Stat cards */
.stat-card {
  text-align: center; padding: 40px 20px;
  background: var(--black); border-radius: 4px; border: none;
}
.stat-val {
  font-family: var(--serif); font-size: 48px; font-weight: 400;
  color: var(--white); line-height: 1.1;
}
.stat-label {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.6); font-weight: 600; margin-top: 10px;
}

/* ============================================================
   SECTOR GRID (Strategy page)
   ============================================================ */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.sector-item {
  background: var(--white); border: 1px solid var(--border); border-radius: 4px;
  padding: 28px 30px; transition: border-color 0.2s, box-shadow 0.2s;
}
.sector-item:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.sector-item h4 {
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; margin-bottom: 8px;
}
.sector-item p { font-size: 15px; color: var(--text-light); line-height: 1.65; }
.sector-item .count {
  font-family: var(--serif); font-size: 30px; font-weight: 400;
  color: var(--gold); float: right; margin-top: -4px;
}

/* ============================================================
   BANDS & BACKGROUNDS
   ============================================================ */
.band { background: var(--off-white); border-top: 1px solid var(--light-gray); border-bottom: 1px solid var(--light-gray); }
.band-dark { background: var(--dark-band); color: var(--white); }
.band-dark h2 { color: var(--white); }
.band-dark .section-intro { color: rgba(255,255,255,0.5); }
.band-dark .section-label { color: var(--gold); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 600; color: var(--text); margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 18px; font-family: var(--sans); font-size: 16px;
  color: var(--text); background: var(--white); border: 1px solid var(--border);
  border-radius: 3px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--black); box-shadow: 0 0 0 3px rgba(27,58,45,0.05);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.btn {
  display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--white);
  background: var(--black); padding: 16px 36px; border: none; border-radius: 3px;
  cursor: pointer; transition: background 0.2s;
}
.btn:hover { background: #234d3a; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--charcoal); padding: 70px 40px 40px; color: rgba(255,255,255,0.4); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo-name { font-family: var(--serif); font-size: 20px; color: var(--white); font-weight: 400; }
.footer-logo-sub { font-size: 9px; letter-spacing: 2.8px; text-transform: uppercase; color: #555; margin-top: 4px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-disc { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,0.22); max-width: 900px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 24px; font-size: 12px; }

/* ============================================================
   INVESTOR PORTAL
   ============================================================ */
.portal-gate { max-width: 440px; margin: 0 auto; padding: 48px 0 80px; }
.portal-lock {
  width: 64px; height: 64px; margin: 0 auto 24px;
  border: 2px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.portal-lock svg { width: 28px; height: 28px; }
.portal-form { margin-top: 32px; }
.portal-form label {
  display: block; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 600; color: var(--text); margin-bottom: 6px;
}
.portal-form input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 15px; font-family: var(--sans);
  margin-bottom: 16px; transition: border-color 0.2s;
}
.portal-form input:focus { outline: none; border-color: var(--black); }
.portal-error {
  display: none; background: #fef2f2; border: 1px solid #c0392b;
  color: #c0392b; padding: 12px 16px; border-radius: 4px;
  font-size: 13px; margin-bottom: 16px;
}
.portal-content { display: none; }
.portal-content.visible { display: block; }
.portal-gate.hidden { display: none; }

.doc-card {
  display: flex; align-items: center; gap: 20px; padding: 24px;
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 6px; margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.doc-card:hover { border-color: var(--gold); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.doc-icon {
  width: 48px; height: 56px; background: var(--black);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-icon span { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.doc-info h3 { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--black); margin-bottom: 4px; }
.doc-info p { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.doc-info .doc-date { font-size: 11px; color: var(--gold); font-weight: 600; letter-spacing: .5px; margin-top: 6px; }
.doc-actions { margin-left: auto; flex-shrink: 0; }
.doc-actions a {
  display: inline-block; padding: 8px 20px; font-size: 12px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase; color: var(--black);
  border: 1px solid var(--black); border-radius: 3px;
  text-decoration: none; transition: all 0.2s;
}
.doc-actions a:hover { background: var(--black); color: #fff; }
.doc-section-label {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600; color: var(--text-light); margin: 40px 0 16px;
}
.portal-disc {
  margin-top: 40px; padding: 20px; background: var(--off-white);
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 12px; line-height: 1.6; color: var(--text-light);
}
.portal-disc b { color: var(--text); }
.logout-btn {
  display: inline-block; margin-top: 24px; font-size: 12px;
  color: var(--text-light); text-decoration: underline; cursor: pointer;
  background: none; border: none; font-family: var(--sans);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-inner { height: 68px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px;
    left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 4px; box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  }
  .nav.nav-dark .nav-links.open { background: var(--dark-band); border-bottom-color: rgba(255,255,255,0.06); }

  .hero-image { min-height: 80vh; }
  .hero-image-content h1 { font-size: 38px; }
  .hero-image-content .hero-sub { font-size: 17px; }
  .hero-image-content { padding: 0 24px; }

  .page-hero { padding: 120px 24px 56px; }
  .page-hero h1 { font-size: 34px; }

  .section, .section-narrow { padding: 56px 24px; }
  .section h2 { font-size: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .stat-val { font-size: 36px; }
  .nav-logo-name { font-size: 19px; }
  .page-header { padding: 100px 24px 40px; }
  .page-header h1 { font-size: 34px; }

  .doc-card { flex-direction: column; text-align: center; gap: 12px; }
  .doc-actions { margin-left: 0; }
}

@media (max-width: 600px) {
  .hero-image-content h1 { font-size: 32px; }
  .page-hero h1 { font-size: 28px; }
  .section h2 { font-size: 28px; }
  .page-header h1 { font-size: 28px; }
  .sector-grid { grid-template-columns: 1fr; }
}
