/* Grind & Go — page layout & sections */

/* ---------- Shared section type ---------- */
.section-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 0.8rem;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--orange-600);
}
.section-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: var(--tracking-tight);
  color: var(--espresso-900);
}
.section-blurb {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--warm-gray-600);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(41, 23, 16, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(231, 216, 188, 0.14);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background: var(--orange-500);
  color: var(--cream-50);
  box-shadow: var(--shadow-accent);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1.4rem;
  letter-spacing: var(--tracking-tight);
  color: var(--cream-50);
}
.site-header .brand { color: var(--cream-50); }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
}
.site-nav a.nav-link {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  color: var(--cream-100);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--espresso-900);
}
.hero__bg {
  position: absolute;
  left: 0; right: 0; top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  /* Horizontal wash (heavier over the text column, lighter behind the cup) +
     a vertical vignette to settle the bright storefront photo into the
     brand's espresso-dark palette so cream headline text stays readable. */
  background:
    linear-gradient(100deg,
      rgba(41,23,16,0.88) 0%,
      rgba(41,23,16,0.62) 34%,
      rgba(41,23,16,0.22) 62%,
      rgba(41,23,16,0.4) 100%),
    linear-gradient(to bottom,
      rgba(41,23,16,0.32) 0%,
      rgba(41,23,16,0) 22%,
      rgba(41,23,16,0) 76%,
      rgba(41,23,16,0.45) 100%);
  pointer-events: none;
}
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: clamp(88px, 14vh, 140px) clamp(20px, 5vw, 72px) clamp(32px, 6vh, 64px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.hero__text { max-width: 640px; }

/* ---------- Hero 3D cup stage ---------- */
.hero__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.hero__cup-poster {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(41,23,16,0.45));
  transition: opacity 0.4s var(--ease-standard);
}
.hero__cup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  opacity: 0;
  transition: opacity 0.5s var(--ease-standard);
}
.hero__stage.is-ready .hero__cup { opacity: 1; }
.hero__stage.is-ready .hero__cup-poster { opacity: 0; }

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal-up.is-revealed { opacity: 1; transform: none; }

.hero__eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 0.8rem;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--orange-300);
}
.hero__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  color: var(--cream-50);
  text-wrap: balance;
}
.hero__headline .accent { color: var(--orange-400); }
.hero__blurb {
  margin: 22px 0 34px;
  max-width: 520px;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.375rem);
  line-height: 1.55;
  color: var(--cream-200);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--cream-200);
  z-index: 2;
  opacity: 0.85;
  transition: opacity 0.4s var(--ease-standard);
  pointer-events: none;
}
.hero__hint.is-hidden { opacity: 0; }
.hero__hint-label {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

/* Mobile: stack heading above the cup instead of a side-by-side grid,
   and shrink the cup so it doesn't crowd the text. */
@media (max-width: 767px) {
  .hero__content {
    position: relative;
    inset: auto;
    padding: 132px clamp(20px, 6vw, 32px) 56px;
  }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__stage { min-height: 220px; }
  .hero__cup-poster, .hero__cup { max-width: 200px; margin: 0 auto; }
}

/* ---------- Menu scroll-scrub ---------- */
.menu-scrub {
  position: relative;
  height: 220vh;
}
.menu-scrub__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--espresso-900);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.menu-scrub__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.menu-scrub__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(41,23,16,0.72) 0%,
    rgba(41,23,16,0.35) 30%,
    rgba(41,23,16,0.45) 62%,
    rgba(41,23,16,0.9) 100%);
  pointer-events: none;
}
.menu-scrub__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  padding: 0 clamp(20px, 5vw, 48px);
  text-align: center;
}
.menu-scrub__content .section-eyebrow,
.menu-scrub__content .section-heading {
  color: var(--cream-50);
}
.menu-scrub__content .section-eyebrow { color: var(--orange-300); }
.menu-scrub__content .section-blurb {
  margin: 0 auto 34px;
  max-width: 460px;
  color: var(--cream-200);
}
.menu-scrub__content .section-heading { margin: 0 0 8px; }

.menu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* Each card is revealed individually by scroll progress inside the pin
   (js/main.js -> revealMenuCards). The grid container itself stays visible,
   so the layout never reflows as cards arrive. */
.menu-cards > .card {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.menu-cards > .card.is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .menu-cards > .card { transition: none; }
}
.menu-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.menu-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round);
  background: var(--caramel-200);
  color: var(--coffee-600);
}
.menu-card__icon--accent {
  background: var(--orange-500);
  color: var(--cream-50);
}
.menu-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.menu-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.3rem;
  color: var(--espresso-900);
}
.menu-card__price {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1.15rem;
  color: var(--orange-600);
  white-space: nowrap;
}
.menu-card__desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--warm-gray-600);
}

/* ---------- Gallery ("Made for the move") ---------- */
.gallery {
  background: var(--cream-100);
  color: var(--coffee-700);
  padding: clamp(64px, 10vw, 112px) clamp(20px, 5vw, 48px);
}
.gallery__inner { max-width: var(--container-lg); margin: 0 auto; }
.gallery__intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Staggered scroll-in reveal for the repeating gallery items.
   Fires once (JS toggles .is-revealed via IntersectionObserver + unobserve). */
.gallery__item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery__item.is-revealed { opacity: 1; transform: none; }
.gallery__item:nth-child(1) { transition-delay: 0s; }
.gallery__item:nth-child(2) { transition-delay: 0.1s; }
.gallery__item:nth-child(3) { transition-delay: 0.2s; }

.gallery__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery__frame:hover,
.gallery__frame:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.gallery__frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px;
  background: linear-gradient(to top, rgba(41,23,16,0.82), transparent);
}
.gallery__caption p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.15rem;
  color: var(--cream-50);
}

@media (prefers-reduced-motion: reduce) {
  .gallery__item {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .gallery__frame { transition: none; }
  .gallery__frame:hover,
  .gallery__frame:active { transform: none; }
}

/* ---------- Find Us ---------- */
.find-us {
  background: var(--cream-100);
  padding: 0 clamp(20px, 5vw, 48px) clamp(48px, 7vw, 88px);
}
.find-us__card {
  max-width: var(--container-lg);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}
.find-us__heading { margin: 0 0 22px; font-size: clamp(1.9rem, 4vw, 2.75rem); }
.find-us__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.find-us__row:last-of-type { margin-bottom: 26px; }
.find-us__row-icon { color: var(--orange-500); margin-top: 2px; }
.find-us__row-title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 1.05rem;
  color: var(--espresso-900);
}
.find-us__row-sub {
  margin: 2px 0 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--warm-gray-600);
}
.find-us__note {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--coffee-700);
}
.find-us__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.find-us__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Order CTA ---------- */
.cta {
  background: var(--cream-100);
  padding: clamp(16px, 4vw, 48px);
}
.cta__card {
  position: relative;
  overflow: hidden;
  max-width: var(--container-lg);
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--coffee-600) 0%, var(--espresso-900) 100%);
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 72px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta__glow {
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: var(--radius-round);
  background: radial-gradient(circle, rgba(226,122,44,0.35), transparent 70%);
  pointer-events: none;
}
.cta__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 0.8rem;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--orange-300);
}
.cta__heading {
  margin: 0 auto 14px;
  max-width: 640px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  color: var(--cream-50);
}
.cta__blurb {
  margin: 0 auto 32px;
  max-width: 460px;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--caramel-300);
}

/* ---------- Say hello — pinned scroll scene + contact form ---------- */
.hello-scene {
  position: relative;               /* pin lives inside this, never fixed to the page */
}

.hello-stage {
  position: relative;
  height: 100svh;                   /* svh, not vh — mobile address bars change vh mid-scroll */
  width: 100%;
  overflow: hidden;
  background: var(--surface-inverse) url('../assets/hello-last-frame.jpg') center/cover;
}

.hello-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Static scrim: protects the left copy column in every beat. */
.hello-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.74) 0%,
    rgba(0, 0, 0, 0.45) 38%,
    rgba(0, 0, 0, 0.00) 68%
  );
}

/* Scrubbed veil: opacity is driven by the GSAP timeline, peaking on the
   near-white cloud beat only, so the other beats stay un-greyed. */
.hello-veil {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
}

.hello-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  text-align: left;
  padding-left: clamp(2rem, 8vw, 7rem);
  padding-right: 6vw;
  max-width: 52%;              /* keeps copy out of the bag and the cup */
  color: var(--text-inverse);
}

.hello-eyebrow {
  margin: 0;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--brand-primary);
}

.hello-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.02;
  margin: 0;
}

.hello-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 38ch;
  opacity: 0.9;
  margin: 0;
}

/* Starting states for the scrubbed reveal. Gated behind a class that
   js/hello-scene.js adds before first paint, so a JS failure degrades to
   visible copy instead of a permanently blank section. */
.has-hello-anim .hello-eyebrow,
.has-hello-anim .hello-headline,
.has-hello-anim .hello-sub {
  opacity: 0;
  transform: translateY(28px);
}

.hello-form-section {
  position: relative;
  background: var(--surface-inverse) url('../assets/hello-last-frame.jpg') center/cover;
  padding: clamp(4rem, 10vh, 8rem) 6vw;
}

.hello-form-panel {
  max-width: 46rem;
  margin: 0 auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.42);
  border-radius: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

/* The reused form component sits on dark glass here, not cream — lift the
   label text; field controls keep their cream fill and orange focus ring. */
.hello-form-panel .contact__form label.field,
.hello-form-panel .field__label {
  color: var(--text-inverse);
}

@media (max-width: 1100px) {
  .hello-copy { max-width: 62%; padding-left: clamp(1.5rem, 6vw, 4rem); }
}

@media (max-width: 767px) {
  .hello-stage { height: auto; min-height: 70svh; padding: 6rem 0; }
  .hello-video { display: none; }
  /* In flow on mobile so a long sub line grows the stage instead of clipping. */
  .hello-copy {
    position: relative;
    inset: auto;
    max-width: 100%;
    min-height: inherit;
  }
}

.contact__success {
  text-align: center;
  background: var(--green-100);
  border: 1px solid var(--green-500);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
}
.contact__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-round);
  background: var(--green-500);
  color: var(--cream-50);
  margin-bottom: 16px;
}
.contact__success h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1.5rem;
  color: var(--espresso-900);
}
.contact__success p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--coffee-700);
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__form label.field {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 0.9rem;
  color: var(--espresso-900);
  gap: 8px;
}
.is-hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso-900);
  color: var(--cream-200);
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 48px);
}
.footer__inner {
  max-width: var(--container-lg);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer__inner .brand { color: var(--cream-50); }
.footer__inner .brand__name { font-size: 1.35rem; }
.footer__copy {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--caramel-300);
  order: 3;
  flex-basis: 100%;
  text-align: center;
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-round);
  background: rgba(253, 251, 244, 0.08);
  color: var(--cream-100);
  transition: background var(--dur-fast) var(--ease-standard);
}
.footer__social a:hover { background: var(--orange-500); }
