/* ===== FONTS ===== */
@font-face {
  font-family: 'ResavskaSans';
  src: url('../font/Webfont - Resavska Sans/resavska_bg_sans-webfont.woff2') format('woff2'),
       url('../font/Webfont - Resavska Sans/regular-italic/resavska_bg_sans-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ResavskaSans';
  src: url('../font/Webfont - Resavska Sans/regular-italic/resavska_bg_sans-italic-webfont.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'ResavskaSans';
  src: url('../font/Webfont - Resavska Sans/bold-italic/resavskabgsans-bold-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ResavskaSans';
  src: url('../font/Webfont - Resavska Sans/bold-italic/resavskabgsans-bolditalic-webfont.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
  --blue:        #043C91;
  --blue-dark:   #02276B;
  --blue-light:  #1a5cb0;
  --gold:        #B8922A;
  --gold-light:  #D4AF5A;
  --paper:       #F4EDD8;
  --paper-dark:  #E8DFC4;
  --white:       #FFFFFF;
  --text-dark:   #1C1208;
  --text-mid:    #4A3520;
  --text-light:  #7A6040;
  --header-h:    90px;
  --radius:      6px;
  --shadow:      0 4px 24px rgba(4,60,145,0.10);
  --shadow-lg:   0 8px 48px rgba(4,60,145,0.18);
  --transition:  0.35s cubic-bezier(.4,0,.2,1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: 'ResavskaSans', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  background-image: url('../fotke/dizajn/pentomino-2-colors.svg');
  background-size: 900px 900px;
  background-repeat: repeat;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--blue-dark);
}

/* ===== SECTION WRAPPER ===== */
.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  background: rgba(255, 255, 255, 0.95);
  position: relative; /* paints above .section-orn (absolute, earlier in source) */
}

.section-label {
  display: block;
  font-family: 'ResavskaSans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin-top: 0.75rem;
  border-radius: 2px;
}

/* ===== SECTION ORNAMENTS ===== */
/*
 * Each content section gets one ornament, alternating right / left.
 * position:absolute inside the section → scrolls naturally with content.
 * section-inner has position:relative so it paints over the ornament.
 * body overflow-x:hidden clips anything that hangs outside the viewport.
 */
.section-orn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}
.section-orn.orn-right {
  right: -12vw;
  width: 25vw;
}
.section-orn.orn-left {
  left: -170px;    /* ~53% of image hidden behind left edge */
  width: 25vw;
}
.section-orn img {
  width: 100%;
  height: auto;
  display: block;
}
.section-orn.orn-right.orn-2a {
  width: 35vw;
  right: -15vw;
}

/* gold SVG filter */
.svg-gold {
  filter: brightness(0) saturate(100%) invert(73%) sepia(55%) saturate(600%) hue-rotate(5deg) brightness(102%);
}

/* ===== TOP HEADER ===== */
#top-header {
  background: var(--blue-dark);
  color: var(--gold-light);
  text-align: center;
  padding: 0.4rem 1.5rem;
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.025em;
  line-height: 1.1;
  border-bottom: 1px solid rgba(212, 175, 90, 0.3);
}
#top-header p {
  max-width: 900px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 223, 196, 0.6);
  box-shadow: 0 2px 16px rgba(4,60,145,0.08);
  transition: background var(--transition), box-shadow var(--transition);
}
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 32px rgba(4,60,145,0.18);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-monogram {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.logo-divider {
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, transparent, var(--blue) 30%, var(--gold) 70%, transparent);
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-line1 {
  font-family: 'ResavskaSans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.logo-line2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--blue);
  white-space: nowrap;
}
.logo-line3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--blue-dark);
  text-transform: uppercase;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.nav-list {
  display: flex;
  gap: 0.25rem;
}
.nav-list a {
  font-family: 'ResavskaSans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: left var(--transition), right var(--transition);
}
.nav-list a:hover { color: var(--blue); }
.nav-list a:hover::after { left: 0.85rem; right: 0.85rem; }

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
  margin-left: 1rem;
}
.lang-btn {
  font-family: 'ResavskaSans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-light);
  background: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-btn:hover { color: var(--blue); border-color: var(--blue); }
.lang-btn.active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--paper); }
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--paper-dark);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: 1.5rem;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-nav.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav-list { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav-list a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--blue-dark);
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--paper-dark);
  display: block;
}
.mobile-lang {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--paper-dark);
}

/* ===== HERO SECTION ===== */
#hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../fotke/galerija/12-55-14-056.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.55);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4,39,107,0.55) 0%,
    rgba(4,39,107,0.30) 50%,
    rgba(184,146,42,0.20) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 860px;
}

.hero-ornament {
  display: block;
  width: 70px;
  margin: 0 auto 1.5rem;
  opacity: 0.92;
  filter: brightness(0) saturate(100%) invert(73%) sepia(55%) saturate(600%) hue-rotate(5deg) brightness(102%);
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  color: var(--white);
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  letter-spacing: 0.02em;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.7);
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll svg { width: 28px; height: 28px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== O NAMA SECTION ===== */
#o-nama {
  padding: 6rem 0;
  background: rgba(255, 255, 255, 0.85);
  position: relative;
}

.about-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 1.5rem;
  color: var(--blue-dark);
}

.about-intro {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-mid);
  max-width: 820px;
  margin-bottom: 2.5rem;
}

.offer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 2rem;
  font-style: italic;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.category-card {
  background: var(--paper);
  border: 1px solid var(--paper-dark);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
  border-top: 3px solid var(--gold);
}
.category-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.category-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.category-title {
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.category-list {
  list-style: none;
}
.category-list li {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  padding: 0.2rem 0 0.2rem 1.1rem;
  position: relative;
}
.category-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.about-closing {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
  max-width: 820px;
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin-top: 1rem;
}

/* ===== GALERIJA ===== */
#galerija {
  padding: 6rem 0;
  background: rgba(244, 237, 216, 0.85);
  position: relative;
}

.swiper {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-dark);
  height: 520px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  transition: opacity var(--transition);
}
.swiper-slide-active img { opacity: 1; }

.swiper-button-next,
.swiper-button-prev {
  color: var(--white) !important;
  background: rgba(4,60,145,0.55);
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.swiper-button-next:hover,
.swiper-button-prev:hover { background: rgba(4,60,145,0.85); }
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 18px !important; }

.swiper-pagination-bullet { background: var(--white) !important; opacity: 0.6; }
.swiper-pagination-bullet-active { opacity: 1 !important; background: var(--gold) !important; }

/* ===== MAPA ===== */
#mapa {
  padding: 6rem 0;
  background: rgba(255, 255, 255, 0.85);
  position: relative;
}

.map-wrapper {
  width: 100%;
  height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--paper-dark);
}
#leaflet-map {
  width: 100%;
  height: 100%;
}

.leaflet-attribution-flag { display: none !important; }

/* Marker je klikabilan — pointer cursor */
.leaflet-marker-icon { cursor: pointer !important; }

/* ===== KONTAKT ===== */
#kontakt {
  padding: 6rem 0;
  background: rgba(244, 237, 216, 0.85);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item-body {}
.contact-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.contact-item-value {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.5;
}
.contact-item-value a { color: var(--blue); }
.contact-item-value a:hover { text-decoration: underline; }

/* Hours table */
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--paper-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  background: var(--white);
  border-bottom: 1px solid var(--paper-dark);
  transition: background var(--transition);
}
.hours-row:last-child { border-bottom: none; }
.hours-row:hover { background: var(--paper); }
.hours-row.closed { color: var(--text-light); font-style: italic; }
.hours-day { font-weight: 700; color: var(--blue-dark); }
.hours-time { color: var(--text-mid); }
.hours-row.closed .hours-time { color: var(--text-light); }

.contact-decoration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-decoration img {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius);
  opacity: 0.9;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

/* ===== FOOTER ===== */
#site-footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-logo-img {
  width: 52px;
  height: 52px;
  filter: brightness(0) saturate(100%) invert(73%) sepia(55%) saturate(600%) hue-rotate(5deg) brightness(102%);
}
.footer-logo-divider {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.25);
}
.footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.footer-logo-text span {
  font-family: 'Playfair Display', serif;
  color: rgba(255,255,255,0.9);
  line-height: 1.25;
}
.footer-logo-text .fl1 { font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-light); }
.footer-logo-text .fl2 { font-size: 0.95rem; font-weight: 400; }
.footer-logo-text .fl3 { font-size: 0.8rem; font-style: italic; }

.footer-projects-title {
  font-family: 'ResavskaSans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}

.footer-projects-list a {
  font-family: 'ResavskaSans', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative;
  padding-left: 0.75rem;
}
.footer-projects-list a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold-light);
}
.footer-projects-list a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ===== SECTION BG ALTERNATION ===== */
/* no z-index on sections — ornaments (z-index:5) must paint above them */
section { position: relative; }


/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== DIVIDER ORNAMENT ===== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--paper-dark));
}
.section-divider-line.right {
  background: linear-gradient(90deg, var(--paper-dark), transparent);
}
.section-divider-cross {
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .orn-fixed { width: 120px; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }

  .main-nav, .lang-switcher { display: none; }
  .hamburger { display: flex; }
  .section-orn { width: 180px; opacity: 0.18; }
  .section-orn.orn-right { right: -100px; }
  .section-orn.orn-left  { left: -100px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-decoration { display: none; }

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

  .swiper-slide { height: 320px; }
}

@media (max-width: 600px) {
  .section-inner { padding: 1.25rem 1.25rem 2.5rem; }
  #o-nama, #galerija, #mapa, #kontakt { padding: 4rem 0; }

  .hero-title { font-size: 1.2rem; }

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

  .footer-projects-list {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ===== PRINT ===== */
@media print {
  .orn-fixed, #site-header, .hero-scroll { display: none !important; }
  #hero { height: auto; min-height: 0; }
}
