/* ============================================
   CEBM Website — Shared Design System
   Colors sampled directly from CEBM_LOGO_v2.png
   ============================================ */

:root {
  --ink: #1F383F;
  --slate: #2C5767;
  --teal-deep: #326874;
  --teal-accent: #3B8B82;
  --teal-mist: #EEF5F4;
  --teal-mist-2: #E3EFEE;
  --paper: #FFFFFF;
  --border: #D8E6E4;
  --max-width: 1120px;
  --radius: 4px;
  --shadow-soft: 0 2px 16px rgba(31, 56, 63, 0.06);
  --shadow-card: 0 4px 24px rgba(31, 56, 63, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
a { color: var(--teal-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal-accent); outline-offset: 3px; }

.italic-serif { font-family: 'Source Serif 4', Georgia, serif; font-style: italic; color: var(--slate); }

.mono {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section--mist { background: var(--teal-mist); }
.section--deep { background: var(--teal-deep); color: white; }
.section--deep h1, .section--deep h2, .section--deep h3 { color: white; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 56px; width: auto; }
.nav-logo-text { font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.15; }
.nav-logo-text span { display: block; font-size: 0.68rem; font-style: italic; color: var(--slate); font-weight: 400; }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { color: var(--ink); font-size: 0.93rem; font-weight: 500; }
.nav-links a:hover { color: var(--teal-accent); text-decoration: none; }
.nav-links a.active { color: var(--teal-accent); border-bottom: 2px solid var(--teal-accent); padding-bottom: 4px; }
.nav-links a.btn--primary, .nav-links a.btn--primary:hover { color: white; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 84px; left: 0; right: 0; bottom: 0;
    background: white; flex-direction: column; padding: 32px 24px;
    gap: 22px; transform: translateX(100%); transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 1.5px solid transparent;
  transition: all 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--teal-deep); color: white; }
.btn--primary:hover { background: var(--ink); }
.btn--outline { border-color: var(--teal-deep); color: var(--teal-deep); background: transparent; }
.btn--outline:hover { background: var(--teal-deep); color: white; }
.btn--outline-light { border-color: white; color: white; background: transparent; }
.btn--outline-light:hover { background: white; color: var(--teal-deep); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 90px;
  background: linear-gradient(160deg, var(--teal-mist) 0%, var(--paper) 60%);
  position: relative; overflow: hidden;
}
.hero-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-accent); margin-bottom: 18px; display: block; }
.hero h1 { max-width: 780px; }
.hero-sub { max-width: 640px; font-size: 1.15rem; color: var(--slate); margin-top: 22px; }

/* ---------- Hexagon frame (signature element) ---------- */
.hex-frame {
  width: 100%; aspect-ratio: 0.92/1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden; background: var(--teal-mist);
  position: relative;
}
.hex-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hex-divider { width: 14px; height: 14px; background: var(--teal-accent); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); flex-shrink: 0; }
.hex-bullet-list { list-style: none; }
.hex-bullet-list li { display: flex; gap: 14px; margin-bottom: 14px; align-items: flex-start; }
.hex-bullet-list .hex-divider { margin-top: 7px; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.pillar-card { padding: 8px 0; }
.pillar-card .hex-divider { margin-bottom: 18px; width: 20px; height: 20px; }

.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; margin-top: 48px; }
.board-card h3 { margin-top: 18px; margin-bottom: 2px; }
.board-role { font-size: 0.88rem; color: var(--teal-accent); font-weight: 600; margin-bottom: 12px; }
.board-bio { font-size: 0.92rem; color: var(--slate); }
.board-linkedin { font-size: 0.85rem; margin-top: 8px; display: inline-block; }

@media (max-width: 900px) {
  .grid-3, .board-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .board-grid { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
  .section { padding: 56px 0; }
}

/* ---------- Quote callout ---------- */
.quote-box {
  background: var(--teal-deep); color: white; padding: 52px; border-radius: var(--radius);
  position: relative; margin: 0 auto;
}
.quote-box blockquote { font-family: 'Source Serif 4', serif; font-size: 1.35rem; font-style: italic; line-height: 1.5; margin-bottom: 20px; }
.quote-attribution { font-size: 0.9rem; font-weight: 600; opacity: 0.9; }

/* ---------- Record / list tables ---------- */
.record-list { list-style: none; margin-top: 12px; }
.record-item {
  display: grid; grid-template-columns: 110px 1fr 140px 120px 90px;
  gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border);
}
.record-item:first-child { border-top: 1px solid var(--border); }
.record-title { font-weight: 600; }
.record-tag {
  display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 4px 10px;
  background: var(--teal-mist); color: var(--teal-deep); border-radius: 3px; width: fit-content;
}
.record-jurisdiction { font-size: 0.88rem; color: var(--slate); }
.record-link { font-size: 0.88rem; font-weight: 600; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--slate); background: var(--teal-mist); border-radius: var(--radius); font-style: italic; }

@media (max-width: 760px) {
  .record-item { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .record-tag { margin: 4px 0; }
}

/* ---------- Footnotes ---------- */
.footnotes { font-size: 0.82rem; color: var(--slate); border-top: 1px solid var(--border); padding-top: 28px; margin-top: 48px; }
.footnotes ol { padding-left: 20px; }
.footnotes li { margin-bottom: 10px; }
.footnotes .verified { color: var(--teal-accent); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.85); padding: 48px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo { font-family: 'Source Serif 4', serif; font-size: 1.05rem; color: white; }
.footer-links { display: flex; gap: 26px; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* ---------- Fade-in on scroll (progressive enhancement — content visible by default, JS opts in to animation) ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Misc ---------- */
.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-accent); margin-bottom: 12px; display: block; font-weight: 600; }
.lead { font-size: 1.1rem; color: var(--slate); max-width: 720px; }
.divider-line { height: 1px; background: var(--border); margin: 56px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.priority-list { list-style: none; margin-top: 16px; }
.priority-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.priority-list li:last-child { border-bottom: none; }
.badge-note { background: var(--teal-mist); border-left: 3px solid var(--teal-accent); padding: 18px 22px; font-size: 0.92rem; color: var(--slate); border-radius: 0 4px 4px 0; margin: 24px 0; }
