/* =========================================================
   ThermoDrone Solar – stilovi
   ========================================================= */
:root {
  --navy-950: #050d17;
  --navy-900: #07121f;
  --navy-800: #0b1b2e;
  --navy-700: #10263f;
  --navy-600: #183553;
  --orange: #ff8c1a;
  --orange-600: #f07400;
  --orange-soft: rgba(255, 140, 26, .14);
  --text: #eef3f9;
  --muted: #9fb0c4;
  --line: rgba(255, 255, 255, .12);
  --ink: #0b1b2e;
  --ink-muted: #5b6b7f;
  --light-bg: #f5f7fa;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .55);
  --container: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--orange); color: #111; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--primary { background: linear-gradient(180deg, #ff9a33, var(--orange-600)); color: #fff; box-shadow: 0 10px 28px -10px rgba(255, 140, 26, .8); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(255, 140, 26, .9); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(7, 18, 31, .25); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .4); background: rgba(7, 18, 31, .3);
  transition: background .25s, border-color .25s, color .25s, opacity .25s;
}
.round-btn:hover:not(:disabled) { background: #fff; color: var(--ink); border-color: #fff; }
.round-btn:disabled { opacity: .3; cursor: default; }

/* ---------- Tipografija sekcija ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: #cfdbe8; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--orange); flex: none; }
.eyebrow--dark { color: var(--ink-muted); }
.eyebrow--center { justify-content: center; }
.eyebrow--hero { display: block; line-height: 1.9; letter-spacing: .42em; color: #dbe6f2; }
.eyebrow--hero::before { display: none; }
.eyebrow--hero b { font-weight: 700; }
.eyebrow--hero::after { content: ""; display: block; width: 46px; height: 2px; background: var(--orange); margin-top: 14px; }

.h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -.01em; }
.h2__thin { font-weight: 400; }
.accent { color: var(--orange); }

.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section--dark { background: radial-gradient(1200px 500px at 85% 0%, rgba(24, 53, 83, .55), transparent 60%), var(--navy-800); }
.section--darker { background: var(--navy-900); }
.section--light { background: var(--light-bg); color: var(--ink); }

.section-head {
  display: grid; grid-template-columns: 1fr minmax(0, 460px) auto; align-items: end; gap: 24px 48px;
  margin-bottom: 44px;
}
.section-head__text { color: var(--muted); font-size: 16px; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.carousel-ctrl { display: flex; gap: 12px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .35s, height .35s, box-shadow .35s, backdrop-filter .35s;
}
.header.is-scrolled {
  --header-h: 70px;
  background: rgba(7, 18, 31, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -10px rgba(0, 0, 0, .5);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 50px; height: 50px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.logo__sub { font-size: 14px; font-weight: 600; letter-spacing: .42em; color: var(--orange); margin-top: 4px; }

.nav { display: flex; gap: 36px; margin: 0 auto; }
.nav__link { position: relative; padding: 8px 0; font-weight: 500; font-size: 15.5px; color: #dbe6f2; transition: color .2s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2.5px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(7, 18, 31, .35); place-items: center; }
.burger .ic { width: 24px; height: 24px; }

/* ---------- Mobilni meni ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 150; background: rgba(3, 9, 16, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: absolute; inset: 0 0 0 auto; width: min(420px, 100%);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
  display: flex; flex-direction: column; padding: 18px 24px calc(28px + env(safe-area-inset-bottom));
  transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto;
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu__top .burger { display: grid; }
.mobile-menu__nav { display: flex; flex-direction: column; margin: 40px 0 auto; }
.mobile-menu__nav a { font-size: 28px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line); transition: color .2s, padding .3s var(--ease); }
.mobile-menu__nav a:hover { color: var(--orange); padding-left: 8px; }
.mobile-menu__bottom { display: grid; gap: 12px; margin-top: 36px; }
.mobile-menu__loc { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(680px, 100svh); display: flex;
  background: var(--navy-900); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0 0 0 auto; width: 68%; z-index: -2; }
.hero__bg { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__bg.is-active { opacity: 1; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.hero__bg.is-active img { animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 0% 40%, rgba(16, 52, 92, .65), transparent 70%),
    linear-gradient(180deg, rgba(7, 18, 31, .55) 0%, transparent 22%, transparent 62%, rgba(7, 18, 31, .92) 100%),
    linear-gradient(90deg, rgba(7, 18, 31, .55) 25%, transparent 60%);
}
.hero__inner {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + 60px); padding-bottom: 40px; width: 100%;
}
.hero__aside {
  position: absolute; top: calc(var(--header-h) + 36px); right: 24px;
  display: flex; align-items: center; gap: 18px; font-size: 14px; color: #dbe6f2;
}
.hero__loc { display: inline-flex; align-items: center; gap: 8px; }
.hero__dash { width: 40px; height: 1px; background: rgba(255, 255, 255, .5); }
.hero__motto { font-size: 15px; font-style: italic; font-weight: 300; line-height: 1.35; }

.hero__content { max-width: 680px; margin-top: auto; }
.hero__slides { display: grid; }
.hero__slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero__title {
  font-size: clamp(42px, 6.4vw, 78px); font-weight: 700; line-height: 1.02; letter-spacing: -.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35); margin: 18px 0 22px;
}
.hero__title span { color: var(--orange); }
.hero__lead { font-size: clamp(16px, 1.5vw, 19px); color: #dbe6f2; max-width: 500px; font-weight: 300; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: auto; padding-top: 56px; }
.hero__features { display: flex; flex-wrap: wrap; }
.hero__features li {
  display: flex; align-items: center; gap: 12px; padding: 4px 26px; font-size: 14.5px; line-height: 1.3; color: #e4ecf5;
  border-left: 1px solid rgba(255, 255, 255, .22);
}
.hero__features li:first-child { padding-left: 0; border-left: 0; }
.hero__features .ic { width: 30px; height: 30px; stroke-width: 1.5; }

.slider-ctrl { display: flex; align-items: center; gap: 16px; flex: none; }
.slider-ctrl__count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.slider-ctrl__count b { color: #fff; font-weight: 600; }
.slider-ctrl__bar { width: 60px; height: 2px; background: rgba(255, 255, 255, .2); border-radius: 2px; overflow: hidden; }
.slider-ctrl__bar i { display: block; height: 100%; width: 0; background: var(--orange); }

/* ---------- Usluge (kartice) ---------- */
.cards-track {
  display: grid; grid-auto-flow: column; gap: 18px;
  grid-auto-columns: calc((100% - 4 * 18px) / 5);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 6px;
}
.cards-track::-webkit-scrollbar { display: none; }

.service {
  scroll-snap-align: start; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(16, 38, 63, .9), rgba(7, 18, 31, .95));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.service:hover { transform: translateY(-6px); border-color: rgba(255, 140, 26, .5); box-shadow: var(--shadow); }
.service__img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.service__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 26, 44, .95)); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service:hover .service__img img { transform: scale(1.06); }
.service__body { display: flex; flex-direction: column; flex: 1; padding: 6px 22px 24px; }
.service__icon { width: 34px; height: 34px; color: var(--orange); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin: -18px 0 14px; position: relative; }
.service h3 { font-size: 19px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.link-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 600; font-size: 14px; }
.link-more .ic { transition: transform .25s var(--ease); }
.link-more:hover .ic { transform: translateX(4px); }

/* ---------- Statistika ---------- */
.stats { background: #fff; color: var(--ink); padding: 44px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 20px; border-left: 1px solid #e3e8ef; }
.stat:first-child { border-left: 0; }
.stat__icon { width: 40px; height: 40px; color: var(--orange); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.stat strong { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat div > span { font-size: 14px; color: var(--ink-muted); }

/* ---------- Projekti ---------- */
.projects { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 56px; align-items: center; }
.projects__intro .h2 { color: var(--ink); margin-bottom: 20px; }
.projects__intro p { color: var(--ink-muted); margin-bottom: 30px; }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-700); box-shadow: 0 18px 40px -22px rgba(11, 27, 46, .55);
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project:hover img { transform: scale(1.07); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 18, 31, .2) 0%, transparent 30%, transparent 50%, rgba(7, 18, 31, .9) 100%); }
.project__tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
  background: rgba(7, 18, 31, .78); backdrop-filter: blur(6px); color: #fff; font-size: 13.5px; font-weight: 600;
}
.project__tag .ic { color: var(--orange); }
.project__info { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; color: #fff; }
.project__info strong { display: block; font-size: 24px; font-weight: 700; }
.project__info span { font-size: 14px; color: #cfdbe8; }

/* ---------- O nama ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about__media { position: relative; padding: 0 0 70px 0; }
.about__img-main { width: 88%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about__img-small {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 6px solid var(--navy-800); box-shadow: var(--shadow);
}
.about__badge {
  position: absolute; left: 22px; bottom: 30px; display: flex; align-items: center; gap: 12px;
  background: var(--orange); color: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: 0 16px 34px -14px rgba(255, 140, 26, .8);
}
.about__badge .ic { width: 30px; height: 30px; }
.about__badge strong { display: block; font-size: 17px; line-height: 1.2; }
.about__badge span { font-size: 13px; opacity: .9; }
.about__text .h2 { margin-bottom: 22px; }
.about__text > p { color: var(--muted); font-size: 17px; }
.checklist { display: grid; gap: 14px; margin: 28px 0 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); stroke-width: 3; margin-top: 1px; }
.quote { margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--orange); font-style: italic; font-weight: 300; font-size: 18px; color: #dbe6f2; }

/* ---------- Galerija ---------- */
.section-head--gallery { grid-template-columns: 1fr minmax(0, 460px); }
.section--light .h2 { color: var(--ink); }
.section--light .section-head__text { color: var(--ink-muted); }
/* 16 slika: g-big = 2x2, g-wide = 2x1, g-wide-md = 2x1 samo na tabletu -> puni redovi na 4, 3 i 2 kolone */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.gallery .g-big { grid-column: span 2; grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-big a, .gallery .g-wide a { aspect-ratio: auto; min-height: 100%; }
.gallery a {
  position: relative; display: block; height: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: #dde3ea; box-shadow: 0 14px 30px -20px rgba(11, 27, 46, .6);
}
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a::after {
  content: attr(data-caption); position: absolute; inset: auto 0 0; padding: 30px 16px 12px;
  color: #fff; font-size: 14px; font-weight: 500;
  background: linear-gradient(180deg, transparent, rgba(7, 18, 31, .85));
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease);
}
.gallery a:hover img { transform: scale(1.06); }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; transform: none; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(3, 9, 16, .94); color: #fff;
  display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: calc(100vw - 160px); }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 130px); border-radius: 10px; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { display: flex; gap: 18px; font-size: 15px; color: #dbe6f2; }
.lightbox figcaption #lightbox-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* ---------- Proces ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step {
  position: relative; padding: 32px 26px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.step:hover { border-color: rgba(255, 140, 26, .5); transform: translateY(-4px); }
.step__num { position: absolute; top: 22px; right: 24px; font-size: 44px; font-weight: 800; color: rgba(255, 255, 255, .06); line-height: 1; }
.step__icon { width: 52px; height: 52px; padding: 13px; border-radius: 14px; background: var(--orange-soft); color: var(--orange); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Kontakt ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.contact__info .h2 { margin-bottom: 20px; }
.contact__info > p { color: var(--muted); font-size: 17px; margin-bottom: 34px; }
.contact__list { display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); flex: none; }
.contact__ic .ic { width: 22px; height: 22px; }
.contact__list small { display: block; font-size: 13px; color: var(--muted); }
.contact__list a, .contact__list span { font-size: 17px; font-weight: 500; }
.contact__list a:hover { color: var(--orange); }

.form {
  display: grid; gap: 18px; padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-lg); background: rgba(7, 18, 31, .6); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; color: #cfdbe8; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; font-size: 16px; color: #fff;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8c1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select option { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #6f8197; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background-color: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(255, 140, 26, .15); }
.field.is-invalid input { border-color: #ff5d5d; }
.form__note { font-size: 14px; color: var(--muted); text-align: center; min-height: 1.2em; }
.form__note.is-ok { color: #6fdc9c; }
.form__note.is-err { color: #ff8a8a; }
.form__note a { color: var(--orange); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); padding: 72px 0 0; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 52px; }
.footer__brand p { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 340px; }
.footer h4 { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a, .footer ul span { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--orange); }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact .ic { color: var(--orange); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-top: 1px solid var(--line); color: #6f8197; font-size: 14px; }

/* ---------- WhatsApp dugme ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 95;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .65);
  transition: transform .3s var(--ease), bottom .35s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: waPulse 2.6s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08); }
.wa-float__label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
  white-space: nowrap; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 500;
  background: #fff; color: var(--ink); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; transform: translate(0, -50%); }

/* ---------- Mobilna traka ---------- */
.quickbar { display: none; }

/* ---------- Animacije pri skrolanju ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responzivnost
   ========================================================= */
/* Veliki ekrani: svih 6 usluga vidljivo odjednom (3 x 2), bez strelica */
@media (min-width: 1201px) {
  .cards-track { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; gap: 22px; overflow: visible; }
  .service__img { aspect-ratio: 16 / 8; }
  .carousel-ctrl { display: none; }
}

@media (max-width: 1200px) {
  .cards-track { grid-auto-columns: calc((100% - 2 * 18px) / 3.15); }
  .nav { gap: 26px; }
  .header__phone { display: none; }
}

@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .burger { display: grid; }
  .header__phone { display: inline-flex; }
  .header__actions { margin-left: auto; }

  .hero__media { width: 100%; }
  .hero__media img { -webkit-mask-image: none; mask-image: none; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(7, 18, 31, .75) 0%, rgba(7, 18, 31, .35) 35%, rgba(7, 18, 31, .55) 65%, rgba(7, 18, 31, .95) 100%),
      linear-gradient(90deg, rgba(7, 18, 31, .7) 0%, rgba(7, 18, 31, .15) 80%);
  }
  .hero__features li { padding: 4px 18px; }

  .section-head { grid-template-columns: 1fr auto; }
  .section-head__text { grid-column: 1 / -1; grid-row: 2; max-width: 620px; }
  .carousel-ctrl { grid-column: 2; grid-row: 1; }

  .projects { grid-template-columns: 1fr; gap: 40px; }
  .projects__intro { max-width: 640px; }

  .about__grid { grid-template-columns: 1fr; gap: 56px; }
  .about__media { max-width: 620px; }

  .steps { grid-template-columns: repeat(2, 1fr); }

  .section-head--gallery { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery .g-wide-md { grid-column: span 2; }
  .gallery .g-wide-md a { aspect-ratio: auto; min-height: 100%; }

  .contact__grid { grid-template-columns: 1fr; gap: 48px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hero__aside { display: none; }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 28px; }
  .hero__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
  .hero__features li { padding: 0; border: 0; }
  .slider-ctrl { justify-content: flex-start; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat { justify-content: flex-start; padding: 18px 12px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid #e3e8ef; }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .container { padding: 0 16px; }
  body { font-size: 15.5px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  .logo__mark { width: 42px; height: 42px; }
  .logo__name { font-size: 20px; }
  .logo__sub { font-size: 12px; }
  .header__phone { display: none; }

  .hero { min-height: 100svh; }
  .hero__media img { object-position: 70% 50%; }
  .hero__inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 28px; }
  .hero__title { font-size: clamp(38px, 11vw, 52px); margin: 14px 0 16px; }
  .eyebrow--hero { font-size: 11.5px; letter-spacing: .34em; }
  .hero__btns { margin-top: 26px; }
  .hero__btns .btn { flex: 1 1 auto; padding: 14px 20px; }
  .hero__features { grid-template-columns: repeat(2, 1fr); }
  .hero__features li:last-child { display: none; }
  .hero__features .ic { width: 26px; height: 26px; }
  .hero__bottom { padding-top: 40px; }

  .section-head { grid-template-columns: 1fr; margin-bottom: 30px; }
  .carousel-ctrl { display: none; }
  .cards-track { grid-auto-columns: 80%; gap: 14px; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; }

  .stat strong { font-size: 24px; }
  .stat__icon { width: 32px; height: 32px; }
  .stat { gap: 12px; }

  .projects__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 0 16px 10px; scroll-padding: 0 16px; gap: 14px;
  }
  .projects__grid::-webkit-scrollbar { display: none; }
  .project { scroll-snap-align: start; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery .g-wide-md { grid-column: auto; }
  .gallery .g-wide-md a { aspect-ratio: 4 / 3; }
  .gallery .g-wide a { aspect-ratio: 16 / 9; }
  .gallery .g-big { grid-row: auto; }
  .gallery .g-big a { aspect-ratio: 4 / 3; }
  .gallery a { border-radius: 10px; }
  .gallery a::after { display: none; }
  .lightbox figure { max-width: 100vw; padding: 0 8px; }
  .lightbox img { max-height: calc(100dvh - 170px); border-radius: 6px; }
  .lightbox figcaption { flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 16px; }
  .lightbox__nav { top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); transform: none; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .lightbox__close { top: 12px; right: 12px; }

  .about__media { padding-bottom: 50px; }
  .about__img-main { width: 100%; }
  .about__img-small { width: 50%; border-width: 4px; }
  .about__badge { left: 12px; bottom: 16px; padding: 10px 14px; }
  .about__badge strong { font-size: 15px; }

  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step { padding: 24px 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; }
  .step__icon { grid-row: span 2; margin-bottom: 0; }
  .step h3 { margin-bottom: 6px; align-self: end; }

  .form__row { grid-template-columns: 1fr; }

  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; padding: 18px 16px; }

  .quickbar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(5, 13, 23, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .quickbar.is-visible { transform: none; }
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
  .wa-float__label { display: none; }
  /* kad se pojavi donja traka, dugme se podigne iznad nje */
  body.has-quickbar .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .quickbar .btn { padding: 13px 14px; }
}

/* Glađe skrolanje na mobitelu: bez blur efekata i težih animacija */
@media (max-width: 1024px) {
  .header.is-scrolled { background: rgba(7, 18, 31, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn--ghost, .project__tag { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn--ghost { background: rgba(7, 18, 31, .45); }
  .quickbar { background: rgba(5, 13, 23, .98); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header { transition: background .3s, box-shadow .3s; }
  .reveal { transform: translateY(16px); transition-duration: .6s; }
  .hero__bg.is-active img { animation: none; }
}

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