/* Yovel Publications - Clean independent rebuild */
:root {
  --purple-deep: #2a0a4a;
  --purple-mid: #4a1a7a;
  --purple-light: #6b2d9b;
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --cream: #f8f4ec;
  --text-dark: #1a1225;
  --text-muted: #5a4a6a;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(42, 10, 74, 0.12);
  --radius: 12px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--purple-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* ========== HEADER / NAV ========== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--purple-deep);
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  list-style: none;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple-mid);
  border-bottom-color: var(--purple-mid);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--purple-deep);
}

/* ========== MAIN NAV UNDER BANNER (original style) ========== */
.main-nav {
  background: #ffffff;
  border-bottom: 1px solid #e8e4f0;
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: center;
}

.nav-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1100px;
}

.nav-pills a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #3d2a5c;
  background: #e8eef8;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-pills a:hover,
.nav-pills a.active {
  background: #d0dcf0;
  color: var(--purple-deep);
}

@media (max-width: 700px) {
  .nav-pills {
    gap: 0.3rem;
  }
  .nav-pills a {
    font-size: 0.82rem;
    padding: 0.35rem 0.7rem;
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background: #1a0530;
  color: var(--white);
  display: block;
  overflow: hidden;
  line-height: 0;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero.hero-inner {
  min-height: 110px;
  height: 14vw;
  max-height: 150px;
  background-position: center 30%;
}

.notice {
  font-size: 0.9rem;
  color: #8a3a3a;
  background: #fdf0f0;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* The banner image already contains the full YOVEL logo and text, so hide the HTML overlay */
.hero-content {
  display: none;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
  margin-bottom: 0.3rem;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 1.2rem;
}

.hero .tagline {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.hero .verse {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.hero .script {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold-light);
  margin-top: 0.5rem;
}

/* ========== SECTIONS ========== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--purple-deep);
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Subscribe bar */
.subscribe-bar {
  background: var(--purple-deep);
  color: var(--white);
  padding: 0.9rem 1.5rem;
}

.subscribe-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.subscribe-bar h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.subscribe-bar p {
  opacity: 0.85;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--purple-deep);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--purple-deep);
}

.btn-purple {
  background: var(--purple-mid);
  color: var(--white);
}

.btn-purple:hover {
  background: var(--purple-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--purple-mid);
  color: var(--purple-mid);
}

.btn-outline:hover {
  background: var(--purple-mid);
  color: var(--white);
}

.book-cover.placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 1.2rem 1rem 1.6rem;
  color: #f8f0d8;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: 0.03em;
}
.cover-birth { background: linear-gradient(180deg,#3a0d2a 0%,#6b1d3a 55%,#c9a227 160%); }
.cover-mysteries { background: linear-gradient(180deg,#0d1a3a 0%,#1d3a6b 55%,#c9a227 160%); }
.cover-melchizedek { background: linear-gradient(180deg,#2a1a08 0%,#6b4a1d 55%,#e8c84a 160%); }
.cover-moses { background: linear-gradient(180deg,#0a2430 0%,#1a5a6b 55%,#c9a227 160%); }
.cover-sos { background: linear-gradient(180deg,#2a0a4a 0%,#4a1a7a 55%,#c9a227 160%); }

/* Book cards */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(42, 10, 74, 0.18);
}

.book-cover {
  aspect-ratio: 2 / 3;
  width: 100%;
  background-color: #f4f0f8;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

.book-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--purple-deep);
  margin-bottom: 0.3rem;
}

.book-meta {
  font-size: 0.85rem;
  color: var(--purple-light);
  margin-bottom: 0.7rem;
}

.book-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.2rem;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.book-actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* Simple pages */
.page-hero {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-mid));
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-hero p {
  opacity: 0.85;
  margin-top: 0.5rem;
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.content-block h2 {
  font-family: var(--font-serif);
  color: var(--purple-deep);
  margin: 1.8rem 0 0.8rem;
}

.content-block p, .content-block li {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.content-block ul {
  padding-left: 1.4rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 2rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-inner h4 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.footer-inner a {
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Community cards */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.comm-card {
  background: #faf8fc;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.comm-card h3 {
  font-size: 1.05rem;
  color: var(--purple-deep);
  margin-bottom: 0.3rem;
}

/* Responsive */
@media (max-width: 800px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    gap: 0.6rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .subscribe-inner { flex-direction: column; text-align: center; }
}
.upcoming-list { max-width: 900px; margin: 0 auto; }
.upcoming-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid #eee;
}
.upcoming-item img {
  width: 140px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(42,10,74,0.12);
  background: #f4f0f8;
}
.upcoming-item h3 { font-family: var(--font-serif); color: var(--purple-deep); margin: 0.2rem 0 0.6rem; }
.upcoming-item .book-meta { margin-bottom: 0.5rem; }
@media (max-width: 640px) {
  .upcoming-item { grid-template-columns: 100px 1fr; }
  .upcoming-item img { width: 100px; }
}

/* original-style menu: one row of text links */
.nav-pills {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem 1.05rem;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
}
.nav-pills a {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.25rem 0 !important;
  color: #3a2a4a !important;
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  white-space: nowrap;
}
.nav-pills a:hover,
.nav-pills a.active {
  color: #4a1a7a !important;
  text-decoration: underline;
  text-underline-offset: 6px;
  background: none !important;
}
