/* Hidden Oak Valley — v152 first-impression fixes (2026-11-15).
   Loaded after each page's own <style> and the cart CSS, so these rules win. */

/* ---------- Phone menu (hamburger). Desktop nav is unchanged. ---------- */
.nav-toggle { display: none; }
@media (max-width: 640px) {
  header .nav { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0; padding: 0.55rem 1rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: transparent; color: #f3ead6; border: 1.5px solid rgba(255,255,255,0.45);
    border-radius: 999px; padding: 0.35rem 0.85rem; font: 800 0.92rem/1 "Nunito", sans-serif; cursor: pointer;
  }
  .nav-toggle .bars { font-size: 1.05rem; line-height: 1; }
  html.js header nav.links { display: none; }
  html.js header.nav-open nav.links {
    display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0;
    width: 100%; margin-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.18);
  }
  header nav.links a { font-size: 1rem; padding: 0.7rem 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.10); }
  /* "Shop" goes to the same Books page as "The Books" — show it once on phones */
  header nav.links a.nav-dup-shop { display: none; }
}

/* ---------- Floating Chat + Cart on phones: a slim reserved bar at the very bottom,
   with page padding underneath, so the buttons never sit on top of prices or buttons. ---------- */
@media (max-width: 640px) {
  body { padding-bottom: 52px; }
  body::after {
    content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 48px; z-index: 997;
    background: rgba(250,244,232,0.97); border-top: 1px solid #e3d5b8; box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    pointer-events: none;
  }
  .wa-chat { left: 8px !important; right: auto !important; bottom: 7px !important; padding: 0.42rem 0.8rem !important; font-size: 0.82rem !important; gap: 0.3rem !important; box-shadow: none !important; }
  #hov-cart-btn { right: 8px; bottom: 7px; padding: 0.42rem 0.9rem; font-size: 0.85rem; box-shadow: none; }
  #hov-cart-panel { bottom: 56px; right: 0.5rem; max-height: calc(100vh - 140px); }
  footer { padding-bottom: 2.5rem !important; }
}

/* ---------- Home hero: who it's for ---------- */
.hero .hero-for {
  display: inline-block; margin: 0 0 0.9rem; padding: 0.3rem 0.85rem; border-radius: 999px;
  background: rgba(255,217,122,0.95); color: #3a2408; font-weight: 800; font-size: 1.02rem; line-height: 1.3;
}
@media (max-width: 640px) {
  .hero .hero-for { font-size: 0.95rem; margin-bottom: 0.6rem; }
  /* Buy first, then the two secondary buttons, then the EFA line just below them (smaller) */
  .hero-ctas .hero-efa { order: 3 !important; font-size: 0.84rem !important; margin: 0.15rem 0 0 !important; line-height: 1.4; }
}

/* ---------- $71 Complete Collection offer card ---------- */
.offer-71 {
  max-width: 920px; margin: 1.2rem auto; padding: 0.95rem 1.2rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between;
  background: #fff; border: 2px solid var(--amber, #d99a3d); border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(58,47,35,0.10); text-align: left;
}
.offer-71 .o-text { flex: 1 1 18rem; min-width: 0; }
.offer-71 .o-title { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 1.15rem; color: #1d4029; line-height: 1.25; }
.offer-71 .o-sub { margin: 0.2rem 0 0; font-size: 0.9rem; color: #54483a; }
.offer-71 .o-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.offer-71 .o-cta .btn { padding: 0.6rem 1.2rem; font-size: 0.95rem; }
.offer-71 .o-note { font-size: 0.78rem; color: #6b5d4f; }
.offer-71 .o-note a { color: #2e5b3e; font-weight: 700; }
.offer-wrap { padding: 0 1rem; }
@media (max-width: 640px) {
  .offer-71 { margin: 0.9rem auto; padding: 0.8rem 0.9rem; gap: 0.55rem; }
  .offer-71 .o-title { font-size: 1.02rem; }
  .offer-71 .o-cta { width: 100%; }
  .offer-71 .o-cta .btn { width: 100%; text-align: center; }
}

/* ---------- /books: compact stock & shipping notice ---------- */
.ship-compact {
  max-width: 42rem; margin: 0 auto 1rem; padding: 0.45rem 1rem; border-radius: 0.8rem;
  background: #fbefd2; border: 1px solid #ecc987; color: #3a2c1c; font-size: 0.92rem; text-align: center;
}
.ship-compact summary { cursor: pointer; font-weight: 700; list-style: none; }
.ship-compact summary::-webkit-details-marker { display: none; }
.ship-compact summary .more-link { color: #2e5b3e; text-decoration: underline; font-weight: 800; white-space: nowrap; }
.ship-compact[open] summary .more-link { display: none; }
.ship-compact p { margin: 0.5rem 0 0.2rem; font-weight: 600; }

/* ---------- Giveaway rules pop-up ---------- */
.gw-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(20,30,18,0.6); display: none; align-items: center; justify-content: center; padding: 1rem; }
.gw-modal.open { display: flex; }
.gw-box { position: relative; background: #faf4e8; color: #3a2f23; max-width: 460px; width: 100%; max-height: 85vh; overflow-y: auto; border-radius: 1.1rem; border: 3px solid #d99a3d; padding: 1.5rem 1.3rem 1.2rem; box-shadow: 0 18px 50px rgba(0,0,0,0.35); text-align: left; }
.gw-box h2 { font-family: "Fraunces", Georgia, serif; color: #1d4029; font-size: 1.35rem; margin: 0 2rem 0.7rem 0; text-align: left; }
.gw-box p { margin: 0 0 0.8rem; font-size: 0.95rem; line-height: 1.55; }
.gw-box a { color: #2e5b3e; font-weight: 700; }
.gw-close { position: absolute; top: 0.45rem; right: 0.6rem; background: none; border: none; font-size: 1.6rem; line-height: 1; color: #1d4029; cursor: pointer; padding: 0.2rem 0.4rem; }
.gw-ok { display: block; width: 100%; margin-top: 0.4rem; padding: 0.65rem; border: none; border-radius: 999px; background: #2e5b3e; color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer; }

/* ---------- /cart page ---------- */
.cart-page { max-width: 640px; margin: 0 auto; padding: 2.5rem 1.25rem 1rem; text-align: center; }
.cart-page h1 { font-family: "Fraunces", Georgia, serif; color: #1d4029; font-size: 2rem; margin-bottom: 0.6rem; }
.cart-page ol { text-align: left; display: inline-block; margin: 0.8rem auto 1.2rem; padding-left: 1.3rem; }
.cart-page li { margin-bottom: 0.45rem; }
.cart-page .btn-row { margin-top: 0.6rem; }

/* ---------- /holiday: caption under set images whose baked-in text says 24 hours ---------- */
.img-ship-fix { margin: 0; padding: 0.5rem 0.9rem; background: #fdeeda; border-top: 1px solid #ecc987; border-bottom: 1px solid #ecc987; color: #6b3f05; font-size: 0.86rem; font-weight: 700; line-height: 1.4; }

/* v152 tune-ups: keep the desktop EFA line on the first screen; slimmer offer card on phones */
@media (min-width: 641px) {
  .hero-overlay { padding-top: 2.2rem; }
  .hero .eyebrow { margin-bottom: 0.7rem; }
  .hero h1 { margin-bottom: 0.7rem; }
  .hero .hero-for { margin-bottom: 0.6rem; }
}
@media (max-width: 640px) {
  .offer-71 .o-sub { display: none; }
}
@media (max-width: 640px) {
  section#books { padding-top: 1.6rem; }
}

/* ---------- v153 polish (2026-11-15) ---------- */
/* Home: "The Complete Four-Book Adventure" heading was dark green on the dark green band (invisible) */
.collection-band h3 { color: #fff; }
/* Hero text readability over the photo */
.hero .eyebrow, .hero .lede, .hero .hero-efa { text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 0 10px rgba(0,0,0,0.45); }
.hero .eyebrow { color: #ffc96b; }
@media (max-width: 640px) {
  .hero-overlay { background: linear-gradient(180deg, rgba(10,25,15,0.74) 0%, rgba(10,25,15,0.58) 55%, rgba(10,25,15,0.66) 100%) !important; }
}
/* Readable white text on the WhatsApp and Add-to-Cart buttons (WCAG AA) */
.wa-chat { background: #1a7f45 !important; }
.wa-chat:hover { background: #156b3a !important; }
.btn-cart { background: #9a6212; color: #fff; }
/* Coloring / download / coming-soon covers are taller than 3:4 — show the whole cover (titles were cut off) */
#instant-weekend .card img.cover, #coloring .card img.cover, #coming-soon .card img.cover { aspect-ratio: 2 / 3; object-fit: contain; background: #f3ead6; }
/* Bigger tap areas for small inline links */
.listen-strip a, .offer-71 .o-note a, .trust-strip a { display: inline-block; padding: 3px 0; }
/* EFA page: invoice download right under the title */
.efa-quick { max-width: 640px; margin: -1rem auto 1.6rem; padding: 0.9rem 1rem; background: #fbefd2; border: 2px solid #d99a3d; border-radius: 1rem; text-align: center; color: #3a2c1c; line-height: 1.5; }
.efa-quick .btn { margin: 0.6rem 0.25rem 0; }

/* ---------- v159: menu now has Teachers + Visits. On tablet/small-laptop widths,
   drop the duplicate "Shop" link (same page as "The Books") and tighten spacing
   so the menu stays compact. ---------- */
@media (min-width: 641px) and (max-width: 1279px) {
  header nav.links a.nav-dup-shop { display: none; }
  header nav.links { column-gap: 0.85rem; }
}
