/* ============================================================
   LUNCHBOX.KIDS — RECIPES
   Loads AFTER styles.css + home.css + tools.css
   Reuses the tools-page shell + the home recipe-card language,
   but re-themed CREAM (light) instead of the tools navy.
   All overrides are scoped to .recipes-main so tools.html stays navy.
   ============================================================ */

.recipes-main { background: var(--cream); }

/* ---- hero (light) ---- */
.recipes-main .tools-hero-lead { color: var(--navy); }
.recipes-main .tools-hero-body { color: var(--ink-mid); }

/* hero: title + copy left, compact hand-drawn fork to the right */
.recipes-main .tools-hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
}
.recipes-main .tools-hero-main { max-width: 100%; }
.rec-hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rec-hero-art img {
  width: min(300px, 32vw);
  height: auto;
  display: block;
  transform: rotate(-5deg);
  filter: drop-shadow(0 14px 24px rgba(18,52,87,.14));
}
@media (max-width: 640px) {
  .recipes-main .tools-hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .rec-hero-art { justify-content: flex-start; }
  .rec-hero-art img { width: 240px; transform: rotate(-4deg); }
}
.rec-hero-note {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .3px;
  color: var(--ink-soft);
  max-width: 480px;
  padding-left: 16px;
  border-left: 2px solid rgba(41,177,143,.55);
}

/* ---- filter bar (light) ---- */
.recipes-main .tools-filter {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.recipes-main .filter-pill {
  border-color: rgba(18,52,87,.2);
  color: var(--navy);
}
.recipes-main .filter-pill:hover {
  border-color: var(--teal);
  color: var(--navy);
}
.recipes-main .filter-pill[aria-pressed="true"] {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--navy);
}

/* ---- recipe cards (light) ---- */
.recipes-main .product-card {
  background: var(--cream);
  border: 1px solid var(--rule);
}
.recipes-main .product-card:hover {
  background: var(--cream);
  border-color: var(--peri);
  box-shadow: 0 22px 40px -24px rgba(18,52,87,.4);
}
.recipes-main .product-card.featured {
  border-color: var(--peri);
  box-shadow: 0 0 0 1px var(--peri) inset;
}

/* recipe media: photo-shaped light placeholder */
.recipes-main .product-media {
  aspect-ratio: 5 / 6;
  padding: 22px;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(120% 120% at 50% 30%, rgba(197,204,253,.22), rgba(197,204,253,0) 60%);
}
.recipes-main .product-media.placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(18,52,87,.07) 0 2px, transparent 2px 14px),
    radial-gradient(120% 120% at 50% 30%, rgba(197,204,253,.2), rgba(197,204,253,0) 60%),
    rgba(18,52,87,.04);
}
.recipes-main .product-media.placeholder::after {
  color: rgba(18,52,87,.42);
}

/* photo-filled recipe media (real image dropped in) */
.recipes-main .product-media.has-photo {
  padding: 0;
  background: var(--peri-soft);
  overflow: hidden;
}
.recipes-main .product-media.has-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
  filter: none;
}

/* category tag — light pill, navy text */
.recipes-main .product-cat-tag {
  white-space: nowrap;
  background: rgba(248,244,236,.85);
  color: var(--navy);
}

/* pillar badges (top-left) — borrowed from the home recipe card */
.product-media .r-pillars {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.product-media .r-pillars span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(248,244,236,.18);
  display: grid;
  place-items: center;
  color: var(--mint);
}
.product-media .r-pillars span svg,
.product-media .r-pillars span img { width: 16px; height: 16px; display: block; border-radius: 50%; object-fit: cover; }

/* card body (light) */
.recipes-main .product-body h3 { color: var(--navy); }
.recipes-main .product-body p { color: var(--ink-mid); }
.recipe-time {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
}
.recipes-main .product-link { color: var(--peri-dark); }
.recipes-main .product-link .disc { background: rgba(197,204,253,.32); }
.recipes-main .product-card:hover .product-link .disc {
  background: var(--peri);
  color: var(--navy);
}
.recipes-main .grid-empty { color: var(--ink-soft); }

/* ---- closing CTA band (periwinkle, so it still pops on cream) ---- */
.rec-cta { background: var(--peri); overflow: hidden; }
.rec-cta { padding-top: 88px; padding-bottom: 88px; }
.rec-cta .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  align-items: center;
  gap: 56px;
}
.rec-cta-text { max-width: 520px; }
.rec-cta .eyebrow { color: var(--peri-dark); margin-bottom: 20px; }
.rec-cta h2 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.06;
  letter-spacing: -1.2px;
  color: var(--navy);
  margin-bottom: 16px;
  text-wrap: balance;
}
.rec-cta h2 i { color: var(--peri-dark); font-style: italic; }
.rec-cta-text p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(18,52,87,.72);
  max-width: 440px;
  margin-bottom: 30px;
}
.rec-cta-form .cta-form { max-width: 460px; }
.rec-cta-form .form-note { margin-top: 14px; }
.rec-cta .cta-btn { flex-shrink: 0; }

/* CTA photo — framed like about/home page imagery */
.rec-cta-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rec-cta-photo img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transform: rotate(-2deg);
  transition: transform .4s;
  box-shadow: 0 26px 50px -24px rgba(18,52,87,.45), 0 8px 18px -10px rgba(18,52,87,.22);
}
.rec-cta-photo img:hover { transform: rotate(0); }

@media (max-width: 1040px) {
  .rec-cta { padding-top: 72px; padding-bottom: 72px; }
  .rec-cta .section-inner { grid-template-columns: 1fr; gap: 40px; }
  .rec-cta-photo { order: -1; }
  .rec-cta-photo img { max-width: 280px; transform: rotate(-2deg); }
}
@media (max-width: 560px) {
  .recipes-main .product-media { aspect-ratio: 4 / 5; }
}
