/* =========================================================
   Lucernia — Landing Page Styles
   Color palette mirrors src/theme/variables.css
   ========================================================= */

:root {
  --color-primary: #c9a45a;
  --color-primary-shade: #b1904f;
  --color-primary-tint: #cead6b;

  --color-secondary: #2B211B;
  --color-secondary-shade: #261d18;
  --color-secondary-tint: #403732;

  --color-tertiary: #3a2a20;

  --color-success: #647458;
  --color-danger: #800020;

  --color-light: #f6ebd9;
  --color-light-shade: #d8cfbf;
  --color-light-tint: #f7eddd;

  --color-dark: #181612;
  --color-dark-tint: #2f2d2a;

  --color-text: #2d3748;
  --color-text-on-dark: #f6ebd9;
  --color-muted: #6b6357;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(24, 22, 18, 0.08);
  --shadow-md: 0 12px 32px rgba(24, 22, 18, 0.14);
  --shadow-lg: 0 24px 60px rgba(24, 22, 18, 0.22);

  --max-width: 1180px;
  --nav-height: 72px;

  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-light);
  color: var(--color-text);
  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-shade);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--color-primary); }

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

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(43, 33, 27, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(201, 164, 90, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-light);
  font-weight: 700;
  font-size: 1.25rem;
}
.brand:hover { color: var(--color-primary-tint); }

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-family: "Quicksand", sans-serif;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--color-light);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; color: var(--color-primary-tint); }

.nav-cta {
  background: var(--color-primary);
  color: var(--color-dark) !important;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  opacity: 1 !important;
  transition: transform 0.15s ease, background 0.2s ease;
}
.nav-cta:hover {
  background: var(--color-primary-tint);
  color: var(--color-dark) !important;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-light);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-secondary-shade);
  padding: 12px 24px 18px;
  gap: 12px;
  border-top: 1px solid rgba(201, 164, 90, 0.18);
}
.mobile-menu a {
  color: var(--color-light);
  padding: 10px 0;
  border-bottom: 1px solid rgba(246, 235, 217, 0.08);
}
.mobile-menu a:last-child { border-bottom: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background:
    radial-gradient(ellipse at top left, rgba(201, 164, 90, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(100, 116, 88, 0.12), transparent 50%),
    linear-gradient(180deg, var(--color-secondary) 0%, var(--color-secondary-shade) 100%);
  color: var(--color-text-on-dark);
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 20px;
  color: var(--color-light);
  letter-spacing: -0.5px;
}

.hero-copy .lead {
  font-size: 1.15rem;
  max-width: 540px;
  margin: 0 0 32px;
  color: rgba(246, 235, 217, 0.85);
}

.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.store-buttons a {
  display: inline-block;
  transition: transform 0.15s ease;
}
.store-buttons a:hover { transform: translateY(-2px); }
.store-buttons img {
  height: 52px;
  width: auto;
  border-radius: var(--radius-sm);
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.hero-bullets li {
  position: relative;
  padding-left: 28px;
  color: rgba(246, 235, 217, 0.9);
  font-weight: 500;
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(201, 164, 90, 0.18);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-screenshot {
  max-width: 360px;
  width: 100%;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
  background: var(--color-dark);
}
.hero-screenshot:hover { transform: rotate(0deg) scale(1.02); }

/* =========================================================
   Sections
   ========================================================= */
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
  color: var(--color-secondary);
  letter-spacing: -0.3px;
}
.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  max-width: 620px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* Features */
.features {
  padding: 96px 0;
  background: var(--color-light-tint);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201, 164, 90, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 164, 90, 0.32);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary-tint), var(--color-primary-shade));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(201, 164, 90, 0.3);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--color-secondary);
}

.feature-card p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Download CTA */
.download-cta {
  padding: 88px 0;
  background:
    radial-gradient(ellipse at top right, rgba(201, 164, 90, 0.18), transparent 55%),
    linear-gradient(180deg, var(--color-secondary) 0%, var(--color-tertiary) 100%);
  color: var(--color-text-on-dark);
  text-align: center;
}
.download-cta .section-title { color: var(--color-light); }
.download-cta .section-subtitle {
  color: rgba(246, 235, 217, 0.78);
  margin-bottom: 36px;
}
.store-buttons-center {
  justify-content: center;
  margin: 0;
}

/* FAQ */
.faq {
  padding: 96px 0;
  background: var(--color-light);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-list details {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  border: 1px solid rgba(201, 164, 90, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-list details[open] {
  border-color: rgba(201, 164, 90, 0.5);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-secondary);
  list-style: none;
  position: relative;
  padding-right: 32px;
  font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(0deg);
}

.faq-list details p {
  margin: 12px 0 0;
  color: var(--color-muted);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  padding: 64px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-brand .brand-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}
.footer-brand .brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-light);
}
.footer-tagline {
  margin: 4px 0 0;
  color: rgba(246, 235, 217, 0.6);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: rgba(246, 235, 217, 0.78);
  font-weight: 500;
}
.footer-links a:hover { color: var(--color-primary); }

.footer-stores {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.footer-stores img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(246, 235, 217, 0.12);
  margin-top: 48px;
  padding-top: 20px;
  text-align: center;
  color: rgba(246, 235, 217, 0.55);
  font-size: 0.88rem;
}

/* =========================================================
   Floating QR
   ========================================================= */
.qr-floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 12px 14px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  border: 1px solid rgba(201, 164, 90, 0.3);
  animation: qr-in 0.5s ease 0.6s both;
}

@keyframes qr-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.qr-message {
  font-size: 0.82rem;
  text-align: center;
  font-weight: 600;
  color: var(--color-secondary);
  line-height: 1.3;
}

.qr-image {
  width: 130px;
  height: 130px;
  background: var(--color-light-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-muted);
  line-height: 1;
}
.qr-close:hover { color: var(--color-secondary); }

.qr-floating.hidden { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }
  .hero-bullets { display: inline-grid; text-align: left; }

  .features, .faq { padding: 72px 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .footer-brand, .footer-stores { align-items: center; }
  .footer-links { align-items: center; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu[data-open="true"] { display: flex; }

  .qr-floating {
    max-width: 150px;
    padding: 10px 10px 12px;
  }
  .qr-image { width: 110px; height: 110px; }
  .qr-message { font-size: 0.75rem; }
}

@media (max-width: 420px) {
  .qr-floating {
    right: 12px;
    bottom: 12px;
    max-width: 130px;
  }
  .qr-image { width: 96px; height: 96px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Content / article pages (programmatic SEO)
   Generated into /bible/<slug>/ and /answers/<slug>/
   ========================================================= */
.article {
  background: var(--color-light);
  padding: 48px 0 96px;
}

.article-inner {
  max-width: 820px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--color-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--color-primary-shade); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--color-secondary); font-weight: 600; }

.article-head { margin-bottom: 36px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary-shade);
  margin: 0 0 10px;
}
.article-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-secondary);
  margin: 0 0 24px;
  letter-spacing: -0.4px;
}

/* Verse blockquote */
.verse {
  margin: 0;
  padding: 22px 26px;
  background: #fff;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.verse p {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-secondary);
  font-weight: 500;
}
.verse cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary-shade);
  font-size: 0.95rem;
}
.verse-sm p { font-size: 1.05rem; }

/* TL;DR / quick-answer card */
.tldr {
  background: linear-gradient(135deg, rgba(201, 164, 90, 0.12), rgba(100, 116, 88, 0.08));
  border: 1px solid rgba(201, 164, 90, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 0 0 40px;
}
.tldr h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary-shade);
  margin: 0 0 8px;
}
.tldr p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--color-secondary);
}

/* Context facts grid */
.context-facts { margin: 0 0 40px; }
.context-facts h2,
.article-section h2,
.key-verses h2,
.related h2,
.faq-section h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 16px;
  letter-spacing: -0.2px;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
}
.facts-grid .fact {
  background: #fff;
  border: 1px solid rgba(201, 164, 90, 0.18);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}
.facts-grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary-shade);
  font-weight: 700;
  margin-bottom: 4px;
}
.facts-grid dd { margin: 0; color: var(--color-text); font-size: 0.98rem; }

/* Article body */
.article-section { margin: 0 0 36px; }
.article-section p {
  color: var(--color-text);
  font-size: 1.05rem;
  margin: 0 0 16px;
}
.article-section p:last-child { margin-bottom: 0; }
.article-inner a { color: var(--color-primary-shade); font-weight: 600; }
.article-inner a:hover { color: var(--color-primary); text-decoration: underline; }

/* Cross-reference & key-verse lists */
.xref-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.xref-list li {
  background: #fff;
  border: 1px solid rgba(201, 164, 90, 0.16);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--color-text);
}
.xref-list strong { color: var(--color-primary-shade); }
.xref-note { color: var(--color-muted); }

.key-verses { margin: 0 0 40px; }
.key-verse-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.kv-note { margin: 12px 0 0; color: var(--color-muted); font-size: 0.98rem; }

/* In-article app CTA */
.app-cta {
  margin: 48px 0;
  padding: 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top right, rgba(201, 164, 90, 0.22), transparent 60%),
    linear-gradient(180deg, var(--color-secondary) 0%, var(--color-tertiary) 100%);
  color: var(--color-text-on-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.app-cta-text { flex: 1 1 320px; }
.app-cta h2 {
  color: var(--color-light);
  font-size: 1.4rem;
  margin: 0 0 8px;
  font-weight: 700;
}
.app-cta p { margin: 0; color: rgba(246, 235, 217, 0.85); font-size: 1rem; }
.app-cta .store-buttons { margin: 0; flex: 0 0 auto; }
.app-cta .store-buttons img { height: 48px; }

/* Related links */
.related { margin: 48px 0 0; padding-top: 36px; border-top: 1px solid rgba(201, 164, 90, 0.25); }
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.related-list a {
  display: block;
  background: #fff;
  border: 1px solid rgba(201, 164, 90, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.related-list a:hover {
  border-color: rgba(201, 164, 90, 0.5);
  transform: translateY(-2px);
  text-decoration: none;
}

/* FAQ on article pages — reuse homepage .faq-list styling */
.faq-section { margin: 48px 0 0; }

/* Hub / index pages */
.index-grid-wrap { margin: 8px 0 8px; }
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.index-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(201, 164, 90, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.index-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 164, 90, 0.42);
  text-decoration: none;
}
.index-card h2 {
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin: 0 0 10px;
  font-weight: 700;
}
.index-card p { color: var(--color-muted); font-size: 0.96rem; margin: 0 0 16px; flex: 1; }
.index-card-cta { color: var(--color-primary-shade); font-weight: 700; font-size: 0.92rem; }

@media (max-width: 680px) {
  .article { padding: 32px 0 64px; }
  .app-cta { padding: 24px; }
  .tldr, .verse { padding: 18px 20px; }
}

/* Homepage "Explore Bible study guides" section */
.guides {
  padding: 96px 0;
  background: var(--color-light);
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
.guides-col {
  background: #fff;
  border: 1px solid rgba(201, 164, 90, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}
.guides-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 16px;
}
.guides-col ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.guides-col li a {
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.guides-col li a:hover { color: var(--color-primary-shade); }
.guides-more { font-weight: 700; color: var(--color-primary-shade); font-size: 0.95rem; }
.guides-more:hover { color: var(--color-primary); }

@media (max-width: 900px) {
  .guides { padding: 72px 0; }
}
