/* JB Restavracija — nova stran po celostni grafični podobi JB
   Pisava: HVD Brandon Text (iz jb-slo.com). Barve: bela, #1A1818, roza iz logotipa. */

@font-face { font-family: "Brandon"; src: url("fonts/BrandonText-Thin.woff2") format("woff2"), url("fonts/BrandonText-Thin.ttf") format("truetype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Brandon"; src: url("fonts/BrandonText-Light.woff2") format("woff2"), url("fonts/BrandonText-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Brandon"; src: url("fonts/BrandonText-Regular.woff2") format("woff2"), url("fonts/BrandonText-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Brandon"; src: url("fonts/BrandonText-RegularItalic.woff2") format("woff2"), url("fonts/BrandonText-RegularItalic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Brandon"; src: url("fonts/BrandonText-Bold.woff2") format("woff2"), url("fonts/BrandonText-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --white: #FFFFFF;
  --ink: #1A1818;
  --black: #000000;
  --muted: #6E6969;
  --soft: #F6F5F4;
  --line: #E4E1E1;
  --pink: #ED1556;
  --pink-text: #CC3366;

  --font: "Brandon", "Helvetica Neue", Arial, sans-serif;
  --track: 0.25em;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 10vw, 150px);
  --header-h: 112px;
  --header-h-small: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h-small); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.center { text-align: center; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--black); color: var(--white); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* ---------- Tipografija (razprte velike črke, kot v CGP) ---------- */

.kicker {
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.title {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.35;
}
.page-title {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.25;
}
.small-title {
  font-size: 15px; font-weight: 700;
  letter-spacing: var(--track); text-transform: uppercase;
  line-height: 1.6;
  margin-bottom: 14px;
}
/* debela črna črta pod naslovom — znak JB */
.rule { display: block; width: 120px; height: 4px; background: var(--black); margin: 26px 0 36px; border: 0; }
.center .rule, .rule.center { margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(17px, 1.5vw, 19px); font-weight: 300; line-height: 1.8; }
.muted { color: var(--muted); }

.head { margin-bottom: clamp(40px, 6vw, 72px); }
.head.center { max-width: 760px; margin-left: auto; margin-right: auto; }

.badge {
  display: inline-block; vertical-align: middle;
  background: var(--pink); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 3px 10px 2px; margin-left: 10px; line-height: 1.6;
}

/* ---------- Gumbi in povezave ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 34px;
  border: 3px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 12px; font-weight: 400; letter-spacing: 0.29em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-fill { background: var(--ink); color: var(--white); }
.btn-fill:hover { background: var(--pink); border-color: var(--pink); }
.btn-white { border-color: var(--white); color: var(--white); }
.btn-white:hover { background: var(--white); color: var(--ink); }
.btn-white-fill { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-white-fill:hover { background: transparent; color: var(--white); }
.btn-small { min-height: 42px; padding: 9px 20px; font-size: 11px; border-width: 2px; }

.link {
  color: var(--pink-text); text-decoration: none;
  font-size: 12px; letter-spacing: 0.29em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.link:hover { color: var(--ink); }

/* ---------- Glava ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: height .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.solid, .site-header.scrolled {
  background: var(--white); color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.scrolled { height: var(--header-h-small); }
.header-inner {
  height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: block; position: relative; height: 92px; width: 48px; flex-shrink: 0; transition: height .35s var(--ease); }
.brand img { position: absolute; left: 0; top: 0; height: 100%; width: auto; transition: opacity .3s var(--ease); }
.brand .logo-small { opacity: 0; }
.site-header.scrolled .brand { height: 52px; }
.site-header.scrolled .brand .logo-full { opacity: 0; }
.site-header.scrolled .brand .logo-small { opacity: 1; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 2.4vw, 38px); }
.nav a {
  font-size: 12px; font-weight: 400; letter-spacing: 0.29em; text-transform: uppercase;
  text-decoration: none; padding: 8px 0; white-space: nowrap; position: relative;
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: .29em; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav ul a:hover::after, .nav ul a.active::after { transform: scaleX(1); }
.nav-extra, .nav-photo { display: none; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.2em; }
.lang button { background: none; border: 0; padding: 6px 2px; cursor: pointer; letter-spacing: inherit; opacity: .5; }
.lang button[aria-pressed="true"] { opacity: 1; font-weight: 700; }
.lang span { opacity: .5; }
.site-header:not(.scrolled):not(.solid) .header-cta { border-color: var(--white); color: var(--white); }
.site-header:not(.scrolled):not(.solid) .header-cta:hover { background: var(--white); color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; margin-right: -10px; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Uvodna slika (domov) ---------- */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--white); background: var(--black); overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; animation: heroZoom 14s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.18) 35%, rgba(0,0,0,.25) 65%, rgba(0,0,0,.7) 100%); }
.hero-content { position: relative; padding-top: var(--header-h); padding-bottom: 120px; }
/* okvir z belo 4px črto — kot na obstoječi strani */
.welcome {
  display: inline-block;
  border: 4px solid var(--white);
  padding: clamp(22px, 3vw, 34px) clamp(24px, 3.4vw, 44px);
  max-width: 560px;
}
.welcome h1 {
  font-size: clamp(15px, 1.5vw, 19px); font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase; line-height: 2;
}
.hero-sub { margin: 30px 0 34px; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; opacity: .9; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.3);
  padding-top: 18px; padding-bottom: 22px;
  margin: 0 auto;
}
.hero-bar > div { display: flex; flex-direction: column; }
.hero-bar dt { font-size: 11px; letter-spacing: 0.29em; text-transform: uppercase; opacity: .65; }
.hero-bar dd { margin: 0; font-size: 15px; letter-spacing: 0.06em; }
.hero-bar a { text-decoration: none; }

/* ---------- Zgodba (domov) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split > * { min-width: 0; }
.split-media { margin: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.facts { list-style: none; margin: 36px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facts li { font-size: 13px; line-height: 1.6; color: var(--muted); }
.fact-num { display: block; white-space: nowrap; font-size: clamp(30px, 2.8vw, 40px); font-weight: 100; letter-spacing: 0.04em; color: var(--ink); line-height: 1.1; margin-bottom: 8px; }

/* ---------- Dva obraza hiše: dve polovici, ki se ob prehodu z miško razširita, dvigneta in osvetlita ----------
   Miško zaznava .duo-item, ki se ne premika; dvigne se le .duo-card v njem (sicer kartica uide izpod kazalca). */

.duo { display: flex; gap: 16px; height: clamp(520px, 64vh, 700px); }
.duo-item { position: relative; flex: 1 1 0; min-width: 0; transition: flex-grow .8s var(--ease); }
.duo-card {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--black); color: var(--white);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.duo-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02); transition: transform 1.4s var(--ease); will-change: transform;
}
.duo-dim { position: absolute; inset: 0; background: var(--black); opacity: .32; transition: opacity .8s var(--ease); }
.duo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 22%, rgba(0,0,0,.5) 58%, rgba(0,0,0,.86) 100%); }
.duo-cover { position: absolute; inset: 0; z-index: 1; }
.duo-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(28px, 3.4vw, 52px); pointer-events: none;
  text-shadow: 0 1px 14px rgba(0,0,0,.55);
}
.duo-body a { pointer-events: auto; }
.duo-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; opacity: .85; }
.duo-kicker .badge { margin-left: 0; font-size: 11px; letter-spacing: 0.18em; text-shadow: none; }
.duo-title { white-space: pre-line; font-size: clamp(22px, 1.9vw, 30px); font-weight: 300; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3; }
.duo .rule { background: var(--white); width: 60px; height: 3px; margin: 20px 0 0; transition: width .8s var(--ease); }
.duo-more { display: grid; grid-template-rows: 1fr; margin-top: 22px; transition: grid-template-rows .7s var(--ease), opacity .6s var(--ease), margin-top .7s var(--ease); }
.duo-more > div { overflow: hidden; max-width: 460px; }
.duo-more p { color: rgba(255,255,255,.88); }

@media (hover: hover) and (min-width: 961px) {
  /* stalna širina besedila, da se med širjenjem ne prelamlja */
  .duo-more > div { width: 360px; max-width: none; }
  .duo-more { grid-template-rows: 0fr; opacity: 0; margin-top: 0; }
  .duo-item:hover { flex-grow: 1.45; }
  .duo-item:hover .duo-card { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,.22); }
  .duo-item:hover .duo-img { transform: scale(1.06); }
  .duo-item:hover .duo-dim { opacity: 0; }
  .duo:has(.duo-item:hover) .duo-item:not(:hover) .duo-dim { opacity: .62; }
  .duo-item:hover .duo-more { grid-template-rows: 1fr; opacity: 1; margin-top: 22px; }
  .duo-item:hover .rule { width: 120px; }
  /* tipkovnica */
  .duo-item:focus-within { flex-grow: 1.45; }
  .duo-item:focus-within .duo-dim { opacity: 0; }
  .duo-item:focus-within .duo-more { grid-template-rows: 1fr; opacity: 1; margin-top: 22px; }
}

/* ---------- Domov: Fine dining | À la carte čez cel zaslon ---------- */

.duo-full .duo {
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  min-height: 520px; gap: 3px; background: var(--white);
}
.duo-full .duo-body { padding: clamp(32px, 4vw, 72px); transition: transform .8s var(--ease), opacity .4s var(--ease); }
.duo-full .duo-title { font-size: clamp(28px, 3vw, 48px); }
.duo-full .duo-dim { opacity: .38; }

@media (hover: hover) and (min-width: 961px) {
  .duo-full .duo-more > div { width: 400px; }
  /* čez cel zaslon se kartica ne dvigne, premakne se besedilo */
  .duo-full .duo-item:hover .duo-card { transform: none; box-shadow: none; }
  .duo-full .duo-item:hover .duo-body { transform: translateY(-14px); }
}

/* ---------- Domov: temna stran, barve fotografij potegnjene navzdol z gradientom; svetla je samo noga ---------- */

body[data-page="home"] { background: #0c0a09; }
body[data-page="home"] main { padding-top: 0; }
body[data-page="home"] .duo-full .duo { height: 100vh; height: 100svh; background: #0c0a09; }
/* zgoraj temno: glava je prosojna nad fotografijama, pod njo temen prelivi */
body[data-page="home"] .duo-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 34%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,10,9,.88) 0%, rgba(12,10,9,.45) 45%, rgba(12,10,9,0) 100%);
}
body[data-page="home"] .duo-shade { background: linear-gradient(180deg, rgba(12,10,9,0) 30%, rgba(12,10,9,.55) 62%, rgba(12,10,9,.92) 100%); }

.site-header.dark { color: var(--white); background: transparent; box-shadow: none; }
.site-header.dark.scrolled {
  background: rgba(12,10,9,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.site-header.dark .header-cta { border-color: var(--white); color: var(--white); }
.site-header.dark .header-cta:hover { background: var(--white); color: var(--ink); }

/* e-novice na domači strani: na zamegljenih barvah obeh fotografij */
body[data-page="home"] .newsletter { position: relative; overflow: hidden; color: var(--white); padding-top: clamp(72px, 9vw, 130px); }
body[data-page="home"] .newsletter::before {
  content: ""; position: absolute; inset: -120px; z-index: 0;
  background:
    url("img/jed-krema-640.jpg") left center / 50% 100% no-repeat,
    url("img/jed-dunajsko-640.jpg") right center / 50% 100% no-repeat;
  filter: blur(90px) brightness(.42) saturate(1.2);
}
body[data-page="home"] .newsletter::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(12,10,9,.92) 0%, rgba(12,10,9,.35) 38%, rgba(12,10,9,.45) 70%, rgba(12,10,9,.96) 100%);
}
body[data-page="home"] .newsletter .wrap { position: relative; z-index: 1; }
body[data-page="home"] .nl-grid { border-color: var(--white); }
body[data-page="home"] .newsletter .kicker,
body[data-page="home"] .newsletter .muted,
body[data-page="home"] .nl-consent { color: rgba(255,255,255,.72); }
body[data-page="home"] .newsletter .rule { background: var(--white); }
body[data-page="home"] .nl-row input { color: var(--white); border-bottom-color: var(--white); }
body[data-page="home"] .nl-row input::placeholder { color: rgba(255,255,255,.5); }
body[data-page="home"] .nl-row .btn-fill { background: var(--white); border-color: var(--white); color: var(--ink); }
body[data-page="home"] .nl-row .btn-fill:hover { background: var(--pink); border-color: var(--pink); color: var(--white); }
body[data-page="home"] .nl-consent input { accent-color: var(--white); }
body[data-page="home"] .nl-consent a, body[data-page="home"] .nl-msg.err { color: #F07FA2; }
body[data-page="home"] .nl-msg.ok { color: var(--white); }
body[data-page="home"] .site-footer { padding-top: 64px; }

/* ---------- Izbira pod gumbom Rezervacija ---------- */

.res-pop {
  position: fixed; z-index: 60; width: 540px; max-width: calc(100vw - 32px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; background: #0c0a09;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.res-pop.open { opacity: 1; visibility: visible; transform: none; }
.res-pop.sheet { left: 12px; right: 12px; top: auto; width: auto; max-width: none; bottom: calc(56px + env(safe-area-inset-bottom) + 10px); transform: translateY(14px); }
.res-pop.sheet.open { transform: none; }
.res-opt { position: relative; display: block; height: 240px; overflow: hidden; color: var(--white); text-decoration: none; }
.res-pop.sheet .res-opt { height: 190px; }
.res-opt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s var(--ease); }
.res-opt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,9,.2) 0%, rgba(12,10,9,.88) 100%); transition: opacity .5s var(--ease); }
.res-opt:hover img, .res-opt:focus-visible img { transform: scale(1.08); }
.res-opt-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.res-opt-k { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; opacity: .85; }
.res-opt-k .badge { margin: 0; font-size: 10px; }
.res-opt-t { font-size: 17px; font-weight: 300; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; }
.res-opt-t::after { content: ""; display: block; width: 36px; height: 2px; margin-top: 10px; background: var(--white); transition: width .5s var(--ease); }
.res-opt:hover .res-opt-t::after { width: 72px; }
.res-opt-s { font-size: 12px; letter-spacing: .08em; opacity: .75; }
.mobile-bar button { background: none; border: 0; color: var(--white); font: inherit; cursor: pointer; }
/* na telefonu za listom rahlo zatemnimo stran */
body::after { content: ""; position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; pointer-events: none; }
body.res-sheet-open::after { opacity: 1; visibility: visible; }

/* ---------- Rezervacija po telefonu ---------- */

.res-info { margin: 0 0 32px; border-top: 4px solid var(--black); }
.res-info > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.res-info dt { font-size: 12px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; padding-top: 3px; }
.res-info dd { margin: 0; font-size: 17px; line-height: 1.6; }

.res-note { display: block; margin-top: 4px; font-size: 14px; color: var(--pink-text); }
.fd-notice { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pink-text); margin: -18px 0 30px; }
.fd-view .fd-notice { margin: -10px 0 22px; }

/* ---------- Rezervacija: termini za fine dining ---------- */

.grp { display: contents; }
.grp.is-off { display: none !important; }
.field-label { font-size: 11px; letter-spacing: 0.29em; text-transform: uppercase; color: var(--muted); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.slot span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 74px; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--ink); font-size: 14px; letter-spacing: .08em; transition: background .2s, color .2s;
}
.slot:hover span { background: var(--soft); }
.slot input:checked + span { background: var(--ink); color: var(--white); }
.slot input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.slot.is-past span { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.slots-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.field.invalid .slot span { border-color: var(--pink); }

/* ---------- Fine dining ---------- */

.section.soft { background: var(--soft); }
.fd-date { display: flex; align-items: baseline; gap: 18px; margin: 30px 0 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.fd-date .fact-num { margin: 0; }
.fd-date span:last-child { color: var(--muted); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.res-msg { margin: 4px 0 0; font-size: 15px; line-height: 1.6; min-height: 1.6em; }
.res-msg.ok { font-weight: 700; }
.res-msg.err { color: var(--pink-text); }
.menu-book { text-align: center; margin: -24px 0 48px; }

/* ---------- O nas ---------- */

.about-intro .split { align-items: start; }
.about-intro .split-media img { aspect-ratio: 4 / 5; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.person-media { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 30px; }
.person-media img { width: 100%; height: 100%; object-fit: cover; }
.person .kicker { margin-bottom: 6px; }
.person .small-title { font-size: 18px; margin-bottom: 0; }
.person .rule { width: 60px; height: 3px; margin: 18px 0 22px; }

/* temni pas s kromirano vilico (Menu-slika z obstoječe strani) */
.fork-band { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.fork-band img { position: absolute; top: 0; right: 0; height: 100%; width: 46%; object-fit: cover; object-position: 50% 20%; opacity: .9; }
.fork-band .wrap { position: relative; }
.fork-band blockquote { margin: 0; max-width: 560px; padding: clamp(90px, 12vw, 170px) 0; }
.fork-band p { font-size: clamp(22px, 2.4vw, 32px); font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.6; margin: 0; }
.fork-band .rule { background: var(--white); margin: 34px 0 0; }

.awards-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 7vw, 110px); }
.awards-grid > * { min-width: 0; }
.guides { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 34px; margin-top: 10px; }
.guides img { height: 34px; width: auto; }
.guides img.jre { height: 54px; }
.awards-list { list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--black); }
.awards-list li { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.award-year { font-weight: 700; letter-spacing: 0.12em; }
.award-year.repeat { color: transparent; }
.award-text { line-height: 1.6; }

/* ---------- Jedilnik ---------- */

.menu { overflow: hidden; }
/* akvarelni madeži vina (Jedi po naročilu) kot na obstoječem jedilniku */
.stain { position: absolute; z-index: 0; mix-blend-mode: multiply; pointer-events: none; opacity: .75; }
.stain-1 { width: min(520px, 50vw); top: -30px; right: -190px; }
.stain-2 { width: min(460px, 55vw); bottom: 40px; left: -140px; transform: rotate(160deg); opacity: .5; }
.menu .wrap { position: relative; z-index: 1; }

.menu-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 56px; }
.menu-tab {
  background: transparent; border: 0; cursor: pointer;
  padding: 14px 18px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); transition: background .2s, color .2s;
}
.menu-tab:hover { background: var(--soft); }
.menu-tab[aria-selected="true"] { background: var(--black); color: var(--white); }

.menu-panel { max-width: 640px; margin: 0 auto; text-align: center; animation: fadeIn .45s var(--ease); }
.menu-panel[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.menu-cat { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dish-list { list-style: none; margin: 0; padding: 0; }
.dish { padding: 18px 0 20px; }
.dish + .dish { border-top: 1px solid var(--line); }
.dish-name { font-size: 18px; line-height: 1.5; display: block; }
.dish-price { display: block; font-weight: 700; letter-spacing: 0.06em; margin-top: 4px; }
.dish-allergens { font-style: italic; font-size: 14px; color: var(--muted); }
.dish-allergens abbr { text-decoration: none; cursor: help; }
.menu-foot { max-width: 640px; margin: 56px auto 0; text-align: center; }
.menu-foot p { color: var(--muted); }
.legend { display: inline-block; text-align: left; margin-top: 10px; }
.legend summary { cursor: pointer; font-size: 12px; letter-spacing: 0.29em; text-transform: uppercase; color: var(--pink-text); }
.legend-list { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.legend-list dt { font-weight: 700; color: var(--ink); }
.legend-list dd { margin: 0; }

/* ---------- Jedilnik: razdelitev Fine dining | À la carte ---------- */

.menu-split { display: flex; justify-content: center; max-width: 760px; margin: 0 auto 64px; position: relative; z-index: 1; }
.ms-opt {
  position: relative; flex: 1 1 0; padding: 6px 24px 24px; border: 0; background: none; cursor: pointer;
  color: #A39D99; font: inherit; text-align: center; transition: color .4s var(--ease);
}
.ms-opt + .ms-opt { border-left: 1px solid var(--line); }
.ms-t { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 300; letter-spacing: .2em; text-transform: uppercase; line-height: 1.3; }
.ms-t .badge { margin: 0; font-size: 10px; letter-spacing: .18em; }
.ms-s { display: block; margin-top: 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
/* debela črna črta pod izbranim — kot pod naslovi */
.ms-opt::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 4px; background: var(--black); transform: translateX(-50%); transition: width .5s var(--ease); }
.ms-opt:hover { color: var(--ink); }
.ms-opt:hover::after { width: 40px; }
.ms-opt[aria-selected="true"] { color: var(--ink); }
.ms-opt[aria-selected="true"]::after { width: 120px; }
.ms-opt:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.menu-view[hidden] { display: none; }
.menu-view { animation: fadeIn .5s var(--ease); }
.fd-view { max-width: 640px; margin: 0 auto; text-align: center; }
.fd-view .rule { margin-left: auto; margin-right: auto; }
.fd-view .kicker { display: flex; justify-content: center; align-items: center; gap: 10px; }
.fd-view .badge { margin: 0; }
.fd-when { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin: 28px 0 22px; }
.fd-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Galerija jedi ---------- */

.gallery { padding-top: 0; overflow: hidden; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.gallery-head .rule { margin-bottom: 0; }
.gallery-nav { display: flex; gap: 10px; }
.sq-btn { width: 52px; height: 52px; border: 3px solid var(--ink); background: none; cursor: pointer; font-size: 18px; transition: background .25s, color .25s; }
.sq-btn:hover { background: var(--ink); color: var(--white); }
.gallery-track {
  list-style: none; margin: 40px 0 0;
  display: flex; gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 var(--gutter) 8px;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track li { flex: 0 0 clamp(240px, 26vw, 340px); scroll-snap-align: start; }
.gallery-track figure { margin: 0; }
.gallery-track img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.gallery-track figcaption { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-top: 12px; }

/* ---------- Dogodki ---------- */

.events-layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.events-layout > * { min-width: 0; }
.events-media { position: sticky; top: calc(var(--header-h-small) + 32px); margin: 0; }
.events-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.event { padding: 30px 0; border-top: 1px solid var(--line); }
.event:first-child { border-top: 4px solid var(--black); }
.event-tag { font-size: 11px; letter-spacing: 0.29em; text-transform: uppercase; color: var(--pink-text); margin-bottom: 6px; }
.event p:last-child { margin-bottom: 0; }
.events-foot { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.events-foot p { margin: 0; color: var(--muted); }
.private .lead { margin-bottom: 26px; }
.private-occasions { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink); margin: 0 0 26px; }
.private-actions { margin-top: 34px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Darila ---------- */

.gift-row + .gift-row { margin-top: clamp(80px, 10vw, 140px); }
.gift-row.reverse .split-media { order: 2; }
.gift-row .split-media img { aspect-ratio: 1 / 1; }

/* ---------- Rezervacija in kontakt ---------- */

.reserve-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.reserve-grid > * { min-width: 0; }
.phone-big {
  display: inline-block; text-decoration: none;
  font-size: clamp(30px, 3.6vw, 46px); font-weight: 100; letter-spacing: 0.08em;
  margin: 4px 0 48px; border-bottom: 4px solid var(--black); line-height: 1.3; padding-bottom: 4px;
}
.phone-big:hover { color: var(--pink-text); border-color: var(--pink); }
.res-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.span-3 { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: 0.29em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--ink);
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  padding: 10px 0; font-size: 17px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 56px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--pink); }
.field ::placeholder { color: #A9A4A4; }
.field.invalid input { border-bottom-color: var(--pink); }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form-hint { font-size: 13px; color: var(--muted); margin: 0; max-width: 360px; line-height: 1.6; }

.contact-card { border-top: 4px solid var(--black); padding-top: 6px; }

.contact-list { margin: 0 0 24px; }
.contact-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 11px; letter-spacing: 0.29em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 17px; line-height: 1.65; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--pink-text); }
.parking { font-size: 14px; color: var(--muted); }

/* ---------- E-novice (na dnu vseh strani, v okvirju 4 px kot na uvodni sliki) ---------- */

.newsletter { padding: var(--section) 0 clamp(56px, 7vw, 96px); }
.nl-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center;
  border: 4px solid var(--black); padding: clamp(28px, 4.4vw, 64px);
}
.nl-grid > * { min-width: 0; }
.nl-grid .muted { margin: 0; }
.nl-row { display: flex; gap: 14px; align-items: stretch; }
.nl-row input {
  flex: 1; min-width: 0; background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  padding: 12px 0; font-size: 17px; color: var(--ink);
}
.nl-row input:focus { outline: none; border-bottom-color: var(--pink); }
.nl-row input::placeholder { color: #A9A4A4; }
.nl-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.nl-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.nl-consent a { color: var(--pink-text); }
.nl-msg { margin: 14px 0 0; font-size: 14px; min-height: 1.6em; }
.nl-msg.ok { color: var(--ink); font-weight: 700; }
.nl-msg.err { color: var(--pink-text); }
.nl-hp { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.newsletter + .site-footer .footer-rule { display: none; }

/* ---------- 404 ---------- */

.e404 { min-height: calc(100vh - var(--header-h) - 200px); display: flex; align-items: center; }
.e404 .wrap { max-width: 640px; }
.e404-fork { width: 34px; height: auto; margin: 0 auto 28px; }
.e404-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Pravna besedila ---------- */

.legal { max-width: 760px; }
.legal h2 { font-size: 15px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; margin: 44px 0 14px; line-height: 1.6; }
.legal ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--pink-text); }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal-note:empty { display: none; }
.legal-note { border-left: 3px solid var(--pink); padding-left: 14px; color: var(--muted); }

/* ---------- Noga ---------- */

.site-footer { padding: 0 0 48px; text-align: center; background: var(--white); color: var(--ink); }
.footer-rule { height: 4px; background: var(--black); margin: 0 auto 56px; }
.footer-jre { width: 120px; margin: 0 auto 28px; }
.footer-name { font-size: 14px; letter-spacing: var(--track); text-transform: uppercase; margin: 0; }
.footer-addr { color: var(--muted); margin: 14px 0 28px; font-size: 14px; line-height: 1.8; }
.footer-addr a { text-decoration: none; }
.footer-addr a:hover, .footer-links a:hover { color: var(--pink-text); }
.footer-links { list-style: none; margin: 0 0 8px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; }
.footer-links a { font-size: 11px; letter-spacing: 0.29em; text-transform: uppercase; text-decoration: none; }
.footer-legal a { letter-spacing: 0.05em; text-transform: none; font-size: 13px; color: var(--muted); }
.footer-copy { margin-top: 22px; font-size: 12px; letter-spacing: var(--track); color: var(--muted); }

/* ---------- Spodnja vrstica na telefonu ---------- */

.mobile-bar { display: none; }

/* ---------- Postopno prikazovanje ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Podstrani ---------- */

main { padding-top: var(--header-h); }
.section.page-first { padding-top: clamp(56px, 8vw, 110px); }

/* ---------- Odzivnost ---------- */

@media (max-width: 1180px) {
  :root { --header-h: 88px; }
  .brand { height: 70px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    background: var(--black); color: var(--white);
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
    overflow: hidden;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header, .nav-open .site-header.scrolled, .nav-open .site-header.solid { color: var(--white); background: transparent; box-shadow: none; }
  .nav-open .site-header .brand .logo-full { opacity: 1; }
  .nav-open .site-header .brand .logo-small { opacity: 0; }
  .nav ul { flex-direction: column; gap: 4px; position: relative; z-index: 1; }
  .nav ul a { font-size: clamp(16px, 4.4vw, 22px); letter-spacing: 0.3em; line-height: 2.4; }
  .nav ul a::after { bottom: 10px; }
  .nav-extra { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; font-size: 14px; letter-spacing: 0.12em; }
  .nav-extra a { text-decoration: none; opacity: .75; }
  .nav-photo { display: block; position: absolute; right: -10%; bottom: 0; height: 70%; width: auto; opacity: .55; pointer-events: none; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 960px) {
  .split, .awards-grid, .reserve-grid, .events-layout, .team-grid, .offer-grid { grid-template-columns: 1fr; }
  .duo { flex-direction: column; height: auto; }
  .duo-item { min-height: 460px; flex: none; }
  .duo-dim { opacity: .2; }
  .duo-full .duo { height: auto; min-height: 0; }
  .duo-full .duo-item { min-height: 260px; height: calc((100svh - var(--header-h)) / 2 - 2px); }
  body[data-page="home"] .duo-full .duo-item { height: calc(100svh / 2 - 2px); }
  .duo-full .duo-more p { display: none; }
  .duo-full .duo-more { margin-top: 16px; }
  .duo-full .duo-dim { opacity: .3; }
  .gift-row.reverse .split-media { order: 0; }
  .nl-grid { grid-template-columns: 1fr; }
  .split-media, .events-media { max-width: 560px; }
  .events-media { position: static; }
  .fork-band img { width: 100%; opacity: .35; }
}

@media (max-width: 700px) {
  :root { --header-h: 76px; --header-h-small: 64px; }
  .brand { height: 60px; }
  .site-header.scrolled .brand { height: 46px; }
  .hero { justify-content: flex-end; }
  .hero-content { padding-bottom: 210px; }
  .hero-bar { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .hero-bar > div:nth-child(2) { order: 3; grid-column: 1 / -1; }
  .welcome { padding: 20px 22px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .private-actions { flex-direction: column; align-items: stretch; }
  .private-occasions { line-height: 2.2; }
  .facts li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
  .fact-num { flex: 0 0 104px; font-size: 30px; margin: 0; }
  .menu-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 calc(var(--gutter) * -1) 40px; padding: 0 var(--gutter); scrollbar-width: none; }
  .menu-tabs::-webkit-scrollbar { display: none; }
  .menu-tab { white-space: nowrap; }
  .menu-split { margin-bottom: 40px; }
  .ms-opt { padding: 4px 8px 18px; }
  .ms-t { font-size: 15px; letter-spacing: .14em; gap: 8px; flex-wrap: wrap; }
  .ms-s { font-size: 9px; letter-spacing: .12em; margin-top: 6px; }
  .ms-opt[aria-selected="true"]::after { width: 64px; }
  .gallery-nav { display: none; }
  .gallery-track li { flex-basis: 74vw; }
  .awards-list li { grid-template-columns: 60px 1fr; gap: 14px; }
  .res-form { grid-template-columns: 1fr 1fr; }
  .res-form .m-full { grid-column: 1 / -1; }
  .res-info > div { grid-template-columns: 1fr; gap: 4px; }
  .nl-row { flex-direction: column; }

  /* telefon: večje tarče za prst, najmanj 12 px besedila */
  .lang { font-size: 13px; }
  .lang button { min-width: 36px; min-height: 44px; padding: 0 6px; }
  .nav ul a { display: block; padding: 4px 0; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-bar dt, .field label, .contact-list dt, .event-tag, .badge { font-size: 12px; }
  .hero-bar dd a, .footer-addr a, .contact-list dd a { display: inline-block; padding: 8px 0; }
  .footer-links { gap: 0 24px; }
  .footer-links a { display: inline-block; padding: 12px 0; font-size: 12px; }
  .footer-legal a { font-size: 14px; }
  .legend summary { padding: 12px 0; }
  .link { display: inline-block; padding-top: 12px; }
  .menu-tab { padding: 14px 16px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--black);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%); transition: transform .35s var(--ease);
  }
  .mobile-bar.show { transform: none; }
  .header-cta { display: none; }
  .duo-full .duo-item { height: calc((100svh - var(--header-h) - 56px) / 2 - 2px); }
  body[data-page="home"] .duo-full .duo-item { height: calc((100svh - 56px) / 2 - 2px); }
  .duo-full .duo-title { font-size: 22px; }
  .mobile-bar a, .mobile-bar button {
    display: flex; align-items: center; justify-content: center; min-height: 56px;
    color: var(--white); text-decoration: none;
    font-size: 12px; letter-spacing: 0.29em; text-transform: uppercase;
  }
  .mobile-bar > * + * { border-left: 1px solid rgba(255,255,255,.25); }
  .nav-open .mobile-bar { transform: translateY(100%); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
