/* Adventure Press - Basic Styles */

:root {
  --bg: #0f172a;
  --bg-alt: #111827;
  --bg-soft: #f9fafb;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --accent-dark: #b45309;
  --text-main: #0f172a;
  --text-soft: #4b5563;
  --white: #ffffff;
  --border-soft: #e5e7eb;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.16);
  --max-width: 1120px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #f3f4f6;
  line-height: 1.6;
}

/* Layout */

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

.narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* Header & Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 10% 0%, #f97316, #facc15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.logo-tagline {
  font-size: 0.75rem;
  color: #cbd5f5;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  color: #f9fafb;
}

.nav-link.active {
  border-color: var(--accent);
  color: #fefce8;
}

.cta-link {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.16);
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.15), transparent);
}

.cta-link.active {
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background-color: #f9fafb;
  border-radius: 999px;
}

/* Hero */

.hero {
  background: radial-gradient(circle at top left, #1f2937, #020617);
  color: var(--white);
  padding: 3rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: #e5e7eb;
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(2rem, 3.1vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 0.9rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #e5e7eb;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 1.2rem;
}

.hero-scripture {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.hero-scripture-ref {
  font-weight: 500;
  color: #facc15;
}

.hero-card {
  background: radial-gradient(circle at top, rgba(248, 250, 252, 0.06), rgba(15, 23, 42, 0.95));
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.hero-card p {
  font-size: 0.92rem;
  color: #e5e7eb;
}

.hero-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.hero-list li {
  margin-bottom: 0.35rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.08s ease;
}

.btn.primary {
  background: linear-gradient(to right, #f97316, #facc15);
  color: #111827;
  border-color: rgba(252, 211, 77, 0.9);
}

.btn.primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(to right, #ea580c, #f59e0b);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.1);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.5);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.3);
}

.btn.small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn.full-width {
  width: 100%;
}

/* Sections */

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin-bottom: 0.4rem;
}

.section-header p {
  margin: 0 auto;
  max-width: 640px;
  color: var(--text-soft);
}

.pillars {
  background-color: var(--bg-soft);
  padding: 3rem 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 1.3rem 1.1rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.pillar-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Featured Books */

.featured {
  padding: 3rem 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.7rem;
}

.book-card {
  background-color: var(--white);
  border-radius: 1.2rem;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.book-cover {
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  font-weight: 600;
  font-size: 0.9rem;
  display: block;              /* simpler, lets width control things */
  max-width: 150px;            /* hard cap the thumbnail width */
  width: 100%;
  padding: 0.5rem;
  overflow: hidden;
}

/* Make sure the image always fits inside the cover area */
.book-cover img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;                /* maintain aspect ratio */
  object-fit: contain;
  border-radius: inherit;
}


.book-cover {
  display: flex;
  width: 100%;
  /* other styles unchanged */
}

.book-content h3,
.book-content h2 {
  margin-top: 0;
  margin-bottom: 0.2rem;
}

.book-tagline {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.text-link {
  font-size: 0.9rem;
  color: #c05621;
  text-decoration: none;
}

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

.featured-cta {
  margin-top: 2rem;
  text-align: center;
}

/* Invitation */

.invitation {
  background: linear-gradient(to right, #fef3c7, #fffbeb);
  padding: 3rem 0;
}

.invitation-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.invitation-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(248, 250, 252, 0.9);
}

.invitation-card.small {
  margin-top: 0.7rem;
}

/* Page hero */

.page-hero {
  padding: 2.7rem 0 2.4rem;
  background: radial-gradient(circle at top left, #fee2e2, #eff6ff);
}

.page-hero h1 {
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: clamp(1.9rem, 2.3vw, 2.35rem);
}

/* Content sections */

.content-section {
  padding: 2.6rem 0;
  background-color: #f9fafb;
}

.content-section.alt {
  background-color: #fefce8;
  padding-top: 2.4rem;
  padding-bottom: 2.7rem;
}

.content-section-alt {
  margin-top: 2rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--text-soft);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.85rem;
  color: var(--accent-dark);
}

.note {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Books page */

.books-grid-full {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.7rem;
}

.book-points {
  list-style: none;
  padding-left: 0;
  margin-top: 0.7rem;
  margin-bottom: 0.9rem;
}

.book-points li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.book-points li::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  top: 0;
}

/* Contact form */

.contact-form {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-soft);
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
}

/* Footer */

.site-footer {
  background-color: #020617;
  color: #e5e7eb;
  padding-top: 2.3rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links a {
  color: #e5e7eb;
  font-size: 0.9rem;
  text-decoration: none;
}

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

.footer-scripture {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.footer-scripture-ref {
  font-weight: 500;
  color: #fde68a;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin-top: 2rem;
  padding: 0.7rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-small {
  opacity: 0.8;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .invitation-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    position: absolute;
    inset: 64px 0 auto 0;
    background-color: #020617;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
    .book-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .book-cover {
    max-width: 180px;
    margin: 0 auto 1rem;   /* center cover above text */
  }

  
  .pillars-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 2.3rem;
  }
}

/* Utility */

.placeholder-cover {
  background-image: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.2),
      rgba(15, 23, 42, 0.05)
    );
  border: 1px dashed rgba(15, 23, 42, 0.3);
}
