/* Little Voices Hub — site styles. Palette pulled from the original design. */
:root {
  --gold: #b08d3f;
  --gold-light: #c9a85c;
  --brown: #4a3b16;
  --brown-btn: #5c4a1f;
  --tan: #b3a05d;
  --tan-soft: #c2b06d;
  --teal: #1b8a87;
  --cream: #f5f3e8;
  --ink: #2c2616;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--cream);
}

.display {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: 0.5px;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Top nav ---- */
.site-nav {
  background: var(--brown);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-nav .brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  text-decoration: none;
}
.site-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a { color: var(--cream); text-decoration: none; }
.site-nav a:hover { color: var(--gold-light); }

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 70px 24px 50px;
  background: linear-gradient(rgba(245, 243, 232, 0.55), rgba(179, 160, 93, 0.55)),
    url('/images/hero.svg') center/cover no-repeat;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  color: var(--gold);
  margin: 0 0 8px;
}
.hero .tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--brown);
  margin: 0;
}

/* ---- Category cards ---- */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.cat {
  background: rgba(74, 59, 22, 0.04);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.cat > .cat-head {
  display: block;
  background: var(--brown-btn);
  color: var(--cream);
  text-decoration: underline;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  letter-spacing: 1px;
}
.cat ul { list-style: none; margin: 12px 0 0; padding: 0; }
.cat li { margin: 8px 0; }
.cat li a {
  display: block;
  background: var(--brown-btn);
  color: var(--cream);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 0.85rem;
}
.cat li a:hover { background: var(--brown); }

/* ---- Generic sections ---- */
section { padding: 60px 0; }
.section-tan { background: var(--tan); color: var(--cream); }
.section-teal { background: var(--teal); color: var(--white); text-align: center; }
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  margin: 0 0 24px;
}

/* ---- Effective Tools ---- */
.tools-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
.tools-grid ul { padding-left: 20px; }
.tools-grid li { margin-bottom: 10px; }
.book-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.book-card h3 { color: var(--brown); margin: 0 0 12px; }
.book-card img { width: 100%; border-radius: 6px; }

/* ---- About author ---- */
.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 20px;
}
.section-teal p { max-width: 760px; margin: 0 auto 14px; }
.section-teal h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  margin-top: 40px;
}

/* ---- Contact ---- */
.contact {
  background: var(--tan-soft);
  color: var(--ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-info p { margin: 8px 0; }
.contact h3 { font-family: 'Playfair Display', Georgia, serif; }
form.contact-form {
  display: grid;
  gap: 12px;
  max-width: 480px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}
.contact-form button {
  justify-self: start;
  background: var(--brown-btn);
  color: var(--cream);
  border: none;
  padding: 12px 28px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 1px;
}
.contact-form button:hover { background: var(--brown); }
.form-status { font-weight: bold; }

/* ---- Footer ---- */
footer {
  background: var(--cream);
  padding: 40px 0;
  text-align: center;
  color: var(--brown);
}
footer .foot-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
}
footer nav a { margin: 0 10px; color: var(--gold); text-decoration: none; }
.copyright { margin-top: 20px; font-size: 0.85rem; color: #777; }

/* ---- Blog ---- */
.post-card {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}
.post-card h2 { margin: 0 0 6px; }
.post-card h2 a { text-decoration: none; }
.post-date { color: #888; font-size: 0.85rem; margin: 0 0 10px; }
.read-more { font-weight: bold; text-decoration: none; }
.article { max-width: 760px; margin: 0 auto; }
.article img { max-width: 100%; border-radius: 6px; }

/* Optional blog thumbnail on the index */
.post-card.has-thumb {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.post-thumb { flex: 0 0 auto; display: block; }
.post-thumb img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.post-card-body { flex: 1 1 260px; }

/* Optional header image at the top of a blog article */
.article .post-hero {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 6px auto 26px;
  border-radius: 12px;
}

/* ---- Reusable button ---- */
.btn {
  display: inline-block;
  background: var(--brown-btn);
  color: var(--cream);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 5px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-align: center;
}
.btn:hover { background: var(--brown); color: var(--cream); }
.btn-tan { background: var(--tan); }
.btn-tan:hover { background: var(--tan-soft); }
.btn-red { background: #8a2e2e; }
.btn-red:hover { background: #6f2424; }

/* ---- Parents product page ---- */
.intro { background: var(--cream); text-align: center; }
.intro h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  color: var(--gold);
  margin: 0 0 14px;
}
.intro .lede {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--gold);
  max-width: 760px;
  margin: 0 auto 24px;
}
.intro .did-you-know { color: var(--gold); margin: 6px auto; max-width: 760px; }
.intro .emphasis-red { color: #b41f1f; font-weight: bold; }
.intro .body-copy { color: #6b5a2a; max-width: 800px; margin: 16px auto; }
.intro .body-copy a { color: var(--gold); }

/* Featured book */
.book-feature {
  display: grid;
  grid-template-columns: 280px 1.3fr 1fr;
  gap: 36px;
  align-items: start;
}
.book-feature .cover { width: 100%; border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.book-feature .desc { font-size: 0.95rem; }
.book-feature h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--brown);
  margin-top: 0;
}
.purchase-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

/* Board books */
.board-books { background: var(--cream); }
.board-books .bb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.board-books h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--teal);
  font-size: 2rem;
  margin: 0;
}
.board-books .cheryl { display: flex; align-items: center; gap: 18px; }
.board-books .cheryl img { width: 110px; border-radius: 6px; }

.book-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid #e0d8c2;
}
.book-row .cover { width: 100%; border-radius: 6px; box-shadow: 0 5px 14px rgba(0,0,0,0.12); }
.book-row h3 { margin: 0 0 6px; color: var(--ink); }
.book-row .thumbs { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.book-row .thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 5px; }
.book-row .price { color: #6b5a2a; font-size: 0.9rem; margin: 12px 0; }
.book-row .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---- About Cheryl page ---- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}
.about-grid .portrait {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}
.about-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--brown);
  margin: 0;
}
.about-sub { margin: 4px 0 18px; font-style: italic; }
.about-grid ul { padding-left: 20px; }
.about-grid li { margin-bottom: 8px; }
.about-closing {
  font-style: italic;
  font-size: 1.1rem;
  max-width: 760px;
  margin: 26px auto 0;
  text-align: center;
}

/* ---- Tips for Parents page ---- */
.parents-hero {
  padding: 50px 24px 60px;
  background: linear-gradient(rgba(245, 243, 232, 0.45), rgba(179, 160, 93, 0.45)),
    url('/images/parents-hero.jpg') center/cover no-repeat,
    linear-gradient(135deg, #cdd9b8, #b9c79f);
}
.parents-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  color: var(--brown);
  margin: 0 0 30px;
}
.topic-btns { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.topic-btns .btn { max-width: 560px; }

.action-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 0;
  align-items: flex-start;
}
.action-row .btn { min-width: 200px; padding: 16px 22px; }

.qa { padding-top: 0; }
.qa details {
  border-top: 1px solid #e0d8c2;
  padding: 16px 0;
}
.qa summary {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--brown);
  cursor: pointer;
}
.qa details p { color: #6b5a2a; margin: 12px 0 0; }

@media (max-width: 760px) {
  .tools-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .site-nav .container { flex-direction: column; gap: 10px; }
  .book-feature,
  .book-row { grid-template-columns: 1fr; }
  .parents-hero h1 { font-size: 2.1rem; }
}

/* =====================================================================
   SOFT IMPRESSIONIST REFRESH (gentle)
   A warm, painterly layer over the base styles. Everything below is
   additive — delete this whole block to return to the original look.
   ===================================================================== */

/* Calm watercolor wash behind the whole site */
body {
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(201, 168, 92, 0.13), transparent 60%),
    radial-gradient(900px 520px at -8% 18%, rgba(27, 138, 135, 0.07), transparent 55%),
    radial-gradient(800px 800px at 50% 120%, rgba(176, 141, 63, 0.08), transparent 60%),
    var(--cream);
  line-height: 1.7;
}

/* Slightly roomier, softer body copy for tired eyes */
.intro .body-copy,
.intro .did-you-know,
.book-feature .desc,
.qa details p { font-size: 1.02rem; }

/* Soft gradient washes replace the flat colour blocks */
.intro      { background: linear-gradient(160deg, #faf8ef 0%, #f1ecd9 100%); }
.board-books{ background: linear-gradient(180deg, #f6f4ea 0%, #efe9d6 100%); }
.section-tan{
  background: linear-gradient(180deg, #f4efe0 0%, #ece5d2 100%);
  color: #2c2616;
}
.section-tan h2,
.section-tan h3,
.section-tan .section-title { color: var(--brown); }
.section-teal{ background: linear-gradient(160deg, #1f9d99 0%, #157a77 100%); }
.contact    { background: linear-gradient(160deg, #c8b673 0%, #bca967 100%); }

/* Softer, warmer dividers between books */
.book-row { border-top: 1px solid rgba(176, 141, 63, 0.28); }

/* Cards & covers: rounder corners and a soft, diffuse shadow so they
   feel like they float on the page rather than sit in hard boxes */
.book-card,
.post-card,
.cat {
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(74, 59, 22, 0.10);
}
.book-feature .cover,
.book-row .cover,
.about-grid .portrait {
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(74, 59, 22, 0.16);
}

/* Page-sample thumbnails: show the WHOLE picture (no centre-cropping),
   matted on white like a little framed print */
.book-row .thumbs { gap: 16px; align-items: flex-start; }
.book-row .thumbs img {
  width: 150px;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  background: #fff;
  padding: 7px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(74, 59, 22, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-row .thumbs img:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(74, 59, 22, 0.22);
}

/* The Cheryl header photo gets the same soft frame */
.board-books .cheryl img {
  width: 130px;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(74, 59, 22, 0.16);
}

/* Buttons: same colours, but with a gentle gradient, rounder edges,
   and a soft lift on hover so they feel inviting, not flat */
.btn {
  background: linear-gradient(180deg, #6a5626 0%, #5c4a1f 100%);
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(74, 59, 22, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(74, 59, 22, 0.26); }
.btn-tan { background: linear-gradient(180deg, #bda968 0%, #b3a05d 100%); }
.btn-tan:hover { background: linear-gradient(180deg, #c7b576 0%, #bda968 100%); }
.btn-red { background: linear-gradient(180deg, #9a3636 0%, #8a2e2e 100%); }
.btn-red:hover { background: linear-gradient(180deg, #7f2a2a 0%, #6f2424 100%); }

/* Contact form: softer fields that match the rounded language */
.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid rgba(74, 59, 22, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.85);
}
.contact-form button {
  background: linear-gradient(180deg, #6a5626 0%, #5c4a1f 100%);
  border-radius: 9px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 12px rgba(74, 59, 22, 0.18);
}
.contact-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(74, 59, 22, 0.26); }

@media (max-width: 760px) {
  .book-row .thumbs img { width: 130px; max-height: 170px; }
}

/* =====================================================================
   PARENTS TOPIC FINDER + RELATED-ARTICLE LINKS
   ===================================================================== */

.parents-intro {
  color: var(--brown);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 0 22px;
}
.topic-filter {
  width: 100%;
  max-width: 540px;
  padding: 14px 18px;
  border: 1px solid rgba(74, 59, 22, 0.22);
  border-radius: 11px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(74, 59, 22, 0.08);
}
.topic-filter:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27, 138, 135, 0.18);
}

.topics { background: linear-gradient(180deg, #f6f4ea 0%, #efe9d6 100%); }
.topic-group { margin-bottom: 40px; }
.topic-group[hidden] { display: none; }
.topic-group-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--teal);
  font-size: 1.5rem;
  margin: 0 0 18px;
}
.topic-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: var(--cream);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  border-left: 5px solid var(--gold-light);
  box-shadow: 0 8px 22px rgba(74, 59, 22, 0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.topic-card[hidden] { display: none; }
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(74, 59, 22, 0.18);
}
.topic-q {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.16rem;
  color: var(--brown);
}
.topic-d { font-size: 0.95rem; color: #6b5a2a; line-height: 1.5; }
.topic-noresults { color: #6b5a2a; font-size: 1.02rem; }

/* "More topics for parents" block at the foot of each article (sits on the
   tan section, so text/divider are light for contrast) */
.article-more {
  border-top: 1px solid rgba(176, 141, 63, 0.3);
  margin-top: 44px;
  padding-top: 26px;
  text-align: center;
}
.article-more h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--brown);
  font-size: 1.35rem;
  margin: 0 0 18px;
}
.more-links,
.article-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.more-links { margin-bottom: 18px; }

/* SLP page: each section's "Go to" button sits right under its description */
.section-tan.content-light h3 + ul + p { margin: 14px 0 28px; }

/* =====================================================================
   INLINE VIDEO EMBEDS (responsive YouTube players inside articles)
   ===================================================================== */
.video-embed { margin: 22px auto; }
.video-embed.landscape { max-width: 600px; }
.video-embed.short { max-width: 320px; }
.video-embed .frame {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(74, 59, 22, 0.18);
  background: #000;
}
.video-embed.landscape .frame { aspect-ratio: 16 / 9; }
.video-embed.short .frame { aspect-ratio: 9 / 16; }
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed .vcap {
  text-align: center;
  font-size: 0.9rem;
  color: #6b5a2a;
  margin: 10px 0 0;
}

/* =====================================================================
   DATA SHEET GALLERY (clickable sample sheets)
   ===================================================================== */
.data-sheets {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: 22px 0 6px;
}
.data-sheet {
  width: 180px;
  text-decoration: none;
  color: var(--ink);
}
.data-sheet img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid rgba(74, 59, 22, 0.15);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(74, 59, 22, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.data-sheet:hover img {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(74, 59, 22, 0.22);
}
.data-sheet .ds-label {
  display: block;
  text-align: center;
  font-size: 0.88rem;
  font-weight: bold;
  color: var(--brown);
  margin-top: 8px;
}
