/* BRIDGE — shared components: header, mobile menu, footer, intro, reveals, forms, gallery */

/* =========================================================
   INTRO EXPERIENCE
   Two variants share this markup/motion language:
   - .intro (site-wide "Bridge" entry) — restaurant/location photography.
   - .intro--event (BRIDŽOVANJE entry, bridgovanje/ only) — night/event
     photography, slightly warmer glow. Same structure, same interaction.
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: var(--z-intro);
  background: var(--color-ink-950);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Dedicated duration (not --dur-slow, which the mobile menu also uses) —
     the JS hidden-attribute timeout is tuned to match this exactly, so the
     overlay finishes dissolving to fully transparent before it's removed
     from layout instead of popping off mid-fade. A soft decelerate reads
     more like the homepage naturally arriving than the more mechanical
     ease-bridge used for the entrance/reveal motion. */
  transition: opacity 700ms var(--ease-out-soft), visibility 700ms var(--ease-out-soft);
}

.intro[hidden] {
  display: none;
}

.intro.is-leaving {
  opacity: 0;
  pointer-events: none;
}

/* A quiet continued push-in while the overlay dissolves — the homepage hero
   underneath reads as naturally taking over rather than the intro simply
   vanishing. */
.intro.is-leaving .intro__bg-media {
  transform: scale(1.1);
  transition: transform 700ms var(--ease-out-soft);
}

/* ---- Background photography ---- */
.intro__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.intro__bg-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.1);
  filter: blur(14px) saturate(0.92);
  transition: transform 2600ms var(--ease-out-soft), filter 1800ms var(--ease-out-soft);
}

.intro.is-running .intro__bg-media {
  transform: scale(1.02);
  filter: blur(0) saturate(1);
}

.intro.is-revealing .intro__bg-media {
  transform: scale(1.06);
  transition: transform 900ms var(--ease-bridge);
}

.intro__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 21, 18, 0.55) 0%, rgba(11, 21, 18, 0.72) 55%, rgba(11, 21, 18, 0.88) 100%);
}

.intro--event .intro__scrim {
  background:
    radial-gradient(65% 55% at 50% 38%, rgba(11, 21, 18, 0.45), rgba(11, 21, 18, 0.82) 72%),
    linear-gradient(180deg, rgba(11, 21, 18, 0.5) 0%, rgba(11, 21, 18, 0.86) 100%);
}

/* Restaurant entry: same structure/motion as the site + event intros, but a
   warmer, more intimate scrim (hospitality character vs. the event's cooler
   night read) over interior/table photography instead of exterior or event
   photography. */
.intro--restaurant .intro__scrim {
  background:
    radial-gradient(65% 55% at 50% 42%, rgba(46, 28, 12, 0.4), rgba(11, 21, 18, 0.8) 74%),
    linear-gradient(180deg, rgba(46, 28, 12, 0.32) 0%, rgba(11, 21, 18, 0.84) 100%);
}

.intro--restaurant .intro__enter-glow {
  background: radial-gradient(60% 60% at 50% 50%, rgba(217, 161, 92, 0.38), rgba(217, 161, 92, 0) 70%);
}

@media (prefers-reduced-motion: reduce) {
  .intro__bg-media {
    transform: none;
    filter: none;
    transition: none;
  }
}

.intro__stage {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.intro__line {
  position: absolute;
  top: 50%;
  height: var(--line-medium);
  width: 42%;
  background: var(--color-stone-100);
  opacity: 0.4;
  transform: translateY(-50%) scaleX(0);
  transform-origin: center;
}

.intro__line--left {
  left: 0;
  transform-origin: left center;
}

.intro__line--right {
  right: 0;
  transform-origin: right center;
}

.intro.is-running .intro__line--left {
  animation: introLineLeft 1000ms var(--ease-bridge) 120ms forwards;
}

.intro.is-running .intro__line--right {
  animation: introLineRight 1000ms var(--ease-bridge) 120ms forwards;
}

@keyframes introLineLeft {
  to { transform: translateY(-50%) scaleX(1); }
}

@keyframes introLineRight {
  to { transform: translateY(-50%) scaleX(1); }
}

/* ---- Decorative BRIDŽOVANJE wordmark (event variant only) ---- */
.intro__event-word {
  position: relative;
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  letter-spacing: 0.06em;
  color: var(--color-text-inverse);
  opacity: 0;
  transform: translateY(10px);
  text-align: center;
}

.intro.is-running .intro__event-word {
  animation: introWordIn 800ms var(--ease-out-soft) 600ms forwards;
}

@keyframes introWordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Restaurant entry uses the same word treatment, warm accent instead of the
   event's neutral stone — the one deliberate color difference between the
   two secondary entries. */
.intro__event-word--restaurant {
  color: var(--color-ember-400);
}

/* ---- ENTER: personalized entry point, real Bridge logo mark ---- */
.intro__enter {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  background: none;
  border: none;
  padding: var(--space-md);
  margin: 0;
  cursor: pointer;
  color: var(--color-stone-50);
  opacity: 0;
  transform: scale(0.92);
  -webkit-tap-highlight-color: transparent;
}

.intro.is-running .intro__enter {
  animation: introEnterIn 900ms var(--ease-out-soft) 1000ms forwards;
}

@keyframes introEnterIn {
  to { opacity: 1; transform: scale(1); }
}

.intro__enter-inner {
  position: relative;
  width: min(78vw, 300px);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-base) var(--ease-out-soft);
}

.intro__enter-glow {
  position: absolute;
  inset: -18%;
  border-radius: var(--radius-lg);
  background: radial-gradient(60% 60% at 50% 50%, rgba(217, 161, 92, 0.3), rgba(217, 161, 92, 0) 70%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-soft);
  pointer-events: none;
}

.intro--event .intro__enter-glow {
  background: radial-gradient(60% 60% at 50% 50%, rgba(217, 161, 92, 0.32), rgba(111, 168, 160, 0.14) 55%, rgba(217, 161, 92, 0) 72%);
}

.intro__enter-ring {
  position: absolute;
  inset: 0;
  border: var(--line-hairline) solid var(--color-line-inverse);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-base) var(--ease-out-soft), transform var(--dur-base) var(--ease-out-soft);
  overflow: hidden;
}

/* Very subtle light sweep across the ring frame — no glow/neon */
.intro__enter-ring::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(250, 248, 243, 0.16), transparent);
  transform: skewX(-18deg);
}

@media (prefers-reduced-motion: no-preference) {
  .intro.is-running .intro__enter-ring {
    animation: introRingBreathe 4200ms ease-in-out 2200ms infinite;
  }

  .intro.is-running .intro__enter-ring::after {
    animation: introRingSweep 5200ms ease-in-out 2600ms infinite;
  }
}

@keyframes introRingBreathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.015); opacity: 1; }
}

@keyframes introRingSweep {
  0%, 80%, 100% { left: -60%; }
  40% { left: 130%; }
}

.intro__enter-logo {
  position: relative;
  width: 100%;
  color: var(--color-stone-50);
}

.intro__enter-logo picture,
.intro__enter-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.intro__enter-label {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-inverse-muted);
  transition: color var(--dur-base) var(--ease-out-soft);
}

@media (hover: hover) and (pointer: fine) {
  .intro__enter:hover .intro__enter-inner,
  .intro__enter:focus-visible .intro__enter-inner {
    transform: scale(1.035);
  }

  .intro__enter:hover .intro__enter-ring,
  .intro__enter:focus-visible .intro__enter-ring {
    border-color: var(--color-ember-400);
  }

  .intro__enter:hover .intro__enter-glow,
  .intro__enter:focus-visible .intro__enter-glow {
    opacity: 1;
  }

  .intro__enter:hover .intro__enter-label,
  .intro__enter:focus-visible .intro__enter-label {
    color: var(--color-stone-50);
  }
}

.intro__enter:active .intro__enter-inner {
  transform: scale(0.985);
}

/* ---- Auto cinematic entry (main homepage intro only) ----
   No click required: purely decorative, so it never intercepts pointer
   events, and gets a very slow held breathing scale instead of hover/ring
   affordances (there's nothing to hover). */
.intro__enter--auto {
  cursor: default;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .intro.is-running .intro__enter--auto .intro__enter-inner {
    animation: introAutoBreathe 3200ms ease-in-out 1900ms infinite;
  }
}

@keyframes introAutoBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.intro__mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--color-stone-50);
  clip-path: inset(0 50% 0 50%);
  pointer-events: none;
}

.intro.is-revealing .intro__mask {
  animation: introMaskReveal 900ms var(--ease-bridge) forwards;
}

.intro.is-revealing .intro__enter {
  animation: introEnterOut 480ms var(--ease-bridge) forwards;
}

.intro.is-revealing .intro__line--left,
.intro.is-revealing .intro__line--right {
  transition: opacity 400ms var(--ease-bridge);
  opacity: 0;
}

@keyframes introMaskReveal {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes introEnterOut {
  to { opacity: 0; transform: scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .intro__enter-ring,
  .intro__enter-ring::after {
    animation: none !important;
  }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding-block: var(--space-sm);
  border-bottom: var(--line-hairline) solid transparent;
  transition:
    background var(--dur-base) var(--ease-out-soft),
    border-color var(--dur-base) var(--ease-out-soft),
    box-shadow var(--dur-base) var(--ease-out-soft),
    padding var(--dur-base) var(--ease-out-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Transparent (default) state: text sits directly on the hero photo/video,
   so it carries a very soft shadow purely for legibility — not a visual
   effect, just enough to hold contrast over bright frames. */
.site-header:not(.is-scrolled) .site-header__logo,
.site-header:not(.is-scrolled) .site-header__link,
.site-header:not(.is-scrolled) .hamburger__bar {
  text-shadow: 0 1px 8px rgba(11, 21, 18, 0.35);
}

.site-header:not(.is-scrolled) .hamburger__bar {
  box-shadow: 0 1px 8px rgba(11, 21, 18, 0.35);
}

.site-header.is-scrolled {
  padding-block: var(--space-xs);
  background: rgba(11, 21, 18, 0.82);
  border-color: var(--color-line-inverse);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: var(--shadow-sm);
}

.theme-night .site-header.is-scrolled {
  background: rgba(15, 12, 22, 0.86);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* Logo is the real Bridge photo-mark. Its source photo is a full-bleed crop
   (the mark's own strokes reach to within a couple of percent of every
   edge, confirmed pixel-by-pixel — there is no internal margin left to
   feather), so the fix isn't masking the image but undressing the frame
   around it: no border, no gradient plate, no glossy inset highlight — just
   a barely-there glass tint that lets the header's own dark tone read
   through instead of presenting as a separate boxed card. A quiet
   drop-shadow keeps the mark legible over bright stretches of the hero
   video without needing a solid background. No hover motion beyond a faint
   opacity shift — the mark itself never moves. */
.site-header__logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 12, 12, 0.16);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: opacity var(--dur-base) var(--ease-out-soft), background var(--dur-base) var(--ease-out-soft);
}

.site-header__logo-frame picture {
  display: block;
  height: 100%;
}

.site-header__logo-frame img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55));
}

.site-header__logo:hover .site-header__logo-frame,
.site-header__logo:focus-visible .site-header__logo-frame {
  opacity: 0.9;
  background: rgba(10, 12, 12, 0.24);
}

.site-header.is-scrolled .site-header__logo-frame {
  height: 2.15rem;
}

@media (min-width: 600px) {
  .site-header__logo-frame {
    height: 2.75rem;
  }

  .site-header.is-scrolled .site-header__logo-frame {
    height: 2.35rem;
  }
}

.site-header__nav {
  display: none;
}

.site-header__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-header__link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-inverse-muted);
  padding-block: var(--space-2xs);
  transition: color var(--dur-fast) var(--ease-out-soft);
}

.site-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-silver-100);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out-soft);
}

.site-header__link:hover,
.site-header__link:focus-visible,
.site-header__link.is-active {
  color: var(--color-text-inverse);
}

.site-header__link:hover::after,
.site-header__link:focus-visible::after,
.site-header__link.is-active::after {
  transform: scaleX(1);
}

/* ---- Premium nav buttons: Restoran & BRIDŽOVANJE ----
   Share one system (height, padding, radius unit, border weight, motion
   duration) with each other, but read as more exclusive than the plain
   links — and differ sharply in atmosphere from each other: Restoran is a
   neutral graphite/silver glass (no colour of its own — it borrows nothing
   from the CTA's bronze), BRIDŽOVANJE is the site's one deliberate lilac
   accent, reserved exclusively for it. Neither uses food-cliché icons or
   neon; corners are a soft rounded-rectangle rather than a generic pill. */
.site-header__link--premium {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 1.05em;
  border-radius: 10px;
  border: var(--line-hairline) solid var(--color-line-inverse);
  background: rgba(16, 19, 20, 0.34);
  transition:
    background 300ms var(--ease-out-soft),
    border-color 300ms var(--ease-out-soft),
    box-shadow 300ms var(--ease-out-soft),
    transform 300ms var(--ease-out-soft);
}

.site-header__link--premium::after {
  display: none;
}

.site-header__link--premium:hover,
.site-header__link--premium:focus-visible {
  transform: translateY(-1px);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 13px;
  height: 13px;
}

.btn-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

/* BRIDŽOVANJE's mark: a small outlined diamond — a quiet nod to cards
   without illustrating a suit or a literal bridge motif. */
.btn-icon--diamond::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border: 1.3px solid currentColor;
  transform: rotate(45deg);
}

.site-header__link--premium .btn-icon {
  opacity: 0.85;
  transition: transform 300ms var(--ease-out-soft);
}

.site-header__link--premium:hover .btn-icon,
.site-header__link--premium:focus-visible .btn-icon {
  transform: translateX(1.5px);
}

/* Restoran — neutral graphite/silver glass, no colour of its own */
.site-header__link--restaurant {
  color: var(--color-text-inverse);
  background: rgba(16, 19, 20, 0.4);
  border-color: rgba(242, 239, 230, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-header__link--restaurant:hover,
.site-header__link--restaurant:focus-visible {
  background: rgba(28, 32, 34, 0.56);
  border-color: rgba(242, 239, 230, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 18px rgba(5, 7, 8, 0.28);
}

/* BRIDŽOVANJE — the site's one lilac accent: darker silhouette, controlled
   glow, distinct asymmetric corner radius so it never reads as "Restoran
   in a different colour". */
.site-header__link--bridgovanje {
  position: relative;
  overflow: hidden;
  color: var(--color-text-inverse);
  background: linear-gradient(160deg, rgba(24, 14, 36, 0.6), rgba(9, 7, 13, 0.72));
  border-color: rgba(177, 105, 255, 0.42);
  border-radius: 4px 10px;
  letter-spacing: 0.08em;
  box-shadow: 0 0 16px var(--color-lilac-glow);
}

.site-header__link--bridgovanje::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(199, 155, 255, 0.18), transparent);
  transform: skewX(-18deg);
  transition: left 900ms var(--ease-out-soft);
  pointer-events: none;
}

.site-header__link--bridgovanje:hover,
.site-header__link--bridgovanje:focus-visible {
  background: linear-gradient(160deg, rgba(32, 18, 48, 0.68), rgba(12, 9, 17, 0.8));
  border-color: rgba(177, 105, 255, 0.75);
  box-shadow: 0 0 22px var(--color-lilac-glow);
}

.site-header__link--bridgovanje:hover::before,
.site-header__link--bridgovanje:focus-visible::before {
  left: 130%;
}

@media (prefers-reduced-motion: reduce) {
  .site-header__link--bridgovanje::before {
    display: none;
  }
}

/* ---- BRIDŽOVANJE off-season lock state (CONFIG.BRIDGOVANJE_OPEN = false) ----
   Button stays visible, just dims and stops navigating (see
   bridgovanje-toggle.js); a small "Van sezone" note appears on hover/focus
   (desktop) — no icon, no modal. */
body.bridgovanje-closed a[href="/bridgovanje/"] {
  cursor: not-allowed;
}

body.bridgovanje-closed .site-header__link--bridgovanje,
body.bridgovanje-closed .mobile-menu__link--bridgovanje {
  opacity: 0.5;
}

body.bridgovanje-closed .site-header__link--bridgovanje::before {
  display: none;
}

body.bridgovanje-closed .site-header__link--bridgovanje::after {
  content: "Van sezone";
  position: absolute;
  bottom: -1.7em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-inverse-muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out-soft);
}

body.bridgovanje-closed .site-header__link--bridgovanje:hover::after,
body.bridgovanje-closed .site-header__link--bridgovanje:focus-visible::after,
body.bridgovanje-closed .site-header__link--bridgovanje.is-locked-tapped::after {
  opacity: 1;
}

body.bridgovanje-closed .mobile-menu__link--bridgovanje::after {
  content: "Van sezone — vraća se tokom leta";
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-inverse-muted);
  margin-top: 0.3em;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Below 960px the reservation CTA already lives in the mobile menu footer
   (see .mobile-menu__footer) and on the sticky CTA bar — showing it a third
   time in the compact header row just crowds the hamburger. */
@media (max-width: 959px) {
  .site-header__actions > .btn {
    display: none;
  }
}

/* ---- Developer credit (MaxDiVision) ----
   Deliberately last in the header's visual hierarchy: logo, then nav, then
   the reservation CTA, then this. A small square glass chip — never a
   text lockup — so it reads as a quiet maker's mark rather than a second
   brand competing with Bridge.
   Below 960px the header row is already tight (CTA + hamburger, sharing the
   same corner the watermark cover also protects) — there is no spare width
   left for a third element without forcing an overflow. Rather than shrink
   the CTA or the tap target, the chip simply isn't part of that compact bar:
   it moves into the mobile menu's footer (see .mobile-menu__credit below),
   where there is room to show it properly instead of squeezed. */
.dev-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(16, 19, 20, 0.28);
  border: var(--line-hairline) solid rgba(242, 239, 230, 0.14);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition:
    background 300ms var(--ease-out-soft),
    border-color 300ms var(--ease-out-soft),
    opacity 300ms var(--ease-out-soft);
  opacity: 0.72;
}

.dev-credit__mark {
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text-inverse-muted);
  line-height: 1;
}

svg.dev-credit__mark {
  width: 14px;
  height: 14px;
}

.dev-credit:hover,
.dev-credit:focus-visible {
  opacity: 1;
  background: rgba(28, 32, 34, 0.42);
  border-color: rgba(242, 239, 230, 0.32);
}

.dev-credit:hover .dev-credit__mark,
.dev-credit:focus-visible .dev-credit__mark {
  color: var(--color-text-inverse);
}

/* ---- Hero placement (homepage) ----
   Sits directly on top of the video's own burned-in watermark, inside the
   hero/video wrapper — not the header row — so it never competes with the
   nav or the reservation CTA. Hidden whenever the watermark cover itself is
   (see .hero__watermark-cover), since without it there's no watermark to
   sit on. Deliberately no chip/background/border here (unlike the header's
   .dev-credit) — the real MaxDiVision mark is a recognizable enough shape on
   its own that a glass-chip container would just read as a second button
   competing with the CTA, not a maker's mark. */
.dev-credit--hero {
  display: none;
  position: absolute;
  /* Centered inside .hero__watermark-cover's own clamp()-sized footprint
     (whatever it resolves to at the current viewport) rather than a fixed
     offset — previously top/right:10px left visible slack on the cover's
     other two sides at wider widths, so the logo read as adrift in the
     zone instead of filling it. */
  top: calc(clamp(40px, 4.2vh, 52px) / 2 - clamp(15px, 1.6vw, 19px));
  right: calc(clamp(54px, 4vw, 72px) / 2 - clamp(15px, 1.6vw, 19px));
  z-index: 3;
  width: clamp(30px, 3.2vw, 38px);
  height: clamp(30px, 3.2vw, 38px);
}

.dev-credit__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
  transition: opacity 300ms var(--ease-out-soft);
  opacity: 0.92;
}

.dev-credit--hero:hover .dev-credit__logo,
.dev-credit--hero:focus-visible .dev-credit__logo {
  opacity: 1;
}

@media (min-width: 960px) and (min-aspect-ratio: 16 / 9) {
  .dev-credit--hero {
    display: inline-flex;
  }
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
}

.hamburger__bar {
  width: 22px;
  height: 2px;
  background: var(--color-text-inverse);
  transition: transform var(--dur-fast) var(--ease-out-soft), opacity var(--dur-fast) var(--ease-out-soft);
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 960px) {
  .site-header__nav {
    display: block;
  }

  .hamburger {
    display: none;
  }
}

/* =========================================================
   MOBILE MENU
   ========================================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-menu);
  background: var(--color-ink-950);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-bridge), visibility var(--dur-base) var(--ease-bridge);
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu__panel {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path var(--dur-slow) var(--ease-bridge);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-open .mobile-menu__panel {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--container-pad);
}

.mobile-menu__close {
  width: 42px;
  height: 42px;
  color: var(--color-text-inverse);
  position: relative;
}

.mobile-menu__close::before,
.mobile-menu__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.mobile-menu__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--container-pad);
  gap: var(--space-sm);
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--color-text-inverse);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-base) var(--ease-out-soft), transform var(--dur-base) var(--ease-out-soft);
}

.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__link:nth-child(1) { transition-delay: 80ms; }
.mobile-menu__link:nth-child(2) { transition-delay: 140ms; }
.mobile-menu__link:nth-child(3) { transition-delay: 200ms; }
.mobile-menu__link:nth-child(4) { transition-delay: 260ms; }
.mobile-menu__link:nth-child(5) { transition-delay: 320ms; }

/* Restoran & BRIDŽOVANJE stay distinguished on mobile too, but as a framed
   inline treatment around the word itself — not a full-width banner. Same
   neutral-silver-vs-lilac split as desktop. */
.mobile-menu__link--premium {
  display: inline-flex;
  align-items: baseline;
  align-self: flex-start;
  gap: 0.35em;
  padding: 0.08em 0.45em;
  border-radius: 8px;
  border: var(--line-hairline) solid transparent;
}

.mobile-menu__link--premium .btn-icon {
  align-self: center;
  opacity: 0.85;
}

.mobile-menu__link--restaurant {
  border-color: rgba(242, 239, 230, 0.28);
  background: rgba(242, 239, 230, 0.06);
}

.mobile-menu__link--bridgovanje {
  border-color: rgba(177, 105, 255, 0.4);
  background: linear-gradient(160deg, rgba(24, 14, 36, 0.5), rgba(9, 7, 13, 0.6));
  border-radius: 4px 8px;
  box-shadow: 0 0 14px var(--color-lilac-glow);
}

.mobile-menu__footer {
  padding: var(--space-md) var(--container-pad) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  border-top: var(--line-hairline) solid var(--color-line-inverse);
}

.mobile-menu__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  color: var(--color-text-inverse-muted);
  font-size: var(--fs-small);
}

/* Developer credit's mobile home — see the note on .dev-credit above. Plain
   text label reads fine here since the footer has room, unlike the header. */
.mobile-menu__credit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
}

.mobile-menu__credit .dev-credit {
  display: inline-flex;
  opacity: 0.8;
}

.mobile-menu__credit-text {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--color-text-inverse-muted);
}

@media (min-width: 400px) {
  .mobile-menu__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  .mobile-menu__credit {
    display: none;
  }
}

@media (min-width: 960px) {
  .mobile-menu {
    display: none;
  }
}

/* =========================================================
   STICKY MOBILE CTA
   ========================================================= */
.sticky-cta {
  position: fixed;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: var(--z-sticky-cta);
  transform: translateY(140%);
  transition: transform var(--dur-base) var(--ease-out-soft);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  width: 100%;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 960px) {
  .sticky-cta {
    display: none;
  }
}

/* =========================================================
   REVEAL PRIMITIVES (RevealText / RevealImage)
   ========================================================= */
.reveal-text {
  overflow: hidden;
  display: block;
}

.reveal-text__line {
  display: block;
  transform: translateY(105%);
  transition: transform var(--dur-reveal) var(--ease-bridge);
}

.reveal-text.is-visible .reveal-text__line {
  transform: translateY(0);
}

.reveal-image {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.reveal-image__mask {
  position: absolute;
  inset: 0;
  background: var(--color-stone-50);
  z-index: 2;
  transform-origin: left;
}

.reveal-image.is-visible .reveal-image__mask {
  animation: revealCurtain var(--dur-reveal) var(--ease-bridge) forwards;
}

@keyframes revealCurtain {
  to { transform: scaleX(0); }
}

.reveal-image__media {
  transform: scale(1.08);
  transition: transform 1400ms var(--ease-bridge);
}

img.reveal-image__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reveal-image.is-visible .reveal-image__media {
  transform: scale(1);
}

.reveal-split {
  position: relative;
  overflow: hidden;
}

.reveal-split__half {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  transition: transform 1100ms var(--ease-bridge);
}

.reveal-split__half--left {
  transform: translateX(-100%);
}

.reveal-split__half--right {
  left: 50%;
  transform: translateX(100%);
}

.reveal-split.is-visible .reveal-split__half--left,
.reveal-split.is-visible .reveal-split__half--right {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-text__line,
  .reveal-image__media,
  .reveal-split__half {
    transition: none !important;
    transform: none !important;
  }
  .reveal-image__mask {
    display: none;
  }
}

/* =========================================================
   HERO SCROLL CUE (shared by any hero-type section)
   ========================================================= */
.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 1px;
  height: 46px;
}

.hero__scroll-cue span {
  display: block;
  width: 1px;
  height: 100%;
  background: var(--color-line-inverse);
  position: relative;
  overflow: hidden;
}

.hero__scroll-cue span::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-stone-50);
  animation: scrollCue 2.2s var(--ease-bridge) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue span::after { animation: none; top: 0; }
}

@keyframes scrollCue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* =========================================================
   BACKGROUND / AMBIENT VIDEO
   ========================================================= */
.media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-ink-950);
}

/* Gallery lightbox video playback (controls visible, not autoplaying) */
.lightbox__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-badge {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(11, 21, 18, 0.55);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-badge::before {
  content: "";
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 2px;
}

/* =========================================================
   PARALLAX
   ========================================================= */
.parallax {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .parallax {
    transform: none !important;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-ink-950);
  color: var(--color-text-inverse-muted);
  padding-block: var(--space-xl) var(--space-lg);
}

.site-footer__top {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: var(--line-hairline) solid var(--color-line-inverse);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-text-inverse);
}

.site-footer__cols {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

.site-footer__col h3 {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-xs);
}

.site-footer__col a,
.site-footer__col p {
  display: block;
  font-size: var(--fs-small);
  margin-bottom: var(--space-2xs);
  color: var(--color-text-inverse-muted);
  transition: color var(--dur-fast) var(--ease-out-soft);
}

.site-footer__col a:hover {
  color: var(--color-text-inverse);
}

.site-footer__bottom {
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: space-between;
  font-size: var(--fs-small);
}

/* Quiet footer attribution — deliberately weaker than the Bridge copyright
   line next to it: smaller, lower opacity, no underline/button treatment.
   Only present on pages that don't already carry a MaxDiVision backlink
   elsewhere (see .dev-credit / .dev-credit--hero). */
.site-footer__credit {
  font-size: 0.7rem;
  opacity: 0.55;
}

.site-footer__credit a {
  color: inherit;
  text-decoration: none;
  transition: opacity 300ms var(--ease-out-soft), color 300ms var(--ease-out-soft);
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
  opacity: 0.85;
  color: var(--color-text-inverse);
}

@media (min-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1.2fr 2fr;
    align-items: start;
  }

  .site-footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   FORM
   ========================================================= */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin-bottom: var(--space-sm);
}

.form-field label {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.9rem 1rem;
  border: var(--line-hairline) solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  min-height: 48px;
  transition: border-color var(--dur-fast) var(--ease-out-soft), box-shadow var(--dur-fast) var(--ease-out-soft);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 138, 63, 0.18);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--color-error);
}

.form-field__error {
  font-size: var(--fs-small);
  color: var(--color-error);
  min-height: 1.2em;
}

.form-row {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-row--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-status {
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  font-size: var(--fs-small);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: rgba(63, 122, 82, 0.12);
  color: var(--color-success);
}

.form-status--error {
  background: rgba(179, 69, 47, 0.12);
  color: var(--color-error);
}

.btn[data-loading="true"] {
  pointer-events: none;
  opacity: 0.75;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 700ms linear infinite;
  display: none;
}

.btn[data-loading="true"] .spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   GALLERY / LIGHTBOX
   ========================================================= */
.masonry {
  columns: 1;
  column-gap: var(--space-sm);
}

@media (min-width: 640px) {
  .masonry { columns: 2; }
}

@media (min-width: 1024px) {
  .masonry { columns: 3; }
}

.masonry__item {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
}

.masonry__item .image-slot {
  aspect-ratio: var(--ar, 4 / 5);
}

.masonry__item img,
.masonry__item video {
  aspect-ratio: var(--ar, 4 / 5);
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(11, 21, 18, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-soft), visibility var(--dur-base) var(--ease-out-soft);
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.lightbox__figure {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: var(--color-text-inverse);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--line-hairline) solid var(--color-line-inverse);
  border-radius: 50%;
}

.lightbox__close { top: var(--space-md); right: var(--space-md); }
.lightbox__prev { left: var(--space-md); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--space-md); top: 50%; transform: translateY(-50%); }

/* =========================================================
   PAGE TRANSITION OVERLAY
   ========================================================= */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: var(--z-transition);
  background: var(--color-ink-950);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

.page-transition.is-covering {
  animation: pageCoverIn var(--dur-base) var(--ease-bridge) forwards;
}

.page-transition.is-revealing {
  transform-origin: top;
  animation: pageCoverOut var(--dur-base) var(--ease-bridge) forwards;
}

@keyframes pageCoverIn {
  to { transform: scaleY(1); }
}

@keyframes pageCoverOut {
  from { transform: scaleY(1); }
  to { transform: scaleY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    display: none;
  }
}

/* ---- Food/drink slideshow (crossfading photo stack) ----
   Shared by the homepage restaurant preview card and the Restoran page
   hero. Fills whatever positioned box it's placed in; combine with
   .page-hero__media (restaurant.css) for a full-bleed hero use. */
.food-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.food-slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1400ms var(--ease-out-soft);
}

.food-slideshow__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.food-slideshow__slide picture,
.food-slideshow__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food-slideshow__slide img {
  transform: scale(1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .food-slideshow__slide {
    transition: opacity 600ms linear;
  }

  .food-slideshow__slide img {
    transform: none !important;
  }
}
