/* Fonts now loaded via HTML link tags for better performance */

/* ==================
   DESIGN TOKENS
   ================== */
:root {
  --bg-dark: #121212;
  --bg-darker: #0e0c0a;
  --bg-panel: rgba(15, 12, 10, 0.88);
  --bg-card: rgba(25, 20, 15, 0.9);
  --text-main: #ede8e1;
  /* lightened from #d3ccc5 */
  --text-muted: #c8c0b5;
  /* lightened from #9e9e9e */
  --text-light: #f7f4f0;
  /* lightened from #f0ebe4 */

  --accent-gold: #d4aa6a;
  /* single consistent gold */
  --accent-gold-light: #d4aa6a;
  --accent-bronze: #8a5a44;
  --accent-bronze-light: #a06a52;

  --font-brand: 'Great Vibes', cursive;
  --font-body: 'Lora', serif;
  --font-cinzel: 'Cinzel', serif;

  --transition-speed: 0.35s;
  --border-gold: 1px solid rgba(212, 170, 106, 0.4);
  --shadow-deep: 0 8px 32px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 20px rgba(212, 170, 106, 0.4);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 18px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  /* tightened from 2rem */
  --space-lg: 2.5rem;
  /* tightened from 4rem */
  --space-xl: 4rem;
  /* tightened from 6rem */
}

/* ==================
   RESET & BASE
   ================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  background-image: url('Images/site-background.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  text-rendering: optimizeLegibility;
}

/* Video Background Controls (Only active when video exists on page) */
.index-bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
  opacity: 0.3;
  animation: slowZoom 16s ease-in-out infinite alternate;
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 5, 3, 0.45);
  z-index: -1;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(8, 5, 3, 0.45);
  pointer-events: none;
  z-index: 0;
}

/* Hide default body overlay if video-overlay is present */
body:has(.index-bg-video)::before {
  display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-cinzel);
  text-transform: none;
  line-height: 1.3;
}

/* ==================
   ANIMATIONS
   ================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes goldPulse {

  0%,
  100% {
    text-shadow: 0 0 8px rgba(207, 170, 103, 0.3);
  }

  50% {
    text-shadow: 0 0 20px rgba(207, 170, 103, 0.7);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes borderGlow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(207, 170, 103, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(207, 170, 103, 0.5);
  }
}

@keyframes floatGentle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes slowZoom {
  from {
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.animate-in {
  animation: fadeInUp 0.7s ease both;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================
   SITE WRAPPER
   ================== */
.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  width: 100%;
  padding: 0 var(--space-sm) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ==================
   ── HOME PAGE HEADER ──
   ================== */
.main-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xs) 0 0;
  animation: fadeIn 1.2s ease both;
}

.home-nav-header {
  position: relative;
  z-index: 2500;
}

.coat-of-arms {
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 0;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
  animation: fadeIn 1s ease 0.2s both;
}

.logo {
  max-width: 476px;
  width: 90%;
  margin-top: -35px;
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.95));
  animation: fadeInUp 0.9s ease 0.4s both;
}

.floating-art {
  animation: floatGentle 6s ease-in-out infinite;
}

hr.separator {
  width: 80%;
  max-width: 600px;
  border: none;
  border-top: 1px solid rgba(212, 170, 106, 0.4);
  margin: var(--space-sm) auto;
  display: block;
}

hr.ornate-separator {
  width: 70%;
  max-width: 500px;
  border: none;
  border-top: 1px dashed rgba(138, 90, 68, 0.6);
  margin: var(--space-sm) auto;
  display: block;
}

.brand-title {
  font-family: var(--font-brand);
  font-size: 4rem;
  color: var(--accent-gold);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  margin-bottom: var(--space-xs);
  animation: goldPulse 4s ease-in-out infinite;
}

.intro-text {
  max-width: 720px;
  margin: var(--space-sm) auto var(--space-sm);
  font-size: 1.05rem;
  text-align: center;
  color: var(--text-main);
  /* lightened */
  line-height: 1.8;
  animation: fadeIn 1s ease 0.6s both;
}

.visitor-counter {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2200;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 136px;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(212, 170, 106, 0.32);
  border-radius: 14px;
  background: rgba(12, 8, 5, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.visitor-counter-label {
  font-family: var(--font-cinzel);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.visitor-counter-value {
  font-family: var(--font-cinzel);
  font-size: 1.3rem;
  color: var(--accent-gold);
  line-height: 1;
}

/* ==================
   ── GLOBAL NAVBAR (Sub-pages) ──
   ================== */
.global-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem var(--space-sm);
  border-bottom: 1px solid rgba(212, 170, 106, 0.3);
  margin-bottom: var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 12, 10, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  gap: var(--space-sm);
}

.nav-logo {
  flex-shrink: 0;
}

.nav-logo a {
  display: block;
}

.nav-logo img {
  max-height: 120px;
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.95));
  transition: opacity var(--transition-speed) ease;
}

.nav-logo img:hover {
  opacity: 0.85;
}

/* Hamburger Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-menu a {
  font-family: var(--font-cinzel);
  color: var(--text-light);
  /* near-white */
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-speed) ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width var(--transition-speed) ease;
}

.nav-menu a:hover {
  color: var(--accent-gold);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* ==================
   ── PRODUCT LAYOUT (2-column) ──
   ================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-md) 0 var(--space-xl);
}

.product-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-left h1 {
  font-size: 2.8rem;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.9);
  animation: goldPulse 5s ease-in-out infinite;
  line-height: 1.2;
}

.product-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5.6;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(207, 170, 103, 0.5);
  box-shadow: 8px 10px 30px rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.product-cover:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 8px 10px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(207, 170, 103, 0.2);
}

.product-cover--contain {
  object-fit: contain;
  object-position: center;
  background: rgba(10, 8, 6, 0.85);
  padding: 0.45rem;
}

.product-synopsis {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid rgba(207, 170, 103, 0.4);
  padding-left: var(--space-sm);
}

.product-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.buy-section {
  background: var(--bg-panel);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.buy-section h3 {
  font-family: var(--font-cinzel);
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  border-bottom: var(--border-gold);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.buy-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all var(--transition-speed) ease;
  border: 1px solid transparent;
}

.btn-buy.amazon {
  background: linear-gradient(160deg, #e47911 0%, #b35b00 100%);
  color: #fff;
  border-color: rgba(228, 121, 17, 0.6);
}

.btn-buy.amazon:hover {
  background: linear-gradient(160deg, #f08920 0%, #c46510 100%);
  box-shadow: 0 6px 20px rgba(228, 121, 17, 0.4);
  transform: translateY(-2px);
}

.btn-buy.bn {
  background: linear-gradient(160deg, #1d4e89 0%, #0f2d4f 100%);
  color: #fff;
  border-color: rgba(29, 78, 137, 0.6);
}

.btn-buy.bn:hover {
  background: linear-gradient(160deg, #2a6bb5 0%, #1a4070 100%);
  box-shadow: 0 6px 20px rgba(29, 78, 137, 0.4);
  transform: translateY(-2px);
}

/* ==================
   ── 3-PANELS ──
   ================== */
.panel-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}

.panel {
  background: var(--bg-card);
  border: var(--border-gold);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--text-main);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  animation: fadeInUp 0.7s ease both;
  min-height: 380px;
}

.panel:nth-child(1) {
  animation-delay: 0.1s;
}

.panel:nth-child(2) {
  animation-delay: 0.25s;
}

.panel:nth-child(3) {
  animation-delay: 0.4s;
}

/* Shimmer overlay on hover */
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(207, 170, 103, 0.06) 50%, transparent 60%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  z-index: 1;
  pointer-events: none;
}

.panel:hover::before {
  opacity: 1;
  animation: shimmer 1.2s ease;
}

.panel-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  overflow: hidden;
  border-bottom: none;
}

.panel-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.panel-content {
  position: relative;
  z-index: 2;
  background: rgba(25, 20, 15, 0.4);
  padding: var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.panel-content h3 {
  font-family: var(--font-cinzel);
  font-size: 1.25rem;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.panel-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-main);
  /* lightened */
  font-style: italic;
}

.panel:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold), var(--shadow-deep);
  transform: translateY(-6px);
}

.panel:hover .panel-image-wrapper img {
  transform: scale(1.07);
}

.panel-image-top {
  object-position: center top !important;
}

.panel-image-center {
  object-position: center center !important;
}

.panel-image-soft {
  transform: scale(1.02);
}

.panel.dimmed {
  filter: grayscale(60%) brightness(0.55);
}

.panel.shining {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}

/* ==================
   ── ABOUT SECTION ──
   ================== */
.about-section {
  text-align: center;
  padding: var(--space-md) 0;
}

.section-title {
  font-family: var(--font-brand);
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: var(--space-sm);
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.9);
  animation: goldPulse 5s ease-in-out infinite;
}

.section-title-small {
  font-family: var(--font-cinzel);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: 3px;
}

/* ==================
   ── FEATURED BOOKS ──
   ================== */
.featured-books {
  text-align: center;
  padding: var(--space-md) 0;
}

.title-with-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.flourish {
  display: flex;
  align-items: center;
}

.flourish.left::before {
  content: '';
  display: inline-block;
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-gold));
  margin-right: 10px;
}

.flourish.left::after {
  content: '✦';
  color: var(--accent-gold);
  font-size: 1rem;
}

.flourish.right::before {
  content: '✦';
  color: var(--accent-gold);
  font-size: 1rem;
  margin-right: 10px;
}

.flourish.right::after {
  content: '';
  display: inline-block;
  width: 80px;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--accent-gold));
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 100%;
  margin: 0 auto;
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}

.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  animation: fadeInUp 0.7s ease both;
}

.book-card:nth-child(1) {
  animation-delay: 0.1s;
}

.book-card:nth-child(2) {
  animation-delay: 0.25s;
}

.book-card:nth-child(3) {
  animation-delay: 0.4s;
}

.book-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: var(--radius-sm);
  background: rgba(15, 10, 7, 0.85);
  padding: 0.35rem;
  box-shadow: 6px 8px 20px rgba(0, 0, 0, 0.85);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book-cover-image {
  object-position: center top;
}

.book-cover-image.contain-cover {
  object-fit: contain;
}

.book-card img:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 8px 16px 30px rgba(0, 0, 0, 0.9), 0 0 18px rgba(207, 170, 103, 0.4);
}

.btn-view {
  display: inline-block;
  background: linear-gradient(160deg, #7a4a2a 0%, #4a2810 100%);
  color: var(--text-light);
  padding: 0.6rem 2.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(207, 170, 103, 0.5);
  text-decoration: none;
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all var(--transition-speed) ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 8px rgba(0, 0, 0, 0.5);
}

.btn-view:hover {
  background: linear-gradient(160deg, #9b6035 0%, #6a3a18 100%);
  border-color: var(--accent-gold);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 16px rgba(207, 170, 103, 0.3);
  transform: translateY(-2px);
}

.btn-view.ghost {
  margin-top: -0.5rem;
  background: transparent;
  border-color: rgba(207, 170, 103, 0.5);
}

.btn-view.ghost:hover {
  background: rgba(212, 170, 106, 0.12);
}

/* ==================
   ── FOOTER ──
   ================== */
footer {
  text-align: center;
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-md);
  border-top: var(--border-gold);
  content-visibility: auto;
  contain-intrinsic-size: 200px;
}

.footer-quote {
  font-family: var(--font-cinzel);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  opacity: 0.8;
  letter-spacing: 1px;
}

hr.thin {
  width: 40%;
  margin: 0 auto var(--space-sm);
  border: none;
  border-top: 1px solid rgba(207, 170, 103, 0.2);
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.footer-nav a {
  font-family: var(--font-cinzel);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color var(--transition-speed) ease;
}

.footer-nav a:hover {
  color: var(--accent-gold);
}

.footer-legal {
  margin-top: -0.2rem;
}

.footer-legal a {
  font-size: 0.72rem;
  letter-spacing: 1.2px;
}

.footer-nav .divider {
  color: rgba(207, 170, 103, 0.3);
}

.footer-seal,
.footer-motto {
  display: none;
}

/* ==================
   ── DEEP DIVE PAGE CONTENT ──
   ================== */
.page-hero {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-md);
  animation: fadeIn 1s ease both;
}

.page-hero h1 {
  font-size: 4rem;
  color: var(--accent-gold);
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.9);
  animation: goldPulse 5s ease-in-out infinite;
  letter-spacing: 3px;
}

.hero-coat,
.hero-motto {
  display: none;
}

.feature-section {
  padding: 0 0 var(--space-lg);
}

/* Parchment Table */
.parchment-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  background-color: #e8dcc8;
  border: 1px solid var(--accent-bronze);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.08);
  color: #2c1810;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.parchment-table th,
.parchment-table td {
  padding: 1.2rem 1.5rem;
  text-align: left;
  border: none;
}

.parchment-table tbody tr {
  border-top: 1px solid rgba(138, 90, 68, 0.2);
  transition: background var(--transition-speed) ease;
}

.parchment-table tbody tr:hover {
  background: rgba(138, 90, 68, 0.1);
}

.parchment-table th {
  color: #4a2008;
  font-family: var(--font-cinzel);
  font-size: 1rem;
  letter-spacing: 2px;
  border-bottom: 2px solid var(--accent-bronze);
  background: rgba(138, 90, 68, 0.15);
}

.lore-table {
  display: none;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.gallery-grid img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border: 1px solid rgba(207, 170, 103, 0.4);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-deep);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold), var(--shadow-deep);
}

/* Side by Side */
.side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.side-by-side div {
  text-align: center;
}

.side-by-side h4 {
  font-family: var(--font-cinzel);
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.side-by-side img {
  width: 100%;
  border: 1px solid rgba(207, 170, 103, 0.4);
  box-shadow: var(--shadow-deep);
  border-radius: var(--radius-sm);
  transition: transform 0.4s ease;
}

.side-by-side img:hover {
  transform: scale(1.03);
}

/* Review Blockquote */
.review-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-main);
  border-left: 3px solid var(--accent-gold);
  margin: var(--space-md) auto;
  max-width: 700px;
  background: var(--bg-panel);
  padding: var(--space-md) var(--space-md) var(--space-md) 2.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-deep);
  position: relative;
}

.review-quote::before {
  content: '"';
  font-family: var(--font-brand);
  font-size: 5rem;
  color: var(--accent-gold);
  opacity: 0.25;
  position: absolute;
  top: -10px;
  left: 12px;
  line-height: 1;
}

.quote-credit {
  color: var(--accent-gold);
  display: block;
  margin-top: 1rem;
  font-style: normal;
}

/* Author Profile */
.author-profile {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: var(--bg-panel);
  padding: var(--space-md);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  box-shadow: var(--shadow-deep);
}

.author-profile img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.profile-bio h3 {
  color: var(--accent-gold);
  margin-bottom: var(--space-xs);
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.profile-bio p {
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
}

.credits-box {
  text-align: center;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  font-style: italic;
  color: var(--text-muted);
}

.credits-box h3 {
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-top: var(--space-xs);
}

.content-card {
  background: linear-gradient(180deg, rgba(26, 20, 15, 0.94), rgba(15, 11, 8, 0.9));
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(212, 170, 106, 0.08), transparent 30%, transparent 70%, rgba(212, 170, 106, 0.06));
  pointer-events: none;
}

.content-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.9rem;
}

.lead-copy {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.85;
}

.stack-md {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.feature-list {
  list-style: disc;
  margin-left: 1.5rem;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.8;
}

.feature-list li + li {
  margin-top: 0.5rem;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto var(--space-xl);
}

.legal-page .sub-heading {
  text-align: left;
  margin-top: 0;
}

.legal-page .sub-heading::after {
  left: 0;
  transform: none;
}

.author-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: var(--space-md);
  align-items: stretch;
}

.portrait-frame {
  position: relative;
  min-height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-gold);
  background: radial-gradient(circle at top, rgba(212, 170, 106, 0.18), rgba(13, 10, 8, 0.95) 58%);
  box-shadow: var(--shadow-deep);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.portrait-frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(9, 7, 5, 0.92), transparent);
}

.floating-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 11, 8, 0.8);
  border: 1px solid rgba(212, 170, 106, 0.35);
  color: var(--text-light);
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.split-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.split-feature-card {
  background: rgba(19, 14, 11, 0.92);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.split-feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.split-feature-body {
  padding: 1.25rem;
}

.split-feature-body h4 {
  color: var(--text-main);
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
  font-weight: 400;
}

.music-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: var(--space-lg);
  align-items: center;
}

.music-portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-gold);
  box-shadow: var(--shadow-deep);
}

.music-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.music-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.music-stat {
  padding: 1rem;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 170, 106, 0.24);
  background: rgba(255, 255, 255, 0.03);
}

.music-stat strong {
  display: block;
  font-family: var(--font-cinzel);
  font-size: 1.4rem;
  color: var(--accent-gold);
}

.music-stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.video-card {
  background: rgba(15, 11, 8, 0.92);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold), var(--shadow-deep);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #000;
}

.video-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.video-card-body h3 {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.video-card-body p {
  color: var(--text-main);
  font-size: 0.95rem;
}

.contact-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-md) 0 var(--space-xl);
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  text-transform: none;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.contact-panel {
  background: var(--bg-panel);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-deep);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-label {
  font-family: var(--font-cinzel);
  color: var(--accent-gold-light);
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.form-input {
  padding: 1.2rem;
  background: var(--bg-dark);
  border: 1px solid rgba(212, 170, 106, 0.3);
  color: var(--text-main);
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  outline: none;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.form-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(212, 170, 106, 0.12);
  transform: translateY(-1px);
}

.form-submit {
  width: 100%;
  justify-content: center;
  cursor: pointer;
  text-transform: none;
  font-size: 1.1rem;
  padding: 1.1rem 0;
  letter-spacing: 2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.privacy-notice {
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(212, 170, 106, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(24, 16, 12, 0.9);
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.privacy-notice p {
  margin: 0 0 0.9rem;
}

.privacy-notice a {
  color: var(--accent-gold-light);
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.privacy-check input {
  margin-top: 0.3rem;
  accent-color: var(--accent-gold);
}

.form-response {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  display: none;
}

.form-response.is-success {
  color: #d4aa6a;
}

.form-response.is-error {
  color: #ff6b6b;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ==================
   ── GLOBAL SUBHEADINGS ──
   ================== */
.sub-heading {
  font-family: var(--font-cinzel);
  font-size: 1.8rem;
  color: var(--accent-gold);
  text-align: center;
  letter-spacing: 2px;
  margin: var(--space-lg) 0 var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

.sub-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--accent-gold);
}

/* Payment logos - hidden */
.payment-logos {
  display: none;
}

/* ==================
   ── RESPONSIVE ──
   ================== */

/* ── Large tablet / iPad (1024px) ── */
@media (max-width: 1024px) {
  .site-wrapper {
    padding: 0 var(--space-sm) var(--space-md);
  }

  .books-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .panel-container {
    gap: var(--space-sm);
  }

  /* Hamburger: show toggle, hide full nav on tablet + mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 8, 5, 0.97);
    border-top: 1px solid rgba(212, 170, 106, 0.3);
    padding: var(--space-sm) 0;
    z-index: 200;
    flex: none;
    width: 100%;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(212, 170, 106, 0.1);
  }

  .nav-menu a {
    display: block;
    padding: 0.9rem var(--space-md);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-align: left;
  }

  .nav-menu a::after {
    display: none;
  }
}

/* ── Tablet (768px) ── */
@media (max-width: 768px) {

  /* Panels: 2 columns on tablet */
  .panel-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  /* 2 book columns on tablet */
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    max-width: 520px;
    margin: 0 auto;
  }

  /* Home page header */
  .coat-of-arms {
    max-width: 240px;
  }

  .logo {
    max-width: 480px;
    margin-top: 0;
    width: 85%;
  }

  .brand-title {
    font-size: 2.8rem;
  }

  .intro-text {
    font-size: 0.95rem;
  }

  /* Content sections */
  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .product-left h1 {
    font-size: 2.2rem;
    text-align: center;
  }

  .side-by-side {
    grid-template-columns: 1fr;
  }

  .author-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .author-spotlight,
  .music-hero,
  .split-feature {
    grid-template-columns: 1fr;
  }

  .portrait-frame img,
  .music-portrait img {
    min-height: 0;
    max-height: 560px;
  }

  .music-stat-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-nav {
    gap: 0.4rem;
    flex-wrap: wrap;
  }

  .footer-nav .divider {
    display: none;
  }

  .footer-nav a {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
  }
}

/* ── Mobile (480px) ── */
@media (max-width: 480px) {

  .site-wrapper {
    padding: 0 0.5rem var(--space-md);
  }

  /* Home header */
  .coat-of-arms {
    max-width: 160px;
  }

  .logo {
    max-width: 320px;
    margin-top: 0;
    width: 85%;
    margin-bottom: var(--space-md);
  }

  .brand-title {
    font-size: 2rem;
  }

  /* 1-column panels and books */
  .panel-container {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .books-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  /* Typography */
  .section-title {
    font-size: 2.2rem;
  }

  .section-title-small {
    font-size: 1.2rem;
  }

  .page-hero h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .product-left h1 {
    font-size: 1.8rem;
  }

  /* Featured books flourish layout */
  .title-with-flourish {
    gap: 0.5rem;
  }

  .flourish.left::before,
  .flourish.right::after {
    width: 30px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 1.3rem;
  }

  /* Buy button full width */
  .btn-buy {
    width: 100%;
  }

  /* Footer */
  .footer-nav a {
    font-size: 0.7rem;
  }

  footer {
    padding: var(--space-md) 0;
  }

  .visitor-counter {
    right: 0.75rem;
    bottom: 0.75rem;
    min-width: 122px;
    padding: 0.7rem 0.8rem;
  }

  .visitor-counter-value {
    font-size: 1.15rem;
  }
}


@media (max-width: 768px) {
  .panel-container {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: var(--space-md) auto;
  }

  .books-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .global-navbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.8rem;
    /* Increased from 1rem (var(--space-sm)) */
    margin-bottom: var(--space-md);
    padding: var(--space-md) var(--space-sm);
    position: relative;
  }

  .nav-menu {
    width: 100%;
    justify-content: center;
  }

  .nav-menu ul {
    gap: 0.8rem;
    justify-content: center;
  }

  .nav-menu a {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .side-by-side {
    grid-template-columns: 1fr;
  }

  .author-profile {
    flex-direction: column;
    align-items: center;
  }

  .brand-title {
    font-size: 2.8rem;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    gap: 0.4rem;
  }

  .footer-nav .divider {
    display: none;
  }

  .logo {
    max-width: 440px;
    margin-top: 0;
    width: 85%;
  }

  .coat-of-arms {
    max-width: 200px;
  }

  /* Product layout stacks on mobile */
  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .product-left h1 {
    font-size: 2rem;
    text-align: center;
  }

  .nav-logo img {
    max-height: 95px;
  }
}

@media (max-width: 480px) {
  .nav-menu ul {
    gap: 0.6rem;
  }

  .nav-menu a {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }

  .brand-title {
    font-size: 2.2rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .title-with-flourish {
    flex-direction: column;
    gap: 0.5rem;
  }

  .flourish.left::before,
  .flourish.right::after {
    width: 40px;
  }

  .footer-nav a {
    font-size: 0.7rem;
  }

  .books-grid {
    max-width: 260px;
  }
}



/* ================== 
   ── HOME FLYOUT NAVIGATION ── 
   ================== */
.home-nav-toggle {
  display: flex !important;
  position: fixed;
  top: 100px;
  right: 50px;
  margin: 0;
  width: 56px;
  height: 48px;
  padding: 12px 11px;
  background: rgba(14, 12, 10, 0.75);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 170, 106, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 3001;
}

.home-nav-toggle span {
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
}

.home-nav-toggle:hover {
  transform: scale(1.08);
  border-color: var(--accent-gold);
}

.home-nav-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(92vw, 340px);
  height: 100vh;
  background: rgba(12, 8, 5, 0.97);
  border-left: 1px solid rgba(212, 170, 106, 0.3);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 0;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 3000;
  padding: 120px 0 40px;
}

.home-nav-menu.open {
  display: flex;
}

.home-nav-menu ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0;
  align-items: stretch;
}

.home-nav-menu li {
  width: 100%;
  border-bottom: 1px solid rgba(212, 170, 106, 0.1);
}

.home-nav-menu li:last-child {
  border-bottom: none;
}

.home-nav-menu a {
  display: block;
  padding: 0.9rem var(--space-md);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-align: left;
}

.home-nav-menu a:hover {
  background: rgba(212, 170, 106, 0.08);
}

@media (max-width: 768px) {
  .home-nav-toggle {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    margin: 0.7rem auto 0.7rem;
  }

  .home-nav-menu {
    top: 205px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1rem);
    height: auto;
    max-height: calc(100vh - 220px);
    border: 1px solid rgba(212, 170, 106, 0.3);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    padding: 0;
  }

  .home-nav-menu a {
    text-align: left;
  }

  .logo {
    margin-top: -40px;
  }
}
