/* ===== BOJE KAFIĆA ===== */
:root {
  --cream: #f7f1e8;
  --cream-2: #efe4d4;
  --espresso: #2b1d16;
  --brown: #6b4226;
  --terracotta: #c8693f;
  --sage: #8a9a7b;
  --muted: #7a6a5e;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

h1, h2, h3, .logo { font-family: "Fraunces", Georgia, serif; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; margin-bottom: 14px; }
h3 { font-size: 1.2rem; }

section { padding: 90px 6vw; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f6d8b8;
  margin-bottom: 12px;
}
.kicker.dark { color: var(--terracotta); }

.section-head { text-align: center; margin-bottom: 40px; }

/* ===== EFEKAT UVEĆANJA: sve što ima klasu "zoom" uveća sliku kad pređeš mišem ===== */
.zoom { overflow: hidden; }
.zoom img { transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.zoom:hover img { transform: scale(1.1); }

/* ===== DUGMAD ===== */
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font: 600 1rem "Inter", sans-serif;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(200, 105, 63, 0.4);
  background: #b85a31;
}
.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-light { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.5); }
.btn-light:hover { background: #fff; color: var(--espresso); }

/* ===== MENI NA VRHU ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 6vw;
  color: #fff;
  transition: background 0.3s, padding 0.3s, color 0.3s, box-shadow 0.3s;
}
/* kad skroluješ dole, meni dobije pozadinu (klasu dodaje script.js) */
.nav.scrolled {
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(10px);
  color: var(--espresso);
  padding: 14px 6vw;
  box-shadow: 0 4px 20px rgba(43, 29, 22, 0.08);
}
.logo { font-size: 1.5rem; font-weight: 700; }
.logo span { color: var(--terracotta); font-style: italic; }
.nav nav { display: flex; gap: 28px; align-items: center; }
.nav nav a:not(.btn) { position: relative; font-weight: 500; }
/* linija ispod linka koja se "razvuče" na hover */
.nav nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width 0.3s;
}
.nav nav a:not(.btn):hover::after { width: 100%; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(43, 29, 22, 0.88) 0%, rgba(43, 29, 22, 0.55) 45%, rgba(43, 29, 22, 0.15) 100%),
    url("img/interior.svg") center / cover no-repeat;
  transform: scale(1.08);
  animation: slowZoom 20s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes slowZoom { to { transform: scale(1); } }

.hero-content { max-width: 620px; animation: fadeUp 1s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.02;
  margin-bottom: 22px;
}
.hero h1 em { color: #f3a776; }
.hero-text { font-size: 1.15rem; opacity: 0.9; margin-bottom: 34px; max-width: 480px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  translate: -50% 0;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: grid; place-items: center;
  animation: bounce 2s infinite;
}
@keyframes bounce { 50% { transform: translateY(8px); } }

/* ===== O NAMA ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.about-img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3.4;
  box-shadow: 0 30px 60px rgba(43, 29, 22, 0.2);
}
.about-text > p { color: var(--muted); margin-bottom: 28px; }
.features { display: grid; gap: 12px; }
.feature {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--cream-2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature:hover { transform: translateX(8px); box-shadow: 0 10px 25px rgba(43,29,22,0.08); }
.feature span { color: var(--muted); font-size: 0.92rem; }

/* ===== MENI (jela) ===== */
.menu { background: var(--cream-2); }
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.tab {
  font: 500 0.95rem "Inter", sans-serif;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #d8c7b2;
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
  transition: all 0.25s;
}
.tab:hover { border-color: var(--terracotta); color: var(--terracotta); }
.tab.active { background: var(--espresso); color: #fff; border-color: var(--espresso); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto;
}
.dish {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 14px 22px;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s, opacity 0.3s;
}
/* cijela kartica se malo podigne i uveća na hover */
.dish:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(43, 29, 22, 0.15);
}
.dish.hidden { display: none; }
.dish-img { border-radius: 12px; aspect-ratio: 4 / 3; margin-bottom: 16px; }
.dish-info { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px; }
.dish p { color: var(--muted); font-size: 0.93rem; padding: 6px 6px 0; }
.price { font-weight: 600; color: var(--terracotta); }
.badge {
  position: absolute;
  top: 26px; left: 26px;
  background: var(--espresso);
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ===== GALERIJA ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.g-item {
  position: relative;
  border-radius: var(--radius);
  cursor: pointer;
}
.g-item.big { grid-column: span 2; grid-row: span 2; }
/* natpis koji se pojavi na hover */
.g-item span {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(43, 29, 22, 0.85);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s;
}
.g-item:hover span { opacity: 1; transform: none; }

/* ===== RADNO VRIJEME I LOKACIJA ===== */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto;
}
.visit-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--cream-2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.visit-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(43,29,22,0.1); }
.visit-card > p { color: var(--muted); }
.hours { list-style: none; margin-top: 10px; }
.hours li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed #e2d5c4;
}
.hours li span:last-child { font-weight: 600; }
.open-status { margin-top: 18px; font-weight: 600; }
.open-status.open { color: #4a8a3c; }
.open-status.closed { color: var(--terracotta); }

.fake-map {
  position: relative;
  height: 180px;
  margin-top: 20px;
  border-radius: 14px;
  background: #e8efe0;
  overflow: hidden;
}
.road { position: absolute; background: #fff; }
.r1 { height: 18px; left: 0; right: 0; top: 70px; }
.r2 { width: 18px; top: 0; bottom: 0; left: 40%; }
.r3 { height: 12px; width: 140%; left: -20%; top: 120px; transform: rotate(-12deg); }
.pin {
  position: absolute;
  left: calc(40% - 6px); top: 40px;
  font-size: 2rem;
  animation: bounce 1.6s infinite;
}

/* ===== REZERVACIJA ===== */
.book-box {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 56px;
  border-radius: 28px;
  background: var(--espresso);
  color: #fff;
}
.book-box > div > p:last-child { opacity: 0.75; }
form { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select {
  width: 100%;
  font: 1rem "Inter", sans-serif;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  transition: border-color 0.25s, background 0.25s;
}
input::placeholder { color: rgba(255,255,255,0.55); }
input:focus, select:focus { outline: none; border-color: var(--terracotta); background: rgba(255,255,255,0.1); }
select option { color: var(--espresso); }
input[type="date"] { color-scheme: dark; }
.book-msg { color: #b9e3a5; font-weight: 500; min-height: 1.4em; }

/* ===== FOOTER ===== */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 30px 6vw;
  color: var(--muted);
  font-size: 0.9rem;
}
footer .logo { color: var(--espresso); font-size: 1.2rem; }
footer p a { text-decoration: underline; }

/* ===== ANIMACIJA PRI SKROLOVANJU: elementi "isplivaju" kad dođu na ekran ===== */
/* koristi "translate" (ne "transform") da se ne bi sudarilo s hover efektima */
.reveal { opacity: 0; translate: 0 40px; transition: opacity 0.8s, translate 0.8s, transform 0.35s, box-shadow 0.35s; }
.reveal.visible { opacity: 1; translate: 0 0; }

/* ===== TABLET ===== */
@media (max-width: 900px) {
  .about, .visit, .book-box { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .book-box { padding: 36px; }
}

/* ===== TELEFON ===== */
@media (max-width: 600px) {
  section { padding: 70px 20px; }
  .nav nav a:not(.btn) { display: none; }
  .menu-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 160px; }
  .visit-card { padding: 28px; }
  .book-box { padding: 28px; }
}
