/* ===========================
   Variables & Reset
   =========================== */
:root {
  --color-bg: #faf6f0;
  --color-header: #5c2418;
  --color-accent: #c8832a;
  --color-accent-dark: #a66820;
  --color-text: #2d1f18;
  --color-text-light: #7a6558;
  --color-card: #ffffff;
  --color-border: #e8ddd3;
  --color-footer: #3a1810;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.13);
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-header);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200, 131, 42, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-header);
  border-color: var(--color-header);
}
.btn-secondary:hover {
  background: var(--color-header);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-accent {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline-accent:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
  background: var(--color-header);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  text-decoration: none;
  color: #fff;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}
.logo-text small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
  display: block;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-header);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.25rem 1.5rem;
}
.site-nav.open { display: block; }

.site-nav > ul { display: flex; flex-direction: column; gap: 0; }

.site-nav a {
  color: rgba(255,255,255,0.88);
  display: block;
  padding: 0.6rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--color-accent); }
.site-nav .dropdown { padding-left: 1rem; }
.site-nav .dropdown a { font-size: 0.9rem; font-weight: 400; color: rgba(255,255,255,0.75); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important;
    position: static;
    background: none;
    border: none;
    padding: 0;
    align-items: center;
  }
  .site-nav > ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
  .site-nav li { position: relative; }
  .site-nav > ul > li > a {
    padding: 0.5rem 0.85rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
  }
  .site-nav > ul > li > a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .site-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-header);
    min-width: 240px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }
  .site-nav .has-dropdown::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
  }
  .site-nav .has-dropdown:hover .dropdown { display: block; }
  .site-nav .dropdown a {
    padding: 0.55rem 1.1rem;
    border: none;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
  }
  .site-nav .dropdown a:hover { color: var(--color-accent); background: rgba(255,255,255,0.05); }
}

/* ===========================
   Hero
   =========================== */
.hero {
  background: linear-gradient(135deg, var(--color-header) 0%, #7a3020 60%, #4a1c0e 100%);
  color: #fff;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}


.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-style: italic;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.badge {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-video {
  flex-shrink: 0;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.hero-video video {
  width: 100%;
  display: block;
}

@media (min-width: 900px) {
  .hero { padding: 6rem 0 7rem; }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  .hero-video { max-width: 380px; }
}

/* ===========================
   Features Strip
   =========================== */
.features {
  background: var(--color-header);
  padding: 2.5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  color: rgba(255,255,255,0.9);
}

.feature-icon { font-size: 1.6rem; }

.feature-item h3 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.feature-item p { font-size: 0.82rem; color: rgba(255,255,255,0.65); line-height: 1.4; }

@media (min-width: 600px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===========================
   USP Section (Home)
   =========================== */
.usp-section {
  background: #fff;
  padding: 4.5rem 0;
  border-top: 1px solid var(--color-border);
}
.usp-section .section-title { margin-bottom: 0.5rem; }
.usp-section .section-subtitle { margin-bottom: 2.5rem; }
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.usp-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.usp-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}
.usp-item h3 {
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--color-text);
}
.usp-item p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin: 0;
}
@media (min-width: 600px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .usp-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================
   Books Section (Home)
   =========================== */
.books-section {
  padding: 5rem 0;
}

.books-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 540px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .books-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================
   Book Card
   =========================== */
.book-card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.book-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: var(--color-bg);
}

.book-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-card-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.book-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--color-header);
}

.book-card p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1.1rem;
  flex: 1;
  line-height: 1.5;
}

.book-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.book-price {
  font-weight: 700;
  color: var(--color-header);
  font-size: 1rem;
}
.book-price small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--color-text-light);
}

/* ===========================
   Book Detail Page
   =========================== */
.book-hero {
  background: linear-gradient(135deg, var(--color-header) 0%, #7a3020 100%);
  padding: 3.5rem 0 4rem;
  color: #fff;
}

.book-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.book-hero-cover {
  max-width: 260px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.book-hero-content h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.8rem); }
.book-hero-content .subtitle {
  color: var(--color-accent);
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.book-hero-content p { color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 1.5rem; max-width: 520px; }

@media (min-width: 680px) {
  .book-hero-inner {
    grid-template-columns: auto 1fr;
    gap: 3.5rem;
  }
  .book-hero-cover { max-width: 220px; margin: 0; }
}

.book-content { padding: 4rem 0; }

.versions-section { margin-bottom: 3rem; }

.versions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.versions-table th {
  background: var(--color-header);
  color: #fff;
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.versions-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.versions-table tr:last-child td { border-bottom: none; }
.versions-table tr:nth-child(even) td { background: rgba(0,0,0,0.02); }

.buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.description-section {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}
.description-section h2 { margin-bottom: 1rem; }
.description-section p { color: var(--color-text-light); line-height: 1.8; margin-bottom: 1rem; }
.description-section p:last-child { margin-bottom: 0; }

.highlights-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 540px) {
  .highlights-list { grid-template-columns: repeat(2, 1fr); }
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}
.highlight-item::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.song-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}
.song-list li {
  font-size: 0.875rem;
  color: var(--color-text-light);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 768px) {
  .song-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .song-list { grid-template-columns: 1fr; }
}

/* ===========================
   Breadcrumb
   =========================== */
.breadcrumb {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 0;
  font-size: 0.825rem;
  color: var(--color-text-light);
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.breadcrumb li + li::before {
  content: '›';
  margin-right: 0.3rem;
  color: var(--color-text-light);
}
.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--color-text); }

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
  background: var(--color-bg);
  padding: 3rem 0;
}
.faq-section h2 {
  margin-bottom: 1.5rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 760px;
}
.faq-list details {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.faq-list details[open] {
  border-color: var(--color-accent);
}
.faq-list summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.975rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list .faq-answer {
  padding: 0 1.25rem 1rem;
  font-size: 0.925rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ===========================
   CTA Banner
   =========================== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, #a66820 100%);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 2rem; font-size: 1.05rem; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--color-accent);
}
.cta-banner .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* ===========================
   Contact Page
   =========================== */
.contact-section { padding: 4rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 680px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info h2 { margin-bottom: 1.25rem; }
.contact-info p { color: var(--color-text-light); margin-bottom: 0.75rem; line-height: 1.7; }
.contact-info a { color: var(--color-accent); font-weight: 500; }
.contact-info a:hover { text-decoration: underline; }

.contact-card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin-bottom: 1rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}
.contact-detail strong { font-weight: 600; color: var(--color-header); display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ===========================
   Legal Pages
   =========================== */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.legal-content h1 { margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.3rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal-content p { color: var(--color-text-light); margin-bottom: 1rem; line-height: 1.8; }
.legal-content a { color: var(--color-accent); }

/* ===========================
   Page Breadcrumb / Intro
   =========================== */
.page-intro {
  padding: 3rem 0 1rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}
.page-intro h1 { margin-bottom: 0.5rem; }
.page-intro p { color: var(--color-text-light); font-size: 1.05rem; }

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--color-footer);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand .logo-text { color: #fff; font-size: 1.3rem; margin-bottom: 0.75rem; display: block; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.55); max-width: 260px; }

.footer-nav h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--color-accent); }

/* ===========================
   Utility
   =========================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
