/* Kreativni Kliker — zajednički stilovi
   Izgled prati raniju Ashade temu: tamna pozadina, Montserrat za tekst,
   Roboto Condensed za naslove, Roboto Slab za logo. */

/* ---------- Fontovi (lokalno, latin + latin-ext za č ć š ž đ) ---------- */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../fonts/montserrat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/roboto-condensed-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/roboto-condensed-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Slab"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/roboto-slab-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto Slab"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/roboto-slab-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeni ---------- */
:root {
  --bg: #000000;
  --bg-card: #17171b;
  --bg-input: rgba(0, 0, 0, 0);
  --bg-input-focus: rgba(0, 0, 0, 0.5);
  --spotlight: #28282e;
  --overlay: rgba(0, 0, 0, 0.85);

  --fg: #808080;          /* osnovni tekst */
  --fg-strong: #ffffff;   /* naslovi, aktivni link */
  --fg-soft: #999999;     /* logo, meni */
  --fg-muted: #5c5c5c;    /* nadnaslovi */
  --fg-title: #8c8c8c;    /* vertikalni naslov stranice */

  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.25);
  --error: #ff6b6b;
  --success: #7fd18b;

  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-logo: "Roboto Slab", Georgia, serif;

  --gutter: 16px;
  --side: 160px;          /* prostor za vertikalni naslov na desktopu */
  --content-max: 1120px;
  --header-h: 96px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius: 10px;         /* zaobljenje kartica, sličica, polja forme i dugmeta */
  color-scheme: dark;
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 500 16px/1.75 var(--font-body);
  overflow-x: hidden;
}
/* "Spotlight" iz Ashade teme: blaga svetlost u gornjem levom uglu */
body::before {
  content: ""; position: fixed; inset: 0 0 -40% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at left top, var(--spotlight) 0%, rgba(0, 0, 0, 0) 70%);
  translate: 0 var(--bg-y, 0px);  /* parallax: najdalji sloj (site.js) */
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--fg-strong); }
p { margin: 0 0 1.5em; }
strong { color: #a6a6a6; font-weight: 700; }
h1, h2, h3, h4 { margin: 0; color: var(--fg-strong); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; line-height: 1.1; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--fg-strong); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: 10px 16px; background: var(--fg-strong); color: var(--bg); font-weight: 700; }
.skip-link:focus { top: var(--gutter); color: var(--bg); }

.overhead {
  display: block; font-family: var(--font-body); font-weight: 700; font-size: 12px; line-height: 1.4;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--fg-muted);
}

/* ---------- Zaglavlje ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h); padding: 0 var(--gutter);
  transition: background 0.3s var(--ease);
}
.site-header.is-scrolled { background: rgba(0, 0, 0, 0.92); }
.logo { font: 400 17px/1 var(--font-logo); color: var(--fg-soft); white-space: nowrap; }
.logo:hover { color: var(--fg-strong); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.main-nav ul { display: flex; gap: 50px; margin: 0; padding: 0; list-style: none; }
.main-nav a { font-size: 13px; line-height: 1; text-transform: uppercase; color: var(--fg-soft); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--fg-strong); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--fg-soft); cursor: pointer;
}
.icon-btn:hover { color: var(--fg-strong); }
.dots { display: flex; gap: 5px; }
.dots span { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.burger { display: grid; gap: 6px; width: 24px; }
.burger span { height: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobilni meni */
@media (max-width: 1023px) {
  .main-nav {
    position: fixed; inset: 0; z-index: -1; display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.96); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 28px; }
  .main-nav a { font: 700 32px/1 var(--font-head); }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-header { padding: 0 50px; }
  .header-actions { gap: 34px; }
}

/* ---------- Bočni panel ("...") ---------- */
.aside {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(400px, 100%);
  padding: 90px 40px 40px; overflow-y: auto; background: var(--bg-card);
  transform: translateX(100%); visibility: hidden; transition: transform 0.4s var(--ease), visibility 0.4s;
}
.aside.is-open { transform: none; visibility: visible; }
.aside-close { position: absolute; top: 24px; right: 24px; }
.aside-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; }
.aside h2 { font-size: 24px; margin-bottom: 14px; }
.aside .overhead { margin: 36px 0 16px; }
.backdrop {
  position: fixed; inset: 0; z-index: 50; background: var(--overlay);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.backdrop.is-open { opacity: 1; visibility: visible; }
.close-x { position: relative; width: 22px; height: 22px; }
.close-x::before, .close-x::after { content: ""; position: absolute; top: 10px; left: 0; width: 22px; height: 2px; background: currentColor; transform: rotate(45deg); }
.close-x::after { transform: rotate(-45deg); }

/* ---------- Okvir stranice i vertikalni naslov ---------- */
.page { padding: calc(var(--header-h) + 8px) var(--gutter) 0; }
.page-title { margin-bottom: 40px; }
.page-title h1 { font-size: clamp(36px, 9vw, 56px); color: var(--fg-title); }
.page-title .overhead { margin-bottom: 6px; }
.content { max-width: var(--content-max); margin: 0 auto; }

@media (min-width: 1024px) {
  .page { padding: 130px 0 0 var(--side); padding-right: 96px; }
  .frame-line { position: fixed; top: 0; bottom: 0; z-index: 1; width: 1px; background: var(--line); pointer-events: none; }
  .frame-line--left { left: 62px; }
  .frame-line--right { right: 94px; }
  /* Naslov stranice uspravno uz levu ivicu, čita se odozdo nagore (kao u Ashade temi).
     vertical-rl + rotate(180deg): nadnaslov ostaje levo od linije, naslov desno. */
  .page-title {
    position: fixed; left: 40px; top: 50%; z-index: 2; margin: 0; max-height: 80vh;
    writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
    display: flex; flex-direction: column; align-items: center; text-align: center;
  }
  .page-title h1 { font-size: 56px; white-space: nowrap; }
  .page-title .overhead { font-size: 13px; margin: 0 6px 0 0; white-space: nowrap; }
}
@media (max-width: 1023px) { .frame-line { display: none; } }

/* ---------- Podnožje ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 60px var(--gutter) 32px;
  font: 700 13px/1 var(--font-head); text-transform: uppercase; color: var(--fg-soft);
}
.socials { display: flex; gap: 36px; margin: 0; padding: 0; list-style: none; text-transform: none; }
.socials a { display: inline-block; padding: 6px 0; }
@media (min-width: 1024px) { .site-footer { padding: 80px 50px 30px; } }

/* ---------- Dugmad i linkovi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 40px;
  border: 2px solid var(--line-strong); border-radius: var(--radius); background: none; color: var(--fg-strong); cursor: pointer;
  font: 700 15px/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.02em;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { border-color: var(--fg-strong); background: rgba(255, 255, 255, 0.05); }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.more-link { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--fg-strong); }
.more-link:hover { color: var(--fg-soft); }

/* ---------- Početna: video ---------- */
.home { overflow: hidden; }
.home-media { position: fixed; inset: 0; z-index: -1; background: var(--bg); }
.home-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 1.6s ease-in; }
/* Uz JS: ekran je crn dok video stvarno ne krene, zatim se video lagano pojavljuje */
.js .home-media video { opacity: 0; }
.js .home-media video.is-playing { opacity: 0.75; }
.home .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; }
.home-contact-trigger {
  position: fixed; left: var(--gutter); bottom: 130px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--fg-title); text-align: left;
}
.home-contact-trigger .big { font: 700 44px/1 var(--font-head); text-transform: uppercase; transition: color 0.2s var(--ease); }
.home-contact-trigger:hover .big { color: var(--fg-strong); }
@media (min-width: 1024px) {
  .home-contact-trigger { left: 40px; bottom: 100px; writing-mode: vertical-rl; transform: rotate(180deg); }
  .home-contact-trigger .big { font-size: 56px; }
  .home-contact-trigger .overhead { font-size: 13px; margin-right: 6px; }
}

/* Panel sa kontaktom na početnoj */
.contact-panel {
  position: fixed; inset: 0; z-index: 55; overflow-y: auto; padding: 110px var(--gutter) 60px;
  background: rgba(0, 0, 0, 0.95); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.contact-panel.is-open { opacity: 1; visibility: visible; }
.contact-panel-close { position: fixed; top: 26px; right: var(--gutter); z-index: 2; }
.contact-panel .inner { max-width: 1000px; margin: 0 auto; }
.contact-panel .inner > h2 { font-size: clamp(36px, 8vw, 56px); margin: 6px 0 20px; }
.contact-panel .intro { max-width: 65ch; margin-bottom: 48px; }
@media (min-width: 1024px) { .contact-panel-close { right: 50px; } }
@media (max-width: 1023px) { .contact-panel { background: var(--bg); } }

/* ---------- Parallax hero (Usluge, Portfolio, O meni) ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  height: 72vh; min-height: 420px; max-height: 920px; overflow: hidden; background: var(--bg);
}
/* Hero preuzima vrh stranice: bez pozadinske svetlosti, da prelaz fotografije u crno bude bez ivice */
.has-hero::before { display: none; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero--usluge .hero-media img { object-position: 50% 45%; }
.hero--portfolio .hero-media img { object-position: 50% 35%; }
.hero--bio .hero-media img { object-position: 50% 60%; }
/* Zatamnjenje: gore zbog menija, dole prelaz u crnu pozadinu stranice */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.35) 65%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) 56px; }
.hero-content .overhead { color: rgba(255, 255, 255, 0.7); font-size: 13px; margin-bottom: 8px; }
.hero h1 { font-size: clamp(48px, 11vw, 120px); line-height: 0.95; color: var(--fg-strong); }
.hero-scroll { position: absolute; right: var(--gutter); bottom: 56px; z-index: 2; display: block; width: 24px; height: 64px; }
.hero-scroll span { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.hero-scroll span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--fg-strong); animation: hero-scroll 2s var(--ease) infinite; }
@keyframes hero-scroll { to { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll span::after { animation: none; top: 30%; } }
.page--hero { padding-top: 48px; }
@media (min-width: 1024px) {
  .hero { height: 86vh; }
  .hero-content { padding: 0 96px 80px var(--side); }
  .hero-scroll { right: 120px; bottom: 80px; }
  .page--hero { padding-top: 70px; }
}
/* Parallax: fotografija klizi upola sporije, naslov se diže i bledi (vrednosti postavlja site.js) */
.has-parallax .hero-media { translate: 0 var(--hero-y, 0px); will-change: translate; }
.has-parallax .hero-content { translate: 0 var(--hero-c, 0px); opacity: var(--hero-o, 1); }

/* ---------- Kontakt lista i forma ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 300px 1fr; gap: 64px; align-items: start; } }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; }
.contact-list .ico {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 2px solid #3a3a3a; border-radius: 50%; color: #8c8c8c;
}
.contact-list .ico svg { width: 18px; height: 18px; }
.contact-list .socials { gap: 20px; }
.contact-list .socials a { padding: 0; }
.contact-heading { margin-bottom: 24px; }

.form-row { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 640px) { .form-row--3 { grid-template-columns: repeat(3, 1fr); } }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 13px 20px; border: 2px solid #2e2e2e; border-radius: var(--radius);
  background: var(--bg-input); color: var(--fg-strong); font: 500 15px/1.5 var(--font-body);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { min-height: 230px; resize: vertical; display: block; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg); opacity: 1; }
.field input:hover, .field textarea:hover { background: var(--bg-input-focus); }
.field input:focus, .field textarea:focus { outline: none; border-color: #8c8c8c; background: var(--bg-input-focus); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field-error { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--error); }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px 24px; }
.form-status { flex: 1 1 260px; margin: 0; font-size: 14px; line-height: 1.5; }
.form-status.is-ok { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* ---------- Usluge ---------- */
.services { display: grid; gap: 64px 40px; }
@media (min-width: 900px) { .services { grid-template-columns: 1fr 1fr; gap: 80px 70px; } }
.service-head { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; min-height: 155px; padding-left: 175px; text-align: right; }
.service-head img { position: absolute; left: 0; top: 0; z-index: 2; width: 155px; height: 155px; border-radius: 50%; object-fit: cover; }
.service-head .overhead { margin-bottom: 4px; }
.service-head h2 { font-size: clamp(26px, 3vw, 32px); }
.service-body { margin: -40px 0 0 30px; padding: 75px 30px 30px; border-radius: var(--radius); background: var(--bg-card); }
.service-body p { margin-bottom: 1em; }
.service-body .more-link { display: block; margin-top: 20px; text-align: right; }
@media (max-width: 559px) {
  .service-head { padding-left: 0; align-items: flex-start; text-align: left; min-height: 0; padding-top: 130px; }
  .service-head img { width: 110px; height: 110px; }
  .service-body { margin: 20px 0 0; padding: 26px 22px; }
}
.section-gap { margin-top: 110px; }

/* ---------- O meni ---------- */
.bio { display: grid; gap: 48px; }
@media (min-width: 900px) { .bio { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.bio-text { max-width: 65ch; }
.bio-photo { position: sticky; top: 130px; }

/* ---------- Kontakt stranica ---------- */
.lead { max-width: 760px; margin: 0 auto 80px; text-align: center; font-size: 17px; }
@media (min-width: 1024px) { .lead { margin-bottom: 140px; } }

/* ---------- Portfolio ---------- */
.albums { display: grid; gap: 50px 40px; }
@media (min-width: 640px) { .albums { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .albums { grid-template-columns: repeat(3, 1fr); } }
.album-card { position: relative; display: block; }
.album-card .thumb { overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--bg-card); }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s var(--ease), opacity 0.3s; }
.album-card:hover img, .album-card:focus-visible img { scale: 1.05; opacity: 0.85; }
.album-card .meta { padding-top: 18px; }
.album-card h2 { font-size: 26px; margin-top: 4px; transition: color 0.2s var(--ease); }
.album-card .count { font-size: 13px; color: var(--fg-muted); }

/* ---------- Album (masonry preko CSS kolona) ---------- */
.gallery { columns: 1; column-gap: 40px; }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1024px) { .gallery { columns: 3; } }
.gallery a { display: block; margin-bottom: 40px; break-inside: avoid; overflow: hidden; background: var(--bg-card); }
.gallery img { width: 100%; transition: opacity 0.3s var(--ease); }
.gallery a:hover img { opacity: 0.8; }
.album-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.album-nav a { display: flex; flex-direction: column; }
.album-nav .big { font: 700 26px/1.1 var(--font-head); text-transform: uppercase; color: var(--fg-strong); }
.album-nav a:hover .big { color: var(--fg-soft); }
.album-nav .next { text-align: right; margin-left: auto; }

/* ---------- Parallax (uključuje ga site.js; isključen uz "smanji animacije") ---------- */
.has-parallax .album-card .thumb img,
.has-parallax .gallery img,
.has-parallax .bio-photo img { translate: 0 var(--py, 0px); scale: 1.12; will-change: translate; }
.has-parallax .album-card:hover img,
.has-parallax .album-card:focus-visible img { scale: 1.18; }
.has-parallax .bio-photo { overflow: hidden; }

/* Struktura: slojevi .px se pomeraju brzinom --px-speed (0 = miruje).
   Različite brzine susednih kolona daju utisak dubine. */
.has-parallax .px { translate: 0 var(--ty, 0px); }
.lead { --px-speed: 0.08; }
@media (min-width: 640px) {
  .albums .album-card:nth-child(even) { --px-speed: 0.07; }
  .lead { --px-speed: 0.15; }
}
@media (min-width: 900px) {
  .services .service:nth-child(even) { --px-speed: 0.08; }
  .page .contact-grid > .px { --px-speed: 0.06; }
  .bio-text { --px-speed: 0.04; }
}
@media (min-width: 1280px) {
  .albums .album-card:nth-child(even) { --px-speed: 0; }
  .albums .album-card:nth-child(3n+2) { --px-speed: 0.07; }
}
/* Uspravni naslov klizi kroz skrol stranice */
@media (min-width: 1024px) { .has-parallax .page-title { translate: 0 var(--ty, 0px); } }
/* Početna: video i "Kontakt" prate miš u suprotnim smerovima */
.has-parallax .home-media video { scale: 1.06; translate: calc(var(--mx, 0) * -18px) calc(var(--my, 0) * -12px); }
.has-parallax .home-contact-trigger { translate: calc(var(--mx, 0) * 8px) calc(var(--my, 0) * 6px); }

/* Lightbox (PhotoSwipe) u bojama sajta */
.pswp { --pswp-bg: #000; --pswp-placeholder-bg: #17171b; }

/* ---------- 404 ---------- */
.not-found { max-width: 640px; }
.not-found .btn { margin-top: 12px; }

/* ---------- Dugme "na vrh" ---------- */
.to-top {
  position: fixed; right: var(--gutter); bottom: 24px; z-index: 30;
  display: flex; flex-direction: column; align-items: flex-end; padding: 6px; border: 0; background: none; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
  color: var(--fg-soft); text-align: right;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top .big { font: 700 20px/1 var(--font-head); text-transform: uppercase; }
.to-top:hover { color: var(--fg-strong); }
@media (min-width: 1024px) { .to-top { right: 30px; bottom: 110px; } }
@media (max-width: 1023px) { .to-top { background: rgba(0, 0, 0, 0.7); padding: 10px 12px; } }
