/*
Theme Name: Didovo Zlato
Theme URI: https://didovozlato.hr
Author: Duje
Author URI: https://didovozlato.hr
Description: Prilagođena, brza i elegantna WordPress tema za pizzeriju i caffe bar Didovo Zlato u Splitu.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: didovo-zlato
*/

/* ==========================================================================
   Didovo Zlato — Stylesheet
   Pizzeria i caffe bar · Split, Vukovarska 188
   ========================================================================== */

/* Fonts */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url('fonts/dm-sans-normal-300.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('fonts/dm-sans-normal-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url('fonts/dm-sans-normal-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url('fonts/dm-sans-normal-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('fonts/instrument-serif-italic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('fonts/instrument-serif-normal-400.woff2') format('woff2');
}

/* Variables & Design Tokens */
:root {
  --ink: #18221d;
  --ink-dark: #121815;
  --cream: #f6f1e8;
  --paper: #fcfaf6;
  --gold: #ae8751;
  --gold-hover: #c49d65;
  --gold-light: #d7c18f;
  --olive: #60705e;
  --line: rgba(24, 34, 29, 0.12);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
}

main {
  max-width: 100%;
  width: 100%;
}

body.scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6, p, a, span, button {
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

main:focus, section:focus {
  outline: none;
}

section, #radno-vrijeme {
  scroll-margin-top: 24px;
}

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Preloader (2s)
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--ink-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.65s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(90%, 340px);
  animation: preloaderIn 0.8s ease-out;
}

.preloader-logo {
  height: 105px;
  width: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 4px 20px rgba(174, 135, 81, 0.3));
  animation: logoPulse 2s ease-in-out infinite;
}

.preloader-progress-track {
  width: 190px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
}

.preloader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ae8751, #d7c18f, #f5e9d3);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(215, 193, 143, 0.8);
  animation: progressFill 1.85s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.preloader-text {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--gold-light);
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.9;
}

@keyframes progressFill {
  0% { width: 0%; }
  40% { width: 48%; }
  75% { width: 82%; }
  100% { width: 100%; }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes preloaderIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -60px;
  left: 18px;
  z-index: 100;
  background: white;
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 18px;
}

/* Typography elements */
h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 em, h2 em {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 400;
}

.eyebrow, .section-kicker {
  margin: 0 0 20px;
  font-size: 11px;
  letter-spacing: 0.35em;
  font-weight: 600;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--gold-light);
}

.section-kicker {
  color: var(--olive);
}

.section-kicker.light {
  color: var(--gold-light);
}

/* ==========================================================================
   Buttons & Links (Dosljedna tipografija i boje)
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  background-color: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}

.button-gold:hover, .button-gold:focus-visible {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(174, 135, 81, 0.35);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
  background-color: transparent;
}

.button-outline:hover, .button-outline:focus-visible {
  background-color: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.inline-link:hover {
  opacity: 0.8;
  transform: translateX(3px);
}

/* ==========================================================================
   Site Header & Transparent Logo
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 96px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  transition: height 0.35s ease, background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

/* Scrolled header state */
.site-header.scrolled {
  height: 76px;
  color: var(--ink);
  background-color: rgba(252, 250, 246, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.brand:hover .brand-logo {
  transform: scale(1.03);
}

/* Logo toggling: white text on dark hero, dark text on scrolled header */
.site-header:not(.scrolled) .logo-dark {
  display: none !important;
}
.site-header:not(.scrolled) .logo-light {
  display: block;
}

.site-header.scrolled .logo-dark {
  display: block;
  filter: none;
}
.site-header.scrolled .logo-light {
  display: none !important;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 38px);
}

.main-nav a:not(.button) {
  position: relative;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 500;
  transition: color 0.25s ease;
}

.main-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background-color: currentColor;
  transition: right 0.25s ease;
}

.main-nav > a:not(.button):hover::after,
.main-nav > a:not(.button):focus-visible::after {
  right: 0;
}

.mobile-nav-header {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: inherit;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section {
  padding: clamp(90px, 11vw, 150px) clamp(24px, 8vw, 120px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 760px;
  height: 100svh;
  color: white;
  overflow: hidden;
}

.hero picture,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: heroZoom 14s ease-out forwards;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(11, 17, 13, 0.5), transparent 150px),
    linear-gradient(90deg, rgba(11, 17, 13, 0.88) 0%, rgba(11, 17, 13, 0.6) 48%, rgba(11, 17, 13, 0.2) 85%),
    linear-gradient(0deg, rgba(11, 17, 13, 0.55), transparent 50%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 9.5vw, 150px);
  top: 51%;
  width: min(850px, 75vw);
  transform: translateY(-45%);
}

.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.85;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 540px;
  margin-bottom: 36px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-note {
  position: absolute;
  right: clamp(24px, 5vw, 76px);
  bottom: 42px;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  transition: opacity 0.2s ease;
}

.hero-note:hover {
  opacity: 0.85;
}

.hero-note span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-note strong {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

/* ==========================================================================
   Intro (O nama) — Čisti grid slika bez preklapanja
   ========================================================================== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}

.intro-copy h2,
.offer-heading h2,
.events h2,
.gallery h2,
.contact h2 {
  font-size: clamp(46px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.intro-copy h2 {
  margin-bottom: 32px;
}

.intro-copy h2 em,
.gallery h2 em {
  color: #927243;
}

.intro-copy p {
  font-size: 16px;
  line-height: 1.85;
  color: #555d58;
  margin-bottom: 20px;
}

.intro-actions {
  margin-top: 24px;
}

.intro-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.intro-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: white;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.intro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.intro-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.intro-card-label {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background-color: white;
  text-align: center;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Offer (Ponuda) — Bez brojeva 01, 02...
   ========================================================================== */
.offer {
  color: white;
  background-color: var(--ink);
}

.offer-heading {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.9fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 64px;
}

.offer-heading .section-kicker {
  align-self: start;
}

.offer-heading h2 {
  margin-bottom: 0;
}

.offer-heading p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  font-size: 15px;
}

.offer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.offer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.offer-card {
  background-color: #1f2b25;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 193, 143, 0.3);
}

.offer-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.offer-card:hover img {
  transform: scale(1.03);
}

.offer-card-body {
  padding: 28px 24px 30px;
}

.offer-card h3 {
  font-size: 34px;
  margin-bottom: 12px;
  color: #ffffff;
}

.offer-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   Events & Catering — 3 pregledne info kartice
   ========================================================================== */
.events {
  position: relative;
  min-height: 720px;
  padding: clamp(90px, 10vw, 140px) clamp(24px, 8vw, 120px);
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

.events picture,
.events picture img,
.events > img,
.events-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.events img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  z-index: 0;
}

.events-overlay {
  background:
    radial-gradient(ellipse at 80% 25%, rgba(174, 135, 81, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, rgba(12, 18, 14, 0.82) 0%, rgba(16, 24, 19, 0.65) 50%, rgba(12, 18, 14, 0.78) 100%);
  z-index: 1;
  pointer-events: none;
}

.events-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.events h2 {
  margin-bottom: 24px;
}

.events-content > p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 30px;
}

.event-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.event-feature-box {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.event-feature-box:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(215, 193, 143, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.event-feature-box h4 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 10px;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.event-feature-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Gallery — Čist raspored 4 fotografije u punom formatu
   ========================================================================== */
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.gallery-head h2 {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #e5e0d8;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-item picture img,
.gallery-item img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.6s ease, filter 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
  filter: brightness(0.92);
}

.gallery-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  padding: 8px 12px;
  background: rgba(24, 34, 29, 0.82);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Gumb za otvaranje cijele galerije — centriran s odmakom od slika */
.gallery-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: 16px;
  width: 100%;
  text-align: center;
}

.gallery-cta .button {
  padding: 16px 38px;
  font-size: 13px;
  letter-spacing: 0.16em;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 10vw, 140px);
  color: white;
  background-color: #344036;
}

.contact h2 {
  margin-bottom: 24px;
}

.contact-intro > p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.85;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.contact-details {
  align-self: center;
}

.contact-details > div {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-details span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 0.26em;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-details a {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: var(--gold-light);
}

.contact-details p {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
}

.contact-details .hours-note {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
}

.contact-details b {
  margin-left: 8px;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 13px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  min-height: 200px;
  padding: 55px clamp(24px, 8vw, 120px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 40px;
  align-items: center;
  color: white;
  background-color: var(--ink-dark);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(174, 135, 81, 0.3));
  flex-shrink: 0;
}

.footer-brand-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 38px;
  letter-spacing: 0.12em;
  font-weight: 400;
  line-height: 1.1;
}

.footer-brand-text span {
  font-size: 9px;
  letter-spacing: 0.5em;
  color: var(--gold-light);
  text-transform: uppercase;
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  text-align: right;
  font-size: 12px;
}

/* ==========================================================================
   Mobile Sticky Call Button
   ========================================================================== */
.mobile-call {
  display: none;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox {
  width: min(92vw, 1100px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background-color: transparent;
  overflow: visible;
}

.lightbox:not([open]) {
  display: none;
}

.lightbox::backdrop {
  background-color: rgba(7, 10, 8, 0.94);
  backdrop-filter: blur(8px);
}

.lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  max-height: 78dvh;
  margin: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox figcaption {
  margin-top: 16px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 22px;
  text-align: center;
  letter-spacing: 0.02em;
}

.lightbox button {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background-color: #18221d;
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  background-color: var(--gold);
  color: var(--ink);
  transform: rotate(90deg);
}

.lightbox[open] {
  animation: lightboxIn 0.25s ease-out;
}

/* Animations */
.reveal {
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-pending {
  opacity: 0;
  transform: translateY(24px);
}

.hero-content > * {
  animation: contentIn 0.8s ease-out both;
}
.hero-content > :nth-child(2) { animation-delay: 0.08s; }
.hero-content > :nth-child(3) { animation-delay: 0.16s; }
.hero-content > :nth-child(4) { animation-delay: 0.24s; }

@keyframes contentIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes heroZoom {
  from { transform: scale(1.07); }
  to { transform: scale(1.02); }
}

/* ==========================================================================
   Menu Section — Interaktivni Flip-Book Jelovnik
   ========================================================================== */
.menu-section {
  background-color: var(--cream);
  padding: clamp(80px, 10vw, 130px) clamp(24px, 8vw, 120px);
}

.menu-head {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 52px;
}

.menu-head-text .section-kicker {
  color: var(--olive);
}

.menu-head-text h2 {
  font-family: var(--serif);
  font-size: clamp(46px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 0;
  color: var(--ink);
}

.menu-head-text h2 em {
  color: #927243;
}

.menu-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: #555d58;
  align-self: end;
  padding-top: 12px;
}

.flipbook-wrap {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: #1a1a1a;
  border: 1px solid var(--line);
  /* 9:16 aspect ratio for portrait menu */
  aspect-ratio: 553 / 680;
  max-height: 78vh;
  margin: 0 auto;
  max-width: 860px;
}

.flipbook-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.menu-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

/* Button variant: outline on light background */
.button-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
  background-color: transparent;
}

.button-outline-dark:hover,
.button-outline-dark:focus-visible {
  background-color: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  box-shadow: 0 6px 20px rgba(24, 34, 29, 0.2);
}

/* ==========================================================================
   Gallery Page (gallery.html)
   ========================================================================== */
.gallery-page-hero {
  position: relative;
  background-color: var(--ink-dark);
  color: white;
  padding: clamp(140px, 16vw, 190px) clamp(24px, 8vw, 120px) clamp(60px, 8vw, 90px);
  text-align: center;
  overflow: hidden;
}

.gallery-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(174, 135, 81, 0.18), transparent 70%);
  pointer-events: none;
}

.gallery-hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-page-hero h1 {
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.gallery-page-hero p {
  font-size: clamp(15px, 1.25vw, 18px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  margin: 0;
}

.gallery-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 36px clamp(24px, 8vw, 120px) 16px;
  background-color: var(--paper);
}

.filter-btn {
  background: none;
  border: 1px solid var(--line);
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.gallery-page-section {
  padding: 24px clamp(24px, 8vw, 120px) 100px;
  background-color: var(--paper);
}

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

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.gallery-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #e5e0d8;
  cursor: zoom-in;
  display: block;
}

.gallery-card-media picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-card-media picture img,
.gallery-card-media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.5s ease, filter 0.35s ease;
}

.gallery-card:hover .gallery-card-media img {
  transform: scale(1.06);
  filter: brightness(0.92);
}

.gallery-zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 34, 29, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #ffffff;
  pointer-events: none;
}

.gallery-zoom-icon svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

.gallery-card:hover .gallery-zoom-icon {
  opacity: 1;
}

.gallery-card:hover .gallery-zoom-icon svg {
  transform: scale(1);
}

.gallery-card-info {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.gallery-card-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olive);
  margin-bottom: 6px;
}

.gallery-card-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

/* Gallery CTA Banner */
.gallery-page-cta {
  background-color: #344036;
  color: white;
  padding: clamp(70px, 9vw, 110px) clamp(24px, 8vw, 120px);
  text-align: center;
}

.gallery-page-cta h2 {
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 1;
  margin-bottom: 18px;
}

.gallery-page-cta p {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.gallery-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */


@media (max-width: 1024px) {
  .gallery-full-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .offer-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .event-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 76px;
    padding: 0 20px;
  }

  .brand-logo {
    height: 54px;
  }

  .menu-toggle {
    display: block;
    z-index: 105;
  }

  body.menu-open {
    overflow: hidden !important;
  }

  .menu-open .site-header {
    background-color: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .menu-open .brand {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .menu-open .menu-toggle {
    color: #ffffff !important;
    z-index: 105;
  }

  .menu-open .menu-toggle > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-open .menu-toggle > span:nth-child(2) {
    opacity: 0;
  }
  .menu-open .menu-toggle > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-ready .main-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    color: white;
    background-color: var(--ink-dark);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.95) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.32s ease,
                visibility 0.35s step-end;
  }

  .menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1) translateY(0);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.32s ease,
                visibility 0s linear;
  }

  /* Mobilni logo u izborniku — centriran iznad linkova */
  .mobile-nav-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    flex-shrink: 0;
  }

  .mobile-nav-logo {
    height: 92px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(174, 135, 81, 0.35));
  }

  /* Centrirani navigacijski linkovi */
  .main-nav a:not(.button) {
    font-size: 20px;
    letter-spacing: 0.16em;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    padding: 6px 16px;
  }

  .nav-ready .main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
    max-width: 320px;
    flex-shrink: 0;
  }

  .nav-cta {
    margin-top: 18px;
    width: 100%;
    max-width: 270px;
    flex-shrink: 0;
  }

  .intro-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .menu-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 36px;
  }

  .flipbook-wrap {
    aspect-ratio: 553 / 760;
    max-height: 85vh;
  }

  .hero {
    height: auto;
    min-height: 720px;
    min-height: max(720px, 100svh);
    display: grid;
    align-items: center;
    padding: 130px clamp(24px, 9.5vw, 150px) 110px;
  }


  .hero-content {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
  }

  .offer-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  /* Spriječi horizontalni overflow medijskih elemenata */
  img, picture, video, canvas, svg, table {
    max-width: 100%;
  }

  .brand-logo {
    height: 48px;
  }

  /* Hero prilagodba */
  .hero {
    min-height: 600px;
    min-height: max(600px, 100svh);
    padding: 100px 18px 70px;
    overflow: hidden;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 50px);
    line-height: 0.98;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-note {
    display: none;
  }

  /* Gumbi općenito na mobitelu — dozvoli prijelom teksta da ne guraju ekran */
  .button {
    white-space: normal;
    word-break: normal;
    text-align: center;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    line-height: 1.35;
    letter-spacing: 0.1em;
  }

  /* Sekcije i naslovi */
  .section {
    padding: 64px 18px;
  }

  .intro-copy h2,
  .offer-heading h2,
  .events h2,
  .gallery h2,
  .contact h2 {
    font-size: clamp(30px, 8.5vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.015em;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .intro-grid {
    gap: 36px;
  }

  .intro-media-grid {
    grid-template-columns: 1fr;
  }

  /* Ponuda (Offer) */
  .offer-heading {
    margin-bottom: 32px;
  }

  .offer-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .offer-links .button {
    width: 100%;
    max-width: 100%;
  }

  /* Proslave & Catering sekcija */
  .events {
    padding: 64px 18px;
    min-height: auto;
  }

  .events-content {
    width: 100%;
    max-width: 100%;
  }

  .events-content .button {
    width: 100%;
    max-width: 100%;
  }

  .event-feature-box {
    padding: 22px 18px;
  }

  /* Galerija preview i gumb za cijelu galeriju */
  .gallery-grid,
  .gallery-full-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-cta {
    margin-top: 32px;
    padding: 0;
    width: 100%;
  }

  .gallery-cta .button {
    width: 100%;
    max-width: 100%;
    padding: 14px 18px;
    font-size: 11px;
    letter-spacing: 0.1em;
    white-space: normal;
    text-align: center;
  }

  /* Stranica Galerije (gallery.html) */
  .gallery-page-hero {
    padding: 110px 18px 40px;
  }

  .gallery-page-hero h1 {
    font-size: clamp(32px, 9.5vw, 44px);
    line-height: 1.05;
    overflow-wrap: break-word;
  }

  .gallery-filter-bar {
    padding: 20px 14px 12px;
    gap: 8px;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .gallery-page-section {
    padding: 16px 14px 60px;
  }

  .gallery-page-cta {
    padding: 50px 18px;
  }

  .gallery-page-cta h2 {
    font-size: clamp(28px, 8vw, 36px);
    overflow-wrap: break-word;
  }

  .gallery-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .gallery-cta-buttons .button {
    width: 100%;
    max-width: 100%;
  }

  /* Kontakt sekcija */
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
    margin-top: 28px;
  }

  .contact-actions .button {
    width: 100%;
    max-width: 100%;
  }

  .contact-details a {
    font-size: 20px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  /* Footer prilagodba */
  footer {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 24px;
    padding: 48px 18px calc(90px + env(safe-area-inset-bottom));
    max-width: 100%;
  }

  .footer-brand {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .footer-logo {
    height: 44px;
    width: auto;
    flex-shrink: 0;
  }

  .footer-brand-text strong {
    font-size: clamp(20px, 6vw, 26px);
    letter-spacing: 0.08em;
    line-height: 1.15;
  }

  .footer-brand-text span {
    font-size: 8px;
    letter-spacing: 0.3em;
  }

  footer p {
    text-align: left;
    font-size: 11px;
    line-height: 1.6;
  }

  /* Sticky call button */
  .mobile-call {
    position: fixed;
    z-index: 95;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ae8751 0%, #95703d 100%);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(174, 135, 81, 0.4);
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 600;
    gap: 10px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-call.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-call:hover {
    background: linear-gradient(135deg, #c49d65 0%, #ae8751 100%);
    transform: translateY(-2px);
  }

  .mobile-call:active {
    transform: translateY(1px);
  }

  body.menu-open .mobile-call {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
  }

  html {
    scroll-padding-bottom: calc(85px + env(safe-area-inset-bottom));
  }
}

/* Accessibility & Print */
@media (hover: none) {
  .button:hover {
    transform: none;
  }
  .gallery-item:hover {
    transform: none;
  }
  .gallery-item:hover img {
    transform: none;
    filter: none;
  }
}

@media print {
  .preloader,
  .site-header,
  .mobile-call,
  .lightbox {
    display: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  body.scroll-locked {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .preloader {
    display: none !important;
  }
}

/* ==========================================================================
   Footer Legal Links & Cookie Trigger
   ========================================================================== */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
  font-size: 12px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--gold-light);
}

.footer-separator {
  color: rgba(255, 255, 255, 0.35);
}

.cookie-trigger-btn {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.cookie-trigger-btn:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   Footer Designed by Credit & Subtle Gold Pulse
   ========================================================================== */
.footer-credit {
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.03em;
}

.credit-author {
  display: inline-block;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
  padding: 1px 7px;
  margin-left: 3px;
  border-radius: 4px;
  background: rgba(174, 135, 81, 0.12);
  border: 1px solid rgba(215, 193, 143, 0.35);
  animation: goldPulse 2.6s ease-in-out infinite;
  transition: all 0.25s ease;
  vertical-align: baseline;
}

.credit-author:hover {
  color: #fff9e6;
  border-color: var(--gold-light);
  background: rgba(174, 135, 81, 0.28);
  box-shadow: 0 0 14px rgba(215, 193, 143, 0.65);
  transform: translateY(-1px);
}

@keyframes goldPulse {
  0%, 100% {
    color: var(--gold-light);
    border-color: rgba(215, 193, 143, 0.3);
    box-shadow: 0 0 4px rgba(174, 135, 81, 0.25);
  }
  50% {
    color: #fff5d6;
    border-color: rgba(215, 193, 143, 0.85);
    box-shadow: 0 0 12px 2px rgba(215, 193, 143, 0.6);
  }
}

/* ==========================================================================
   Minimalni Cookie Consent Bar na dnu (GDPR & EU/HR usklađeno)
   ========================================================================== */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: rgba(18, 25, 20, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(174, 135, 81, 0.38);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.55);
  padding: 14px clamp(16px, 4vw, 40px) calc(14px + env(safe-area-inset-bottom));
  color: #ffffff;
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              visibility 0.45s ease;
  pointer-events: auto;
}

.cookie-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-bar-main {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-bar-text {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  flex: 1 1 auto;
}

.cookie-bar-text strong {
  color: var(--gold-light);
  font-weight: 600;
}

.cookie-bar-text a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cookie-bar-text a:hover {
  color: #ffffff;
}

.cookie-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-bar-actions .button {
  padding: 9px 18px;
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cookie-btn-settings {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cookie-btn-settings:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

/* Proširivi detaljni panel za odabir unutar bara */
.cookie-bar-details {
  max-width: 1280px;
  margin: 12px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-bar-toggles {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-toggle-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  user-select: none;
}

.cookie-toggle-item input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.cookie-toggle-title {
  color: rgba(255, 255, 255, 0.7);
}

.cookie-badge-on {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(174, 135, 81, 0.18);
  padding: 2px 7px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .cookie-bar-main {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-bar-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cookie-bar-actions .button,
  .cookie-btn-settings {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }
  .cookie-bar-details {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .cookie-bar {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .cookie-bar-text {
    font-size: 12px;
    line-height: 1.5;
  }
  .cookie-bar-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-bar-actions .button,
  .cookie-btn-settings {
    width: 100%;
  }
  .cookie-bar-toggles {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   Stranica Pravnih informacija (pravne-informacije.html)
   ========================================================================== */
.legal-hero {
  position: relative;
  background-color: var(--ink-dark);
  color: white;
  padding: clamp(140px, 16vw, 180px) clamp(24px, 8vw, 120px) clamp(50px, 6vw, 80px);
  text-align: center;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(174, 135, 81, 0.16), transparent 70%);
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.legal-hero h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.legal-hero p {
  font-size: clamp(15px, 1.2vw, 17px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0;
}

.legal-section {
  padding: clamp(50px, 8vw, 90px) clamp(20px, 6vw, 120px) 120px;
  background-color: var(--paper);
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--shadow-sm);
}

.legal-card h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 32px);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.legal-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.legal-card p {
  font-size: 15px;
  line-height: 1.75;
  color: #3b423d;
  margin-bottom: 14px;
}

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

.legal-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #3b423d;
}

.legal-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--gold);
  font-weight: bold;
  font-size: 18px;
}

.legal-list a,
.legal-card a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-list a:hover,
.legal-card a:hover {
  color: var(--gold-dark);
}

.legal-card code {
  background: #f0ece3;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink);
}

.cookie-manage-box {
  margin-top: 24px;
  padding: 20px;
  background-color: #faf8f5;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.cookie-manage-box h3 {
  margin-top: 0;
}

.cookie-manage-box .button {
  margin-top: 12px;
}

.legal-back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .legal-hero {
    padding: 100px 18px 40px;
  }
  .legal-section {
    padding: 30px 14px 80px;
  }
  .legal-card {
    padding: 20px 18px;
  }
  .legal-back {
    flex-direction: column;
    align-items: stretch;
  }
  .legal-back .button {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Novosti & Događanja (Blog & Single Post)
   ========================================================================== */

.blog-page-hero {
  position: relative;
  background-color: var(--ink-dark);
  color: #ffffff;
  padding: clamp(140px, 16vw, 190px) clamp(24px, 8vw, 120px) clamp(60px, 8vw, 90px);
  text-align: center;
  overflow: hidden;
}

.blog-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(174, 135, 81, 0.22), transparent 70%);
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.blog-page-hero h1 {
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.blog-page-hero p {
  font-size: clamp(15px, 1.25vw, 18px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  margin: 0;
}

.blog-section {
  padding: 30px clamp(24px, 8vw, 120px) 110px;
  background-color: var(--paper);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1320px;
  margin: 0 auto;
}

.blog-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.blog-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #e5e0d8;
  display: block;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.05);
}

.blog-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(24, 34, 29, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(174, 135, 81, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #777;
  margin-bottom: 12px;
}

.blog-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-title {
  font-family: var(--serif);
  font-size: clamp(22px, 1.6vw, 26px);
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink);
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--gold);
}

.blog-card-excerpt {
  font-size: 14.5px;
  line-height: 1.65;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--olive);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease, gap 0.2s ease;
  margin-top: auto;
}

.blog-card-link:hover {
  color: var(--gold-dark);
  gap: 10px;
}

/* ==========================================================================
   Single Post View (Tamni hero sa slikom + preklapajuća polu-slika + otvoren sadržaj)
   ========================================================================== */
.single-post-view {
  background-color: var(--paper);
  min-height: 100vh;
  position: relative;
}

.single-article {
  padding-bottom: clamp(70px, 9vw, 110px);
}

/* Tamno hero zaglavlje — pruža idealan kontrast za bijelu fiksnu navigaciju pri vrhu */
.single-hero-header {
  position: relative;
  background-color: var(--ink-dark);
  color: #ffffff;
  padding: clamp(140px, 16vw, 190px) clamp(24px, 6vw, 60px) clamp(90px, 11vw, 130px);
  text-align: center;
  overflow: hidden;
}

.single-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: saturate(0.85);
  transform: scale(1.03);
}

.single-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 17, 13, 0.65) 0%, rgba(11, 17, 13, 0.82) 55%, rgba(11, 17, 13, 0.96) 100%),
    radial-gradient(circle at 50% 30%, rgba(174, 135, 81, 0.24), transparent 70%);
}

.single-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.single-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 22px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.single-back-nav:hover {
  color: var(--gold-light);
  transform: translateX(-4px);
}

.single-badge-wrap {
  margin-bottom: 16px;
}

.single-cat-pill {
  display: inline-block;
  background: rgba(174, 135, 81, 0.22);
  border: 1px solid rgba(174, 135, 81, 0.55);
  color: var(--gold-light);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 999px;
}

.single-hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.single-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 4px;
}

.single-hero-meta .meta-dot {
  color: var(--gold);
  font-weight: bold;
}

.single-hero-lead {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 18px auto 0;
}

/* "Polu-slika" — istaknuta slika koja se preklapa pola u tamnom zaglavlju, pola na tijelu */
.single-featured-wrap {
  max-width: 980px;
  margin: clamp(-60px, -7vw, -90px) auto 0;
  padding: 0 clamp(20px, 4vw, 32px);
  position: relative;
  z-index: 5;
}

.single-featured-frame {
  border-radius: clamp(12px, 1.8vw, 18px);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #ffffff;
  aspect-ratio: 16 / 9;
}

.single-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tijelo članka — otvoreno, prozračno, prirodno, bez zatvorenog kvadrata */
.single-article-body {
  max-width: 780px;
  margin: clamp(40px, 5vw, 60px) auto 0;
  padding: 0 clamp(20px, 4vw, 32px);
}

.single-article-prose {
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.85;
  color: #2b332f;
}

.single-article-prose p {
  margin: 0 0 28px;
}

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

.single-article-prose h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.25;
  color: var(--ink);
  margin: 48px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(229, 216, 195, 0.8);
}

.single-article-prose h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.3;
  color: var(--ink);
  margin: 38px 0 16px;
}

.single-article-prose ul,
.single-article-prose ol {
  margin: 0 0 28px;
  padding-left: 28px;
}

.single-article-prose li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.single-article-prose blockquote {
  margin: 36px 0;
  padding: 22px 30px;
  background: rgba(255, 255, 255, 0.75);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.18em;
  line-height: 1.6;
  color: var(--ink);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.single-article-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 32px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.single-article-prose strong {
  color: var(--ink);
  font-weight: 600;
}

.single-article-prose a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.single-article-prose a:hover {
  color: var(--gold-dark);
}

/* Čisto podnožje članka — bez zbijenih okvira */
.single-article-footer {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(229, 216, 195, 0.85);
}

.single-share-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.share-clean-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.share-clean-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.share-whatsapp {
  background-color: #25d366;
}

.share-facebook {
  background-color: #1877f2;
}

/* Prethodna / Sljedeća novost — elegantne, prozračne kartice s prostorom */
.single-nav-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.single-nav-item {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.single-nav-item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.single-nav-next {
  text-align: right;
  align-items: flex-end;
}

.single-nav-hint {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.single-nav-title {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
}

.single-back-strip {
  text-align: center;
  padding-top: 10px;
}

/* Responsive Blog Styles */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .blog-page-hero {
    padding: 110px 18px 40px;
  }
  .blog-section {
    padding: 20px 16px 70px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .single-hero-header {
    padding: 120px 18px 75px;
  }
  .single-featured-wrap {
    margin-top: -45px;
    padding: 0 16px;
  }
  .single-article-body {
    padding: 0 16px;
  }
  .single-nav-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .single-nav-next {
    text-align: left;
    align-items: flex-start;
  }
  .single-share-clean {
    flex-direction: column;
    align-items: flex-start;
  }
}
