/* ==========================================================================
   Russell Dickson — Official Author Hub (Faith & My Backyard)
   Warm Editorial Literary Design System
   ========================================================================== */

:root {
  --linen: #FBF8F2;
  --linen-deep: #F3ECDF;
  --paper: #FFFFFF;
  --forest: #1E4330;
  --forest-dark: #132C1F;
  --forest-soft: #EBF3EE;
  --navy: #17273C;
  --cranberry: #8C2B2B;
  --cranberry-dark: #6E1E1E;
  --gold: #C69647;
  --gold-light: #E8C988;
  --amber: #B85D2A;
  --ink: #26201B;
  --ink-soft: #594D43;
  --border: #E5D9C3;
  --shadow-sm: 0 4px 16px rgba(38, 32, 27, 0.06);
  --shadow-md: 0 14px 36px rgba(38, 32, 27, 0.10);
  --shadow-lg: 0 24px 60px rgba(23, 39, 60, 0.18);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--linen);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

/* ---------------- Sticky Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.48rem;
  font-weight: 800;
  color: var(--forest-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--forest-soft);
  color: var(--forest);
}

.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--cranberry);
  color: #FFFFFF;
  text-decoration: none;
  padding: 9px 17px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(140, 43, 43, 0.25);
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--cranberry-dark);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 1.2rem;
  color: var(--forest-dark);
  cursor: pointer;
}

@media (max-width: 860px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--linen);
    border-bottom: 1.5px solid var(--border);
    padding: 16px 24px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link, .nav-cta {
    text-align: center;
  }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-forest {
  background: var(--forest);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(30, 67, 48, 0.26);
}
.btn-forest:hover { background: var(--forest-dark); }

.btn-gold {
  background: linear-gradient(135deg, #E5C47E, #BE8E3E);
  color: #1A1308;
  box-shadow: 0 6px 18px rgba(198, 150, 71, 0.34);
}

.btn-cranberry {
  background: var(--cranberry);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(140, 43, 43, 0.26);
}
.btn-cranberry:hover { background: var(--cranberry-dark); }

.btn-outline {
  background: transparent;
  color: var(--forest-dark);
  border: 1.5px solid var(--forest);
}
.btn-outline:hover {
  background: var(--forest-soft);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.09);
  color: #FFF9EC;
  border: 1.5px solid rgba(232, 201, 136, 0.58);
}
.btn-outline-light:hover {
  background: rgba(232, 201, 136, 0.2);
}

.btn-sm {
  font-size: 0.83rem;
  padding: 9px 15px;
}

/* ---------------- Hero ("The Front Porch") ---------------- */
.hero {
  padding: 54px 0 64px;
  background: radial-gradient(circle at 82% 20%, rgba(198, 150, 71, 0.14), transparent 52%),
              linear-gradient(180deg, #FBF8F2 0%, #F4EDE0 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 44px;
  align-items: center;
}

@media (max-width: 940px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--forest);
  background: var(--forest-soft);
  border: 1px solid #C8DEC9;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.35rem, 4.4vw, 3.55rem);
  font-weight: 800;
  color: var(--forest-dark);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--amber);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-portrait-frame {
  background: var(--paper);
  padding: 14px;
  border-radius: 22px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-portrait-frame img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.hero-caption {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 12px 8px 4px;
}

/* ---------------- Section Scaffolding ---------------- */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--linen-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--forest-dark);
  line-height: 1.18;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 1.06rem;
  color: var(--ink-soft);
}

/* ---------------- Flagship Spotlight (The Luminous Covenant) ---------------- */
.spotlight-card {
  background: linear-gradient(135deg, var(--forest-dark) 0%, #1A3A2B 55%, var(--navy) 100%);
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: 46px 48px;
  color: #FAF6EE;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: center;
}

@media (max-width: 860px) {
  .spotlight-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
    gap: 28px;
  }
  .spotlight-cover-wrap {
    max-width: 270px;
    margin: 0 auto;
  }
  .spotlight-actions {
    justify-content: center;
  }
}

.spotlight-cover-wrap a {
  display: block;
  transition: transform 0.25s ease;
}

.spotlight-cover-wrap a:hover {
  transform: scale(1.03);
}

.spotlight-cover-wrap img {
  width: 100%;
  border-radius: 12px;
  border: 2.5px solid var(--gold-light);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.spotlight-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  background: rgba(232, 201, 136, 0.14);
  border: 1px solid rgba(232, 201, 136, 0.42);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.spotlight-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  color: #FFF9EC;
  line-height: 1.14;
  margin-bottom: 10px;
}

.spotlight-sub {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.spotlight-card p {
  font-size: 1.05rem;
  color: #E3EDE7;
  margin-bottom: 18px;
}

.spotlight-quote {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  font-style: italic;
  color: #F4DFB4;
  margin-bottom: 24px;
  text-align: left;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- Filter Tabs & Books Grid ---------------- */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.filter-btn.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #FFFFFF;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

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

.book-card {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.book-card.featured-holiday {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #FFFDF9 0%, #FAF2E1 100%);
}

.book-card.hidden {
  display: none;
}

.book-thumb {
  background: var(--linen-deep);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  height: 290px;
}

.book-thumb img {
  max-height: 250px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(38, 32, 27, 0.18);
  border: 1px solid rgba(198, 150, 71, 0.35);
}

.book-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-pill {
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: var(--forest-soft);
  color: var(--forest);
}

.book-pill.holiday {
  background: #FDECEC;
  color: var(--cranberry);
}

.book-pill.free {
  background: #FEF5E4;
  color: #9A6413;
}

.book-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.32rem;
  color: var(--forest-dark);
  line-height: 1.25;
  margin-bottom: 10px;
}

.book-body p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  flex-grow: 1;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* ---------------- 3D Journey Maps Showcase ---------------- */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

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

.map-card {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-img-btn {
  border: none;
  background: none;
  padding: 0;
  width: 100%;
  cursor: zoom-in;
  position: relative;
  display: block;
  overflow: hidden;
}

.map-img-btn img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.map-img-btn:hover img {
  transform: scale(1.03);
}

.zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(19, 44, 31, 0.85);
  color: #FFF8E7;
  padding: 5px 12px;
  border-radius: 999px;
}

.map-body {
  padding: 22px 24px 26px;
}

.map-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.38rem;
  color: var(--forest-dark);
  margin-bottom: 8px;
}

.map-body p {
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* ---------------- My Backyard World Banner ---------------- */
.ministry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
}

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

.ministry-photo {
  background: var(--paper);
  padding: 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
}

.ministry-photo img {
  width: 100%;
  border-radius: 12px;
}

.pillar-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 26px;
}

.pillar-item {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 15px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.pillar-item:hover {
  border-color: var(--forest);
  transform: translateX(4px);
}

.pillar-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 2px;
}

.pillar-item strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.08rem;
  color: var(--forest-dark);
  margin-bottom: 2px;
}

.pillar-item span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------------- About & Porch Tribute ---------------- */
.about-card {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 46px 48px;
  box-shadow: var(--shadow-sm);
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 640px) {
  .about-card { padding: 30px 22px; }
}

.about-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  color: var(--forest-dark);
  margin-bottom: 16px;
}

.about-card p {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 18px;
}

.scripture-bar {
  margin: 26px auto;
  padding: 18px 24px;
  max-width: 640px;
  background: var(--linen);
  border: 1.5px dashed var(--gold);
  border-radius: 14px;
  font-style: italic;
  color: var(--forest-dark);
}

.connect-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--forest-dark);
  color: rgba(251, 248, 242, 0.78);
  padding: 44px 24px 36px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-note {
  font-size: 0.8rem;
  color: rgba(251, 248, 242, 0.56);
  margin-top: 10px;
}

/* ---------------- Lightbox Modal for Journey Maps ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 20, 16, 0.88);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 1000px;
  width: 100%;
  text-align: center;
  position: relative;
}

.lightbox-inner img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
  border: 2px solid var(--gold);
}

.lightbox-caption {
  color: #FFF8E7;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  margin-top: 12px;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--forest-dark);
  color: #FFF8E7;
  font-size: 1.4rem;
  cursor: pointer;
}
