/* 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;
  min-height: 420px;
  height: 56vw;
  max-height: 680px;
  background: #1a0530 url('../images/hero-banner.png') center center / cover no-repeat;
  color: var(--white);
  display: block;
  overflow: hidden;
}

/* 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: 2rem 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 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; }
}