/*
Theme Name: eMeni V2
Author: Codex
Description: Moderan, čist i responzivan digitalni meni za restoran.
Version: 1.0.0
Text Domain: emeni-v2
*/

:root {
  --ink: #18201c;
  --muted: #65706a;
  --paper: #f5f2ea;
  --card: #fffdf8;
  --accent: #d96b38;
  --accent-dark: #a84724;
  --green: #214f3d;
  --line: rgba(24, 32, 28, .11);
  --shadow: 0 18px 50px rgba(33, 79, 61, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header { position: sticky; z-index: 20; top: 0; backdrop-filter: blur(18px); background: rgba(245,242,234,.86); border-bottom: 1px solid var(--line); }
.nav { max-width: 1160px; height: 74px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 11px; font-size: 18px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 650; }
.languages { display:flex; padding:3px; gap:2px; background:rgba(33,79,61,.08); border-radius:999px; }
.languages a { padding:6px 9px; border-radius:999px; font-size:11px; font-weight:850; }
.languages a.active { color:white; background:var(--green); }
.nav-links a:not(.nav-cta) { color: var(--muted); }
.nav-cta { padding: 11px 17px; color: white; background: var(--green); border-radius: 999px; }

.hero { max-width: 1160px; margin: 0 auto; padding: 82px 24px 62px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; color: var(--green); background: rgba(33,79,61,.08); border: 1px solid rgba(33,79,61,.12); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: #5e956d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(94,149,109,.15); }
h1 { max-width: 720px; margin: 22px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(49px, 6.5vw, 84px); font-weight: 500; line-height: .95; letter-spacing: -.055em; }
h1 em { color: var(--accent); font-weight: inherit; }
.hero-copy { max-width: 590px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 20px; border-radius: 999px; font-weight: 750; }
.btn-primary { color: white; background: var(--accent); box-shadow: 0 10px 24px rgba(217,107,56,.25); }
.btn-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.48); }
.hero--no-stories { grid-template-columns: minmax(0, 760px); justify-content: center; }
.hero-stories { width: 100%; min-width: 0; height: 500px; position: relative; isolation: isolate; border-radius: 34px; box-shadow: var(--shadow); touch-action: pan-y; }
.hero-stories:focus { outline: none; }
.hero-stories:focus-visible { outline: 3px solid rgba(217,107,56,.5); outline-offset: 5px; }
.hero-stories__slides { height: 100%; position: relative; overflow: hidden; background: var(--green); border-radius: inherit; }
.hero-card { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(112px, 1fr) auto; overflow: hidden; padding: 58px 28px 72px; color: var(--story-ink, white); background: var(--story-bg, var(--green)); border-radius: inherit; opacity: 0; visibility: hidden; transform: translateX(18px) scale(.985); transition: opacity .32s ease, transform .42s cubic-bezier(.22,.75,.28,1), visibility .32s; }
.hero-card.is-active { z-index: 2; opacity: 1; visibility: visible; transform: translateX(0) scale(1); }
.hero-card.is-leaving { z-index: 1; visibility: visible; transform: translateX(-18px) scale(.985); }
.hero-card::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -130px; border: 1px solid var(--story-line, rgba(255,255,255,.15)); border-radius: 50%; box-shadow: 0 0 0 55px var(--story-wash, rgba(255,255,255,.035)), 0 0 0 110px var(--story-wash, rgba(255,255,255,.025)); }
.hero-card::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; pointer-events: none; background: linear-gradient(to top, var(--story-scrim, rgba(8,20,15,.24)), transparent); }
.hero-stories[data-story-count="1"] .hero-card { padding-top: 28px; padding-bottom: 28px; }
.hero-card-top { position: relative; z-index: 2; display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.hero-card small { color: var(--story-muted, rgba(255,255,255,.74)); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.rating { flex: 0 0 auto; padding: 7px 10px; background: var(--story-wash, rgba(255,255,255,.1)); border: 1px solid var(--story-line, rgba(255,255,255,.16)); border-radius: 999px; font-size: 13px; }
.dish-visual { width: clamp(150px, 54%, 225px); height: auto; aspect-ratio: 1; position: relative; z-index: 1; align-self: center; margin: 12px auto; display: grid; place-items: center; overflow: hidden; background: #f4d6a6; border: clamp(10px, 3vw, 14px) solid rgba(255,255,255,.92); border-radius: 50%; box-shadow: 0 22px 45px rgba(0,0,0,.2); font-size: clamp(58px, 18vw, 86px); transform: rotate(-4deg); }
.hero-story--promotion .dish-visual { background: #f5c987; transform: rotate(4deg); }
.hero-story--event .dish-visual { background: #bbb3d9; transform: rotate(-2deg); }
.hero-story--notice .dish-visual { background: #c5ddcf; transform: rotate(2deg); }
.dish-visual.has-image { background: rgba(255,255,255,.15); }
.hero-story__image { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; }
.hero-dish { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.hero-story__copy { min-width: 0; }
.hero-dish h2 { display: -webkit-box; margin: 0 0 5px; overflow: hidden; font-family: Georgia, serif; font-size: 29px; font-weight: 500; line-height: 1.08; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hero-dish p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--story-muted, rgba(255,255,255,.72)); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hero-price { flex: 0 0 auto; font-size: clamp(21px,2.2vw,28px); font-weight: 850; line-height: 1; white-space: nowrap; }
.hero-story__cta { max-width: 100%; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 11px; color: var(--story-ink, white); background: var(--story-wash, rgba(255,255,255,.13)); border: 1px solid var(--story-line, rgba(255,255,255,.18)); border-radius: 999px; font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.hero-story__cta:hover { filter: brightness(1.08); }
.hero-story__cta:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.hero-stories__progress { display: none; height: 58px; position: absolute; z-index: 8; top: 0; right: 0; left: 0; gap: 6px; padding: 7px 20px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-padding-inline: 20px; }
.hero-stories__progress::-webkit-scrollbar { display: none; }
.hero-stories.is-ready .hero-stories__progress { display: flex; }
.hero-stories__segment { height: 44px; min-width: 44px; flex: 1 0 44px; position: relative; padding: 0; overflow: hidden; background: transparent; border: 0; cursor: pointer; }
.hero-stories__segment::before { content: ""; position: absolute; top: 20px; right: 0; left: 0; height: 4px; background: rgba(8,20,15,.38); border: 1px solid rgba(255,255,255,.62); border-radius: 999px; box-shadow: 0 1px 3px rgba(8,20,15,.22); }
.hero-stories__segment span { position: absolute; z-index: 1; top: 20px; right: 1px; left: 1px; height: 4px; background: white; border-radius: 999px; box-shadow: 0 0 0 1px rgba(8,20,15,.38); transform: scaleX(var(--story-progress, 0)); transform-origin: left; }
.hero-stories__segment.is-complete span { --story-progress: 1; }
.hero-stories__segment:focus-visible { outline: 2px solid white; outline-offset: 2px; border-radius: 3px; }
.hero-stories__controls { display: none; position: absolute; z-index: 9; right: 0; bottom: 13px; left: 0; justify-content: center; align-items: center; gap: 7px; pointer-events: none; }
.hero-stories.is-ready .hero-stories__controls { display: flex; }
.hero-stories__control { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: white; background: rgba(8,20,15,.68); border: 1px solid rgba(255,255,255,.58); border-radius: 50%; cursor: pointer; pointer-events: auto; font-size: 25px; line-height: 1; box-shadow: 0 2px 10px rgba(8,20,15,.22); backdrop-filter: blur(8px); }
.hero-stories__control--pause { font-size: 13px; }
.hero-stories__control:hover { background: rgba(8,20,15,.84); }
.hero-stories__control:focus-visible { outline: 2px solid white; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(8,20,15,.48); }
.story-sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }

.menu-section { padding: 74px 24px 88px; background: #fffdf8; border-radius: 42px 42px 0 0; }
.section-inner { max-width: 1160px; margin: auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px,5vw,58px); font-weight: 500; letter-spacing: -.04em; }
.section-heading p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.65; }
.filters { display: flex; gap: 9px; padding: 5px 0 28px; overflow-x: auto; scrollbar-width: none; }
.filters.primary { padding-bottom: 12px; }
.subfilters { display:none; gap:9px; padding:0 0 28px; overflow-x:auto; scrollbar-width:none; }
.subfilters.visible { display:flex; }
.filter { white-space: nowrap; padding: 11px 16px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 700; }
.filter.active { color: white; background: var(--green); border-color: var(--green); }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.menu-item { min-height: 172px; padding: 22px; display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 22px; transition: transform .2s ease, box-shadow .2s ease; }
.menu-item:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(33,79,61,.09); }
.menu-item.hidden { display: none; }
.food-icon { width: 76px; height: 76px; display: grid; place-items: center; background: var(--paper); border-radius: 18px; font-size: 36px; }
.item-copy { min-width: 0; }
.item-copy h3 { margin: 0 0 7px; font-family: Georgia, serif; font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
.item-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.tag { display: inline-flex; margin-top: 10px; padding: 4px 8px; color: var(--accent-dark); background: rgba(217,107,56,.09); border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.price { align-self: start; color: var(--green); font-size: 20px; font-weight: 850; }

.story { max-width: 1160px; margin: auto; padding: 90px 24px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.story-art { min-height: 420px; position: relative; display: grid; place-items: center; overflow: hidden; background: #e9dfca; border-radius: 30px; font-size: 130px; }
.story-art::after { content: "Od 2012."; position: absolute; right: 20px; bottom: 20px; padding: 13px 16px; color: white; background: var(--green); border-radius: 14px; font-size: 13px; font-weight: 800; }
.lang-en .story-art::after { content: "Since 2012"; }
.story h2 { margin: 16px 0; font-family: Georgia, serif; font-size: clamp(38px,5vw,60px); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
.story p { color: var(--muted); font-size: 17px; line-height: 1.75; }
.facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 28px; }
.fact { padding: 16px; background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: 16px; }
.fact strong { display: block; color: var(--green); font-size: 21px; }
.fact span { color: var(--muted); font-size: 12px; }

.site-footer { color: white; background: #17241e; }
.footer-inner { max-width: 1160px; margin: auto; padding: 58px 24px 28px; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(2,.7fr); gap: 50px; padding-bottom: 50px; }
.footer-top h3 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.footer-top h4 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.footer-top p, .footer-top a { color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); font-size: 12px; }

@media (max-width: 860px) {
  .nav-links a:not(.nav-cta):not(.lang-link) { display: none; }
  .hero, .story { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
  .hero-stories { width: min(100%, 520px); margin-inline: auto; }
  .menu-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 560px) {
  .nav { height: 66px; gap: 8px; padding: 0 17px; }
  .brand { flex: 0 0 auto; gap: 8px; font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .nav-links { min-width: 0; gap: 6px; }
  .nav-cta { padding: 10px 12px; font-size: 12px; white-space: nowrap; }
  .hero { padding: 40px 17px 44px; }
  h1 { font-size: 49px; }
  .hero-stories { height: 500px; border-radius: 25px; }
  .hero-stories__slides, .hero-card { border-radius: 25px; }
  .hero-card { grid-template-rows: auto minmax(108px, 1fr) auto; padding: 58px 20px 72px; }
  .hero-stories[data-story-count="1"] .hero-card { padding: 20px; }
  .hero-stories__progress { padding-inline: 16px; scroll-padding-inline: 16px; }
  .dish-visual { width: clamp(150px, 58%, 190px); margin-block: 10px; }
  .hero-dish { gap: 12px; }
  .hero-dish h2 { font-size: 25px; }
  .hero-price { max-width: 45%; font-size: 21px; line-height: 1.08; text-align: right; white-space: normal; overflow-wrap: anywhere; }
  .hero-stories__controls { bottom: 11px; }
  .menu-section { padding: 56px 17px 65px; border-radius: 28px 28px 0 0; }
  .menu-item { grid-template-columns: 62px 1fr auto; padding: 16px; gap: 12px; }
  .food-icon { width: 62px; height: 62px; font-size: 29px; }
  .item-copy p { font-size: 12px; }
  .story { padding: 65px 17px; gap: 40px; }
  .story-art { min-height: 310px; }
  .facts { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 380px) {
  .nav { padding-inline: 12px; }
  .nav-cta { padding-inline: 10px; }
  .languages a { padding-inline: 7px; }
  .hero, .menu-section, .story { padding-right: 14px; padding-left: 14px; }
  .hero-card { padding-right: 16px; padding-left: 16px; }
  .hero-dish { align-items: start; }
  .hero-dish h2 { font-size: 23px; }
  .hero-price { max-width: 40%; font-size: 19px; }
  .menu-item { grid-template-columns: 52px minmax(0, 1fr); }
  .food-icon { width: 52px; height: 52px; }
  .price { grid-column: 2; justify-self: start; white-space: normal; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card, .menu-item { transition: none; }
}
