/* ==========================================================================
   Bryson's Book Club — Stylesheet
   ========================================================================== */

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

:root {
  --yellow: #FFD23F;
  --orange: #FF6B35;
  --teal: #1D9E75;
  --teal-dark: #0F6E56;
  --navy: #1a2e4a;
  --cream: #fff9f0;
  --light-teal: #E1F5EE;
  --light-orange: #fff0ea;
  --text-body: #444;
  --text-muted: #555;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: #1a1a1a;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: inherit; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.nav-logo-mark {
  width: 48px;
  height: 48px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 4px;
}

.nav-logo-mark img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.3px;
}

.nav-logo-name .orange {
  color: var(--orange);
}

.nav-logo-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 5px;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover { opacity: 1; color: var(--yellow); }

.nav-cta {
  background: var(--yellow);
  color: var(--navy) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-weight: 600 !important;
  opacity: 1 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--navy);
  padding: 5rem 3rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.12;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero h1 span { color: var(--yellow); }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: border-color 0.2s;
  display: inline-block;
}

.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.7); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid rgba(26, 46, 74, 0.3);
  cursor: pointer;
  transition: border-color 0.2s;
  display: inline-block;
}

.btn-outline-dark:hover { border-color: var(--navy); }

.btn-white {
  background: #fff;
  color: var(--orange);
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
  display: inline-block;
  text-decoration: none;
}

.btn-white:hover { transform: translateY(-2px); }

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  text-decoration: none;
}

.btn-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 210, 63, 0.4);
}

/* ==========================================================================
   HERO VISUAL — book stack
   ========================================================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.book-stack {
  position: relative;
  width: 220px;
  height: 280px;
}

.book {
  position: absolute;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.4);
}

.book-1 { width: 130px; height: 180px; background: var(--orange); bottom: 0; left: 30px; transform: rotate(-8deg); }
.book-2 { width: 140px; height: 195px; background: var(--teal); bottom: 10px; left: 50px; transform: rotate(3deg); }
.book-3 { width: 125px; height: 170px; background: var(--yellow); bottom: 5px; left: 70px; transform: rotate(-2deg); }

.book-spine {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 70%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px 0 0 4px;
}

.stat-bubble {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-bubble.top { top: 0; right: 0; }
.stat-bubble.bottom { bottom: 20px; left: 0; }

.stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  color: var(--orange);
  display: block;
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-bar {
  background: var(--yellow);
  padding: 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  display: block;
}

.stat-item .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */
section { padding: 4rem 3rem; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-tag.yellow { color: var(--yellow); }
.section-tag.light-tag { color: rgba(255, 255, 255, 0.7); }

h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
}

.section-sub.centered { margin: 0 auto; }
.section-sub.light { color: rgba(255, 255, 255, 0.85); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2.5rem;
}

.about-img {
  background: var(--light-teal);
  border-radius: 20px;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-img-inner { font-size: 5rem; text-align: center; }

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.about-text p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.quote-block {
  border-left: 4px solid var(--orange);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  color: var(--navy);
  font-style: italic;
  line-height: 1.5;
}

/* ==========================================================================
   VIDEO SECTION
   ========================================================================== */
.video-section {
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  text-align: center;
}

.video-section .section-tag { color: var(--teal); }

.video-wrapper {
  max-width: 720px;
  margin: 2.5rem auto 1.5rem;
  position: relative;
}

.video-frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  background: var(--navy);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 46, 74, 0.25);
  border: 6px solid #fff;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF6B35 0%, #FFD23F 50%, #1D9E75 100%);
  cursor: pointer;
  transition: opacity 0.2s;
}

.video-placeholder:hover { opacity: 0.92; }

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 46, 74, 0.35);
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: transform 0.2s;
}

.video-placeholder:hover .play-btn { transform: scale(1.08); }

.play-icon {
  width: 0;
  height: 0;
  border-left: 22px solid var(--orange);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}

.video-caption {
  z-index: 1;
  color: #fff;
  margin-top: 1rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-sub {
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-context {
  max-width: 600px;
  margin: 1.5rem auto 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}

/* ==========================================================================
   LITERACY MATTERS
   ========================================================================== */
.literacy { background: var(--navy); color: #fff; }
.literacy h2 { color: #fff; }
.literacy .section-sub { color: rgba(255, 255, 255, 0.7); }

.literacy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.lit-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.75rem;
}

.lit-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.lit-card-icon.y { background: rgba(255, 210, 63, 0.2); }
.lit-card-icon.o { background: rgba(255, 107, 53, 0.2); }
.lit-card-icon.t { background: rgba(29, 158, 117, 0.2); }

.lit-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.lit-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
}

/* ==========================================================================
   BOOK OF THE MONTH
   ========================================================================== */
.botm { background: var(--light-orange); }

.botm-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.book-cover {
  width: 160px;
  height: 220px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.15);
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.book-cover-author {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.5rem;
  font-weight: 400;
}

.botm-details h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.botm-details .author {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.botm-details p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.bryson-pick {
  font-size: 0.85rem !important;
  color: var(--teal) !important;
  font-weight: 600;
}

.age-badge {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.botm-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   GIVEAWAY
   ========================================================================== */
.giveaway {
  background: var(--teal);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.giveaway::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.1;
}

.giveaway::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.15;
}

.giveaway h2 {
  color: #fff;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.giveaway .section-tag { color: var(--yellow); }

.giveaway .section-sub {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  position: relative;
}

.giveaway-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 2.5rem auto 2rem;
  position: relative;
}

.giveaway-step {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
}

.step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.giveaway-step h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.giveaway-step p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.giveaway-cta { position: relative; }

/* ==========================================================================
   READING CHALLENGES
   ========================================================================== */
.challenges { background: #fff; }

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.challenge-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.challenge-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.challenge-emoji {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.challenge-card h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.challenge-card p {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.5;
}

.challenge-cta { margin-top: 2rem; }

/* ==========================================================================
   JOIN
   ========================================================================== */
.join { background: var(--orange); }
.join h2 { color: #fff; }

.join-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.join-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
}

.join-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.join-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.join-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  background: var(--cream);
  text-align: center;
}

.contact a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.contact a:hover { text-decoration: underline; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--yellow);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
}

.footer-logo-mark img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-tagline {
  font-style: italic;
  opacity: 0.7;
}

/* ==========================================================================
   RESPONSIVE — Tablet
   ========================================================================== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 4rem 2rem 3rem;
    text-align: center;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero h1 { font-size: 2.5rem; }

  .about-grid,
  .botm-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-img { height: 480px; max-width: 420px; margin: 0 auto; }
  .botm-inner { justify-items: center; text-align: center; }
  .botm-buttons { justify-content: center; }

  .literacy-cards,
  .join-options,
  .giveaway-steps {
    grid-template-columns: 1fr;
  }

  .challenge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  section { padding: 3rem 2rem; }
}

/* ==========================================================================
   RESPONSIVE — Mobile
   ========================================================================== */
@media (max-width: 640px) {
  .site-nav { padding: 1rem 1.25rem; }
  .nav-logo-mark { width: 40px; height: 40px; }
  .nav-logo-name { font-size: 0.95rem; }
  .nav-logo-tag { font-size: 0.55rem; letter-spacing: 1px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.is-open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { padding: 3rem 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; }

  .stats-bar {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  section { padding: 2.5rem 1.5rem; }

  h2 { font-size: 1.7rem; }

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

  .video-frame { border-width: 4px; }

  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .book-stack { transform: scale(0.85); }
}
