/* ============================================================
   JBE Research Education — Reconstructed Site Styles
   Academic / Ivy-League palette, mobile-first, lightweight.
   ============================================================ */

:root {
  --navy: #1A2A4F;
  --navy-dark: #0F1A38;
  --navy-mid: #243557;
  --gold: #B8860B;
  --gold-light: #D4A52A;
  --gold-soft: #E8C97A;
  --cream: #F5F1E8;
  --cream-warm: #FAF6EC;
  --charcoal: #2C2C2C;
  --gray-soft: #6B7280;
  --gray-line: #E5E0D2;
  --white: #FAFAF7;

  --container: 1200px;
  --header-h: 72px;

  --shadow-sm: 0 4px 16px rgba(26,42,79,0.05);
  --shadow-md: 0 12px 36px rgba(26,42,79,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--navy);
}

a { color: var(--gold); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold-light); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 840px; margin: 0 auto; padding: 0 32px; }

/* Eyebrow */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--gold-soft); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* HEADER */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26, 42, 79, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: var(--header-h);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 100%;
  max-width: var(--container); margin: 0 auto;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600; font-size: 22px;
  color: var(--white); text-decoration: none;
}
.logo .accent { color: var(--gold-soft); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-soft); }
.nav-cta {
  background: var(--gold); color: var(--white);
  padding: 10px 20px; border-radius: 2px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background 0.15s;
}
.nav-cta:hover { background: var(--gold-light); color: var(--white); }
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* HERO (homepage) */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}
.hero-content { max-width: 880px; }
.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.05;
}
.hero .lede {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 640px;
  font-weight: 300;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

/* PAGE HEADER (non-home pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 64px;
  position: relative;
  text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}
.page-hero h1 {
  font-size: clamp(36px, 4.5vw, 52px);
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 300;
}

/* SECTION SHELL */
.section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-warm { background: var(--cream-warm); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 14px;
}
.section-head .sub {
  font-size: 17px;
  color: var(--gray-soft);
  max-width: 640px;
  margin: 0 auto;
}
.section-navy .section-head .sub { color: rgba(255,255,255,0.7); }

/* STATS */
.stats {
  background: var(--cream);
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 14px;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

/* 3-COLUMN CARDS */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-soft {
  padding: 36px 28px;
  background: var(--cream-warm);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
}
.card-soft h3 {
  font-size: 21px;
  margin-bottom: 14px;
}
.card-soft p { font-size: 16px; color: var(--charcoal); }

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step .step-num {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
  font-weight: 500;
}
.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.step p { font-size: 15px; color: var(--charcoal); }

/* PROGRAM CARDS */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.program-card {
  border: 1px solid var(--gray-line);
  padding: 32px 26px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.program-card.featured {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  position: relative;
}
.program-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: 2px;
}
.program-card h3 { font-size: 21px; margin-bottom: 4px; }
.program-card.featured h3 { color: var(--white); }
.program-card .duration {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
}
.program-card.featured .duration { color: var(--gold-soft); }
.program-card .for {
  font-size: 14px;
  color: var(--gray-soft);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-line);
}
.program-card.featured .for {
  color: rgba(255,255,255,0.7);
  border-bottom-color: rgba(255,255,255,0.15);
}
.program-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.program-card li {
  font-size: 14px; padding: 5px 0; color: var(--charcoal);
  padding-left: 22px; position: relative;
}
.program-card.featured li { color: rgba(255,255,255,0.85); }
.program-card li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--gold); font-weight: 700;
}
.program-card.featured li::before { color: var(--gold-soft); }
.btn-card {
  display: inline-block;
  padding: 12px 22px;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.15s;
  text-align: center;
}
.btn-card:hover { background: var(--navy); color: var(--white); }
.program-card.featured .btn-card {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.program-card.featured .btn-card:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--white); }

/* COMPARISON TABLE */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 32px;
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--gray-line);
  font-size: 14px;
}
.compare-table th {
  background: var(--navy);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
}
.compare-table td:first-child, .compare-table th:first-child {
  text-align: left;
  color: var(--navy);
  font-weight: 500;
}
.compare-table .check { color: var(--gold); font-weight: 700; font-size: 16px; }
.compare-table .dash { color: var(--gray-line); }

/* JOURNALS */
.journal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 28px;
  text-align: center;
  list-style: none;
}
.journal-list li {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--navy);
  padding: 10px 0;
}

/* PAPER GRID */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.paper-card {
  border-left: 3px solid var(--gold);
  padding: 24px 26px;
  background: var(--cream-warm);
  border-radius: 0 2px 2px 0;
}
.paper-card .meta {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}
.paper-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.paper-card .journal {
  font-size: 14px;
  font-style: italic;
  color: var(--gray-soft);
  margin-bottom: 12px;
}
.paper-card p { font-size: 14px; color: var(--charcoal); }

/* MENTOR CARDS */
.mentors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mentor-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  padding: 28px;
  border-radius: 2px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mentor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mentor-card .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--cream); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 28px;
  color: var(--navy); font-weight: 600;
  border: 2px solid var(--gold);
}
.mentor-card h4 {
  font-size: 19px; color: var(--navy); margin-bottom: 4px;
}
.mentor-card .institution {
  font-size: 13px; color: var(--gold);
  letter-spacing: 0.04em; margin-bottom: 14px;
  font-weight: 600;
}
.mentor-card .areas {
  font-size: 14px; color: var(--charcoal);
  padding-top: 14px; border-top: 1px solid var(--gray-line);
}
.mentor-card .areas strong {
  display: block; font-size: 11px; color: var(--gray-soft);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 6px; font-weight: 600;
}

/* TESTIMONIALS */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.test-card {
  background: var(--white);
  padding: 32px;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}
.test-card .quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 56px; color: var(--gold);
  line-height: 1; margin-bottom: 4px;
}
.test-card .quote {
  font-size: 16px; color: var(--charcoal);
  margin-bottom: 22px;
}
.test-card .attrib { border-top: 1px solid var(--gray-line); padding-top: 14px; }
.test-card .name { font-weight: 600; color: var(--navy); font-size: 15px; }
.test-card .role { font-size: 13px; color: var(--gray-soft); margin-top: 2px; }

/* FAQ */
.faq-group { margin-bottom: 48px; }
.faq-group h3 {
  font-size: 22px;
  color: var(--navy);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 20px;
}
details {
  border-bottom: 1px solid var(--gray-line);
  padding: 18px 0;
  cursor: pointer;
}
details summary {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
  font-weight: 500;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 24px;
  color: var(--gold);
  transition: transform 0.2s;
}
details[open] summary::after { content: '−'; }
details p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--charcoal);
}

/* TWO-COLUMN CONTENT (about, parents) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.two-col h2 { margin-bottom: 16px; }
.two-col p { margin-bottom: 16px; font-size: 16px; color: var(--charcoal); }
.two-col .pull {
  background: var(--cream);
  padding: 32px;
  border-left: 3px solid var(--gold);
  font-style: italic;
  font-size: 17px;
}

/* PROCESS NUMBERED LIST */
.numbered-list {
  list-style: none;
  counter-reset: ord;
  margin: 0;
}
.numbered-list li {
  counter-increment: ord;
  padding: 18px 0 18px 60px;
  position: relative;
  border-bottom: 1px solid var(--gray-line);
}
.numbered-list li::before {
  content: counter(ord, decimal-leading-zero);
  position: absolute;
  left: 0; top: 18px;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--gold);
  font-weight: 600;
}
.numbered-list li strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 600;
}
.numbered-list li span { font-size: 15px; color: var(--charcoal); }

/* FORM */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  max-width: 560px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.single { grid-template-columns: 1fr; }
.form-group label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gray-soft);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* FINAL CTA */
.final-cta { background: var(--gold); color: var(--navy); padding: 72px 0; text-align: center; }
.final-cta h2 { font-size: clamp(28px, 3.4vw, 36px); color: var(--navy); margin-bottom: 14px; }
.final-cta p { font-size: 17px; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.btn-final {
  background: var(--navy); color: var(--white); border-color: var(--navy);
  padding: 18px 36px; font-size: 15px;
}
.btn-final:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }

/* FOOTER */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 40px;
}
footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
  font-weight: 600;
}
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { color: rgba(255,255,255,0.7); font-size: 14px; }
footer a:hover { color: var(--gold-soft); }
.footer-about p { margin-top: 14px; color: rgba(255,255,255,0.6); max-width: 320px; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px; text-align: center;
  color: rgba(255,255,255,0.45); font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .stats-grid, .cards-3, .steps, .programs-grid, .papers-grid, .mentors-grid, .test-grid, .two-col {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--navy); padding: 20px 32px; gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 600px) {
  .container, .narrow { padding: 0 20px; }
  .nav { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
