/* =====================================================
   jbsloan.com — Main Stylesheet
   Colors: Navy #1B3A5C | White #FFFFFF | Accent #E8A84B
   ===================================================== */

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

:root {
  --navy: #1B3A5C;
  --navy-dark: #122844;
  --navy-mid: #264D78;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --accent: #E8A84B;
  --accent-dark: #C98930;
  --text: #1A1A2E;
  --text-muted: #5A6478;
  --border: #E2E6ED;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy-mid);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--accent-dark); }

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--off-white);
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav__logo:hover { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--accent);
}

.nav__cta {
  background: var(--accent);
  color: var(--navy-dark) !important;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav__cta:hover {
  background: var(--accent-dark);
  color: var(--white) !important;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

@media (max-width: 700px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .nav__links.open { display: flex; }

  .nav__links li a {
    display: block;
    padding: 0.75rem 1.5rem;
  }

  .nav__cta { margin: 0.5rem 1.5rem; }
}

/* =====================================================
   HERO — Homepage
   ===================================================== */

.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero__name {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.hero__hook {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.hero__photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--navy-mid);
  border: 4px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 4rem;
  color: rgba(255,255,255,0.3);
}

/* Metrics row */
.metrics {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.metric {
  text-align: left;
}

.metric__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.metric__label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

/* CTA buttons */
.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--navy-dark);
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  color: rgba(255,255,255,0.75);
  padding: 0;
  font-weight: 500;
}

.btn--ghost:hover { color: var(--accent); }

@media (max-width: 700px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__photo,
  .hero__photo-placeholder {
    width: 160px;
    height: 160px;
    margin: 0 auto;
  }

  .hero__inner > .hero__photo,
  .hero__inner > .hero__photo-placeholder {
    order: -1;
  }

  .metrics { justify-content: center; }
  .cta-group { justify-content: center; }
  .hero__hook { margin: 0 auto 2.5rem; }
}

/* =====================================================
   CAREER ARC SECTION
   ===================================================== */

.arc {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* =====================================================
   HIGHLIGHT CARDS
   ===================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(27,58,92,0.12);
  transform: translateY(-2px);
}

.card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-mid);
}

.card__link:hover { color: var(--accent-dark); }

/* =====================================================
   CURRENT FOCUS (Homepage)
   ===================================================== */

.focus-block {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
  margin: 3rem 0 0;
}

.focus-block h3 {
  color: var(--accent);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.focus-block h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.focus-block p {
  color: rgba(255,255,255,0.8);
  max-width: 700px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.focus-block a {
  color: var(--accent);
}

/* =====================================================
   SECTION HEADER
   ===================================================== */

.section-header {
  margin-bottom: 3rem;
}

.section-header__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 620px;
}

/* =====================================================
   ABOUT PAGE — Career Timeline
   ===================================================== */

.timeline {
  position: relative;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--navy-mid));
}

.timeline-item {
  padding-left: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy);
}

.timeline-item__meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.timeline-item__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.timeline-item__company {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.timeline-item__desc {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
}

.timeline-item ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.timeline-item ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.25rem 0 0.25rem 1.25rem;
  position: relative;
}

.timeline-item ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* =====================================================
   PROJECTS PAGE
   ===================================================== */

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: 0 4px 24px rgba(27,58,92,0.1);
}

.project-card--featured {
  border-left: 5px solid var(--accent);
  background: linear-gradient(to right, rgba(232,168,75,0.03), var(--white));
}

.project-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-card__badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--navy-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
  margin-top: 0.2rem;
}

.project-card__badge--blue {
  background: var(--navy);
  color: var(--white);
}

.project-card__title {
  font-size: 1.375rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.project-card__subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.project-card__metrics {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--off-white);
  border-radius: 6px;
}

.project-metric__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.project-metric__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-card__desc {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--off-white);
  color: var(--navy-mid);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

/* =====================================================
   MEDIA PAGE
   ===================================================== */

.media-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.media-item:last-child { border-bottom: none; }

.media-item__source {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--navy);
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  white-space: nowrap;
  min-width: 80px;
  text-align: center;
}

.media-item__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.media-item__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer__title {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */

.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 3.5rem 0;
}

.page-hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.0625rem;
  max-width: 600px;
  margin-bottom: 0;
}

/* =====================================================
   SKILLS GRID (About page)
   ===================================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.skill-item {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

.skill-item__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.skill-item__level {
  font-size: 0.8rem;
  color: var(--accent-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =====================================================
   UTILITIES
   ===================================================== */

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-dark); }
.text-sm { font-size: 0.875rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* Print styles for resume download context */
@media print {
  .nav, .footer { display: none; }
}
