/* ============================================================
   U matere — glavni stilovi (mobile-first)
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--wine); color: var(--cream); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

:focus-visible {
  outline: 2px solid var(--amber-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 900;
  background: var(--wine);
  color: var(--cream);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 6vw;
}
@media (min-width: 1000px) {
  .container { padding: 0 4vw; }
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--amber-soft);
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--amber-soft);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }

/* ---------- reveal animacije ---------- */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(.22, .61, .36, 1),
              transform 0.9s cubic-bezier(.22, .61, .36, 1);
}
.reveal { transform: translateY(36px); }
.reveal-left { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* ---------- gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.22s ease, background 0.22s ease,
              border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  border: 1px solid transparent;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--wine-2), var(--wine));
  color: var(--cream);
  box-shadow: 0 10px 26px rgba(124, 37, 48, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(124, 37, 48, 0.5); }

.btn-outline {
  border-color: var(--line);
  color: var(--cream);
}
.btn-outline:hover { border-color: var(--amber-soft); color: var(--amber-soft); }

.btn-ghost { color: var(--cream-dim); }
.btn-ghost:hover { color: var(--amber-soft); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

/* ---------- gornja traka i navigacija ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 6vw;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.menu-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(27, 22, 19, 0.35);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.menu-btn span {
  width: 20px; height: 1.5px;
  background: var(--cream);
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-btn:hover { border-color: var(--amber-soft); background: rgba(27, 22, 19, 0.6); }
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.brandmark {
  display: flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  background: rgba(27, 22, 19, 0.35);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.brandmark img { height: 30px; width: auto; display: block; }
.brandmark:hover { border-color: var(--amber-soft); background: rgba(27, 22, 19, 0.62); }

.navpanel {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: linear-gradient(120deg, rgba(20, 16, 14, 0.98), rgba(37, 27, 24, 0.98));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}
.navpanel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.navpanel ul { list-style: none; text-align: center; }
.navpanel li { margin: 0.7rem 0; }
.navpanel a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 500;
  color: var(--cream-dim);
  display: inline-block;
  padding: 0.15em 0.3em;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.navpanel a:hover,
.navpanel a[aria-current="page"] { color: var(--amber-soft); border-color: var(--amber-soft); }
.navpanel a:hover { transform: translateY(-2px); }
.navpanel .navfoot {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  padding: 0 1.5rem;
}
body.nav-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(27, 22, 19, 0.25), rgba(27, 22, 19, 0.82) 90%),
    linear-gradient(to bottom, rgba(27, 22, 19, 0.35), rgba(27, 22, 19, 0.55) 70%, var(--ink));
}
.hero-inner { padding: 6rem 6vw 4rem; }
.hero-inner .eyebrow { justify-content: center; margin-bottom: 1.4rem; }
.hero-title {
  font-size: clamp(3rem, 11vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
}
.hero-title span {
  display: block;
  font-size: clamp(0.9rem, 2.4vw, 1.2rem);
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-top: 1.1rem;
}
.hero-actions {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-hint .line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--amber-soft));
  animation: hint 2.2s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- sekcije ---------- */
section { padding: 4.5rem 0; }
@media (min-width: 800px) { section { padding: 6.5rem 0; } }

.section-head { margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-top: 0.7rem; }

.split {
  display: grid;
  gap: 2.6rem;
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 4.5rem; }
  .split.reverse > :first-child { order: 2; }
  .split.reverse > :last-child { order: 1; }
}
.split h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0.7rem 0 1.2rem; }
.split p { color: var(--text-muted); margin-bottom: 1rem; }
.split p em { color: var(--cream); font-style: italic; }

.figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.figure img { width: 100%; height: auto; }
.figure-caption {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- priča o materi ---------- */
.story-sec {
  position: relative;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(124, 37, 48, 0.14), transparent),
    var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.story-frame {
  max-width: 460px;
  margin: 0 auto;
  transform: rotate(-1.2deg);
}
.story-frame .figure { border: 6px solid rgba(201, 138, 62, 0.35); }
.story-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.6;
  color: var(--cream);
  border-left: 2px solid var(--amber-soft);
  padding-left: 1.4rem;
  margin: 1.6rem 0;
}
.story-quote footer {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-top: 0.9rem;
}

/* ---------- galerija ---------- */
.gallery-grid {
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid .figure img { aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- vino ---------- */
.wine-sec {
  background: linear-gradient(to bottom, var(--ink), #17110f 55%, var(--ink));
}
.wine-stage {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 880px) { .wine-stage { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.wine-photo { max-width: 440px; margin: 0 auto; width: 100%; }
.wine-photo img { aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.wine-copy h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0.7rem 0 1.2rem; }
.wine-copy p { color: var(--text-muted); margin-bottom: 1rem; }

/* ---------- kontakt ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.contact-list { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-item .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: 0.25rem;
}
.contact-item .v { font-size: 1.05rem; }
a.v { border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
a.v:hover { color: var(--amber-soft); border-color: var(--amber-soft); }

/* ---------- footer ---------- */
footer.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.4rem 6vw;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
footer.site-foot a { text-decoration: underline; text-underline-offset: 3px; }
footer.site-foot a:hover { color: var(--amber-soft); }

/* ---------- podstranice ---------- */
.page-hero {
  padding: 8.5rem 0 2.5rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-top: 0.8rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
  min-height: 44px;
}
.back-link:hover { color: var(--amber-soft); }

/* ---------- jelovnik ---------- */
.menu-groups { display: flex; flex-direction: column; gap: 3rem; padding-bottom: 5rem; }
.menu-group h3 {
  font-size: 1.45rem;
  color: var(--amber-soft);
  margin-bottom: 0.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.menu-group .group-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px dashed rgba(244, 234, 217, 0.08);
}
.menu-item-name { font-family: var(--font-display); font-size: 1.08rem; }
.menu-item-desc { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.2rem; max-width: 52ch; }
.menu-item-tags { display: inline-flex; gap: 0.4rem; margin-left: 0.5rem; vertical-align: middle; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.15em 0.55em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--olive);
}
.menu-item-price {
  font-family: var(--font-mono);
  color: var(--amber-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.menu-intro {
  max-width: 62ch;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- pravni tekst ---------- */
.legal { max-width: 72ch; margin: 0 auto; padding-bottom: 5rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 0.8rem; color: var(--amber-soft); }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 0.8rem; }
.legal ul { padding-left: 1.4rem; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 6vw;
}
.notfound h1 { font-size: clamp(4rem, 18vw, 9rem); color: var(--wine-2); line-height: 1; }
.notfound p { color: var(--text-muted); margin: 1.2rem 0 2rem; }
/* portretna fotografija u sekciji Interijer ne smije se razvući u visinu */
#interijer .figure { max-width: 480px; margin-inline: auto; }

/* uspravna fotografija u sekciji Hrana */
#hrana .figure { max-width: 460px; margin-inline: auto; }