/* Styles for the rebuilt school lunch doorstop (/doorstops/lunch). */

:root {
  --lf-ink: #1d2b36;
  --lf-soft: #55636e;
  --lf-line: hsl(0, 0%, 89%);
  --lf-accent: hsl(170, 75%, 41%);
  --lf-accent-soft: hsl(170, 60%, 96%);
  --lf-radius: 14px;
  --lf-shadow: 0 6px 18px hsla(0, 0%, 0%, 0.08);
  --lf-shadow-lg: 0 14px 30px hsla(0, 0%, 0%, 0.14);
}

/* ------------------------------------------------------------- intro */

.lf-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 20px 70px;
  background: linear-gradient(170deg, #FFF9E8 0%, #FFF3F0 55%, #F2FBF7 100%);
}

/* full-bleed scene: a steady stream of food flying across the page */
.lf-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.lf-food {
  position: absolute;
  will-change: transform;
  user-select: none;
}

/* the stream, at varied speeds and heights */
.lf-food {
  font-size: clamp(30px, 4.4vw, 54px);
  animation-name: lf-chase;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
/* Each item gets its own tilt and its own wobble range (set inline per item),
   so the mob reads as a scrappy crowd rather than a row of identical spinners. */
.lf-food span {
  display: inline-block;
  animation-name: lf-wobble;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes lf-chase {
  0%   { transform: translateX(-30vw); }
  100% { transform: translateX(118vw); }
}
/* rotates between two angles supplied per element via custom properties */
@keyframes lf-wobble {
  from { transform: rotate(var(--tilt-a, -18deg)); }
  to   { transform: rotate(var(--tilt-b, 22deg)); }
}

/* a couple of them do tumble all the way round, for variety */
@keyframes lf-tumble {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.lf-food.is-tumbler span {
  animation-name: lf-tumble;
  animation-timing-function: linear;
  animation-direction: normal;
}

.lf-hero-inner { position: relative; z-index: 1; max-width: 900px; }

.lf-title {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(46px, 12vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--lf-ink);
  margin: 0;
}

/* each word fades up in turn; delays are set inline per word */
.lf-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px);
  animation: lf-word-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  margin-right: 0.22em;
}

@keyframes lf-word-in {
  to { opacity: 1; transform: translateY(0); }
}

.lf-sub {
  margin-top: 22px;
  font-size: clamp(15px, 2.4vw, 19px);
  line-height: 1.6;
  color: var(--lf-soft);
  opacity: 0;
  animation: lf-word-in 0.6s ease forwards;
  animation-delay: 1.15s;
}

.lf-scroll-cue {
  margin-top: 34px;
  opacity: 0;
  animation: lf-word-in 0.6s ease forwards;
  animation-delay: 1.45s;
}

@media (prefers-reduced-motion: reduce) {
  .lf-word, .lf-sub, .lf-scroll-cue {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .lf-food, .lf-food span { animation: none; }
  .lf-scene { opacity: 0.5; }
}

/* ------------------------------------------------------------- shell */

.lf-wrap {
  width: min(780px, 94%);
  margin: 0 auto;
  padding-top: 72px;   /* breathing room under the hero */
}

/* Sections stay on the page once revealed, so you can scroll back up and
   change an earlier choice without losing your place. */
.lf-step { display: none; }
/* each revealed section needs its own space - they stack, so without this the
   fix runs straight into the state question below it */
.lf-step.is-revealed {
  display: block;
  padding-block: 40px 8px;
}
.lf-step.is-revealed + .lf-step.is-revealed {
  border-top: 1px solid var(--lf-line);
}

.lf-divider {
  height: 1px;
  background: var(--lf-line);
  margin: 46px 0 34px;
}

/* the expert CTA that closes every option */
.lf-expert {
  margin: 34px 0 10px;
  padding: 26px 24px;
  border-radius: var(--lf-radius);
  background: var(--lf-accent-soft);
  border: 1.5px solid hsl(170, 40%, 80%);
  text-align: center;
}
.lf-expert p {
  font-size: 13.5pt;
  line-height: 1.6;
  color: var(--lf-ink);
  margin: 0 0 6px;
}
.lf-expert .lf-expert-sub {
  font-size: 11.5pt;
  color: var(--lf-soft);
  margin-bottom: 14px;
}

.lf-eyebrow {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lf-accent);
  margin-bottom: 10px;
}

.lf-h2 {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--lf-ink);
  margin: 0 0 14px;
}

.lf-lede {
  font-size: 16pt;
  line-height: 1.6;
  color: var(--lf-soft);
  margin-bottom: 26px;
}

.lf-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 8px 0;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 12pt;
  color: var(--lf-soft);
  cursor: pointer;
}
.lf-back:hover { color: var(--lf-accent); }

/* ------------------------------------------------------------- cards */

.lf-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 30px;
}
@media (min-width: 760px) {
  .lf-choices.is-three { grid-template-columns: repeat(3, 1fr); }
  .lf-choices.is-four  { grid-template-columns: repeat(2, 1fr); }
}

.lf-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  width: 100%;
  background-color: #fff;
  border: 1.5px solid var(--lf-line);
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow);
  padding: 22px 20px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lf-choice:hover {
  transform: translateY(-3px);
  box-shadow: var(--lf-shadow-lg);
  border-color: var(--lf-accent);
}
.lf-choice:focus-visible {
  outline: none;
  border-color: var(--lf-accent);
  box-shadow: 0 0 0 3px hsla(170, 75%, 41%, 0.35);
}
.lf-choice.is-active {
  border-color: var(--lf-accent);
  background-color: var(--lf-accent-soft);
}

.lf-choice-icon { font-size: 30px; line-height: 1; }
.lf-choice-title {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 17pt;
  font-weight: 700;
  color: var(--lf-ink);
  line-height: 1.2;
  margin: 0;
}
.lf-choice-meta {
  font-size: 11pt;
  color: var(--lf-soft);
  margin: 0;
}
.lf-choice-effort {
  display: inline-block;
  margin-top: 2px;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: #f1f4f6;
  font-size: 10pt;
  font-weight: 600;
  color: var(--lf-soft);
}

/* --------------------------------------------------------- step list */

.lf-steps { counter-reset: lf-step; margin: 26px 0 0; padding: 0; list-style: none; }

.lf-stepitem {
  position: relative;
  counter-increment: lf-step;
  padding-left: 58px;
  padding-bottom: 30px;
  list-style: none;
}
.lf-stepitem::before {
  content: counter(lf-step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--lf-accent);
  color: #fff;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.lf-stepitem:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px; top: 46px;
  width: 2px; height: calc(100% - 50px);
  background-color: var(--lf-line);
}
.lf-steptitle {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 15pt;
  font-weight: 600;
  color: var(--lf-ink);
  margin: 7px 0 6px;
  line-height: 1.3;
}
.lf-stepitem p { font-size: 13pt; line-height: 1.65; color: var(--lf-soft); margin: 0 0 10px; }
.lf-stepitem a { color: var(--lf-accent); text-decoration: underline; display: inline; }

/* --------------------------------------------------------- callouts */

.lf-callout {
  border-radius: var(--lf-radius);
  padding: 18px 20px;
  margin: 18px 0;
  border: 1.5px solid;
  font-size: 13pt;
  line-height: 1.6;
}
.lf-callout p { margin: 0 0 8px; font-size: 13pt; line-height: 1.6; }
.lf-callout p:last-child { margin-bottom: 0; }
.lf-callout a { text-decoration: underline; display: inline; }
/* the rule above is more specific than .lf-btn, which left the button
   display:inline and wrapped its arrow icon onto a second line */
.lf-callout a.lf-btn {
  display: inline-flex;
  text-decoration: none;
}
.lf-callout--fund { background-color: #FFF7E6; border-color: #F0C674; }
.lf-callout--info { background-color: var(--lf-accent-soft); border-color: hsl(170, 40%, 78%); }
.lf-callout--branch { background-color: #F3F0FF; border-color: #BDB0EE; }

.lf-callout-title {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14pt;
  color: var(--lf-ink);
  margin-bottom: 6px !important;
}

.lf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 999px;
  background-color: var(--lf-accent);
  color: #fff !important;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 12pt;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
}
.lf-btn:hover { filter: brightness(0.94); }
.lf-btn--ghost {
  background-color: #fff;
  color: var(--lf-ink) !important;
  border: 1.5px solid var(--lf-line);
}

/* ------------------------------------------------------ state lookup */

.lf-field { margin: 18px 0; }
.lf-label {
  display: block;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13pt;
  color: var(--lf-ink);
  margin-bottom: 7px;
}
.lf-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1.5px solid var(--lf-line);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 13pt;
  background-color: #fff;
}
.lf-input:focus {
  outline: none;
  border-color: var(--lf-accent);
  box-shadow: 0 0 0 3px hsla(170, 75%, 41%, 0.3);
}

.lf-results {
  margin-top: 6px;
  border: 1.5px solid var(--lf-line);
  border-radius: 10px;
  background: #fff;
  max-height: 260px;
  overflow-y: auto;
}
.lf-results:empty { display: none; }
.lf-result {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #eef1f2;
  padding: 11px 14px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 12pt;
}
.lf-result:last-child { border-bottom: none; }
.lf-result:hover, .lf-result:focus-visible { background-color: var(--lf-accent-soft); outline: none; }
.lf-result-name { font-weight: 600; color: var(--lf-ink); display: block; }
.lf-result-where { font-size: 10.5pt; color: var(--lf-soft); display: block; }

/* --------------------------------------------------------- flyers */

.lf-flyers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0;
}
@media (min-width: 700px) { .lf-flyers { grid-template-columns: 1fr 1fr; } }

.lf-flyer {
  border-radius: var(--lf-radius);
  overflow: hidden;
  box-shadow: var(--lf-shadow);
  border: 1px solid var(--lf-line);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.lf-flyer-art {
  padding: 34px 24px;
  text-align: center;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.lf-flyer-big {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}
.lf-flyer-small {
  font-family: 'Poppins', sans-serif;
  font-size: 12pt;
  line-height: 1.45;
  margin: 0;
  max-width: 30ch;
}
.lf-flyer-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--lf-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
}
.lf-flyer-note { font-size: 10.5pt; color: var(--lf-soft); margin: 0; }

.lf-flyer--a { background: #FFE45E; color: #1d2b36; }
.lf-flyer--a .lf-flyer-big { color: #C0392B; }
.lf-flyer--b { background: #1d2b36; color: #fff; }
.lf-flyer--b .lf-flyer-big { color: #7BE8C9; }
.lf-flyer--b .lf-flyer-small { color: #d8e0e6; }
.lf-flyer--c { background: #FF6B6B; color: #fff; }
.lf-flyer--c .lf-flyer-big { color: #FFF7E6; }
.lf-flyer--d { background: #D6F5E3; color: #14503c; }
.lf-flyer--d .lf-flyer-big { color: #0d7a55; }

.lf-copybtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1.5px solid var(--lf-line);
  border-radius: 999px;
  background: #fff;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 11pt;
  font-weight: 600;
  color: var(--lf-ink);
  cursor: pointer;
  flex-shrink: 0;
}
.lf-copybtn:hover { border-color: var(--lf-accent); color: var(--lf-accent); }
.lf-copybtn.is-copied { background: var(--lf-accent); border-color: var(--lf-accent); color: #fff; }

/* ------------------------------------------------------- school card */

.lf-schoolcard {
  border: 1.5px solid var(--lf-line);
  border-radius: var(--lf-radius);
  padding: 20px;
  margin: 20px 0;
  background: #fff;
  box-shadow: var(--lf-shadow);
}
.lf-schoolcard h3 {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 16pt;
  margin: 0 0 4px;
  color: var(--lf-ink);
}
.lf-schoolcard .lf-where { color: var(--lf-soft); font-size: 12pt; margin: 0 0 14px; }
.lf-badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11pt;
  font-weight: 600;
  margin-bottom: 12px;
}
.lf-badge--cep  { background: #D6F5E3; color: #0d7a55; }
.lf-badge--nslp { background: #E3ECFB; color: #24487f; }
.lf-badge--none { background: #FFE1E1; color: #9c2b2b; }
.lf-badge--unknown { background: #EFF1F3; color: #55636e; }

.lf-muted { font-size: 11pt; color: var(--lf-soft); line-height: 1.55; }
.lf-muted a { color: var(--lf-accent); text-decoration: underline; display: inline; }
