/* styles.css — JoshuaPriest.com
   ASU maroon #8C1D40 · ASU gold #FFC627
   Shared by index.html + learn.html */

:root {
  --maroon: #8C1D40;
  --maroon-light: #a82550;
  --gold: #FFC627;
  --gold-dark: #e6b200;
  --dark: #111;
  --charcoal: #333;
  --muted: #666;
  --light: #f7f7f8;
  --white: #fff;
  --border: #e8e8e8;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--charcoal); line-height: 1.7; background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }


/* ========================================
   NAV — sticky, blurred glass
   ======================================== */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 14px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-weight: 900; font-size: 1.05rem; letter-spacing: 3px; color: var(--dark); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--muted); transition: color 0.2s;
}
.nav-links a:hover { color: var(--maroon); }
.nav-pill {
  background: var(--maroon); color: var(--white) !important;
  padding: 9px 22px; border-radius: 50px; font-size: 0.78rem;
  letter-spacing: 0.5px; transition: background 0.2s;
}
.nav-pill:hover { background: var(--gold); color: var(--dark) !important; }

@media (max-width: 768px) {
  .nav-link-item { display: none; }
  .nav-brand { font-size: 0.9rem; letter-spacing: 2px; }
}


/* ========================================
   HERO — dark with ASU radial glows
   ======================================== */

.hero {
  background: #0d0d0d; position: relative; overflow: hidden;
  padding: 130px 0 160px; text-align: center; color: var(--white);
}
.hero::before {
  content: ''; position: absolute; top: -30%; left: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(140,29,64,0.4) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -25%; right: -8%;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(255,198,39,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 3.5px; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(255,198,39,0.3); padding: 7px 20px;
  border-radius: 50px; margin-bottom: 24px;
}
.hero-name {
  font-size: clamp(3.2rem, 10vw, 7.5rem); font-weight: 900;
  letter-spacing: -3px; line-height: 0.95; margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.1rem; font-weight: 400; color: rgba(255,255,255,0.65);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.65;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 34px; border-radius: 50px;
  font-weight: 700; font-size: 0.88rem; letter-spacing: 0.3px;
  transition: all 0.25s; cursor: pointer; border: none; text-decoration: none;
}
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:hover { background: var(--maroon-light); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }


/* ========================================
   STAT STRIP — floating card
   ======================================== */

.stat-strip { position: relative; z-index: 10; margin-top: -65px; margin-bottom: 60px; }
.stat-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 36px 40px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  text-align: center;
}
.stat-num {
  font-size: 2.6rem; font-weight: 900; color: var(--maroon);
  letter-spacing: -1px; line-height: 1.1;
}
.stat-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: #aaa; margin-top: 6px;
}

@media (max-width: 768px) {
  .stat-card { grid-template-columns: repeat(2, 1fr); padding: 24px 20px; gap: 16px; }
  .stat-item:last-child { grid-column: 1 / -1; }
  .stat-num { font-size: 2rem; }
}


/* ========================================
   SECTIONS — shared defaults
   ======================================== */

.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px;
}
.section-title {
  font-size: 2.2rem; font-weight: 800; color: var(--dark);
  margin-bottom: 14px; letter-spacing: -0.5px;
}
.section-sub { font-size: 1rem; color: var(--muted); max-width: 580px; line-height: 1.7; }


/* ========================================
   ABOUT — split layout
   ======================================== */

.about-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 56px; align-items: start; margin-top: 40px;
}
.about-photo {
  aspect-ratio: 4 / 5; border: 3px dashed #d0d0d0;
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; color: #b0b0b0; font-size: 0.82rem;
  text-align: center; padding: 28px; background: var(--light);
  line-height: 1.5;
}
.about-text p { margin-bottom: 16px; color: #555; }
.about-text p:first-child { font-size: 1.1rem; font-weight: 600; color: var(--dark); line-height: 1.5; }
.about-highlight {
  display: inline-block; background: rgba(140,29,64,0.08);
  color: var(--maroon); padding: 2px 8px; border-radius: 4px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}


/* ========================================
   FILM — three placeholder cards
   ======================================== */

.film-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.film-card {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
  background: var(--white);
}
.film-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.film-thumb {
  height: 200px; display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,0.6); font-size: 3rem;
}
.film-thumb-1 { background: linear-gradient(135deg, var(--maroon), #5a1229); }
.film-thumb-2 { background: linear-gradient(135deg, #1a1a2e, var(--maroon)); }
.film-thumb-3 { background: linear-gradient(135deg, #222, #444); }
.film-info { padding: 20px; }
.film-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.film-info p { font-size: 0.82rem; color: #999; }

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


/* ========================================
   JOURNAL
   ======================================== */

.journal-entries { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.journal-post { background: var(--light); border-radius: var(--radius); padding: 32px; }
.journal-date {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--maroon); margin-bottom: 10px;
}
.journal-post h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; color: var(--dark); }
.journal-post p { color: #555; line-height: 1.7; }
.journal-stub {
  border: 3px dashed #d0d0d0; background: transparent;
  text-align: center; color: #b0b0b0; padding: 44px 24px;
  border-radius: var(--radius); font-size: 0.9rem;
}


/* ========================================
   CONTACT
   ======================================== */

.contact {
  background: var(--maroon); color: var(--white);
  text-align: center; padding: 80px 0;
}
.contact .section-label { color: var(--gold); }
.contact .section-title { color: var(--white); }
.contact .section-sub { color: rgba(255,255,255,0.65); margin: 0 auto 32px; }
.btn-gold { background: var(--gold); color: var(--dark); font-weight: 800; }
.btn-gold:hover { background: var(--gold-dark); }


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

.footer {
  background: var(--dark); color: rgba(255,255,255,0.4);
  text-align: center; padding: 36px 0; font-size: 0.82rem;
}
.footer-brand {
  font-weight: 900; font-size: 1rem; letter-spacing: 3px;
  color: var(--white); margin-bottom: 8px; text-transform: uppercase;
}
.footer a { color: var(--gold); }
.footer p { margin-bottom: 6px; }


/* ========================================
   FIRST-VISIT GUIDE BANNER
   ======================================== */

.guide-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  z-index: 200; max-width: 460px; width: calc(100% - 48px);
}
.guide-banner p { font-size: 0.88rem; font-weight: 600; flex: 1; color: var(--dark); }
.guide-banner a { color: var(--maroon); font-weight: 700; white-space: nowrap; }
.guide-dismiss {
  background: none; border: none; font-size: 1.3rem;
  cursor: pointer; color: #bbb; padding: 2px 6px; line-height: 1;
}
.guide-dismiss:hover { color: var(--dark); }


/* ========================================
   LEARN.HTML — curriculum page
   ======================================== */

.learn-hero {
  background: var(--dark); color: var(--white);
  padding: 110px 0 80px; text-align: center;
  position: relative; overflow: hidden;
}
.learn-hero::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,198,39,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.learn-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 900;
  letter-spacing: -1px; max-width: 680px; margin: 0 auto 20px;
  position: relative; line-height: 1.15;
}
.learn-hero .lead {
  font-size: 1.05rem; color: rgba(255,255,255,0.6);
  max-width: 560px; margin: 0 auto; line-height: 1.7; position: relative;
}

.learn-wrap { max-width: 740px; margin: 0 auto; padding: 60px 24px 80px; }

.callout {
  background: var(--light); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px; margin-bottom: 60px;
}
.callout h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; color: var(--dark); }
.callout p { font-size: 0.92rem; color: #555; line-height: 1.65; }
.callout p + p { margin-top: 8px; }

.phase { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--border); }
.phase:last-of-type { border-bottom: none; padding-bottom: 0; }
.phase-num {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--maroon);
}
.phase-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: #aaa; margin-left: 10px;
}
.phase h2 {
  font-size: 1.65rem; font-weight: 800; color: var(--dark);
  margin: 10px 0 6px; letter-spacing: -0.5px;
}
.phase-sub { font-size: 0.95rem; color: #888; margin-bottom: 20px; line-height: 1.6; }

.phase ul { list-style: none; padding: 0; }
.phase li {
  padding: 12px 0; border-bottom: 1px solid #f0f0f0;
  font-size: 0.93rem; line-height: 1.6;
}
.phase li:last-child { border-bottom: none; }
.phase li em { color: var(--maroon); }

.analogy {
  background: linear-gradient(135deg, #fdf8e8, #fefaee);
  border-radius: var(--radius); padding: 24px 28px; margin: 24px 0;
}
.analogy strong { color: var(--dark); }
.analogy p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.analogy p + p { margin-top: 8px; }

.rep {
  background: var(--maroon); color: var(--white);
  border-radius: var(--radius); padding: 24px 28px; margin-top: 28px;
}
.rep strong { color: var(--gold); }
.rep p { font-size: 0.92rem; line-height: 1.6; }

.cmd {
  background: #1a1a2e; color: #d4d4d4;
  padding: 20px 24px; border-radius: 10px;
  font-family: var(--font-mono); font-size: 0.82rem;
  line-height: 1.7; margin: 20px 0; overflow-x: auto; white-space: pre-wrap;
}

.pre {
  font-family: var(--font-mono); background: var(--light);
  padding: 2px 7px; border-radius: 4px; font-size: 0.84em;
}

.learn-beyond { margin-top: 24px; padding-top: 48px; border-top: 3px solid var(--gold); }
.learn-beyond h2 {
  font-size: 1.65rem; font-weight: 800; color: var(--dark);
  margin-bottom: 16px; letter-spacing: -0.5px;
}
.learn-beyond p { color: #555; margin-bottom: 14px; font-size: 1rem; line-height: 1.7; }
.learn-beyond strong { color: var(--dark); }

.learn-back {
  display: inline-block; margin-top: 48px;
  font-weight: 700; color: var(--maroon); font-size: 0.95rem;
}
.learn-back:hover { color: var(--gold-dark); }

.system-map { margin: 20px 0; }
.system-map li {
  padding: 8px 0 8px 0; border-bottom: 1px solid #f0f0f0;
  font-size: 0.93rem;
}
.system-map li:last-child { border-bottom: none; }
