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

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0a;
  --surface:   #141414;
  --surface2:  #1e1e1e;
  --border:    #2a2a2a;
  --red:        #9b1c1c;
  --red-light:  #ef4444;
  --text:       #e2e2e2;
  --text-muted: #888;
  --nav-h:      72px;
  --max-w:      1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: var(--red-light); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

/* ─── Nav ───────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,10,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.2;
}
.nav-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red-light);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: block;
  padding: 8px 14px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: var(--surface2);
  color: #fff;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  padding-top: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  z-index: 200;
}
.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 7px 12px;
  font-size: .8125rem;
  color: var(--text-muted);
  border-radius: 5px;
  transition: background .15s, color .15s;
}
.dropdown-menu a:hover { background: var(--border); color: #fff; }
.nav-caret { font-size: .6rem; margin-left: 4px; opacity: .6; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(10,10,10,.98);
  backdrop-filter: blur(12px);
  z-index: 99;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--red-light); }
.mobile-nav-section { margin-top: 16px; }
.mobile-nav-section h4 {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 85vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,.3) 0%, rgba(10,10,10,.85) 70%, var(--bg) 100%),
    linear-gradient(135deg, #1a0000 0%, #0a0a0a 60%);
  background-size: cover;
  background-position: center top;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .35;
}

.hero-content {
  position: relative;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1;
  color: #fff;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: #7a1515; color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-muted); color: #fff; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Sections ──────────────────────────────────────────────── */
.section { padding: 80px 24px; max-width: var(--max-w); margin: 0 auto; }
.section-full { padding: 80px 0; background: var(--surface); }
.section-full .section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.section-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.75;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin: 20px 0 40px;
}

/* ─── About strip ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.about-text p strong { color: var(--text); }
.about-image-wrap {
  position: relative;
}
.about-image {
  width: 100%;
  border-radius: 8px;
  filter: grayscale(30%);
}
.about-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  font-size: .8rem;
  color: var(--text-muted);
  border-radius: 0 0 8px 8px;
}

/* ─── Books Grid ────────────────────────────────────────────── */
.books-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
}

.book-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  group: true;
}
.book-cover-wrap,
.book-cover {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface2);
  margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transition: transform .3s, box-shadow .3s;
}
.book-card:hover .book-cover-wrap {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(155,28,28,.3);
}
.book-cover-wrap img,
.book-cover img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter .3s;
}
.book-card:hover .book-cover-wrap img { filter: brightness(1.1); }

.book-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,.8));
  opacity: 0;
  transition: opacity .3s;
}
.book-card:hover .book-overlay { opacity: 1; }

.book-name {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color .2s;
}
.book-card:hover .book-name { color: #fff; }

.book-year {
  font-size: .7rem;
  color: var(--red-light);
  margin-top: 2px;
}

/* ─── Films ─────────────────────────────────────────────────── */
.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.film-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: border-color .2s, transform .2s;
  text-decoration: none;
}
.film-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  color: var(--text);
}
.film-icon { font-size: 2rem; margin-bottom: 16px; }
.film-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.film-year { font-size: .8125rem; color: var(--red-light); margin-bottom: 10px; }
.film-desc { font-size: .875rem; color: var(--text-muted); }

/* ─── Quote ─────────────────────────────────────────────────── */
.quote-section {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, #0d0000 0%, var(--bg) 100%);
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  line-height: .5;
  color: var(--red);
  opacity: .4;
  margin-bottom: 8px;
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  color: var(--text);
  max-width: 760px;
  margin: 0 auto 24px;
  line-height: 1.5;
}
.quote-author {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: .875rem;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8125rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: #fff; }

/* ─── Inner pages ───────────────────────────────────────────── */
.page-hero {
  padding: 64px 24px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.page-hero .page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.page-hero .page-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 520px;
}

.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* About page */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.about-sidebar img {
  border-radius: 8px;
  width: 100%;
  filter: grayscale(20%);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.about-sidebar figcaption {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}
.about-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 32px 0 12px;
}
.about-body h2:first-child { margin-top: 0; }
.about-body p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: .9375rem;
}
.about-body p strong { color: var(--text); }
.about-body a { color: var(--red-light); }
.about-body a:hover { color: #fff; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(155,28,28,.2);
  border: 1px solid rgba(155,28,28,.4);
  border-radius: 4px;
  font-size: .75rem;
  color: var(--red-light);
  font-weight: 500;
  margin: 2px;
}
.badges { margin: 16px 0 24px; }

/* ─── Contact ───────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 12px;
}
.contact-info p { color: var(--text-muted); font-size: .9375rem; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.form-control {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  transition: border-color .2s;
  outline: none;
}
.form-control:focus { border-color: var(--red); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid,
  .about-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .about-image-wrap { max-width: 360px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero { height: 75vh; }
  .hero-stats { gap: 24px; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── Book Detail Page ──────────────────────────────────────── */
.book-detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

.book-cover-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.book-cover-large {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05);
  transition: transform .3s;
}
.book-cover-large:hover { transform: scale(1.02); }

.book-buy-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}
.book-buy-box h4 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.buy-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.buy-btn {
  display: block;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: border-color .2s, color .2s, background .2s;
  text-decoration: none;
}
.buy-btn:hover { border-color: var(--red); color: var(--red-light); background: rgba(155,28,28,.08); }

.book-series-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(155,28,28,.15);
  border: 1px solid rgba(155,28,28,.35);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--red-light);
  margin-bottom: 16px;
}

.book-main h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}
.book-year-tag {
  font-size: .875rem;
  color: var(--red-light);
  font-weight: 500;
  margin-bottom: 24px;
  display: block;
}
.book-synopsis {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(255,255,255,.03);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.book-synopsis cite {
  display: block;
  font-size: .8rem;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 12px;
}

.reviews-section { margin: 32px 0; }
.reviews-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.review-text {
  font-size: .9375rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
}
.review-source {
  font-size: .8rem;
  color: var(--red-light);
  font-weight: 600;
  margin-top: 6px;
}

.book-review {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.book-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.book-review-stars {
  color: #e8a020;
  font-size: 1.2rem;
  letter-spacing: 2px;
  line-height: 1;
}
.book-review-score {
  font-size: .85rem;
  color: var(--text-muted);
}
.book-review-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
}
.book-review-text {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.75;
  font-style: italic;
}
.book-review-author {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--red-light);
}

.book-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.book-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  padding: 14px 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex: 1;
  max-width: 260px;
  transition: border-color .2s, transform .2s;
}
.book-nav-link:hover { border-color: var(--red); transform: translateY(-2px); }
.book-nav-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.book-nav-title { font-size: .9rem; font-weight: 600; color: #fff; }
.book-nav-link.next { text-align: right; margin-left: auto; }

.amazon-iframes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.amazon-iframe-wrap { text-align: center; }
.amazon-iframe-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
  max-width: 560px;
}
.video-wrap iframe { width: 100%; height: 100%; border: none; }

@media (max-width: 760px) {
  .book-detail-layout { grid-template-columns: 1fr; }
  .book-cover-sidebar { position: static; max-width: 240px; }
  .book-nav { flex-wrap: wrap; }
  .book-nav-link { max-width: 100%; }
  .amazon-iframes { grid-template-columns: 1fr 1fr; }
}

/* ─── Misc utils ────────────────────────────────────────────── */
.text-red { color: var(--red-light); }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }

/* Fade-in animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease forwards; }
.fade-up-2 { animation: fadeUp .6s .15s ease both; }
.fade-up-3 { animation: fadeUp .6s .3s ease both; }
