/* ============================================================
   ZEN BOWL — landing.css  (LANDING PAGE ONLY — index.html)
   Depends on shared.css tokens. Hero + logo animation, scroll reveal,
   story, menu teaser, order teaser, visit, newsletter, contact, footer.
   The order page does not load this file, so editing it cannot affect
   ordering.
   ============================================================ */

/* ---------- 4. Hero + logo animation ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: calc(var(--header-h) + var(--space-4)) var(--space-5);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__wash {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(42% 38% at 28% 24%, rgba(138, 155, 124, .16), transparent 70%),
    radial-gradient(40% 36% at 74% 70%, rgba(176, 137, 104, .12), transparent 70%);
  pointer-events: none;
}

.hero__decor { position: absolute; inset: 0; pointer-events: none; }

.float-leaf {
  position: absolute;
  width: clamp(26px, 4vw, 44px);
  color: var(--sage);
  opacity: .55;
  animation: float 9s ease-in-out infinite alternate;
}

.float-leaf--1 { top: 18%; left: 10%; animation-delay: 0s; }
.float-leaf--2 { top: 30%; right: 12%; animation-delay: -3s; animation-duration: 11s; color: var(--wood); opacity: .4; }
.float-leaf--3 { bottom: 16%; left: 20%; animation-delay: -6s; animation-duration: 7s; opacity: .35; }

.logo-mark--hero {
  width: clamp(156px, 24vw, 228px);
  height: auto;
}

/* Draw-on: pathLength=1 makes dasharray math trivial */
.lp {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s var(--ease-out) forwards;
}

.lp--bowl  { animation-delay: .2s; }
.lp--rim1, .lp--rim2 { animation-delay: .5s; }
.lp--foot  { animation-delay: .7s; }
.lp--stem  { animation-delay: .9s; }
.lp--leaf1 { animation-delay: 1.3s; }  /* left almond leaf */
.lp--leaf2 { animation-delay: 1.5s; }  /* right blade completes the sprout */
.lp--side1, .lp--side2 { animation-delay: 1.8s; }

/* Wordmark "handwriting": each letter draws itself in reading order —
   Z-e-n · B-o-w-l — so the name appears as if written by an unseen hand.
   Same pathLength=1 dash trick as .lp; delays start after the bowl is well
   under way and flow like natural writing (a longer pause at the word gap). */
.wl {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw .3s var(--ease-out) forwards;
}
.wl--z { animation-delay: 1.20s; }
.wl--e { animation-delay: 1.40s; }
.wl--n { animation-delay: 1.58s; }
.wl--b { animation-delay: 1.86s; }   /* space between the two words */
.wl--o { animation-delay: 2.04s; }
.wl--w { animation-delay: 2.20s; }
.wl--l { animation-delay: 2.42s; }

/* Fade-up entrance for hero text (staggered via --fade-delay) */
.fade-item {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up .8s var(--ease-out) forwards;
  animation-delay: var(--fade-delay, 0s);
}

.wordmark--hero {
  width: clamp(190px, 32vw, 320px);
  margin: var(--space-2) auto 0;
}

.hero__title {
  font-size: var(--step-hero);
  font-weight: 500;
  margin: var(--space-1) 0 var(--space-2);
}

.hero__subtitle {
  color: var(--charcoal-soft);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 34rem;
  margin-bottom: var(--space-4);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  translate: -50% 0;
  padding: .6rem;
}

.hero__scroll-arrow {
  display: block;
  width: 12px; height: 12px;
  border-right: 2px solid var(--charcoal-soft);
  border-bottom: 2px solid var(--charcoal-soft);
  transform: rotate(45deg);
  animation: bob 1.8s ease-in-out infinite;
}

/* Countdown */
.countdown__label {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: var(--space-2);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(4.2rem, 5.5rem));
  gap: clamp(.5rem, 2vw, 1rem);
  justify-content: center;
}

.countdown__cell {
  background: var(--white);
  border: 1px solid rgba(46, 43, 40, .07);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: .8rem .4rem .6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--maroon);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.countdown__num.tick { animation: tick .35s var(--ease-out); }

.countdown__unit {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.countdown-open__title {
  font-size: var(--step-hero);
  color: var(--maroon);
  margin-bottom: var(--space-1);
}

.countdown-open__sub { color: var(--charcoal-soft); }

/* ---------- 5. Scroll reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur) var(--ease-out) var(--reveal-delay, 0s),
    transform var(--dur) var(--ease-out) var(--reveal-delay, 0s);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 6. Story ---------- */
.story__inner {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.story__art { position: relative; width: fit-content; margin-inline: auto; }

.story__bowl {
  width: clamp(200px, 30vw, 320px);
  color: var(--maroon);
  opacity: .9;
}

/* Handcrafted "fresh noodle" badge, nestled at the bowl's corner. */
.story__noodle {
  position: absolute;
  right: -5%;
  bottom: -3%;
  width: clamp(80px, 13vw, 122px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(46, 43, 40, .16));
}

.steam {
  color: var(--sage);
  animation: steam-drift 5s ease-in-out infinite;
}

.steam--2 { animation-delay: 1.2s; }
.steam--3 { animation-delay: 2.4s; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  margin-top: var(--space-3);
}

.chip {
  background: var(--white);
  border: 1px solid rgba(138, 155, 124, .45);
  color: var(--charcoal-soft);
  font-size: .85rem;
  font-weight: 500;
  padding: .45rem 1rem;
  border-radius: var(--radius-pill);
}

/* ---------- 7. Menu cards ---------- */
.menu { text-align: center; }

/* ---------- 8. Order ---------- */
.order__inner { text-align: center; }

/* The brand-kit "fresh noodle" symbol, sitting above the section heading. */
.order__mark {
  display: block;
  width: clamp(60px, 9vw, 88px);
  height: auto;
  color: var(--maroon);
  margin: 0 auto var(--space-2);
}

.order__sub { color: var(--charcoal-soft); }

/* Preferred path: our own ordering, emphasised + the points perk. */
.order__primary {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.order__cta { font-size: 1.05rem; padding: .85rem 2rem; }
.order__perk {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: 32rem;
  color: var(--sage-dark);
  font-weight: 500;
  font-size: .95rem;
}
.order__perk-star { color: var(--wood-dark); font-size: 1.15em; line-height: 1; }

/* Secondary path: third-party apps, set apart under a quiet label. */
.order__platforms { margin-top: var(--space-4); }
.order__platforms-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--charcoal-soft);
  margin-bottom: var(--space-2);
}

.order__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

/* ---------- 8b. Membership (loyalty sign-up CTA) ---------- */
.membership__inner { text-align: center; }

.membership__sub {
  color: var(--charcoal-soft);
  max-width: 40rem;
  margin: var(--space-1) auto 0;
}

.membership__perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-3) 0;
}

.membership__perk {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
}

.membership__perk-ic { color: var(--wood-dark); font-size: 1.15em; line-height: 1; }

.membership__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* ---------- 9. Visit ---------- */
.visit__grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.visit__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}

.visit__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.visit__info {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}

.visit__heading { font-size: var(--step-h3); margin-bottom: .3rem; }

.visit__address { font-style: normal; color: var(--charcoal-soft); margin-bottom: var(--space-1); }

.visit__mode { color: var(--maroon); font-weight: 500; }

.visit__hours-title {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  margin: var(--space-3) 0 var(--space-1);
}

.visit__hours-note { font-weight: 400; color: var(--charcoal-soft); font-size: .85rem; }

.hours { border-collapse: collapse; width: 100%; max-width: 22rem; }

.hours th, .hours td {
  text-align: left;
  padding: .45rem 0;
  border-bottom: 1px dashed rgba(176, 137, 104, .5);
  font-size: .95rem;
}

.hours th { font-weight: 500; color: var(--charcoal); }
.hours td { color: var(--charcoal-soft); text-align: right; }

/* ---------- 10. Newsletter ---------- */
.newsletter__inner {
  max-width: 620px;
  text-align: center;
}

.newsletter__sub { color: var(--charcoal-soft); margin-bottom: var(--space-3); }

/* ---------- 11. Contact ---------- */
.contact__grid {
  display: grid;
  gap: var(--space-4);
}

.contact__id {
  font-size: .9rem;
  color: var(--charcoal-soft);
}

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--beige);
  padding-block: var(--space-5) var(--space-3);
}

.site-footer .logo-mark,
.site-footer .wordmark { color: var(--beige); }

.site-footer__inner {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(234, 224, 207, .18);
}

.wordmark--footer {
  height: 1.7rem;
  width: auto;
  margin: var(--space-1) 0 .2rem;
}

.site-footer__address { color: rgba(234, 224, 207, .75); font-size: .92rem; }

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.site-footer__nav a {
  color: var(--beige);
  text-decoration: none;
  font-size: .95rem;
  width: fit-content;
}

.site-footer__nav a:hover { color: var(--white); text-decoration: underline; }

.site-footer__social-title {
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: var(--space-1);
}

.social-links { display: flex; gap: var(--space-1); align-items: center; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--beige);
  padding: .5rem;
  border-radius: 10px;
  transition: color .25s ease, background-color .25s ease;
}

.social-link svg { width: 22px; height: 22px; flex: none; }

.social-link:hover { color: var(--white); background: rgba(255, 255, 255, .08); }

.site-footer__legal {
  padding-top: var(--space-3);
  font-size: .8rem;
  color: rgba(234, 224, 207, .6);
}

.site-footer__legal p { margin-bottom: .3rem; }

.site-footer__legal-link { color: rgba(234, 224, 207, .85); text-decoration: underline; }
.site-footer__legal-link:hover { color: var(--beige); }

/* Phone / email, filled from config.js (hidden until they are set). */
.visit__contact, .contact__direct { margin-top: var(--space-1); font-weight: 500; }
.visit__contact:empty, .contact__direct:empty { display: none; }
.visit__contact a, .contact__direct a { color: var(--maroon); }

/* ---------- Reduced motion (keep last — see shared.css §18) ----------
   These selectors are re-declared above with animations/initial-hidden
   states, so the overrides must live HERE, after them: an override in
   shared.css loses the cascade to this file and silently does nothing. */
@media (prefers-reduced-motion: reduce) {
  .lp, .wl { stroke-dashoffset: 0; animation: none; }
  .fade-item { opacity: 1; transform: none; animation: none; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .float-leaf, .steam, .hero__scroll-arrow { animation: none; }
}
