/* ==========================================================================
   Momo Crave V4 — interaction layer
   Teal from the badge logo; motion is short and snappy, never floaty.
   Everything here degrades to the static site when motion is reduced.
   ========================================================================== */
:root {
  --teal: #048495;
  --teal-deep: #035863;
  --ink: #111;
  --cream: #fbf0d9;
  --snap: cubic-bezier(.2, .9, .25, 1.15);
}

/* ---------- hero: photo is cropped so the momo pile sits on the centre line;
   65% lowers it so the pile, not the plate rim, is behind the logo ---------- */
#section-home.site-cover { background-position: center 55%; }

/* ---------- mobile nav bar: off-white instead of black ---------- */
@media (max-width: 991px) {
  .site-navbar-light, .site-navbar-light.scrolled { background: #f7f5f0 !important; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
  .site-navbar-light .navbar-toggler { color: #333 !important; border-color: rgba(0, 0, 0, .25) !important; }
  .site-navbar-light .navbar-toggler:focus { outline: none; box-shadow: none; }
  .site-navbar-light .navbar-toggler:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
  .site-navbar-light .navbar-nav > .nav-item > .nav-link { color: #333 !important; }
  .site-navbar-light .navbar-nav > .nav-item.active > .nav-link,
  .site-navbar-light .navbar-nav > .nav-item > .nav-link:hover { color: var(--teal) !important; }
}

/* ---------- scroll progress ---------- */
.mc-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--teal); transform-origin: 0 50%; transform: scaleX(0);
  z-index: 3000; pointer-events: none;
}

/* ---------- The Momo Line: station sign + arrivals board + strip map ---------- */
.mc-metro {
  background: #111; color: #fff; position: relative; z-index: 2;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 26px 0 22px;
}
.mc-metro::before { /* white rule along the top of an MTA station sign */
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: #fff; opacity: .9;
}
.mc-metro__top {
  max-width: 1140px; margin: 0 auto; padding: 0 15px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center;
}

/* route bullets: circle = local, diamond = express (spicy) */
.mc-route {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--teal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 19px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.mc-route--7 { background: #b933ad; width: 46px; height: 46px; flex-basis: 46px; font-size: 27px; }
.mc-route--express { border-radius: 4px; transform: rotate(45deg) scale(.86); }
.mc-route--sm { width: 20px; height: 20px; flex-basis: 20px; font-size: 11px; vertical-align: middle; margin-right: 6px; }
.mc-route__t { display: inline-block; }
.mc-route--express .mc-route__t { transform: rotate(-45deg); }

.mc-metro__station { display: flex; align-items: center; gap: 14px; }
.mc-metro__name strong { display: block; font-size: 24px; letter-spacing: -.01em; line-height: 1.1; }
.mc-metro__name small { display: block; font-size: 12px; color: #9a9a9a; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.mc-metro__legend { display: grid; gap: 8px; font-size: 12px; color: #9a9a9a; letter-spacing: .06em; }

/* arrivals board: dot-matrix panel */
.mc-board {
  position: relative; height: 92px; overflow: hidden; border-radius: 8px;
  background: #050505; border: 2px solid #2a2a2a;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 30px rgba(4, 132, 149, .12);
}
.mc-board::after { /* LED dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, transparent 0 45%, rgba(0, 0, 0, .55) 46%) 0 0 / 3px 3px;
}
.mc-board__rows { transition: transform .45s cubic-bezier(.5, 0, .2, 1); }
.mc-row {
  height: 46px; display: grid; grid-template-columns: 22px 34px 1fr auto; gap: 12px; align-items: center;
  padding: 0 16px; cursor: inherit;
  font-family: "DotGothic16", "Courier New", monospace; font-size: 22px; color: #eafcff;
  text-shadow: 0 0 6px rgba(70, 210, 230, .65);
}
.mc-row + .mc-row { border-top: 1px solid #161616; }
.mc-row__n { color: #9fdde6; }
.mc-row .mc-route { width: 28px; height: 28px; flex-basis: 28px; font-size: 15px; text-shadow: none; }
.mc-row__dest { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-row__eta { font-variant-numeric: tabular-nums; }
.mc-row__eta.is-now { color: #fff; animation: mc-blink 1s steps(2, end) infinite; }
@keyframes mc-blink { 50% { opacity: .25; } }

/* strip map: stations on the teal line, a momo train rides it */
.mc-strip { position: relative; max-width: 1140px; margin: 26px auto 0; padding: 0 15px; height: 64px; }
.mc-strip__line { position: absolute; left: 15px; right: 15px; top: 14px; height: 5px; border-radius: 3px; background: var(--teal); }
.mc-strip__stops { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.mc-stopbtn {
  all: unset; display: flex; flex-direction: column; align-items: center; gap: 9px; width: 90px; margin: 0 -25px;
  font-size: 12px; letter-spacing: .04em; color: #8c8c8c; text-align: center; cursor: inherit;
  transition: color .25s;
}
.mc-stopbtn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }
.mc-stopbtn__dot {
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); margin-top: 6px;
  transition: transform .3s var(--snap), background .25s;
}
.mc-stopbtn.is-spicy .mc-stopbtn__dot { border-radius: 2px; transform: rotate(45deg); }
.mc-stopbtn:hover, .mc-stopbtn.is-here { color: #fff; }
.mc-stopbtn:hover .mc-stopbtn__dot { transform: scale(1.35); }
.mc-stopbtn.is-spicy:hover .mc-stopbtn__dot { transform: rotate(45deg) scale(1.35); }
.mc-stopbtn.is-here .mc-stopbtn__dot { background: var(--teal); border-color: #fff; }
.mc-strip__train {
  position: absolute; top: -12px; left: 15px; width: 40px; height: 40px; pointer-events: none;
  transform: translateX(-50%); transition: left 1.1s cubic-bezier(.6, 0, .25, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5));
}
.mc-strip__train.is-moving { animation: mc-ride .22s ease-in-out infinite alternate; }
@keyframes mc-ride { to { margin-top: -3px; } }

/* menu flash when you arrive from the Momo Line */
.menu-item.mc-arrived { animation: mc-arrive 1.8s ease-out; border-radius: 70px; }
@keyframes mc-arrive { 0%, 40% { background: rgba(4, 132, 149, .16); } 100% { background: transparent; } }

@media (max-width: 991px) {
  .mc-metro__top { grid-template-columns: 1fr; gap: 18px; }
  .mc-metro__legend { grid-auto-flow: column; justify-content: start; gap: 18px; }
  /* the sideways-scrolling strip clips anything above it, so give the train headroom */
  .mc-strip { overflow-x: auto; overflow-y: hidden; height: 96px; padding-top: 22px; margin-top: 10px; }
  .mc-strip__line { top: 36px; }
  .mc-strip__train { top: 10px; }
  .mc-strip { scrollbar-width: none; }
  .mc-strip::-webkit-scrollbar { display: none; }
  .mc-strip__stops { min-width: 900px; padding: 0 20px; }
  .mc-strip__line { right: auto; width: 920px; }
}
@media (max-width: 575px) {
  .mc-metro__name strong { font-size: 20px; }
  .mc-row { font-size: 17px; grid-template-columns: 16px 26px 1fr auto; gap: 9px; padding: 0 12px; }
  .mc-row .mc-route { width: 24px; height: 24px; font-size: 13px; }
}

/* ---------- checker divider: squares pop in when the header is reached ---------- */
.site-section h2.display-4::after { clip-path: inset(0 100% 0 0); }
.site-section h2.display-4.mc-in::after {
  clip-path: inset(0 0 0 0);
  transition: clip-path .6s steps(4, end);
}

/* ---------- buttons: magnetic + offset shadow ---------- */
.btn.btn-primary {
  transition: background .2s, box-shadow .2s var(--snap), translate .25s var(--snap);
  box-shadow: 0 0 0 0 var(--ink);
}
.btn.btn-primary:hover { box-shadow: 4px 4px 0 0 var(--ink); }
.btn.btn-primary:active { box-shadow: 1px 1px 0 0 var(--ink); }

/* ---------- About: pill gallery, hovered photo widens to show more ---------- */
.pill {
  transition: flex-grow .6s cubic-bezier(.65, 0, .2, 1), box-shadow .35s;
  box-shadow: 0 18px 40px rgba(4, 132, 149, .22), 0 4px 10px rgba(0, 0, 0, .08) !important;
}
.pill img { transition: transform .8s cubic-bezier(.65, 0, .2, 1); }
@media (hover: hover) {
  .pill-row:hover .pill { flex-grow: .75; }
  .pill-row .pill:hover { flex-grow: 1.9;
    box-shadow: 0 28px 60px rgba(4, 132, 149, .32), 0 6px 14px rgba(0, 0, 0, .1) !important; }
  .pill:hover img { transform: scale(1.04); }
}

/* ---------- Menu: plates spin, names slide ---------- */
.menu-item { position: relative; border-radius: 70px; padding: 10px 14px 10px 10px; margin-left: -10px;
  transition: background .25s, translate .25s var(--snap); }
.menu-item img { transition: transform .5s var(--snap), box-shadow .3s; }
/* the plate cut-outs have a thin white ring; clip it so it doesn't show on the light-grey menu background */
#section-menu .menu-item img { clip-path: circle(46.5% at 50% 50%); }
.menu-item h5 { transition: color .2s, translate .25s var(--snap); }
.menu-item:hover { background: rgba(4, 132, 149, .06); }
.menu-item:hover img { transform: rotate(14deg) scale(1.08); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.menu-item:hover h5 { color: var(--teal); translate: 6px 0; }

/* ---------- News: teal panel, deep shadow, lift + spotlight ---------- */
#section-news .site-media {
  outline: 2px solid var(--teal) !important; outline-offset: 8px;
  box-shadow: 0 24px 50px rgba(4, 132, 149, .18), 0 8px 18px rgba(0, 0, 0, .08) !important;
  transition: translate .35s var(--snap), outline-offset .25s var(--snap), box-shadow .35s;
  position: relative; isolation: isolate; border-radius: 48px; overflow: hidden; margin: 0 10px 56px !important;
}
@media (max-width: 767px) { #section-news .site-media { border-radius: 28px; outline-offset: 6px; margin-bottom: 36px !important; } }
#section-news .site-media > img { transition: transform .7s var(--snap); }
#section-news .site-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 80%), rgba(4, 132, 149, .14), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
#section-news .media-body { background: transparent; }
#section-news .site-media:hover {
  translate: 0 -8px; outline-offset: 3px;
  box-shadow: 0 40px 80px rgba(4, 132, 149, .26), 0 14px 28px rgba(0, 0, 0, .12) !important;
}
#section-news .site-media:hover > img { transform: scale(1.05); }
#section-news .site-media:hover::after { opacity: 1; }

/* ---------- Gallery ---------- */
.site-thumbnail { display: block; overflow: hidden; border-radius: 22px; }
.site-thumbnail img { transition: transform .6s var(--snap), filter .3s; }
.site-thumbnail:hover img { transform: scale(1.07) rotate(-1deg); filter: saturate(1.15); }

/* ---------- Order platform logos ---------- */
#section-order a img { transition: transform .3s var(--snap); }
#section-order a:hover img { transform: translateY(-6px) rotate(-3deg) scale(1.05); }

/* ---------- click steam: wavy wisps that rise and fade ---------- */
.mc-wisp {
  position: fixed; width: 58px; height: 80px; pointer-events: none; z-index: 4000;
  transform: translate(-50%, -100%); overflow: visible;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, .9)) blur(.3px);
}
.mc-wisp path {
  fill: none; stroke: #a9b8bc; stroke-width: 3.6; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0;
  animation: mc-wisp 1s cubic-bezier(.3, .6, .4, 1) forwards;
}
@keyframes mc-wisp {
  0%   { stroke-dashoffset: 100; opacity: 0; transform: translate(0, 8px); }
  20%  { opacity: .9; }
  55%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -70; opacity: 0; transform: translate(var(--sway, 0), -22px); }
}

/* ---------- footer social: teal buttons, idle wave, ripple on hover ---------- */
.site-footer-social li a {
  background: var(--teal); color: #fff !important;
  box-shadow: 0 6px 16px rgba(4, 132, 149, .35);
  animation: mc-bob 3.2s ease-in-out infinite;
  transition: background .25s, box-shadow .3s;
}
.site-footer-social li:nth-child(2) a { animation-delay: .25s; }
.site-footer-social li:nth-child(3) a { animation-delay: .5s; }
.site-footer-social li:nth-child(4) a { animation-delay: .75s; }
@keyframes mc-bob { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -6px; } }
.site-footer-social li a i, .site-footer-social li a span { transition: transform .4s var(--snap); }
.site-footer-social li a::after { /* ripple ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(4, 132, 149, .6); pointer-events: none;
}
.site-footer-social li a:hover, .site-footer-social li a:focus-visible {
  animation-play-state: paused; background: #06a3b8; translate: 0 -8px;
  box-shadow: 0 14px 28px rgba(4, 132, 149, .5);
}
.site-footer-social li a:hover::after, .site-footer-social li a:focus-visible::after { animation: mc-ripple .8s ease-out; }
.site-footer-social li a:hover i { transform: translateY(-50%) scale(1.18) rotate(-8deg) !important; }
.site-footer-social li a:hover span { transform: translate(-50%, -50%) scale(1.18) rotate(-8deg); }
@keyframes mc-ripple { to { box-shadow: 0 0 0 16px rgba(4, 132, 149, 0); } }

/* ---------- footer credit: quiet at rest, Galicore's transit brand on hover ---------- */
.mc-credit { position: relative; display: inline; color: inherit !important; text-decoration: none !important; }
.mc-credit__g { /* Galicore Block G */
  display: inline-block; vertical-align: -1px; width: 0; height: 13px; margin-right: 0; background: #f2f0eb;
  clip-path: polygon(20% 0,100% 0,100% 25%,30% 25%,25% 30%,25% 75%,75% 75%,75% 60%,50% 60%,50% 40%,100% 40%,100% 100%,20% 100%,0 80%,0 20%);
  transition: width .3s var(--snap), margin .3s var(--snap);
}
.mc-credit__name { transition: color .2s, letter-spacing .3s; }
.mc-credit::after { /* route line in Galicore sapphire / orange / yellow */
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #1a428a 0 33.3%, #f26b1d 0 66.6%, #f5c400 0);
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.6, 0, .2, 1);
}
.mc-credit:hover .mc-credit__g, .mc-credit:focus-visible .mc-credit__g { width: 12px; margin-right: 7px; }
.mc-credit:hover .mc-credit__name, .mc-credit:focus-visible .mc-credit__name {
  font-family: 'Space Mono', monospace; font-weight: 700; color: #fff; letter-spacing: .03em;
}
.mc-credit:hover::after, .mc-credit:focus-visible::after { transform: scaleX(1); }

/* ---------- respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .mc-strip__train { transition: none; animation: none !important; }
  .mc-board__rows { transition: none; }
  .mc-row__eta.is-now { animation: none; }
  .site-section h2.display-4::after { clip-path: none; transition: none; }
  .pill, .pill img, .menu-item, .menu-item img, .menu-item h5, #section-news .site-media,
  #section-news .site-media > img, .site-thumbnail img, #section-order a img, .btn.btn-primary { transition: none !important; }
  .mc-wisp { display: none; }
  .site-footer-social li a { animation: none !important; }
}

/* ---------- Contact: arch photo, hours card, info rows ---------- */
#section-contact .row { align-items: center; }
.mc-arch {
  max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 28px; /* full arch clipped the shop sign in the top-left corner */
  outline: 2px solid var(--teal); outline-offset: 8px;
  box-shadow: 0 24px 50px rgba(4, 132, 149, .18), 0 8px 18px rgba(0, 0, 0, .08);
}
.mc-arch img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--snap); }
.mc-arch:hover img { transform: scale(1.04); }

.mc-contact { --gap: 34px; max-width: 360px; margin: 0 auto; text-align: center; }
.mc-detail + .mc-detail { margin-top: var(--gap); padding-top: var(--gap); border-top: 1px solid #e6eaeb; }
.mc-label { display: block; margin-bottom: 12px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #9aa3a5; }
.mc-detail a { color: #222; font-size: 17px; line-height: 1.55; text-decoration: none; transition: color .2s; }
.mc-detail a:hover { color: var(--teal); text-decoration: none; }

/* hours: even rows, day left / time right, today marked with a teal dot */
.mc-hours { list-style: none; padding: 0; margin: 0; }
.mc-hours li {
  display: grid; grid-template-columns: 14px 1fr auto; align-items: center;
  height: 38px; padding: 0 6px; font-size: 15px; color: #333; text-align: left; border-radius: 6px;
}
.mc-hours li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.mc-hours li span:last-child { font-variant-numeric: tabular-nums; color: #666; letter-spacing: .02em; }
.mc-hours li.is-closed span { color: #b0b5b6; }
.mc-hours li.is-today { background: rgba(200, 169, 81, .12); }
.mc-hours li.is-today::before { background: #c8a951; }
.mc-hours li.is-today span { color: #b8963a; font-weight: 700; } /* gold, as the original site */
.mc-note { margin: 12px 0 0; font-size: 13px; color: #9aa3a5; letter-spacing: .02em; }
@media (max-width: 767px) { .mc-arch { max-width: 340px; } }
