/* Gostilna Sokol — custom styles on top of Tailwind */

:root {
  --cream: #f6f0e4;
  --paper: #fbf8f2;
  --ink: #1b1814;
  --gold: #bf9515;
  --gold-dark: #8a6a0a;
  --stone: #5f6360;
  --coal: #14110d;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Display face: modern geometric sans for titles.
   font-size-adjust keeps the sizes chosen for the old serif from ballooning. */
.font-display {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: -0.025em;
  font-size-adjust: 0.42;
}

/* Header */
.site-header {
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(27, 24, 20, .25); }

.nav-link {
  position: relative;
  padding: .35rem 0;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink);
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--gold-dark); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--gold-dark); }

/* Language switcher */
/* Language chips: country flag behind the letters */
.lang-switch { display: flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; letter-spacing: .08em; }
.lang-switch a {
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 1.6rem;
  border-radius: .3rem;
  color: #fff;
  text-shadow: 0 0 3px rgba(0,0,0,.9), 0 1px 2px rgba(0,0,0,.8);
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(27,24,20,.15);
  opacity: .72;
  filter: saturate(.85);
  transition: opacity .2s, transform .2s, box-shadow .2s, filter .2s;
}
.lang-switch a:hover, .lang-switch a:focus-visible { opacity: 1; filter: none; transform: translateY(-1px); }
.lang-switch a[aria-current="true"] { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--gold); }
.lang-switch a[hreflang="sl"] { background-image: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), url("assets/flags/si.svg"); }
.lang-switch a[hreflang="en"] { background-image: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), url("assets/flags/gb.svg"); }
.lang-switch a[hreflang="de"] { background-image: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), url("assets/flags/de.svg"); }
.lang-switch a[hreflang="it"] { background-image: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), url("assets/flags/it.svg"); }

.mobile-nav { display: none; }
.mobile-nav.is-open { display: block; }
.mobile-nav a[aria-current="page"] { color: var(--gold-dark); border-left-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1b1407; }
.btn-gold:hover { background: #d4a61a; }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.8); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Eyebrow with a thin gold rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--gold); }
.eyebrow-light { color: #e9cf7e; }

/* Hero */
.hero { min-height: min(92vh, 900px); }
/* Swiper's own CSS sets .swiper to position:relative, which beats Tailwind's layered utilities —
   pin the slideshow behind the hero copy explicitly */
.hero .hero-swiper { position: absolute; inset: 0; z-index: 1; }
.hero .swiper, .hero .swiper-slide { height: 100%; }
.hero-scrim {
  background:
    linear-gradient(to top, rgba(12, 10, 7, .62) 0%, rgba(12, 10, 7, .25) 38%, rgba(12, 10, 7, 0) 65%),
    linear-gradient(to right, rgba(12, 10, 7, .28) 0%, rgba(12, 10, 7, 0) 55%);
}
/* Soft shadow on hero copy so it stays legible over bright photos */
.hero-scrim ~ div h1,
.hero-scrim ~ div p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 18px rgba(0, 0, 0, .35);
}
.hero-scrim ~ div .btn { text-shadow: none; }
.hero .swiper-slide img { transform: scale(1.06); transition: transform 7s ease-out; }
.hero .swiper-slide-active img { transform: scale(1); }
.hero-pagination.swiper-pagination-bullets { width: auto; }
.hero-pagination .swiper-pagination-bullet {
  width: 28px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.55); opacity: 1;
}
.hero-pagination .swiper-pagination-bullet-active { background: var(--gold); }

/* Parallax images are oversized; offset them so no gap shows while they drift */
img[data-parallax="8"] { top: -10%; }
img[data-parallax="6"] { position: relative; top: -7.5%; }

/* Ornament divider (falcon-gold rule) */
.rule-ornament { display: flex; align-items: center; gap: 1rem; color: var(--gold); }
.rule-ornament::before, .rule-ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .5; }

/* Dish carousel */
.dish-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.dish-swiper .swiper-slide { height: auto; }
.dish-nav {
  width: 3rem; height: 3rem; border-radius: 999px;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink);
  transition: background-color .2s, color .2s;
}
.dish-nav:hover { background: var(--ink); color: var(--paper); }
.dish-nav.swiper-button-disabled { opacity: .3; pointer-events: none; }

/* Gallery */
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery figure { overflow: hidden; border-radius: .5rem; }
.gallery figure:hover img { transform: scale(1.04); }

/* Menu page */
.menu-tabs { scrollbar-width: none; }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  white-space: nowrap;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(27,24,20,.18);
  font-size: .92rem; font-weight: 500;
  transition: all .2s ease;
}
.menu-tab:hover { border-color: var(--gold); color: var(--gold-dark); }
.menu-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.menu-section { scroll-margin-top: 150px; }

.dish { padding: 1.1rem 0; border-bottom: 1px dashed rgba(27,24,20,.18); }
.dish:last-child { border-bottom: 0; }
.dish h4 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.dish p { color: var(--stone); margin-top: .2rem; }

/* Form */
.field label { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .03em; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(27,24,20,.2);
  border-radius: .5rem;
  padding: .75rem .9rem;
  font: inherit;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191,149,21,.2);
}

/* Texture for dark bands */
.band-dark {
  background:
    radial-gradient(1200px 400px at 85% 0%, rgba(191,149,21,.16), transparent 60%),
    var(--coal);
  color: #efe8da;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .swiper-slide img { transition: none; transform: none; }
}
