/* ===================================================
   BIBLE TRIVIA QUIZ — Main Stylesheet
   Dark navy + gold + vintage Bible aesthetic
   =================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #1a1e2e;
  --navy-dark:  #10131f;
  --navy-mid:   #242840;
  --gold:       #c9a84c;
  --gold-light: #e8c96e;
  --gold-pale:  #f5e6b8;
  --cream:      #f9f4e8;
  --text-dark:  #1a1e2e;
  --text-mid:   #3d3d3d;
  --text-light: #e8e0cc;
  --white:      #ffffff;
  --border:     rgba(201,168,76,0.3);
  --shadow:     0 4px 24px rgba(0,0,0,0.35);
  --radius:     8px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

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

.gold {
  color: var(--gold);
}

.section {
  padding: 80px 0;
}

.dark-section {
  background: var(--navy);
  color: var(--text-light);
}

/* ---- Section Labels & Titles ---- */
.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-label.light {
  color: var(--gold-light);
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title.light {
  color: var(--cream);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 680px;
  margin-bottom: 48px;
}

.section-sub.light {
  color: var(--text-light);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

/* ===================================================
   NAVIGATION
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(16, 19, 31, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(16, 19, 31, 0.99);
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.nav-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

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

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition);
}

/* ===================================================
   HERO SLIDER
   =================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 13, 25, 0.88) 0%,
    rgba(10, 13, 25, 0.6) 60%,
    rgba(10, 13, 25, 0.2) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 80px;
  animation: slideIn 0.8s ease both;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-tagline {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.slide-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.slide-sub {
  font-family: 'Crimson Text', serif;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 36px;
  font-style: italic;
  max-width: 520px;
}

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(201,168,76,0.2);
  border: 2px solid var(--gold);
  color: var(--gold);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(201,168,76,0.4);
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all var(--transition);
}

.dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

/* ===================================================
   INTRO BANNER
   =================================================== */
.intro-banner {
  background: var(--navy-mid);
  padding: 48px 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.intro-item {
  padding: 16px;
}

.intro-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.intro-item h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.intro-item p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ===================================================
   ABOUT SECTION
   =================================================== */
.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 3px solid var(--border);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
}

.badge-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 4px;
}

.about-lead {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-content p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--text-mid);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag {
  background: var(--navy);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
}

/* ===================================================
   TRIVIA SECTION
   =================================================== */
.trivia {
  background: var(--navy);
}

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

.trivia-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.trivia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.15);
}

.trivia-num {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--border);
  margin-bottom: 12px;
  line-height: 1;
}

.trivia-question {
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.trivia-reveal-btn {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.05em;
}

.trivia-reveal-btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.trivia-answer {
  margin-top: 12px;
  color: var(--gold-light);
  font-style: italic;
  font-size: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.trivia-answer.hidden {
  display: none;
}

/* ===================================================
   WHY PLAY SECTION
   =================================================== */
.why {
  background: var(--cream);
}

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

.why-card {
  background: var(--white);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.15);
  border-color: var(--gold);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===================================================
   SCRIPTURE BANNER
   =================================================== */
.scripture-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 64px 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.scripture-banner-2 {
  background: linear-gradient(135deg, #0d1020 0%, #1a1e2e 100%);
}

.scripture-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.scripture-cross {
  font-size: 2.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}

.scripture-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 16px;
}

.scripture-cite {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ===================================================
   CATEGORIES SECTION
   =================================================== */
.categories {
  background: var(--navy);
}

.categories .section-title {
  color: var(--cream);
}

.categories .section-label {
  color: var(--gold-light);
}

.categories .section-sub {
  color: var(--text-light);
}

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

.cat-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(201,168,76,0.15);
}

.cat-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cat-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.cat-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===================================================
   CONTACT SECTION
   =================================================== */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item strong {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.contact-item p {
  font-size: 1rem;
  color: var(--text-mid);
  margin: 0;
}

.contact-item a {
  color: var(--gold);
}

.contact-item a:hover {
  color: var(--navy);
}

.contact-image-wrap {
  position: relative;
}

.contact-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 3px solid var(--border);
}

.contact-quote-box {
  background: var(--navy);
  color: var(--gold-pale);
  padding: 20px 24px;
  border-radius: 0 0 12px 12px;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-top: none;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--navy-dark);
  color: var(--text-light);
  padding: 64px 0 0;
  border-top: 2px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-sub {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-verse h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-contact a {
  color: var(--gold);
}

.footer-contact a:hover {
  color: var(--gold-light);
}

.footer-verse blockquote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 8px;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

.footer-verse cite {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(232,224,204,0.6);
  margin-bottom: 4px;
}

.footer-categories {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ===================================================
   BACK TO TOP
   =================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
}

/* ===================================================
   FADE-IN ANIMATION
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap {
    max-width: 480px;
    margin: 0 auto;
  }

  .trivia-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .slide-content {
    padding: 0 40px;
  }

  .slide-title {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }

  .trivia-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 56px 0;
  }
}

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

  .slide-content {
    padding: 0 24px;
  }

  .about-badge {
    right: 0;
    bottom: -16px;
    width: 80px;
    height: 80px;
    font-size: 0.6rem;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
