/* ===================================================
   VARIABLES & DESIGN SYSTEM
=================================================== */
:root {
  --color-maroon: #541120;
  --color-maroon-dark: #3b0914;
  --color-maroon-light: #6a182b;
  --color-gold: #b37737;
  --color-gold-dark: #9a642b;
  --color-gold-light: #d69854;
  --color-cream: #faf7f2;
  --color-bg-light: #ffffff;
  --color-text-dark: #222222;
  --color-text-muted: #666666;
  --color-white: #ffffff;

  --font-heading: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;

  --container-max-width: 1240px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===================================================
   RESET & BASE STYLES
=================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

/* ===================================================
   BUTTONS
=================================================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-maroon);
  border: 1px solid var(--color-white);
}
.btn-white:hover {
  background-color: transparent;
  color: var(--color-white);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}
.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-maroon);
}

.btn-maroon {
  background-color: var(--color-maroon);
  color: var(--color-white);
  border: 1px solid var(--color-maroon);
}
.btn-maroon:hover {
  background-color: var(--color-maroon-dark);
  border-color: var(--color-maroon-dark);
}

.btn-maroon-pill {
  background-color: var(--color-maroon);
  color: var(--color-white);
  border: none;
  border-radius: 30px;
  padding: 8px 22px;
  font-size: 0.78rem;
  font-weight: 600;
}
.btn-maroon-pill:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.btn-white-pill {
  background-color: var(--color-white);
  color: var(--color-gold-dark);
  border: none;
  border-radius: 30px;
  padding: 10px 26px;
  font-weight: 700;
  font-size: 0.82rem;
}
.btn-white-pill:hover {
  background-color: var(--color-maroon);
  color: var(--color-white);
}

.btn-white-sm {
  background: var(--color-white);
  color: var(--color-maroon);
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
}

.btn-white-outline-sm {
  border: 1px solid var(--color-white);
  color: var(--color-white);
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}
.btn-white-outline-sm:hover {
  background: var(--color-white);
  color: var(--color-maroon);
}

/* ===================================================
   HEADER & NAVIGATION
=================================================== */
.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.top-bar {
  padding: 14px 0;
  border-bottom: 1px solid #f0e9e4;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-logo span {
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: var(--color-maroon);
}
.brand-logo strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  color: var(--color-maroon);
}

.header-search {
  flex: 0 1 480px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid #e2dcd6;
  border-radius: 40px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  background-color: #faf8f5;
  outline: none;
}
.header-search input:focus {
  border-color: var(--color-gold);
}
.header-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 0.85rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.action-item {
  color: var(--color-maroon);
  font-size: 1.1rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.action-item .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-gold);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sign-in-btn {
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--color-maroon);
  padding: 6px 14px;
  border-radius: 20px;
}
.sign-in-btn:hover {
  background: var(--color-maroon);
  color: #fff;
}

/* Nav Menu */
.main-nav {
  background-color: var(--color-gold);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links li a {
  display: inline-block;
  padding: 12px 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.5px;
  position: relative;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: #ffe8cf;
}
.nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  height: 2px;
  background-color: #fff;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 15px;
}

/* ===================================================
   HERO SECTION
=================================================== */
.hero-section {
  background-color: var(--color-maroon);
  color: var(--color-white);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-content .sub-headline {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e5b382;
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 0.95rem;
  color: #eed5d9;
  line-height: 1.8;
  margin-bottom: 34px;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  max-height: 420px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
}

/* ===================================================
   3D COVERFLOW SECTION
=================================================== */
.coverflow-section {
  background-color: var(--color-white);
  padding: 70px 0 60px;
}
.section-tagline {
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.coverflow-graphic-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}
.coverflow-img {
  max-width: 680px;
  width: 100%;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}
.reviewer-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dedede;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}
.reviewer-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
}
.star-rating {
  color: #f7a81b;
  font-size: 0.85rem;
  display: flex;
  gap: 4px;
}

/* ===================================================
   AUTHOR SPOTLIGHT BAR
=================================================== */
.author-spotlight {
  background-color: var(--color-maroon);
  color: var(--color-white);
  padding: 60px 0;
}
.spotlight-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 60px;
}
.spotlight-book {
  display: flex;
  justify-content: center;
}
.spotlight-book img {
  max-height: 340px;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}
.spotlight-tag {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: #d89b60;
  display: block;
  margin-bottom: 8px;
}
.spotlight-author-name {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.spotlight-bio {
  color: #eed6da;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 640px;
}

/* ===================================================
   ABOUT THE AUTHOR SECTION
=================================================== */
.about-author-section {
  background-color: var(--color-gold);
  color: var(--color-white);
  padding: 80px 0;
}
.about-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: center;
  gap: 60px;
}
.portrait-card {
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  overflow: hidden;
}
.portrait-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}
.about-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffe6cf;
  display: block;
  margin-bottom: 6px;
}
.author-name {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.author-paragraph {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #fff9f2;
}

/* ===================================================
   LARGE SECTION TITLES & BOOK CARDS
=================================================== */
.section-title-large {
  font-family: var(--font-heading);
  color: var(--color-maroon);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.books-carousel-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.book-card-item {
  background: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 6px;
  transition: var(--transition-smooth);
}
.book-card-item:hover {
  transform: translateY(-4px);
}
.book-card-thumb {
  flex: 0 0 85px;
}
.book-card-thumb img {
  width: 85px;
  height: 125px;
  object-fit: contain;
  filter: drop-shadow(2px 5px 8px rgba(0,0,0,0.25));
}
.book-card-meta {
  flex: 1;
}
.book-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  margin-bottom: 4px;
}
.book-card-subtitle {
  display: block;
  font-size: 0.72rem;
  color: #777;
  margin-bottom: 4px;
}
.book-card-author {
  font-size: 0.7rem;
  color: #999;
  margin-bottom: 10px;
}

/* ===================================================
   FEATURED BOOKS SECTION
=================================================== */
.featured-books-section {
  background-color: var(--color-maroon);
  color: var(--color-white);
  padding: 70px 0 80px;
}
.featured-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  letter-spacing: 2px;
  margin-bottom: 40px;
}
.featured-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}
.featured-box {
  background: #ffffff;
  color: #222;
  padding: 30px 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.featured-box.highlighted {
  padding: 40px 28px;
  transform: scale(1.04);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
  border: 2px solid #ecd6bc;
}
.featured-box-img img {
  max-height: 200px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}
.featured-rating {
  color: #f5a623;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.featured-book-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-maroon);
  line-height: 1.3;
  margin-bottom: 6px;
}
.featured-author-tag {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--color-gold-dark);
  font-weight: 700;
  margin-bottom: 10px;
}
.featured-book-desc {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ===================================================
   EVERY STORY ALL IN ONE PLACE
=================================================== */
.every-story-section {
  padding: 80px 0;
  background-color: var(--color-white);
}
.every-story-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 70px;
}
.every-story-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-maroon);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.every-story-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.every-story-img img {
  max-height: 260px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}
.explore-all-block {
  margin-top: 40px;
}

/* ===================================================
   TRAILER SECTION
=================================================== */
.trailer-section {
  background-color: #0b020a;
}
.trailer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.trailer-video-box {
  position: relative;
  min-height: 380px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trailer-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-btn-circle {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding-left: 4px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
}
.play-btn-circle:hover {
  transform: scale(1.12);
  background: #fff;
  color: #ff0055;
}
.trailer-content-box {
  background-color: var(--color-gold);
  color: #fff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trailer-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.trailer-text {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
  color: #fff6ed;
}
.trailer-subtext {
  font-size: 0.85rem;
  color: #fedfc0;
  margin-bottom: 24px;
}

/* ===================================================
   PRE-FOOTER SECTION
=================================================== */
.prefooter-section {
  background-color: var(--color-maroon);
  color: #fff;
  padding: 70px 0 50px;
}
.prefooter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.prefooter-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: #eed6da;
}
.quote-item {
  border-left: 3px solid var(--color-gold);
  padding-left: 18px;
}
.quote-text {
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.quote-author {
  display: block;
  font-size: 0.8rem;
  color: #cca6af;
  margin-bottom: 16px;
}

.specs-table {
  width: 100%;
  margin-bottom: 20px;
  font-size: 0.82rem;
}
.spec-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.spec-header {
  font-weight: 700;
  color: #e5b382;
  text-transform: uppercase;
}
.specs-btns {
  display: flex;
  gap: 12px;
}

/* Newsletter bar */
.newsletter-bar {
  background: var(--color-maroon-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.newsletter-label h4 {
  font-size: 1.1rem;
  font-weight: 700;
}
.newsletter-label p {
  font-size: 0.82rem;
  color: #cca6af;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  flex: 0 1 420px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #772b3c;
  background: #47111d;
  color: #fff;
  border-radius: 4px;
  outline: none;
  font-size: 0.85rem;
}
.newsletter-form input::placeholder {
  color: #b07e8a;
}
.btn-newsletter {
  background: var(--color-white);
  color: var(--color-maroon);
  border: none;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-newsletter:hover {
  background: var(--color-gold);
  color: #fff;
}

/* ===================================================
   FOOTER
=================================================== */
.site-footer {
  background-color: #faf6f1;
  color: #333;
  padding: 60px 0 20px;
  border-top: 1px solid #ede3d7;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-maroon);
  line-height: 1.3;
  margin-bottom: 16px;
}
.follow-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #777;
  margin-bottom: 10px;
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-maroon);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.social-links a:hover {
  background: var(--color-gold);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-maroon);
  margin-bottom: 16px;
}
.footer-nav li {
  margin-bottom: 8px;
}
.footer-nav li a {
  font-size: 0.85rem;
  color: #555;
}
.footer-nav li a:hover {
  color: var(--color-maroon);
  padding-left: 4px;
}

.footer-sub-text {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
}
.footer-input-group {
  display: flex;
  border: 1px solid #d9cbbe;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.footer-input-group input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  font-size: 0.85rem;
  outline: none;
}
.footer-send-btn {
  background: var(--color-maroon);
  color: #fff;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.footer-send-btn:hover {
  background: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid #ede3d7;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #888;
}

/* ===================================================
   OWL CAROUSEL CUSTOM THEME STYLES
=================================================== */
.owl-theme .owl-nav {
  margin-top: 25px;
  text-align: center;
}
.owl-theme .owl-nav [class*='owl-'] {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  background: var(--color-white) !important;
  color: var(--color-maroon) !important;
  font-size: 18px !important;
  line-height: 38px !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
  margin: 0 8px !important;
  transition: var(--transition-smooth);
}
.owl-theme .owl-nav [class*='owl-']:hover {
  background: var(--color-maroon) !important;
  color: var(--color-white) !important;
}
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--color-maroon) !important;
}

/* ===================================================
   RESPONSIVE MEDIA QUERIES
=================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 30px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .spotlight-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .spotlight-bio {
    margin: 0 auto 24px;
  }
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .portrait-card {
    max-width: 320px;
    margin: 0 auto;
  }
  .featured-cards-grid {
    grid-template-columns: 1fr;
  }
  .featured-box.highlighted {
    transform: none;
  }
  .every-story-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .every-story-img img {
    margin: 0 auto;
  }
  .trailer-container {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    flex: 1 1 100%;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 15px 0;
    gap: 12px;
  }
  .nav-links.show {
    display: flex;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .prefooter-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-bar {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    width: 100%;
    flex-direction: column;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}