/* ==========================================================================
   NEVIS v3 - temelj sistema dizajna (svijetla editorijalna tema)
   Boje, tipografija, dugmad, mreža sekcija, header, footer, forma, kolačići.
   Ostali fajlovi u assets/css/v3/ koriste SAMO ove tokene i klase.
   ========================================================================== */

:root {
  /* boje */
  --paper: #F3F3EF;        /* podloga */
  --paper-2: #EAEAE4;      /* blago tamnija podloga (trake, hover) */
  --white: #FFFFFF;        /* kartice, forme */
  --ink: #0C0C0D;          /* tekst, tamni blokovi */
  --ink-2: #4A4C52;        /* sekundarni tekst (8:1 na paper) */
  --muted: #6B6D73;        /* oznake, sitni tekst (4.9:1) */
  --line: #D8D8D2;         /* tanke linije */
  --line-strong: #0C0C0D;  /* naglašena linija na vrhu liste/tabele */
  --field: #8C8E94;        /* rub inputa (3:1 kontrast za kontrole) */
  --accent: #1E3DFF;       /* kobalt: samo akcije i bitne brojke */
  --accent-hover: #1531D6;
  --accent-soft: #DCE2FF;  /* tekst na kobalt pozadini */
  --night: #0C0C0D;        /* tamne sekcije */
  --night-2: #17181B;
  --night-line: #2A2B2F;
  --night-muted: #A9ABB0;
  --accent-on-dark: #8FA0FF;
  --accent-2: #FF6A3D;     /* signal narandžasta: samo sitni statusi i oznake (nikad dugme/CTA) */
  --accent-2-soft: #FFE3D6; /* ton najviše jedne bento kartice po sekciji */
  --accent-2-ink: #2B0E04;  /* tekst na --accent-2 (6.3:1); nikad bijeli tekst na narandžastoj */
  --accent-2-ink-soft: #7A2A0C; /* tekst na --accent-2-soft (7.9:1) */

  /* tipografija */
  --f-display: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  /* širine (uključuju gutter) */
  --wrap: 1440px;          /* standard: sadržaj 1360 na desktopu (header, footer, sekcije) */
  --wrap-wide: var(--wrap); /* isto kao standard: mreže radova i cover poravnati s headerom */
  --wrap-narrow: 800px;    /* legal, članak, 404: sadržaj 720 = ~68ch */
  --gut: clamp(20px, 4vw, 40px);

  /* vertikalni ritam (baza 8px) */
  --sec-y: clamp(64px, 7.5vw, 112px);
  --sec-y-sm: clamp(40px, 5vw, 64px);
  --hero-top: clamp(32px, 4vw, 56px);
  --hero-bot: clamp(40px, 5vw, 72px);
  --head-gap: clamp(32px, 4vw, 48px);
  --card-gap: 24px;

  /* kolone */
  --idx-col: clamp(160px, 14vw, 200px);
  --col-gap: clamp(24px, 3.5vw, 48px);
  --aside: clamp(340px, 32vw, 440px);

  /* mjere teksta (uvijek ch) */
  --m-h1: 16ch;
  --m-h2: 20ch;
  --m-lead: 56ch;
  --m-body: 66ch;
  --m-prose: 68ch;

  /* oblici */
  --r-card: 18px;
  --r-cover: 24px;
  --mbar-h: 56px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow: 0 30px 60px -36px rgba(12, 12, 13, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* kompatibilnost sa starim varijablama koje koriste mockupi i stari dijelovi */
  --ink-secondary: var(--ink-2);
  --ink-muted: var(--muted);
  --border: var(--line);
  --surface: var(--paper);
  --surface-alt: var(--white);
  --font-display: var(--f-display);
  --font-body: var(--f-body);
  --font-mono: var(--f-mono);
  --font-heading: var(--f-display);
}

/* ---------- reset i osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; } /* clip umjesto hidden: ne kvari position: sticky */
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
/* Kobalt / tamne podloge: hover linka ne smije u kobalt (nestaje). Niska specifičnost (:where), pa posebna pravila i dalje važe; bijele kartice/forme unutar traka izuzete. */
:where(.sec--accent, .lead-section, .work-cta, .hb--seo, .hb--cobalt) a:where(:not(.btn, .lead-form *, .hb__chips *)):hover { color: var(--white); text-decoration: underline; }
:where(.sec--dark, .hb--shop, .hb--ink) a:where(:not(.btn, .lead-form *, .hb__chips *)):hover { color: var(--accent-on-dark); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: fixed !important; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--ink); color: var(--white); border-radius: var(--r-pill); font-weight: 600; text-decoration: none; }
.sec--accent :focus-visible, .lead-section :focus-visible { outline-color: var(--white); }
.sec--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-on-dark); }

/* ---------- raspored ---------- */
.wrap, .container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--wide { max-width: var(--wrap-wide); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.sec { padding-block: var(--sec-y); border-bottom: 1px solid var(--line); }
.sec--sm { padding-block: var(--sec-y-sm); }
.sec--flush-top { padding-top: 0; }
.sec--flush { border-bottom: 0; }
.hero { padding-top: var(--hero-top); padding-bottom: var(--hero-bot); }

.grid-aside { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside); gap: var(--col-gap); align-items: start; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--card-gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); }
.measure { max-width: var(--m-body); }
.prose { max-width: var(--m-prose); }
.bleed { margin-inline: calc(50% - 50vw); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-aside { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.sec--dark { background: var(--night); color: var(--paper); border-bottom: 0; }
.sec--accent { background: var(--accent); color: var(--white); border-bottom: 0; }
.sec--white { background: var(--white); }

/* zaglavlje sekcije (varijanta A, split): lijevo eyebrow + H2, desno kratak uvod + link; sadržaj ispod ide punom širinom.
   Markup: nevis_sec_head() u inc/service-content.php. */
.sec-head { margin-bottom: var(--head-gap); }
.sec-head h2 { max-width: var(--m-h2); }
.sec-head__main > .eyebrow + h2 { margin-top: 16px; }
.sec-head--split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px var(--col-gap); align-items: end; }
.sec-head--wide-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sec-head__aside { max-width: 48ch; }
.sec-head--wide-aside .sec-head__aside { max-width: 56ch; }
/* samo link desno: H2 dobija skoro cijeli red, link je uz desnu ivicu */
.sec-head--link { grid-template-columns: minmax(0, 1fr) auto; }
.sec-head--link .sec-head__aside { max-width: none; }
.sec-head--link .sec-head__link { margin-top: 0; }
.sec-head__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.sec-head__lead + .sec-head__lead { margin-top: 12px; }
.sec-head__lead--strong { color: var(--ink); }
.sec-head__lead a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sec-head__lead a:hover { color: var(--accent); }
.sec-head__lead a[href^="tel"] { white-space: nowrap; }
.sec-head__link { min-height: 44px; margin-top: 8px; }
.sec-head__lead + .sec-head__link { margin-top: 12px; }
.sec--dark .sec-head__lead { color: var(--night-muted); }
.sec--dark .sec-head__lead--strong, .sec--dark .sec-head__lead a { color: var(--paper); }
.sec--accent .sec-head__lead { color: var(--accent-soft); }
.sec--accent .sec-head__lead a { color: var(--white); }
/* razmak do sadržaja nosi zaglavlje (ne i sadržaj ispod) */
.wrap .sec-head + * { margin-top: 0; }
/* stari omotač .sec-grid (indeks kolona uklonjena): samo jedna kolona */
.sec-grid { display: block; }
@media (max-width: 900px) {
  .sec-head--split { display: block; }
  .sec-head__aside { margin-top: 16px; max-width: var(--m-lead); }
  .sec-head__lead { font-size: 16px; }
}

/* ---------- tipografija ---------- */
.d-hero { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 7vw, 92px); letter-spacing: -.045em; line-height: .96; }
.d-1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(42px, 6vw, 84px); letter-spacing: -.045em; line-height: .98; }
.d-2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -.04em; line-height: 1; }
.d-3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.d-4 { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.6; max-width: var(--m-lead); }
.sec--dark .lead { color: var(--night-muted); }
.sec--accent .lead { color: var(--accent-soft); }
.muted { color: var(--ink-2); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.sec--dark .eyebrow { color: var(--night-muted); }
.sec--accent .eyebrow { color: var(--accent-soft); }
.sec--accent .eyebrow::before { background: var(--white); }
.accent { color: var(--accent); }
.num { font-family: var(--f-display); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.breadcrumb { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  font-family: var(--f-body); font-weight: 600; font-size: 16px; line-height: 1.1;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #26272B; color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.btn--outline-light:hover { border-color: var(--white); color: var(--white); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 0 30px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.sec--dark .link-arrow { color: var(--paper); }

/* stari nazivi dugmadi koje koriste postojeći dijelovi (mapirano na novi stil) */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); background: var(--accent); color: var(--white); font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: background .2s; }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; text-decoration: none; background: transparent; transition: background .2s, color .2s; }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-primary svg, .btn-secondary svg { width: 17px; height: 17px; }

/* ---------- liste i tabele sa linijama ---------- */
.rule-list { list-style: none; border-top: 1px solid var(--line-strong); }
.rule-list > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rule-list > li > .mono { color: var(--muted); }
.sec--dark .rule-list { border-top-color: var(--night-line); }
.sec--dark .rule-list > li { border-bottom-color: var(--night-line); }
.cells { display: grid; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.cells > * { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.facts > * { padding: 20px 20px 0 0; }
.facts > * + * { padding-left: 20px; border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.facts span { display: block; color: var(--ink-2); font-size: 15px; }
@media (max-width: 600px) {
  .facts b { font-size: 17px; }
  .facts span { font-size: 13px; }
  .facts > * { padding-right: 8px; }
  .facts > * + * { padding-left: 8px; }
}

/* ---------- motion (10/2026) ----------
   Skrivena početna stanja samo pod html.nv-motion (dodaje ga inline skripta u <head>, functions.php):
   bez JS-a ili uz reduced-motion sve je odmah vidljivo. Animira se samo opacity/transform (bez CLS).
   .reveal: main.js dodaje .revealed (IntersectionObserver, jednom); liste/mreže dobiju .reveal--stagger
   pa se pojavljuju djeca, jedno za drugim (--rd = kašnjenje). */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }
.nv-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease-out); }
.nv-motion .reveal.revealed, .nv-motion .reveal.visible { opacity: 1; transform: none; }
.nv-motion .reveal.reveal--stagger { opacity: 1; transform: none; transition: none; }
.nv-motion .reveal--stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease) var(--rd, 0ms), transform .7s var(--ease-out) var(--rd, 0ms); }
.nv-motion .reveal--stagger.revealed > * { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .nv-motion .reveal { transform: translateY(12px); transition-duration: .5s; }
  .nv-motion .reveal--stagger > * { transform: translateY(10px); transition-duration: .45s, .5s; }
}

/* mikro-interakcije: strelica u dugmetu, podvlaka linka raste, polja forme */
.btn svg { transition: transform .25s var(--ease-out); }
.btn:hover svg, .btn:focus-visible svg { transform: translateX(3px); }
.link-arrow { background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(50% + .78em) / 0 1.5px; transition: background-size .35s var(--ease-out); }
.link-arrow:hover, .link-arrow:focus-visible { background-size: 100% 1.5px; }
.lead-field input, .lead-field textarea { transition: border-color .2s, background-color .2s, box-shadow .25s var(--ease-out); }
.lead-field span { transition: color .2s; }
.lead-field:focus-within span { color: var(--accent); }

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

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(243, 243, 239, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 10px 30px -24px rgba(12, 12, 13, .4); }
.site-header nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.site-logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-logo img { width: 136px; height: auto; }
@media (max-width: 600px) { .site-logo img { width: 120px; } }
.site-logo .logo-light { display: none; }
.nav-center { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; }
.nav-center > a, .nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; color: var(--ink); }
.nav-center > a:hover, .nav-dropdown-toggle:hover { color: var(--accent); }
.nav-dropdown-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-dropdown { position: relative; }
.nav-dropdown:hover .nav-dropdown-toggle svg, .nav-dropdown:focus-within .nav-dropdown-toggle svg { transform: rotate(180deg); }
.mega-menu { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); width: min(960px, calc(100vw - 48px)); padding-top: 14px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.nav-dropdown:hover .mega-menu, .nav-dropdown:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-menu-inner { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; }
.mega-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.mega-menu-item { min-width: 0; }
.mega-menu-service { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mega-menu-service:hover { color: var(--accent); }
.mega-menu-icon { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; background: var(--paper); align-items: center; justify-content: center; color: var(--ink); }
.mega-menu-icon svg { width: 16px; height: 16px; }
.mega-menu-subs { list-style: none; margin-top: 10px; display: grid; gap: 4px; }
.mega-menu-subs a { display: block; padding: 4px 0; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.mega-menu-subs a:hover { color: var(--accent); }
.mega-menu-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.mega-menu-footer a { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mega-menu-footer a:hover { color: var(--accent); }
.mega-menu-footer svg { width: 14px; height: 14px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.btn-header-cta { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: var(--r-pill); background: var(--accent); color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s; }
.btn-header-cta:hover { background: var(--accent-hover); color: var(--white); }
.mobile-menu-btn { display: none; width: 46px; height: 46px; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); flex-direction: column; gap: 5px; }
.mobile-menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 1100px) {
  .site-header nav { gap: 10px; }
  .nav-center { display: none; }
  .nav-right { margin-left: auto; } /* CTA uz burger desno, ne "pluta" na sredini */
  .mobile-menu-btn { display: inline-flex; }
  .btn-header-cta { min-height: 44px; padding: 0 16px; font-size: 14px; }
}
@media (max-width: 380px) { .site-header nav { gap: 10px; } .site-logo img { width: 106px; } }

/* mobilni meni (drawer) */
.drawer-backdrop { position: fixed; inset: 0; z-index: 140; background: rgba(12, 12, 13, .45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.drawer-backdrop.active { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(420px, 100vw); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; overflow-y: auto; }
.drawer.active { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.drawer-logo img { width: 116px; height: auto; }
.drawer-close { width: 46px; height: 46px; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.drawer-close svg { width: 18px; height: 18px; }
.drawer-nav { padding: 12px 20px; display: flex; flex-direction: column; }
.drawer-nav > a, .drawer-nav-link { display: flex; align-items: center; min-height: 60px; font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: -.03em; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer-nav-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-nav-row .drawer-nav-link { border-bottom: 0; flex: 1; }
.drawer-nav-arrow { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r-pill); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.drawer-nav-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.drawer-nav-group.active .drawer-nav-arrow svg { transform: rotate(180deg); }
.drawer-nav-submenu { display: none; padding: 8px 0 16px; border-bottom: 1px solid var(--line); }
.drawer-nav-group.active .drawer-nav-submenu, .drawer-nav-submenu.active { display: block; }
.drawer-nav-submenu a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: 16px; }
.drawer-footer { margin-top: auto; padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: var(--r-pill); background: var(--accent); color: var(--white); font-weight: 600; text-decoration: none; }
.drawer-cta svg { width: 16px; height: 16px; }
.drawer-contact { display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); }
.drawer-contact a { color: var(--ink); text-decoration: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--night); color: var(--night-muted); padding: 88px 0 40px; }
.site-footer a { color: var(--night-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-mark { display: block; width: clamp(200px, 52%, 640px); max-width: 100%; opacity: .96; }
.footer-mark img { width: 100%; height: auto; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 64px; }
.footer-cta-text { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.035em; line-height: 1.05; color: var(--white); max-width: 16ch; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--night-line); font-size: 15px; }
.footer-heading { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: #8A8C92; margin: 0 0 14px; }
.footer-links { list-style: none; display: grid; gap: 6px; }
.footer-links a, .footer-contact a { display: inline-block; padding: 2px 0; }
.footer-contact { list-style: none; display: grid; gap: 6px; }
.footer-strong { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 13px; color: #8A8C92; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--night-line); display: inline-flex; align-items: center; justify-content: center; }
.footer-social svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer--no-cta { padding-top: 64px; }

/* ==========================================================================
   KRATKA FORMA (inc/lead-form.php) - svijetla verzija
   ========================================================================== */
.lead-form { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.lead-form-title { font-family: var(--f-display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.lead-form-sub { color: var(--ink-2); font-size: 15px; margin: 6px 0 18px; }
.lead-form-form { display: grid; gap: 14px; position: relative; }
.lead-field { display: grid; gap: 6px; }
.lead-field span { font-weight: 600; font-size: 14px; color: var(--ink); font-family: var(--f-body); text-transform: none; letter-spacing: 0; }
.lead-field em { font-style: normal; font-weight: 400; color: var(--muted); }
.lead-field input, .lead-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--field); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.4; transition: border-color .2s, background .2s;
}
.lead-field input:hover, .lead-field textarea:hover { border-color: var(--muted); }
.lead-field input:focus, .lead-field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(30, 61, 255, .15); }
.lead-field input::placeholder, .lead-field textarea::placeholder { color: var(--muted); }
.lead-field textarea { min-height: 76px; resize: vertical; }
.lead-hint { display: block; margin-top: -6px; font-size: 13px; color: var(--muted); }
.lead-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .lead-pair { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.lead-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--white); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; transition: background .2s; }
.lead-submit:hover { background: var(--accent-hover); }
.lead-submit:disabled { opacity: .6; cursor: wait; }
.lead-submit svg { width: 16px; height: 16px; }
.lead-note { text-align: center; font-size: 13px; color: var(--muted); }
.lead-form-error { color: #B42318; font-size: 15px; margin: 0; }
.lead-form-success { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.lead-form-success p { color: var(--ink-2); margin-top: 6px; }
.lead-alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.lead-alt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .2s; }
.lead-alt-btn:hover { border-color: var(--ink); color: var(--ink); }
.lead-alt-btn svg { width: 17px; height: 17px; }
.lead-alt-btn[href*="wa.me"] svg { color: #25D366; }
.lead-after { margin-top: 12px; text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.recaptcha-notice { font-size: 12px; color: var(--muted); line-height: 1.45; text-align: center; }
.recaptcha-notice a { color: var(--ink-2); }
.grecaptcha-badge { visibility: hidden; }

/* ==========================================================================
   PLUTAJUĆI ELEMENTI: WhatsApp, na vrh, kolačići
   ========================================================================== */
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border-radius: var(--r-pill); background: var(--ink); color: var(--white); font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.whatsapp-float:hover { color: var(--white); transform: translateY(-2px); }
.whatsapp-float { background: #25D366; color: #0C0C0D; } /* tamni tekst: bijeli na #25D366 ima kontrast ~2:1 */
.whatsapp-float:hover { background: #1EBE5A; color: #0C0C0D; }
.whatsapp-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.whatsapp-float { transition: transform .2s var(--ease), opacity .2s var(--ease); }
.whatsapp-float svg { width: 20px; height: 20px; }
.back-to-top { position: fixed; right: 24px; bottom: 84px; z-index: 90; width: 46px; height: 46px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { width: 18px; height: 18px; transform: rotate(-90deg); }
@media (max-width: 900px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; padding: 0; justify-content: center; }
  .whatsapp-float span { display: none; }
  .back-to-top { right: 16px; bottom: 78px; }
  /* sa donjom trakom: pilula se ne prikazuje, "na vrh" sjedi iznad trake */
  body.has-mbar { padding-bottom: calc(var(--mbar-h) + 8px + env(safe-area-inset-bottom)); }
  .has-mbar .whatsapp-float { display: none; }
  .has-mbar .back-to-top { bottom: calc(var(--mbar-h) + 16px + env(safe-area-inset-bottom)); }
}

/* mobilna donja traka (<= 900px): Pozovi / WhatsApp / Ponuda */
.mbar { display: none; }
@media (max-width: 900px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    height: calc(var(--mbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(243, 243, 239, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -24px rgba(12, 12, 13, .45);
    transition: transform .3s var(--ease), visibility .3s;
  }
  .mbar.is-hidden { transform: translateY(100%); visibility: hidden; }
  .mbar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
  .mbar__btn + .mbar__btn { border-left: 1px solid var(--line); }
  .mbar__btn svg { width: 18px; height: 18px; flex-shrink: 0; }
  .mbar__btn:hover { color: var(--accent); }
  .mbar__btn[href*="wa.me"] svg { color: #25D366; }
  .mbar__btn--accent { background: var(--accent); color: var(--white); border-left: 0 !important; }
  .mbar__btn--accent:hover { background: var(--accent-hover); color: var(--white); }
}
@media (max-width: 380px) { .mbar__btn { font-size: 14px; gap: 6px; } }
.cookie-fab { position: fixed; left: 24px; bottom: 24px; z-index: 90; width: 46px; height: 46px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cookie-fab svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .cookie-fab { display: none !important; } }
.cookie-banner { position: fixed; left: 24px; bottom: 24px; z-index: 1001; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .3s, visibility .3s; }
.cookie-banner.open { opacity: 1; visibility: visible; transform: none; }
.cookie-banner-inner { padding: 20px; }
.cookie-banner-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cookie-banner-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; }
.cookie-banner-ico svg { width: 18px; height: 18px; }
.cookie-banner-title { font-family: var(--f-display); font-weight: 700; font-size: 17px; }
.cookie-banner-text { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 14px; }
.cookie-banner-text a { color: var(--ink); }
.cookie-settings { display: none; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.cookie-banner.show-settings .cookie-settings { display: flex; }
.cookie-cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.cookie-cat-txt { display: flex; flex-direction: column; gap: 2px; }
.cookie-cat-txt strong { font-size: 14px; }
.cookie-cat-txt small { font-size: 12px; color: var(--muted); }
.cookie-cat input { width: 20px; height: 20px; accent-color: var(--accent); }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-btn { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cookie-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--white); }
#cookieSave { display: none; }
.cookie-banner.show-settings #cookieSave { display: inline-flex; align-items: center; justify-content: center; }
.cookie-banner.show-settings #cookieSettingsBtn { display: none; }
@media (max-width: 900px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: 440px; }
  .has-mbar .cookie-banner { bottom: calc(var(--mbar-h) + 8px + env(safe-area-inset-bottom)); max-height: calc(100vh - var(--mbar-h) - 100px); }
  .cookie-banner-inner { padding: 14px; }
  .cookie-banner-head { display: none; }
  #cookieSettingsBtn { flex: 0 0 auto; border: 0; text-decoration: underline; padding: 0 6px; }
}

/* ---------- generičke kartice i oznake ---------- */
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.img-frame { border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Jedan završni CTA po stranici: footer.php ispisuje .footer-top samo kad filter 'nevis_footer_cta' kaže da
   (functions.php). Sigurnosna mreža: ako stranica ipak završava plavom trakom ili formom, footer CTA se skriva. */
main:has(> section.sec--accent:last-of-type) ~ .site-footer .footer-top,
main:has(.work-cta, .lead-section) ~ .site-footer .footer-top { display: none; }
main:has(> section.sec--accent:last-of-type) ~ .site-footer,
main:has(.work-cta, .lead-section) ~ .site-footer { padding-top: 64px; }

/* Tipografska kartica umjesto sive kutije (projekat/članak bez slike) */
.ph-card {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: clamp(18px, 2.4vw, 28px); background: var(--night-2); color: var(--white); text-align: left;
}
.ph-card__tag { color: var(--accent-on-dark); }
.ph-card__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; line-height: 1.1; color: var(--white); overflow-wrap: anywhere; }
.ph-card::after { content: ""; position: absolute; right: clamp(18px, 2.4vw, 28px); top: clamp(18px, 2.4vw, 28px); width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
/* Breadcrumb: trenutna stranica tamnija od linkova */
.breadcrumb [aria-current] { color: var(--ink); }
