/* ========================================================
   Zeno's Coding Adventures - Landing Page Stylesheet
   Palette inspired by the book covers: Garden green,
   warm honey accents, clean high-contrast readability
   ======================================================== */

:root {
  --primary-green: #1b6348;
  --primary-green-dark: #124532;
  --accent-honey: #f6a623;
  --accent-honey-hover: #e09418;
  --accent-teal: #197278;
  --bg-cream: #faf9f5;
  --bg-card: #ffffff;
  --text-dark: #1d252c;
  --text-muted: #536471;
  --border-light: #e4e7ea;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography Headings */
h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.25;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Banner */
.top-banner {
  background-color: #283618;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
}
.top-banner span {
  color: #dda15e;
  font-weight: 700;
}

/* Site Header */
.site-header {
  background: rgba(250, 249, 245, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-green);
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-honey);
  box-shadow: var(--shadow-sm);
}
.logo-text span {
  color: var(--accent-honey);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--primary-green);
}
.btn-nav {
  background: var(--primary-green);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 99px;
  transition: background-color 0.2s ease !important;
}
.btn-nav:hover {
  background: var(--primary-green-dark) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 99px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}
.btn-primary {
  background: var(--primary-green);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(27, 99, 72, 0.3);
}
.btn-primary:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 99, 72, 0.4);
}
.btn-secondary {
  background: #ffffff;
  color: var(--text-dark);
  border: 2px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}
.btn-card-amazon {
  background: #232f3e;
  color: #ff9900;
  font-size: 0.95rem;
  padding: 12px 20px;
  width: 100%;
}
.btn-card-amazon:hover {
  background: #131921;
}
.btn-large {
  font-size: 1.15rem;
  padding: 16px 36px;
}
.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}
.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary-green);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.badge-hero {
  display: inline-block;
  background: #e8f5e9;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 20px;
  border: 1px solid #c8e6c9;
}
.hero-title {
  font-size: 3.2rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-title span {
  color: var(--primary-green);
  position: relative;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hl-icon {
  font-size: 1.5rem;
  background: #ffffff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.highlight-item strong {
  display: block;
  font-size: 0.95rem;
}
.highlight-item small {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.hero-cta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero 3D Book Showcase */
.hero-media {
  text-align: center;
}
.book-showcase-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 440px;
}
.book-front {
  position: relative;
  z-index: 3;
  width: 250px;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.22);
  transition: transform 0.3s ease;
}
.book-front:hover {
  transform: scale(1.03) translateY(-4px);
}
.book-back {
  position: absolute;
  width: 210px;
  border-radius: 8px;
  opacity: 0.88;
  filter: brightness(0.95);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}
.book-left {
  left: 20px;
  transform: rotate(-10deg) translateY(20px);
  z-index: 1;
}
.book-right {
  right: 20px;
  transform: rotate(10deg) translateY(20px);
  z-index: 2;
}
.author-tag {
  margin-top: 18px;
  display: inline-block;
  background: #fff;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.88rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

/* Lead Magnet Card */
.lead-magnet-section {
  padding: 40px 0 70px;
}
.lead-card {
  background: linear-gradient(135deg, #1b6348 0%, #124532 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.lead-card-content h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin: 14px 0 16px;
}
.lead-card-content p {
  color: #e2f1eb;
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.tag-accent {
  background: var(--accent-honey);
  color: #124532;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}
.lead-features {
  list-style: none;
  margin-bottom: 30px;
}
.lead-features li {
  margin-bottom: 8px;
  color: #f1f8f5;
  font-size: 0.95rem;
}
.download-action-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-download-direct {
  background: var(--accent-honey);
  color: #1b4332;
  font-size: 1.1rem;
  width: 100%;
}
.btn-download-direct:hover {
  background: var(--accent-honey-hover);
  transform: translateY(-2px);
  color: #000;
}
.subtext {
  display: block;
  font-size: 0.8rem;
  color: #cce7dc;
  margin-top: 10px;
  text-align: center;
}
.preview-badge {
  background: var(--accent-honey);
  color: #1b4332;
  font-weight: 800;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}
.preview-mockup img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Sections General */
.section-header {
  margin-bottom: 54px;
}
.text-center {
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-green);
  margin-bottom: 10px;
}
.section-title {
  font-size: 2.4rem;
  margin-bottom: 14px;
}
.section-desc {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Books Grid */
.books-section {
  padding: 80px 0;
  background: #ffffff;
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.book-card {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.book-card-badge {
  position: absolute;
  top: 18px;
  left: 20px;
  background: var(--primary-green);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 99px;
}
.book-cover-wrap {
  text-align: center;
  margin: 20px 0 24px;
}
.book-cover-wrap img {
  width: 180px;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}
.book-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.book-info h3 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}
.book-theme {
  display: inline-block;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.book-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.unique-features {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 24px;
  border: 1px dashed #ced4da;
  font-size: 0.84rem;
}
.unique-features strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.unique-features ul {
  padding-left: 18px;
  color: var(--text-muted);
}
.unique-features li {
  margin-bottom: 3px;
}
.book-info .btn-card-amazon {
  margin-top: auto;
}

/* Skills Section */
.skills-section {
  padding: 80px 0;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.skill-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.skill-emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 14px;
}
.skill-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary-green);
}
.skill-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Author Section */
.author-section {
  padding: 80px 0;
  background: #ffffff;
}
.author-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
}
.author-avatar img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: #edf7f3;
  padding: 16px;
}
.author-bio h2 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}
.lead-bio {
  font-size: 1.1rem;
  color: var(--primary-green-dark);
  font-style: italic;
  font-weight: 500;
  margin-bottom: 16px;
  border-left: 3px solid var(--accent-honey);
  padding-left: 16px;
}
.author-bio p {
  color: var(--text-muted);
  margin-bottom: 18px;
}
.teacher-perks {
  background: #eef8f3;
  border: 1px solid #c2e5d5;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  color: #124532;
  font-size: 0.92rem;
}

/* Final CTA Section */
.final-cta-section {
  padding: 70px 0;
  background: linear-gradient(135deg, #1b6348, #0e3728);
  color: #ffffff;
}
.final-cta-section h2 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.final-cta-section p {
  color: #d1ebd8;
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: #141a1f;
  color: #8c9ba5;
  padding: 32px 0;
  font-size: 0.9rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: #adb9c2;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid,
  .lead-card,
  .author-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .books-grid,
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .books-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none; /* Mobile simple */
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .lead-card {
    padding: 32px 20px;
  }
  .book-showcase-stack {
    height: 360px;
  }
  .book-front {
    width: 200px;
  }
  .book-back {
    width: 170px;
  }
}
