/* ═══════════════════════════════════════════════
   PuzzleMe Books — Main Stylesheet
   ═══════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --navy:        #1b3d6f;
  --navy-dark:   #122b50;
  --navy-light:  #2a5298;
  --amber:       #c97d0a;
  --amber-hover: #e8920f;
  --amber-pale:  #fef7ee;
  --cream:       #faf8f3;
  --cream-dark:  #f2ede4;
  --bg-white:    #ffffff;
  --text:        #2c2c2c;
  --text-muted:  #5e5e5e;
  --radius:      16px;
  --shadow:      0 4px 20px rgba(0, 0, 0, 0.09);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 19px;
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
}

img { display: block; max-width: 100%; }
a   { color: var(--navy); }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, #2e6da4 70%, #3a7fc8 100%);
  color: #ffffff;
  padding: 60px 40px 72px;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative circles */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: #ffffff;
  pointer-events: none;
}
.hero::before { width: 500px; height: 500px; top: -140px; right: -100px; }
.hero::after  { width: 340px; height: 340px; bottom: -120px; left: -60px; }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.hero-logo {
  height: 200px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.30));
}

.hero-text {
  text-align: left;
}

.hero h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2.6rem;
  line-height: 1.3;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.15rem;
  opacity: 0.90;
  max-width: 520px;
  margin-bottom: 40px;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: #ffffff;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 20px 50px;
  border-radius: 60px;
  text-decoration: none;
  letter-spacing: 0.2px;
  position: relative;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.20);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--amber-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  outline: none;
}

/* ─── Brand strip (short warm intro) ─── */
.brand-strip {
  background: var(--amber-pale);
  border-top: 1px solid #f0dcc0;
  border-bottom: 1px solid #f0dcc0;
  text-align: center;
  padding: 44px 24px;
}

.brand-strip p {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.2rem;
  color: var(--navy);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
  font-style: italic;
}

/* ─── Shared section styles ─── */
.section-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.95rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 14px;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 52px;
}

/* ─── What makes us special ─── */
.features {
  background: var(--bg-white);
  padding: 72px 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  max-width: 1040px;
  margin: 0 auto;
}

.feature-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px 26px 30px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--amber);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Book Preview ─── */
.preview {
  background: var(--cream-dark);
  padding: 72px 24px;
}

.book-showcase {
  display: flex;
  align-items: center;
  gap: 58px;
  max-width: 860px;
  margin: 0 auto;
}

.book-cover {
  width: 268px;
  flex-shrink: 0;
  border-radius: var(--radius);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.20);
}

.book-info h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.55rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.book-tagline {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.book-description {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 26px;
  line-height: 1.7;
}

.book-info ul {
  list-style: none;
  margin-bottom: 36px;
}

.book-info ul li {
  padding: 8px 0 8px 30px;
  position: relative;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.book-info ul li:last-child { border-bottom: none; }

.book-info ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

/* ─── Signup ─── */
.signup {
  background: var(--navy);
  color: #ffffff;
  text-align: center;
  padding: 76px 24px 84px;
}

.signup .section-title { color: #ffffff; }

.signup .section-intro { color: rgba(255, 255, 255, 0.82); }

.mailerlite-form-area {
  background: rgba(255, 255, 255, 0.07);
  border: 2px dashed rgba(255, 255, 255, 0.30);
  border-radius: var(--radius);
  padding: 52px 36px;
  max-width: 520px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  font-style: italic;
}

.privacy-note {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
}

/* ─── Footer ─── */
footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.60);
  text-align: center;
  padding: 44px 24px;
  font-size: 0.92rem;
  line-height: 1.9;
}

.footer-logo {
  height: 52px;
  width: auto;
  margin: 0 auto 18px;
  opacity: 0.85;
}

/* ─── Responsive ─── */
@media (max-width: 740px) {
  body { font-size: 18px; }

  .hero { padding: 44px 24px 56px; }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-logo { height: 110px; }

  .hero-text { text-align: center; }

  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1.05rem; margin-left: auto; margin-right: auto; }
  .section-title { font-size: 1.65rem; }

  .book-showcase {
    flex-direction: column;
    text-align: center;
  }

  .book-cover { width: 200px; }

  .book-info ul {
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-primary {
    padding: 18px 36px;
    font-size: 1.05rem;
  }
}

