/* ==========================================================================
   Petra Smoke Shop - landing page
   Palette sampled directly from the hero illustration.
   Shape rule: buttons + chips are full pills, media + panels use --r-lg,
   small inner elements use --r-md.
   z-index scale: hero layers 1-3 (local), action bar 40, mobile menu 45, header 50.
   ========================================================================== */

:root {
  /* Illustration palette */
  --sky: #93c2bd;
  --sky-soft: #c9e1de;
  --teal-950: #0e2d30;
  --teal-900: #153e42;   /* the Treasury doorway */
  --teal-800: #224c50;   /* foreground plants */
  --terracotta: #b4553a; /* accent (darkened from #C26043 for AA contrast) */
  --terracotta-700: #9a452e;
  --clay: #c26043;
  --rust: #7d493c;
  --salmon: #f2966f;
  --peach: #fdd8b1;
  --sand: #fef0d9;
  --paper: #fff8ee;
  --sun: #f1a053;
  --sage: #a5b395;

  /* Semantic tokens (light) */
  --bg: var(--paper);
  --bg-alt: var(--sand);
  --ink: var(--teal-900);
  --ink-soft: #46676a;
  --line: rgba(21, 62, 66, 0.14);
  --accent: var(--terracotta);
  --accent-hover: var(--terracotta-700);
  --accent-ink: #fff8ee;
  --focus: var(--teal-900);
  --panel: var(--sky);
  --panel-ink: var(--teal-900);
  --panel-soft: #224c50;
  --tile-warm: var(--peach);
  --tile-warm-ink: var(--teal-900);
  --tile-sage: var(--sage);
  --tile-sage-ink: var(--teal-950);
  --chip-bg: rgba(255, 248, 238, 0.7);
  --footer-bg: var(--teal-900);
  --shadow-tint: 21, 62, 66;
  --map-filter: saturate(0.85) contrast(0.97);

  /* Type */
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --r-lg: 28px;
  --r-md: 16px;
  --section-y: clamp(88px, 11vw, 160px);
  --header-h: 60px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f2b2e;
    --bg-alt: #12363a;
    --ink: #fdebd3;
    --ink-soft: #aec6c2;
    --line: rgba(253, 235, 211, 0.14);
    --focus: var(--sun);
    --panel: #1b474a;
    --panel-ink: #fdebd3;
    --panel-soft: #c9ddd9;
    --tile-warm: #4a3128;
    --tile-warm-ink: #fdebd3;
    --tile-sage: #33453b;
    --tile-sage-ink: #fdebd3;
    --chip-bg: rgba(253, 235, 211, 0.08);
    --footer-bg: #0b2326;
    --shadow-tint: 0, 0, 0;
    --map-filter: invert(0.9) hue-rotate(180deg) saturate(0.55) brightness(0.95);
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 32px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--teal-900);
  color: var(--sand);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lede {
  margin-top: 18px;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  height: var(--btn-h);
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.35s var(--ease-out);
}
.btn i { font-size: 1.2em; }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 28px -14px rgba(154, 69, 46, 0.75);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -16px rgba(154, 69, 46, 0.85);
}

.btn--ghost {
  border-color: currentColor;
  background: transparent;
}
.btn--ghost:hover { background: color-mix(in srgb, currentColor 9%, transparent); transform: translateY(-2px); }

.btn--lg { --btn-h: 54px; padding: 0 26px; font-size: 1.0625rem; }
.btn--sm { --btn-h: 40px; padding: 0 16px; font-size: 0.9375rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.35s var(--ease-out), opacity 0.25s ease, border-color 0.25s ease;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn--outline { width: 52px; height: 52px; border: 1.5px solid var(--line); }
.icon-btn--outline:hover { border-color: currentColor; background: transparent; }
.icon-btn[disabled] { opacity: 0.35; cursor: default; pointer-events: none; }

/* ---------- Status (live open / closed) ---------- */
.status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--sage);
}
[data-open="true"] .status-dot { background: #4f8f6a; }
[data-open="false"] .status-dot { background: var(--clay); }
.has-motion [data-open="true"] .status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--teal-900);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 12px 12px auto;
  z-index: 50;
  pointer-events: none;
}

.site-header__bar {
  --hdr-bg: rgba(255, 248, 238, 0.62);
  --hdr-ink: var(--teal-900);
  --hdr-border: rgba(255, 255, 255, 0.55);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1280px;
  height: var(--header-h);
  margin-inline: auto;
  padding: 0 8px 0 18px;
  border: 1px solid var(--hdr-border);
  border-radius: 999px;
  background: var(--hdr-bg);
  color: var(--hdr-ink);
  box-shadow: 0 10px 30px -18px rgba(var(--shadow-tint), 0.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  pointer-events: auto;
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

.site-header[data-theme="light"] .site-header__bar {
  --hdr-bg: color-mix(in srgb, var(--bg) 78%, transparent);
  --hdr-ink: var(--ink);
  --hdr-border: var(--line);
}
.site-header[data-theme="dark"] .site-header__bar,
.menu-open .site-header__bar {
  --hdr-bg: rgba(14, 45, 48, 0.62);
  --hdr-ink: var(--sand);
  --hdr-border: rgba(254, 240, 217, 0.12);
}
.site-header[data-theme="dark"],
.menu-open .site-header { --focus: var(--sun); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  display: grid;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.brand__tag {
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.78;
}
.site-header[data-theme="dark"] .brand__mark path:last-child,
.menu-open .brand__mark path:last-child { fill: var(--sand); }

.nav { margin-inline: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9688rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease;
}
.nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.9688rem;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.header-phone i { font-size: 1.1rem; }

.menu-btn { display: none; }
.menu-btn__lines,
.menu-btn__lines::before,
.menu-btn__lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), opacity 0.2s ease;
}
.menu-btn__lines { position: relative; }
.menu-btn__lines::before,
.menu-btn__lines::after { content: ""; position: absolute; left: 0; }
.menu-btn__lines::before { top: -6px; }
.menu-btn__lines::after { top: 6px; }
.menu-open .menu-btn__lines { background: transparent; }
.menu-open .menu-btn__lines::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn__lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1200px) {
  .header-phone { display: inline-flex; }
}

@media (max-width: 899px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .site-header__bar { padding: 0 6px 0 14px; }
}
@media (min-width: 900px) {
  .header-call { display: none; }
  .site-header__actions { margin-left: 0; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 56px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--teal-900);
  color: var(--sand);
  pointer-events: auto;
  --focus: var(--sun);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 10vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu__foot { display: grid; gap: 20px; }
.mobile-menu__foot .btn { width: 100%; }
.has-motion .mobile-menu:not([hidden]) { animation: menu-in 0.55s var(--ease-out) both; }
.has-motion .mobile-menu:not([hidden]) li { animation: rise 0.6s var(--ease-out) both; }
.has-motion .mobile-menu li:nth-child(2) { animation-delay: 0.05s; }
.has-motion .mobile-menu li:nth-child(3) { animation-delay: 0.1s; }
.has-motion .mobile-menu li:nth-child(4) { animation-delay: 0.15s; }
@keyframes menu-in {
  from { clip-path: inset(0 0 100% 0 round 0 0 32px 32px); }
  to { clip-path: inset(0 0 0 0 round 0); }
}

/* ==========================================================================
   Hero - poster scene that zooms into the doorway on scroll
   ========================================================================== */
.hero {
  position: relative;
  background: var(--sky);
  color: var(--teal-900);
  --focus: var(--teal-900);
}

.hero__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--sky);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(12px + var(--header-h) + clamp(20px, 4vh, 48px));
  text-align: center;
}

.hero__title {
  margin-top: 22px;
  max-width: 11.5em;
  font-family: var(--font-display);
  font-weight: 680;
  font-size: clamp(2.6rem, 0.9rem + 5.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero__lede {
  margin-top: 18px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  color: #224c50;
  text-wrap: balance;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.hero .btn--ghost {
  color: var(--teal-900);
  background: rgba(255, 248, 238, 0.32);
}
.hero .btn--ghost:hover { background: rgba(255, 248, 238, 0.6); }

/* The scene always covers the width (and grows on portrait screens), and tucks
   its own flat sky under the copy. 0.6642 = illustration height / width. */
.hero__scene {
  --scene-w: max(100%, 105vh);
  position: relative;
  z-index: 1;
  flex: none;
  width: var(--scene-w);
  aspect-ratio: 956 / 635;
  margin-left: calc((100% - var(--scene-w)) / 2);
  margin-top: calc(var(--scene-w) * -0.6642 * 0.22);
  transform-origin: 49.8% 71.5%; /* the doorway */
}
.hero__scene::before {
  /* hides any seam between the CSS sky and the painted sky */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 6%;
  background: linear-gradient(var(--sky), rgba(147, 194, 189, 0));
  pointer-events: none;
}
.hero__scene img { width: 100%; height: 100%; }

.hero__fill {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--teal-900);
  opacity: 0;
  pointer-events: none;
}
.hero__end { display: none; }

@media (max-width: 640px) {
  .hero__ctas { width: 100%; gap: 10px; }
  .hero__ctas .btn { flex: 1 1 0; padding: 0 14px; font-size: 1rem; }
  .hero__lede { max-width: 30em; }
}
@media (max-width: 380px) {
  .hero__ctas .btn i { display: none; }
}

/* Motion mode: tall track + sticky stage drive the scroll story */
.has-motion .hero { height: 280vh; height: 280lvh; }
.has-motion .hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
}
.has-motion .hero__scene { will-change: transform; }
.has-motion .hero__end {
  display: block;
  position: absolute;
  inset: 54% 0 0;
  pointer-events: none;
}

.has-motion .hero__content > * {
  animation: rise 1s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
.has-motion .hero__scene img { animation: scene-in 1.6s var(--ease-out) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
}
@keyframes scene-in {
  from { opacity: 0; transform: translateY(7%) scale(1.03); }
}

/* ==========================================================================
   Inside - intro statement on the doorway colour
   ========================================================================== */
.inside {
  position: relative;
  padding: clamp(96px, 14vw, 190px) 0 clamp(88px, 11vw, 150px);
  background: var(--teal-900);
  color: var(--sand);
  --focus: var(--sun);
}
.inside .eyebrow { color: var(--sky); }

.statement {
  margin-top: 28px;
  max-width: 24em;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.9rem, 0.95rem + 3.3vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.pill-img {
  display: inline-block;
  width: 1.85em;
  height: 0.92em;
  margin-inline: 0.06em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -0.1em;
  background: var(--teal-800);
}
.pill-img img { width: 100%; height: 100%; object-fit: cover; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 28px;
  border-top: 1px solid rgba(254, 240, 217, 0.16);
}
.facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
}
.facts i { font-size: 1.6rem; color: var(--sky); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section-y) 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- Departments bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(260px, 30vw, 360px)) auto;
  gap: clamp(12px, 1.4vw, 18px);
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  isolation: isolate;
}

.tile__title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.tile p { margin-top: 8px; max-width: 34ch; line-height: 1.5; }

.tile--photo { background: var(--teal-800); color: var(--sand); }
.tile--photo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.tile--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(14, 45, 48, 0.86) 0%, rgba(14, 45, 48, 0.35) 38%, rgba(14, 45, 48, 0) 62%);
}
.tile--photo:hover img { transform: scale(1.05); }
.tile__body {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(20px, 2.4vw, 32px);
}
.tile--photo p { color: rgba(254, 240, 217, 0.88); }

.tile--vapes { grid-column: 1 / 6; grid-row: 1 / 3; }
.tile--vapes .tile__title { font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.9rem); }
.tile--grocery { grid-column: 6 / 13; grid-row: 1; }
.tile--glass { grid-column: 6 / 9; grid-row: 2; }

.tile--tobacco {
  grid-column: 9 / 13;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--tile-warm);
  color: var(--tile-warm-ink);
}
.tile__orb {
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: clamp(170px, 17vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--tile-warm);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--clay) 50%, transparent);
  transition: transform 1s var(--ease-out);
}
.tile__orb img { width: 100%; height: 100%; object-fit: cover; }
.tile--tobacco:hover .tile__orb { transform: rotate(-8deg) scale(1.04); }
.tile--tobacco .tile__text { max-width: 72%; }
.tile--tobacco .tile__text p { max-width: 24ch; }

.tile--essentials {
  grid-column: 1 / 13;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--tile-sage);
  color: var(--tile-sage-ink);
}
.tile--essentials .tile__text { flex: 0 1 22rem; }
.essentials-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.essentials-icons li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  font-weight: 600;
  font-size: 0.9688rem;
  white-space: nowrap;
}
.essentials-icons i { font-size: 1.35rem; }

@media (max-width: 1023px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(2, 300px) auto auto;
  }
  .tile--vapes { grid-column: 1 / 4; grid-row: 1 / 3; }
  .tile--grocery { grid-column: 4 / 7; grid-row: 1; }
  .tile--glass { grid-column: 4 / 7; grid-row: 2; }
  .tile--tobacco { grid-column: 1 / 7; grid-row: 3; min-height: 230px; }
  .tile--essentials { grid-column: 1 / 7; grid-row: 4; flex-direction: column; align-items: flex-start; }
  .tile--essentials .tile__text { flex: none; }
  .essentials-icons { justify-content: flex-start; }
}

@media (max-width: 767px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile--vapes,
  .tile--grocery,
  .tile--glass,
  .tile--tobacco,
  .tile--essentials { grid-column: 1; grid-row: auto; }
  .tile--vapes { height: 440px; }
  .tile--grocery { height: 280px; }
  .tile--glass { height: 340px; }
  .tile--tobacco { min-height: 250px; }
  .tile__orb { width: 150px; }
}

/* ---------- Gallery rail ---------- */
.gallery { background: var(--bg-alt); }

.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.rail-controls { display: flex; gap: 10px; flex: none; }

.rail {
  --rail-pad: max(var(--gutter), (100% - var(--maxw)) / 2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none;
  cursor: grab;
  outline-offset: -3px;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .rail__open { pointer-events: none; }

.rail__track {
  display: flex;
  gap: clamp(12px, 1.4vw, 18px);
  width: max-content;
  padding-inline: var(--rail-pad);
}

.rail__item {
  flex: none;
  height: clamp(300px, 46vh, 540px);
  aspect-ratio: var(--ar, 4 / 3);
  scroll-snap-align: start;
}

.rail__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--teal-800);
  cursor: zoom-in;
}
.rail__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s ease;
  -webkit-user-drag: none;
  user-select: none;
}
.rail__open:hover img { transform: scale(1.04); }

@media (max-width: 767px) {
  .rail-controls { display: none; }
  .rail__item { height: 340px; }
}

/* ---------- Visit ---------- */
.visit__panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(14px, 3.6vw, 52px);
  border-radius: calc(var(--r-lg) + 8px);
  background: var(--panel);
  color: var(--panel-ink);
  --focus: var(--panel-ink);
}

.visit__info { padding: clamp(10px, 1vw, 0px); }

.visit__address {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.9rem);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.visit__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.visit .btn--ghost { color: var(--panel-ink); }

.hours-block {
  margin-top: clamp(36px, 4vw, 52px);
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--panel-ink) 18%, transparent);
}
.hours-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.hours-block .status-line { font-size: 0.9688rem; color: var(--panel-soft); }

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-inline: -16px;
  border-radius: var(--r-md);
  font-variant-numeric: tabular-nums;
  transition: background-color 0.3s ease;
}
.hours li span:last-child { font-weight: 600; text-align: right; white-space: nowrap; }
@media (max-width: 440px) {
  .hours li { flex-direction: column; gap: 2px; padding: 12px 14px; margin-inline: -14px; }
  .hours li span:last-child { text-align: left; }
}
.hours li.is-today { background: color-mix(in srgb, var(--paper) 55%, transparent); }
@media (prefers-color-scheme: dark) {
  .hours li.is-today { background: rgba(253, 235, 211, 0.08); }
}

.visit__map {
  position: relative;
  min-height: 520px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sky-soft);
}
.visit__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: var(--map-filter);
}

@media (max-width: 899px) {
  .visit__panel { grid-template-columns: 1fr; }
  .visit__info { padding: 14px 8px 0; }
  .visit__map { min-height: 360px; }
}
@media (max-width: 480px) {
  .visit__ctas .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Footer / contact
   ========================================================================== */
.site-footer {
  padding: clamp(96px, 12vw, 160px) 0 calc(36px + env(safe-area-inset-bottom));
  background: var(--footer-bg);
  color: var(--sand);
  --focus: var(--sun);
  --line: rgba(254, 240, 217, 0.16);
}

.footer__title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(3.2rem, 0.8rem + 10vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  padding-bottom: 0.06em;
}

.contact-list { margin-top: clamp(48px, 6vw, 88px); }
.contact-list li + li .contact-row { border-top: 1px solid var(--line); }

.contact-row {
  display: grid;
  grid-template-columns: minmax(80px, 2fr) 7fr auto;
  align-items: center;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 30px) 0;
  text-decoration: none;
}
.contact-row__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sky);
}
.contact-row__value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.6rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow-wrap: anywhere;
  transition: transform 0.5s var(--ease-out);
}
.contact-row__icon {
  font-size: clamp(1.4rem, 1rem + 1vw, 2rem);
  transition: transform 0.5s var(--ease-out), color 0.3s ease;
}
.contact-row:hover .contact-row__value { transform: translateX(10px); }
.contact-row:hover .contact-row__icon { transform: rotate(45deg); color: var(--salmon); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: clamp(64px, 8vw, 110px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer__nav a { font-weight: 600; text-decoration: none; opacity: 0.85; }
.footer__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__social { display: flex; gap: 8px; margin-left: auto; }
.footer__social .icon-btn--outline { width: 46px; height: 46px; }
.footer__notice {
  flex-basis: 100%;
  display: grid;
  gap: 6px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(254, 240, 217, 0.82);
}
.footer__notice p { max-width: 72ch; }
.footer__notice strong { color: var(--sand); font-weight: 700; }
.footer__legal {
  flex-basis: 100%;
  font-size: 0.875rem;
  color: rgba(254, 240, 217, 0.62);
}

@media (max-width: 640px) {
  .contact-row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .contact-row__label { grid-column: 1 / -1; }
  .footer__social { margin-left: 0; }
}
@media (max-width: 767px) {
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Mobile action bar
   ========================================================================== */
.action-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.78);
  border: 1px solid rgba(21, 62, 66, 0.1);
  box-shadow: 0 18px 40px -20px rgba(21, 62, 66, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  color: var(--teal-900);
  transform: translateY(150%);
  transition: transform 0.5s var(--ease-out);
}
.action-bar .btn { --btn-h: 48px; padding: 0 12px; font-size: 0.9688rem; }
.action-bar.is-visible { transform: none; }
@media (prefers-color-scheme: dark) {
  .action-bar { background: rgba(14, 45, 48, 0.8); color: var(--sand); border-color: rgba(254, 240, 217, 0.12); }
}
@media (min-width: 768px) {
  .action-bar { display: none; }
}

/* ==========================================================================
   Welcome popup (new management)
   ========================================================================== */
html.welcome-open { overflow: hidden; }
.welcome-open .hero__content > *,
.welcome-open .hero__scene img { animation-play-state: paused; }

.welcome {
  width: min(100% - 32px, 460px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(14, 45, 48, 0.65);
  overflow: auto;
  --focus: var(--ink);
}
.welcome::backdrop {
  background: rgba(14, 45, 48, 0.42);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}
.has-motion .welcome[open] { animation: welcome-in 0.7s var(--ease-out) both; }
@keyframes welcome-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
}

.welcome__close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--ink-soft);
}

.welcome__card {
  display: grid;
  justify-items: center;
  padding: clamp(32px, 6vw, 44px) clamp(20px, 5vw, 36px) clamp(24px, 5vw, 32px);
  text-align: center;
}
.welcome__mark { width: 52px; height: 52px; }
.welcome__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--clay) 14%, transparent);
  color: var(--clay);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (prefers-color-scheme: dark) {
  .welcome__badge { color: var(--salmon); }
}
.welcome__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 680;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.welcome__text {
  margin-top: 12px;
  max-width: 32ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.welcome__perks {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  text-align: left;
}
.welcome__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--sky) 32%, transparent);
  font-weight: 600;
}
.welcome__perks i { font-size: 1.4rem; color: var(--terracotta); }
@media (prefers-color-scheme: dark) {
  .welcome__perks li { background: rgba(253, 235, 211, 0.07); }
  .welcome__perks i { color: var(--salmon); }
}
.welcome__cta { width: 100%; margin-top: 24px; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 33, 36, 0.94);
  color: var(--sand);
  --focus: var(--sun);
}
.lightbox::backdrop { background: rgba(10, 33, 36, 0.6); }
.lightbox[open] { display: grid; place-items: center; }
.has-motion .lightbox[open] { animation: fade-in 0.35s ease both; }
.has-motion .lightbox[open] .lightbox__figure img { animation: zoom-in 0.5s var(--ease-out) both; }

.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 72px 16px 32px;
}
.lightbox__figure img {
  max-width: min(92vw, 1600px);
  max-height: calc(100dvh - 170px);
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  object-fit: contain;
}
.lightbox__figure figcaption { font-size: 0.9688rem; color: rgba(254, 240, 217, 0.78); text-align: center; }

.lightbox__btn {
  position: fixed;
  width: 52px;
  height: 52px;
  background: rgba(254, 240, 217, 0.1);
  font-size: 1.4rem;
}
.lightbox__btn:hover { background: rgba(254, 240, 217, 0.2); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; translate: none; }
}

@keyframes fade-in { from { opacity: 0; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.96); } }

/* ==========================================================================
   Scroll reveals (only when motion is allowed)
   ========================================================================== */
.has-motion [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.has-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
