/* ============================================
   The Guiding Light Press – Main Stylesheet
   Warm, inspirational design
   ============================================ */

:root {
  /* Guiding Light palette */
  --navy: #1a2a4a;
  --deep-navy: #0f1c33;
  --gold: #c9a227;
  --soft-gold: #e8d48b;
  --warm-cream: #faf6f0;
  --soft-cream: #f5f0e6;
  --warm-white: #fffdf9;
  --muted-blue: #4a6fa5;
  --soft-blue: #6b8cce;
  --text-dark: #2c2c2c;
  --text-muted: #5a5a5a;
  --border-soft: #e8e0d5;
  --shadow: 0 4px 20px rgba(26, 42, 74, 0.08);
  --shadow-hover: 0 8px 30px rgba(26, 42, 74, 0.14);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--warm-cream);
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--muted-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-dark);
  max-width: 42rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--soft-cream);
}

.section-dark {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy) 100%);
  color: var(--warm-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--soft-gold);
}

.section-dark p {
  color: rgba(255, 253, 249, 0.88);
}

/* ---------- Header & Navigation ---------- */
.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26, 42, 74, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--gold);
  color: var(--deep-navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: #b8921f;
  border-color: #b8921f;
  color: var(--deep-navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--warm-white);
}

.btn-outline-light {
  background: transparent;
  color: var(--soft-gold);
  border-color: var(--soft-gold);
}

.btn-outline-light:hover {
  background: var(--soft-gold);
  color: var(--deep-navy);
}

.btn-amazon {
  background: #ff9900;
  color: #111;
  border-color: #ff9900;
}

.btn-amazon:hover {
  background: #e68a00;
  border-color: #e68a00;
  color: #111;
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--deep-navy) 0%, var(--navy) 55%, #2a4068 100%);
  color: var(--warm-white);
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 55%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-logo {
  display: block;
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 14px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  background: rgba(255, 253, 249, 0.08);
  border: 2px solid rgba(232, 212, 139, 0.35);
}

.hero-inner p {
  margin-left: auto;
  margin-right: auto;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero h1 {
  color: var(--warm-white);
  margin-bottom: 1.25rem;
}

.hero p {
  color: rgba(255, 253, 249, 0.9);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Philosophy / Cards ---------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.philosophy-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.philosophy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.philosophy-icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 162, 39, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.philosophy-card h3 {
  color: var(--navy);
}

/* ---------- Book Cards ---------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.book-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.book-cover-wrap {
  background: linear-gradient(145deg, #e8e0d5, #f5f0e6);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.book-cover {
  max-height: 320px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.book-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-title {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.book-author {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.book-desc {
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.book-actions {
  margin-top: auto;
}

/* Featured book (larger layout) */
.featured-book {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
}

.featured-book .book-cover-wrap {
  min-height: auto;
  padding: 1rem;
}

.featured-book .book-cover {
  max-height: 420px;
}

/* ---------- Author Cards ---------- */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.author-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
}

.author-photo-wrap {
  background: linear-gradient(160deg, var(--navy), var(--muted-blue));
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.author-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--soft-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.author-body {
  padding: 1.5rem 1.75rem 2rem;
}

.author-name {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.author-bio {
  font-size: 0.95rem;
}

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h3 {
  margin-bottom: 0.5rem;
}

.contact-info p {
  margin-bottom: 1.5rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2rem;
}

.contact-email:hover {
  color: var(--gold);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--warm-white);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-navy) 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: var(--warm-white);
}

.newsletter h2 {
  color: var(--soft-gold);
  margin-bottom: 0.5rem;
}

.newsletter p {
  color: rgba(255, 253, 249, 0.85);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

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

.newsletter-form input {
  flex: 1 1 220px;
  padding: 0.8rem 1.1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.newsletter-form button {
  flex: 0 0 auto;
}

/* ---------- Looking For ---------- */
.looking-list {
  list-style: none;
  margin-top: 1.5rem;
}

.looking-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}

.looking-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-navy);
  color: rgba(255, 253, 249, 0.75);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-text {
  color: var(--warm-white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 253, 249, 0.7);
  max-width: 280px;
}

.footer-col h4 {
  color: var(--soft-gold);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: rgba(255, 253, 249, 0.75);
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: var(--soft-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Page headers ---------- */
.page-header {
  background: linear-gradient(160deg, var(--deep-navy) 0%, var(--navy) 100%);
  color: var(--warm-white);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  color: var(--warm-white);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 253, 249, 0.85);
  max-width: 36rem;
  margin: 0 auto;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.placeholder-img {
  background: linear-gradient(145deg, #d4c9b8, #e8e0d5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .featured-book {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .main-nav.open {
    max-height: 320px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.75rem 1.5rem 1.25rem;
  }

  .main-nav a {
    padding: 0.7rem 1rem;
  }

  .hero {
    padding: 3.5rem 0 4rem;
  }

  .section {
    padding: 3rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}