/* ===== JORDAN MAXWELL OFFICIAL ===== */
/* Dark gold theme — Cinzel / Libre Baskerville */

:root {
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: #8a6d2e;
  --dark: #0a0a0a;
  --dark2: #111111;
  --dark3: #1a1a1a;
  --dark4: #222222;
  --text: #d4cfc8;
  --text-muted: #7a756e;
  --white: #f5f0e8;
  --radius: 4px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Libre Baskerville', serif;
  line-height: 1.75;
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* CONTAINER */
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }

/* ===== NAV ===== */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.08em;
}
.logo-sigil { font-size: 1.3rem; color: var(--gold); }
.nav-links {
  display: flex; list-style: none; gap: 2rem;
}
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-family: 'Cinzel', serif; font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--gold); font-size: 1.5rem; cursor: pointer;
}
.nav-mobile {
  display: none; list-style: none;
  background: var(--dark2); border-top: 1px solid rgba(201,168,76,0.1);
  padding: 1rem 2rem 1.5rem;
}
.nav-mobile.open { display: block; }
.nav-mobile li { margin-bottom: 0.75rem; }
.nav-mobile a {
  color: var(--text-muted); text-decoration: none;
  font-family: 'Cinzel', serif; font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-mobile a:hover { color: var(--gold); }

/* ===== HERO ===== */
#hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--dark);
}
#starfield {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.85) 70%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.hero-sigil {
  font-size: 3rem; color: var(--gold);
  animation: sigil-pulse 4s ease-in-out infinite;
  margin-bottom: 0.5rem;
}
@keyframes sigil-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.08) rotate(180deg); }
}
.hero-sub {
  font-family: 'Cinzel', serif; font-size: 0.8rem;
  letter-spacing: 0.25em; color: var(--gold-dim); text-transform: uppercase;
}
.hero-title {
  font-family: 'Cinzel', serif; font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 900; color: var(--white);
  letter-spacing: 0.05em; line-height: 1.1;
  text-shadow: 0 0 60px rgba(201,168,76,0.25);
}
.hero-tagline {
  font-size: 0.95rem; color: var(--text-muted);
  letter-spacing: 0.05em; max-width: 560px;
  font-family: 'Cinzel', serif; font-weight: 400;
}
.hero-cta {
  display: inline-block; margin-top: 1rem;
  padding: 0.85rem 2.5rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cinzel', serif; font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
}
.hero-cta:hover {
  background: var(--gold); color: var(--dark);
}
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--gold-dim); font-size: 0.75rem; letter-spacing: 0.15em;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== QUOTE STRIP ===== */
.quote-strip {
  background: var(--dark3);
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 2rem;
  text-align: center;
}
.quote-strip blockquote {
  font-family: 'Libre Baskerville', serif; font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem); color: var(--gold-light);
  max-width: 800px; margin: 0 auto;
}

/* ===== SECTIONS ===== */
section { padding: 6rem 0; }
.section-label {
  font-family: 'Cinzel', serif; font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
  color: var(--white); margin-bottom: 3rem; line-height: 1.2;
}

/* ===== ABOUT ===== */
#about { background: var(--dark2); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.about-text p {
  margin-bottom: 1.25rem; color: var(--text); font-size: 1rem;
}
.about-text em { color: var(--gold-light); font-style: italic; }
.about-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.fact-card {
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 1.5rem; text-align: center;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.fact-num {
  font-family: 'Cinzel', serif; font-size: 2rem;
  font-weight: 900; color: var(--gold);
}
.fact-label {
  font-size: 0.75rem; color: var(--text-muted);
  letter-spacing: 0.08em; font-family: 'Inter', sans-serif;
}

/* ===== RESEARCH ===== */
#research { background: var(--dark); }
.research-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.research-card {
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.12);
  padding: 2rem; transition: all var(--transition);
}
.research-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.1);
}
.rc-icon {
  font-size: 1.8rem; color: var(--gold); margin-bottom: 1rem;
}
.research-card h3 {
  font-family: 'Cinzel', serif; font-size: 1.1rem;
  color: var(--white); margin-bottom: 0.75rem; font-weight: 600;
}
.research-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ===== LECTURES ===== */
#lectures { background: var(--dark2); }
.lectures-list { display: flex; flex-direction: column; gap: 0; }
.lecture-item {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 2rem; align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  transition: var(--transition);
}
.lecture-item:first-child { border-top: 1px solid rgba(201,168,76,0.1); }
.lecture-item:hover { padding-left: 0.75rem; }
.lec-num {
  font-family: 'Cinzel', serif; font-size: 1.5rem;
  color: var(--gold-dim); font-weight: 900;
}
.lec-info h4 {
  font-family: 'Cinzel', serif; font-size: 1rem;
  color: var(--white); margin-bottom: 0.4rem; font-weight: 600;
}
.lec-info p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }
.lec-tag {
  font-family: 'Cinzel', serif; font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-dim);
  padding: 0.35rem 0.75rem; white-space: nowrap;
}

/* ===== BOOKS ===== */
#books { background: var(--dark); }
.books-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.book-card {
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.12);
  border-left: 4px solid var(--gold);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
  cursor: default;
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.12);
  border-left-color: var(--gold-light);
}
.book-info h4 {
  font-family: 'Cinzel', serif; font-size: 1rem;
  color: var(--white); margin-bottom: 0.5rem; font-weight: 700;
}
.book-info p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1rem; }
.book-year {
  font-family: 'Cinzel', serif; font-size: 0.75rem;
  color: var(--gold); letter-spacing: 0.1em;
}

/* ===== LEGACY ===== */
#legacy {
  background: var(--dark2);
  position: relative; overflow: hidden;
}
#legacy::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.legacy-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.legacy-text p { color: var(--text); font-size: 1rem; margin-bottom: 1.25rem; }
.inner-quote {
  font-family: 'Cinzel', serif; font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700; color: var(--gold-light); line-height: 1.4;
  font-style: normal; margin-bottom: 1rem;
}
.legacy-quote cite {
  color: var(--text-muted); font-size: 0.9rem; font-style: normal;
  letter-spacing: 0.05em;
}

/* ===== CONTACT ===== */
#contact { background: var(--dark); }
.contact-intro {
  color: var(--text-muted); font-size: 1rem; margin-bottom: 2.5rem; max-width: 560px;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 680px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form textarea {
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.15);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: 'Libre Baskerville', serif; font-size: 0.9rem;
  outline: none; transition: border-color var(--transition);
  border-radius: var(--radius);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.form-submit {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cinzel', serif; font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.9rem 2.5rem; cursor: pointer;
  transition: all var(--transition);
}
.form-submit:hover { background: var(--gold); color: var(--dark); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding-top: 4rem;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-sigil { font-size: 2rem; color: var(--gold); }
.footer-name {
  font-family: 'Cinzel', serif; font-size: 1.1rem;
  font-weight: 700; color: var(--white); letter-spacing: 0.08em;
}
.footer-dates { color: var(--text-muted); font-size: 0.875rem; }
.footer-cols { display: flex; gap: 4rem; }
.footer-col h5 {
  font-family: 'Cinzel', serif; font-size: 0.65rem;
  letter-spacing: 0.25em; color: var(--gold);
  margin-bottom: 1rem; text-transform: uppercase;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.875rem; transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  text-align: center; padding: 1.5rem;
  color: var(--text-muted); font-size: 0.8rem;
}
.footer-sub { color: var(--gold-dim); font-size: 0.75rem; margin-top: 0.25rem; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid, .legacy-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .lecture-item { grid-template-columns: 50px 1fr; }
  .lec-tag { display: none; }
  .footer-cols { flex-direction: column; gap: 2rem; }
}
/* ===== VIDEO ADDITIONS TO styles.css ===== */

/* NAV WATCH LINK */
.nav-watch {
  color: var(--gold) !important;
  border: 1px solid var(--gold-dim);
  padding: 0.3rem 0.8rem !important;
  transition: all var(--transition) !important;
}
.nav-watch:hover {
  background: var(--gold) !important;
  color: var(--dark) !important;
}

/* HERO BUTTONS */
.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin-top: 1rem;
}
.hero-cta-video {
  background: rgba(201,168,76,0.12);
}

/* LECTURES CTA */
.lectures-cta {
  margin-top: 3rem; text-align: center;
}

/* ===== FEATURED VIDEO SECTION ===== */
#featured-video {
  background: var(--dark3);
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.featured-vid-wrap {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center;
}
.featured-vid-player {
  position: relative; width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  cursor: pointer;
}
.vid-thumb {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: filter var(--transition);
}
.vid-thumb:hover { filter: brightness(1.1); }
.vid-thumb::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%);
}
.vid-play-btn {
  position: relative; z-index: 2;
  width: 72px; height: 72px;
  background: rgba(201,168,76,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--dark);
  padding-left: 5px;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 0 40px rgba(201,168,76,0.4);
}
.vid-thumb:hover .vid-play-btn {
  transform: scale(1.1);
  background: var(--gold-light);
}
.vid-thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem;
  font-family: 'Cinzel', serif; font-size: 0.75rem;
  color: var(--white); z-index: 2;
  letter-spacing: 0.03em;
}
.vid-iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.vid-iframe.hidden { display: none; }

.featured-vid-info h3 {
  font-family: 'Cinzel', serif; font-size: 1.4rem;
  color: var(--white); margin-bottom: 1rem; line-height: 1.3;
}
.featured-vid-info p {
  color: var(--text); font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.75;
}
.fv-meta {
  color: var(--gold-dim) !important; font-size: 0.8rem !important;
  font-family: 'Cinzel', serif; letter-spacing: 0.08em;
}
.fv-archive-link {
  display: inline-block; margin-top: 1rem;
  color: var(--gold); text-decoration: none;
  font-family: 'Cinzel', serif; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.fv-archive-link:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* ===== VIDEO ARCHIVE PAGE (videos.html) ===== */
.videos-hero {
  padding: 10rem 0 4rem;
  background: var(--dark);
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.videos-hero .section-label { margin-bottom: 1rem; }
.videos-hero .section-title { margin-bottom: 0.5rem; }
.videos-hero p {
  color: var(--text-muted); max-width: 560px; margin: 0 auto;
  font-size: 0.95rem;
}

.video-filters {
  background: var(--dark2);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  padding: 1.25rem 0;
}
.video-filters .container {
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
}
.vf-btn {
  background: none; border: 1px solid rgba(201,168,76,0.2);
  color: var(--text-muted);
  font-family: 'Cinzel', serif; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.45rem 1rem; cursor: pointer;
  transition: all var(--transition);
}
.vf-btn:hover, .vf-btn.active {
  border-color: var(--gold); color: var(--gold);
  background: rgba(201,168,76,0.06);
}

.videos-section {
  padding: 4rem 0 6rem;
  background: var(--dark);
}
.videos-count {
  color: var(--text-muted); font-size: 0.8rem;
  font-family: 'Cinzel', serif; letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.video-card {
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.1);
  overflow: hidden; cursor: pointer;
  transition: all var(--transition);
}
.video-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.1);
}
.vc-thumb {
  position: relative; aspect-ratio: 16/9;
  background: #000; overflow: hidden;
}
.vc-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .vc-thumb img { transform: scale(1.04); }
.vc-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: background var(--transition);
}
.video-card:hover .vc-play { background: rgba(0,0,0,0.1); }
.vc-play-icon {
  width: 52px; height: 52px;
  background: rgba(201,168,76,0.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--dark);
  padding-left: 4px;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 0 20px rgba(201,168,76,0.3);
}
.video-card:hover .vc-play-icon {
  transform: scale(1.1);
  background: var(--gold-light);
}
.vc-info {
  padding: 1rem 1.1rem 1.2rem;
}
.vc-title {
  font-family: 'Cinzel', serif; font-size: 0.85rem;
  color: var(--white); line-height: 1.4; margin-bottom: 0.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.vc-tag {
  display: inline-block;
  font-family: 'Cinzel', serif; font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-dim); border: 1px solid rgba(201,168,76,0.2);
  padding: 0.2rem 0.5rem;
}

/* VIDEO MODAL */
.vid-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.vid-modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.vid-modal {
  position: relative; width: 90%; max-width: 900px;
  aspect-ratio: 16/9;
}
.vid-modal iframe {
  width: 100%; height: 100%; border: none;
}
.vid-modal-close {
  position: absolute; top: -42px; right: 0;
  background: none; border: none;
  color: var(--gold); font-size: 1.5rem;
  cursor: pointer; font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
}

/* RESPONSIVE VIDEO */
@media (max-width: 900px) {
  .featured-vid-wrap { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .videos-grid { grid-template-columns: 1fr; }
}

/* ===== HERO LOGO IMAGE ===== */
.hero-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  animation: heroLogoIn 1.2s ease both;
  animation-delay: 0.3s;
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-logo-img {
  width: clamp(280px, 55vw, 520px);
  height: auto;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 0 40px rgba(197, 160, 80, 0.5))
          drop-shadow(0 0 80px rgba(197, 160, 80, 0.25));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.hero-logo-img:hover {
  filter: drop-shadow(0 0 55px rgba(197, 160, 80, 0.7))
          drop-shadow(0 0 100px rgba(197, 160, 80, 0.35));
  transform: scale(1.02);
}

@media (max-width: 600px) {
  .hero-logo-img {
    width: clamp(220px, 85vw, 320px);
  }
}
