/*
Theme Name: ClueRaven Press
Theme URI: https://clueraven.com
Author: ClueRaven Press
Author URI: https://clueraven.com
Description: A lightweight, custom theme for ClueRaven Press — children's activity and coloring book publisher. No page builders needed. Clean, fast, portable.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clueraven
*/

/* ========================================
   CSS VARIABLES & RESET
   ======================================== */
:root {
  /* Brand Colors */
  --cr-gold: #C5993E;
  --cr-gold-light: #D4AD5C;
  --cr-gold-dark: #A67D2E;
  --cr-blue: #5B6EA8;
  --cr-blue-light: #7B8EC8;
  --cr-blue-dark: #3D4E7A;
  --cr-cream: #FFF9EF;
  --cr-sand: #F5EDDC;
  --cr-dark: #2C2C2C;
  --cr-text: #3A3A3A;
  --cr-text-light: #6B6B6B;
  --cr-white: #FFFFFF;

  /* Typography */
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Spacing */
  --section-pad: 80px;
  --container-width: 1140px;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-card: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.18);

  /* Radius */
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--cr-text);
  background: var(--cr-cream);
  overflow-x: hidden;
}

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

a {
  color: var(--cr-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cr-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title h2 span {
  color: var(--cr-gold);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--cr-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

section {
  padding: var(--section-pad) 0;
}

/* ========================================
   HEADER & NAV
   ======================================== */
.site-header {
  background: var(--cr-white);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: auto;
  width: auto;
  max-height: 55px;
  max-width: 220px;
  object-fit: contain;
}

/* WordPress custom logo override */
.site-logo .custom-logo-link,
.site-logo .custom-logo-link img {
  height: auto;
  width: auto;
  max-height: 55px;
  max-width: 220px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .site-logo img,
  .site-logo .custom-logo-link img {
    max-height: 42px;
    max-width: 170px;
  }
}

.site-logo span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cr-blue-dark);
  margin-left: 10px;
  font-weight: 600;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--cr-text);
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--cr-gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--cr-blue);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--cr-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--cr-sand) 0%, var(--cr-cream) 50%, #E8DCC8 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197,153,62,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

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

.hero-text h1 {
  margin-bottom: 20px;
}

.hero-text h1 .gold {
  color: var(--cr-gold);
}

.hero-text h1 .blue {
  color: var(--cr-blue);
}

.hero-text .tagline {
  font-size: 1.2rem;
  color: var(--cr-text-light);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  gap: 16px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.badge {
  background: var(--cr-white);
  border: 2px solid var(--cr-gold-light);
  border-radius: 50px;
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cr-gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge .emoji {
  font-size: 1.1rem;
}

.hero-books {
  display: flex;
  gap: 20px;
  justify-content: center;
  perspective: 1000px;
}

.hero-book {
  transition: transform 0.4s ease;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.hero-book:hover {
  transform: translateY(-10px) rotateY(-5deg);
}

.hero-book img {
  width: 180px;
  border-radius: 8px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--cr-gold);
  color: var(--cr-white);
  box-shadow: 0 4px 15px rgba(197,153,62,0.3);
}

.btn-primary:hover {
  background: var(--cr-gold-dark);
  color: var(--cr-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197,153,62,0.4);
}

.btn-secondary {
  background: var(--cr-blue);
  color: var(--cr-white);
  box-shadow: 0 4px 15px rgba(91,110,168,0.3);
}

.btn-secondary:hover {
  background: var(--cr-blue-dark);
  color: var(--cr-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cr-blue);
  border: 2px solid var(--cr-blue);
}

.btn-outline:hover {
  background: var(--cr-blue);
  color: var(--cr-white);
  transform: translateY(-2px);
}

.btn-amazon {
  background: #FF9900;
  color: var(--cr-white);
  box-shadow: 0 4px 15px rgba(255,153,0,0.3);
}

.btn-amazon:hover {
  background: #E8890A;
  color: var(--cr-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,153,0,0.4);
}

/* ========================================
   BOOK CARDS
   ======================================== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
}

.book-card {
  background: var(--cr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

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

.book-card-image {
  position: relative;
  padding: 30px 30px 0;
  background: linear-gradient(135deg, var(--cr-sand), var(--cr-cream));
  text-align: center;
}

.book-card-image img {
  width: 200px;
  margin: 0 auto;
  border-radius: 6px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
  transition: transform 0.4s ease;
}

.book-card:hover .book-card-image img {
  transform: scale(1.05);
}

.book-number {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--cr-gold);
  color: var(--cr-white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
}

.book-card-content {
  padding: 25px 30px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card-content h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.book-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--cr-text-light);
}

.book-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.book-card-content p {
  margin-bottom: 20px;
  color: var(--cr-text-light);
  font-size: 0.95rem;
  flex: 1;
}

.book-card-content .btn {
  align-self: flex-start;
}

/* ========================================
   FEATURES / HOW IT WORKS
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 40px 25px;
  background: var(--cr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--cr-sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--cr-text-light);
  font-size: 0.92rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  background: var(--cr-white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 350px;
  margin: 0 auto;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text h2 span {
  color: var(--cr-gold);
}

.about-text p {
  margin-bottom: 15px;
  color: var(--cr-text-light);
}

.about-text p:last-of-type {
  margin-bottom: 30px;
}

/* ========================================
   TESTIMONIAL / REVIEWS BANNER
   ======================================== */
.reviews-banner {
  background: linear-gradient(135deg, var(--cr-blue-dark), var(--cr-blue));
  color: var(--cr-white);
  text-align: center;
  padding: 60px 0;
}

.reviews-banner h2 {
  color: var(--cr-white);
  margin-bottom: 10px;
}

.reviews-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 25px;
}

.stars {
  font-size: 1.8rem;
  color: var(--cr-gold);
  letter-spacing: 4px;
  margin-bottom: 15px;
}

/* ========================================
   COMING SOON / NEWSLETTER
   ======================================== */
.coming-soon {
  background: var(--cr-sand);
  text-align: center;
}

.coming-soon .teaser-box {
  background: var(--cr-white);
  border-radius: var(--radius-lg);
  padding: 50px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.coming-soon h3 {
  color: var(--cr-blue);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.coming-soon p {
  color: var(--cr-text-light);
  margin-bottom: 25px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--cr-dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 15px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-brand img {
  height: auto;
  max-height: 50px;
  max-width: 200px;
  filter: brightness(10);
  opacity: 0.9;
}

.site-footer h4 {
  color: var(--cr-white);
  font-family: var(--font-display);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--cr-gold);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--cr-gold-light);
}

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

.footer-bottom .logo-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-bottom .logo-footer img {
  height: auto;
  max-height: 32px;
  max-width: 160px;
  filter: brightness(10);
  opacity: 0.7;
}

/* ========================================
   PAGE TEMPLATE - INDIVIDUAL BOOK
   ======================================== */
.book-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--cr-sand), var(--cr-cream));
}

.book-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.book-hero-cover img {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 8px;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.2));
}

.book-hero-info h1 {
  margin-bottom: 10px;
}

.book-hero-info .series-label {
  font-family: var(--font-display);
  color: var(--cr-gold);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.book-details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.book-detail {
  background: var(--cr-white);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cr-text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.book-hero-info .description {
  color: var(--cr-text-light);
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.book-hero-info .btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Book features list */
.book-features {
  padding: 60px 0;
}

.book-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.book-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: var(--cr-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.book-feature-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.book-feature-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.book-feature-item p {
  font-size: 0.88rem;
  color: var(--cr-text-light);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.page-header {
  background: linear-gradient(135deg, var(--cr-sand), var(--cr-cream));
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--cr-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 60px 0;
}

.page-content .content-block {
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-content .content-block h2 {
  margin-bottom: 15px;
}

.page-content .content-block p {
  margin-bottom: 15px;
  color: var(--cr-text-light);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-text .btn {
    margin: 0 auto;
  }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-hero-info .btn-group {
    justify-content: center;
  }

  .book-details {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 50px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cr-white);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .main-nav a {
    font-size: 1.1rem;
  }

  .hero-books {
    flex-wrap: wrap;
    gap: 15px;
  }

  .hero-book img {
    width: 130px;
  }

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

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

  .coming-soon .teaser-box {
    padding: 30px 20px;
  }
}

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

  .hero-book img {
    width: 110px;
  }
}
