/* =============================================================================
   Portalix Media — moderni sloj (učitava se poslednji).
   Osvežen vizuelni jezik: mekši oblici, slojevite senke, staklaste površine,
   fluidna tipografija i smirenije animacije.
   ============================================================================= */

/* ---------------------------------------------------------------- 1. Tokeni */
:root {
  --indigo: #3a6bff;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(8, 25, 55, .05), 0 4px 10px -4px rgba(8, 25, 55, .08);
  --sh-s: 0 2px 4px rgba(8, 25, 55, .04), 0 12px 26px -12px rgba(8, 25, 55, .18);
  --sh-m: 0 4px 10px rgba(8, 25, 55, .04), 0 26px 52px -22px rgba(8, 25, 55, .28);
  --sh-l: 0 8px 18px rgba(8, 25, 55, .05), 0 44px 84px -34px rgba(8, 25, 55, .36);
  --sh-brand: 0 16px 34px -14px rgba(23, 74, 255, .5);
  --sh-brand-hi: 0 24px 46px -16px rgba(23, 74, 255, .62);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, .14, .3, 1);

  --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 46%, var(--cyan) 100%);
  --grad-ink: linear-gradient(140deg, #05101f 0%, #0a1f3f 55%, #10346f 100%);

  --hairline: rgba(16, 42, 84, .08);
  --hairline-strong: rgba(16, 42, 84, .13);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='.3'/%3E%3C/svg%3E");
}

/* ------------------------------------------------ 2. Osnova i tipografija */
html { scroll-padding-top: 118px; }

body { letter-spacing: -.005em; }

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.shell { width: min(1240px, calc(100% - 56px)); }
.section { padding: clamp(84px, 8.4vw, 134px) 0; }

::selection { background: var(--blue); color: #fff; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@supports (scrollbar-color: auto) {
  html { scrollbar-color: rgba(23, 74, 255, .35) transparent; scrollbar-width: thin; }
}

/* ------------------------------------------- 3. Eyebrow kao badge pilula */
.eyebrow,
.section-label {
  padding: 7px 15px 7px 11px;
  border: 1px solid rgba(23, 74, 255, .18);
  border-radius: var(--r-pill);
  color: var(--blue);
  background: rgba(23, 74, 255, .055);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .085em;
  line-height: 1;
}

.eyebrow b,
.section-label b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 3px rgba(23, 74, 255, .12);
}

/* Varijanta za tamne podloge. */
.eyebrow.light,
.page-hero .eyebrow,
.project-hero .eyebrow,
.archive-hero .eyebrow,
.result-card .eyebrow {
  color: #a9e2ff;
  border-color: rgba(120, 218, 255, .26);
  background: rgba(120, 218, 255, .1);
}

.eyebrow.light b,
.page-hero .eyebrow b,
.project-hero .eyebrow b,
.archive-hero .eyebrow b,
.result-card .eyebrow b {
  background: linear-gradient(135deg, #6ddcff, #ffffff);
  box-shadow: 0 0 0 3px rgba(120, 218, 255, .14);
}

/* --------------------------------------------------- 4. Dugmad i linkovi */
.button,
.header-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  background-size: 190% 190%;
  background-position: 0% 50%;
  box-shadow: var(--sh-brand), inset 0 1px 0 rgba(255, 255, 255, .26);
  letter-spacing: -.012em;
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), background-position .55s var(--ease), color .25s var(--ease);
}

.button::before,
.header-cta::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, .38) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform .85s var(--ease);
}

.button:hover::before,
.header-cta:hover::before { transform: translateX(130%); }

.button:hover,
.header-cta:hover {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: var(--sh-brand-hi), inset 0 1px 0 rgba(255, 255, 255, .32);
}

.button:active,
.header-cta:active { transform: translateY(-1px); }

.button::after,
.header-cta::after { transition: transform .35s var(--ease); }

.button:hover::after,
.header-cta:hover::after { transform: rotate(45deg) translate(2px, -2px); }

.button-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--sh-xs);
  backdrop-filter: blur(14px);
}

.button-ghost:hover {
  color: var(--blue);
  background: #ffffff;
  border-color: rgba(23, 74, 255, .32);
  box-shadow: 0 14px 30px -14px rgba(23, 74, 255, .35);
}

.button-ghost::before { display: none; }

.button-white {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 18px 38px -16px rgba(0, 0, 0, .5);
}

.button-white:hover { color: var(--blue); background: #ffffff; box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .55); }
.button-white::before { background: linear-gradient(112deg, transparent 32%, rgba(23, 74, 255, .12) 50%, transparent 68%); }

.text-link {
  min-height: 46px;
  padding: 0 20px;
  border-color: var(--hairline-strong);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .8);
  font-weight: 700;
  backdrop-filter: blur(10px);
  transition: color .28s var(--ease), border-color .28s var(--ease), background-color .28s var(--ease), transform .28s var(--ease), box-shadow .28s var(--ease);
}

.text-link span { transition: transform .32s var(--ease); }
.text-link:hover { transform: translateY(-2px); box-shadow: var(--sh-xs); }
.text-link:hover span { transform: translateX(4px); }

/* ------------------------------------------------------------ 5. Zaglavlje */
.site-header {
  background: rgba(255, 255, 255, .7);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(24px) saturate(180%);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .88);
  border-bottom-color: var(--hairline);
  box-shadow: 0 14px 34px -22px rgba(8, 25, 55, .55);
}

.header-inner { height: 90px; transition: height .4s var(--ease); }
.site-header.scrolled .header-inner { height: 74px; }

.brand { transition: transform .35s var(--ease); }
.brand:hover { transform: translateY(-1px); }

.main-nav {
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a {
  padding: 10px 15px;
  border-radius: var(--r-pill);
  color: #24344c;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}

.main-nav a::after { display: none; }
.main-nav a:hover { color: var(--blue); background: rgba(23, 74, 255, .07); }

.main-nav a[aria-current="page"] {
  color: var(--blue);
  background: rgba(23, 74, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(23, 74, 255, .14);
}

.header-cta { margin-left: 14px; }
.menu-toggle i { border-radius: 2px; }

/* Prebacivač jezika */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: rgba(247, 250, 253, .82);
}

.lang-switch a {
  padding: 7px 12px;
  border-radius: var(--r-pill);
  color: #5b6a80;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}

.lang-switch a:hover { color: var(--blue); }

.lang-switch a.is-active {
  color: #ffffff;
  background: var(--grad-brand);
  box-shadow: 0 6px 14px -8px rgba(23, 74, 255, .9);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 50%;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  color: #ffffff;
  background: var(--ink);
  box-shadow: var(--sh-m);
  font-size: 14px;
  font-weight: 700;
  transform: translate(-50%, -160%);
  transition: transform .3s var(--ease);
}

.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ------------------------------------------------------------- 6. Hero blok */
.home .hero {
  position: relative;
  min-height: 0;
  padding: clamp(122px, 12vw, 188px) 0 clamp(150px, 14vw, 210px);
  background:
    var(--grain) repeat,
    linear-gradient(93deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .95) 33%, rgba(255, 255, 255, .74) 51%, rgba(255, 255, 255, .2) 76%, rgba(4, 16, 36, .3) 100%) no-repeat,
    var(--template-hero-image) center / cover no-repeat;
}

.home .hero::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: -14% -8% auto auto;
  width: min(720px, 60vw);
  height: min(720px, 60vw);
  opacity: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(32, 201, 255, .3), rgba(23, 74, 255, .16) 44%, transparent 72%);
  mask-image: none;
  pointer-events: none;
  animation: portalix-drift 16s var(--ease-soft) infinite alternate;
}

.home .hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 190px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .82) 58%, #ffffff);
  pointer-events: none;
}

.home .hero > .shell { position: relative; z-index: 2; }
.home .hero-copy { max-width: 830px; }
.home .hero h1 { max-width: 830px; font-size: clamp(44px, 4.9vw, 70px); line-height: 1.05; }
.home .hero p { color: #3d4b60; font-size: clamp(17px, 1.3vw, 20px); }

.home .hero-actions { gap: 14px; margin-top: 38px; }
.home .hero-actions .button { min-height: 56px; padding-inline: 28px; }

/* Signali poverenja ispod hero teksta — vraćeni kao staklaste pilule. */
.home .hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.home .hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 17px 9px 9px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--r-pill);
  color: #24344c;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--sh-xs);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 600;
}

.home .hero-proof i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--grad-brand);
  box-shadow: 0 6px 14px -6px rgba(23, 74, 255, .8);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

@keyframes portalix-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}

/* ---------------------------------------------------- 7. Naslovi: ritam */
.hero h1,
.home .hero h1,
.page-hero h1,
.service-hero h1,
.project-hero h1 { letter-spacing: -.042em; }

.two-col h2,
.section-head h2,
.why-copy h2,
.process h2,
.faq h2,
.page-main h2,
.template-about-copy > h2,
.final-cta h2 { letter-spacing: -.034em; }

.section-head { margin-bottom: clamp(38px, 4.5vw, 62px); }

/* ------------------------------------------ 8. Traka istaknutih usluga */
.home-feature-strip { margin-top: clamp(-104px, -8vw, -76px); }

.feature-strip-grid {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: var(--sh-l);
}

.feature-strip-card {
  padding: 30px 26px 28px;
  border-right: 1px solid var(--hairline);
  background: transparent;
  transition: background-color .4s var(--ease);
}

.feature-strip-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.feature-strip-card:hover::before { transform: scaleX(1); }

.feature-strip-card:hover {
  transform: none;
  color: var(--ink);
  background: linear-gradient(170deg, rgba(23, 74, 255, .05), rgba(32, 201, 255, .07));
}

.feature-strip-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--grad-brand);
  box-shadow: 0 12px 24px -12px rgba(23, 74, 255, .95);
  font: 800 13px var(--font);
  transition: transform .4s var(--ease);
}

.feature-strip-card:hover .feature-strip-icon {
  color: #ffffff;
  background: var(--grad-brand);
  transform: translateY(-2px) scale(1.05);
}

.feature-strip-card h3 { font-size: 17px; letter-spacing: -.02em; }
.feature-strip-card p,
.feature-strip-card:hover p { color: var(--text-soft); }
.feature-strip-card > i { transition: transform .35s var(--ease); }
.feature-strip-card:hover > i { color: var(--blue); transform: translate(3px, -3px); }

/* ------------------------------------------------------- 9. Blok „O nama” */
.template-about-media > img {
  height: 560px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-l);
}

.template-about-media::before {
  inset: 4px 14px 30px -36px;
  clip-path: none;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(23, 74, 255, .38), rgba(32, 201, 255, .5));
  filter: blur(34px);
  opacity: .6;
}

.template-about-media::after { opacity: .16; }

.template-about-badge {
  right: -22px;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  box-shadow: 0 28px 52px -20px rgba(23, 74, 255, .75);
}

.template-about-badge span { letter-spacing: .01em; }

.template-about-note {
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--sh-m);
  backdrop-filter: blur(16px);
}

.template-about-note > i { border-radius: 11px; background: var(--grad-brand); }

.template-about .benefit-list {
  gap: 12px;
  margin-top: 40px;
  border-top: 0;
}

.template-about .benefit-list article,
.template-about .benefit-list article:nth-child(odd),
.template-about .benefit-list article:nth-child(even) {
  min-height: 0;
  padding: 22px 22px 20px 64px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: linear-gradient(150deg, #ffffff, #f9fbff);
  box-shadow: var(--sh-xs);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.template-about .benefit-list article:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 74, 255, .26);
  box-shadow: var(--sh-s);
}

.template-about .benefit-list span {
  top: 22px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--grad-brand);
  box-shadow: 0 8px 18px -8px rgba(23, 74, 255, .9);
  font: 800 12px var(--font);
}

/* --------------------------------------------------------- 10. Usluge */
.home .services-section {
  background:
    radial-gradient(120% 62% at 50% 0%, rgba(23, 74, 255, .07), transparent 62%),
    radial-gradient(80% 50% at 93% 6%, rgba(32, 201, 255, .11), transparent 60%),
    linear-gradient(180deg, #f7f9fd, #f2f6fb);
}

.home .service-grid { gap: 22px; }

.home .service-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-s);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}

.home .service-card::before { border-radius: 27px 27px 0 0; }

.home .service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(23, 74, 255, .28);
  box-shadow: var(--sh-m);
}

.home .service-card .service-icon {
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--r-sm);
  color: #ffffff;
  background: var(--grad-brand);
  box-shadow: 0 14px 28px -12px rgba(4, 27, 76, .8);
  transition: transform .4s var(--ease);
}

.home .service-card:hover .service-icon {
  color: #ffffff !important;
  background: var(--grad-brand);
  transform: translateY(-3px) scale(1.05);
}

/* Redni broj kartice: main.css ga postavlja apsolutno, ali `.service-card > *`
   iz service-media.css to poništava — zato ga ovde vraćamo. */
.service-card .card-number,
.home .service-card .card-number {
  position: absolute;
  top: 147px;
  right: 22px;
  width: fit-content;
  min-width: 34px;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-pill);
  color: var(--blue);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  font: 700 11px var(--font);
  letter-spacing: .04em;
}

.home .service-card > a span { transition: transform .3s var(--ease); }
.home .service-card:hover > a span { transform: translate(3px, -3px); }

.services-inline-cta {
  margin-top: 26px;
  padding: clamp(30px, 4vw, 46px) clamp(26px, 4vw, 50px);
  border-radius: var(--r-lg);
  background:
    var(--grain) repeat,
    radial-gradient(90% 130% at 92% 8%, rgba(32, 201, 255, .38), transparent 48%) no-repeat,
    var(--grad-ink);
  box-shadow: 0 42px 74px -36px rgba(6, 24, 60, .95);
}

.services-inline-cta::after {
  right: 24%;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 36px rgba(255, 255, 255, .02);
}

.services-inline-cta > div > span {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid rgba(120, 218, 255, .26);
  border-radius: var(--r-pill);
  color: #a9e2ff;
  background: rgba(120, 218, 255, .1);
  font: 700 11px var(--font);
  letter-spacing: .09em;
}

.services-inline-cta h3 { margin-top: 14px; letter-spacing: -.03em; }

/* ----------------------------------------------------- 11. „Zašto” blok */
.why-visual { padding: 0 0 112px 52px; }

.why-visual > img {
  display: block;
  height: 560px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-l);
}

.why-visual::before {
  inset: -16px -14px 138px 62px;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, rgba(23, 74, 255, .34), rgba(32, 201, 255, .46));
  filter: blur(38px);
  opacity: .55;
}

/* Kartica prednosti lebdi preko donjeg dela fotografije i izlazi iz mreže levo. */
.home .why-items {
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: #e5ebf4;
  box-shadow: 0 40px 72px -30px rgba(8, 25, 55, .45);
  backdrop-filter: none;
}

.home .why-items::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad-brand);
}

.home .why-items article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 5px 14px;
  align-content: start;
  min-height: 0;
  padding: 24px 26px 23px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  transition: background-color .35s var(--ease);
}

.home .why-items article:hover { background: linear-gradient(160deg, rgba(23, 74, 255, .05), rgba(32, 201, 255, .08)); }

.home .why-items span {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #ffffff;
  background: var(--grad-brand);
  box-shadow: 0 10px 20px -10px rgba(23, 74, 255, .95);
  font: 800 12px var(--font);
  letter-spacing: 0;
}

.home .why-items h3 {
  grid-area: 1 / 2;
  align-self: center;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -.022em;
}

.home .why-items p { grid-area: 2 / 2; font-size: 14px; line-height: 1.6; }

.home .why-items article:hover span { color: #ffffff; }
.home .why-items article:hover h3 { color: var(--ink); }
.home .why-items article:hover p { color: var(--text-soft); }

/* --------------------------------------------------------- 12. Portfolio */
.home .portfolio-section {
  background:
    var(--grain) repeat,
    radial-gradient(70% 60% at 92% 5%, rgba(32, 201, 255, .2), transparent 55%) no-repeat,
    radial-gradient(60% 60% at 4% 100%, rgba(23, 74, 255, .3), transparent 58%) no-repeat,
    var(--grad-ink);
}

.home .portfolio-section::before { opacity: .06; }

.home .portfolio-section .project-card {
  overflow: hidden;
  border: 0;
  border-radius: var(--r-lg);
  background: #ffffff;
  box-shadow: 0 34px 62px -32px rgba(0, 0, 0, .85);
}

.home .portfolio-section .project-card:hover { transform: translateY(-10px); box-shadow: 0 44px 78px -32px rgba(0, 0, 0, .9); }
.home .portfolio-section .project-cover { margin: 10px; border-radius: var(--r-md); overflow: hidden; }

.project-cover img { transition: transform .65s var(--ease); }
.project-card:hover .project-cover img { transform: scale(1.06); }

.home .portfolio-section .eyebrow {
  color: #a9e2ff;
  border-color: rgba(120, 218, 255, .26);
  background: rgba(120, 218, 255, .1);
}

.home .portfolio-section .eyebrow b { background: linear-gradient(135deg, #6ddcff, #ffffff); }
.home .portfolio-section .text-link span { color: #6ddcff; }

.home .portfolio-section .text-link:hover {
  color: #ffffff;
  border-color: rgba(120, 218, 255, .5);
  background: rgba(255, 255, 255, .12);
}

/* ------------------------------------------------------ 13. Način rada */
.home .process {
  background:
    radial-gradient(80% 60% at 12% 6%, rgba(23, 74, 255, .08), transparent 58%),
    radial-gradient(70% 60% at 92% 100%, rgba(32, 201, 255, .11), transparent 60%),
    linear-gradient(180deg, #f7f9fd, #f3f6fb);
}

.home .process .steps { gap: 20px; }

/* Kartice su namerno kompaktne — sadrže samo broj i kratak naslov. */
.home .process .steps article,
.home .process .steps article:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  padding: 26px 24px 28px;
  border: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: #ffffff;
  box-shadow: var(--sh-xs);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

/* Bez trake na vrhu — na zaobljenoj ivici je delovala kao odvojen element. */
.home .process .steps article::before { display: none; }

.home .process .steps article:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 74, 255, .28);
  box-shadow: var(--sh-s);
}

.home .process .steps article > span {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 12px 22px -12px rgba(23, 74, 255, .85);
  font: 800 14px var(--font);
  letter-spacing: 0;
}

.home .process .steps h3 {
  max-width: 100%;
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.42;
  letter-spacing: -.022em;
}

.home .process .steps i { display: none; }

/* Strelica između kartica — centrirana i po visini i u razmaku. */
.home .process .steps article:not(:last-child)::after {
  top: 50%;
  right: -25px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--hairline-strong);
  color: var(--blue);
  background: #ffffff;
  box-shadow: var(--sh-xs);
  font: 600 15px / 1 var(--font);
  transform: translateY(-50%);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}

.home .process .steps article:hover::after {
  transform: translateY(-50%) translateX(3px);
  border-color: rgba(23, 74, 255, .34);
}

/* ------------------------------------------------------ 14. Završni CTA */
.final-cta {
  background:
    var(--grain) repeat,
    linear-gradient(95deg, rgba(4, 14, 30, .96) 0%, rgba(7, 28, 66, .9) 46%, rgba(23, 74, 255, .5) 100%) no-repeat,
    var(--template-cta-image) center / cover no-repeat;
}

.final-cta::after {
  content: '';
  right: -8%;
  top: -32%;
  width: min(760px, 64vw);
  height: min(760px, 64vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 201, 255, .28), transparent 68%);
  color: transparent;
  font: 0 / 0 a;
  transform: none;
  pointer-events: none;
}

.final-cta h2 { letter-spacing: -.04em; }
.final-cta p { color: #c6d6ee; }
.final-cta .button-white { margin-top: 34px; }

/* -------------------------------------------- 15. Unutrašnje stranice */
.page-hero,
.project-hero,
.archive-hero {
  position: relative;
  background:
    var(--grain) repeat,
    linear-gradient(95deg, rgba(4, 14, 30, .95), rgba(8, 32, 74, .78)) no-repeat,
    var(--template-page-title-image) center / cover no-repeat;
}

.page-hero h1,
.project-hero h1 { font-size: clamp(46px, 5.2vw, 72px); }

.breadcrumbs a { transition: color .25s var(--ease); }
.breadcrumbs a:hover { color: var(--blue); }

.page-cards > article { border-radius: var(--r-sm); }

.contact-layout .page-main {
  border-top: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-s);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  background: #fbfcfe;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(23, 74, 255, .12);
  outline: 0;
}

.contact-form .wpcf7-submit {
  padding: 15px 30px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  box-shadow: var(--sh-brand);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.contact-form .wpcf7-submit:hover { transform: translateY(-2px); box-shadow: var(--sh-brand-hi); }

.faq-item,
.faq-item:last-child {
  margin-bottom: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: #ffffff;
  box-shadow: var(--sh-xs);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.faq-item button { padding: 20px 22px; }
.faq-item > div > p { padding-inline: 22px; }
.faq-item.open { border-color: rgba(23, 74, 255, .26); box-shadow: var(--sh-s); }
.faq-item.open > div p { padding: 0 22px 20px; }

.check-list li { border-color: var(--hairline); }

.include-grid article { border-radius: var(--r-sm); }
.result-card { border-radius: var(--r-lg); background: var(--grad-ink); }
.project-featured { border-radius: var(--r-lg); }
.gallery-grid img { border-radius: var(--r-md); }
.tech-section { border-radius: 0; background: linear-gradient(120deg, #eaf6ff, #f3f8ff); }

.service-hero,
.archive-list,
.portfolio-archive {
  background:
    radial-gradient(80% 60% at 8% 0%, rgba(23, 74, 255, .08), transparent 60%),
    linear-gradient(180deg, #f8fafe, #f2f6fb);
}

.archive-list .service-card,
.portfolio-archive .project-card { border-radius: var(--r-lg); }

.workflow .steps article,
.workflow .steps article:not(:first-child) {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: #ffffff;
  box-shadow: var(--sh-xs);
}

.workflow .steps article > span {
  background: var(--grad-brand);
  box-shadow: 0 14px 26px -12px rgba(23, 74, 255, .95);
}

/* ------------------------------------------------- 16. Podnožje i CTA */
.site-footer {
  position: relative;
  padding-top: 96px;
  background:
    radial-gradient(70% 60% at 12% 100%, rgba(23, 74, 255, .22), transparent 58%),
    radial-gradient(50% 40% at 88% 0%, rgba(32, 201, 255, .1), transparent 60%),
    #050f1f;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 200, 255, .45), transparent);
}

.footer-grid a {
  width: fit-content;
  transition: color .25s var(--ease), transform .25s var(--ease);
}

.footer-grid a:hover { color: #7fdcff; transform: translateX(3px); }

.footer-grid h3 {
  position: relative;
  padding-bottom: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-grid h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.footer-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  color: #ffffff;
  font-weight: 700;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.footer-inquiry:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 218, 255, .5);
  background: rgba(255, 255, 255, .12);
}

.footer-bottom { padding: 22px 0; border-top-color: rgba(255, 255, 255, .08); }
.footer-bottom a { transition: color .25s var(--ease); }
.footer-bottom a:hover { color: #7fdcff; }

.inquiry-float {
  border: 0;
  background: var(--grad-brand);
  box-shadow: var(--sh-brand);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.inquiry-float span { background: rgba(255, 255, 255, .22); }
.inquiry-float:hover { transform: translateY(-3px); background: var(--grad-brand); box-shadow: var(--sh-brand-hi); }

/* ------------------------------------------------------------ 17. Pokret */
.reveal {
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible { transform: none; }

/* Na malim ekranima sadržaj ostaje vidljiv i bez JavaScript-a. */
@media (max-width: 640px) {
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- 18. Responzivno */
@media (max-width: 1100px) {
  .template-about-media > img { height: 500px; }
  .why-visual { padding: 0 0 130px 30px; }
  .why-visual > img { height: 520px; }
  .why-visual::before { inset: -14px -12px 150px 40px; }
}

@media (max-width: 900px) {
  .home .hero { padding-bottom: clamp(130px, 16vw, 170px); }
  .home .service-grid { gap: 18px; }
  .why-visual { padding: 0 0 118px 34px; }
  .why-visual > img { height: 480px; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 34px, 1240px); }
  .site-header { background: rgba(255, 255, 255, .94); }
  .header-inner,
  .site-header.scrolled .header-inner { height: 70px; }
  .lang-switch { order: 2; margin-left: auto; }
  .menu-toggle { order: 3; margin-left: 6px; }
  .lang-switch a { padding: 6px 10px; font-size: 11px; }
  .menu-open .main-nav { border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--sh-m); }

  /* Na uskim ekranima tekst pokriva sredinu fotografije — koristimo ravnomerniji veo. */
  .home .hero {
    padding: 92px 0 118px;
    background:
      var(--grain) repeat,
      linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .91) 44%, rgba(255, 255, 255, .76) 70%, rgba(255, 255, 255, .92) 100%) no-repeat,
      var(--template-hero-image) 62% center / cover no-repeat;
  }

  .home .hero h1 { font-size: clamp(40px, 11vw, 54px); }
  .home .hero::before { inset: -8% -30% auto auto; width: 420px; height: 420px; }
  .home .hero-proof { gap: 8px; margin-top: 28px; }
  .home .hero-proof span { padding: 8px 14px 8px 8px; font-size: 13px; }

  .home-feature-strip { margin-top: -70px; }
  .feature-strip-grid { border-radius: var(--r-md); }
  .feature-strip-card { padding: 20px 54px 20px 74px; }
  .feature-strip-icon { top: 20px; left: 18px; }

  .template-about-media > img { height: 340px; border-radius: var(--r-md); }
  .template-about-badge { border-radius: var(--r-sm); }
  .template-about-note { border-radius: var(--r-sm); }

  .home .service-card { border-radius: var(--r-md); }
  .home .service-card::before { border-radius: 19px 19px 0 0; }
  .services-inline-cta { border-radius: var(--r-md); }

  .why-visual { padding: 0 0 330px; }
  .why-visual > img { height: 320px; border-radius: var(--r-md); }
  .why-visual::before { inset: -10px 14px 344px 14px; }
  .home .why-items { border-radius: var(--r-md); width: auto; left: 0; right: 0; }
  .home .why-items article { padding: 19px 20px 18px; }
  .home .portfolio-section .project-card { border-radius: var(--r-md); }
  .home .process .steps article,
  .home .process .steps article:not(:first-child) { min-height: 0; padding: 20px; border-radius: var(--r-md); }

  .home .process .steps article > span { width: 42px; height: 42px; }
  .home .process .steps h3 { margin-top: 16px; }
}

/* --------------------------------------------- 19. Smanjeno kretanje */
@media (prefers-reduced-motion: reduce) {
  .home .hero::before { animation: none; }
  .reveal { transition-delay: 0ms; }

  .button,
  .header-cta,
  .text-link,
  .feature-strip-card,
  .home .service-card,
  .home .portfolio-section .project-card,
  .template-about .benefit-list article,
  .inquiry-float { transition-duration: .01ms; }

  .button:hover,
  .header-cta:hover,
  .text-link:hover,
  .home .service-card:hover,
  .home .portfolio-section .project-card:hover,
  .template-about .benefit-list article:hover,
  .inquiry-float:hover { transform: none; }
}
