/* ==========================================================================
   सीमाओं के पार (Seemaon Ke Paar) - Official Digital Book Landing Page
   Author: Smt. Seema Singh (श्रीमती सीमा सिंह)
   Aesthetic: Heritage Literary Devanagari • Warm Parchment • Antique Gold
   ========================================================================== */

:root {
  --bg-parchment: #faf6f0;
  --bg-parchment-deep: #f2e9dc;
  --bg-card: #ffffff;
  --primary-wine: #4a0e17;
  --primary-wine-dark: #32080e;
  --primary-wine-light: #6e1825;
  --accent-gold: #c5973e;
  --accent-gold-light: #deb865;
  --accent-gold-soft: #fcf6e8;
  --text-dark: #261e1b;
  --text-body: #4a403b;
  --text-muted: #7c7068;
  --border-subtle: #ebdcd0;
  --border-gold: #d8b884;
  --font-serif: 'Noto Serif Devanagari', 'Martel', serif;
  --font-display: 'Rozha One', 'Cinzel', serif;
  --font-meta: 'Cinzel', serif;
  --shadow-subtle: 0 4px 20px rgba(74, 14, 23, 0.05);
  --shadow-elevated: 0 12px 35px rgba(74, 14, 23, 0.09);
  --shadow-book: 0 20px 45px rgba(50, 8, 14, 0.25), 0 5px 15px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  letter-spacing: normal !important;
}

.en-text {
  font-family: var(--font-meta) !important;
  letter-spacing: 1.5px !important;
}

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

body {
  background-color: var(--bg-parchment);
  color: var(--text-body);
  font-family: var(--font-serif);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background Subtle Texture */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(var(--border-subtle) 0.75px, transparent 0.75px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Top Announcement Banner */
.top-bar {
  background: var(--primary-wine-dark);
  color: var(--accent-gold-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(197, 151, 62, 0.3);
}

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Header & Nav */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 14px 0;
  transition: all 0.3s ease;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary-wine);
  font-weight: 700;
  line-height: 1.2;
}

.brand-author {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--text-dark);
  font-weight: 500;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #7c1a2c 0%, #4a0e17 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(74, 14, 23, 0.28);
  border: 1px solid rgba(216, 184, 132, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8d2033 0%, #56111b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 14, 23, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--primary-wine) !important;
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  background: var(--accent-gold-soft);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.15rem;
  border-radius: var(--radius-md);
}

.btn-gold {
  background: linear-gradient(135deg, #d8ab48 0%, #b38228 100%);
  color: #2b1803 !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(179, 130, 40, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e4ba56 0%, #c5912d 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(179, 130, 40, 0.4);
}

/* ==================== HERO SECTION ==================== */
.hero {
  padding: 60px 0 70px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold-soft);
  border: 1px solid var(--border-gold);
  color: #7a5418;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--primary-wine);
  line-height: 1.22;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: #735930;
  font-weight: 500;
  margin-bottom: 20px;
  font-style: italic;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 30px;
}

.hero-price-box {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.current-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--primary-wine);
  font-weight: 700;
  line-height: 1;
}

.original-price {
  font-size: 1.3rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount-badge {
  background: #d4384a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.hero-trust-points span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 3D Book Mockup Display */
.hero-book-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.book-card-3d {
  position: relative;
  width: 320px;
  transform: rotateY(-14deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 8px;
  box-shadow: var(--shadow-book);
}

.book-card-3d:hover {
  transform: rotateY(-4deg) rotateX(2deg) translateY(-8px);
  box-shadow: 0 30px 60px rgba(50, 8, 14, 0.35);
}

.book-card-3d img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.book-spine-effect {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 16px;
  background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(255,255,255,0.15) 30%, rgba(0,0,0,0.1) 100%);
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.book-tag-floating {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: linear-gradient(135deg, #d8ab48, #b38228);
  color: #2b1803;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==================== STATS BAR ==================== */
.stats-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 35px 0;
}

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

.stat-item h3 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--primary-wine);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==================== AUTHOR STORY ==================== */
.author-section {
  padding: 80px 0;
}

.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.author-card::before {
  content: "❝";
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 160px;
  color: var(--border-subtle);
  opacity: 0.4;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px !important;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--primary-wine);
  margin-bottom: 24px;
  line-height: 1.3;
}

.author-quote-box {
  background: var(--accent-gold-soft);
  border-left: 4px solid var(--accent-gold);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 28px;
  font-style: italic;
  font-size: 1.15rem;
  color: #3b2812;
}

.author-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-body);
}

.author-body p {
  margin-bottom: 16px;
}

/* ==================== 5 CHAPTERS SECTION ==================== */
.chapters-section {
  padding: 70px 0 80px 0;
  background: var(--bg-parchment-deep);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.text-center {
  text-align: center;
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 45px;
}

.chapter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 3.5px solid var(--primary-wine);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-subtle);
}

.chapter-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
  border-top-color: var(--accent-gold);
}

.ch-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.ch-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary-wine);
  margin-bottom: 10px;
}

.ch-theme {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==================== INTERACTIVE SAMPLE READER ==================== */
.sample-section {
  padding: 80px 0;
}

.sample-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
  margin-bottom: 35px;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 22px;
  border-radius: 30px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-wine);
  color: #ffffff;
  border-color: var(--primary-wine);
}

.sample-display {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-elevated);
  position: relative;
}

.sample-fleuron {
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.sample-poem-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--primary-wine);
  margin-bottom: 20px;
}

.sample-poem-body {
  font-size: 1.12rem;
  line-height: 2.1;
  color: var(--text-dark);
  white-space: pre-line;
  margin-bottom: 25px;
}

.sample-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* ==================== PRICING OFFER BOX ==================== */
.pricing-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-parchment) 0%, #faeee0 100%);
}

.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 680px;
  margin: 0 auto;
  padding: 50px 45px;
  text-align: center;
  box-shadow: 0 16px 45px rgba(74, 14, 23, 0.12);
  position: relative;
}

.pricing-ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d8ab48, #b38228);
  color: #2b1803;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pricing-card-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary-wine);
  margin-top: 10px;
  margin-bottom: 6px;
}

.pricing-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.price-display-large {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

.price-currency {
  font-size: 2rem;
  color: var(--primary-wine);
  font-weight: 700;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--primary-wine);
  font-weight: 700;
  line-height: 1;
}

.price-struck {
  font-size: 1.4rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.benefits-list {
  list-style: none;
  text-align: left;
  max-width: 440px;
  margin: 0 auto 35px auto;
  font-size: 1rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li svg {
  color: #2b7a3a;
  flex-shrink: 0;
}

.payment-methods-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
  padding: 70px 0 80px 0;
}

.faq-container {
  max-width: 720px;
  margin: 40px auto 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-wine);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question:hover {
  background: var(--accent-gold-soft);
}

.faq-toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px 24px;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-body);
  border-top: 1px solid var(--border-subtle);
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==================== FOOTER ==================== */
footer.site-footer {
  background: var(--primary-wine-dark);
  color: #c9bcad;
  padding: 50px 0 30px 0;
  border-top: 1px solid var(--border-gold);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-gold-light);
  margin-bottom: 8px;
}

.footer-col h5 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  line-height: 2.2;
}

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  font-size: 0.82rem;
  color: #9c8e7f;
}

/* ==================== CHECKOUT MODAL ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(43, 8, 14, 0.7);
  backdrop-filter: blur(5px);
  z-index: 999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 35px 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary-wine);
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.checkout-form {
  text-align: left;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-parchment);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-wine);
  background: #ffffff;
}

/* Floating Mobile Buy Button */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-gold);
  padding: 10px 18px;
  z-index: 90;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
  justify-content: space-between;
  align-items: center;
}

.mobile-price-tag {
  display: flex;
  flex-direction: column;
}

.mobile-price-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary-wine);
  font-weight: 700;
  line-height: 1;
}

.mobile-price-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-book-wrap {
    order: -1;
    margin-bottom: 20px;
  }
  
  .hero-price-box {
    justify-content: center;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-trust-points {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.3rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-sticky-bar {
    display: flex;
  }
  
  body {
    padding-bottom: 60px;
  }
  
  .author-card {
    padding: 30px 20px;
  }
  
  .pricing-card {
    padding: 40px 20px;
  }
}
