/* ============================================
   Saviour Williams — Portfolio & Blog
   ============================================ */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-100: #f2f2f2;
  --gray-200: #e5e5e5;
  --gray-400: #b3b3b3;
  --gray-600: #707070;
  --gray-800: #2b2b2b;
  --red: #C8102E;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1120px;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

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

section { padding: 96px 0; }

@media (max-width: 640px) {
  section { padding: 64px 0; }
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head p {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid var(--black);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover { background: var(--red); border-color: var(--red); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }

.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a.active { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-links a {
    display: block;
    padding: 20px 0;
    font-size: 1.05rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-height) + 96px);
  padding-bottom: 80px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.hero-eyebrow strong { color: var(--red); }

.hero h1 { max-width: 900px; margin-bottom: 28px; }

.hero .subhead {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

@media (max-width: 500px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Credentials bar ---------- */
.creds {
  border-top: 1px solid var(--gray-200);
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.creds-item {
  border-left: 2px solid var(--red);
  padding-left: 14px;
}

.creds-item .num {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.creds-item .label {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .creds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .creds { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--gray-200);
  padding: 48px 0;
  font-size: 0.85rem;
  color: var(--gray-600);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer a { color: var(--gray-600); }
.footer a:hover { color: var(--red); }

.footer-links { display: flex; gap: 24px; }

/* ---------- About page ---------- */
.about-hero { padding-top: calc(var(--nav-height) + 72px); padding-bottom: 40px; }
.about-hero h1 { max-width: 820px; }

.pull-quote {
  border-left: 3px solid var(--red);
  padding: 8px 0 8px 28px;
  margin: 48px 0;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
  max-width: 760px;
}

.prose {
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--gray-800);
}

.prose p { margin-bottom: 22px; }

/* Timeline */
.timeline {
  position: relative;
  max-width: 820px;
  margin-top: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-left: 44px;
  padding-bottom: 48px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--red);
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.timeline-item h3 { margin-bottom: 10px; }

.timeline-item p {
  color: var(--gray-600);
  font-size: 0.98rem;
  max-width: 640px;
}

/* ---------- Insights / Blog ---------- */
.insights-hero { padding-top: calc(var(--nav-height) + 72px); padding-bottom: 16px; }

.article-featured {
  display: block;
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  padding: 48px;
  margin-bottom: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-featured:hover {
  border-color: var(--black);
  transform: translateY(-2px);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.article-featured h3 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 16px;
  max-width: 760px;
}

.article-featured p.desc {
  color: var(--gray-600);
  max-width: 680px;
  margin-bottom: 24px;
}

.read-link {
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.read-link .arrow { transition: transform 0.2s ease; }
.article-featured:hover .read-link .arrow { transform: translateX(4px); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 720px) {
  .article-featured { padding: 32px 24px; }
  .article-grid { grid-template-columns: 1fr; }
}

.article-card {
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  padding: 32px;
  position: relative;
  opacity: 0.7;
}

.coming-soon-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 5px 10px;
  border-radius: 20px;
}

.article-card h3 {
  font-size: 1.2rem;
  margin: 8px 0 0;
  max-width: 400px;
}

/* ---------- Article page ---------- */
.article-page { padding-top: calc(var(--nav-height) + 56px); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--gray-600);
}
.back-link:hover { color: var(--red); }

.article-header { max-width: 760px; margin-bottom: 48px; }

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--gray-600);
  font-size: 0.88rem;
  margin-top: 20px;
  flex-wrap: wrap;
}

.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gray-400); }

.article-body {
  max-width: 720px;
  font-size: 1.08rem;
  color: var(--gray-800);
  padding-bottom: 80px;
}

.article-body p { margin-bottom: 24px; }

.article-body h2 {
  font-size: 1.6rem;
  margin: 56px 0 20px;
}

.article-body .pull-quote { font-size: 1.3rem; margin: 40px 0; }

.stats-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 40px;
}

.stat {
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  padding: 24px 16px;
  text-align: center;
}

.stat .stat-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}

.stat .stat-label {
  font-size: 0.82rem;
  color: var(--gray-600);
}

@media (max-width: 640px) {
  .stats-block { grid-template-columns: 1fr; }
}

.source-note {
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--gray-600);
  max-width: 720px;
}

.article-cta {
  background: var(--black);
  color: var(--white);
  border-radius: 4px;
  padding: 48px;
  text-align: center;
  max-width: 720px;
  margin: 16px 0 56px;
}

.article-cta p {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.article-cta .btn-primary { background: var(--red); border-color: var(--red); }
.article-cta .btn-primary:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- NADA page ---------- */
.nada-hero { padding-top: calc(var(--nav-height) + 72px); padding-bottom: 16px; }

.nada-group { margin-bottom: 56px; }

.nada-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .course-grid { grid-template-columns: 1fr; }
}

.course-card {
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 108px;
  transition: border-color 0.2s ease;
}

.course-card:hover { border-color: var(--black); }

.course-name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.completed-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2e7d32;
  background: #eaf5ea;
  padding: 5px 10px;
  border-radius: 20px;
}

.nada-note {
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.92rem;
  max-width: 600px;
}

/* ---------- Contact page ---------- */
.contact-hero {
  padding-top: calc(var(--nav-height) + 96px);
  padding-bottom: 96px;
  text-align: center;
}

.contact-hero .section-head { margin: 0 auto 48px; text-align: center; }
.contact-hero .section-head p { margin-left: auto; margin-right: auto; }

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 440px;
  margin: 0 auto;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  padding: 22px 26px;
  transition: border-color 0.2s ease;
}

.contact-method:hover { border-color: var(--red); }

.contact-method .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  display: block;
  margin-bottom: 4px;
}

.contact-method .value {
  font-weight: 600;
  font-size: 1rem;
}

.contact-cta { margin-top: 40px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 64px; }

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
