/* ============================================================
   Poached redesign — site styles
   Loads on top of Tailwind (Play CDN) for font-face,
   custom motion, and the few effects Tailwind can't express tersely.
   ============================================================ */

/* Fonts: Fraunces (display) + Manrope (body) loaded via Google Fonts in HTML.
   Bagel Fat One kept for the JUNTO wordmark. */

:root {
  /* Junto by Poached — palette taken from the Beckenham shopfront */
  --wine:       #6b2a26;   /* primary burgundy — facade, tile lines, walls */
  --wine-deep:  #4a1c19;   /* deeper burgundy — text on cream */
  --cream:      #f4ecde;   /* warm off-white — walls, page background */
  --cream-soft: #ede2cd;   /* slightly warmer cream — alt sections */
  --terracotta: #e5b8a9;   /* dusty pink — bench tile, soft accent */
  --terracotta-deep: #c98f7e; /* deeper pink — used for ringed buttons */
  --plywood:    #d9b084;   /* warm birch — counter, plates */
  --coffee:     #2a1612;   /* near-black coffee brown — body text */
  --ink:        #2a1612;   /* alias */

  /* Heritage Poached tokens kept for the Bromley card */
  --salmon: #f0c0ab;
  --steel:  #586a7e;
  --mint:   #cae4e3;
}

html { scroll-behavior: smooth; background: var(--cream); }

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--coffee);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

.font-display {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.015em;
  font-feature-settings: "ss01";
  font-optical-sizing: auto;
}
.font-junto   { font-family: "Bagel Fat One", "Bowlby One", system-ui, sans-serif; letter-spacing: 0.02em; }

/* Reveal animation (subtle — original had none, we add a touch) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Parallax-ish background pattern (CSS-only, respects coarse pointer) */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (pointer: coarse) {
  .parallax { background-attachment: scroll; }
}

/* Focus ring — visible everywhere */
:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Buttons — softly rounded to echo Junto's chunky logotype */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Manrope", system-ui, sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--wine); color: var(--cream); border: 2px solid var(--wine); }
.btn-primary:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn-outline { background: transparent; color: var(--wine); border: 2px solid var(--wine); }
.btn-outline:hover { background: var(--wine); color: var(--cream); }
.btn-outline-light { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--wine); }
.btn-cream { background: var(--cream); color: var(--wine); border: 2px solid var(--cream); }
.btn-cream:hover { background: var(--terracotta); color: var(--wine-deep); border-color: var(--terracotta); }

/* Nav link */
.nav-link { position: relative; padding: 0.4rem 0; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform .35s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: "Manrope", system-ui, sans-serif; font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.32em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: currentColor; display: block;
}

/* Card hover */
.location-card { position: relative; overflow: hidden; }
.location-card img { transition: transform 1.1s ease; }
.location-card:hover img { transform: scale(1.06); }

/* Gallery tile hover */
.tile { overflow: hidden; }
.tile img { transition: transform .9s ease, filter .9s ease; }
.tile:hover img { transform: scale(1.08); filter: brightness(1.05); }

/* Backdrop blur fallback for nav */
.nav-glass {
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.nav-glass.dark { background: rgba(15,15,15,0.78); color: #fff; }

/* Mobile menu */
.mobile-panel { transform: translateX(-100%); transition: transform .35s ease; }
.mobile-panel.open { transform: translateX(0); }

/* Decorative number for sections */
.section-num {
  font-family: "Bagel Fat One", serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--wine);
}

/* Pink-tile pattern — a nod to the bench tile inside the café */
.tile-pattern {
  background-color: var(--terracotta);
  background-image:
    linear-gradient(var(--terracotta-deep) 1px, transparent 1px),
    linear-gradient(90deg, var(--terracotta-deep) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: -1px -1px;
  opacity: .9;
}

/* Bear mascot stroke */
.bear { color: var(--cream); }


/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 38s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

/* Hide scrollbars on horizontal carousels */
.no-bar::-webkit-scrollbar { display: none; }
.no-bar { scrollbar-width: none; }

/* Print fallback */
@media print {
  .no-print, header, footer, #cookie-banner, .lightbox { display: none; }
}

/* ============================================================
   LIGHTBOX — click any gallery tile to view, Esc/click to close
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(42, 22, 18, 0.94);
  padding: clamp(1rem, 5vw, 3rem);
}
.lightbox.open { display: flex; }
.lightbox-figure {
  max-width: min(100%, 1200px);
  max-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  background: var(--cream);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.lightbox-caption {
  color: var(--cream);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.9rem;
  text-align: center;
  max-width: 60ch;
  opacity: 0.9;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--cream);
  background: rgba(107, 42, 38, 0.85);
  border: 2px solid rgba(244, 236, 222, 0.4);
  border-radius: 999px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .25s ease, transform .2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--wine); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-close { top: .75rem; right: .75rem; width: 42px; height: 42px; }
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

/* Make gallery tile <button>s look like the original <a> tiles */
.tile {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
}
.tile:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }

/* ============================================================
   COOKIE BANNER (UK GDPR / DPA 2018 / PECR)
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  background: var(--wine-deep);
  color: var(--cream);
  border: 2px solid var(--cream);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 1.3rem;
  max-width: 1344px;
  margin: 0 auto;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
@media (max-width: 640px) {
  .cookie-banner {
    left: 0; right: 0; bottom: 0;
    border-left: 0; border-right: 0; border-bottom: 0;
  }
  .cookie-banner-inner {
    padding: 0.65rem 0.85rem 0.75rem;
    gap: 0.5rem;
  }
  /* Override the Tailwind text-xl / text-sm on the banner copy */
  .cookie-banner-inner > div:first-child > p:first-child {
    font-size: 0.9rem !important;
    line-height: 1.15;
  }
  .cookie-banner-inner > div:first-child > p:last-child {
    font-size: 0.7rem !important;
    line-height: 1.35;
    margin-top: 0.25rem !important;
  }
  .cookie-banner-actions { width: 100%; gap: 0.35rem; }
  .cookie-banner-actions .btn {
    flex: 1 1 0;
    padding: 0.5rem 0.45rem;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
    border-width: 1.5px;
  }
}

/* ============================================================
   MAP PLACEHOLDER — shown until consent given
   ============================================================ */
.map-frame { background: var(--cream-soft); }
.map-frame iframe { display: block; width: 100%; height: 520px; border: 0; }
@media (max-width: 768px) { .map-frame iframe { height: 380px; } }
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  padding: 2.5rem 1.5rem;
  min-height: 380px;
  color: var(--wine);
  background:
    radial-gradient(circle at 30% 20%, rgba(229,184,169,0.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(217,176,132,0.25), transparent 55%),
    var(--cream-soft);
}
@media (min-width: 1024px) { .map-placeholder { min-height: 520px; } }
.map-frame.loaded .map-placeholder { display: none; }

/* ============================================================
   BRAND WORDMARK (nav)
   Mirrors the logo: JUNTO stacked over "by ||| poached."
   ============================================================ */
.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  text-decoration: none;
  gap: 0.18rem;
}
.wordmark-name {
  font-size: 1.55rem;
  line-height: 0.9;
  letter-spacing: 0.02em;
}
.wordmark-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}
.wordmark-by {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.wordmark-cutlery {
  width: 14px;
  height: 10px;
  display: block;
  opacity: 0.95;
}
.wordmark-poached {
  font-size: 0.85rem;
  letter-spacing: -0.005em;
}
@media (min-width: 640px) {
  .wordmark-name { font-size: 1.75rem; }
  .wordmark-poached { font-size: 0.95rem; }
  .wordmark-by { font-size: 0.65rem; }
  .wordmark-cutlery { width: 15px; height: 11px; }
}

/* ============================================================
   FOOTER — compact on mobile
   The Tailwind layout works well on desktop but stacks tall on
   small screens. These rules tighten padding, sizes and gaps.
   ============================================================ */
@media (max-width: 1023px) {
  /* Cut the big top/bottom padding */
  footer .max-w-content.py-20 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
  footer .max-w-content.py-16 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  footer .max-w-content.py-12 { padding-top: 1.25rem; padding-bottom: 1.25rem; }

  /* Tighten the grid gap when columns stack */
  footer .grid { gap: 1rem !important; }

  /* Logo wordmark — was text-5xl (3rem), drop to ~1.75rem */
  footer .font-junto.text-5xl { font-size: 1.75rem !important; line-height: 1; }
  footer .font-junto.text-4xl { font-size: 1.45rem !important; line-height: 1; }

  /* Section headings (JUNTO / Poached / More) — was text-3xl/text-2xl */
  footer h3.font-junto.text-3xl,
  footer h3.font-display.text-3xl { font-size: 1.15rem !important; line-height: 1; }
  footer h3.font-display.text-2xl { font-size: 1rem !important; line-height: 1; }

  /* Body copy a touch smaller */
  footer p, footer address, footer ul li { font-size: 0.8rem; line-height: 1.45; }

  /* Reduce spacing between blocks */
  footer .mt-4 { margin-top: 0.5rem !important; }
  footer .mt-6 { margin-top: 0.7rem !important; }
  footer .mb-4 { margin-bottom: 0.5rem !important; }

  /* Social icons a bit smaller */
  footer a[aria-label="Instagram"],
  footer a[aria-label^="Follow us on Instagram"],
  footer a[aria-label="WhatsApp"],
  footer a[aria-label^="Message us on WhatsApp"] {
    width: 2rem; height: 2rem;
  }

  /* Footer bottom bar */
  footer .py-6 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  footer .py-5 { padding-top: 0.65rem; padding-bottom: 0.65rem; }
  footer .border-t .text-xs { font-size: 0.68rem; }

  /* Background bear graphic — small and faint on mobile */
  footer svg.bear, footer svg[class*="bear"] { width: 10rem; opacity: 0.06; }

  /* ----- 4-column footer (index + contact): the heaviest layout ----- */
  /* Hide the two address blocks on mobile — they live on /contact already.
     The bottom nav has a Contact button, so users can reach them in one tap. */
  footer .lg\:col-span-3 { display: none !important; }

  /* "More" list becomes an inline horizontal flow */
  footer .lg\:col-span-2 h3 { display: none; }
  footer .lg\:col-span-2 ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem !important;
    margin-top: 0 !important;
  }
  footer .lg\:col-span-2 ul li { font-size: 0.78rem; }
  footer .lg\:col-span-2 ul li a,
  footer .lg\:col-span-2 ul li button {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(244, 236, 222, 0.4);
  }

  /* Tagline paragraph: shorter line */
  footer .max-w-xs { max-width: 100%; }
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION
   Shown < 1024px, fixed to viewport bottom, safe-area aware
   ============================================================ */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: rgba(244, 236, 222, 0.96);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-top: 2px solid var(--wine);
  box-shadow: 0 -10px 30px -10px rgba(75, 28, 25, 0.18);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  max-width: 720px;
  margin: 0 auto;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.55rem 0.25rem 0.7rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
  position: relative;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  display: block;
}
.bottom-nav-item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 18%;
  right: 18%;
  height: 3px;
  background: var(--wine);
  transform: scaleX(0);
  transition: transform .25s ease;
  transform-origin: center;
}
.bottom-nav-item.is-active {
  color: var(--wine-deep);
}
.bottom-nav-item.is-active::before { transform: scaleX(1); }
.bottom-nav-item:hover { color: var(--wine-deep); }
.bottom-nav-item:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: -3px;
  border-radius: 4px;
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .bottom-nav { display: none; }
}

/* Stop the bottom nav covering the last bit of page on mobile */
@media (max-width: 1023px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* Lift the cookie banner above the bottom nav */
  .cookie-banner { bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* When mobile menu is open or lightbox is open, hide the bar */
body.menu-open .bottom-nav,
body.lightbox-open .bottom-nav { display: none; }

/* ============================================================
   PROSE — privacy / long-form body
   ============================================================ */
.prose-body { color: var(--coffee); font-size: 1rem; line-height: 1.7; }
.prose-body h2 { font-family: "Fraunces", Georgia, serif; }
.prose-body code { background: var(--cream-soft); padding: 0.1rem 0.35rem; font-size: 0.88em; border-radius: 3px; }

/* ============================================================
   MENU PAGE — drink list rows + bagel cards + pot cards
   ============================================================ */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.menu-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed rgba(107, 42, 38, 0.18);
}
.menu-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--wine-deep);
  flex: 0 0 auto;
  max-width: 70%;
}
.menu-sub {
  display: block;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(42, 22, 18, 0.65);
  margin-top: 0.15rem;
}
.menu-sub-inline {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(42, 22, 18, 0.65);
}
.menu-dots {
  flex: 1 1 auto;
  border-bottom: 2px dotted rgba(107, 42, 38, 0.35);
  align-self: end;
  transform: translateY(-0.45rem);
  min-width: 1.5rem;
}
.menu-price {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--wine);
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Bagel cards */
.bagel-card {
  background: rgba(244, 236, 222, 0.06);
  border: 1.5px solid rgba(244, 236, 222, 0.18);
  padding: 1.5rem 1.5rem 1.4rem;
  transition: background-color .3s ease, border-color .3s ease, transform .25s ease;
}
.bagel-card:hover {
  background: rgba(244, 236, 222, 0.12);
  border-color: rgba(229, 184, 169, 0.55);
  transform: translateY(-2px);
}
.bagel-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}
.bagel-name {
  font-family: "Bagel Fat One", "Bowlby One", system-ui, sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: 0.02em;
  color: var(--cream);
  line-height: 0.95;
}
.bagel-flag {
  display: inline-block;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
  padding: 0.18rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  border-radius: 999px;
}
.bagel-price {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--terracotta);
  white-space: nowrap;
}
.bagel-ingredients {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(244, 236, 222, 0.85);
}

/* Pot cards */
.pot-card {
  background: var(--cream);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 2px solid rgba(75, 28, 25, 0.15);
}
.pot-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  color: var(--wine-deep);
  line-height: 1.1;
}
.pot-desc {
  font-size: 0.95rem;
  color: rgba(42, 22, 18, 0.75);
  line-height: 1.5;
}
.pot-price {
  margin-top: auto;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--wine);
}
