/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:     #F7FAF9;
  --cream-mid: #EAF4F1;
  --tan:       #C8E2DB;
  --brown:     #1B6B6B;
  --brown-dk:  #0D4A4A;
  --navy:      #1B3A5C;
  --gold:      #C89A45;
  --gold-lt:   #E8C97A;
  --teal:      #1A8A7A;
  --teal-lt:   #2BBBA6;
  --purple:    #6B3FA0;
  --text:      #0D2B2B;
  --text-mid:  #3A6060;
  --white:     #FFFFFF;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(13,74,74,0.12);
}

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Announcement Bar ── */
.announcement-bar {
  background: var(--brown-dk);
  color: var(--gold-lt);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 10px 20px;
}

/* ── Header ── */
header {
  background: var(--cream);
  border-bottom: 1px solid var(--tan);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; }

.logo-img {
  height: 60px;
  width: 60px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--cream-mid);
}

.logo-img--footer {
  height: 70px;
  width: 70px;
  object-fit: cover;
  background: var(--cream, #faf6ef);
  border-radius: 50%;
  padding: 6px;
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  font-family: 'Lora', Georgia, serif;
  transition: color 0.2s;
  text-transform: uppercase;
}

nav a:hover { color: var(--brown-dk); }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 13px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--brown-dk) !important; color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-dk);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--cream-mid) 0%, var(--cream) 60%, #EDE0C8 100%);
  padding: 90px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(200,154,69,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-family: 'Lora', Georgia, serif;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  color: var(--brown-dk);
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-family: 'Lora', Georgia, serif;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover { background: var(--brown-dk); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-family: 'Lora', Georgia, serif;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline:hover { background: var(--teal); color: var(--white); transform: translateY(-1px); }

/* ── Trust Strip ── */
.trust-strip {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 0;
  text-align: center;
}

.trust-item {
  font-size: 13px;
  color: var(--text-mid);
  padding: 0 20px;
  border-right: 1px solid var(--tan);
}

.trust-item:last-child { border-right: none; }

.trust-item strong {
  color: var(--brown-dk);
  font-family: 'Playfair Display', Georgia, serif;
}

.trust-link {
  color: var(--teal) !important;
  font-weight: 700;
}

.trust-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .trust-item { border-right: none; padding: 4px 12px; }
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Lora', Georgia, serif;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--brown-dk);
  line-height: 1.2;
}

.section-header p {
  font-size: 16px;
  color: var(--text-mid);
  margin-top: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Books Section ── */
.books-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 20px;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(78,56,32,0.16);
}

.book-cover-wrap {
  position: relative;
  background: var(--cream-mid);
  aspect-ratio: 3/4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.book-card:hover .book-cover-wrap img { transform: scale(1.04); }

.book-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}

.book-badge.new { background: var(--navy); }

.book-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--tan);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.book-cover-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.book-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-category {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.book-title {
  font-size: 14px;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--brown-dk);
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--cream-mid);
}

.book-price {
  font-size: 17px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--brown-dk);
}

.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FF9900;
  color: var(--white);
  padding: 7px 13px;
  border-radius: 50px;
  font-size: 12px;
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-amazon:hover { background: #E68900; transform: translateY(-1px); }

.btn-amazon svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }

/* ── About Band ── */
.about-band {
  background: var(--brown-dk);
  color: var(--cream);
  padding: 80px 24px;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .section-tag { color: var(--gold-lt); }

.about-text h2 {
  font-size: clamp(26px, 3vw, 38px);
  color: var(--cream);
  margin-bottom: 18px;
}

.about-text p {
  font-size: 15px;
  color: rgba(250,246,239,0.80);
  line-height: 1.85;
  margin-bottom: 14px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(200,154,69,0.25);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: rgba(250,246,239,0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Categories ── */
.categories-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--cream-mid);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cat-card:hover {
  background: var(--tan);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.cat-icon {
  font-size: 32px;
  margin-bottom: 10px;
  display: block;
}

.cat-name {
  font-size: 14px;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--brown-dk);
  font-weight: 700;
}

.cat-count {
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 6px;
}

/* ── Page Hero (category / all-books pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--cream-mid) 0%, var(--cream) 60%, #EDE0C8 100%);
  padding: 28px 24px 56px;
  text-align: center;
}

.page-hero .hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
  font-family: 'Lora', Georgia, serif;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--brown-dk);
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

.page-hero-count {
  margin-top: 14px !important;
  font-size: 13px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal) !important;
  font-weight: 700;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.breadcrumbs a { color: var(--teal); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .crumb-sep { margin: 0 6px; opacity: 0.5; }

/* ── Cross-category chips ── */
.chips-section {
  padding: 20px 24px 90px;
  max-width: 1200px;
  margin: 0 auto;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip-link {
  background: var(--cream-mid);
  border: 1.5px solid var(--tan);
  color: var(--brown-dk);
  font-size: 13px;
  font-family: 'Lora', Georgia, serif;
  padding: 8px 18px;
  border-radius: 50px;
  transition: background 0.2s, border-color 0.2s;
}

.chip-link:hover { background: var(--tan); border-color: var(--gold); }

/* ── Search / Filter bar (all-books page) ── */
.search-filter-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.search-filter-bar input,
.search-filter-bar select {
  padding: 12px 20px;
  border: 1.5px solid var(--tan);
  border-radius: 50px;
  background: var(--white);
  font-size: 14px;
  font-family: 'Lora', Georgia, serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.search-filter-bar input { flex: 1; min-width: 220px; }
.search-filter-bar input:focus,
.search-filter-bar select:focus { border-color: var(--gold); }

.results-count {
  font-size: 13px;
  color: var(--text-mid);
  white-space: nowrap;
}

.no-results {
  text-align: center;
  color: var(--text-mid);
  padding: 40px 0;
}

/* ── Active nav link ── */
nav a.active,
.mobile-nav a.active {
  color: var(--brown-dk);
  font-weight: 700;
}

/* ── Newsletter ── */
.newsletter {
  background: var(--cream-mid);
  border-top: 1px solid var(--tan);
  border-bottom: 1px solid var(--tan);
  padding: 70px 24px;
  text-align: center;
}

.newsletter h2 {
  font-size: clamp(22px, 3vw, 34px);
  color: var(--brown-dk);
  margin-bottom: 10px;
}

.newsletter p {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 20px;
  border: 1.5px solid var(--tan);
  border-radius: 50px;
  background: var(--white);
  font-size: 14px;
  font-family: 'Lora', Georgia, serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form input::placeholder { color: var(--text-mid); opacity: 0.6; }

/* ── Footer ── */
footer {
  background: #071F1F;
  color: var(--cream-mid);
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-main { color: var(--cream); font-size: 20px; }
.footer-brand .logo-sub { color: var(--gold-lt); }

.footer-brand p {
  font-size: 14px;
  color: rgba(250,246,239,0.65);
  line-height: 1.8;
  margin-top: 14px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: var(--cream-mid);
}

.social-link:hover { background: var(--gold); color: var(--white); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 16px;
  font-family: 'Lora', Georgia, serif;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(250,246,239,0.65);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-lt); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p { font-size: 13px; color: rgba(250,246,239,0.45); }

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid var(--tan);
  padding: 16px 24px 24px;
  gap: 4px;
}

.mobile-nav a {
  font-size: 15px;
  color: var(--text-mid);
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-mid);
  font-family: 'Lora', Georgia, serif;
}

.mobile-nav.open { display: flex; }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .book-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .btn-amazon {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero { padding: 60px 20px 60px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 320px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
}
