/* ══════════════════════════════════════════════════════════════════════
   ECA Digital Twin — Shared Design System
   Ethiopian Coffee Association  |  B³ Strategy 2030
   9 pages: Home, Atlas, Members, Compliance, Matchmaking,
            Events, Academy, Governance, Technology
   ══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ── Variables ───────────────────────────────────────────────────────── */
/* Dark earth backgrounds + Ethiopian Coffee green accents + heritage gold
   Brand: deep coffee browns for chrome, green for highlights/accents */
:root {
  /* Chrome — dark earth tones (nav, hero overlays, cards, footer) */
  --coffee-900: #1a0e0a;
  --coffee-800: #2c1810;
  --coffee-700: #3d2418;
  --coffee-600: #5c3a28;
  --coffee-500: #7a5240;
  --coffee-400: #9b7a6a;
  --coffee-300: #c4a898;
  --coffee-200: #deccbf;
  --coffee-100: #f0e6dd;
  --coffee-50:  #faf6f2;

  /* Brand accent — Ethiopian Coffee green (from logo) */
  --green-700: #3a5a2e;
  --green-600: #4e7a3a;
  --green-500: #6b944e;
  --green-400: #8aad6e;
  --green-300: #adc896;
  --green-100: #e8f0e0;

  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;

  --red-600: #dc2626;
  --red-100: #fee2e2;

  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;

  /* Heritage gold accent */
  --gold:       #b8860b;
  --gold-light: #d4a843;

  --cream:      #fdfbf7;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--coffee-800);
  background: var(--cream);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════════════════
   NAVIGATION — Toolbar + Left Drawer
   ══════════════════════════════════════════════════════════════════════ */

/* ── Toolbar ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 14, 10, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  height: 56px;
  gap: 0.75rem;
}

.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--coffee-300);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { color: white; background: rgba(255,255,255,0.08); }

.nav-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  min-width: 0;
}
.nav-title-main {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-title-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--coffee-400);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Drawer Overlay ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.open {
  display: block;
  opacity: 1;
}

/* ── Left Drawer ── */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: var(--coffee-900);
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.4);
}
.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-header {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(184,134,11,0.15);
}
.nav-drawer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.15rem;
}
.nav-drawer-subtitle {
  font-size: 0.75rem;
  color: var(--coffee-400);
  letter-spacing: 0.03em;
}
.nav-drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--coffee-400);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
}
.nav-drawer-close:hover { color: white; }

.nav-links {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  flex: 1;
  overflow-y: auto;
}

/* ── Level 1: Home link ── */
.nav-links > a.nav-home {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--coffee-200);
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.nav-links > a.nav-home:hover { color: white; background: rgba(255,255,255,0.04); }
.nav-links > a.nav-home.active { color: var(--gold); background: rgba(184,134,11,0.08); border-left-color: var(--gold); }

/* ── Level 1: Pillar section (collapsible) ── */
.nav-section {
  margin-top: 0.25rem;
}
.nav-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  border-top: 1px solid rgba(184,134,11,0.1);
}
.nav-section-header:hover { background: rgba(255,255,255,0.03); }
.nav-section-header .nav-chevron {
  font-size: 0.6rem;
  transition: transform 0.2s;
  color: var(--coffee-400);
}
.nav-section.open > .nav-section-header .nav-chevron { transform: rotate(90deg); }
.nav-section-body {
  display: none;
}
.nav-section.open > .nav-section-body { display: block; }

/* ── Level 2: Sub-group (collapsible) ── */
.nav-group {
  margin: 0;
}
.nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1.25rem 0.45rem 1.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coffee-300);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.nav-group-header:hover { color: white; background: rgba(255,255,255,0.03); }
.nav-group-header .nav-chevron {
  font-size: 0.55rem;
  transition: transform 0.2s;
  color: var(--coffee-500);
}
.nav-group.open > .nav-group-header .nav-chevron { transform: rotate(90deg); }
.nav-group.open > .nav-group-header { color: var(--coffee-200); }
.nav-group-body {
  display: none;
}
.nav-group.open > .nav-group-body { display: block; }

/* ── Level 3: Page links ── */
.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--coffee-300);
  text-decoration: none;
  padding: 0.5rem 1.25rem 0.5rem 2.5rem;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.nav-links a:hover {
  color: white;
  background: rgba(255,255,255,0.04);
}
.nav-links a.active {
  color: var(--gold);
  background: rgba(184,134,11,0.08);
  border-left-color: var(--gold);
  font-weight: 600;
}

/* Direct children of section-body (no sub-group) */
.nav-section-body > a {
  padding-left: 1.75rem;
}

/* ── Phase badges for future pages ── */
.nav-links span.nav-future {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--coffee-500);
  padding: 0.5rem 1.25rem 0.5rem 2.5rem;
  cursor: default;
}
.nav-phase-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: rgba(184,134,11,0.12);
  color: var(--gold-light);
}

.nav-links .nav-divider {
  height: 1px;
  background: rgba(184,134,11,0.1);
  margin: 0.5rem 1.25rem;
}

/* Legacy compat — hide old brand element if present */
.nav-brand { display: none; }

/* ══════════════════════════════════════════════════════════════════════
   HERO / COVER
   ══════════════════════════════════════════════════════════════════════ */

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--coffee-900) 0%, var(--coffee-700) 50%, var(--coffee-600) 100%);
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 14, 10, 0.6) 0%,
    rgba(26, 14, 10, 0.45) 40%,
    rgba(26, 14, 10, 0.7) 100%
  );
}
.hero > * { position: relative; z-index: 1; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: white;
}
.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--coffee-300);
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}
.hero .tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stat { text-align: center; }
.hero-stat .value {
  font-size: 2rem;
  font-weight: 800;
  color: white;
}
.hero-stat .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coffee-400);
  margin-top: 0.2rem;
}

/* Short hero variant for sub-pages */
.hero-short {
  min-height: 40vh;
  padding: 4rem 2rem 3rem;
}
.hero-short::before {
  background: linear-gradient(
    to bottom,
    rgba(26, 14, 10, 0.55) 0%,
    rgba(26, 14, 10, 0.4) 40%,
    rgba(26, 14, 10, 0.65) 100%
  );
}

/* ══════════════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════════════ */

.container        { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 960px;  margin: 0 auto; padding: 0 2rem; }

section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--coffee-200);
}
section:last-child { border-bottom: none; }

/* ══════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════════════════ */

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--coffee-800);
  margin-bottom: 0.3rem;
}
h2 .section-number {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--coffee-400);
  display: block;
  margin-bottom: 0.3rem;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--coffee-700);
  margin: 2rem 0 0.75rem;
}
h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--coffee-600);
  margin: 1.5rem 0 0.5rem;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--coffee-500);
  margin-bottom: 2rem;
  max-width: 720px;
}

p { margin-bottom: 1rem; }

/* ══════════════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════════════ */

.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card-elevated {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.card-gold {
  border-top: 4px solid var(--gold);
}
.card-gold-left {
  border-left: 4px solid var(--gold);
}
.card-hover {
  transition: all 0.25s ease;
  cursor: pointer;
}
.card-hover:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════════════
   GRIDS
   ══════════════════════════════════════════════════════════════════════ */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr;       gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ══════════════════════════════════════════════════════════════════════
   BADGES & TAGS
   ══════════════════════════════════════════════════════════════════════ */

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.badge-gold   { background: rgba(184,134,11,0.12); color: var(--gold); }
.badge-green  { background: var(--green-100);  color: var(--green-700); }
.badge-amber  { background: var(--amber-100);  color: var(--amber-600); }
.badge-red    { background: var(--red-100);    color: var(--red-600); }
.badge-blue   { background: var(--blue-100);   color: var(--blue-600); }
.badge-coffee { background: var(--coffee-100); color: var(--coffee-600); }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  background: var(--coffee-100);
  color: var(--coffee-600);
}
.tag-gold  { background: rgba(184,134,11,0.1); color: var(--gold); }
.tag-green { background: var(--green-100); color: var(--green-700); }

/* ══════════════════════════════════════════════════════════════════════
   STATS ROW
   ══════════════════════════════════════════════════════════════════════ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--coffee-700);
}
.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--coffee-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════════════
   OPI / PROGRESS BARS  (RAG-coloured horizontal bars)
   ══════════════════════════════════════════════════════════════════════ */

.progress-bar {
  height: 8px;
  background: var(--coffee-100);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.progress-fill-gold  { background: linear-gradient(90deg, var(--coffee-500), var(--gold)); }
.progress-fill-green { background: linear-gradient(90deg, var(--green-600), var(--green-500)); }
.progress-fill-blue  { background: linear-gradient(90deg, var(--blue-700), var(--blue-500)); }
.progress-fill-red   { background: var(--red-600); }
.progress-fill-amber { background: linear-gradient(90deg, var(--amber-700), var(--amber-500)); }

/* OPI card grid (used in strategy doc) */
.opi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.opi-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.opi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.opi-name { font-weight: 600; font-size: 0.95rem; }
.opi-scores {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}
.opi-current {
  background: var(--coffee-100);
  color: var(--coffee-600);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.opi-arrow  { color: var(--coffee-300); }
.opi-target {
  background: var(--green-100);
  color: var(--green-700);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* Horizontal OPI row (label | bar | score) for index page */
.opi-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.opi-row-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--coffee-600);
  width: 110px;
  flex-shrink: 0;
}
.opi-row-bar {
  flex: 1;
  height: 10px;
  background: var(--coffee-100);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.opi-row-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.8s ease;
}
.opi-row-fill.red   { background: var(--red-600); }
.opi-row-fill.amber { background: var(--amber-600); }
.opi-row-fill.green { background: var(--green-600); }
.opi-row-fill.gold  { background: var(--gold); }
.opi-row-score {
  font-size: 0.85rem;
  font-weight: 700;
  width: 38px;
  text-align: right;
  flex-shrink: 0;
}
.opi-row-score.red   { color: var(--red-600); }
.opi-row-score.amber { color: var(--amber-600); }
.opi-row-score.green { color: var(--green-700); }

/* ══════════════════════════════════════════════════════════════════════
   PILLAR CARDS  (B³ strategy)
   ══════════════════════════════════════════════════════════════════════ */

.pillar {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-top: 4px solid var(--gold);
}
.pillar-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.pillar-number {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  white-space: nowrap;
}
.pillar-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coffee-800);
}
.pillar-obj {
  color: var(--coffee-500);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.pillar-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════
   FEATURE CARDS  (icon + title + description, used in app grids)
   ══════════════════════════════════════════════════════════════════════ */

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}
.feature-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}
.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--coffee-700);
  margin-bottom: 0.4rem;
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--coffee-500);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   AUDIENCE / SELECTOR CARDS  (large, clickable, with benefit lists)
   ══════════════════════════════════════════════════════════════════════ */

.audience-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.audience-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.audience-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
}
.audience-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--coffee-700);
  margin-bottom: 0.75rem;
}
.audience-desc {
  font-size: 0.9rem;
  color: var(--coffee-500);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.audience-list li {
  font-size: 0.88rem;
  color: var(--coffee-500);
  line-height: 1.6;
  padding: 0.25rem 0 0.25rem 1.5rem;
  position: relative;
}
.audience-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════════
   BPMN / WORKFLOW STEPS  (horizontal flow with arrows)
   ══════════════════════════════════════════════════════════════════════ */

.workflow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 2rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.workflow-step {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.workflow-step-content {
  background: white;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-top: 3px solid var(--gold);
  text-align: center;
  min-width: 140px;
  max-width: 180px;
}
.workflow-step-number {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.workflow-step-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--coffee-700);
  margin-bottom: 0.25rem;
}
.workflow-step-desc {
  font-size: 0.78rem;
  color: var(--coffee-500);
  line-height: 1.4;
}
.workflow-arrow {
  color: var(--coffee-300);
  font-size: 1.3rem;
  padding: 0 0.4rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   DATA MODEL DIAGRAM  (entity boxes with arrows)
   ══════════════════════════════════════════════════════════════════════ */

.oodb-diagram {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid var(--coffee-200);
  margin-top: 2rem;
}
.oodb-diagram h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
}
.oodb-flow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.oodb-entity {
  background: var(--coffee-50);
  border: 2px solid var(--coffee-300);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 140px;
}
.oodb-entity.primary {
  border-color: var(--gold);
  background: rgba(184,134,11,0.06);
}
.oodb-entity-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--coffee-700);
  margin-bottom: 0.4rem;
}
.oodb-entity-fields {
  font-size: 0.75rem;
  color: var(--coffee-500);
  line-height: 1.5;
  font-family: 'Courier New', monospace;
}
.oodb-arrow {
  color: var(--coffee-300);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   SWOT GRID  (2x2, colour-coded top borders)
   ══════════════════════════════════════════════════════════════════════ */

.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.swot-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.swot-card.strengths     { border-top: 3px solid var(--green-600); }
.swot-card.weaknesses    { border-top: 3px solid var(--red-600); }
.swot-card.opportunities { border-top: 3px solid var(--blue-600); }
.swot-card.threats       { border-top: 3px solid var(--amber-600); }

.swot-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.swot-card.strengths     .swot-title { color: var(--green-700); }
.swot-card.weaknesses    .swot-title { color: var(--red-600); }
.swot-card.opportunities .swot-title { color: var(--blue-600); }
.swot-card.threats       .swot-title { color: var(--amber-600); }

.swot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.swot-list li {
  font-size: 0.88rem;
  color: var(--coffee-500);
  line-height: 1.5;
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}
.swot-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--coffee-300);
}

/* ══════════════════════════════════════════════════════════════════════
   COMPARISON TABLE  (membership tiers, feature comparisons)
   ══════════════════════════════════════════════════════════════════════ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.comparison-table thead th {
  background: var(--coffee-900);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.9rem 1.25rem;
  text-align: left;
}
.comparison-table thead th:first-child {
  background: var(--coffee-800);
}
.comparison-table thead th.highlight {
  background: var(--gold);
}
.comparison-table tbody td {
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
  color: var(--coffee-600);
  border-bottom: 1px solid var(--coffee-100);
  vertical-align: top;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--coffee-700);
  background: var(--coffee-50);
}
.comparison-table .check { color: var(--green-600); font-weight: 700; }
.comparison-table .cross { color: var(--coffee-300); }

/* ══════════════════════════════════════════════════════════════════════
   TRANSFORMATION  (Before -> After with big numbers)
   ══════════════════════════════════════════════════════════════════════ */

.transform-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}
.transform-box {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-align: center;
}
.transform-box.before { border-top: 3px solid var(--red-600); }
.transform-box.after  { border-top: 3px solid var(--green-600); }
.transform-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}
.transform-box.before .transform-label { color: var(--red-600); }
.transform-box.after  .transform-label { color: var(--green-600); }
.transform-value {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
}
.transform-box.before .transform-value { color: var(--red-600); }
.transform-box.after  .transform-value { color: var(--green-600); }
.transform-subtitle {
  font-size: 0.88rem;
  color: var(--coffee-500);
  margin-top: 0.25rem;
}
.transform-arrow {
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn-gold {
  background: var(--gold);
  color: white;
}
.btn-gold:hover {
  background: #9a7209;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,134,11,0.3);
}
.btn-white {
  background: white;
  color: var(--coffee-700);
}
.btn-white:hover {
  background: var(--coffee-50);
  color: var(--gold);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: white;
}
.btn-lg {
  padding: 1rem 3rem;
  font-size: 1.1rem;
  border-radius: 12px;
}

/* ══════════════════════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════════════════════ */

.cta-section {
  background: linear-gradient(135deg, var(--coffee-900) 0%, var(--coffee-700) 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(184,134,11,0.1) 0%, transparent 70%);
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 {
  color: white;
  margin-bottom: 0.75rem;
}
.cta-section p {
  color: var(--coffee-300);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════════════════════════════════════
   TABS — Sticky chip buttons (CSS-only radio pattern)
   ══════════════════════════════════════════════════════════════════════ */

.tabs { position: relative; }
.tabs input[type="radio"] { display: none; }

.tab-nav {
  position: sticky;
  top: 56px;             /* below the toolbar */
  z-index: 50;
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--coffee-200);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-nav label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coffee-500);
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 100px;
  border: 1.5px solid var(--coffee-200);
  background: white;
  transition: all 0.2s ease;
  user-select: none;
}
.tab-nav label:hover {
  color: var(--coffee-700);
  border-color: var(--coffee-400);
  background: var(--coffee-50);
}

.tab-panel {
  display: none;
  padding: 2rem 0;
  animation: tabFadeIn 0.25s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Active chip states — up to 5 tabs */
#tab1:checked ~ .tab-nav label[for="tab1"],
#tab2:checked ~ .tab-nav label[for="tab2"],
#tab3:checked ~ .tab-nav label[for="tab3"],
#tab4:checked ~ .tab-nav label[for="tab4"],
#tab5:checked ~ .tab-nav label[for="tab5"] {
  color: white;
  background: var(--coffee-800);
  border-color: var(--coffee-800);
  box-shadow: 0 2px 8px rgba(26, 14, 10, 0.2);
}

#tab1:checked ~ .tab-content > .tab-panel:nth-child(1),
#tab2:checked ~ .tab-content > .tab-panel:nth-child(2),
#tab3:checked ~ .tab-content > .tab-panel:nth-child(3),
#tab4:checked ~ .tab-content > .tab-panel:nth-child(4),
#tab5:checked ~ .tab-content > .tab-panel:nth-child(5) {
  display: block;
}

@media (max-width: 768px) {
  .tab-nav {
    top: 48px;           /* smaller toolbar on mobile */
    padding: 0.6rem 1rem;
    gap: 0.4rem;
  }
  .tab-nav label { font-size: 0.72rem; padding: 0.4rem 0.75rem; }
}

/* ══════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--coffee-900);
  color: var(--coffee-400);
  padding: 3.5rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-columns {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-eca .footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.4rem;
}
.footer-eca .footer-est {
  font-size: 0.78rem;
  color: var(--coffee-400);
  margin-bottom: 0.3rem;
}
.footer-eca .footer-members {
  font-size: 0.78rem;
  color: var(--coffee-500);
}
.footer-nav-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}
.footer-links a {
  color: var(--coffee-400);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-credits { text-align: right; }
.footer-prepared-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coffee-500);
  margin-bottom: 0.5rem;
}
.footer-bricks-logo {
  height: 32px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
  margin-bottom: 0.3rem;
  display: block;
  margin-left: auto;
}
.footer-bricks-logo:hover { opacity: 1; }
.footer-bricks-link {
  display: block;
  font-size: 0.78rem;
  color: var(--gold-light);
  text-decoration: none;
  text-align: right;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.footer-bricks-link:hover { color: var(--gold); }
.footer-powered {
  font-size: 0.7rem;
  color: var(--coffee-500);
  text-align: right;
}
.footer-powered a {
  color: var(--coffee-400);
  text-decoration: none;
}
.footer-powered a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(184,134,11,0.15);
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--coffee-500);
}
@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-credits { text-align: center; }
  .footer-bricks-logo { margin-left: auto; margin-right: auto; }
  .footer-bricks-link { text-align: center; }
  .footer-powered { text-align: center; }
  .footer-links { justify-items: center; }
}

/* ══════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--coffee-500); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  font-size: 0.9rem;
  color: var(--coffee-500);
  line-height: 1.6;
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE  — Tablet (769 – 1024px)
   ══════════════════════════════════════════════════════════════════════ */

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .opi-grid  { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE  — Mobile (<=768px)
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    padding: 3rem 1.5rem;
  }
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-short { min-height: 30vh; padding: 2.5rem 1.5rem; }

  .container, .container-narrow { padding: 0 1.25rem; }
  section { padding: 2.5rem 0; }
  h2 { font-size: 1.6rem; }

  .grid-2, .grid-3, .grid-4, .stats-row, .opi-grid, .swot-grid {
    grid-template-columns: 1fr;
  }

  /* Drawer is always the nav — no changes needed for mobile */
  .nav-drawer { width: 260px; }
  .nav-inner { height: 48px; }

  /* Workflow steps stack vertical */
  .workflow-steps {
    flex-direction: column;
    align-items: center;
  }
  .workflow-arrow {
    transform: rotate(90deg);
    padding: 0.25rem 0;
  }

  /* Data model stacks vertical */
  .oodb-flow { flex-direction: column; }
  .oodb-arrow { transform: rotate(90deg); }

  /* Transformation stacks vertical */
  .transform-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .transform-arrow { transform: rotate(90deg); }

  /* OPI row labels shrink */
  .opi-row-label { width: 80px; font-size: 0.78rem; }

  /* Table horizontal scroll */
  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Audience cards smaller */
  .audience-card { padding: 1.5rem; }
  .audience-title { font-size: 1.15rem; }

  /* Pillar cards */
  .pillar { padding: 1.5rem; }
  .pillar-name { font-size: 1.25rem; }
}

/* ══════════════════════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════════════════════ */

@media print {
  .site-nav { display: none; }
  .hero, .hero-short { min-height: auto; padding: 2rem; break-after: page; }
  body { font-size: 11px; }
  .card, .card-elevated, .pillar, .feature-card, .audience-card, .swot-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  .cta-section { background: var(--coffee-100); color: var(--coffee-800); }
  .cta-section h2 { color: var(--coffee-800); }
  .cta-section p  { color: var(--coffee-600); }
}
