/* ============================================================
   Best Christian Books — editorial / illuminated-manuscript luxury
   Deep teal + antique gold, Playfair Display + EB Garamond
   ============================================================ */

:root {
  --teal-950: #061a1c;
  --teal-900: #0a2628;
  --teal-800: #0d3336;
  --teal-700: #124347;
  --teal-600: #1a5459;
  --gold-400: #e6c775;
  --gold-500: #d4af37;
  --gold-600: #b3902a;
  --amber-500: #c2792f;
  --amber-600: #a05f22;
  --cream-050: #faf6ec;
  --cream-100: #f3ead9;
  --cream-200: #e7dcc4;
  --ink-muted: rgba(243, 234, 217, 0.72);
  --ink-faint: rgba(243, 234, 217, 0.48);

  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;

  --shadow-soft: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 12px 30px -14px rgba(0, 0, 0, 0.5);
  --radius-lg: 18px;
  --radius-md: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--teal-950);
  color: var(--cream-100);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* subtle grain overlay for texture / depth */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cream-050);
  margin: 0;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 26, 28, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.6);
  border-bottom-color: rgba(212, 175, 55, 0.28);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.55), 0 4px 14px -4px rgba(0,0,0,0.6);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream-050);
  white-space: nowrap;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--gold-400); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-500);
  transition: right 0.25s ease;
}
.main-nav a:hover::after { right: 0; }

.lang-toggle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--cream-050);
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.lang-toggle:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-500);
}
.lang-toggle:active { transform: scale(0.96); }
.lang-sep { opacity: 0.4; margin: 0 3px; }
html[data-lang="en"] .lang-en-flag { color: var(--gold-400); font-weight: 700; }
html[data-lang="pt"] .lang-pt-flag { color: var(--gold-400); font-weight: 700; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 84px;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/brand/banner.jpg');
  background-size: cover;
  background-position: center 65%;
  transform: scale(1.18);
  filter: saturate(1.05) brightness(0.5) blur(9px);
  z-index: -2;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(6,26,28,0.35) 0%, rgba(6,26,28,0.86) 62%, var(--teal-950) 100%);
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 780px;
}
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 18px;
  opacity: 0;
  animation: rise 0.7s ease 0.05s forwards;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 22px;
  opacity: 0;
  animation: rise 0.8s ease 0.18s forwards;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 auto 38px;
  opacity: 0;
  animation: rise 0.8s ease 0.32s forwards;
}
.hero-ctas {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.8s ease 0.46s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-gold {
  background: linear-gradient(155deg, var(--gold-400), var(--gold-600));
  color: var(--teal-950);
  box-shadow: 0 10px 26px -10px rgba(212, 175, 55, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(212, 175, 55, 0.7); }
.btn-outline {
  background: transparent;
  border-color: rgba(243, 234, 217, 0.4);
  color: var(--cream-100);
}
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400); transform: translateY(-2px); }

/* ornamental divider between sections */
.ornament-divider {
  position: relative;
  height: 40px;
  margin-top: -1px;
}
.ornament-divider::before {
  content: "❧";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: var(--gold-500);
  background: var(--teal-950);
  padding: 0 18px;
}
.ornament-divider::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 11px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), transparent);
}
.ornament-divider-alt::before { content: "✦"; }

/* ---------------- Collections ---------------- */
.collection { padding-block: 76px; }
.collection-seeds { background: linear-gradient(180deg, var(--teal-950), var(--teal-900)); }
.collection-witnesses { background: linear-gradient(180deg, var(--teal-900), var(--teal-950)); }

.collection-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
  opacity: 0;
  transform: translateY(14px);
  animation: fade-rise 0.7s ease forwards;
}

@keyframes fade-rise {
  to { opacity: 1; transform: translateY(0); }
}

.collection-eyebrow {
  display: inline-block;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--amber-500);
  margin-bottom: 10px;
}
.collection-witnesses .collection-eyebrow { color: var(--gold-400); }

.collection-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 16px;
}
.collection-lede {
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 30px;
}

.book-card {
  background: linear-gradient(165deg, var(--teal-800), var(--teal-900));
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px);
  animation: fade-rise 0.6s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--card-delay, 0ms);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.book-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 22px 44px -18px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,175,55,0.2);
}

.book-cover-wrap {
  position: relative;
  aspect-ratio: 5 / 8;
  overflow: hidden;
  background: var(--teal-700);
}
.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.book-card:hover .book-cover { transform: scale(1.06) rotate(-0.4deg); }

.book-info {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.book-title {
  font-size: 1.12rem;
  line-height: 1.32;
}
.book-blurb {
  color: var(--ink-muted);
  font-size: 0.96rem;
  line-height: 1.55;
  flex: 1;
  margin: 0;
}
.book-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
}
.btn-amazon {
  background: linear-gradient(155deg, var(--gold-400), var(--gold-600));
  color: var(--teal-950);
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px -10px rgba(212,175,55,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-amazon:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(212,175,55,0.65); }
.alt-store-link {
  font-size: 0.82rem;
  color: var(--ink-faint);
  border-bottom: 1px dotted rgba(243,234,217,0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.alt-store-link:hover { color: var(--gold-400); border-color: var(--gold-400); }

.sub-series { margin-top: 8px; }
.sub-series + .sub-series { margin-top: 64px; }

.sub-series-head {
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}
.sub-series-head h3 {
  font-size: 1.5rem;
  color: var(--gold-400);
  margin-bottom: 8px;
}
.sub-series-head p {
  color: var(--ink-muted);
  margin: 0;
  max-width: 640px;
  font-size: 0.98rem;
}

.coming-soon-block {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px dashed rgba(212, 175, 55, 0.22);
  text-align: center;
}
.coming-soon-title {
  font-style: italic;
  color: var(--ink-faint);
  margin: 0 0 16px;
  font-size: 1rem;
}
.coming-soon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}
.coming-soon-list li {
  font-size: 0.88rem;
  color: var(--ink-faint);
  border: 1px solid rgba(243, 234, 217, 0.18);
  border-radius: 999px;
  padding: 6px 16px;
}

/* ---------------- About ---------------- */
.about {
  padding-block: 80px;
  background: var(--teal-950);
  border-top: 1px solid rgba(212,175,55,0.12);
}
.about-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 780px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(14px);
  animation: fade-rise 0.7s ease forwards;
}
.about-emblem {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.4), 0 14px 30px -14px rgba(0,0,0,0.6);
}
.about h2 { font-size: 1.7rem; margin-bottom: 14px; }
.about p { color: var(--ink-muted); margin: 0; }

/* ---------------- Footer ---------------- */
.site-footer {
  padding-block: 32px;
  background: var(--teal-950);
  border-top: 1px solid rgba(212,175,55,0.12);
  text-align: center;
}
.footer-inner p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--ink-faint);
}
.footer-note { font-size: 0.82rem; max-width: 560px; margin-inline: auto; }

/* ---------------- Responsive ---------------- */
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .main-nav { display: none; }
  .header-inner { gap: 14px; }
  .hero { padding-top: 64px; padding-bottom: 56px; }
  .collection { padding-block: 56px; }
  .about-inner { flex-direction: column; text-align: center; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
