/**
 * BioEventIQ™ — Shared Site Styles
 * Upload to: public_html/css/bei-site.css
 * Include on every page with:
 * <link rel="stylesheet" href="/css/bei-site.css">
 *
 * Also add to <head> on every page:
 * <link href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800;900&family=DM+Sans:wght@400;500;600&display=swap" rel="stylesheet">
 */

/* ── DESIGN TOKENS ── */
:root {
  /* Brand colors */
  --bei-purple:       #5c4d80;   /* primary purple */
  --bei-purple-dark:  #3d3058;   /* headline text color — dark desaturated purple */
  --bei-purple-light: #7b6ba0;
  --bei-orange:       #c97b25;
  --bei-orange-light: #e8942e;
  --bei-blue:         #1e4fd8;

  /* Surface */
  --bei-bg:           #ffffff;
  --bei-bg-2:         #f7f8fb;
  --bei-bg-3:         #eef0f5;
  --bei-card:         #f5f6fa;
  --bei-border:       #e2e5ee;

  /* Text */
  --bei-text:         #12151e;
  --bei-text-2:       #3d4254;
  --bei-text-3:       #6b7280;

  /* Fonts */
  --bei-heading:      'Inter Tight', system-ui, sans-serif;
  --bei-body:         'DM Sans', system-ui, sans-serif;

  /* Footer */
  --bei-footer-bg:    #1a1d24;
}

/* ── GLOBAL RESETS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bei-bg);
  color: var(--bei-text);
  font-family: var(--bei-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── HEADLINE RULES ── */
/* All h1–h4 use Inter Tight, dark desaturated purple */
h1, h2, h3, h4,
.bei-h1, .bei-h2, .bei-h3, .bei-h4 {
  font-family: var(--bei-heading);
  color: var(--bei-purple-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1, .bei-h1 { font-size: 2.4rem; font-weight: 800; }
h2, .bei-h2 { font-size: 1.8rem; font-weight: 700; }
h3, .bei-h3 { font-size: 1.2rem; font-weight: 700; }
h4, .bei-h4 { font-size: 1rem;   font-weight: 600; }

/* Section eyebrow labels */
.bei-eyebrow {
  font-family: var(--bei-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bei-purple);
  display: block;
  margin-bottom: 0.6rem;
}

/* ── SHARED NAV ── */
.bei-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bei-border);
  font-family: var(--bei-body);
}
.bei-nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.bei-nav-brand img { height: 34px; }
.bei-nav-brand-text {
  font-family: var(--bei-heading);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.bei-nav-brand-text .bio,
.bei-nav-brand-text .iq  { color: var(--bei-purple-dark); }
.bei-nav-brand-text .ev  { color: var(--bei-orange); text-transform: uppercase; font-size: 82%; letter-spacing: 0.04em; }

.bei-nav-links { display: flex; gap: 0.25rem; align-items: center; flex: 1; margin: 0 1.5rem; }
.bei-nav-link {
  color: var(--bei-text-2);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--bei-body);
  white-space: nowrap;
}
.bei-nav-link:hover,
.bei-nav-link.active { color: var(--bei-purple); background: rgba(92,77,128,0.07); }

/* Nav dropdown */
.bei-nav-dropdown { position: relative; }
.bei-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--bei-border);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  min-width: 290px;
  padding: 8px;
  z-index: 300;
}
.bei-nav-dropdown.open .bei-nav-dropdown-menu { display: block; }
.bei-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--bei-text);
  transition: background 0.15s;
}
.bei-dd-item:hover { background: var(--bei-bg-2); }
.bei-dd-icon { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; }
.bei-dd-item strong { display: block; font-size: 0.87rem; font-weight: 600; color: var(--bei-purple-dark); font-family: var(--bei-heading); }
.bei-dd-item small  { display: block; font-size: 0.73rem; color: var(--bei-text-3); margin-top: 1px; }

.bei-nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bei-btn-nav {
  background: var(--bei-purple);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--bei-body);
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.bei-btn-nav:hover { background: var(--bei-purple-light); }

/* ── SHARED FOOTER ── */
.bei-footer {
  background: var(--bei-footer-bg);
  padding: 1.75rem 2rem;
  color: rgba(255,255,255,0.4);
}
.bei-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.bei-footer-brand {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  font-style: italic;
}
.bei-footer-links { display: flex; gap: 1.5rem; font-size: 0.8rem; }
.bei-footer-links a {
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  transition: color 0.2s;
}
.bei-footer-links a:hover { color: rgba(255,255,255,0.7); }
.bei-footer-right { display: flex; align-items: center; }
.bei-footer-right img {
  height: 26px;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.bei-footer-right img:hover { opacity: 0.8; }

/* ── SHARED BUTTONS ── */
.bei-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--bei-body);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.bei-btn-primary  { background: var(--bei-purple); color: #fff; }
.bei-btn-primary:hover  { background: var(--bei-purple-light); }
.bei-btn-secondary { background: var(--bei-bg-3); color: var(--bei-text-2); border: 1px solid var(--bei-border); }
.bei-btn-secondary:hover { border-color: var(--bei-purple); color: var(--bei-purple); }
.bei-btn-orange   { background: var(--bei-orange); color: #fff; }
.bei-btn-orange:hover   { background: var(--bei-orange-light); }
.bei-btn-lg { padding: 13px 32px; font-size: 1rem; border-radius: 10px; }

/* ── SHARED CARDS ── */
.bei-card {
  background: #fff;
  border: 1px solid var(--bei-border);
  border-radius: 12px;
  padding: 24px;
}

/* ── SHARED BADGES ── */
.bei-tier { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }
.bei-tier-t1 { background: #ede9fe; color: #5b21b6; }
.bei-tier-t2 { background: #fef3c7; color: #b45309; }
.bei-tier-t3 { background: #dcfce7; color: #166534; }
.bei-tier-t4 { background: #f3f4f6; color: #6b7280; }

/* ── SHARED FORM ELEMENTS ── */
.bei-input, .bei-select, .bei-textarea {
  width: 100%;
  background: var(--bei-bg-2);
  border: 1px solid var(--bei-border);
  border-radius: 8px;
  color: var(--bei-text);
  padding: 10px 13px;
  font-size: 0.88rem;
  font-family: var(--bei-body);
  outline: none;
  transition: border-color 0.2s;
}
.bei-input:focus,
.bei-select:focus,
.bei-textarea:focus { border-color: var(--bei-purple); background: #fff; }
.bei-textarea { min-height: 100px; resize: vertical; }
.bei-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bei-text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 5px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  h1, .bei-h1 { font-size: 1.8rem; }
  h2, .bei-h2 { font-size: 1.4rem; }
  .bei-nav-links { display: none; }
  .bei-footer-inner { flex-direction: column; text-align: center; }
  .bei-footer-links { justify-content: center; }
  .bei-footer-right { justify-content: center; }
}
