/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #FDFAF6;
  color: #1A0A00;
  overflow-x: hidden;
  cursor: default;
}

:root {
  --crimson: #C0392B;
  --crimson-dark: #8B1A10;
  --crimson-light: #E85D4A;
  --crimson-muted: rgba(192,57,43,0.12);
  --ink: #1A0A00;
  --ink-soft: #3D1F10;
  --paper: #FDFAF6;
  --paper-warm: #F5EFE6;
  --paper-mid: #EDE3D5;
  --paper-deep: #D9CCBB;
  --gold: #C9A96E;
  --gold-light: #E8D4A8;
  --white: #FFFFFF;
  --shadow-soft: 0 4px 24px rgba(26,10,0,0.08);
  --shadow-mid: 0 8px 40px rgba(26,10,0,0.14);
  --shadow-deep: 0 16px 60px rgba(26,10,0,0.2);
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--crimson); border-radius: 2px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'Playfair Display', serif; }
.italic, em { font-style: italic; }
.accent { color: var(--crimson); }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 0;
  background: transparent;
  border-bottom: none;
  transition: var(--transition);
  height: 80px;
  overflow: hidden;
}
.navbar.scrolled {
  background: rgba(253,250,246,0.97);
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid rgba(192,57,43,0.1);
}

.navbar.scrolled .nav-link {
  color: var(--ink-soft);
  text-shadow: none;
}

.navbar.scrolled .nav-banner-wrap {
  display: none;
}

.navbar.scrolled .nav-container {
  background: transparent;
}

.navbar.scrolled .nav-container {
  height: 64px;
}

.navbar.scrolled .nav-banner-wrap {
  width: 200px;
}
.nav-container {
  position: relative;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 40px;
}
.nav-logo-wrap { display: flex; align-items: center; }
.nav-logo-img {
  height: 48px; width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(192,57,43,0.2));
}
.navbar.scrolled .nav-logo-img { height: 38px; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  position: relative;
  z-index: 2;
}
.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  position: relative; padding-bottom: 2px;
  transition: color 0.25s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--crimson);
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--crimson); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--ink);
  display: block; transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 998;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  border-left: 3px solid var(--crimson);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--crimson); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 40px 80px;
}
.hero-texture {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 50%, rgba(192,57,43,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 20%, rgba(201,169,110,0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C0392B' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  max-width: 760px; text-align: center;
  position: relative; z-index: 2;
}
.hero-logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 220px;
  height: 220px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: rgba(192,57,43,0.05);
  border: 1.5px solid rgba(192,57,43,0.15);
}
.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 4px 16px rgba(192,57,43,0.2));
  animation: logoFloat 4s ease-in-out infinite;
  mix-blend-mode: multiply;
}
.hero-logo-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed rgba(192,57,43,0.2);
  animation: logoRing 4s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes logoRing {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.2; }
}
.hero-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 24px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-title .line { display: block; }
.hero-title .italic { font-style: italic; }
.hero-title .accent { color: var(--crimson); }
.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 300;
  color: var(--ink-soft); line-height: 1.8;
  max-width: 560px; margin: 0 auto 36px;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 48px;
}
.hero-quote {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-style: italic;
  color: var(--gold);
  padding: 16px 24px;
  border-top: 1px solid var(--paper-deep);
  border-bottom: 1px solid var(--paper-deep);
}
.quote-mark { font-size: 2rem; line-height: 0.5; color: var(--crimson); opacity: 0.4; }
.quote-trans { font-size: 0.82rem; font-style: normal; color: var(--ink-soft); opacity: 0.7; margin-top: 4px; letter-spacing: 0.05em; }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--crimson); opacity: 0.5;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
}
.hero-scroll-hint span {
  width: 1.5px; height: 40px; background: var(--crimson);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--crimson);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none; border: none; cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(192,57,43,0.3);
}
.btn-primary:hover {
  background: var(--crimson-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192,57,43,0.4);
}
.btn-primary.full-width { width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--crimson);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 30px;
  border-radius: var(--radius);
  border: 1.5px solid var(--crimson);
  text-decoration: none; cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover {
  background: var(--crimson);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem; font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none; cursor: pointer; text-decoration: none;
  transition: var(--transition);
}
.btn-wa:hover { background: #128C7E; transform: translateY(-1px); }

/* ── SECTIONS COMMON ── */
.section { padding: 100px 40px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--crimson);
  background: var(--crimson-muted);
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-title em { color: var(--crimson); font-style: italic; }
.section-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; color: var(--ink-soft); opacity: 0.75;
}

/* ── BOOKS GRID ── */
.books-section { background: var(--paper-warm); }
.books-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.book-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
.book-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-deep);
}
.book-cover-wrap {
  aspect-ratio: 2/3;
  background: var(--paper-mid);
  overflow: hidden; position: relative;
}
.book-cover-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.book-card:hover .book-cover-wrap img { transform: scale(1.06); }
.book-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--paper-mid), var(--paper-deep));
  gap: 12px; padding: 20px; text-align: center;
}
.book-cover-placeholder .book-title-thumb {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--crimson);
  line-height: 1.3;
}
.book-cover-placeholder .diamond {
  width: 40px; height: 40px;
  border: 2px solid var(--crimson);
  transform: rotate(45deg); opacity: 0.3;
}
.book-info {
  padding: 16px;
  border-top: 2px solid var(--crimson-muted);
}
.book-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 600;
  color: var(--ink); margin-bottom: 4px;
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.book-info .author {
  font-size: 0.8rem; color: var(--crimson); opacity: 0.85;
  font-style: italic;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.book-wa-overlay {
  position: absolute; inset: 0;
  background: rgba(192,57,43,0.9);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}
.book-card:hover .book-wa-overlay { opacity: 1; }
.book-wa-overlay p {
  color: var(--white); font-size: 0.85rem;
  letter-spacing: 0.05em; text-align: center; padding: 0 16px;
}

/* ── WRITERS ── */
.writers-section { background: var(--paper); }
.writers-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.writer-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--crimson);
  transition: var(--transition);
}
.writer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-mid); }
.writer-photo-wrap {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid var(--crimson);
  background: var(--paper-mid);
  display: flex; align-items: center; justify-content: center;
}
.writer-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.writer-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--crimson-muted), var(--paper-mid));
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--crimson);
}
.writer-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--ink); margin-bottom: 8px;
}
.writer-card .writer-bio {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem; color: var(--ink-soft); opacity: 0.8;
  line-height: 1.6; margin-bottom: 16px;
}
.writer-books-count {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--crimson-muted);
  color: var(--crimson);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px;
}

/* ── BESTSELLERS ── */
.bestsellers-section {
  background: var(--ink);
  position: relative; overflow: hidden;
  color: var(--paper);
}
.bestsellers-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(192,57,43,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(201,169,110,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.bestsellers-section .section-tag {
  background: rgba(192,57,43,0.2); color: var(--crimson-light);
}
.bestsellers-section .section-title { color: var(--paper-warm); }
.bestsellers-section .section-sub { color: var(--paper-deep); }
.bestsellers-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.bestseller-card {
  background: rgba(253,250,246,0.06);
  border: 1px solid rgba(253,250,246,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.bestseller-card:hover {
  transform: translateY(-6px);
  background: rgba(253,250,246,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.bestseller-badge {
  position: absolute; top: 16px; left: -4px; z-index: 2;
  background: var(--crimson);
  color: var(--white);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 16px 5px 12px;
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%);
}
.bestseller-cover {
  aspect-ratio: 3/2; overflow: hidden;
  background: var(--paper-deep);
}
.bestseller-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.bestseller-card:hover .bestseller-cover img { transform: scale(1.05); }
.bestseller-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2D1A10, #1A0A00);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--crimson-light); text-align: center; padding: 20px;
  line-height: 1.3;
}
.bestseller-info { padding: 24px; }
.bestseller-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--paper-warm); margin-bottom: 6px;
}
.bestseller-info .author {
  font-style: italic; color: var(--gold-light);
  font-size: 0.88rem; margin-bottom: 12px;
}
.bestseller-info .desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.98rem; color: var(--paper-deep);
  line-height: 1.6; margin-bottom: 20px; opacity: 0.85;
}

/* ── LIBRARY ── */
.library-section { background: var(--paper-warm); }
.library-controls {
  max-width: 1100px; margin: 0 auto 40px;
  display: flex; flex-direction: column; gap: 20px; align-items: center;
}
.search-wrap {
  display: flex; align-items: center; gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--paper-deep);
  border-radius: 50px;
  padding: 12px 24px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s;
}
.search-wrap:focus-within { border-color: var(--crimson); }
.search-wrap svg { color: var(--crimson); flex-shrink: 0; }
.search-wrap input {
  border: none; outline: none; background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; color: var(--ink);
  width: 100%;
}
.search-wrap input::placeholder { color: var(--paper-deep); }
.filter-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--paper-deep);
  background: var(--white); color: var(--ink-soft);
  cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--crimson); border-color: var(--crimson);
  color: var(--white);
}
.book-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  background: var(--crimson);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  margin-top: 6px;
  letter-spacing: 0.03em;
}

/* =========================
   SHOWCASE SECTION
========================= */
/* =========================
   SHOWCASE GALLERY
========================= */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.showcase-item {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #f5f5f5;
  height: 320px;
}

.showcase-item.large {
  grid-column: span 2;
  height: 320px;
}

.showcase-item.wide {
  grid-column: span 2;
  height: 320px;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.showcase-item:hover img {
  transform: scale(1.05);
}

/* Tablet */
@media (max-width: 992px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-item.large,
  .showcase-item.wide {
    grid-column: span 2;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-item,
  .showcase-item.large,
  .showcase-item.wide {
    grid-column: span 1;
    height: 280px;
  }
}

/* MOBILE */


@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
    gap: 16px;
    padding: 12px;
  }

  .showcase-item,
  .showcase-item.large,
  .showcase-item.wide {
    grid-column: span 1;
    border-radius: 16px;
  }
}

.library-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.lib-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: var(--transition);
}
.lib-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-mid); }
.lib-cover {
  aspect-ratio: 2/3;
  background: var(--paper-mid);
  overflow: hidden;
}
.lib-cover img { width: 100%; height: 100%; object-fit: cover; }
.lib-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 12px;
  background: linear-gradient(135deg, var(--paper-mid), var(--paper-deep));
  text-align: center;
}
.lib-cover-placeholder .lt {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem; font-weight: 700; color: var(--crimson);
  line-height: 1.3;
}
.lib-cover-placeholder .ld {
  width: 24px; height: 24px;
  border: 1.5px solid var(--crimson); transform: rotate(45deg); opacity: 0.3;
}
.lib-info { padding: 12px; }
.lib-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  margin-bottom: 3px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lib-info .la { font-size: 0.75rem; color: var(--crimson); font-style: italic; }
.lib-info .lc {
  display: inline-block; margin-top: 6px;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.5;
}
.lib-card.hidden { display: none; }

/* ── CONTACT ── */
.contact-section { background: var(--paper); }
.contact-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.contact-left .section-title { text-align: left; margin-bottom: 16px; }
.contact-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; color: var(--ink-soft); opacity: 0.8;
  line-height: 1.8; margin-bottom: 36px;
}
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-wrap {
  width: 44px; height: 44px;
  background: var(--crimson-muted);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--crimson);
}

.contact-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  opacity: 0.8;
}

.contact-item-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.contact-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.contact-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-action-btn.call {
  background: var(--crimson-muted);
  color: var(--crimson);
  border: 1.5px solid rgba(192,57,43,0.25);
}

.contact-action-btn.call:hover {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,0.3);
}

.contact-action-btn.whatsapp {
  background: rgba(37,211,102,0.1);
  color: #128C7E;
  border: 1.5px solid rgba(37,211,102,0.25);
}

.contact-action-btn.whatsapp:hover {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.7;
}
.form-group input, .form-group textarea {
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  color: var(--ink); background: var(--white);
  border: 1.5px solid var(--paper-deep);
  border-radius: var(--radius);
  padding: 13px 16px; outline: none;
  transition: border-color 0.25s;
  resize: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--crimson); }
.form-success {
  display: none; flex-direction: column; align-items: center;
  gap: 12px; padding: 24px; text-align: center;
  background: rgba(192,57,43,0.05);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: var(--radius-md);
  animation: successPop 0.4s ease;
}
.form-success.show { display: flex; }
.form-success p { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--crimson); }
@keyframes successPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  color: var(--paper-warm);
  padding: 72px 40px 0;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(253,250,246,0.08);
}
/* .footer-logo { height: 80px; width: auto; margin-bottom: 16px;
  filter: brightness(0) invert(1) opacity(0.85);
} */
 .footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px rgba(192,57,43,0.3));
}
.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-style: italic;
  color: var(--paper-deep); line-height: 1.7;
}
.footer-links-col h4, .footer-social-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--crimson-light); margin-bottom: 20px;
}
.footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links-col ul li a {
  font-size: 0.9rem; color: var(--paper-deep);
  text-decoration: none; transition: color 0.2s;
}
.footer-links-col ul li a:hover { color: var(--crimson-light); }
.social-icons { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.social-icon {
  width: 40px; height: 40px;
  background: rgba(253,250,246,0.08);
  border: 1px solid rgba(253,250,246,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper-deep); text-decoration: none;
  transition: var(--transition);
}
.social-icon:hover { background: var(--crimson); border-color: var(--crimson); color: var(--white); }
.footer-wa-btn { font-size: 0.82rem; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0 28px; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(253,250,246,0.3); }
.footer-craft { font-family: 'Cormorant Garamond', serif; font-style: italic; }

/* ── FLOATING WHATSAPP ── */
.float-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 997;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.float-wa:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.5); }
.float-wa-pulse {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.5);
  animation: waPulse 2s ease-in-out infinite;
}
@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .books-grid { grid-template-columns: repeat(3, 1fr); }
  .writers-grid { grid-template-columns: repeat(2, 1fr); }
  .bestsellers-grid { grid-template-columns: repeat(2, 1fr); }
  .library-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-logo-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .navbar.scrolled { padding: 10px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-logo-wrap { display: none; }
  .hero {
  flex-direction: column;
  padding-top: 0;
  justify-content: flex-start;
}
  .section { padding: 72px 20px; }
  .hero {
  padding: 0 20px 60px;
  flex-direction: column;
  justify-content: flex-start;
  min-height: auto;
}
  .hero-logo { width: 120px; height: 120px; }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .book-info { padding: 10px; }
  .book-info h3 { font-size: 0.8rem; }
  .book-info .author { font-size: 0.72rem; }
  .writers-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .bestsellers-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .library-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .book-wa-overlay { display: none; }
  .hero-logo-wrap {
  width: 180px;
  height: 180px;
}
  .navbar {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
}
.hamburger span {
  background: var(--white);
}
.hero-logo {
  width: 140px;
  height: 140px;
}
}

@media (max-width: 480px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 42px; }
  .section-title { font-size: 30px; }
}

/* ── HERO BANNER ── */
.hero-banner {
  width: 100%;
  position: relative;
  z-index: 1;
  display: block;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}



/* on mobile push content below the banner */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
  }

 .hero-banner {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
  margin-top: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 16px 16px;
}
.hero {
  padding-top: 60px;
}

  .hero-banner img {
    width: 100%;
    height: auto;
    border-radius: 0 0 20px 20px;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px 60px;
  }

  /* hide the circle logo in hero on mobile since banner replaces it */
  .hero-logo-wrap { display: none; }

  /* hide navbar box logo */
  .nav-logo-wrap { display:flex; }
}
.hamburger {
  position: relative;
  z-index: 3;
}

.hamburger span {
  background: var(--crimson);
}

.nav-banner-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.nav-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.navbar.scrolled .nav-banner-img {
  object-position: left center;
}

.hero-logo-wrap {
  display: flex;
  width: 160px;
  height: 160px;
  margin: 100px auto 24px;
}

.hero-logo {
  width: 130px;
  height: 130px;
  mix-blend-mode: multiply;
}

/* ── BOOK DETAIL MODAL ── */
.book-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.book-modal-content {
  background: var(--paper, #fdfaf3);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.08);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.modal-close:hover { background: rgba(0,0,0,0.18); }

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
}

.modal-cover {
  background: #efe9dd;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
}

.modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-cat {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #C0392B;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-details h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 0;
}

.modal-bn-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  opacity: 0.7;
  margin: 0;
}

.modal-author {
  font-size: 0.95rem;
  opacity: 0.7;
  margin: 4px 0;
}

.modal-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #C0392B;
  margin: 4px 0;
}

.modal-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 12px 0 8px;
  opacity: 0.85;
}

.modal-wa-btn {
  margin-top: 12px;
  align-self: flex-start;
}

@media (max-width: 700px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-cover { border-radius: 16px 16px 0 0; min-height: 240px; }
}
