/* ==========================================================
   Think-Coffee · Fuel Your Mind
   ========================================================== */

:root {
  --cream: #FBF7F1;
  --latte: #EADFCF;
  --latte-2: #E3D5C2;
  --brown: #6B3A26;
  --espresso: #2B1A12;
  --ink-soft: #5E4A3E;
  --ink-body: #4A3A30;
  --caramel: #D9B99A;
  --muted: #BFAE9C;
  --line: rgba(107, 58, 38, 0.12);

  --f-display: 'Barlow Condensed', sans-serif;
  --f-body: 'Barlow', system-ui, sans-serif;
  --f-script: 'Yellowtail', cursive;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brown); text-decoration: none; }
a:hover { color: var(--espresso); }
img { display: block; max-width: 100%; }
figure { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.script { font-family: var(--f-script); font-weight: 400; }
.label { font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: .2em; color: var(--brown); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 700; font-size: 19px;
  letter-spacing: .06em; text-transform: uppercase;
  transition: background .25s, color .25s, transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(43, 26, 18, .16); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--solid { background: var(--brown); color: var(--cream); }
.btn--solid:hover { background: var(--espresso); color: var(--cream); }
.btn--outline { border: 1.5px solid var(--brown); color: var(--brown); }
.btn--outline:hover { background: var(--latte); color: var(--espresso); }
.btn--cream { background: var(--latte); color: var(--espresso); align-self: flex-start; margin-top: 8px; font-size: 18px; min-height: 50px; }
.btn--cream:hover { background: var(--cream); color: var(--espresso); }
.btn--sm { min-height: 0; padding: 11px 20px; font-size: 16px; }
.btn--block { flex: 1 1 160px; font-size: 18px; letter-spacing: .04em; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(43, 26, 18, .08); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.nav__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--brown); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

.logo { display: flex; align-items: center; gap: 6px; }
.logo__mark { height: 50px; width: auto; transform-origin: 50% 80%; transition: transform .5s var(--ease-out); animation: glow 3.2s ease-in-out infinite; }
.logo__word { height: 44px; width: auto; }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }

.nav__links { display: none; align-items: center; gap: 32px; }
.nav__links a:not(.btn) {
  position: relative;
  font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--espresso);
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--brown); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(107, 58, 38, .25);
  background: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; padding: 0;
}
.nav__toggle span { width: 18px; height: 2px; background: var(--espresso); border-radius: 2px; transition: transform .3s var(--ease-out); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav__mobile { padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); }
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  font-family: var(--f-display); font-weight: 800; font-size: 32px; text-transform: uppercase;
  color: var(--espresso); padding: 8px 0; border-bottom: 1px solid rgba(107, 58, 38, .1);
  animation: slideIn .45s var(--ease-out) both;
}
.nav__mobile a:nth-child(2) { animation-delay: .04s; }
.nav__mobile a:nth-child(3) { animation-delay: .08s; }
.nav__mobile a:nth-child(4) { animation-delay: .12s; }
.nav__mobile a:nth-child(5) { animation-delay: .16s; }

@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__toggle, .nav__mobile { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(36px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero__kicker { font-size: clamp(26px, 4vw, 34px); color: var(--brown); line-height: 1; }
.hero__title {
  margin: 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(64px, 13vw, 148px); line-height: .86; letter-spacing: -.01em;
  text-transform: uppercase; color: var(--espresso);
}
.hero__line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__line > span { display: block; }
.hero__intro { margin: 0; max-width: 440px; font-size: clamp(17px, 2vw, 19px); line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero__media { position: relative; }
.photo { position: relative; overflow: hidden; background: var(--latte); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--hero { aspect-ratio: 4 / 5; max-height: 640px; border-radius: 28px; }
.photo--hero img { object-position: 46% 50%; animation: kenburns 22s ease-in-out infinite alternate; }

.hero__note {
  position: absolute; top: 22px; left: -10px;
  background: var(--cream); border-radius: 18px; padding: 14px 18px;
  box-shadow: 0 12px 30px rgba(43, 26, 18, .12);
  transform: rotate(-4deg);
  animation: bob 5s ease-in-out infinite;
}
.hero__note .script { font-size: 24px; color: var(--brown); line-height: 1.1; }

/* ---------- Values ---------- */
.values { background: var(--latte); }
.values__grid {
  padding-top: 28px; padding-bottom: 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px;
}
.values__item { display: flex; align-items: center; gap: 16px; }
.values__num {
  width: 52px; height: 52px; flex: none; border-radius: 999px; background: var(--brown); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 800; font-size: 20px;
  transition: transform .5s var(--ease-out);
}
.values__item:hover .values__num { transform: rotate(-12deg) scale(1.08); }
.values__label { font-family: var(--f-display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }

/* ---------- Section scaffolding ---------- */
.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.section__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 32px; }
.section__head--split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.section__titles { display: flex; flex-direction: column; gap: 6px; }
.section__kicker { font-size: 30px; color: var(--brown); line-height: 1; }
.section__title {
  margin: 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(52px, 9vw, 96px); line-height: .9; text-transform: uppercase;
}
.section__note { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Menu ---------- */
.menu__tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -20px 28px; padding: 0 20px 6px;
}
.menu__tabs::-webkit-scrollbar { display: none; }
.menu__tab {
  flex: none; min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid rgba(107, 58, 38, .3); background: transparent; color: var(--espresso);
  font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: .05em;
  text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease-out);
}
.menu__tab:hover { transform: translateY(-2px); border-color: var(--brown); }
.menu__tab[aria-selected="true"] { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }

.menu__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 20px; align-items: start;
}
.menu-card {
  background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(107, 58, 38, .1);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  animation: cardIn .6s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(43, 26, 18, .08); }
.menu-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; border-bottom: 2px solid var(--espresso); margin-bottom: 6px;
}
.menu-card__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; }
.menu-card__sizes, .menu-row__prices { display: flex; gap: 4px; }
.menu-card__sizes span {
  min-width: var(--col, 52px); text-align: right;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .08em; color: var(--brown);
}
.menu-row {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 0;
  border-bottom: 1px dashed rgba(107, 58, 38, .22);
  animation: rowIn .5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + var(--r, 0) * 35ms + 120ms);
}
.menu-row__name { font-size: 17px; font-weight: 500; }
.menu-row__fill { flex: 1; min-width: 12px; }
.menu-row__prices span {
  min-width: var(--col, 52px); text-align: right;
  font-family: var(--f-display); font-weight: 700; font-size: 19px; color: var(--brown);
  font-variant-numeric: tabular-nums;
}
.menu-row__prices span.is-na { color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { background: var(--brown); color: var(--cream); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 36px; padding-right: 36px;
  font-family: var(--f-script); font-size: 30px; white-space: nowrap; line-height: 1.2;
}
.marquee__item::after { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--latte); }

/* ---------- Special ---------- */
.special {
  background: var(--espresso); border-radius: 32px; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.special__copy { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.special__eyebrow { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .24em; color: var(--latte); }
.special__title { font-size: clamp(40px, 6vw, 60px); color: var(--cream); line-height: 1; }
.special__headline {
  margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15; text-transform: uppercase; color: var(--cream); max-width: 440px;
}
.special__price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.special__price {
  display: inline-block;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(80px, 12vw, 128px); line-height: .85; color: var(--latte);
}
.special__condition { font-size: 17px; color: var(--latte); max-width: 220px; line-height: 1.4; }
.special__media { min-height: 320px; border-radius: 0; }

/* ---------- Placeholders (photos still to come) ---------- */
.placeholder {
  display: flex; align-items: flex-end; padding: 20px;
  border-radius: 22px;
  background: repeating-linear-gradient(135deg, var(--latte) 0 14px, var(--latte-2) 14px 28px);
}
.placeholder span {
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--brown);
  background: var(--cream); padding: 6px 10px; border-radius: 6px;
}
.placeholder--dark { background: repeating-linear-gradient(135deg, #4A2C1E 0 14px, #3E2418 14px 28px); }
.placeholder--dark span { color: var(--espresso); background: var(--latte); }

/* ---------- About ---------- */
.about { background: var(--latte); }
.about__grid {
  padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.photo--about { aspect-ratio: 1 / 1; border-radius: 28px; }
/* Extra height gives the scroll parallax room to move (set via --py in main.js) */
.photo--about img { height: 116%; margin-top: -8%; translate: 0 var(--py, 0px); will-change: translate; }
.about__copy { display: flex; flex-direction: column; gap: 22px; }
.about__copy p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-body); text-wrap: pretty; }
.about__title { margin: 0; font-size: clamp(56px, 9vw, 92px); line-height: .95; color: var(--espresso); }
.about__copy .about__tagline {
  margin-top: 8px; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 24px);
  letter-spacing: .14em; text-transform: uppercase; color: var(--brown); line-height: 1.35;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  grid-auto-rows: 220px; gap: 16px; grid-auto-flow: dense;
}
.gallery__item { border-radius: 22px; padding: 16px; }
.gallery__item.tall, .gallery__item.feature { grid-row: span 2; }
/* Column spans only once there's room for two columns, or they'd add a phantom track */
@media (min-width: 600px) {
  .gallery__item.feature, .gallery__item.wide { grid-column: span 2; }
}
.gallery .photo { padding: 0; }
.gallery .photo img { transition: transform 1.2s var(--ease-out); }
.gallery .photo:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(251, 247, 241, .92); color: var(--espresso);
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  transform: translateY(8px); opacity: 0;
  transition: transform .45s var(--ease-out), opacity .45s;
}
.gallery .photo:hover figcaption,
.gallery .photo:focus-within figcaption { transform: none; opacity: 1; }
@media (hover: none) { .gallery figcaption { transform: none; opacity: 1; } }

/* ---------- Visit ---------- */
.visit {
  padding-bottom: clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 20px;
}
.visit__card {
  background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(107, 58, 38, .1); display: flex; flex-direction: column; gap: 26px;
}
.visit__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 7vw, 72px); line-height: .9; text-transform: uppercase; }
.visit__block { display: flex; flex-direction: column; gap: 8px; }
.visit__address { font-size: 18px; line-height: 1.5; }
.hours__row { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; padding: 6px 0; border-bottom: 1px dashed rgba(107, 58, 38, .2); }
.hours__row strong { font-weight: 600; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__map { position: relative; min-height: 380px; border-radius: 28px; overflow: hidden; background: var(--latte); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); color: var(--latte); }
.footer__inner { padding-top: 44px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 32px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__perks { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.perk {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--cream);
}
.perk__wifi path { animation: wifi 2.4s ease-in-out infinite; }
.perk__wifi path:nth-child(2) { animation-delay: .2s; }
.perk__wifi path:nth-child(1) { animation-delay: .4s; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  min-width: 46px; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(234, 223, 207, .35);
  color: var(--latte); display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s, color .25s, transform .35s var(--ease-out);
}
.footer__socials a:hover { background: var(--latte); color: var(--espresso); transform: translateY(-2px); }
.footer__thanks { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; }
.footer__logo { width: clamp(130px, 18vw, 170px); height: auto; margin-bottom: 14px; opacity: .95; }
.footer__thanks .script { font-size: clamp(28px, 4vw, 40px); color: var(--cream); line-height: 1.1; }
.footer__brand { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); letter-spacing: .06em; color: var(--caramel); line-height: 1; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 20px; border-top: 1px solid rgba(234, 223, 207, .18); font-size: 14px; color: var(--muted);
}

/* ==========================================================
   Motion
   Hidden states only apply once JS has added .js to <html>,
   so the page is fully visible without JavaScript.
   ========================================================== */

/* Fade + rise */
.js [data-reveal]:not([data-reveal="img"]) {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in:not([data-reveal="img"]) { opacity: 1; transform: none; }

/* Images: a curtain in the section's background colour lifts away while the photo
   settles from a slight zoom. (An overlay rather than clip-path, because a fully
   clipped element never registers with IntersectionObserver.) */
.js [data-reveal="img"] { position: relative; overflow: hidden; }
.js [data-reveal="img"]::after {
  content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none;
  background: var(--cover, var(--cream));
  transform-origin: 50% 0;
  transition: transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="img"].is-in::after { transform: scaleY(0); }
.js [data-reveal="img"] > img { transform: scale(1.18); transition: transform 1.6s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="img"].is-in > img { transform: scale(1); }
.js .gallery .photo.is-in:hover img { transform: scale(1.07); }
.about { --cover: var(--latte); }
.special { --cover: var(--espresso); }

/* Hero headline: each line slides up out of a mask on load */
.js .hero__line > span { transform: translateY(105%); transition: transform 1s var(--ease-out); }
.js .hero__line:nth-child(2) > span { transition-delay: .12s; }
.js.is-loaded .hero__line > span { transform: none; }

/* Special price lands with a little bounce */
.js .special .special__price { transform: scale(.6) rotate(-6deg); opacity: 0; transition: transform .9s cubic-bezier(.34, 1.56, .64, 1) .45s, opacity .4s .45s; }
.js .special.is-in .special__price { transform: none; opacity: 1; }

@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.12) translate(-2%, -1.5%); }
}
@keyframes bob {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-8px); }
}
/* The logo is a light-bulb idea: give it a soft warm glow now and then */
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(217, 185, 154, 0)); }
  50%      { filter: drop-shadow(0 0 6px rgba(217, 160, 90, .55)); }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes wifi { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .js [data-reveal] > img, .js .hero__line > span, .js .special .special__price {
    opacity: 1 !important; transform: none !important;
  }
  .js [data-reveal="img"]::after { display: none; }
  .js .hero__note { transform: rotate(-4deg) !important; }
  .photo--about img { translate: none !important; }
}
