/* ═══════════════════════════════════════════════════
   GORDON GREENE BOOKS — Shared Stylesheet
   All pages link to this file for consistent styling.
═══════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --forest: #2a4a28;
  --forest-dark: #1a3018;
  --forest-deep: #0d1f0c;
  --gold: #c9a84c;
  --gold-dark: #9a7a2a;
  --gold-light: #e8c97a;
  --cream: #f5f0e8;
  --parchment: #ede6d6;
  --ink: #1c1c1c;
  --ink-light: #1e1e1e;
  --mist: #4a6647;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Crimson Pro', Georgia, serif;
  background-color: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── BANNER ── */
.banner {
  width: 100%;
  background: #1a1a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  line-height: 0;
}
.banner a {
  display: flex;
  justify-content: center;
  line-height: 0;
}
.banner img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 420px;
  height: auto;
}

/* ── NAVIGATION ── */
nav {
  background: var(--forest-dark);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.nav-book { position: relative; }
.nav-book > a,
.nav-book > button {
  display: block;
  padding: 1rem 1.4rem;
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-book > a:hover,
.nav-book > button:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.04);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--forest-deep);
  border: 1px solid rgba(201,168,76,0.2);
  border-top: 2px solid var(--gold);
  list-style: none;
  z-index: 200;
}
.nav-book:hover .nav-dropdown,
.nav-book.open .nav-dropdown { display: block; }
.nav-dropdown li a {
  display: block;
  padding: 0.65rem 1.2rem;
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem;
  color: rgba(245,240,232,0.95);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.nav-dropdown li a:hover {
  color: var(--gold);
  padding-left: 1.5rem;
}
.nav-dropdown li + li { border-top: 1px solid rgba(255,255,255,0.06); }

/* ── LAYOUT ── */
.site-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HERO INTRO ── */
.hero-intro {
  padding: 3.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(42,74,40,0.15);
}
.hero-intro p {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-light);
  max-width: 780px;
  margin: 0 auto;
}
.hero-intro p strong { font-weight: 600; color: var(--forest); }
.hero-intro p em { font-style: italic; }

/* ── FORMAT BADGES ── */
.format-badges {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.format-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border: 1px solid var(--forest);
  border-radius: 2px;
  font-family: 'Crimson Pro', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}

/* ── BOOK COVERS GRID ── */
.covers-section { padding: 3rem 0 2rem; }
.covers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: end;
}
.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.book-cover-wrap {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: 6px 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-cover-wrap:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 10px 18px 40px rgba(0,0,0,0.45);
}
.book-cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem; gap: 0.5rem;
}
.book-cover-placeholder .icon { font-size: 2.5rem; opacity: 0.3; }
.book-cover-placeholder .ptitle {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem; font-weight: 700;
  color: var(--gold); text-align: center; line-height: 1.3;
}
.book-card-title {
  margin-top: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--forest-dark); line-height: 1.3;
}
.book-card-links {
  margin-top: 0.5rem;
  display: flex; gap: 0.5rem;
  flex-wrap: wrap; justify-content: center;
}
.book-card-links a {
  font-family: 'Crimson Pro', serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em; color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid var(--forest);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.book-card-links a:hover { color: var(--gold); border-color: var(--gold); }

/* ── SECTION HEADER ── */
.section-header {
  display: flex; align-items: center;
  gap: 1.5rem; margin-bottom: 2.5rem;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--forest-dark); white-space: nowrap;
}
.section-rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(42,74,40,0.4), transparent);
}

/* ── BOOK FEATURE SECTIONS ── */
.book-section {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(42,74,40,0.1);
}
.book-feature {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem; align-items: start;
}
.book-feature.reverse { grid-template-columns: 1fr 260px; }
.book-feature.reverse .feature-cover { order: 2; }
.book-feature.reverse .feature-content { order: 1; }
.feature-cover { position: relative; }
.feature-cover-img {
  width: 100%; aspect-ratio: 2/3;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  border-radius: 3px; overflow: hidden;
  box-shadow: 8px 12px 35px rgba(0,0,0,0.4);
}
.feature-cover-img img { width: 100%; height: 100%; object-fit: cover; }
.cover-badge {
  position: absolute; top: -12px; left: -12px;
  background: var(--forest-dark); color: var(--gold);
  font-family: 'Crimson Pro', serif;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(201,168,76,0.4);
}
.feature-section-label {
  font-family: 'Crimson Pro', serif;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 0.5rem;
}
.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900; color: var(--forest-dark);
  line-height: 1.1; margin-bottom: 1rem;
}
.feature-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 400; font-style: italic;
  color: var(--gold-dark); margin-bottom: 1.5rem;
}
.feature-desc {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 400; line-height: 1.85;
  color: var(--ink-light); margin-bottom: 1.5rem;
}
.section-bar {
  display: inline-block;
  padding: 0.3rem 1.2rem;
  background: var(--forest-dark); color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; margin-bottom: 1.5rem;
}

/* ── BUTTONS ── */
.feature-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; padding: 0.65rem 1.5rem;
  background: var(--forest); color: var(--cream);
  font-family: 'Crimson Pro', serif; font-size: 0.9rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--forest);
  transition: background 0.2s, color 0.2s;
}
.btn-primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); }
.btn-secondary {
  display: inline-block; padding: 0.65rem 1.5rem;
  background: transparent; color: var(--forest);
  font-family: 'Crimson Pro', serif; font-size: 0.9rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--forest);
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--forest); color: var(--cream); }
.btn-gold {
  display: inline-block; padding: 0.65rem 1.5rem;
  background: var(--gold); color: var(--forest-deep);
  font-family: 'Crimson Pro', serif; font-size: 0.9rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--gold);
  transition: background 0.2s, color 0.2s;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* ── MAILING LIST ── */
.mailing-section {
  background: var(--forest-dark);
  margin: 3rem 0 0; padding: 3rem;
  text-align: center; position: relative; overflow: hidden;
}
.mailing-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 70%);
}
.mailing-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--cream); margin-bottom: 0.75rem; position: relative;
}
.mailing-section p {
  font-size: 1.1rem; color: rgba(245,240,232,0.9);
  margin-bottom: 1.5rem; position: relative;
}
.mailing-section a { position: relative; }

/* ── PAGE HERO (for inner pages) ── */
.page-hero {
  background: var(--parchment);
  border-bottom: 3px solid var(--forest-dark);
  padding: 3rem 0 2.5rem;
}
.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto; padding: 0 2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem; align-items: center;
}
.page-hero-cover {
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  border-radius: 3px; overflow: hidden;
  box-shadow: 10px 14px 40px rgba(0,0,0,0.45);
  position: relative;
}
.page-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-content {}
.page-hero-eyebrow {
  font-family: 'Crimson Pro', serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 0.6rem;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900; color: var(--forest-dark);
  line-height: 1.05; margin-bottom: 0.5rem;
}
.page-hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 400; font-style: italic;
  color: var(--gold-dark); margin-bottom: 1.5rem;
}
.page-hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.page-hero-meta-item {
  display: flex; flex-direction: column; gap: 0.2rem;
}
.page-hero-meta-label {
  font-family: 'Crimson Pro', serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--mist);
}
.page-hero-meta-value {
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem; font-weight: 600; color: var(--forest-dark);
}
.page-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── CONTENT SECTIONS ── */
.content-section {
  padding: 3rem 0;
  border-top: 1px solid rgba(42,74,40,0.1);
}
.content-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700; color: var(--forest-dark);
  margin-bottom: 1.25rem;
}
.content-section p {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 400; line-height: 1.85;
  color: var(--ink-light); margin-bottom: 1.2rem;
}
.content-section p:last-child { margin-bottom: 0; }

/* ── CHARACTER CARDS ── */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 1.5rem;
}
.character-card {
  background: white;
  border-left: 4px solid var(--forest);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.character-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--forest-dark); margin-bottom: 0.3rem;
}
.character-card-role {
  font-family: 'Crimson Pro', serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 0.8rem;
}
.character-card p {
  font-size: 0.98rem; font-weight: 400;
  line-height: 1.7; color: #2a2a2a;
  margin: 0;
}

/* ── PURCHASE TABLE ── */
.purchase-section {
  background: var(--forest-dark);
  padding: 3rem 2rem; margin-top: 3rem;
}
.purchase-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--cream); margin-bottom: 0.4rem;
  text-align: center;
}
.purchase-section .subtitle {
  font-family: 'Crimson Pro', serif;
  font-size: 1rem; color: rgba(245,240,232,0.7);
  text-align: center; margin-bottom: 2rem;
}
.purchase-grid {
  max-width: 700px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.purchase-btn {
  display: block; padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--cream);
  font-family: 'Crimson Pro', serif;
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.purchase-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest-deep);
}
.purchase-btn .icon {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 0.4rem;
}
.purchase-btn .icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

/* ── FOOTER ── */
footer {
  background: #004001;
  padding: 1.5rem 2rem; text-align: center;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-social { display: flex; gap: 1rem; align-items: center; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%; text-decoration: none;
  color: rgba(245,240,232,0.8); font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--gold); color: var(--forest-deep); }
.footer-copy {
  font-family: 'Crimson Pro', serif;
  font-size: 0.85rem; color: rgba(245,240,232,0.6);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
/* ── TABLET (max 860px) ── */
@media (max-width: 860px) {

  /* Keep nowrap on tablet where there's still room */
  .nav-book > a,
  .nav-book > button { white-space: nowrap; }

  /* Nav — stack items and allow wrapping */
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.25rem 0;
  }
  .nav-book > a,
  .nav-book > button {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
  }
  .nav-dropdown {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    z-index: 500;
  }

  /* Covers grid */
  .covers-grid { grid-template-columns: repeat(2, 1fr); }

  /* Book feature sections */
  .book-feature,
  .book-feature.reverse { grid-template-columns: 1fr; }
  .book-feature .feature-cover,
  .book-feature.reverse .feature-cover { max-width: 220px; margin: 0 auto; }
  .book-feature.reverse .feature-cover { order: 0; }
  .book-feature.reverse .feature-content { order: 0; }

  /* Page hero */
  .page-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .page-hero-cover { max-width: 200px; margin: 0 auto; }
  .page-hero-meta { justify-content: center; }
  .page-hero-actions { justify-content: center; }

  /* Character grid */
  .character-grid { grid-template-columns: 1fr; }

  /* Purchase grid */
  .purchase-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE (max 560px) ── */
@media (max-width: 560px) {

  /* Tighten site wrapper padding */
  .site-wrapper { padding: 0 1rem; }

  /* Banner */
  .banner { padding: 0.5rem 0; }

  /* Nav — full width buttons */
  .nav-inner { gap: 0; }
  .nav-book { width: 50%; }
  .nav-book > a,
  .nav-book > button {
    width: 100%;
    text-align: center;
    padding: 0.65rem 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    white-space: normal;
    line-height: 1.3;
  }

  /* Covers grid */
  .covers-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Page hero */
  .page-hero { padding: 2rem 0 1.5rem; }
  .page-hero-inner { padding: 0 1rem; gap: 1.5rem; }
  .page-hero-title { font-size: 1.8rem; }
  .page-hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .page-hero-actions a {
    width: 100%;
    text-align: center;
  }

  /* Feature sections */
  .book-section { padding: 2rem 0; }
  .feature-title { font-size: 1.6rem; }

  /* Content sections */
  .content-section { padding: 2rem 0; }
  .content-section h2 { font-size: 1.4rem; }

  /* Hero intro */
  .hero-intro { padding: 2rem 0 1.5rem; }

  /* Mailing section */
  .mailing-section { padding: 2rem 1rem; }
  .mailing-section h2 { font-size: 1.4rem; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }

  /* Purchase section */
  .purchase-section { padding: 2rem 1rem; }
  .purchase-grid { grid-template-columns: repeat(2, 1fr); }

  /* Buttons — full width on mobile where stacked */
  .feature-actions {
    flex-direction: column;
  }
  .feature-actions a {
    width: 100%;
    text-align: center;
  }

  /* Book links row on audio/trailer pages */
  .book-links {
    flex-direction: column;
  }
  .book-links a {
    width: 100%;
    text-align: center;
  }

  /* Section bar */
  .section-bar {
    display: block;
    width: 100%;
    text-align: center;
  }
}
