/* ============================================
   Restoran — demo
   styles.css
   :root  = brend tokeni (menjaju se po klijentu)
   ostalo = layout / komponente
   ============================================ */

:root {
  color-scheme: dark;
  --bg: #14110e;
  --bg-alt: #1b1713;
  --surface: #241e18;
  --line: #352d24;
  --text: #f3ece1;
  --text-dim: #b7ac9b;
  --accent: #c9a24a;
  --accent-2: #e5c884;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

/* ---------- tipografija ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .01em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 46ch;
}

/* ---------- layout ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(5rem, 12vw, 9rem) 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head .eyebrow {
  margin-bottom: .6rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 2rem;
  background: var(--accent);
  color: #1a140a;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.btn:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .05);
  border-color: var(--accent);
}

.btn-sm {
  padding: .6rem 1.3rem;
  font-size: .8rem;
}

.btn-block {
  width: 100%;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
  padding: .5rem 0;
}

.site-header.scrolled {
  background: rgba(20, 17, 14, .92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .5rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin-right: auto;
}

.logo-lg {
  font-size: 2rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding: .3rem 0;
  transition: color .2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: .3s var(--ease);
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  top: 9px;
}

.burger span:nth-child(3) {
  top: 18px;
}

.burger.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(20, 17, 14, .9) 0%, rgba(20, 17, 14, .55) 45%, rgba(20, 17, 14, .25) 100%),
    linear-gradient(to top, rgba(20, 17, 14, .9), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 5rem;
}

.hero-content h1 {
  margin: .4rem 0 1.4rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 2;
}

.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
  margin: .6rem auto 0;
  animation: hint 2s var(--ease) infinite;
}

@keyframes hint {

  0%,
  100% {
    opacity: .3;
  }

  50% {
    opacity: 1;
  }
}

/* ---------- story ---------- */
.story {
  background: var(--bg-alt);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.story-media img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.story-text h2 {
  margin-bottom: 1.5rem;
}

.story-text p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.stats li {
  display: flex;
  flex-direction: column;
}

.stats .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
}

.stats .lbl {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: .4rem;
}

/* ---------- menu ---------- */
.menu-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 3rem;
}

.menu-tabs button {
  padding: .6rem 1.4rem;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: .25s var(--ease);
}

.menu-tabs button:hover {
  color: var(--text);
}

.menu-tabs button.active {
  color: #1a140a;
  background: var(--accent);
  border-color: var(--accent);
}

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
  animation: fade .4s var(--ease);
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.menu-list {
  max-width: 760px;
  margin-inline: auto;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .3rem 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-item .mi-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.menu-item .mi-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  white-space: nowrap;
}

.menu-item .mi-desc {
  grid-column: 1 / -1;
  color: var(--text-dim);
  font-size: .95rem;
}

.menu-note {
  text-align: center;
  color: var(--text-dim);
  font-size: .85rem;
  margin-top: 3rem;
  font-style: italic;
}

/* ---------- gallery ---------- */
.gallery {
  background: var(--bg-alt);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid figure {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-grid img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  transition: transform .6s var(--ease), filter .4s var(--ease);
  filter: grayscale(.15);
}

.gallery-grid figure:hover img {
  transform: scale(1.06);
  filter: grayscale(0);
}

.gallery-grid figure:nth-child(4) {
  grid-column: span 2;
}

.gallery-grid figure:nth-child(4) img {
  aspect-ratio: 2 / 1;
}

/* ---------- reserve ---------- */
.reserve-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.reserve-text h2 {
  margin-bottom: 1.2rem;
}

.hours {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}

.hours .dan {
  color: var(--text-dim);
}

.reserve-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: .4rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field label {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  color: var(--text);
  font: inherit;
  transition: border-color .2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* native ikonica kalendara/sata — svetla (color-scheme:dark) i malo prigušena */
.field input::-webkit-calendar-picker-indicator {
  opacity: .55;
  cursor: pointer;
  transition: opacity .2s var(--ease);
}

.field input::-webkit-calendar-picker-indicator:hover {
  opacity: .9;
}

.field textarea {
  resize: vertical;
}

.form-msg {
  font-size: .9rem;
  color: var(--accent-2);
  min-height: 1.2em;
  text-align: center;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-slogan {
  color: var(--text-dim);
  margin: .8rem 0 1.5rem;
  font-style: italic;
}

.footer-col h3 {
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.footer-col p {
  color: var(--text-dim);
  margin-bottom: .5rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: .5rem .9rem;
  border-radius: 999px;
  transition: .25s var(--ease);
}

.socials a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--text-dim);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 8, 6, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  color: var(--text);
  line-height: 1;
}

/* ---------- reveal anim ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {

  .story-grid,
  .reserve-grid {
    grid-template-columns: 1fr;
  }

  .story-media {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-map {
    grid-column: 1 / -1;
    min-height: 240px;
  }
}

@media (max-width: 680px) {
  .nav-cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    background: var(--bg-alt);
    border-left: 1px solid var(--line);
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    padding: 3rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }

  .nav.open {
    transform: none;
  }

  .nav a {
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid figure:nth-child(4) {
    grid-column: span 2;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: .4rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}