/* Dizajn et cetera, prijedlog naslovnice v2 */

:root {
  --green: #313832;        /* postojeća tamna zeleno-siva (header/footer) */
  --navy: #212b35;         /* teget: naslovi i tamne sekcije */
  --accent: #ed4933;       /* crveno-narančasta: CTA */
  --accent-dark: #d63d28;
  --bg: #f4f2ee;
  --paper: #ffffff;
  --stone: #e8e4dd;
  --ink: #1d242a;
  --muted: #6b7178;
  --line: rgba(33, 43, 53, .14);
  --line-light: rgba(255, 255, 255, .18);

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 11vw, 160px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

/* ---------- Typography ---------- */
.label {
  margin: 0 0 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.label--light { color: rgba(255, 255, 255, .75); }

.h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--navy);
}
.h2--light { color: #fff; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head__note { max-width: 420px; margin: 0; color: var(--muted); }
.section-head--light .h2 { color: #fff; }
.section-head--light .section-head__note { color: rgba(255, 255, 255, .7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 30px;
  font-size: 15px; font-weight: 600;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--green); }
.btn--ghost-light { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.link-arrow {
  display: inline-block;
  font-weight: 600; font-size: 15px; color: var(--navy);
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
  transition: color .25s;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--accent); }

/* ---------- Header ---------- */
/* logo (wordmark) ostaje kao u v1: jedini element sa serif fontom */
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; line-height: 1; white-space: nowrap; }
.wordmark__main { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.wordmark__sub { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 22px; opacity: .85; }

.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background .35s var(--ease), color .35s var(--ease), transform .4s var(--ease);
}
.header__bar {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  transition: height .4s var(--ease);
}
/* tamni gradient iza menija dok je header proziran (čitljivost na svijetlim slikama) */
.header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 170px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .28) 45%, rgba(0, 0, 0, 0) 100%);
  transition: opacity .35s var(--ease);
}
.header.is-solid::before, .header.is-mega::before, .header.is-menu::before { opacity: 0; }
.header.is-solid { background: var(--green); }
.header.is-solid .header__bar { height: 76px; }
.header.is-hidden { transform: translateY(-100%); }
.header.is-mega { background: var(--paper); color: var(--navy); }
.nav__cta { display: none; }

.nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav__item { height: 100%; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 16px;
  font-size: 15px; font-weight: 500; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 26px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.nav__link[aria-expanded="true"] .nav__caret { transform: translateY(1px) rotate(-135deg); }
.nav__sub { display: none; }

.header__actions { display: flex; align-items: center; gap: 24px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.lang__btn { opacity: .5; transition: opacity .2s; }
.lang__btn.is-active, .lang__btn:hover { opacity: 1; }
.lang__sep { opacity: .35; }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Megamenu ---------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); color: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.mega.is-open { opacity: 1; transform: none; }
.mega__inner {
  max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter) 64px;
  display: grid; grid-template-columns: 1.15fr 1fr 1.25fr; gap: clamp(32px, 4vw, 72px);
}
.mega__col--wide { grid-column: span 2; }
.mega__label { margin: 0 0 22px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.mega__cats a { display: block; padding: 16px 0; border-top: 1px solid var(--line); }
.mega__cats li:last-child a { border-bottom: 1px solid var(--line); }
.mega__cats strong { display: block; font-size: 24px; font-weight: 300; letter-spacing: -.015em; color: var(--navy); transition: color .25s; }
.mega__cats span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.mega__cats a:hover strong { color: var(--accent); }

.mega__list a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--navy); }
.mega__list li:last-child a { border-bottom: 1px solid var(--line); }
.mega__list em { font-style: normal; font-size: 14px; color: var(--muted); white-space: nowrap; }
.mega__list a:hover span { color: var(--accent); }

.mega__services { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.mega__services a { display: block; padding: 18px 0; border-top: 1px solid var(--line); }
.mega__services strong { display: block; font-size: 20px; font-weight: 400; letter-spacing: -.01em; color: var(--navy); transition: color .25s; }
.mega__services span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.mega__services a:hover strong { color: var(--accent); }

.mega__media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); align-self: start; }
.mega__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease); }
.mega__media img.is-fading { opacity: 0; }
.mega__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
  font-size: 14px; font-weight: 500; color: #fff;
  background: linear-gradient(0deg, rgba(20, 26, 22, .7), rgba(20, 26, 22, 0));
}
.mega__cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 48px !important; }
.mega__cta span { font-size: 18px; font-weight: 400; }

.mega-overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(20, 26, 22, .4);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.mega-overlay.is-on { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 640px; max-height: 1100px;
  color: #fff; overflow: hidden; background: var(--green);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__slides, .hero__slide { position: absolute; inset: 0; margin: 0; }
.hero__slides { z-index: 0; } /* vlastiti sloj: slajdovi ostaju ispod sjene i teksta */
.hero__slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero__slide.is-prev { opacity: 1; z-index: 1; transition: none; }
.hero__slide.is-active { opacity: 1; z-index: 2; }
.hero__slide.is-active img { transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 26, 22, .7) 0%, rgba(20, 26, 22, .3) 45%, rgba(20, 26, 22, 0) 75%),
    linear-gradient(0deg, rgba(20, 26, 22, .6) 0%, rgba(20, 26, 22, 0) 40%),
    linear-gradient(180deg, rgba(20, 26, 22, .45) 0%, rgba(20, 26, 22, 0) 20%);
}
.hero__content { position: relative; padding-bottom: clamp(40px, 6vh, 72px); }
.hero__title {
  margin: 0 0 24px; max-width: 900px;
  font-size: clamp(44px, 6.6vw, 104px); font-weight: 300; line-height: 1; letter-spacing: -.035em;
}
.hero__lead { max-width: 540px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(255, 255, 255, .85); margin-bottom: 36px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__caption {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-top: 22px; padding-bottom: 26px;
}
.hero__caption::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-light); }
.hero__now { font-size: 14px; font-weight: 500; opacity: .85; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 56px; height: 18px; position: relative; }
.hero__dot::before, .hero__dot i { content: ""; position: absolute; left: 0; top: 8px; height: 2px; }
.hero__dot::before { right: 0; background: rgba(255, 255, 255, .28); }
.hero__dot i { width: 0; background: #fff; }
.hero__dot.is-active i { animation: dotfill var(--dur, 6s) linear forwards; }
.hero__dot.is-done i { width: 100%; }
@keyframes dotfill { to { width: 100%; } }

/* ---------- Trust ---------- */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { padding: 40px 32px 40px 0; display: flex; flex-direction: column; gap: 8px; }
.trust__item + .trust__item { padding-left: 32px; border-left: 1px solid var(--line); }
.trust__item strong { font-size: 20px; font-weight: 500; color: var(--navy); letter-spacing: -.01em; line-height: 1.25; }
.trust__item span { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- Projects ---------- */
.filters { display: flex; gap: 28px; }
.filter {
  padding: 6px 0; font-size: 16px; font-weight: 500; color: var(--muted);
  border-bottom: 1px solid transparent; transition: color .25s, border-color .25s;
}
.filter:hover { color: var(--navy); }
.filter.is-active { color: var(--navy); border-color: var(--navy); }

.pgrid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 28px); row-gap: clamp(48px, 6vw, 88px);
  transition: opacity .35s var(--ease);
}
.pgrid.is-changing { opacity: 0; }

.pcard { display: block; }
.pcard--12 { grid-column: span 12; }
.pcard--7 { grid-column: span 7; }
.pcard--5 { grid-column: span 5; }
.pcard--offset { margin-top: clamp(60px, 9vw, 140px); }

.pcard__media { position: relative; overflow: hidden; background: var(--stone); }
.pcard--12 .pcard__media { aspect-ratio: 21 / 9; }
.pcard--7 .pcard__media { aspect-ratio: 4 / 3; }
.pcard--5 .pcard__media { aspect-ratio: 4 / 5; }
.pcard__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .8s var(--ease);
}
.pcard__media .pcard__alt { opacity: 0; }
.pcard:hover .pcard__media img { transform: scale(1.03); }
.pcard:hover .pcard__media .pcard__alt { opacity: 1; }
.pcard__tag {
  position: absolute; left: 0; top: 0; z-index: 2;
  padding: 8px 14px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: var(--paper); color: var(--navy);
}
.pcard__info { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 24px; padding-top: 20px; }
.pcard__title { margin: 0; font-size: clamp(20px, 1.8vw, 28px); font-weight: 400; letter-spacing: -.015em; color: var(--navy); line-height: 1.2; transition: color .25s; }
.pcard:hover .pcard__title { color: var(--accent); }
.pcard__meta { font-size: 14px; color: var(--muted); }
.pcard__desc { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--muted); max-width: 560px; }

.projects__more { display: flex; justify-content: center; margin-top: clamp(56px, 7vw, 96px); }

/* ---------- Categories ---------- */
.cats { background: var(--green); color: #fff; padding: var(--section) 0; }
.cats__row { display: flex; gap: 14px; height: clamp(460px, 48vw, 680px); }
.cat {
  position: relative; flex: 1 1 0; overflow: hidden; min-width: 0;
  transition: flex-grow .8s var(--ease);
}
.cat.is-open { flex-grow: 2.4; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 22, 19, .8) 0%, rgba(18, 22, 19, .05) 55%); }
.cat.is-open img { transform: scale(1.03); }
.cat__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(22px, 2.5vw, 36px); }
.cat__title { margin: 0; font-size: clamp(22px, 2.2vw, 34px); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.cat__more {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .6s var(--ease), opacity .4s var(--ease);
}
.cat__more > div { overflow: hidden; max-width: 420px; }
.cat__text { margin: 14px 0 18px; font-size: 15px; color: rgba(255, 255, 255, .82); }
.cat__link { display: inline-block; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.cat__link::after { content: " →"; }
.cat.is-open .cat__more { grid-template-rows: 1fr; opacity: 1; transition-delay: .15s; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.about__media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__text .h2 { font-size: clamp(30px, 3.2vw, 46px); margin-bottom: 32px; }
.about__text > p { color: #4a5158; }
.about__list { margin: 32px 0 40px; border-top: 1px solid var(--line); }
.about__list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--navy); }

/* ---------- Services: tabovi (desktop) / harmonika (mobitel) ---------- */
.tabs {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  grid-auto-rows: auto; column-gap: clamp(40px, 6vw, 96px);
  border-top: 1px solid var(--line);
}
.tab { display: contents; }
.tab__btn {
  grid-column: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; padding: 22px 0; text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: clamp(20px, 1.9vw, 27px); font-weight: 300; letter-spacing: -.015em; color: var(--muted);
  transition: color .25s, padding .35s var(--ease);
}
.tab__btn::after { content: "→"; font-size: 18px; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--ease); }
.tab__btn:hover { color: var(--navy); }
.tab.is-active .tab__btn { color: var(--navy); }
.tab.is-active .tab__btn::after { opacity: 1; transform: none; color: var(--accent); }
.tab__panel {
  grid-column: 2; grid-row: 1 / span 6; align-self: start;
  display: none; padding-top: 0;
}
.tab.is-active .tab__panel { display: block; animation: panelIn .5s var(--ease); }
.tab__panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--stone); margin-top: 24px; }
.tab__panel p { margin: 24px 0 0; max-width: 560px; font-size: 17px; color: #4a5158; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Process ---------- */
.process { background: var(--stone); }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 36px 32px 8px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step__num { display: block; font-size: 48px; font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--accent); margin-bottom: 28px; }
.step__title { margin: 0 0 12px; font-size: 21px; font-weight: 500; color: var(--navy); letter-spacing: -.01em; }
.step p { margin: 0; font-size: 15px; color: #565d64; }

/* ---------- Clients ---------- */
.clients { background: var(--paper); padding: clamp(64px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.clients__head { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; margin-bottom: 40px; }
.clients__head .label { margin: 0; }
.clients__note { margin: 0; color: var(--muted); max-width: 440px; font-size: 15px; }
.marquee { overflow: hidden; }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; display: flex; align-items: center; justify-content: center; width: clamp(190px, 20vw, 300px); height: 120px; padding: 0 clamp(20px, 2.5vw, 36px); }
.marquee__track img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.marquee__track li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Blog ---------- */
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.post__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); margin-bottom: 20px; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post__title { margin: 10px 0 0; font-size: 22px; font-weight: 400; line-height: 1.3; color: var(--navy); letter-spacing: -.01em; transition: color .25s; }
.post:hover .post__title { color: var(--accent); }

/* ---------- Contact ---------- */
.contact { position: relative; padding: var(--section) 0; color: #fff; background: var(--navy); overflow: hidden; }
.contact__bg { position: absolute; inset: 0; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(33, 43, 53, .95) 30%, rgba(33, 43, 53, .7)); }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact__lead { margin: 28px 0 44px; font-size: 18px; color: rgba(255, 255, 255, .8); max-width: 440px; }
.contact__info { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.contact__info dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 6px; }
.contact__info dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.contact__info > div:last-child { grid-column: 1 / -1; }
.contact__info a:hover { color: var(--accent); }

.form { background: var(--paper); color: var(--ink); padding: clamp(28px, 3.5vw, 52px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: block; margin-bottom: 24px; }
.field span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 8px 0 10px; font: inherit; font-size: 17px; color: var(--ink); outline: none;
  transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field.is-error input, .field.is-error textarea { border-color: var(--accent); }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; max-width: 300px; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--navy); }
.check.is-error { color: var(--accent); }
.form__ok { margin: 20px 0 0; padding: 14px 18px; background: #eef3ee; color: var(--green); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--green); color: rgba(255, 255, 255, .78); padding: clamp(64px, 8vw, 104px) 0 32px; font-size: 15px; }
.footer .wordmark { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer__brand p { margin: 20px 0 24px; max-width: 300px; }
.footer h4 { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer__col p { margin: 0 0 12px; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.social a:hover { background: var(--accent); border-color: var(--accent); }
.social svg { width: 17px; height: 17px; fill: #fff; }

.eu {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  padding: 28px 32px; background: #fff; color: var(--ink);
}
.eu__logos { display: flex; align-items: center; gap: 28px; }
.eu__emblem { display: flex; align-items: center; gap: 12px; padding-right: 28px; border-right: 1px solid var(--line); }
.eu__emblem span { font-size: 13px; line-height: 1.3; color: #1a3d8f; }
.eu__emblem strong { display: block; font-size: 15px; }
.eu__logo { height: 52px; width: auto; }
.eu__text { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eu__text p { margin: 0; font-size: 13px; line-height: 1.5; color: #4a5158; max-width: 520px; }
.eu__text .link-arrow { font-size: 14px; white-space: nowrap; }

.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; margin-top: 40px; border-top: 1px solid var(--line-light); font-size: 13px; color: rgba(255, 255, 255, .55); }

/* =========================================================
   STRANICA PROJEKTA
   ========================================================= */

/* Hero projekta */
.phero { position: relative; height: 92vh; min-height: 560px; max-height: 1000px; color: #fff; overflow: hidden; background: var(--green); display: flex; align-items: flex-end; }
.phero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 26, 22, .72) 0%, rgba(20, 26, 22, .1) 50%), linear-gradient(180deg, rgba(20, 26, 22, .45) 0%, rgba(20, 26, 22, 0) 22%); }
.phero__content { position: relative; padding-bottom: clamp(48px, 8vh, 88px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .5; }
.phero__title { margin: 0; font-size: clamp(48px, 8vw, 120px); font-weight: 300; line-height: 1; letter-spacing: -.035em; }
.phero__lead { margin: 18px 0 0; font-size: clamp(18px, 1.6vw, 22px); color: rgba(255, 255, 255, .88); }

/* Opis + podaci */
.pintro { background: var(--paper); }
.pintro__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: start; }
.pintro__text .h2 { font-size: clamp(30px, 3.2vw, 46px); margin-bottom: 32px; }
.pintro__text p:not(.label) { font-size: 18px; color: #4a5158; max-width: 640px; }
.pfacts { border-top: 1px solid var(--navy); }
.pfacts dl { margin: 0; }
.pfacts dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pfacts dt { font-size: 14px; color: var(--muted); }
.pfacts dd { margin: 0; font-size: 16px; font-weight: 500; color: var(--navy); }
.pfacts__cta { margin-top: 32px; width: 100%; }

/* Galerija */
.pgal { background: var(--paper); padding-bottom: clamp(40px, 6vw, 80px); }
.pgal__list { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); }
.pgal__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.pgal__item { position: relative; display: block; overflow: hidden; background: var(--stone); cursor: zoom-in; }
.pgal__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.pgal__item:hover img { transform: scale(1.02); }
.pgal__cap {
  position: absolute; left: 0; bottom: 0; padding: 10px 16px;
  font-size: 13px; font-weight: 500; background: var(--paper); color: var(--navy);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.pgal__item:hover .pgal__cap, .pgal__item:focus-visible .pgal__cap { opacity: 1; transform: none; }

/* Tlocrti */
.plans { background: var(--bg); }
.plans__box { background: var(--paper); padding: clamp(16px, 3vw, 48px); }
.plans__panel a { display: block; cursor: zoom-in; }
.plans__panel img { width: auto; height: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; }

/* Prethodni / sljedeći */
.pnav {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter));
  padding: 48px 0; border-bottom: 1px solid var(--line);
}
.pnav__link { display: flex; align-items: center; gap: 24px; font-size: clamp(18px, 1.6vw, 24px); font-weight: 400; color: var(--navy); transition: color .25s; }
.pnav__link--next { justify-content: flex-end; text-align: right; }
.pnav__img { flex: none; width: clamp(140px, 16vw, 240px); aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.pnav__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pnav__link:hover .pnav__img img { transform: scale(1.05); }
.pnav__text { display: flex; flex-direction: column; gap: 6px; }
.pnav__text small { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pnav__link--prev small::before { content: "← "; }
.pnav__link--next small::after { content: " →"; }
.pnav__link:hover .pnav__text { color: var(--accent); }

/* Povezani projekti */
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.related .pcard__media { aspect-ratio: 4 / 3; }

/* CTA */
.pcta { position: relative; padding: clamp(100px, 13vw, 180px) 0; color: #fff; background: var(--green); overflow: hidden; }
.pcta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(28, 34, 30, .62); }
.pcta__inner { position: relative; z-index: 2; max-width: 860px; text-align: center; }
.pcta__inner p { margin: 24px auto 40px; max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .85); }
.pcta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(18, 22, 19, .96); opacity: 0; transition: opacity .3s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox__stage { position: absolute; inset: 64px 88px 72px; display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; width: 56px; height: 56px; color: #fff; }
.lightbox__close { top: 8px; right: 16px; }
.lightbox__close::before, .lightbox__close::after { content: ""; position: absolute; left: 16px; right: 16px; top: 27px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.lightbox__close::after { transform: rotate(-45deg); }
.lightbox__prev, .lightbox__next { top: 50%; margin-top: -28px; font-size: 28px; transition: color .2s; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev::before { content: "←"; }
.lightbox__next::before { content: "→"; }
.lightbox__prev:hover, .lightbox__next:hover, .lightbox__close:hover { color: var(--accent); }
.lightbox__bar { position: absolute; left: 88px; right: 88px; bottom: 22px; display: flex; justify-content: space-between; gap: 24px; font-size: 14px; color: rgba(255, 255, 255, .8); }

/* ---------- Reveal (samo opacity/transform; ne dira druge tranzicije) ---------- */
.reveal { opacity: 0; translate: 0 28px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .header__cta { display: none; }
  .nav__link { padding: 0 12px; }
  .eu { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 1024px) {
  .burger { display: block; }
  .mega, .mega-overlay { display: none !important; }
  .nav {
    position: fixed; inset: 0; z-index: -1; height: auto;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 110px var(--gutter) 40px; overflow-y: auto;
    background: var(--green); color: #fff;
    opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav__item { height: auto; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line-light); }
  .nav__link { justify-content: space-between; height: auto; padding: 18px 0; font-size: 28px; font-weight: 300; letter-spacing: -.02em; }
  .nav__link::after { display: none; }
  .nav__item.is-expanded .nav__sub { display: block; padding: 0 0 18px; }
  .nav__item.is-expanded .nav__caret { transform: translateY(1px) rotate(-135deg); }
  .nav__sub a { display: block; padding: 8px 0; font-size: 17px; color: rgba(255, 255, 255, .78); }
  .header.is-menu { background: var(--green); color: #fff; transform: none; }
  .nav__cta { display: flex; margin-top: 32px; flex: none; }
}

@media (max-width: 980px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pcard--7, .pcard--5 { grid-column: span 12; }
  .pcard--offset { margin-top: 0; }
  .pcard--5 .pcard__media, .pcard--7 .pcard__media { aspect-ratio: 4 / 3; }
  .pcard--12 .pcard__media { aspect-ratio: 16 / 10; }
  .cats__row { flex-direction: column; height: auto; }
  .cat, .cat.is-open { flex: none; height: 420px; }
  .cat__more { grid-template-rows: 1fr; opacity: 1; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }

  /* usluge kao harmonika */
  .tabs { display: block; }
  .tab { display: block; border-bottom: 1px solid var(--line); }
  .tab__btn { border-bottom: 0; padding: 20px 0; }
  .tab__btn::after { content: "+"; opacity: 1; transform: none; font-size: 26px; font-weight: 300; color: var(--navy); }
  .tab.is-active .tab__btn::after { content: "−"; color: var(--accent); }
  .tab__panel { padding-bottom: 28px; }
  .tab__panel img { margin-top: 0; }
  .tab__panel p { margin-top: 18px; font-size: 16px; }

  .process__grid { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .blog__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .clients__head { flex-direction: column; gap: 12px; }
}

@media (max-width: 980px) {
  .pintro__grid { grid-template-columns: 1fr; }
  .related__grid { grid-template-columns: 1fr; }
  .pnav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pnav__link { flex-direction: column; align-items: flex-start; gap: 14px; font-size: 17px; }
  .pnav__link--next { align-items: flex-end; }
  .pnav__link--next .pnav__img { order: -1; }
  .pnav__img { width: 100%; }
  .lightbox__stage { inset: 64px 12px 72px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; margin: 0; }
  .lightbox__bar { left: 80px; right: 80px; bottom: 26px; justify-content: center; }
  .lightbox__cap { display: none; }
}

@media (max-width: 640px) {
  .phero { height: 78vh; }
  .pgal__row { grid-template-columns: 1fr; }
  .pgal__cap { opacity: 1; transform: none; font-size: 12px; padding: 6px 10px; }
  .pfacts dl > div { grid-template-columns: 120px 1fr; }
  .pintro__text p:not(.label) { font-size: 16px; }
  body { font-size: 16px; }
  .header__bar, .header.is-solid .header__bar { height: 70px; }
  .wordmark__main { font-size: 23px; }
  .wordmark__sub { font-size: 19px; }
  .header__actions { gap: 14px; }
  .hero { min-height: 600px; }
  .hero__caption { flex-direction: column; align-items: flex-start; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item, .trust__item + .trust__item { padding: 22px 0; border-left: 0; }
  .trust__item + .trust__item { border-top: 1px solid var(--line); }
  .filters { gap: 20px; flex-wrap: wrap; }
  .process__grid { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__foot { flex-direction: column; align-items: stretch; }
  .contact__info { gap: 24px 20px; }
  .contact__info dd { font-size: 15px; }
  .footer__top { grid-template-columns: 1fr; }
  .eu { padding: 24px; }
  .eu__logos { flex-wrap: wrap; gap: 18px; }
  .eu__emblem { border-right: 0; padding-right: 0; width: 100%; }
  .eu__logo { height: 40px; }
  .eu__text { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
}
