/* Egg & Bunz — Homepage
   Art direction: "blend" mockup (design-options/option-e-blend-popup-rsvp.png).
   Warm-white page, grape pattern moments, chunky pop shadows, picnic pop-ups. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: var(--bw-base) solid var(--eb-charcoal-800);
  padding: 0 var(--sp-5);
  height: var(--control-h-md);
  box-shadow: var(--shadow-pop-sm);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--eb-charcoal-800); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--eb-charcoal-800); }
.btn--primary { background: var(--action-primary); color: var(--action-primary-text); }
.btn--accent { background: var(--action-accent); color: var(--text-on-yellow); }
.btn--lg { height: var(--control-h-lg); padding: 0 var(--sp-6); font-size: var(--fs-body-lg); }

/* ── Chips & badges ──────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-sm);
  border-radius: var(--radius-pill);
  padding: var(--sp-1) var(--sp-3);
}
.chip--yellow { background: var(--eb-yellow-100); color: var(--eb-charcoal-800); }
.chip--outline { background: transparent; color: var(--text-muted); border: 1px solid var(--eb-charcoal-400); }
.chip--date {
  background: var(--eb-egg-yellow);
  color: var(--eb-charcoal-800);
  border: var(--bw-base) solid var(--eb-charcoal-800);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-4);
}
.badge--grape { background: var(--eb-grape); color: var(--eb-egg-yellow); }
.badge--spots { background: var(--action-primary); color: var(--eb-charcoal-800); border: var(--bw-base) solid var(--eb-charcoal-800); }

/* ── Section headings ────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: clamp(2rem, 4.5vw, var(--fs-display-md));
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-heading);
  color: var(--text-strong);
  margin: 0;
}
.section-sub {
  font-size: var(--fs-body-lg);
  color: var(--text-body);
  margin: var(--sp-3) auto 0;
  max-width: 560px;
  text-wrap: pretty;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--sp-4) var(--gutter);
}
.nav__brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.nav__logo { width: 52px; height: auto; }
.nav__name {
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: var(--fs-h3);
  color: var(--text-strong);
  letter-spacing: var(--ls-heading);
  white-space: nowrap;
}
.nav__amp { color: var(--eb-egg-yellow); }
.nav__links { display: flex; gap: var(--sp-6); margin-left: auto; }
.nav__links a {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  color: var(--text-strong);
  text-decoration: none;
}
.nav__links a:hover { color: var(--action-primary-press); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: var(--sp-8);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--sp-8) var(--gutter) var(--sp-10);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: clamp(2.75rem, 6.5vw, var(--fs-display-xl));
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--text-strong);
  margin: 0 0 var(--sp-4);
}
.hero__hl { color: var(--eb-egg-yellow); }
.hero__sub {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-medium);
  color: var(--text-body);
  margin: 0 0 var(--sp-6);
}
.hero__note {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  margin: var(--sp-4) 0 0;
}

/* grape pattern blob + sticker dish */
.hero__art { display: flex; justify-content: center; }
.hero__blob {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1;
  background-color: var(--eb-grape);
  background-image: url('../assets/pattern-purple.png');
  background-size: 180px;
  border-radius: 58% 42% 55% 45% / 52% 48% 42% 58%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__dish {
  width: 78%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 46% 54% 48% 52% / 52% 46% 54% 48%;
  border: 8px solid var(--eb-white);
  box-shadow: var(--shadow-pop), var(--shadow-lg);
  transform: rotate(-4deg);
}

/* Hero slider: the dish frame stays put; the five dishes slide through it. */
.hero__slider {
  position: relative;
  overflow: hidden;
  background: var(--eb-white);
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(103%);
  transition: transform 0.7s cubic-bezier(0.22, 0.9, 0.34, 1);
}
.hero__slide.is-active {
  transform: translateX(0);
}
.hero__slide.is-prev {
  transform: translateX(-103%);
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}
.hero__spark {
  position: absolute;
  top: 6%;
  left: 8%;
  color: var(--eb-egg-yellow);
  font-size: 2rem;
}

/* ── Menu ────────────────────────────────────────────────── */
.menu {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--sp-9) var(--gutter);
  text-align: center;
}
.menu__sun { width: 48px; height: 28px; margin: 0 auto var(--sp-2); display: block; }
.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  text-align: left;
}
.dish-card {
  /* button reset */
  appearance: none;
  font: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: var(--bw-base) solid var(--eb-charcoal-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-bounce);
}
.dish-card:hover, .dish-card:focus-visible { transform: translateY(var(--hover-lift)) rotate(-0.5deg); }
.dish-card:focus-visible { outline: 3px solid var(--eb-cheddar-orange); outline-offset: 2px; }
.dish-card__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: var(--bw-base) solid var(--eb-charcoal-800); }
.dish-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.dish-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-4) var(--sp-4) var(--sp-5); }
.dish-card__name {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  color: var(--text-strong);
  margin: 0 0 var(--sp-2);
}
.dish-card__desc { display: block; font-size: var(--fs-body-sm); margin: 0 0 var(--sp-4); color: var(--text-body); }
.dish-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: auto; }
.dish-card__foot .chip { white-space: nowrap; }
.dish-card__hint {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--action-primary-press);
  white-space: nowrap;
}
.dish-card:hover .dish-card__hint { text-decoration: underline; }

/* ── Dish story modal ────────────────────────────────────── */
.story {
  width: min(480px, calc(100vw - 2 * var(--sp-5)));
  padding: 0;
  border: var(--bw-chunky) solid var(--eb-charcoal-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop), var(--shadow-lg);
  background: var(--surface-card);
  overflow: hidden;
}
.story::backdrop { background: rgba(27, 27, 27, 0.55); }
.story__gingham {
  height: 16px;
  border-bottom: var(--bw-base) solid var(--eb-charcoal-800);
  background:
    repeating-linear-gradient(90deg, rgba(228,87,46,0.55) 0 12px, transparent 12px 24px),
    repeating-linear-gradient(0deg, rgba(228,87,46,0.55) 0 12px, transparent 12px 24px),
    var(--eb-white);
}
.story__close {
  position: absolute;
  top: 28px;
  right: var(--sp-4);
  z-index: 1;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-strong);
  background: var(--eb-white);
  border: var(--bw-base) solid var(--eb-charcoal-800);
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-pop-sm);
}
.story__close:active { transform: translate(2px, 2px); box-shadow: none; }
.story__photo { aspect-ratio: 16 / 9; border-bottom: var(--bw-base) solid var(--eb-charcoal-800); }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__body { padding: var(--sp-5) var(--sp-6) var(--sp-6); text-align: left; }
.story__name {
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: var(--fs-h2);
  color: var(--text-strong);
  margin: var(--sp-3) 0 var(--sp-4);
}
.story__text p { font-size: var(--fs-body); margin: 0 0 var(--sp-4); text-wrap: pretty; }
.story__info { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin: 0 0 var(--sp-4); }
.story__allergens { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.story__calories { font-size: var(--fs-body-sm); color: var(--text-muted); white-space: nowrap; }
.story__tagline {
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: var(--fs-body-lg);
  color: var(--eb-charcoal-800);
  background: linear-gradient(transparent 62%, var(--eb-yellow-200) 62%);
  display: inline-block;
  margin: var(--sp-2) 0 var(--sp-5);
}
.story__cta { display: inline-flex; }
@media (max-width: 640px) {
  .story__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
}

/* ── Pop-ups ─────────────────────────────────────────────── */
.popups {
  position: relative;
  background: var(--eb-beige-100);
  padding: var(--sp-10) var(--gutter) var(--sp-12);
  text-align: center;
  overflow: hidden;
}
.popups__head { max-width: var(--container-md); margin: 0 auto; }
.popups__head .badge--grape { margin-bottom: var(--sp-4); }
.popups__umbrella { width: 36px; height: 36px; vertical-align: -4px; }
.popups__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  max-width: var(--container-lg);
  margin: var(--sp-8) auto 0;
  text-align: left;
}
.event-card {
  background: var(--surface-card);
  border: var(--bw-base) solid var(--eb-charcoal-800);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.event-card--soon { opacity: 0.82; }
/* red & white picnic gingham ribbon */
.event-card__gingham {
  height: 18px;
  border-bottom: var(--bw-base) solid var(--eb-charcoal-800);
  background:
    repeating-linear-gradient(90deg, rgba(228,87,46,0.55) 0 12px, transparent 12px 24px),
    repeating-linear-gradient(0deg, rgba(228,87,46,0.55) 0 12px, transparent 12px 24px),
    var(--eb-white);
}
.event-card__body { padding: var(--sp-5); display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.event-card__place {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  color: var(--text-strong);
  margin: 0;
}
.event-card__meta { font-size: var(--fs-body-sm); margin: 0; color: var(--text-body); }
.popups__cta { margin-top: var(--sp-8); }
.popups__note {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  margin: var(--sp-3) 0 0;
}

/* picnic corner accent */
.popups__picnic {
  position: absolute;
  right: -30px;
  bottom: -14px;
  width: 220px;
  height: 90px;
  transform: rotate(-6deg);
  pointer-events: none;
}
.picnic__blanket {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: var(--bw-base) solid var(--eb-charcoal-800);
  background:
    repeating-linear-gradient(90deg, rgba(228,87,46,0.5) 0 16px, transparent 16px 32px),
    repeating-linear-gradient(0deg, rgba(228,87,46,0.5) 0 16px, transparent 16px 32px),
    var(--eb-white);
}
.picnic__egg {
  position: absolute;
  top: -22px;
  left: 34px;
  width: 58px;
  height: 46px;
  background: var(--eb-white);
  border: var(--bw-base) solid var(--eb-charcoal-800);
  border-radius: 55% 45% 60% 40% / 55% 60% 40% 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.picnic__yolk {
  width: 22px;
  height: 22px;
  background: var(--eb-egg-yellow);
  border: var(--bw-base) solid var(--eb-charcoal-800);
  border-radius: var(--radius-round);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background-color: var(--eb-grape);
  /* purple wash over the tile so the pattern reads as a subtle watermark */
  background-image:
    linear-gradient(rgba(139, 0, 191, 0.88), rgba(139, 0, 191, 0.88)),
    url('../assets/pattern-purple.png');
  background-size: auto, 220px;
  color: var(--text-on-dark);
  padding: var(--sp-9) var(--gutter) var(--sp-5);
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-9);
  align-items: start;
  max-width: var(--container-lg);
  margin: 0 auto;
  background: rgba(27, 27, 27, 0.28);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-7);
}
.footer__logo { width: 110px; }
.footer__tag {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  color: var(--eb-egg-yellow);
  margin: var(--sp-3) 0 0;
}
.footer__links { display: flex; flex-direction: column; gap: var(--sp-2); justify-self: center; }
.footer__links-title {
  font-weight: var(--fw-bold);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--eb-egg-yellow);
  margin-bottom: var(--sp-2);
}
.footer__links a { color: var(--text-on-dark); text-decoration: none; font-weight: var(--fw-medium); }
.footer__links a:hover { color: var(--eb-egg-yellow); }
.footer__cta { max-width: 260px; display: flex; flex-direction: column; align-items: flex-start; }
.footer__cta-copy { font-size: var(--fs-body-sm); margin: 0 0 var(--sp-4); }
.footer__legal {
  text-align: center;
  font-size: var(--fs-body-sm);
  color: var(--eb-warm-white);
  margin: var(--sp-6) 0 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .menu__grid, .popups__grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: var(--sp-6); }
  .hero__copy { order: 1; }
  .hero__art { order: 0; }
  .hero__blob { width: min(340px, 88vw); }
  .footer__inner { grid-template-columns: 1fr; gap: var(--sp-6); text-align: center; }
  .footer__links, .footer__cta { justify-self: center; align-items: center; }
  .footer__cta { max-width: none; }
  .footer__brand { display: flex; flex-direction: column; align-items: center; }
}
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; row-gap: var(--sp-3); }
  .nav__links { gap: var(--sp-4); }
  .nav__cta { order: 3; width: 100%; }
}

/* ── Live event cards (rendered by home.js) ─────────────── */
a.event-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
a.event-card--link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--eb-charcoal-800);
}
a.event-card--link:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--eb-charcoal-800); }
.event-card__desc { font-size: var(--fs-body-sm); color: var(--text-body); margin: 0; }
.event-card__go {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-sm);
  color: var(--action-primary-press);
}
.popups__grid--empty { display: block; max-width: 560px; }
.popups__empty {
  background: var(--surface-card);
  border: var(--bw-base) solid var(--eb-charcoal-800);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: var(--sp-6);
  text-align: center;
}
.popups__empty-copy {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-lg);
  color: var(--text-strong);
  margin: 0 0 var(--sp-4);
}

/* ── Notify-me capture ──────────────────────────────────── */
.notify-slot { max-width: 640px; margin: var(--sp-7) auto 0; padding: 0 var(--gutter); }
.notify {
  background: var(--surface-card);
  border: var(--bw-base) solid var(--eb-charcoal-800);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: var(--sp-5);
  text-align: left;
}
.notify__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-lg);
  color: var(--text-strong);
  margin: 0 0 var(--sp-3);
}
.notify__row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.notify__toggle {
  display: inline-flex;
  border: var(--bw-base) solid var(--eb-charcoal-800);
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex: 0 0 auto;
}
.notify__opt {
  min-height: 44px;
  padding: 0 var(--sp-4);
  border: none;
  background: var(--surface-card);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-sm);
  color: var(--text-strong);
  cursor: pointer;
}
.notify__opt.is-on { background: var(--eb-egg-yellow); }
.notify__input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 44px;
  border: var(--bw-base) solid var(--eb-beige-300);
  border-radius: var(--radius-md);
  padding: 0 var(--sp-4);
  font-family: var(--font-body);
  font-size: 1rem; /* ≥16px: no iOS zoom-jump */
  color: var(--text-body);
  background: var(--eb-white);
}
.notify__submit { flex: 0 0 auto; min-height: 44px; }
.notify__msg { margin: var(--sp-2) 0 0; font-size: var(--fs-body-sm); min-height: 1em; }
.notify__msg--error { color: var(--status-error); font-weight: var(--fw-semibold); }
.notify__done {
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: var(--fs-h3);
  color: var(--text-strong);
  margin: 0;
  text-align: center;
}
.notify-slot--footer { margin-top: var(--sp-8); }
.popups__empty .notify { box-shadow: none; border: none; padding: 0; }

/* ── Micro-FAQ ──────────────────────────────────────────── */
.faq { padding: var(--sp-9) var(--gutter); text-align: center; }
.faq__list { max-width: 640px; margin: var(--sp-6) auto 0; text-align: left; display: grid; gap: var(--sp-3); }
.faq__item {
  background: var(--surface-card);
  border: var(--bw-base) solid var(--eb-charcoal-800);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop-sm);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-lg);
  color: var(--text-strong);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: var(--fs-h3);
  color: var(--eb-cheddar-orange);
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item[open] summary { background: var(--eb-yellow-100); }
.faq__item p { margin: 0; padding: var(--sp-3) var(--sp-5) var(--sp-4); color: var(--text-body); }
.faq__item p a { color: var(--eb-grape); font-weight: var(--fw-semibold); }

@media (max-width: 640px) {
  .notify__row { flex-direction: column; align-items: stretch; }
  .notify__toggle { align-self: flex-start; }
}
