/* ==========================================================
   To Podilato Beer House
   ========================================================== */
:root {
  --bg: #0d0d0f;
  --ink: #f3efe6;
  --muted: rgba(243, 239, 230, 0.72);
  --line: rgba(243, 239, 230, 0.16);
  --amber: #f5a623;
  --coral: #f26b6b;
  --green: #3fae6f;
  --lilac: #c9b6e4;
  --accent: var(--amber);

  --font-display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--coral); color: #111; }

/* ---------- Layering ----------
   .bg (photos)      z 0
   #bg3d (bubbles)   z 1
   .shade / content  z 2+
   Sections deliberately do NOT create stacking contexts so the
   fixed canvas can slide between photos and text. */
#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden; /* fallback: older iOS Safari ignores `clip` and would scroll sideways */
  overflow: clip;
}
.bg {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  will-change: transform;
}
.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Many IG posts carry a checkerboard strip at the bottom — bias the crop upward */
  object-position: 50% 30%;
}
.shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shade--hero {
  background:
    radial-gradient(120% 80% at 30% 60%, rgba(13,13,15,.35), rgba(13,13,15,.85)),
    linear-gradient(180deg, rgba(13,13,15,.55) 0%, rgba(13,13,15,0) 30%, rgba(13,13,15,1) 100%);
}
.shade--side {
  background: linear-gradient(90deg, rgba(13,13,15,.95) 0%, rgba(13,13,15,.75) 45%, rgba(13,13,15,.35) 100%),
              linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}
.shade--bottom {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13,13,15,.2) 25%, rgba(13,13,15,.35) 55%, rgba(13,13,15,.95) 100%);
}
.shade--full {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13,13,15,.72) 22%, rgba(13,13,15,.8) 78%, var(--bg) 100%);
}

.content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter);
}

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
}
.h1, .h2, .hero__title, .pillar__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  margin: 0;
}
.h1 { font-size: clamp(48px, 9vw, 140px); }
.h2 { font-size: clamp(42px, 6.4vw, 96px); margin-bottom: 28px; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 54ch; margin: 0 0 32px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .3s;
}
.btn::before { /* checkerboard wipe on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-conic-gradient(#111 0 25%, var(--ink) 0 50%) 0 0 / 14px 14px;
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn--primary { background: var(--b); color: #111; }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(13,13,15,.25); }
@media (hover: hover) { .btn:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--b), 0 0 28px color-mix(in srgb, var(--b) 70%, transparent), 0 0 70px color-mix(in srgb, var(--b) 35%, transparent); } }
@media (hover: hover) { .btn:hover::before { transform: translateY(0); opacity: .12; } }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.btn--xl { min-height: 72px; padding: 0 48px; font-size: 24px; }

/* ---------- Checker motif ---------- */
.checker {
  height: 22px;
  background: repeating-conic-gradient(#111 0 25%, var(--ink) 0 50%) 0 0 / 22px 22px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: padding .4s var(--ease);
}
/* Blur lives on a pseudo-element: backdrop-filter on .nav itself would make it
   the containing block for the fixed mobile menu overlay. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(13,13,15,.62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity .4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { padding-top: 12px; padding-bottom: 12px; }
.nav__brand { display: flex; flex-shrink: 0; white-space: nowrap; min-width: 44px; min-height: 44px; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: .02em; }
.nav__brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav__links { display: flex; gap: 34px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
@media (hover: hover) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: .1em; }
.lang span { opacity: .4; }
.lang button { min-width: 40px; min-height: 44px; padding: 0 6px; opacity: .5; transition: opacity .3s, color .3s; }
.lang button[aria-pressed="true"] { opacity: 1; color: var(--amber); }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { align-items: flex-end; }
.hero .bg img { object-position: 50% 25%; }
.hero__content { padding-bottom: clamp(110px, 16vh, 180px); }
.hero__title { font-size: clamp(64px, 13.5vw, 210px); margin-bottom: 24px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.line--accent { color: var(--amber); text-shadow: 0 0 40px rgba(245,166,35,.35); }
.hero__sub { font-size: clamp(18px, 1.8vw, 24px); color: var(--muted); max-width: 36ch; margin: 0 0 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue i { width: 1.5px; height: 64px; background: linear-gradient(var(--ink), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; background: var(--amber); color: #111; overflow: hidden; }
.marquee__track { display: flex; width: max-content; padding: 14px 0; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(34px, 5vw, 64px); text-transform: uppercase; padding-right: .6em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Vibe ---------- */
.vibe { --accent: var(--coral); }
.vibe__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .04em; background: rgba(13,13,15,.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vibe__photo { margin: 0; position: relative; }
.vibe__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; transform: rotate(2.5deg); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.vibe__photo figcaption { position: absolute; left: -18px; bottom: 24px; max-width: 80%; padding: 12px 18px; background: var(--coral); color: #111; font-weight: 700; font-size: 14px; border-radius: 12px; transform: rotate(-3deg); }

/* ---------- Pillars ---------- */
.pillar { align-items: flex-end; }
.pillar__content { padding-bottom: clamp(80px, 14vh, 160px); }
.pillar--right .pillar__content { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.pillar__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: .2em; color: var(--accent); margin-bottom: 8px; }
.pillar__title { font-size: clamp(56px, 14.5vw, 240px); color: var(--ink); -webkit-text-stroke: 0; }
.pillar__title::after { content: "."; color: var(--accent); }
.pillar__tag { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(22px, 2.6vw, 36px); text-transform: uppercase; color: var(--accent); margin: 10px 0 8px; }
.pillar__body { color: var(--muted); max-width: 44ch; margin: 0; font-size: clamp(16px, 1.3vw, 19px); }

/* ---------- Gallery ---------- */
.gallery { flex-direction: column; align-items: stretch; justify-content: center; background: var(--bg); overflow: hidden; }
.gallery__head { padding-bottom: 40px; padding-top: 120px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.gallery__head .h2 { max-width: 14ch; margin: 0; }
.gallery__follow { display: inline-block; padding-block: 12px 10px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); transition: color .3s; }
.gallery__follow b { color: var(--coral); }
@media (hover: hover) { .gallery__follow:hover { color: var(--ink); } }
.gallery__viewport { position: relative; z-index: 2; padding-bottom: 120px; }
.gallery__track { display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); width: max-content; }
.gallery__track figure { margin: 0; width: clamp(240px, 28vw, 420px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; flex-shrink: 0; }
.gallery__track figure.tall { aspect-ratio: 4 / 5; }
.gallery__track img { width: 100%; height: 115%; object-fit: cover; object-position: top; transition: transform .8s var(--ease), filter .6s; filter: saturate(.9); }
@media (hover: hover) { .gallery__track figure:hover img { transform: scale(1.06); filter: saturate(1.15); } }

/* ---------- Menu CTA ---------- */
.menu-cta__content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 44px; }
.menu-cta .h1 { max-width: 14ch; }

/* ---------- Visit ---------- */
.visit { --accent: var(--green); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.visit__list { margin: 0 0 36px; display: grid; gap: 20px; }
.visit__list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.visit__list dt { font-family: var(--font-display); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 14px; color: var(--green); padding-top: 3px; }
.visit__list dd { margin: 0; font-size: 18px; }
.visit__social { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.visit__social a { display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) { .visit__social a:hover { color: var(--amber); } }
.visit__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.visit__map { border-radius: 22px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.visit__map iframe { width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.6) contrast(.95); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; background: var(--bg); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 32px var(--gutter); color: var(--muted); font-size: 14px; }
.footer__brand { font-family: var(--font-display); font-weight: 900; font-size: 28px; color: var(--ink); }

/* ---------- Toast (placeholder button feedback) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #111;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, 200%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility .5s;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Initial states for JS reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); }
.js .reveal-img { opacity: 0; transform: translateY(60px) scale(.96); }
.js .hero__title .line > span { transform: translateY(105%); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    font-size: 34px;
    background: rgba(13,13,15,.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__burger { display: block; }
  .nav { gap: 12px; }
  .nav__right { gap: 4px; }
  .lang { gap: 0; }
  .vibe__grid, .visit__grid { grid-template-columns: 1fr; }
  .vibe__photo { max-width: 420px; }
  .shade--side { background: linear-gradient(180deg, var(--bg) 0%, rgba(13,13,15,.8) 20%, rgba(13,13,15,.85) 100%); }
  .scroll-cue { display: none; }
  .content { padding-top: 96px; padding-bottom: 96px; }
  /* native swipe row on small screens */
  .gallery__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gallery__viewport::-webkit-scrollbar { display: none; }
  .gallery__track figure { width: 72vw; scroll-snap-align: center; }
  .visit__list div { grid-template-columns: 1fr; gap: 4px; }
  .btn { min-height: 50px; padding: 0 24px; font-size: 17px; }
  .btn--xl { min-height: 62px; font-size: 20px; }

  /* Gallery: size to content instead of a full screen, so there's no empty gap above the photos */
  .gallery { min-height: 0; }
  .gallery__head { padding-top: 88px; padding-bottom: 28px; }
  .gallery__viewport { padding-bottom: 88px; scroll-padding-inline: var(--gutter); }
  .gallery__track figure { scroll-snap-align: start; }

  /* Caption badge stays inside the photo on narrow screens */
  .vibe__photo figcaption { left: 10px; max-width: calc(100% - 20px); }

  /* Taller map so the pin isn't lost at the edge of a small square */
  .visit__map { aspect-ratio: 4 / 5; }
}

/* Very narrow phones: keep the round logo, drop the wordmark */
@media (max-width: 339px) {
  .nav__brand span { display: none; }
}

/* Small phones (iPhone SE, compact Androids) */
@media (max-width: 380px) {
  .hero__title { font-size: clamp(46px, 14.5vw, 64px); }
  .hero__cta .btn, .visit__cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
}
