/* ═══════════════════════════════════════════
   POOJA BOOKS — Main Stylesheet
   poojabooks.in | Devotion, Simplified.
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Hind:wght@300;400;500;600&display=swap');

:root {
  --saffron:      #E8600A;
  --saffron-dark: #C4470A;
  --gold:         #D4A017;
  --gold-light:   #F0C040;
  --maroon:       #7B1F1F;
  --maroon-light: #A83232;
  --cream:        #FDF6EC;
  --cream-dark:   #F5E8D0;
  --charcoal:     #1E1A17;
  --text-dark:    #2C1A0E;
  --text-mid:     #5C3A1E;
  --text-light:   #8B6340;
  --white:        #FFFFFF;
  --shadow:       0 4px 20px rgba(0,0,0,0.10);
  --radius:       10px;
}

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

body {
  font-family: 'Hind', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── TOPBAR ── */
.topbar {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 7px 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.topbar span { color: var(--gold); }

/* ── NAVBAR ── */
.navbar {
  background: var(--maroon);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  text-decoration: none;
}
.navbar-brand .brand-icon { font-size: 22px; }
.navbar-brand .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}
.navbar-brand .brand-tagline {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  display: block;
  line-height: 1;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: var(--gold-light);
}
.nav-links .btn-nav {
  background: var(--saffron);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
}
.nav-links .btn-nav:hover { background: var(--saffron-dark); }

.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:5px; }
.hamburger span { width:24px; height:2px; background:#fff; border-radius:2px; transition:0.3s; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--maroon) 0%, #3D0A0A 60%, #1E0505 100%);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: 'ॐ';
  position: absolute;
  font-size: 400px;
  color: rgba(255,255,255,0.025);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  font-family: serif;
}
.hero-badge {
  display: inline-block;
  background: rgba(212,160,23,0.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 52px);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 span { color: var(--gold-light); }
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--saffron);
  color: #fff;
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--saffron-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,96,10,0.4); }
.btn-outline {
  background: transparent;
  color: var(--gold-light);
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover { background: rgba(212,160,23,0.1); }

/* ── SECTION ── */
.section { padding: 70px 40px; }
.section-alt { background: var(--cream-dark); }
.section-dark { background: var(--charcoal); }
.container { max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--maroon);
  line-height: 1.3;
}
.section-dark .section-title { color: var(--gold-light); }
.gold-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ── BOOK CARDS ── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.book-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.book-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.14); }
.book-card-cover {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-bottom: 3px solid var(--gold);
}
.book-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.book-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--maroon);
  margin-bottom: 8px;
  line-height: 1.4;
}
.book-card-desc {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--cream-dark);
}
.book-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--saffron);
}
.book-price span { font-size: 13px; color: var(--text-light); font-weight: 400; }
.btn-buy {
  background: var(--maroon);
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-buy:hover { background: var(--maroon-light); }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--gold);
}
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--maroon);
  margin-bottom: 8px;
}
.feature-desc { font-size: 13.5px; color: var(--text-mid); }

/* ── TESTIMONIAL / ABOUT STRIP ── */
.about-strip {
  background: linear-gradient(135deg, var(--maroon), #3D0A0A);
  padding: 60px 40px;
  text-align: center;
}
.about-strip p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(17px, 2.5vw, 22px);
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.7;
}
.about-strip .brand-sig {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.12em;
  font-style: normal;
  font-family: 'Hind', sans-serif;
}

/* ── BOOK DETAIL ── */
.book-detail { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: start; }
.book-detail-cover {
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  width: 100%;
}
.book-detail-badge {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--saffron);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.book-detail h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--maroon);
  line-height: 1.3;
  margin-bottom: 14px;
}
.book-detail-desc { font-size: 15.5px; color: var(--text-mid); margin-bottom: 24px; line-height: 1.8; }
.book-detail-price-box {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.detail-price { font-size: 36px; font-weight: 700; color: var(--saffron); }
.detail-price-note { font-size: 12px; color: var(--text-light); }
.btn-buy-large {
  width: 100%;
  background: var(--saffron);
  color: #fff;
  padding: 16px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-buy-large:hover { background: var(--saffron-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,96,10,0.35); }
.secure-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
  justify-content: center;
}

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 7px;
  font-family: 'Hind', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  transition: border 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232,96,10,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── THANK YOU ── */
.thankyou-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 50px 40px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}
.thankyou-icon { font-size: 60px; margin-bottom: 20px; }
.thankyou-box h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--maroon);
  margin-bottom: 12px;
}
.thankyou-box p { color: var(--text-mid); margin-bottom: 24px; }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--saffron);
  color: #fff;
  padding: 15px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-download:hover { background: var(--saffron-dark); }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 50px 40px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 36px;
}
.footer-brand .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.footer-brand p { font-size: 13.5px; line-height: 1.7; }
.footer-col h4 {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-bottom span { color: var(--gold); }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--maroon), #3D0A0A);
  padding: 48px 40px;
  text-align: center;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--white);
  margin-bottom: 8px;
}
.page-header p { color: rgba(255,255,255,0.7); font-size: 15px; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.breadcrumb a { color: var(--gold); }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: 14px;
  padding: 36px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-light);
  background: none;
  border: none;
  line-height: 1;
}
.modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--maroon);
  margin-bottom: 6px;
}
.modal .modal-book-title {
  font-size: 13px;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 20px;
}
.modal-price {
  background: var(--cream-dark);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-price .price-val { font-size: 26px; font-weight: 700; color: var(--saffron); }
#pay-btn {
  width: 100%;
  background: var(--saffron);
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}
#pay-btn:hover { background: var(--saffron-dark); }
#pay-btn:disabled { background: #ccc; cursor: not-allowed; }

/* ── ALERTS ── */
.alert {
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-success { background: #f0fff0; border: 1px solid #b6ddb6; color: #2a7a2a; }
.alert-error   { background: #fff0f0; border: 1px solid #ddb6b6; color: #7a2a2a; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--maroon); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero { padding: 50px 20px; }
  .section { padding: 50px 20px; }
  .book-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .modal { padding: 24px; }
  .page-header { padding: 36px 20px; }
}
