/* =========================================================
   Foodlab N.V. — Aladey
   SITE.CSS — everything this multi-page version adds

   styles.css is the approved stylesheet, carried over UNCHANGED so this
   version stays visually identical to the live site. Only the genuinely
   new pieces live here: the homepage range band, and the pasta page.

   Every colour, radius, shadow and font comes from the tokens in
   styles.css. Nothing here redefines one.
   ========================================================= */


/* =========================================================
   HOMEPAGE — the range handoff
   The cassava launch keeps the page. This band exists so the pasta is
   impossible to miss without competing for the hero.
   ========================================================= */
.rangeband { background: var(--cream); }
.rangeband__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.rangeband__lead {
  color: var(--ink-soft);
  font-size: 1.04rem; line-height: 1.6;
  max-width: 42ch;
  margin-top: 16px;
}
.rangeband__lead strong { color: var(--brand-700); font-weight: 700; }
.rangeband__grid .btn { margin-top: 26px; }

.rangeband__shapes {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.rangeband__shapes a { display: block; }
.rangeband__art {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.rangeband__art picture { display: contents; }
.rangeband__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.rangeband__shapes a:hover .rangeband__art img { transform: scale(1.05); }
.rangeband__name {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.06rem; letter-spacing: -0.01em;
  color: var(--brand-700);
}
.rangeband__size {
  font-family: var(--font-body); font-weight: 600;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-ink);
  margin-left: 6px;
}

@media (max-width: 900px) {
  .rangeband__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* Three portrait crops get too narrow to read; a scroll strip keeps them
     at a size where you can actually see the food. */
  .rangeband__shapes {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--page-px) * -1);
    padding-inline: var(--page-px);
  }
  .rangeband__shapes::-webkit-scrollbar { display: none; }
  .rangeband__shapes li { scroll-snap-align: start; }
}


/* =========================================================
   PASTA PAGE
   ========================================================= */

/* ---------- hero ---------- */
.phero {
  position: relative;
  isolation: isolate;
  color: var(--cream);
  background: var(--brand-700);
  display: grid; align-items: end;
  min-height: clamp(380px, 56vh, 560px);
  overflow: hidden;
}
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg picture { display: contents; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
/* DIRECTIONAL scrim, not a flat one. A full-frame wash heavy enough to
   make cream type readable also erased the photograph entirely -- there was
   no opacity that did both. So the darkness runs LEFT TO RIGHT: dense behind
   the column of type, clearing by ~62% so the plate and the pack stay fully
   visible on the right. A light bottom wash carries the type into the
   section below.
   .78 is the floor: over the brightest possible pixel it still gives cream
   8.06:1 and the amber eyebrow 5.93:1, so the copy is safe wherever the
   photograph happens to be light. */
.phero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(52,10,8,.90) 0%,
      rgba(52,10,8,.82) 30%,
      rgba(52,10,8,.42) 52%,
      rgba(52,10,8,.10) 70%,
      transparent 84%),
    linear-gradient(180deg,
      transparent 40%,
      rgba(52,10,8,.42) 100%);
}
@media (max-width: 900px) {
  /* One column: the type crosses the whole frame, so the gradient has to
     be vertical again or the right-hand words sit on bare photograph. */
  .phero::after {
    background: linear-gradient(180deg,
      rgba(52,10,8,.52) 0%,
      rgba(52,10,8,.78) 46%,
      rgba(52,10,8,.90) 100%);
  }
}
.phero__inner { padding-block: clamp(44px, 7vw, 88px); }
.phero__eyebrow { color: var(--amber); margin-bottom: 14px; }
.phero__title {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.02; letter-spacing: -0.03em;
  color: var(--cream);
  max-width: 16ch;
}
.phero__lead {
  /* Full cream, not .9: measured against the real photograph the muted
     version fell to 4.13:1 at the right-hand end of the line, where the
     scrim has thinned. 48ch rather than 54ch keeps the last words inside
     the dense part of the gradient too. */
  color: var(--cream);
  font-size: 1.06rem; line-height: 1.6;
  max-width: 48ch;
  margin-top: 18px;
}
.phero__jump {
  list-style: none; padding: 0;
  margin: 26px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.phero__jump a {
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600; font-size: .92rem;
  color: var(--cream);
  background: rgba(251,244,228,.14);
  box-shadow: inset 0 0 0 1px rgba(251,244,228,.28);
  transition: background .2s, transform .2s var(--ease);
}
.phero__jump a:hover { background: rgba(251,244,228,.26); transform: translateY(-2px); }

/* ---------- why local ---------- */
.pwhy { background: var(--paper); }
.pwhy__grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(26px, 5vw, 64px);
}
.pwhy__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.pwhy__points h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  color: var(--brand-700);
  /* a hairline rule instead of a bullet: three statements, not a checklist */
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pwhy__points p {
  color: var(--ink-soft);
  font-size: .98rem; line-height: 1.6;
  margin-top: 8px;
  max-width: 52ch;
}

/* ---------- the three shapes ---------- */
.pshapes { background: var(--cream); }
.pshape {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(26px, 4.5vw, 60px);
  align-items: center;
  /* scroll-margin so the #penne / #fusilli / #macaroni jumps do not land
     with the heading tucked under the sticky header */
  scroll-margin-top: 96px;
}
.pshape + .pshape { margin-top: clamp(56px, 8vw, 110px); }
.pshape--flip .pshape__art { order: 2; }
.pshape__art {
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.pshape__art picture { display: contents; }
.pshape__art img { width: 100%; height: 100%; object-fit: cover; }
.pshape__size {
  font-family: var(--font-body); font-weight: 600;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.pshape__name {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.04; letter-spacing: -0.025em;
  color: var(--brand-700);
  margin-top: 6px;
}
.pshape__desc {
  color: var(--ink-soft);
  font-size: 1.01rem; line-height: 1.62;
  margin-top: 14px;
  max-width: 46ch;
}
/* the pack itself, small and factual under the description */
.pshape__pack {
  display: flex; align-items: center; gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .88rem; font-weight: 600;
  color: var(--brand-700);
}
.pshape__pack img { height: 74px; width: auto; }

/* ---------- cross-sell back to the cassava ---------- */
.pcross { background: var(--paper); }
.pcross__grid {
  display: grid; grid-template-columns: .8fr 1.2fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.pcross__art picture { display: contents; }
.pcross__art img {
  width: 100%; height: auto;
  max-width: 340px;
  margin-inline: auto;
  display: block;
  filter: drop-shadow(0 26px 30px rgba(42,26,18,.22));
}
.pcross__lead {
  color: var(--ink-soft);
  font-size: 1.04rem; line-height: 1.6;
  max-width: 48ch;
  margin-top: 16px;
}
.pcross__grid .btn { margin-top: 26px; }

@media (max-width: 900px) {
  .pwhy__grid,
  .pcross__grid { grid-template-columns: 1fr; }
  .pshape { grid-template-columns: 1fr; gap: 22px; }
  /* the flip only means something in two columns */
  .pshape--flip .pshape__art { order: 0; }
  .pcross__art img { max-width: 240px; }
}


/* =========================================================
   404
   Shares the site header and footer now, so this only styles the panel
   between them.
   ========================================================= */
.nf {
  position: relative;
  isolation: isolate;
  background: var(--cream);
  display: grid; align-items: center;
  min-height: clamp(420px, 62vh, 620px);
  overflow: hidden;
}
.nf__rings {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  color: var(--gold);
  opacity: .3;
  pointer-events: none;
}
.nf__rings svg { width: min(150vw, 1000px); height: auto; }
.nf__inner { position: relative; z-index: 1; padding-block: clamp(40px, 7vw, 84px); }

.nf__code {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 15vw, 9rem);
  line-height: .82;
  letter-spacing: -0.05em;
  /* hollow: a marker for the reader, not a shout over the copy */
  color: transparent;
  -webkit-text-stroke: 2px var(--brand);
}
.nf__title {
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--brand-700);
  margin-top: 22px;
  max-width: 16ch;
}
.nf__text {
  color: var(--ink-soft);
  font-size: 1.04rem; line-height: 1.6;
  max-width: 46ch;
  margin-top: 14px;
}
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.nf__foot { margin-top: 26px; font-size: .9rem; color: var(--ink-soft); }
.nf__foot a { color: var(--brand-700); font-weight: 600; }
.nf__foot a:hover { color: var(--foodlab-ink); }

@media (max-width: 620px) {
  .nf__actions .btn { width: 100%; justify-content: center; }
}
