/* ==========================================================================
   GRACE, HOPE, AND MERCY - AUTHOR WEBSITE STYLESHEET
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --primary-navy: #0b2927;
  --secondary-navy: #123e3b;
  --ruby-red: #d92638;
  --ruby-dark: #b91c1c;
  --ruby-bright: #f43f5e;
  --ruby-glow: rgba(217, 38, 56, 0.3);
  --amber-gold: #d4af37;
  --amber-light: #e5a93c;
  --amber-bright: #fbbf24;
  --amber-glow: rgba(212, 175, 55, 0.25);
  --parchment-bg: #f4f8f7;
  --parchment-card: #e5eeed;
  --parchment-border: #c4dad7;
  --text-dark: #0f2422;
  --text-muted: #4e6b68;
  --text-light: #f8fafc;
  --font-serif: 'Lora', Georgia, serif;
  --font-heading: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(11, 41, 39, 0.12);
  --shadow-lg: 0 20px 40px -10px rgba(11, 41, 39, 0.25);
  --shadow-3d-book: -15px 15px 30px rgba(0, 0, 0, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--parchment-bg);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

.text-light {
  color: var(--text-light) !important;
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-normal);
  background: rgba(251, 248, 243, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 215, 197, 0.5);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  background: rgba(251, 248, 243, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-navy);
  text-transform: uppercase;
}

.book-mini-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--amber-gold);
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--amber-gold);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--amber-gold);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--amber-gold);
}

.nav-link.active::after {
  width: 100%;
}

.nav-btn {
  background: var(--primary-navy);
  color: var(--text-light);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-normal);
  box-shadow: 0 4px 14px rgba(15, 28, 46, 0.2);
}

.nav-btn:hover {
  background: var(--amber-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--amber-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
}

/* --- Typography & Badges --- */
.sub-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ruby-red);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-navy);
  font-weight: 700;
}

.section-desc {
  max-width: 600px;
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.heading-line {
  width: 60px;
  height: 3px;
  background: var(--ruby-red);
  margin: 18px auto 40px;
  border-radius: 2px;
}

.heading-line.left {
  margin-left: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 38, 56, 0.12);
  color: var(--ruby-red);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(217, 38, 56, 0.3);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--ruby-red);
  color: var(--text-light);
  box-shadow: 0 6px 20px var(--ruby-glow);
}

.btn-primary:hover {
  background: var(--ruby-bright);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--ruby-glow);
}

.nav-btn.active {
  background: var(--amber-gold);
}

.btn-outline {
  background: transparent;
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-outline:hover {
  background: var(--primary-navy);
  color: var(--text-light);
  transform: translateY(-3px);
}

.btn-gold {
  background: var(--ruby-red);
  color: #fff;
  box-shadow: 0 6px 20px var(--ruby-glow);
}

.btn-gold:hover {
  background: var(--ruby-bright);
  transform: translateY(-3px);
}

.btn-block {
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 100px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, rgba(217, 38, 56, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(11, 41, 39, 0.08) 0%, transparent 40%),
              var(--parchment-bg);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 620px;
}

.book-title {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  line-height: 1.15;
  color: var(--primary-navy);
  font-weight: 800;
  margin-bottom: 12px;
}

.book-title .highlight {
  color: var(--ruby-red);
  position: relative;
}

.book-subtitle {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Format Picker */
.format-picker {
  margin-bottom: 32px;
  background: var(--parchment-card);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--parchment-border);
}

.format-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.format-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.format-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: #fff;
  border: 1px solid var(--parchment-border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.format-chip span {
  color: var(--ruby-red);
  font-weight: 700;
}

.format-chip:hover {
  border-color: var(--ruby-red);
  transform: translateY(-1px);
}

.format-chip.active {
  background: var(--primary-navy);
  color: var(--text-light);
  border-color: var(--primary-navy);
}

.format-chip.active span {
  color: var(--ruby-bright);
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-endorsement {
  padding-top: 24px;
  border-top: 1px solid var(--parchment-border);
}

.stars {
  color: var(--ruby-red);
  font-size: 0.95rem;
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.quote-snippet {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.quote-author {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- 3D Book Showcase --- */
.hero-book-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.book-container {
  width: 280px;
  height: 420px;
  position: relative;
  transition: var(--transition-normal);
}

.book-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-28deg) rotateX(8deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.book-container:hover .book-3d {
  transform: rotateY(-12deg) rotateX(4deg) scale(1.03);
}

/* Front Cover */
.book-front {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 4px 12px 12px 4px;
  box-shadow: inset 4px 0 10px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #081a19;
}

.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Spine */
.book-spine {
  position: absolute;
  width: 40px;
  height: 100%;
  top: 0;
  left: -20px;
  background: linear-gradient(90deg, #051413, #0d2e2b);
  transform: rotateY(-90deg) translateZ(0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ruby-red);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 2px;
  border-radius: 4px 0 0 4px;
}

.book-spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

/* Pages */
.book-pages {
  position: absolute;
  width: 36px;
  height: 96%;
  top: 2%;
  right: -18px;
  background: repeating-linear-gradient(
    90deg,
    #fff 0px,
    #f2ebd9 1px,
    #e8dfca 2px
  );
  transform: rotateY(90deg) translateZ(120px);
  border-radius: 0 4px 4px 0;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.15);
}

.book-shadow {
  width: 280px;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 70%);
  margin-top: 25px;
  filter: blur(6px);
}

.author-signature-tag {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--ruby-red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 38, 56, 0.08);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px dashed var(--ruby-red);
}

/* --- About Book Section --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.about-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--parchment-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--ruby-red);
}

.about-card.highlighted {
  background: var(--primary-navy);
  color: var(--text-light);
  border-color: var(--primary-navy);
}

.about-card.highlighted p {
  color: rgba(255, 255, 255, 0.8);
}

.card-icon {
  width: 54px;
  height: 54px;
  background: var(--parchment-card);
  color: var(--ruby-red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.about-card.highlighted .card-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ruby-bright);
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Synopsis Box */
.synopsis-box {
  background: var(--parchment-card);
  border: 1px solid var(--parchment-border);
  border-radius: var(--radius-lg);
  padding: 50px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.synopsis-content h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--primary-navy);
  margin-bottom: 20px;
}

.synopsis-content p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.8;
}

.book-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--parchment-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ruby-red);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--parchment-border);
}

/* --- Sample Chapter Section --- */
.sample-section {
  background: var(--primary-navy);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.sample-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.sample-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 38, 56, 0.2);
  color: var(--ruby-bright);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(217, 38, 56, 0.3);
}

.sample-lead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.chapter-preview-card {
  background: var(--parchment-bg);
  color: var(--text-dark);
  padding: 50px 45px;
  border-radius: var(--radius-lg);
  text-align: left;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.chapter-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--parchment-border);
}

.chapter-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--ruby-red);
  display: block;
  margin-bottom: 6px;
}

.chapter-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  color: var(--primary-navy);
}

.chapter-body {
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.85;
  max-height: 280px;
  overflow: hidden;
}

.dropcap {
  float: left;
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 12px;
  color: var(--ruby-red);
  font-weight: 800;
}

.chapter-body p {
  margin-bottom: 18px;
}

.chapter-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--parchment-bg));
}

.chapter-actions {
  text-align: center;
  margin-top: 30px;
  position: relative;
  z-index: 5;
}

/* --- Praise Section --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: #fff;
  padding: 36px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--parchment-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ruby-red);
}

.review-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.7;
}

.reviewer strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--primary-navy);
}

.reviewer span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Author Section --- */
.author-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.author-image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-frame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1080 / 1881;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary-navy);
  box-shadow: var(--shadow-md);
  position: relative;
  border: 8px solid #fff;
}

.author-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-navy), var(--primary-navy));
  color: var(--ruby-bright);
  font-size: 5rem;
}

.author-badge {
  margin-top: -20px;
  position: relative;
  z-index: 5;
  background: var(--ruby-red);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bio-lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary-navy);
  font-weight: 500;
  margin-bottom: 16px;
}

.author-bio p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.author-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--primary-navy);
  border-left: 3px solid var(--ruby-red);
  padding-left: 20px;
  margin: 30px 0;
}

.author-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.social-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.author-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--parchment-card);
  border: 1px solid var(--parchment-border);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.author-socials a:hover {
  background: var(--ruby-red);
  color: #fff;
  border-color: var(--ruby-red);
  transform: translateY(-2px);
}

/* --- Retailers / Buy Section --- */
.retailer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.retailer-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--parchment-border);
  text-align: center;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.retailer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--ruby-red);
}

.retailer-card.highlight-retailer {
  border: 2px solid var(--ruby-red);
  background: radial-gradient(circle at top, rgba(217, 38, 56, 0.05), transparent 70%), #fff;
}

.support-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ruby-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 6px 0 12px;
}

.retailer-logo {
  font-size: 2.2rem;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.retailer-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.retailer-action {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ruby-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Signed Copy Box */
.signed-copy-box {
  background: var(--parchment-card);
  border: 1px dashed var(--ruby-red);
  border-radius: var(--radius-md);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.signed-copy-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.signed-icon {
  font-size: 2.5rem;
  color: var(--ruby-red);
}

.signed-text h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.signed-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Newsletter Section --- */
.newsletter-section {
  background: var(--primary-navy);
  color: var(--text-light);
}

.newsletter-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.newsletter-icon {
  width: 60px;
  height: 60px;
  background: rgba(217, 38, 56, 0.2);
  color: var(--ruby-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 24px;
}

.newsletter-card h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.newsletter-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.newsletter-card .author-socials {
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-card .social-label {
  color: rgba(255, 255, 255, 0.75);
}

.newsletter-card .contact-website {
  margin: 20px 0 0;
}

.newsletter-form {
  max-width: 550px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  gap: 12px;
}

.input-group input {
  flex: 1;
  padding: 14px 22px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
  border-color: var(--ruby-red);
  background: rgba(255, 255, 255, 0.15);
}

.form-privacy {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
}

.newsletter-success {
  display: none;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 20px;
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  background: #051413;
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--amber-bright);
}

/* --- Modals --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 46, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--parchment-bg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
  border: 1px solid var(--parchment-border);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--parchment-card);
  border: 1px solid var(--parchment-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: var(--primary-navy);
  color: #fff;
}

.modal-header {
  padding: 35px 40px 20px;
  text-align: center;
  border-bottom: 1px solid var(--parchment-border);
}

.modal-subtitle {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--amber-gold);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary-navy);
  margin-top: 4px;
}

.modal-author {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.modal-body {
  padding: 30px 40px;
  overflow-y: auto;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
}

.modal-footer {
  padding: 20px 40px;
  background: var(--parchment-card);
  border-top: 1px solid var(--parchment-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bookplate-form {
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--parchment-border);
  background: #fff;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--amber-gold);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

/* --- Responsive Layout Breakpoints --- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
  }

  .book-title {
    font-size: 2.8rem;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .author-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .author-frame {
    max-width: 280px;
  }

  .heading-line.left {
    margin: 18px auto 40px;
  }

  .author-socials {
    justify-content: center;
  }

  .signed-copy-box {
    flex-direction: column;
    text-align: center;
  }

  .signed-copy-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--parchment-bg);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid var(--parchment-border);
    transform: translateY(-150%);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: block;
  }

  .book-title {
    font-size: 2.3rem;
  }

  .section {
    padding: 70px 0;
  }

  .synopsis-box {
    padding: 30px 24px;
  }

  .chapter-preview-card {
    padding: 30px 24px;
  }

  .input-group {
    flex-direction: column;
  }

  .modal-container {
    max-height: 90vh;
  }

  .modal-header, .modal-body, .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .modal-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* --- Editorial catalog homepage --- */
.navbar {
  background: rgba(244, 248, 247, 0.96);
}

.nav-btn,
.btn,
.badge,
.format-chip,
.author-badge,
.newsletter-icon,
.chapter-preview-card,
.synopsis-box,
.about-card,
.review-card,
.retailer-card,
.newsletter-card {
  border-radius: var(--radius-sm);
}

.hero {
  display: block;
  min-height: 0;
  padding: 112px 0 0;
  background: var(--parchment-bg);
}

.hero-banner {
  height: auto;
  aspect-ratio: 2118 / 742;
  max-height: calc(100vh - 112px);
  position: relative;
  background: url('new-banner-updated-cover-hires.png') center / contain no-repeat;
}

.hero-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 70px;
  text-align: center;
}

.hero-kicker {
  color: var(--ruby-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-line {
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin: 0;
}

.hero-line-1 {
  color: var(--ruby-red);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 3px;
}

.hero-line-2 {
  color: var(--ruby-red);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  margin-top: 6px;
}

.hero-line-3 {
  margin: 10px 0 12px;
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: 0;
}

.hero-intro h1 {
  margin: 4px 0 12px;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: 0;
}

.hero-intro > p:not(.hero-kicker):not(.hero-line) {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.browse-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--ruby-red);
  color: var(--primary-navy);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.browse-link:hover {
  color: var(--ruby-red);
}

.about-book {
  padding-top: 75px;
  background: #fff;
}

.about-grid {
  max-width: 1000px;
  margin: 0 auto 65px;
}

.synopsis-box {
  max-width: 980px;
  margin: 0 auto;
  background: var(--parchment-bg);
}

@media (max-width: 768px) {
  .hero-banner {
    max-height: none;
  }

  .hero-intro {
    padding: 42px 24px 52px;
  }

  .hero-intro h1 {
    font-size: 2.6rem;
  }

  .hero-line-1 {
    font-size: 1.4rem;
  }

  .hero-line-2 {
    font-size: 1.4rem;
  }

  .hero-line-3 {
    font-size: 2.6rem;
  }
}
