/* ===========================================================
   Evidence-Based Emotional Growth Stories — shared styles
   =========================================================== */

:root {
  --cream: #FAF8EE;
  --ink: #4A3F35;
  --slate: #6B6259;
  --peach: #F6A9B4;
  --sage: #9CAF88;
  --sage-dark: #7C9468;
  --peach-dark: #E8899A;
  --border: #E8E2D4;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  color: var(--slate);
  line-height: 1.2;
  margin: 0;
}

a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--peach-dark);
  outline-offset: 3px;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand span {
  color: var(--sage-dark);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-links a {
  color: var(--slate);
}

.nav-links a.active {
  color: var(--peach-dark);
}

/* ---------- Hero ---------- */

.hero {
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero .eyebrow {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  max-width: 720px;
  margin: 0 auto 1.1rem;
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--slate);
}

/* ---------- Bear pairing strip (signature element) ---------- */

.bear-strip {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 2.5rem 0 0;
  flex-wrap: wrap;
}

.bear-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.55rem 1.2rem 0.55rem 0.6rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
}

.bear-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bear-dot.brave { background: var(--peach); }
.bear-dot.dew { background: var(--sage); }

/* ---------- Section headings ---------- */

.section {
  padding: 3.5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head .eyebrow {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.6rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.section-head p {
  max-width: 560px;
  margin: 0.8rem auto 0;
  color: var(--slate);
}

/* ---------- Book ecosystem cards (signature) ---------- */

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.book-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.book-card-top {
  display: flex;
  gap: 0;
}

.book-cover-slot {
  flex: 1 1 50%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  color: #fff;
}

.book-cover-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-cover-slot.story { background: var(--peach); }
.book-cover-slot.activity { background: var(--sage); }

.book-card-body {
  padding: 1.6rem 1.6rem 1.8rem;
}

.book-card-body .series-label {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  display: block;
  margin-bottom: 0.4rem;
}

.book-card-body h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.book-card-body .age-tag {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.2rem 0.8rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--slate);
  margin-bottom: 0.9rem;
}

.book-card-body p.desc {
  color: var(--slate);
  font-size: 0.98rem;
  margin-bottom: 1.3rem;
}

.book-ecosystem-note {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: 100px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--peach-dark);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--slate);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--sage-dark);
  color: var(--sage-dark);
  text-decoration: none;
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- About page ---------- */

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0;
}

.about-photo-slot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  color: var(--slate);
  text-align: center;
  padding: 1.5rem;
}

.about-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 1rem;
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.credentials-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.98rem;
  color: var(--slate);
}

.credentials-list .icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem;
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--peach-dark);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--slate);
  margin: 0;
}

/* ---------- Downloads page ---------- */

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.download-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.download-card .file-tag {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  align-self: flex-start;
}

.download-card h3 {
  font-size: 1.2rem;
}

.download-card p {
  color: var(--slate);
  font-size: 0.95rem;
  margin: 0;
}

.download-card.placeholder {
  border-style: dashed;
  align-items: center;
  text-align: center;
  justify-content: center;
  color: var(--slate);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
}

.download-card img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.email-box {
  background: var(--slate);
  border-radius: 18px;
  padding: 2.5rem;
  text-align: center;
  color: var(--cream);
  margin-top: 3rem;
}

.email-box h2 {
  color: var(--cream);
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.email-box p {
  color: #D8E2E0;
  max-width: 460px;
  margin: 0 auto 1.5rem;
  font-size: 0.98rem;
}

.email-box .btn-primary {
  background: var(--peach);
  color: var(--ink);
}

.email-box .btn-primary:hover {
  background: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  color: var(--slate);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .about-hero {
    grid-template-columns: 1fr;
    padding: 2rem 0;
  }

  .nav-links {
    gap: 1.2rem;
    font-size: 0.9rem;
  }

  .bear-strip {
    gap: 1rem;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
