/* =========================
Brain Bites Group — styles.css v1.0
Hybrid Institutional Design System
========================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* 1) Design Tokens */
:root {
  /* Colors */
  --navy: #0B1F3B;
  --blue: #1F4E79;
  --accent: #F2C94C;
  --bg: #F7F9FC;
  --charcoal: #1C1C1C;
  --white: #FFFFFF;

  /* Text */
  --text: #0E1726;
  --muted: #475569;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --h1: clamp(2.2rem, 3vw + 1rem, 3rem);
  --h2: clamp(1.8rem, 2vw + 1rem, 2.25rem);
  --h3: clamp(1.4rem, 1.2vw + 1rem, 1.75rem);
  --body: 1.125rem;
  --small: 0.875rem;
  --lh: 1.6;

  /* Layout & Spacing */
  --max: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-soft: 0 6px 18px rgba(2, 6, 23, 0.08);
  --s1: 8px; --s2: 12px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 56px; --s8: 80px;
}

/* 2) Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); font-size: var(--body);
  line-height: var(--lh); color: var(--text); background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: all 0.2s ease;}
a:hover { text-decoration: underline; }

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

/* Logo Controls */
.logo { display: block; max-height: 48px; width: auto; }
.logo-large { max-height: 80px; }
.logo-badge { max-height: 28px; }
.logo-center { margin: 0 auto; }

/* 3) Typography */
h1, h2, h3 { margin: 0 0 var(--s3) 0; letter-spacing: -0.02em; }
h1 { font-size: var(--h1); font-weight: 800; color: var(--navy); line-height: 1.2;}
h2 { font-size: var(--h2); font-weight: 700; color: var(--navy); line-height: 1.3;}
h3 { font-size: var(--h3); font-weight: 600; color: var(--navy); }
p { margin: 0 0 var(--s4) 0; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: var(--small); }

/* 4) Sections */
.section { padding: var(--s8) 0; }
.section--tight { padding: var(--s7) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark p, .section--dark .muted { color: var(--white); }

/* 5) Grid */
.grid-2 { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: var(--s5); grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 6) Cards */
.card {
  background: var(--white); border-radius: var(--radius-md);
  padding: var(--s5); box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-5px); }
.card h3 { margin-bottom: var(--s2); font-size: 1.25rem; }
.card p { margin-bottom: 0; font-size: 1rem; color: var(--muted); }

/* 7) Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2); padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 600; border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { filter: brightness(0.85); text-decoration: none; }
.btn-secondary { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-secondary:hover { background: rgba(11, 31, 59, 0.06); text-decoration: none; }
.button-group { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap;}

/* 8) Header/Footer */
.site-header { background: var(--white); border-bottom: 1px solid rgba(15, 23, 42, 0.08); position: sticky; top: 0; z-index: 1000;}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--s4); }
.nav-links { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center;}
.nav-links a { color: var(--navy); font-weight: 600; font-size: 0.95rem;}

.site-footer { background: var(--navy); color: var(--white); padding: var(--s7) 0; }
.site-footer a { color: var(--white); text-decoration: underline; font-weight: 500;}
.footer-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; margin-bottom: var(--s5);}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr; } }

/* 9) Badges & Lists */
.badge {
  display: inline-flex; align-items: center; gap: var(--s2); padding: 10px 14px;
  border-radius: 999px; background: rgba(31, 78, 121, 0.10); color: var(--navy);
  font-weight: 700; font-size: var(--small); letter-spacing: 0.5px;
}
.badge .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }

ul.impact-list { list-style: none; padding: 0; text-align: left; max-width: 800px; margin: 0 auto; }
ul.impact-list li { padding: var(--s2) 0; border-bottom: 1px solid #e2e8f0; font-size: 1.1rem; color: var(--navy); display: flex; align-items: center; gap: 15px;}
ul.impact-list li::before { content: '✓'; color: var(--blue); font-weight: bold; }