/* ============================================================
   Protein House — stylesheet
   ============================================================ */
:root {
  --bg: #0E0B08;
  --bg-2: #141009;
  --panel: #171208;
  --panel-2: #1D1710;
  --line: rgba(201, 162, 99, .16);
  --gold: #C9A263;
  --gold-hi: #F0DAA8;
  --amber: #C08430;
  --ink: #EDE4D6;
  --muted: #A79A83;
  --radius: 14px;
  --nav-h: 72px;
  --font-display: "Cinzel", serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

section { scroll-margin-top: var(--nav-h); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #16130E; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.only-desktop { display: inline; }
@media (max-width: 640px) { .only-desktop { display: none; } }

/* ------------------------------------------------------------- headings */
.h-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-hi);
  display: flex; align-items: center; gap: 1.2rem;
}
.h-line::after {
  content: ""; height: 1px; flex: 1 0 3rem; max-width: 7rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(14, 11, 8, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(14, 11, 8, .88); }

.nav__brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--gold-hi);
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: .14em; font-size: 1.02rem; text-transform: uppercase;
}
.nav__brand em { font-style: normal; color: var(--gold); }

.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav__links a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem 0; position: relative; transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold); transition: right .3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--gold-hi); }
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }

.nav__burger { display: none; }

@media (max-width: 760px) {
  .nav__burger {
    display: grid; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer;
  }
  .nav__burger span {
    width: 24px; height: 2px; background: var(--gold); transition: transform .3s, opacity .3s;
  }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links {
    position: fixed; top: var(--nav-h); right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: rgba(14, 11, 8, .97);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav__links.is-open { max-height: 300px; }
  .nav__links a { padding: 1rem clamp(1rem, 4vw, 3rem); border-top: 1px solid rgba(201,162,99,.08); }
  .nav__links a::after { display: none; }
}

/* ----------------------------------------------------------------- hero */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  background:
    radial-gradient(ellipse 70% 45% at 50% 42%, rgba(192, 132, 48, .14), transparent 70%),
    var(--bg);
}
.hero__embers { position: absolute; inset: 0; pointer-events: none; }

.hero__inner { position: relative; text-align: center; max-width: 900px; }

.hero__logo { position: relative; display: block; }
.hero__logo img {
  width: min(88vw, 760px);
  margin-inline: auto;
  position: relative; z-index: 1;
}
@media (max-width: 640px) { .hero__logo img { width: min(80vw, 420px); } }

/* "disanje" svjetla — jeftin overlay (opacity anim), ne dira SVG filtere */
.hero__logo::before {
  content: ""; position: absolute; inset: -12% -6%; z-index: 0;
  background: radial-gradient(ellipse 55% 48% at 50% 52%, rgba(224, 178, 106, .16), transparent 70%);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

/* "Otvaramo uskoro" pill */
.hero__soon {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1.7rem; padding: .55rem 1.35rem;
  border: 1px solid rgba(201, 162, 99, .35); border-radius: 999px;
  font-size: .78rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-hi);
  background: rgba(201, 162, 99, .08);
  animation: soonGlow 3.2s ease-in-out infinite;
}
@keyframes soonGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(201, 162, 99, 0); border-color: rgba(201, 162, 99, .35); }
  50% { box-shadow: 0 0 26px rgba(201, 162, 99, .28); border-color: rgba(201, 162, 99, .65); }
}

.dot {
  width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: #E8C989;
  box-shadow: 0 0 8px rgba(232, 201, 137, .9);
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .65; }
}

.hero__tag {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-hi);
  margin-top: .8rem;
}
.hero__sub {
  color: var(--muted); margin-top: 1rem; font-size: clamp(.95rem, 2vw, 1.05rem);
}

.hero__cta { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .95rem 2.2rem; border-radius: 999px;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn--gold {
  background: linear-gradient(115deg, #F0DAA8, #C9A263 55%, #A87F3E);
  color: #16130E;
  box-shadow: 0 6px 30px rgba(201, 162, 99, .25);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(201, 162, 99, .4); }
.btn--ghost {
  color: var(--gold); border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll span {
  width: 3px; height: 8px; border-radius: 2px; background: var(--gold);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------------------------------------------------------------- stats */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats__grid {
  max-width: 1100px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 2.6rem 1.5rem; gap: 1.5rem;
}
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

.stat { text-align: center; }
.stat strong {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); color: var(--gold);
  display: block; line-height: 1.1;
}
.stat span { color: var(--muted); font-size: .88rem; letter-spacing: .04em; }

/* ----------------------------------------------------------------- menu */
.menu { max-width: 1200px; margin-inline: auto; padding: clamp(3rem, 8vw, 6rem) 1.5rem; }
.menu__head p { color: var(--muted); margin-top: .8rem; }

.menu__controls { margin-top: 2.2rem; display: grid; gap: 1.1rem; }

.menu__search {
  display: flex; align-items: center; gap: .7rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: .75rem 1.3rem; color: var(--muted);
  transition: border-color .25s;
}
.menu__search:focus-within { border-color: var(--gold); }
.menu__search input {
  flex: 1; background: none; border: 0; outline: 0;
  color: var(--ink); font: inherit; font-size: 1rem;
}
.menu__search input::placeholder { color: var(--muted); }

.menu__cats { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.cat {
  flex: 0 0 auto; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font: inherit; font-size: .88rem; font-weight: 400;
  padding: .5rem 1.1rem; letter-spacing: .03em;
  transition: all .25s;
}
.cat:hover { color: var(--gold-hi); border-color: var(--gold); }
.cat.is-active {
  background: linear-gradient(115deg, #F0DAA8, #C9A263 55%, #A87F3E);
  border-color: transparent; color: #16130E; font-weight: 600;
}

.menu__filters { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font: inherit; font-size: .82rem;
  padding: .42rem 1rem; transition: all .25s;
}
.chip:hover { color: var(--gold-hi); }
.chip.is-on { border-color: var(--gold); color: var(--gold-hi); background: rgba(201, 162, 99, .12); }

#sort {
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font: inherit; font-size: .85rem; padding: .45rem 1rem;
  cursor: pointer; outline: none;
}
#sort:focus { border-color: var(--gold); }

.menu__count { color: var(--muted); font-size: .85rem; margin-top: 1.4rem; }

.menu__grid {
  margin-top: 1rem;
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  opacity: 0; transform: translateY(14px);
  animation: cardIn .5s forwards;
}
@keyframes cardIn { to { opacity: 1; transform: none; } }
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 99, .45);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .5), 0 2px 18px rgba(201, 162, 99, .07);
}

.card__img { aspect-ratio: 16 / 8.6; overflow: hidden; background: var(--panel-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .card__img img { transform: scale(1.05); }

.card__body { padding: 1.1rem 1.2rem 1.25rem; }
.card__body h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: .04em; color: var(--gold-hi); line-height: 1.35;
}
.card__desc {
  color: var(--muted); font-size: .87rem; margin-top: .45rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card__meta { display: flex; gap: .45rem; margin-top: .85rem; flex-wrap: wrap; }
.badge {
  font-size: .74rem; letter-spacing: .04em;
  border-radius: 6px; padding: .22rem .55rem;
  background: rgba(201, 162, 99, .1); color: var(--gold);
  border: 1px solid rgba(201, 162, 99, .22);
}
.badge--kcal { background: rgba(255, 255, 255, .05); color: var(--ink); border-color: rgba(255,255,255,.1); }
.badge--tag { background: rgba(110, 160, 90, .12); color: #A8C494; border-color: rgba(110,160,90,.25); }

.menu__empty { color: var(--muted); text-align: center; padding: 3rem 0; }

/* ---------------------------------------------------------------- about */
.about {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.about { display: grid; grid-template-columns: 1fr 1.35fr; gap: 3rem; align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.about__mark img { width: min(70vw, 380px); margin-inline: auto; border-radius: 18px; }
.about__text p { color: var(--muted); margin-top: 1rem; max-width: 56ch; }
.about__text p:first-of-type { margin-top: 1.4rem; }

.about__points { list-style: none; margin-top: 1.6rem; display: grid; gap: .55rem; }
.about__points li { color: var(--ink); font-size: .95rem; display: flex; align-items: center; gap: .6rem; }
.about__points li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px rgba(201, 162, 99, .8);
}

/* -------------------------------------------------------------- contact */
.contact { max-width: 1200px; margin-inline: auto; padding: clamp(3rem, 8vw, 6rem) 1.5rem; }
.contact__grid {
  margin-top: 2.2rem;
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.ccard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.ccard h3 {
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.ccard p { margin-top: .7rem; color: var(--ink); }
.ccard .tbd { color: var(--muted); font-style: italic; }
.ccard a { color: var(--gold-hi); text-decoration: none; transition: color .25s; }
.ccard a:hover { color: var(--gold); }

/* CTA umjesto ugrađenog jelovnika na landingu (pravi meni je /meni) */
.menu__cta { margin-top: 2.4rem; text-align: center; }
.menu__cta p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.6rem; }

/* zlatni shimmer "Uskoro" badge */
.soon-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .92rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(100deg, #8A6F45 20%, #F5E3B5 40%, #C9A263 60%, #8A6F45 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 2.8s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* mapa lokacije u kontaktu */
.contact__map {
  margin-top: 1.6rem; position: relative;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
}
.contact__map iframe {
  display: block; width: 100%; height: 380px; border: 0;
  filter: grayscale(.25) contrast(1.05);
}
@media (max-width: 640px) { .contact__map iframe { height: 300px; } }
.contact__maplink {
  position: absolute; right: .8rem; bottom: .8rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  color: #16130E; text-decoration: none;
  background: linear-gradient(115deg, #F0DAA8, #C9A263 55%, #A87F3E);
  padding: .5rem .9rem; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: transform .25s, box-shadow .25s;
}
.contact__maplink:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201, 162, 99, .35); }

.socials { display: flex; gap: 1rem; }
.socials a { color: var(--muted); transition: color .25s, transform .25s; }
.socials a:hover { color: var(--gold-hi); transform: translateY(-2px); }

/* --------------------------------------------------------------- footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem 3rem; text-align: center;
}
.footer img { margin-inline: auto; opacity: .9; }
.footer p { color: var(--muted); font-size: .84rem; margin-top: 1rem; }

/* ---------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 6, 4, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal__card {
  position: relative; z-index: 1;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px;
  max-width: 640px; width: 100%; max-height: 88svh; overflow: auto;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(14, 11, 8, .7);
  color: var(--ink); font-size: 1.3rem; cursor: pointer; line-height: 1;
  transition: border-color .25s, color .25s;
}
.modal__close:hover { border-color: var(--gold); color: var(--gold-hi); }
.modal__img { aspect-ratio: 16 / 8; overflow: hidden; }
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 1.5rem 1.8rem 2rem; }
.modal__body h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  color: var(--gold-hi); letter-spacing: .04em;
}
.modal__badges { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .8rem; }
.modal__body > p:not(.modal__badges) { color: var(--muted); margin-top: 1rem; }
.modal__body h4 {
  font-family: var(--font-display); font-size: .9rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-top: 1.5rem;
}
.modal__ing { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.modal__ing span {
  font-size: .8rem; color: var(--ink);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px; padding: .3rem .8rem;
}

/* --------------------------------------------------- "uskoro" mode ekran */
.soon { display: none; }

html.soon-mode .soon {
  display: flex; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 300;
  overflow: hidden;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 44%, rgba(192, 132, 48, .14), transparent 70%),
    var(--bg);
}
html.soon-mode .nav,
html.soon-mode main,
html.soon-mode .footer,
html.soon-mode .skip { display: none; }
html.soon-mode { overflow: hidden; }

.soon__embers { position: absolute; inset: 0; pointer-events: none; }

.soon__inner { position: relative; text-align: center; max-width: 560px; }

.soon__logo {
  width: min(72vw, 400px);
  margin-inline: auto;
}

.soon__title {
  margin-top: 2.2rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  letter-spacing: .24em; text-transform: uppercase;
  background: linear-gradient(100deg, #8A6F45 20%, #F5E3B5 40%, #C9A263 60%, #8A6F45 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 3.2s linear infinite;
}

.soon__sub {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(.95rem, 2.4vw, 1.1rem);
  letter-spacing: .14em; text-transform: uppercase;
}

.soon__socials {
  margin-top: 2.4rem;
  display: flex; gap: 1.4rem; justify-content: center;
}
.soon__socials a { color: var(--muted); transition: color .25s, transform .25s; }
.soon__socials a:hover { color: var(--gold-hi); transform: translateY(-2px); }

/* -------------------------------------------------------------- reveals */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__logo::before, .hero__scroll span, .hero__soon, .dot, .soon-badge { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card { animation-duration: 0s; }
}
