/* MOOD'S Coffee — layout: sections, grids, responsive */

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section__inner { width: min(1180px, 92vw); margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46, 4, 4, .72) 0%, rgba(117, 9, 9, .45) 55%, rgba(36, 26, 21, .82) 100%);
}
.hero__content { position: relative; z-index: 2; padding: calc(var(--nav-h) + 1.5rem) 6vw 4.5rem; max-width: 900px; }
.hero__kicker {
  font-family: var(--font-display);
  font-size: clamp(.8rem, 1.6vw, 1rem);
  letter-spacing: .35em;
  text-transform: uppercase;
  opacity: .9;
  margin-bottom: 1rem;
}
.hero__title { line-height: 1; }
.hero__title img {
  width: min(620px, 82vw); height: auto;
  display: block; margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45));
}
.hero__steam { height: 54px; margin: -0.4rem auto .2rem; width: 120px; }
.hero__steam svg { width: 100%; height: 100%; }
.steam-path {
  fill: none; stroke: rgba(255, 253, 249, .75); stroke-width: 3; stroke-linecap: round;
  filter: blur(1.5px);
}
.hero__tagline { font-family: var(--font-script); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; }
.hero__sub { max-width: 52ch; margin: 1rem auto 1.8rem; opacity: .88; font-size: clamp(.95rem, 1.6vw, 1.05rem); }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__beans { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__beans .bean {
  position: absolute; width: 30px; fill: rgba(245, 239, 230, .32);
}
.hero__beans .bean:nth-child(1) { top: 18%; left: 10%; width: 26px; rotate: 20deg; }
.hero__beans .bean:nth-child(2) { top: 30%; right: 12%; width: 36px; rotate: -30deg; }
.hero__beans .bean:nth-child(3) { top: 64%; left: 16%; width: 22px; rotate: 60deg; }
.hero__beans .bean:nth-child(4) { top: 74%; right: 18%; width: 30px; rotate: -10deg; }
.hero__beans .bean:nth-child(5) { top: 12%; right: 34%; width: 20px; rotate: 45deg; }
.hero__beans .bean:nth-child(6) { top: 82%; left: 44%; width: 26px; rotate: -50deg; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .3rem;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; opacity: .8;
}
.hero__scroll svg { width: 20px; stroke: currentColor; animation: scroll-bob 1.6s ease-in-out infinite; }
@media (max-height: 720px) {
  .hero__scroll { display: none; }
  .hero__sub { margin-bottom: 1.2rem; }
}

/* ---------- Cup section ---------- */
.cup {
  background: var(--burgundy);
  color: var(--cream);
  overflow: hidden;
}
.cup__stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 4rem 6vw;
}
.cup__svg { width: min(340px, 68vw); }
.cup__outline, .cup__handle, .cup__saucer {
  stroke: var(--cream); stroke-width: 5; fill: none; stroke-linecap: round;
}
.cup__saucer { fill: var(--cream); stroke: none; }
.cup__fill { fill: var(--burgundy-deep); transform-origin: 50% 205px; }
.cup__steam { fill: none; stroke: rgba(245, 239, 230, .65); stroke-width: 4; stroke-linecap: round; filter: blur(1px); }
.cup__line {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  text-align: center;
}
.cup__line .word { display: inline-block; margin-right: .35ch; }

/* ---------- About ---------- */
.about { background: var(--cream); overflow: hidden; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__p { margin-bottom: 1rem; color: var(--ink-soft); max-width: 54ch; }
.about__stats { display: flex; gap: clamp(1.2rem, 3vw, 2.5rem); margin-top: 1.8rem; }
.stat { display: flex; flex-direction: column; }
.stat__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--burgundy); }
.stat__t { font-size: .85rem; color: var(--ink-soft); }
.about__collage { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.about__img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.about__img--1 { grid-row: span 2; }
.about__img--2 { margin-top: 2.5rem; }
.about__img--3 { margin-top: -1.5rem; }

/* reveal frame (burgundy wipe) */
.reveal-frame { position: relative; overflow: hidden; }
.reveal-frame::after {
  content: ""; position: absolute; inset: 0; background: var(--burgundy);
  transform-origin: right center; z-index: 2; pointer-events: none;
}
.reveal-frame.revealed::after { transform: scaleX(0); }

/* ---------- Menu ---------- */
/* clip (not hidden) so the title's slide-in can't widen the page on phones and sticky tabs still work */
.menu { background: var(--cream-soft); overflow-x: clip; }
.menu__tabs-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  background: linear-gradient(180deg, var(--cream-soft) 75%, rgba(239, 230, 216, 0));
  padding: .8rem 0;
}
.menu__tabs {
  display: flex; gap: .5rem;
  width: min(1180px, 92vw); margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.menu__tabs::-webkit-scrollbar { display: none; }
/* desktop has no swipe and the scrollbar is hidden — wrap so every category stays reachable */
@media (min-width: 900px) {
  .menu__tabs { flex-wrap: wrap; overflow-x: visible; }
}
.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.3rem;
  margin-top: 1.6rem;
  min-height: 400px;
}

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); padding-top: clamp(4rem, 9vw, 7.5rem); overflow: hidden; }
.gallery__head { margin-bottom: 2rem; }
.gallery__viewport { overflow: hidden; }
.gallery__track {
  display: flex; gap: 1.4rem; align-items: center;
  padding: 0 4vw 2.5rem;
  width: max-content;
}
.gallery__item { flex: 0 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery__item:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 4px; }
/* aspect-ratio keeps track width stable before lazy images load (pinned scroll distance stays correct) */
.gallery__item img { height: clamp(300px, 46vh, 430px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item--tall img { height: clamp(360px, 56vh, 520px); }
.gallery__item:hover img { transform: scale(1.05); }

/* ---------- Reviews ---------- */
.reviews { background: var(--burgundy); color: var(--cream); }
.kicker--light { color: var(--wood-light); }
.section__title--light { color: var(--cream); }
.reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.8rem;
  align-items: stretch;
}
.reviews__badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  background: var(--burgundy-deep);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.reviews__badge:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .55); }
.reviews__score { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1; }
.reviews__stars { color: #e8a33d; font-size: 1.25rem; letter-spacing: .12em; }
.reviews__note { font-size: .82rem; opacity: .8; }
/* review cups — each review lives inside a ceramic coffee cup */
.cup-card { display: flex; flex-direction: column; align-items: center; position: relative; padding-top: .4rem; }
.cup-card__steam {
  width: 58px; height: 30px; margin-bottom: -4px;
  fill: none; stroke: rgba(245, 239, 230, .55); stroke-width: 3; stroke-linecap: round;
  filter: blur(1px);
}
.cup-card__steam path { animation: steam-drift 2.6s ease-in-out infinite alternate; }
.cup-card__steam path:nth-child(2) { animation-delay: .5s; }
.cup-card__steam path:nth-child(3) { animation-delay: 1s; }
.cup-card__mug {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: 100%; flex: 1;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 55%, #e9dcc6 100%);
  color: var(--ink);
  border-radius: 22px 22px 78px 78px / 22px 22px 96px 96px;
  padding: 0 1.35rem 2.1rem;
  overflow: hidden;
  box-shadow: inset 0 -16px 26px rgba(138, 90, 59, .18), 0 20px 42px -18px rgba(0, 0, 0, .5);
  transition: transform .35s var(--ease);
}
.cup-card:hover .cup-card__mug { transform: translateY(-5px); }
.cup-card::before { /* handle */
  content: ""; position: absolute; z-index: 0;
  top: 74px; right: -14px;
  width: 52px; height: 56px;
  border: 11px solid #e9dcc6;
  border-radius: 50%;
}
.cup-card__foam {
  margin: 0 -1.35rem .95rem;
  padding: .8rem 1rem .7rem;
  background: radial-gradient(120% 140% at 50% -30%, #c49a6c 0%, #8a5a3b 55%, #6b4128 100%);
  text-align: center;
  color: #f2c14e;
  font-size: 1.05rem; letter-spacing: .14em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.cup-card__text { font-size: .95rem; line-height: 1.55; flex: 1; text-align: center; }
.cup-card__text::before { content: "“"; }
.cup-card__text::after { content: "”"; }
.cup-card__by { margin-top: .8rem; font-size: .8rem; color: var(--wood); text-align: center; }
.cup-card__saucer {
  width: 82%; height: 15px; margin-top: -7px;
  background: linear-gradient(180deg, #e9dcc6, #cbb894);
  border-radius: 50%;
  box-shadow: 0 10px 18px -6px rgba(0, 0, 0, .45);
}

@keyframes steam-drift {
  from { transform: translateY(0); opacity: .8; }
  to { transform: translateY(-6px); opacity: .3; }
}
.reviews__cta { margin-top: 1.8rem; text-align: center; }
.btn--cream { background: var(--cream); color: var(--burgundy); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4); }
.btn--cream:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(0, 0, 0, .5); }

/* ---------- Location ---------- */
.location { background: var(--cream-soft); }
.location__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  margin-top: 1.4rem;
  align-items: start;
}
.location__info { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.loc-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 10px 30px -18px rgba(36, 26, 21, .3);
}
.loc-card h3 { font-size: .95rem; color: var(--burgundy); margin-bottom: .3rem; }
.loc-card p { font-size: .92rem; color: var(--ink-soft); }
.loc-card a:hover { color: var(--burgundy); }
.location__ctas { grid-column: 1 / -1; display: flex; gap: .8rem; flex-wrap: wrap; }
.location__map { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); min-height: 380px; }
.location__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: sepia(.22) saturate(.9); }
.map-tabs {
  position: absolute; top: .8rem; left: .8rem; z-index: 5;
  display: flex; gap: 3px;
  background: rgba(255, 253, 249, .92);
  border-radius: 999px; padding: 3px;
  box-shadow: 0 8px 20px -8px rgba(36, 26, 21, .4);
}
.map-tab {
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  padding: .35rem .85rem; border-radius: 999px; color: var(--ink-soft);
  transition: background .25s, color .25s;
}
.map-tab.active { background: var(--burgundy); color: var(--white); }

/* ---------- Footer ---------- */
.footer { background: var(--burgundy-deep); color: var(--cream); overflow: hidden; }
.footer__marquee { border-bottom: 1px solid rgba(245, 239, 230, .14); padding: 1rem 0; overflow: hidden; }
.footer__marquee-track {
  display: flex; width: max-content; white-space: nowrap;
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: rgba(245, 239, 230, .75);
}
.footer__inner { width: min(1180px, 92vw); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.6rem; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; margin-bottom: 2rem; }
.footer__word { display: block; }
.footer__word img { width: clamp(240px, 38vw, 520px); height: auto; display: block; }
.footer__slogan { font-family: var(--font-script); font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--wood-light); }
.footer__cols { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: .55rem; font-size: .95rem; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--wood-light); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(245, 239, 230, .14);
  padding-top: 1.3rem; font-size: .82rem; color: rgba(245, 239, 230, .6);
}

/* ---------- Responsive ---------- */
/* 899.98px pairs with the JS (min-width: 900px) pinned-gallery query — no overlap at exactly 900px */
@media (max-width: 899.98px) {
  .about__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
  .reviews__badge { grid-column: 1 / -1; }
  .location__grid { grid-template-columns: 1fr; }
  .location__map { min-height: 300px; }
  .gallery__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery__viewport::-webkit-scrollbar { display: none; }
  .gallery__item { scroll-snap-align: center; }
}
@media (max-width: 640px) {
  .menu__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
  .reviews__grid { grid-template-columns: 1fr; }
  .location__info { grid-template-columns: 1fr; }
  .about__img--2 { margin-top: 0; }
  .about__img--3 { margin-top: 0; }
  .footer__bottom { flex-direction: column; }
}
