/* ==========================================================================
   Bajramaj Gradnja — naslovnica
   Tamna verzija (odabir klijenta). Tokeni prema design handoffu.
   Bez border-radiusa, bez sjena — odvajanje 1px granicama i tonovima.
   ========================================================================== */

:root {
  color-scheme: light;

  /* boje */
  --ink: #1A1917;
  --ink-deep: #14130F;
  --ink-soft: #23211C;
  --border-dark: #2E2C26;
  --border-dark-2: #2A2823;
  --outline-dark: #4A473F;

  --brand-green: #009846;   /* službena boja tvrtke — hover na svijetlom */
  --logo-green: #1CFF76;    /* zelena iz loga — kričava: samo sitni akcenti na tamnom (mono natpisi, 2px linije, mjesec u timestampu) */
  --green: #2F7D52;         /* primarni CTA, akcenti, badge */
  --green-light: #6DBE8F;   /* eyebrow i brojke na tamnom */
  --green-dark: #1F6640;    /* eyebrow na svijetlom */
  --green-pale: #CFE3D8;    /* tekst na zelenom */
  --blue: #2E6FAE;          /* jedina plava: elektroinstalacije u presjeku izvedbe (VIK je zelen) */

  --bg: #F5F3EF;
  --bg-alt: #EDEAE3;
  --surface: #FFFFFF;
  --surface-hover: #FBFAF7;
  --border: #DCD8CF;
  --border-light: #E4E0D8;

  --text: #1A1917;
  --text-body: #55524B;
  --text-muted: #6E6A63;
  --text-dim: #8C8778;
  --on-dark: #B8B3A6;
  --on-dark-2: #D3CFC4;
  --on-dark-3: #D9D5CB;
  --on-dark-4: #E7E3D9;

  --error: #B23A2A;
  --error-bg: #FBF1EF;

  /* tipografija */
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* razmaci */
  --pad-x: clamp(20px, 3vw, 40px);
  --pad-y: clamp(56px, 7vw, 96px);
  --content: 1280px;
  --header-h: 88px;
  --ease: 150ms ease-out;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: inline-block; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Zajednički elementi
   -------------------------------------------------------------------------- */
.section__inner { max-width: var(--content); margin: 0 auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.eyebrow--dark { color: var(--logo-green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.btn--primary { background: var(--green); color: #FFFFFF; }
.btn--primary:hover { background: var(--brand-green); }
.btn--outline { border: 1px solid var(--outline-dark); color: var(--on-dark-4); font-weight: 600; }
.btn--outline:hover { border-color: var(--logo-green); color: #FFFFFF; }
.btn--dark { background: var(--ink); color: #FFFFFF; }
.btn--dark:hover { background: #35322B; }
.btn--dark:disabled { background: #55524B; cursor: progress; }

.btn--sm { font-size: 17px; padding: 13px 24px; }
.btn--md { font-size: 18px; padding: 15px 28px; }
.btn--lg { font-size: 20px; padding: 18px 34px; }
.btn--outline.btn--lg { padding: 17px 30px; }

.link-more {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
  line-height: 1.1;
  transition: color var(--ease), border-color var(--ease);
}
.link-more:hover { color: var(--brand-green); border-bottom-color: var(--brand-green); }

/* --------------------------------------------------------------------------
   1. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--border-dark);
  min-height: var(--header-h);
  padding: 14px clamp(16px, 2.5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px clamp(12px, 2vw, 32px);
}

.brand { flex: 0 0 auto; display: block; }
.brand img { height: 54px; width: auto; }

.nav { flex: 1 1 360px; min-width: 0; }
.nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px clamp(16px, 1.9vw, 32px);
}
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--ease), border-color var(--ease);
}
.nav__link:hover,
.has-menu.is-open > .nav__link {
  color: #FFFFFF;
  border-bottom-color: var(--logo-green);
}
.nav__link.is-active { color: #FFFFFF; border-bottom-color: var(--logo-green); }

.chevron { flex-shrink: 0; transition: transform var(--ease); }
.has-menu.is-open .chevron { transform: rotate(180deg); }

/* padajući izbornik */
.menu {
  position: absolute;
  top: 100%;
  left: -20px;
  padding-top: 12px;       /* most preko praznine — hover se ne gubi */
  min-width: 290px;
  display: none;
  z-index: 60;
}
.has-menu.is-open > .menu { display: block; }

.menu__list {
  background: var(--ink-soft);
  border: 1px solid var(--border-dark);
}
.menu__list li + li { border-top: 1px solid var(--border-dark); }
.menu__list a {
  display: block;
  padding: 12px 20px 12px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  border-left: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}
.menu__list a:hover {
  color: #FFFFFF;
  border-left-color: var(--logo-green);
  background: var(--ink);
}
.menu__all a { color: #FFFFFF; }

/* hover otvara izbornik samo na uređajima s pravim hoverom (ne na touchu) */
@media (hover: hover) {
  .has-menu:hover > .menu { display: block; }
  .has-menu:hover > .nav__link { color: #FFFFFF; border-bottom-color: var(--logo-green); }
  .has-menu:hover .chevron { transform: rotate(180deg); }
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px clamp(10px, 1.4vw, 20px);
  flex: 0 1 auto;
}
.header-phone {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--on-dark-3);
  white-space: nowrap;
  transition: color var(--ease);
}
.header-phone:hover { color: #FFFFFF; }

.nav-toggle { display: none; }
.nav__mobile-contact { display: none; }

/* srednje širine: kompaktniji nav da header ostane u jednom redu */
@media (min-width: 760px) and (max-width: 1099.98px) {
  .nav__link { font-size: 19px; }
  .nav__list { gap: 10px 18px; }
  .header-phone { display: none; }
}

/* sticky header na desktopu */
@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; }
  html { scroll-padding-top: calc(var(--header-h) + 8px); }
}

/* mobilni: hamburger ispod 760px */
@media (max-width: 759.98px) {
  .site-header { min-height: 72px; padding-top: 12px; padding-bottom: 12px; gap: 10px 14px; }
  .brand img { height: 42px; }

  .header-actions { order: 2; margin-left: auto; }
  .header-phone { display: none; }
  .header-actions .btn--sm { font-size: 15px; padding: 10px 16px; }

  .nav-toggle {
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 10px 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--on-dark-3);
  }
  .nav-toggle__label { display: none; }
  .nav-toggle__bars {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: background-color var(--ease);
  }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform var(--ease);
  }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-open .nav-toggle__bars { background: transparent; }
  .nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    order: 4;
    flex: 1 0 100%;
    display: none;
    border-top: 1px solid var(--border-dark);
    margin-top: 4px;
    padding: 8px 0 12px;
  }
  .nav-open .nav { display: block; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--border-dark); }

  .nav__link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 22px;
    padding: 14px 0;
    border-bottom: 0;
    text-align: left;
  }
  .nav__link.is-active { border-bottom: 0; }
  .nav__link .chevron { width: 12px; height: 8px; }

  .menu { position: static; padding: 0 0 14px; min-width: 0; }
  .menu__list { background: transparent; border: 0; border-left: 2px solid var(--logo-green); padding-left: 14px; }
  .menu__list li + li { border-top: 0; }
  .menu__list a {
    padding: 8px 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--on-dark);
    border-left: 0;
    white-space: normal;
  }
  .menu__list a:hover { background: transparent; color: #FFFFFF; }
  .menu__all a { font-weight: 500; color: var(--on-dark-3); }

  .nav__mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--on-dark-3);
  }
}

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */
/* full-bleed fotografija preko cijelog heroja, tekst na zatamnjenoj lijevoj strani */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  min-height: clamp(520px, 74vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__copy {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 9vw, 128px) clamp(20px, 4vw, 56px) clamp(64px, 8vw, 112px) var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  max-width: 820px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-wrap: balance;
}
.hero__lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-dark-2);
  max-width: 50ch;
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* LED točkica ispred eyebrowa — veza na zelenu iz loga */
.hero .eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  vertical-align: 1px;
  background: var(--logo-green);
  box-shadow: 0 0 10px rgba(28, 255, 118, 0.65);
  animation: led 2.6s ease-in-out infinite;
}
@keyframes led {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink-soft);
}
/* pozornica: spori zoom, u njoj su bazna fotka i sloj kockica */
.hero__stage {
  position: absolute;
  inset: 0;
  transform-origin: 60% 60%;
  animation: hero-zoom 30s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 62% 62%);
}
/* dron video: iznad bazne fotke, vidljiv tek kad krene (bez crnog bljeska) */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transition: opacity 700ms ease-out;
}
.hero__video.is-playing { opacity: 1; }

/* slideshow: nova fotka se slaže iz kockica, red po red od dna (kao cigle) */
.hero__tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 8), 1fr);
  grid-template-rows: repeat(var(--rows, 5), 1fr);
  pointer-events: none;
}
.hero__tiles:empty { display: none; }
.tile {
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: tile-in 560ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}
.tile img {
  position: absolute;
  max-width: none;               /* globalni img{max-width:100%} bi stegnuo sliku na širinu kockice */
  left: calc(-100% * var(--x));
  top: calc(-100% * var(--y));
  width: calc(100% * var(--cols, 8));
  height: calc(100% * var(--rows, 5));
  object-fit: cover;
  object-position: var(--pos, 62% 62%);
}
@keyframes tile-in {
  0%   { opacity: 0; transform: translateY(22px) scale(0.86); box-shadow: inset 0 0 0 1px rgba(26, 25, 23, 0.9); }
  65%  { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px rgba(26, 25, 23, 0.9); }
  100% { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px rgba(26, 25, 23, 0); }
}
/* razgradnja: kockice odlaze od vrha prema dnu i otkrivaju video */
.tile.is-out {
  animation: tile-out 480ms cubic-bezier(0.4, 0, 0.6, 1) forwards;
  animation-delay: var(--do, 0ms);
}
@keyframes tile-out {
  0%   { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px rgba(26, 25, 23, 0.9); }
  100% { opacity: 0; transform: translateY(-18px) scale(0.9); box-shadow: inset 0 0 0 1px rgba(26, 25, 23, 0.9); }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* samo prijelaz iz tamnog stupca s tekstom — desna polovica fotke je čista */
  background: linear-gradient(90deg, #1A1917 0%, rgba(26, 25, 23, 0.88) 20%, rgba(26, 25, 23, 0.45) 40%, rgba(26, 25, 23, 0) 58%);
}

/* ulazna animacija teksta u heroju */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero__copy > :nth-child(2) { animation-delay: 90ms; }
  .hero__copy > :nth-child(3) { animation-delay: 180ms; }
  .hero__copy > :nth-child(4) { animation-delay: 270ms; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* mobilni hero: fotografija kao vodoravna traka na vrhu (vidi se cijelo gradilište), tekst ispod na tamnom */
@media (max-width: 759.98px) {
  .hero { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .hero__media {
    position: relative;
    inset: auto;
    order: -1;
    height: clamp(230px, 64vw, 320px);
  }
  .hero__stage { transform-origin: 50% 60%; }
  .hero__media::after { display: none; }   /* čista fotka, bez overlaya */
  .hero__copy {
    max-width: none;
    padding: 30px var(--pad-x) 40px;
    gap: 18px;
  }
  .hero .eyebrow { font-size: 11px; letter-spacing: 0.1em; }
  .hero .eyebrow::before { margin-right: 9px; }
  .hero__title { font-size: clamp(40px, 12vw, 54px); }
  .hero__lead { font-size: 17px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 6px; }
  .hero__actions .btn { font-size: 18px; padding: 16px 24px; }
}

/* --------------------------------------------------------------------------
   3. Traka brojki
   -------------------------------------------------------------------------- */
.stats {
  background: var(--border-dark-2);        /* 1px razmaci = granice u oba smjera */
  border-top: 1px solid var(--border-dark);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
}
.stat {
  background: var(--ink-deep);
  padding: clamp(26px, 3.4vw, 40px) clamp(20px, 2.6vw, 32px);
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}
.stat__value--accent { color: var(--green-light); }
.stat__unit {
  font-size: 0.46em;
  font-weight: 600;
  color: var(--on-dark-2);
  margin-left: 0.18em;
  letter-spacing: 0.02em;
}
.stat__label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 8px;
}
/* mobilni: četiri brojke u dva reda */
@media (max-width: 599.98px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 18px; }
  .stat__value { font-size: clamp(30px, 9vw, 38px); }
  .stat__label { font-size: 10px; letter-spacing: 0.04em; line-height: 1.35; margin-top: 6px; }
}

/* --------------------------------------------------------------------------
   4. Partneri
   -------------------------------------------------------------------------- */
.partners {
  background: var(--bg-alt);
  padding: clamp(24px, 3vw, 34px) var(--pad-x);
  display: flex;
  align-items: center;
  gap: 16px clamp(20px, 3.4vw, 48px);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.partners__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
/* beskonačna traka logotipa — pomiče se slijeva nadesno, pauza na hover */
.partners__marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.partners__track { display: flex; width: max-content; }
.partners__set { display: flex; align-items: center; gap: 20px; padding-right: 20px; }
.partners__marquee.is-animated .partners__track { animation: partners-scroll 32s linear infinite; }
.partners__marquee:hover .partners__track { animation-play-state: paused; }
@keyframes partners-scroll {
  from { transform: translateX(-20%); }  /* 5 identičnih setova → pomak od točno jednog seta */
  to   { transform: translateX(0); }
}
.partners__logo {
  background: #FFFFFF;
  height: 62px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partners__logo img { width: auto; object-fit: contain; }
.partners__logo--strabag img { height: 38px; }
.partners__logo--kamgrad img { height: 30px; }
.partners__logo--tromont img { height: 32px; }
.partners__logo--mdk img { height: 34px; }

@media (max-width: 599.98px) {
  .partners__label { flex-basis: 100%; }
  .partners__set { gap: 12px; padding-right: 12px; }
  .partners__logo { height: 54px; padding: 0 14px; }
}

/* --------------------------------------------------------------------------
   Sekcije — zaglavlje
   -------------------------------------------------------------------------- */
.section { padding: var(--pad-y) var(--pad-x); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.section__head .section__title { margin-top: 14px; }
.section__intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 42ch;
}

/* --------------------------------------------------------------------------
   5. Usluge
   -------------------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service {
  position: relative;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background-color var(--ease);
}
.service:hover { background: var(--surface-hover); }
.service:hover .link-more { color: var(--brand-green); border-bottom-color: var(--brand-green); }
.service .link-more::after { content: "→"; display: inline-block; margin-left: 8px; transition: transform var(--ease); }
.service:hover .link-more::after { transform: translateX(4px); }
.service__img {
  height: 240px;
  width: 100%;
  object-fit: cover;
  background: #E6E2DA;
  transition: transform 600ms ease-out;
}
.service:hover .service__img { transform: scale(1.04); }
.service__body {
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.service__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--green-dark);
}
.service__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
}
.service__desc { font-size: 14px; line-height: 1.65; color: var(--text-body); flex: 1; }

.services__dots { display: none; }

/* link na pregled usluga s presjekom izvedbe (blok je s naslovnice premješten na /usluge/) */
.services__foot { display: flex; justify-content: flex-end; margin-top: 28px; }
.services__foot .link-more::after { content: "→"; display: inline-block; margin-left: 8px; transition: transform var(--ease); }
.services__foot .link-more:hover::after { transform: translateX(4px); }
@media (max-width: 759.98px) { .services__foot { justify-content: center; margin-top: 18px; } }

/* mobilni: vodoravna traka s jednom karticom u kadru i listanjem prstom */
@media (max-width: 759.98px) {
  .services__grid {
    display: flex;
    gap: 12px;
    background: transparent;
    border: 0;
    margin: 0 calc(-1 * var(--pad-x));
    padding: 0 var(--pad-x) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--pad-x);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .services__grid::-webkit-scrollbar { display: none; }
  .service {
    flex: 0 0 82%;
    max-width: 340px;
    scroll-snap-align: start;
    border: 1px solid var(--border);
  }
  .service__img { height: 200px; }
  .service__body { padding: 20px 20px 24px; gap: 10px; }
  .service__title { font-size: 25px; }

  .services__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
  }
  .services__dots button {
    width: 10px;
    height: 10px;
    background: var(--border);
    transition: background-color var(--ease), transform var(--ease);
  }
  .services__dots button[aria-selected="true"] { background: var(--green); transform: scale(1.25); }
}

/* --------------------------------------------------------------------------
   6. Projekti
   -------------------------------------------------------------------------- */
.projects { background: var(--ink); }
.projects .section__title { color: #FFFFFF; }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  grid-auto-rows: minmax(300px, auto);
  gap: 16px;
}
.project {
  position: relative;
  isolation: isolate;
  min-width: 0;
  background: var(--ink-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 8px;
  overflow: hidden;
}
.project__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease-out;
}
.project:hover .project__img { transform: scale(1.03); }
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* fotka ostaje čista; tamni se samo donji pojas pod naslovom */
  background: linear-gradient(180deg, rgba(20, 19, 15, 0) 0%, rgba(20, 19, 15, 0) 52%, rgba(20, 19, 15, 0.55) 74%, rgba(20, 19, 15, 0.9) 100%);
}
.project__badge,
.project__top,
.project__caption { position: relative; z-index: 2; }

/* timestamp — veliki datum izvedbe, gore desno */
.project__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
/* pločica: tamna podloga da datum ostane čitljiv na čistoj fotki */
.stamp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 10px 14px 12px;
  border-top: 2px solid var(--logo-green);
  background: rgba(20, 19, 15, 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  text-align: right;
}
.project--lead .stamp { padding: 12px 18px 14px; }
.project:not(.project--lead) .stamp {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}
.project--lead .project__top { margin: -26px -26px 0 -26px; padding: 0; }
.project--lead .project__badge { margin: 26px 0 0 26px; }
.stamp__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.stamp__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 0.9;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stamp__date em { font-style: normal; color: var(--logo-green); }
.project--lead .stamp__date { font-size: clamp(48px, 5.4vw, 72px); }

.project--lead {
  grid-column: 1 / -1;
  min-height: clamp(340px, 54vw, 720px);
  justify-content: space-between;
  padding: 26px;
}
@media (max-width: 759.98px) {
  .stamp__date { font-size: 32px; }
  .project--lead .stamp__date { font-size: 44px; }
  .stamp { padding: 8px 12px 10px; }
  .project--lead .stamp { padding: 10px 14px 12px; }
}
.project--lead::before {
  background: linear-gradient(180deg, rgba(20, 19, 15, 0) 0%, rgba(20, 19, 15, 0) 58%, rgba(20, 19, 15, 0.5) 78%, rgba(20, 19, 15, 0.88) 100%);
}
.project__badge {
  align-self: flex-start;
  background: var(--green);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 12px;
}
.project__caption { display: flex; flex-direction: column; gap: 8px; }
.project--lead .project__caption { gap: 10px; }
.project__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.05;
  text-transform: uppercase;
  color: #FFFFFF;
}
.project--lead .project__title { font-size: 38px; line-height: 1; }
.project__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--on-dark-2);
}
.project--lead .project__meta { font-size: 12px; color: var(--on-dark); }

/* --------------------------------------------------------------------------
   7. O nama
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.about__copy { display: flex; flex-direction: column; gap: 26px; }
.about__text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 54ch;
  text-wrap: pretty;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 8px;
  max-width: 640px;
}
.feature { background: var(--surface); padding: 22px 20px; }
.feature dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
}
.feature dd { font-size: 14px; line-height: 1.6; color: var(--text-body); margin-top: 8px; }

.about__aside { display: flex; flex-direction: column; gap: 16px; }
.about__img { height: 380px; width: 100%; object-fit: cover; background: #E6E2DA; }

.quote {
  background: var(--surface);
  border-left: 3px solid var(--green);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote blockquote { margin: 0; }
.quote p { font-size: 17px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.quote figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. CTA — obrazac za ponudu
   -------------------------------------------------------------------------- */
.cta { background: var(--green); padding: clamp(52px, 6.5vw, 80px) var(--pad-x); }
.cta__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.cta__copy { display: flex; flex-direction: column; gap: 18px; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 0.98;
  text-transform: uppercase;
  color: #FFFFFF;
  text-wrap: balance;
}
.cta__text { font-size: 17px; line-height: 1.6; color: var(--green-pale); max-width: 44ch; }
.cta__contacts {
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}
.cta__contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cta__form-wrap { container-type: inline-size; }

.quote-form {
  background: var(--surface);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@container (max-width: 430px) {
  .quote-form { grid-template-columns: minmax(0, 1fr); }
}

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  background: var(--surface-hover);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #A39E92; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7' fill='none'%3E%3Cpath d='M1 1.5L5 5.5L9 1.5' stroke='%231A1917' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field textarea { resize: vertical; min-height: 96px; }

.field--check {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}
.field--check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--green);
  flex: 0 0 auto;
}
.field--check label {
  flex: 1;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}
.field--check .field__error { flex-basis: 100%; }

.field__error { display: none; font-size: 12px; line-height: 1.4; color: var(--error); }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--error); }
.field.is-invalid label { color: var(--error); }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-msg {
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  border-left: 3px solid var(--error);
  background: var(--error-bg);
  color: var(--error);
}

.quote-form .btn--dark { width: 100%; padding: 17px; }

.form-success {
  background: var(--surface);
  border-top: 3px solid var(--ink);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-success__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
}
.form-success__text { font-size: 15px; line-height: 1.6; color: var(--text-body); }
.form-success__hint { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.form-success__hint a { color: var(--green-dark); border-bottom: 1px solid currentColor; }
.form-success__hint a:hover { color: var(--brand-green); }
.form-success .link-more { margin-top: 6px; }

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-deep);
  color: var(--text-dim);
  padding: clamp(44px, 6vw, 64px) var(--pad-x) 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: clamp(30px, 4vw, 48px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark-2);
}
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__brand img { height: 46px; width: auto; align-self: flex-start; }
.footer__brand p { font-size: 14px; line-height: 1.7; max-width: 34ch; }

.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { transition: color var(--ease); }
.footer__col a:hover { color: #FFFFFF; }
.footer__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.footer__bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   PODSTRANICE (case study projekta, usluga)
   ========================================================================== */

/* hero podstranice: fotka, tekst na zatamnjenom dnu */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  min-height: clamp(400px, 58vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 25, 23, 0.15) 0%, rgba(26, 25, 23, 0.10) 28%, rgba(26, 25, 23, 0.78) 60%, #1A1917 100%);
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(120px, 18vh, 200px) var(--pad-x) clamp(36px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.page-hero__meta { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-wrap: balance;
}
.page-hero__lead { font-size: 18px; line-height: 1.6; color: var(--on-dark-2); max-width: 60ch; text-wrap: pretty; }
.page-hero .hero__actions { margin-top: 6px; }

.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.breadcrumb a:hover { color: #FFFFFF; }
.breadcrumb span:not([aria-current]) { color: var(--text-dim); }
.breadcrumb [aria-current] { color: var(--logo-green); }
/* natpisi preko svijetle fotke dobivaju tamnu pločicu */
.page-hero .breadcrumb,
.page-hero .eyebrow {
  background: rgba(20, 19, 15, 0.66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 7px 10px;
}

/* ključni podaci: isti raster kao brojke, tekstualne vrijednosti manje */
.facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
@media (max-width: 599.98px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.timeline, .process { margin: 0; padding: 0; list-style: none; }
.stat__value--text { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; padding-top: 0.35em; }
.facts .stat__value { font-size: clamp(34px, 3.4vw, 48px); }
.facts .stat__value--text { font-size: clamp(22px, 2.2vw, 30px); }

/* opis projekta */
.case__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 900px) { .case__grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); } }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  text-transform: uppercase;
  margin: 12px 0 16px;
  text-wrap: balance;
}
.prose p { font-size: 17px; line-height: 1.65; color: var(--text-body); max-width: 62ch; text-wrap: pretty; }
.prose p + .eyebrow, .prose ul + .eyebrow { display: block; margin-top: 44px; }
.checklist { margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
.checklist li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.55; color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--green); }

.case__aside { display: flex; flex-direction: column; gap: 16px; }
.case__aside .btn { align-self: stretch; }
.facts-list { background: var(--surface); border: 1px solid var(--border); }
.facts-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 14px 18px; }
.facts-list > div + div { border-top: 1px solid var(--border); }
.facts-list dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding-top: 3px; }
.facts-list dd { font-size: 15px; line-height: 1.45; color: var(--text); }

/* tijek radova */
.timeline-section { background: var(--ink); }
.timeline-section .section__title { color: #FFFFFF; }
.section__intro--dark { color: var(--on-dark); }
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  counter-reset: faza;
}
.timeline__item { background: var(--ink-deep); padding: 24px 22px 28px; display: flex; flex-direction: column; gap: 10px; }
.timeline__item::before { content: ""; display: block; width: 32px; height: 2px; background: var(--logo-green); margin-bottom: 4px; }
.timeline__phase { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); }
.timeline__date { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 0.95; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.timeline__date em { font-style: normal; color: var(--logo-green); }
.timeline__item h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.1; text-transform: uppercase; color: #FFFFFF; }
.timeline__item p { font-size: 14px; line-height: 1.6; color: var(--on-dark); }

/* galerija + lightbox */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  grid-auto-rows: clamp(200px, 22vw, 300px);
  grid-auto-flow: dense;
  gap: 12px;
}
.gallery__item { display: block; overflow: hidden; background: var(--ink-soft); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease-out; }
.gallery__item:hover img { transform: scale(1.04); }
@media (min-width: 760px) { .gallery__item--wide { grid-column: span 2; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
.lightbox::backdrop { background: rgba(20, 19, 15, 0.94); }
.lightbox img { display: block; max-width: 94vw; max-height: 88vh; width: auto; height: auto; }
.lightbox__close {
  position: fixed;
  top: 16px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  padding: 10px 14px;
  border: 1px solid var(--outline-dark);
  background: var(--ink);
}
.lightbox__close:hover { border-color: var(--logo-green); }

/* CTA bez obrasca */
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.cta .btn--outline { border-color: rgba(255, 255, 255, 0.55); color: #FFFFFF; }
.cta .btn--outline:hover { border-color: #FFFFFF; }
@media (max-width: 759.98px) { .cta__actions { justify-content: stretch; flex-direction: column; } }

/* usluga: što izvodimo */
.offer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));   /* 3 / 2 / 1 stupca — 6 stavki bez praznih polja */
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.offer__item { background: var(--surface); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 12px; transition: background-color var(--ease); }
.offer__item:hover { background: var(--surface-hover); }
.offer__item::before { content: ""; display: block; width: 32px; height: 2px; background: var(--green); }
.offer__item h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.offer__item p { font-size: 14px; line-height: 1.65; color: var(--text-body); }

/* usluga: kako radimo (stvarni redoslijed, zato brojevi) */
.process-section { background: var(--ink); }
.process-section .section__title { color: #FFFFFF; }
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
}
.process__step { background: var(--ink-deep); padding: 24px 22px 28px; display: flex; flex-direction: column; gap: 10px; }
.process__num { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--logo-green); }
.process__step h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.1; text-transform: uppercase; color: #FFFFFF; }
.process__step p { font-size: 14px; line-height: 1.6; color: var(--on-dark); }

/* usluga: reference u tri stupca */
.projects__grid--three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); grid-auto-rows: minmax(320px, auto); }
/* klik na cijelu karticu: nevidljivi link preko cijelog boxa */
.card-link { position: absolute; inset: 0; z-index: 4; }
.card-link:focus-visible { outline-offset: -3px; }
.project:has(.card-link):hover .project__title { color: var(--logo-green); }
.project__more {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--logo-green);
  margin-top: 4px;
}
.project__more::after { content: "→"; display: inline-block; margin-left: 6px; transition: transform var(--ease); }
.project:hover .project__more::after { transform: translateX(4px); }

/* česta pitanja */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }
.faq-list { border-top: 1px solid var(--border); }
.faq { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
  transition: color var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform var(--ease);
}
.faq[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--green-dark); }
.faq p { padding: 0 0 20px; font-size: 16px; line-height: 1.65; color: var(--text-body); max-width: 62ch; }

/* lokalni SEO blok */
.local-seo { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(36px, 5vw, 56px) var(--pad-x); }
.local-seo h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1; text-transform: uppercase; margin: 12px 0 14px; }
.local-seo p { font-size: 16px; line-height: 1.65; color: var(--text-body); max-width: 78ch; }

/* --------------------------------------------------------------------------
   Mobilna traka za brzi kontakt (Pozovi · WhatsApp · Ponuda)
   -------------------------------------------------------------------------- */
.quickbar { display: none; }
@media (max-width: 759.98px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .quickbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--ink-deep);
    border-top: 1px solid var(--border-dark);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .quickbar__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--on-dark-3);
    border-right: 1px solid var(--border-dark);
  }
  .quickbar__item--wa { color: var(--logo-green); }
  .quickbar__item--cta { background: var(--green); color: #FFFFFF; font-weight: 700; border-right: 0; }
  .site-footer { padding-bottom: 28px; }
}

/* --------------------------------------------------------------------------
   Pristupačnost — smanjeno kretanje
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .project:hover .project__img { transform: none; }
}

/* ==========================================================================
   PREGLED USLUGA  (/usluge/)
   Presjek objekta po fazama izvedbe je hero te stranice, a ispod njega ide
   traka od šest faza. Redoslijed je gradilišni, ne redoslijed kartica usluga —
   zato svaka faza navodi na koju se struku odnosi i vodi na njezinu karticu.
   Na naslovnici je blok maknut (bila je pretrpana); ostao je samo link.
   ========================================================================== */

.usluge-hero {
  background: var(--ink);
  padding: clamp(40px, 5.5vw, 76px) var(--pad-x) clamp(28px, 3.5vw, 48px);
}
.usluge-hero__grid {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.usluge-hero__grid > * { min-width: 0; }

.usluge-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.usluge-hero .breadcrumb { margin-bottom: -6px; }
/* ista LED točkica kao u heroju naslovnice */
.usluge-hero .eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  vertical-align: 1px;
  background: var(--logo-green);
  box-shadow: 0 0 10px rgba(28, 255, 118, 0.65);
  animation: led 2.6s ease-in-out infinite;
}
.usluge-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-wrap: balance;
}
.usluge-hero__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-dark-2);
  max-width: 48ch;
  text-wrap: pretty;
}

@media (prefers-reduced-motion: no-preference) {
  .usluge-hero__copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .usluge-hero__copy > :nth-child(2) { animation-delay: 90ms; }
  .usluge-hero__copy > :nth-child(3) { animation-delay: 180ms; }
  .usluge-hero__copy > :nth-child(4) { animation-delay: 270ms; }
  .usluge-hero__copy > :nth-child(5) { animation-delay: 360ms; }
}

/* „list papira": crtež stoji na bijeloj plohi na tamnoj podlozi */
.usluge-hero__platno {
  position: relative;
  background: var(--surface);
  padding: clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px) clamp(36px, 3.2vw, 46px);
}
.presjek { display: block; width: 100%; height: auto; }
.usluge-hero__natpis {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(12px, 1.4vw, 18px);
  margin: 0;
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── traka faza ─────────────────────────────────────────────────────────── */

.faze {
  background: var(--ink);
  padding: 0 var(--pad-x) clamp(40px, 5.5vw, 76px);
}
.faze__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--content);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
}
.faza {
  background: var(--ink-deep);
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
  transition: border-color var(--ease), background-color var(--ease);
}
.faza button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 12px;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.faza button:focus-visible { outline: 2px solid var(--logo-green); outline-offset: -4px; }
.faza__broj {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  transition: color var(--ease);
}
.faza__tekst { display: block; min-width: 0; }
.faza__naziv {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.06;
  text-transform: uppercase;
  color: #FFFFFF;
}
.faza__struka {
  display: block;
  margin-top: 6px;
  font: 400 11px/1.35 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
/* link na karticu usluge; izvan gumba jer gumb ne smije sadržavati link */
.faza__link {
  align-self: flex-start;
  margin: 0 18px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark);
  border-bottom: 1px solid var(--outline-dark);
  padding-bottom: 2px;
  line-height: 1.1;
  transition: color var(--ease), border-color var(--ease);
}
.faza__link::after { content: "→"; display: inline-block; margin-left: 6px; transition: transform var(--ease); }
.faza__link:hover { color: #FFFFFF; border-bottom-color: var(--logo-green); }
.faza__link:hover::after { transform: translateX(3px); }

.faza:hover { background: var(--ink-soft); }
.faza[aria-current="true"] { border-top-color: var(--logo-green); background: var(--ink-soft); }
.faza[aria-current="true"] .faza__broj { color: var(--logo-green); }
.faza[aria-current="true"] .faza__struka { color: var(--green-light); }

/* ── crtež ──────────────────────────────────────────────────────────────── */

.p-tanka   { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.p-teren   { fill: none; stroke: var(--text-body); stroke-width: 1.6; }
.p-beton   { fill: #E8E4DB; stroke: var(--ink); stroke-width: 1.6; }
.p-zid     { fill: var(--border); stroke: var(--ink); stroke-width: 1.6; }
.p-fasada  { fill: url(#p-izo); stroke: var(--text-body); stroke-width: 1.2; }
/* šrafura izolacije: siva kao ostatak crteža; zelena samo dok se fasada radi (:has na svg-u,
   jer pattern nije unutar .p-korak; bez :has ostaje siva, a obrub svejedno pozeleni) */
.presjek #p-izo rect { fill: var(--bg-alt); transition: fill 0.7s ease; }
.presjek #p-izo path { stroke: #B9B4A8; transition: stroke 0.7s ease; }
.presjek:has(.p-korak[data-k="5"].je-tekuci) #p-izo rect { fill: #EAF4EE; }
.presjek:has(.p-korak[data-k="5"].je-tekuci) #p-izo path { stroke: var(--green-light); }
.p-pod     { fill: none; stroke: var(--text-body); stroke-width: 1.2; }
.p-vik     { fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; }
.p-elektro { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.p-cvor    { fill: var(--blue); }
.p-iskop   { fill: var(--bg-alt); stroke: var(--text-body); stroke-width: 1.4; stroke-dasharray: 5 4; }

.p-oznaka { font: 500 11px/1 var(--font-mono); fill: var(--text-muted); letter-spacing: 0.06em; }
.p-kota   { font: 400 10px/1 var(--font-mono); fill: var(--text-muted); }

.p-korak { opacity: 0; transition: opacity 0.5s ease; }
.p-korak.je-vidljiv { opacity: 1; }

/* tekuća faza: ono što se upravo gradi je zeleno (ista zelena kao instalacije, ne kričava iz
   loga — ovo je bijeli papir), pa kad faza prođe izblijedi u tehničke boje crteža */
.p-korak * { transition: fill 0.7s ease, stroke 0.7s ease, stroke-width 0.3s ease; }
.p-korak.je-tekuci .p-iskop  { stroke: var(--green); fill: var(--green-pale); }
.p-korak.je-tekuci .p-beton,
.p-korak.je-tekuci .p-zid    { stroke: var(--green); fill: var(--green-pale); stroke-width: 2.6; }
.p-korak.je-tekuci .p-fasada { stroke: var(--green); stroke-width: 2; }   /* šrafuru boji pravilo s :has gore */
.p-korak.je-tekuci .p-pod    { stroke: var(--green); stroke-width: 2; }
.p-korak.je-tekuci .p-tanka  { stroke: var(--green); }
.p-korak.je-tekuci .p-vik    { stroke-width: 3.4; }                        /* VIK je ionako zelen */
.p-korak.je-tekuci .p-elektro { stroke: var(--green); stroke-width: 3; }   /* elektro: zeleno dok traje, pa plavo */
.p-korak.je-tekuci .p-cvor   { fill: var(--green); }
.p-korak.je-tekuci .p-oznaka,
.p-korak.je-tekuci .p-kota   { fill: var(--green-dark); }

/* ── responzivno ────────────────────────────────────────────────────────── */

@media (max-width: 1199.98px) {
  .faze__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899.98px) {
  .usluge-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .usluge-hero__lead { max-width: 60ch; }
}
/* SVG tekst skalira s viewBoxom, pa na uskom ekranu postane nečitljiv */
@media (max-width: 640px) {
  .p-oznaka { font-size: 16px; }
  .p-kota   { font-size: 15px; }
}
@media (max-width: 599.98px) {
  .usluge-hero { padding-top: 30px; }
  .usluge-hero__copy { gap: 16px; }
  .usluge-hero .eyebrow { font-size: 11px; letter-spacing: 0.1em; }
  .usluge-hero .eyebrow::before { margin-right: 9px; }
  .usluge-hero__title { font-size: clamp(38px, 11vw, 52px); }
  .usluge-hero__lead { font-size: 16px; }
  .usluge-hero .hero__actions { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .usluge-hero .hero__actions .btn { font-size: 18px; padding: 16px 24px; }
  .usluge-hero__platno { padding-bottom: 34px; }

  .faze__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faza button { padding: 14px 14px 10px; gap: 8px; }
  .faza__broj { font-size: 28px; }
  .faza__naziv { font-size: 18px; }
  .faza__link { margin: 0 14px 14px; font-size: 14px; }
}

/* Obrazac: površina i prilozi */
.field__opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: #8A857A; }
.field--file input[type="file"] { padding: 10px; background: var(--surface-hover); cursor: pointer; font-size: 14px; }
.field--file input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.field__hint { font-size: 12px; line-height: 1.4; color: #8A857A; }
.field__files { font-size: 13px; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.field__files:empty { display: none; }

/* Karta u sekciji Kontakt */
.cta__map {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  margin-top: clamp(36px, 5vw, 56px);
  background: #FFFFFF;
}
.cta__map iframe { display: block; width: 100%; height: clamp(260px, 32vw, 380px); border: 0; }
.cta__map-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(20px, 3vw, 36px);
}
.cta__map-address { font-size: 15px; line-height: 1.7; color: var(--text); }
@media (max-width: 760px) {
  .cta__map { grid-template-columns: 1fr; }
}

/* Politika privatnosti */
.legal__inner { max-width: 76ch; }
.legal .breadcrumb a { color: var(--text-muted); }
.legal .breadcrumb a:hover { color: var(--text); }
.legal .breadcrumb [aria-current] { color: var(--green); }
.legal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.98;
  text-transform: uppercase;
  margin: 18px 0 8px;
}
.legal__date { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  text-transform: uppercase;
  margin: 34px 0 10px;
}
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 8px; margin-bottom: 12px; }
.legal a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.field--check label a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
