/* ==========================================
   ORLOV CAPITAL v2 — Tighter, Mobile-First
   Navy + Teal, Lora + DM Sans
   ========================================== */

:root {
  --navy: #0A2540;
  --navy-deep: #071E35;
  --navy-mid: #1A3550;
  --navy-light: #153555;
  --teal: #0891B2;
  --teal-dk: #0D7A99;
  --teal-lt: #E0F2F9;
  --teal-hero: #7DD3FC;
  --text: #1E293B;
  --muted: #475569;
  --faint: #94A3B8;
  --white: #ffffff;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --border: #E2E8F0;
  --shadow: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --radius: 10px;
  --serif: 'Lora', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 860px;
}

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

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

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

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

/* ==========================================
   NAV
   ========================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 37, 64, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

.nav-scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.2); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.nav-logo svg { flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; }

.nav-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.nav-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 7px 18px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--teal-dk) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0; right: 0;
  background: var(--navy);
  z-index: 99;
  flex-direction: column;
  padding: 20px 24px;
  gap: 12px;
}

.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-menu .nav-cta {
  display: inline-block;
  text-align: center;
  margin-top: 8px;
  border-bottom: none;
  padding: 12px 24px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .menu-open .mobile-menu { display: flex; }
  .menu-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* ==========================================
   HERO
   ========================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-light) 100%);
  padding: 120px 0 64px;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-1 {
  width: 500px; height: 500px;
  top: -80px; right: -80px;
  background: radial-gradient(circle, rgba(8,145,178,0.09) 0%, transparent 70%);
}

.hero-glow-2 {
  width: 400px; height: 400px;
  bottom: -60px; left: -40px;
  background: radial-gradient(circle, rgba(8,145,178,0.06) 0%, transparent 70%);
}

.hero-glow-3 {
  width: 500px; height: 500px;
  top: 40px; right: -120px;
  background: radial-gradient(circle, rgba(8,145,178,0.07) 0%, transparent 70%);
}

.hero-glow-4 {
  width: 500px; height: 500px;
  bottom: -80px; left: -80px;
  background: radial-gradient(circle, rgba(8,145,178,0.07) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; }

.eyebrow-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 5px 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 30px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  max-width: 680px;
  margin: 0 auto 20px;
}

.text-teal { color: var(--teal-hero); }

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dk); }

.btn-outline {
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.04);
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
}

.section-light { background: var(--white); }

.section-dark {
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-light) 100%);
  color: var(--white);
}

.section-cta {
  background: var(--gray-50);
  text-align: center;
  padding: 64px 0;
}

.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-light h2 { color: var(--navy); }

.section-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 24px;
  line-height: 1.75;
}

/* ==========================================
   THESIS
   ========================================== */

.thesis-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.thesis-block {
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
}

.thesis-block h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.thesis-block p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

.thesis-terms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.term {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.term-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.term-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-hero);
  line-height: 1.4;
}

/* ==========================================
   PORTFOLIO
   ========================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}

.port-card {
  display: block;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

a.port-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.port-card-muted {
  background: var(--gray-50);
  border-color: var(--gray-200);
}

.port-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.port-card h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.port-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.port-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

/* Real Estate sub-section */
.re-section {
  padding-top: 16px;
}

.re-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.re-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  padding: 5px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 30px;
  background: var(--gray-50);
}

/* ==========================================
   GIVING BACK
   ========================================== */

.giving-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.giving-card {
  display: block;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
  transition: background 0.25s;
}

a.giving-card:hover {
  background: rgba(255,255,255,0.05);
}

.giving-card h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.giving-type {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.giving-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

.giving-card .port-link {
  color: var(--teal-hero);
}

/* ==========================================
   CTA
   ========================================== */

.cta-content { max-width: 580px; margin: 0 auto; }

.section-cta h2 { color: var(--navy); }

.cta-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.section-cta .btn-outline {
  border-color: var(--gray-300);
  color: var(--navy);
}

.section-cta .btn-outline:hover {
  border-color: var(--navy);
  background: rgba(10,37,64,0.04);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding: 40px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}

.footer p, .footer a {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
}

.footer a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* ==========================================
   SCROLL REVEAL
   ========================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .thesis-terms {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 500px) {
  .hero { padding: 110px 0 48px; min-height: auto; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .section { padding: 48px 0; }
  .thesis-terms { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .term-value { font-size: 13px; }
}
