/* ============================================
   VINCE CARUSO LEGAL INTELLIGENCE PORTAL
   Shared Design System
   Gold/Navy/Cream — Cormorant + Inter
   ============================================ */

:root {
  --navy: #1A1A2E;
  --gold: #C5A258;
  --gold-light: #D4B872;
  --cream: #FAF8F5;
  --dark: #0F0F1A;
  --blue: #003B5C;
  --red: #C0392B;
  --green: #27AE60;
  --yellow: #D4AC0D;
  --gray: #8892A0;
  --gray-light: #B0B8C4;
  --white-10: rgba(255,255,255,0.1);
  --white-06: rgba(255,255,255,0.06);
  --white-04: rgba(255,255,255,0.04);
  --gold-15: rgba(197,162,88,0.15);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --radius: 2px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy);
  color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; }

/* ---- NAV ---- */
.site-nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(26,26,46,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(197,162,88,0.15);
  padding: 14px 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.site-nav .nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 700; color: var(--gold);
  letter-spacing: 0.5px; text-decoration: none;
}
.site-nav .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav .nav-links a {
  color: var(--cream); font-size: 0.78rem; padding: 6px 14px;
  border-radius: 20px; opacity: 0.7; font-weight: 500;
  transition: var(--transition); letter-spacing: 0.3px;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a.active { opacity: 1; background: var(--gold-15); color: var(--gold); }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
section { padding: 120px 0; }

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; font-weight: 600;
}

/* ---- HEADINGS ---- */
h2.section-title {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  margin-bottom: 24px; font-weight: 400; line-height: 1.2;
}
h2.section-title .gold { color: var(--gold); }
.lead {
  font-size: 1.1rem; max-width: 700px; margin-bottom: 56px;
  line-height: 1.85; color: rgba(255,255,255,0.55); font-weight: 300;
}

/* ---- CREAM SECTIONS ---- */
.section-cream { background: var(--cream); color: var(--navy); }
.section-cream h2.section-title { color: var(--navy); }
.section-cream .section-label { color: var(--gold); }
.section-cream .lead { color: var(--gray); }
.section-cream .card {
  background: white; border: 1px solid rgba(0,0,0,0.06);
}
.section-cream .card h3 { color: var(--navy); }
.section-cream table th { background: var(--navy); color: var(--cream); }
.section-cream table td { border-bottom-color: #e0d5c1; color: var(--navy); }

/* ---- DARK SECTIONS ---- */
.section-dark { background: var(--dark); }

/* ---- GRIDS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* ---- CARDS ---- */
.card {
  background: var(--white-04);
  border: 1px solid var(--white-06);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
  position: relative;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--gold);
  transition: height 0.3s ease;
}
.card:hover::before { height: 100%; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem; font-weight: 600; margin-bottom: 10px;
  color: var(--gold); letter-spacing: 0.3px;
}
.card p { font-size: 0.92rem; line-height: 1.75; opacity: 0.85; }

/* ---- TAGS ---- */
.tag {
  display: inline-block; font-size: 0.68rem; padding: 3px 12px;
  border-radius: 20px; background: var(--gold-15); color: var(--gold);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.tag.green { background: rgba(39,174,96,0.15); color: var(--green); }
.tag.yellow { background: rgba(212,172,13,0.2); color: var(--yellow); }
.tag.red { background: rgba(192,57,43,0.15); color: var(--red); }
.tag.blue { background: rgba(0,59,92,0.2); color: #5BA4D9; }

/* ---- BADGES ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px;
}
.badge.safe { background: rgba(39,174,96,0.15); color: var(--green); }
.badge.watch { background: rgba(212,172,13,0.2); color: var(--yellow); }
.badge.danger { background: rgba(192,57,43,0.15); color: var(--red); }

/* ---- TABLES ---- */
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 20px 0; }
th {
  background: rgba(197,162,88,0.08); color: var(--gold);
  text-align: left; padding: 14px 18px; font-weight: 600;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px;
}
td { padding: 12px 18px; border-bottom: 1px solid var(--white-06); }

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: linear-gradient(135deg, rgba(197,162,88,0.08), rgba(197,162,88,0.02));
  border-left: 3px solid var(--gold);
  padding: 28px 32px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 28px 0;
}
.highlight-box h4 { color: var(--gold); margin-bottom: 8px; font-size: 1.15rem; }
.section-cream .highlight-box {
  background: linear-gradient(135deg, rgba(26,26,46,0.05), rgba(26,26,46,0.01));
  border-left-color: var(--navy);
}
.section-cream .highlight-box h4 { color: var(--navy); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px; font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.5px; cursor: pointer;
  transition: var(--transition); border: none; font-family: 'Inter', sans-serif;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: #252545; }
.btn-outline {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
}
.btn-outline:hover { background: var(--gold-15); }

/* ---- HERO STATS ---- */
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem; color: #B8973E; font-weight: 700; display: block;
}
.hero-stat .label {
  font-size: 0.72rem; opacity: 0.55; text-transform: uppercase;
  letter-spacing: 2.5px; margin-top: 6px;
}

/* ---- CHART CONTAINER ---- */
.chart-container {
  background: var(--white-04); border-radius: var(--radius-lg);
  padding: 28px; margin: 24px 0;
}
.section-cream .chart-container { background: white; box-shadow: var(--shadow-sm); }

/* ---- TIMELINE ---- */
.timeline { position: relative; padding-left: 44px; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: var(--gold);
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
  content: ''; position: absolute; left: -36px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--navy);
}
.timeline-item h4 { color: var(--gold); font-size: 1.2rem; margin-bottom: 6px; }
.timeline-item p { opacity: 0.8; font-size: 0.92rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--dark); padding: 48px 0; text-align: center;
  border-top: 1px solid rgba(197,162,88,0.12);
}
.site-footer .footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; color: var(--gold); margin-bottom: 12px; display: block;
}
.site-footer p { opacity: 0.45; font-size: 0.78rem; margin: 4px 0; }
.site-footer .disclaimer { margin-top: 20px; font-size: 0.68rem; opacity: 0.3; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .site-nav { padding: 12px 20px; }
  .site-nav .nav-links { display: none; }
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h2.section-title { font-size: 2rem; }
}

/* ---- PRINT ---- */
@media print {
  .site-nav, .site-footer { display: none; }
  section { padding: 30px 0; page-break-inside: avoid; }
  body { background: white; color: #111; }
  .card { border: 1px solid #ccc; break-inside: avoid; }
  .section-dark, .section-cream { background: white; color: #111; }
  h2.section-title, h2.section-title .gold { color: #111; }
  .hero-stat .num { color: #333; }
}

/* ---- GSAP REVEAL ---- */
/* Content visible by default. GSAP enhances if loaded. */
.reveal { opacity: 1; transform: none; }
