/* =========================================================
   Zeo-Mont — glavni stylesheet (mobile-first)
   ========================================================= */

/* ---------- Fontovi (lokalno, bez Google servera) ----------
   Samo latin + latin-ext; preglednik po unicode-range preuzima samo podskup koji stranici treba. */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/barlow-condensed-600-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: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/barlow-condensed-600-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: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/barlow-condensed-700-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: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/barlow-condensed-700-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;
}
/* Inter je varijabilni font: jedan fajl pokriva debljine 400–600 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/inter-var-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: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/inter-var-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;
}

/* ---------- Tokeni ---------- */
:root {
  --c-graphite: #1c1f24;
  --c-graphite-2: #23272d;
  --c-steel: #3a4049;
  --c-steel-light: #8a929c;
  --c-light: #f4f5f7;
  --c-white: #ffffff;
  --c-text: #22262b;
  --c-text-muted: #5b636d;
  --c-accent: #ffa800;       /* narandžasta iz logotipa */
  --c-accent-dark: #e69500;
  --c-on-accent: #1c1f24;    /* tekst na narandžastoj podlozi (bijeli nema dovoljan kontrast) */
  --c-accent-text: #8f5a00;  /* narandžasti tekst na svijetloj pozadini (kontrast ≥ 4.5:1) */

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --radius: 4px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1); /* brz početak, dugo meko usporavanje: za ulazne animacije */
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

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

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

/* ---------- Pomoćne klase ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: currentColor;
}

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.7em 1.4em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn-primary:hover { background: var(--c-accent-dark); }

.btn-outline { border-color: currentColor; color: var(--c-white); background: transparent; }
.btn-outline:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-graphite); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  color: var(--c-white);
  transition: background-color 0.3s, box-shadow 0.3s;
  /* Samo prozirnost: transform na headeru bi pomjerio fiksirani mobilni meni */
  animation: fade-in 1s var(--ease-soft) 0.25s both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Na vrhu stranice header je providan preko hero slike; nakon skrolanja dobija pozadinu */
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--c-graphite);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

/* Logo (PNG s providnom pozadinom, omjer 3:1) */
.logo {
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-left: -6px; /* poravnava šestougao s ivicom sadržaja (PNG ima prazan rub) */
}
.logo img {
  width: 150px;
  height: auto;
}
@media (min-width: 1024px) {
  .logo img { width: 168px; }
}
@media (min-width: 1280px) {
  .logo img { width: 192px; }
}

/* Hamburger dugme (mobitel i tablet) */
.nav-toggle {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobilni meni: panel ispod headera preko cijelog ekrana */
.main-nav {
  position: fixed;
  inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--c-graphite);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s 0.3s;
}
.site-header.is-open .main-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s, transform 0.3s var(--ease);
}

.nav-list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-steel);
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--c-accent); }

.lang-switch {
  display: flex;
  gap: 4px;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--c-steel-light);
  border-radius: var(--radius);
  transition: color 0.2s, background-color 0.2s;
}
.lang-switch a:hover { color: var(--c-white); }
.lang-switch a[aria-current="true"] { color: var(--c-white); background: var(--c-steel); }

.nav-cta { align-self: flex-start; }

body.nav-locked { overflow: hidden; }

/* Desktop: horizontalni meni */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-list { display: flex; }
  .nav-list a {
    position: relative;
    padding: 8px 9px;
    border: 0;
    font-size: 1.15rem;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 2px;
    height: 2px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav-list a:hover,
  .nav-list a.is-active { color: var(--c-white); }
  .nav-list a:hover::after,
  .nav-list a.is-active::after { transform: scaleX(1); }

  .lang-switch {
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
  .lang-switch a { min-width: 36px; font-size: 0.95rem; }

  .nav-cta { align-self: auto; }
}

/* Širi ekrani: više zraka između elemenata */
@media (min-width: 1280px) {
  .main-nav { gap: 28px; }
  .nav-list { gap: 8px; }
  .nav-list a { padding-inline: 12px; }
  .nav-list a::after { left: 12px; right: 12px; }
  .lang-switch { padding-left: 20px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--c-graphite);
  color: var(--c-white);
}

/* Okvir fotografije: pri učitavanju izranja iz tamnog uz blago približavanje.
   Animacija je na okviru, a parallax (main.js) na samoj slici, da se ne sudaraju. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  animation: hero-media-in 2s var(--ease-soft) both;
}
@keyframes hero-media-in {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: none; }
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%; /* drži varnicu i aparat u kadru na uskim ekranima */
  will-change: transform;   /* parallax pri skrolu (main.js) */
}

.hero-content { will-change: transform, opacity; }

/* Tamni prelaz: na mobitelu odozdo (tekst je dolje), na većim ekranima slijeva (tekst je lijevo) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(16, 18, 22, 0.7) 0%, rgba(16, 18, 22, 0) 22%),
    linear-gradient(to bottom, rgba(16, 18, 22, 0.25) 25%, rgba(16, 18, 22, 0.85) 62%, rgba(16, 18, 22, 0.97) 100%);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 48px);
  padding-bottom: 32px;
}

/* Tekst heroja ulazi red po red, nakon što se fotografija pojavi */
.hero-content > * {
  max-width: 44rem;
  animation: hero-in 1.2s var(--ease-soft) both;
}
.hero-content > :nth-child(1) { animation-delay: 0.4s; }
.hero-content > :nth-child(2) { animation-delay: 0.55s; }
.hero-content > :nth-child(3) { animation-delay: 0.75s; }
.hero-content > :nth-child(4) { animation-delay: 0.95s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: currentColor;
}

.hero-content > .hero-title { max-width: 48rem; }
.hero-title {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.5rem);
  line-height: 1.02;
  text-wrap: balance;
}
.text-accent { color: var(--c-accent); }

.hero-lead {
  max-width: 36rem;
  margin: 0 0 32px;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-lg {
  min-height: 52px;
  padding: 0.8em 1.6em;
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.2rem);
}

.btn-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: var(--c-white);
}

/* Na malim telefonima dugmad zauzimaju cijelu širinu */
@media (max-width: 479px) {
  .hero-actions .btn {
    width: 100%;
    padding-inline: 1em;
    white-space: normal;
  }
}

/* Traka s prednostima na dnu heroja */
.hero-facts {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 18, 22, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.facts-list {
  display: grid;
  padding-bottom: env(safe-area-inset-bottom);
}

.fact {
  animation: hero-in 1.1s var(--ease-soft) both;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--c-accent);
  margin: 12px 0;
}
.fact strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fact span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}
/* Stavke trake se pojave nakon teksta heroja, jedna za drugom */
.fact:nth-child(1) { animation-delay: 1.15s; }
.fact:nth-child(2) { animation-delay: 1.3s; }
.fact:nth-child(3) { animation-delay: 1.45s; }

@media (min-width: 768px) {
  .hero::before {
    background:
      linear-gradient(to bottom, rgba(16, 18, 22, 0.7) 0%, rgba(16, 18, 22, 0) 25%),
      linear-gradient(to right, rgba(16, 18, 22, 0.94) 0%, rgba(16, 18, 22, 0.78) 38%, rgba(16, 18, 22, 0.2) 72%, rgba(16, 18, 22, 0) 100%);
  }

  .hero-media img { object-position: 50% 50%; }

  .hero-content {
    justify-content: center;
    padding-bottom: 64px;
  }

  .facts-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .fact {
    margin: 22px 0;
    padding-block: 4px;
  }
  .fact strong { font-size: 1.6rem; }
}

/* =========================================================
   ZAJEDNIČKO ZA SEKCIJE
   ========================================================= */
.section {
  padding-block: clamp(64px, 9vw, 128px);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent-text);
}
.section-eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--c-accent);
}

.section-title {
  margin-bottom: 24px;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.875rem);
  color: var(--c-graphite);
  text-wrap: balance;
}

/* Zaglavlje sekcije: naslov lijevo, kratak uvod desno (na računaru) */
.section-head {
  display: grid;
  gap: 8px 48px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head .section-title { margin-bottom: 0; }
.section-intro {
  max-width: 34rem;
  margin: 0;
  font-size: 1.05rem;
  color: var(--c-text-muted);
}
@media (min-width: 1024px) {
  .section-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .section-intro { justify-self: end; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-graphite);
  border-bottom: 2px solid var(--c-accent);
}
.link-arrow .icon { transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Animacije pri skrolu ----------
   Klasu .js dodaje main.js, a .is-visible IntersectionObserver kad element uđe u ekran.
   Bez JS-a sadržaj je odmah vidljiv; kod "smanji animacije" prelazi traju 0.01ms. */

/* Jedan element: lagano izranja odozdo */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-soft), transform 1s var(--ease-soft);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Grupa: djeca izranjaju jedno za drugim */
.js .reveal-group > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-soft), transform 0.9s var(--ease-soft);
}
.js .reveal-group.is-visible > * {
  opacity: 1;
  transform: none;
}
.js .reveal-group > :nth-child(2) { transition-delay: 0.1s; }
.js .reveal-group > :nth-child(3) { transition-delay: 0.2s; }
.js .reveal-group > :nth-child(4) { transition-delay: 0.3s; }
.js .reveal-group > :nth-child(5) { transition-delay: 0.4s; }
.js .reveal-group > :nth-child(6) { transition-delay: 0.5s; }

/* Linija ispred nadnaslova se "iscrta" slijeva */
.js .reveal-group .section-eyebrow::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease) 0.2s;
}
.js .reveal-group.is-visible .section-eyebrow::before { transform: scaleX(1); }

/* Slika: otkriva se slijeva nadesno, okvir zatim izlazi iza nje */
.js .reveal-wipe img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s var(--ease-soft);
}
.js .reveal-wipe.is-visible img { clip-path: inset(0 0 0 0); }
.js .reveal-wipe::before {
  opacity: 0;
  transform: translate(-20px, -20px);
  transition: opacity 0.6s var(--ease) 0.6s, transform 0.8s var(--ease) 0.6s;
}
.js .reveal-wipe.is-visible::before {
  opacity: 1;
  transform: none;
}

/* =========================================================
   O NAMA
   ========================================================= */
.about-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.about-media {
  position: relative;
  isolation: isolate;
  margin: 0 12px 12px 0;
}
/* Narandžasti okvir pomaknut iza slike */
.about-media::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  z-index: -1;
  border: 2px solid var(--c-accent);
  border-radius: var(--radius);
}
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text > p:not(.section-eyebrow) {
  margin: 0 0 16px;
  color: var(--c-text-muted);
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 14px 24px;
  margin: 24px 0 28px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}
.check-list .icon {
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 50%;
  background: var(--c-accent);
  fill: var(--c-on-accent);
}

@media (min-width: 560px) {
  .check-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 5vw, 80px);
  }
  /* Viši format slike na računaru, da je u ravni s tekstom */
  .about-media img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .about-media { margin: 0 20px 20px 0; }
  .about-media::before { inset: 20px -20px -20px 20px; }
}

@media (min-width: 1280px) {
  .about-grid { grid-template-columns: 1.15fr 1fr; }
}

/* =========================================================
   TAMNA SEKCIJA (zajedničko)
   ========================================================= */
.section-dark {
  background: var(--c-graphite);
  color: rgba(255, 255, 255, 0.78);
}
.section-dark .section-title { color: var(--c-white); }
.section-dark .section-eyebrow { color: var(--c-accent); }
.section-dark .section-intro { color: inherit; }

/* =========================================================
   USLUGE
   ========================================================= */
.services {
  position: relative;
  overflow: hidden;
}
/* Diskretna mreža u pozadini, kao tehnički crtež */
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  pointer-events: none;
}
.services > .container { position: relative; }


.services-grid {
  display: grid;
  gap: 16px;
}

.service-card {
  position: relative;
  height: 100%;
  padding: 32px 28px 30px;
  background: var(--c-graphite-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
/* Narandžasta linija na vrhu kartice koja se razvuče na hover */
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  background: var(--c-accent);
  border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 168, 0, 0.35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.18);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 168, 0, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 168, 0, 0.06);
  color: var(--c-accent);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.service-icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card:hover .service-icon {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-on-accent);
}

.service-title {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: var(--c-white);
}
.service-card p {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.66);
}

.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(36px, 5vw, 56px);
  padding: 28px clamp(20px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
  background: var(--c-graphite-2);
}
.services-cta p {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--c-white);
}

@media (max-width: 479px) {
  .services-cta .btn { width: 100%; }
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  /* Kartice u istom redu se pojavljuju jedna za drugom */
  .services-grid > :nth-child(2n).reveal { transition-delay: 0.1s; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .services-grid > :nth-child(2n).reveal { transition-delay: 0s; }
  .services-grid > :nth-child(3n+2).reveal { transition-delay: 0.1s; }
  .services-grid > :nth-child(3n).reveal { transition-delay: 0.2s; }
}

/* =========================================================
   PROJEKTI
   ========================================================= */
.projects-grid {
  display: grid;
  gap: 16px;
}

.project-link {
  position: relative;
  display: block;
  height: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-graphite);
  color: var(--c-white);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.project-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
/* Tamni prelaz odozdo, da je tekst čitljiv preko fotografije */
.project-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 18, 22, 0.9) 0%, rgba(16, 18, 22, 0.35) 40%, rgba(16, 18, 22, 0) 65%);
  transition: background-color 0.4s;
}
.project-link:hover img { transform: scale(1.06); }
.project-link:hover::after { background-color: rgba(16, 18, 22, 0.15); }

.project-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 20px 22px;
}
.project-cat {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.project-title {
  margin: 0;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.55rem);
  color: var(--c-white);
  text-wrap: balance;
}

/* Lupa u uglu: na hover se pojavi, na ekranima na dodir je uvijek vidljiva */
.project-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-on-accent);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.project-zoom .icon { width: 22px; height: 22px; }
.project-link:hover .project-zoom,
.project-link:focus-visible .project-zoom {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .project-zoom { opacity: 0.9; transform: none; }
}

@media (min-width: 640px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .projects-grid > :nth-child(2n).reveal { transition-delay: 0.1s; }
}

/* Računar: mozaik — visoka fotografija lijevo, dvije gore desno, jedna široka ispod */
@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-rows: repeat(2, clamp(240px, 22vw, 330px));
    gap: 24px;
  }
  .projects-grid > :nth-child(1) { grid-row: span 2; }
  .projects-grid > :nth-child(4) { grid-column: span 2; }
  .project-link { aspect-ratio: auto; }
  .projects-grid > :nth-child(1) img { object-position: 60% 50%; }

  .projects-grid > :nth-child(2).reveal { transition-delay: 0.1s; }
  .projects-grid > :nth-child(3).reveal { transition-delay: 0.2s; }
  .projects-grid > :nth-child(4).reveal { transition-delay: 0.15s; }
}

/* ---------- Lightbox (uvećana fotografija) ---------- */
body.lightbox-open { overflow: hidden; }

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 72px 16px;
  border: 0;
  background: transparent;
  color: var(--c-white);
}
.lightbox::backdrop {
  background: rgba(10, 11, 13, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox[open] {
  display: grid;
  place-items: center;
  animation: lightbox-in 0.3s var(--ease);
}
@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(100%, 1100px);
  margin: 0;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 200px);
  max-height: calc(100svh - 200px);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-img.is-changing { animation: lightbox-in 0.35s var(--ease); }

.lightbox-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.lightbox-cat {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.lightbox-title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
}

.lightbox-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.lightbox-btn:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-on-accent);
}
.lightbox-btn .icon { width: 24px; height: 24px; }
.lightbox-close {
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}
/* Na mobitelu su strelice dolje (palac), na većim ekranima sa strane */
.lightbox-prev,
.lightbox-next { bottom: max(16px, env(safe-area-inset-bottom)); }
.lightbox-prev { left: calc(50% - 60px); }
.lightbox-next { right: calc(50% - 60px); }

@media (min-width: 768px) {
  .lightbox { padding: 72px 96px; }
  .lightbox-prev,
  .lightbox-next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
  .lightbox-img {
    max-height: calc(100vh - 160px);
    max-height: calc(100svh - 160px);
  }
}

/* =========================================================
   NAŠE PREDNOSTI
   ========================================================= */
.advantages {
  position: relative;
  background: linear-gradient(160deg, var(--c-graphite) 0%, var(--c-graphite-2) 100%);
}
/* Tanka narandžasta linija na vrhu sekcije, kao šav zavara */
.advantages::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-accent) 20%, var(--c-accent) 80%, transparent);
  opacity: 0.8;
}

.adv-grid {
  display: grid;
  gap: 28px;
}

/* Mobitel: ikonica lijevo, tekst desno */
.adv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  align-content: start; /* kolone su iste visine; bez ovoga se višak dijeli na redove i naslovi ne stoje u ravni */
}

/* Šestougao kao na logotipu: narandžasti obrub + tamna unutrašnjost */
.adv-icon {
  --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 73px; /* omjer pravilnog šestougla (√3 : 2) */
  color: var(--c-accent);
  transition: color 0.35s, transform 1.2s var(--ease-soft);
}
.adv-icon::before,
.adv-icon::after {
  content: "";
  position: absolute;
  clip-path: var(--hex);
  transition: background-color 0.35s;
}
.adv-icon::before { inset: 0; background: var(--c-accent); }
.adv-icon::after { inset: 2px 2.5px; background: var(--c-graphite-2); }
.adv-icon svg {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adv:hover .adv-icon { color: var(--c-on-accent); }
.adv:hover .adv-icon::after { background: var(--c-accent); }

/* Pri pojavljivanju se šestougao "zavrne" na mjesto (60° = isti oblik) */
.js .adv.reveal .adv-icon { transform: rotate(-60deg) scale(0.7); }
.js .adv.reveal.is-visible .adv-icon { transform: none; }

.adv-title {
  margin-bottom: 8px;
  font-size: 1.4rem;
  color: var(--c-white);
}
.adv-body p {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.66);
}

@media (min-width: 640px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .adv { grid-template-columns: 1fr; gap: 22px; }
  .adv-grid > :nth-child(2n).reveal { transition-delay: 0.1s; }
}

/* Računar: 4 kolone s tankim razdjelnicima */
@media (min-width: 1024px) {
  .adv-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .adv {
    padding: 8px 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }
  .adv:first-child { padding-left: 0; border-left: 0; }
  .adv:last-child { padding-right: 0; }
  .adv-grid > :nth-child(2n).reveal { transition-delay: 0s; }
  .adv-grid > :nth-child(2).reveal { transition-delay: 0.1s; }
  .adv-grid > :nth-child(3).reveal { transition-delay: 0.2s; }
  .adv-grid > :nth-child(4).reveal { transition-delay: 0.3s; }
}

/* =========================================================
   KONTAKT
   ========================================================= */
.contact-grid {
  display: grid;
  gap: 24px;
}

.contact-card-title {
  margin-bottom: 24px;
  font-size: 1.6rem;
}

/* Lijevo: tamna kartica s podacima */
.contact-info {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--c-graphite);
  color: rgba(255, 255, 255, 0.78);
}
.contact-info .contact-card-title { color: var(--c-white); }
/* Veliki šestougao u uglu, kao na logotipu */
.contact-info::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -60px;
  width: 260px;
  height: 225px;
  background: rgba(255, 168, 0, 0.06);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  pointer-events: none;
}

.contact-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 168, 0, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 168, 0, 0.1);
  color: var(--c-accent);
}
.contact-label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.contact-item a,
.contact-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.6;
  color: var(--c-white);
  text-decoration: none;
}
.contact-item a { padding-block: 2px; transition: color 0.2s; }
.contact-item a:hover { color: var(--c-accent); }
.contact-item a.contact-sub {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Desno: forma */
.contact-form {
  padding: clamp(24px, 4vw, 40px);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--radius);
  background: var(--c-white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
.contact-form .contact-card-title { color: var(--c-graphite); }

.form-grid {
  display: grid;
  gap: 18px;
}
.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-graphite);
}
.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d3d7dc;
  border-radius: var(--radius);
  background: var(--c-light);
  font: inherit;
  font-size: 1rem; /* 16px: iOS ne zumira polje pri dodiru */
  color: var(--c-text);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: var(--c-white);
  box-shadow: 0 0 0 3px rgba(255, 168, 0, 0.25);
}
/* Crveni obrub tek kad korisnik pogrešno popuni polje, ne odmah pri učitavanju */
.form-field input:user-invalid,
.form-field textarea:user-invalid { border-color: #c0392b; }

/* Polje-zamka za botove: van ekrana, nevidljivo za ljude */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
  margin-top: 24px;
}
.form-submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.form-status {
  margin: 16px 0 0;
  font-weight: 500;
}
.form-status:empty { display: none; }
.form-status.is-success,
.form-status.is-error {
  padding: 12px 16px;
  border-left: 3px solid;
  border-radius: var(--radius);
}
.form-status.is-success { background: #e8f6ee; border-color: #2e7d4f; color: #1e6b3d; }
.form-status.is-error { background: #fdecea; border-color: #c0392b; color: #a12a1f; }

.form-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.form-note a { color: var(--c-accent-text); text-underline-offset: 3px; }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field-full { grid-column: 1 / -1; }
  .form-submit { width: auto; }
}

@media (min-width: 1024px) {
  /* Kartica s podacima i forma iste visine; polje "Poruka" popunjava višak prostora */
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: 32px;
    align-items: stretch;
  }
  .contact-form {
    display: flex;
    flex-direction: column;
  }
  .contact-form .form-grid {
    flex: 1;
    grid-template-rows: auto auto 1fr;
  }
  .contact-form .form-field:last-child {
    display: flex;
    flex-direction: column;
  }
  .contact-form .form-field:last-child textarea { flex: 1; }
  .contact-form .form-submit { align-self: flex-start; } /* bez ovoga bi se dugme u flex koloni razvuklo */
  .contact-form.reveal { transition-delay: 0.12s; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  background: #15171b;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
}
/* Narandžasta linija na vrhu, kao kod sekcije prednosti */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-accent) 20%, var(--c-accent) 80%, transparent);
  opacity: 0.8;
}

/* Mobitel i tablet: logo preko cijele širine, navigacija i usluge jedna pored druge */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
  padding-block: clamp(56px, 7vw, 88px) 48px;
}
.footer-brand { grid-column: 1 / -1; }

.footer-logo { display: inline-block; margin-left: -6px; }
.footer-logo img { width: 200px; height: auto; }
.footer-brand p {
  max-width: 22rem;
  margin: 16px 0 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: var(--c-white);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.footer-social a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-on-accent);
}

.footer-title {
  margin-bottom: 18px;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--c-white);
}

.footer-links {
  display: grid;
  gap: 4px;
}
.footer-links a {
  display: inline-block;
  padding-block: 5px;
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--c-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px calc(20px + env(safe-area-inset-bottom));
}
.footer-copy {
  margin: 0;
  font-size: 0.88rem;
}

/* Jezici u footeru koriste stilove iz headera, bez razdjelnika */
.site-footer .footer-lang {
  padding-left: 0;
  border-left: 0;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-top .icon { transition: transform 0.25s var(--ease); }
.footer-top:hover { color: var(--c-accent); }
.footer-top:hover .icon { transform: translateY(-3px); }

@media (min-width: 640px) {
  .footer-grid { gap: 48px 32px; }
}

/* Računar: logo lijevo, navigacija i usluge desno */
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: auto; }
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.66);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.footer-copy a:hover { color: var(--c-accent); }
.footer-sep { margin-inline: 8px; opacity: 0.4; }

/* =========================================================
   PLUTAJUĆE WHATSAPP DUGME
   ========================================================= */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90; /* ispod headera i mobilnog menija */
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--c-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft), visibility 0s 0.5s;
}
.wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft), visibility 0s;
}
.wa-float.is-visible:hover { transform: scale(1.07); }
.wa-float .icon { width: 30px; height: 30px; }

/* Blagi "puls" oko dugmeta, da privuče pažnju */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 3s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.45; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}

@media (min-width: 1024px) {
  .wa-float {
    right: max(28px, env(safe-area-inset-right));
    bottom: max(28px, env(safe-area-inset-bottom));
  }
}

/* =========================================================
   POLITIKA PRIVATNOSTI (jednostavna stranica bez heroja)
   ========================================================= */
.page-simple .site-header { background: var(--c-graphite); }

.legal {
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(56px, 8vw, 96px);
}
.legal-inner { max-width: 820px; }
.legal-title {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem);
  color: var(--c-graphite);
}
.legal-updated {
  margin: 0 0 32px;
  font-size: 0.92rem;
  color: var(--c-text-muted);
}
.legal h2 {
  margin: 36px 0 10px;
  font-size: 1.45rem;
  color: var(--c-graphite);
}
.legal p { margin: 0 0 12px; color: var(--c-text-muted); }
.legal p a { color: var(--c-accent-text); text-underline-offset: 3px; }
.legal .link-arrow { margin-top: 32px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .skip-link, .wa-float, .lightbox, .contact-form { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =========================================================
   UVODNA ANIMACIJA (intro.js)
   Bez JS-a klase se ne postave, pa je sloj skriven i sajt se odmah prikazuje.
   ========================================================= */
.intro { display: none; }

html.intro-active .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1000; /* iznad headera i svega ostalog */
}
/* Klik preskače animaciju dok su ploče zatvorene; kad se otvore, sajt je već upotrebljiv */
html.intro-active .intro.is-open { pointer-events: none; }

.intro-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Dvije polovine čelične ploče; razmiču se CSS-om, nezavisno od crtanja na canvasu.
   Trajanje 0.9s je isto kao OPEN_END - CUT_END u intro.js */
.intro-plate {
  position: absolute;
  left: 0;
  right: 0;
  will-change: transform;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.intro-plate-top { top: 0; }
.intro-plate-bottom { bottom: 0; }

.intro-plate canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Užarena ivica reza: gasi se dok se ploče razmiču */
.intro-plate::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffcf94;
  box-shadow: 0 0 14px 2px rgba(255, 140, 50, 0.55);
  opacity: 0;
}
.intro-plate-top::after { bottom: 0; }
.intro-plate-bottom::after { top: 0; }

/* Sjena ploče na sajtu ispod */
.intro-plate::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.intro-plate-top::before {
  top: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.intro-plate-bottom::before {
  bottom: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.intro.is-open .intro-plate-top { transform: translateY(calc(-100% - 70px)); }
.intro.is-open .intro-plate-bottom { transform: translateY(calc(100% + 70px)); }
.intro.is-open .intro-plate::before { opacity: 1; }
.intro.is-open .intro-plate::after { animation: intro-edge-cool 0.9s ease-out both; }

@keyframes intro-edge-cool {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Tamno odmah od prvog iscrtavanja, prije nego što JS nacrta ploče */
html.intro-hold { background: #0b0c0e; }
html.intro-hold .intro { background: #0b0c0e; }

/* Ulazne animacije sajta čekaju kraj faze logotipa, inače bi završile iza ploča */
html.intro-hold .site-header,
html.intro-hold .hero-media,
html.intro-hold .hero-content > *,
html.intro-hold .fact { animation-play-state: paused; }
