/* Restoran Svetionik — modern, fast, mobile-first */

:root {
  --bg: #0b1419;
  --bg-elevated: #121e28;
  --surface: #1a2835;
  --text: #f0ebe4;
  --text-muted: #a8b4c0;
  --accent: #d4a574;
  --accent-dark: #b8895a;
  --line: rgba(240, 235, 228, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --header-h: 4.25rem;
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .nav {
    transition: transform 0.22s ease, opacity 0.2s ease !important;
  }

  .hero__slides figure {
    opacity: 0;
  }

  .hero__slides figure:first-child {
    opacity: 1;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #e8c49a;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header — .site-head je sticky; .nav je van headera da bi position:fixed radio na svim browserima
   (backdrop-filter na headeru pravi novi containing block i „seče“ mobilni meni). */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
}

.site-header {
  position: relative;
  z-index: 2;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 20, 25, 0.98);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  gap: 1rem;
}

@media (min-width: 900px) {
  .site-head {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 1.5rem, var(--max));
    margin-inline: auto;
    min-height: var(--header-h);
    background: rgba(11, 20, 25, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-header {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    border-bottom: 0;
    background: transparent;
    height: auto;
    min-height: var(--header-h);
  }

  .site-header__inner {
    width: auto;
    margin-inline: 0;
    flex: 0 1 auto;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  flex: 1;
}

@media (min-width: 900px) {
  .brand {
    flex: 0 1 auto;
  }
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  min-height: 3rem;
  padding: 0;
  border: 1px solid rgba(240, 235, 228, 0.22);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-toggle {
  border-color: var(--accent);
  background: rgba(212, 165, 116, 0.12);
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

main {
  position: relative;
  z-index: 0;
}

/* Tamni overlay (dodaje JS) — ispod trake sa menijem, iznad sadržaja stranice */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(3, 8, 12, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

body.menu-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  bottom: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0.75rem 1rem 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  gap: 0;
  margin: 0;
  list-style: none;
  background: #070f14;
  background: linear-gradient(180deg, #0a141c 0%, #070f14 40%, #060c10 100%);
  border-top: 1px solid rgba(212, 165, 116, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
  max-height: calc(100dvh - var(--header-h));
  max-height: calc(100vh - var(--header-h));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.menu-open .nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.25rem;
  color: #f5f0ea;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  border-radius: 10px;
  width: 100%;
  max-width: none;
  text-align: center;
  border-bottom: 1px solid rgba(240, 235, 228, 0.08);
}

.nav a:last-child {
  border-bottom: 0;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  background: rgba(212, 165, 116, 0.14);
  color: #f0dcc4;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(212, 165, 116, 0.35);
}

@media (min-width: 900px) {
  .nav-backdrop {
    display: none !important;
  }

  .nav {
    position: static;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    gap: 0.15rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    width: auto;
    max-height: none;
    overflow: visible;
    border-top: 0;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .nav a {
    width: auto;
    min-height: 0;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.45rem 0.65rem;
    border-bottom: 0;
    box-shadow: none;
  }

  .nav a[aria-current="page"] {
    box-shadow: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slides figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  animation: heroFade 18s infinite;
}

.hero__slides figure:nth-child(1) {
  animation-delay: 0s;
}

.hero__slides figure:nth-child(2) {
  animation-delay: 6s;
}

.hero__slides figure:nth-child(3) {
  animation-delay: 12s;
}

@keyframes heroFade {
  0%,
  5% {
    opacity: 0;
  }
  10%,
  30% {
    opacity: 1;
  }
  35%,
  100% {
    opacity: 0;
  }
}

.hero__slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 20, 25, 0.95) 0%,
    rgba(11, 20, 25, 0.35) 45%,
    rgba(11, 20, 25, 0.5) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem 3.5rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #1a1209;
}

.btn--primary:hover {
  background: #e8c49a;
  color: #1a1209;
  text-decoration: none;
}

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

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Sections */
section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section--alt {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.section__head {
  margin-bottom: 2rem;
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.section__head p {
  margin: 0;
  color: var(--text-muted);
}

.prose {
  color: var(--text-muted);
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.grid-2 {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Figure strip */
.figure-strip {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .figure-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.figure-strip figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
}

.figure-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hours strip */
.hours {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.hours__grid {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

@media (min-width: 700px) {
  .hours__grid {
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 2rem;
  }
}

.hours__block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}

.hours__block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hours__time {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.hours__phones {
  text-align: left;
}

@media (min-width: 700px) {
  .hours__phones {
    text-align: right;
  }
}

.hours__phones a {
  display: block;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

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

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
}

@media (min-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-grid button {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
  aspect-ratio: 1;
}

.gallery-grid button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid button:hover img {
  transform: scale(1.04);
}

.gallery-grid button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 40%);
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-grid button:hover::after,
.gallery-grid button:focus-visible::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 10, 14, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close {
  right: 1rem;
}

.lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .lightbox__prev {
    left: 0.35rem;
  }

  .lightbox__next {
    right: 0.35rem;
  }
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin-inline: auto;
}

.form__row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}

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

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Map */
.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  min-height: 16rem;
  background: var(--surface);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 700px) {
  .map-wrap {
    aspect-ratio: 4/5;
  }
}

/* Menu / jelovnik */
.menu-page .menu-cat {
  margin-bottom: 2.5rem;
}

.menu-cat__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
}

.menu-cat__icon {
  display: block;
  max-width: 12rem;
  margin: 0 auto 1.25rem;
  opacity: 0.9;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem 1.5rem;
}

@media (min-width: 700px) {
  .menu-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .menu-list--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
  color: var(--text-muted);
}

.menu-list li span:first-child {
  color: var(--text);
}

.menu-list .portion {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Accordion for long menu on small screens — optional details */
details.menu-accordion {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

details.menu-accordion summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  list-style: none;
}

details.menu-accordion summary::-webkit-details-marker {
  display: none;
}

details.menu-accordion summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

details.menu-accordion[open] summary::after {
  content: "−";
}

details.menu-accordion .menu-cat__inner {
  padding: 0 1.15rem 1.15rem;
}

@media (min-width: 900px) {
  details.menu-accordion {
    border: 0;
    background: transparent;
    margin-bottom: 2.5rem;
  }

  details.menu-accordion summary {
    pointer-events: none;
    padding: 0;
  }

  details.menu-accordion summary::after {
    display: none;
  }

  details.menu-accordion .menu-cat__inner {
    padding: 0;
  }
}

/* Footer */
.site-footer {
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}

.site-footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 2rem) 1rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 165, 116, 0.12), transparent 55%);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
  margin-inline: auto;
}

/* Utilities */
.mt-0 {
  margin-top: 0;
}

.text-center {
  text-align: center;
}
