/* ==========================================================
   TMTL KNAUF I FASSADEN BAU — demonstracijska stranica
   Koncept: kontrast završene čiste površine i konstrukcije.
   Potpisni motiv: crvena "kota" (dimenzijska linija s
   graničnicima), preuzeta iz građevinskih nacrta.
   ========================================================== */

:root {
  --white: #FFFFFF;
  --concrete: #F0F0ED;
  --concrete-deep: #E2E2DE;
  --graphite: #232427;
  --ink: #17181A;
  --steel: #5C5E63;
  --red: #C42B27;
  --red-deep: #A3211E;
  --line: rgba(23, 24, 26, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --header-h: 76px;
  --wrap: 1360px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --gutter: clamp(1rem, 2.4vw, 2rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open,
body.lb-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

/* Naslovi se nikada ne lome unutar riječi */
h1, h2, h3, h4, .display, .area-name, .strip-title, .pair-tag {
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section); }

/* ---------- Tipografija ---------- */
.display {
  font-weight: 800;
  font-stretch: 80%;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.005em;
}

.h-xl { font-size: clamp(2.1rem, 5.6vw, 4.75rem); }
.h-lg { font-size: clamp(1.85rem, 3.6vw, 3.1rem); }

/* Kota — dimenzijska linija kao oznaka sekcije */
.kota {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
}
.kota::before {
  content: "";
  flex: none;
  width: 2.5rem;
  height: 11px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.kota--light { color: #E5524E; }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-line {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.btn:hover .btn-line { width: 30px; }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: #fff;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-solid {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
  text-decoration: none;
}
.wordmark-main {
  font-size: 1.95rem;
  font-weight: 900;
  font-stretch: 78%;
  letter-spacing: 0.02em;
}
.wordmark-rule {
  width: 3px;
  height: 1.9rem;
  background: var(--red);
}
.wordmark-sub {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2.25rem);
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.15rem;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    margin-right: -10px;
    padding: 0 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.2s;
  }
  .nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    padding: 1.5rem var(--pad) calc(2rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--ink);
    color: #fff;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line-light); }
  .site-nav a {
    display: block;
    padding: 1.05rem 0;
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    font-weight: 800;
    font-stretch: 80%;
    text-transform: uppercase;
    line-height: 1.1;
  }
  .site-nav a::after { bottom: -1px; }
}

@media (max-width: 380px) {
  .wordmark-main { font-size: 1.7rem; }
  .wordmark-sub { font-size: 0.58rem; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(17, 18, 20, 0.55) 0%, rgba(17, 18, 20, 0) 20%, rgba(17, 18, 20, 0) 40%, rgba(17, 18, 20, 0.6) 70%, rgba(17, 18, 20, 0.9) 100%),
    linear-gradient(90deg, rgba(17, 18, 20, 0.5) 0%, rgba(17, 18, 20, 0) 62%);
}
.hero-content {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(2.75rem, 8vh, 6rem);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.hero-eyebrow::before {
  content: "";
  width: 2.75rem;
  height: 2px;
  background: var(--red);
}
.hero-title {
  font-size: clamp(2.6rem, 9.2vw, 7.25rem);
  line-height: 0.92;
}
.hero-line { display: block; }
.hero-lead {
  max-width: 38rem;
  margin-top: 1.6rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* jedan orkestrirani trenutak pri učitavanju */
.js .hero-anim { opacity: 0; transform: translateY(26px); }
.js .is-loaded .hero-anim {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 120ms + 100ms);
}
.js .hero-img { transform: scale(1.05); }
.js .is-loaded .hero-img { transform: scale(1); transition: transform 2.4s var(--ease); }

@media (max-width: 600px) {
  .hero-img { object-position: 58% 50%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ==========================================================
   CREDIBILITY STRIP
   ========================================================== */
.strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.strip-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.strip-item {
  position: relative;
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--line);
}
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.5rem;
  width: 2.25rem;
  height: 3px;
  background: var(--red);
}
.strip-item:first-child::before { left: 0; }
.strip-title {
  display: block;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1;
  text-transform: uppercase;
}
.strip-text {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--steel);
}

@media (max-width: 900px) {
  .strip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-item { padding: 1.5rem 0 1.5rem 1.25rem; }
  .strip-item::before { left: 1.25rem; }
  .strip-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip-item:nth-child(3)::before { left: 0; }
  .strip-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ==========================================================
   SEKCIJSKA ZAGLAVLJA
   ========================================================== */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.section-head-title { grid-column: 1 / 9; }
.section-head-intro {
  grid-column: 9 / 13;
  max-width: 30rem;
  color: var(--steel);
}

@media (max-width: 900px) {
  .section-head { display: block; }
  .section-head-intro { margin-top: 1.25rem; }
}

/* ==========================================================
   O NAMA
   ========================================================== */
.about { background: var(--concrete); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
}
.about-figure {
  position: relative;
  grid-column: 1 / 6;
  max-width: 520px;
}
.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  object-fit: cover;
}
/* kutni profil — crveni L kao kutna lajsna */
.about-figure::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -14px;
  width: 76px;
  height: 76px;
  border-top: 3px solid var(--red);
  border-left: 3px solid var(--red);
  pointer-events: none;
}
.about-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--steel);
}

.about-body { grid-column: 7 / 13; }
.about-text { margin-top: 1.75rem; }
.about-text p + p { margin-top: 1rem; }

.principles {
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.principles li {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.975rem;
}
.principles strong { font-weight: 700; }
.principles span { color: var(--steel); }

.owner {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--steel);
}

@media (max-width: 900px) {
  .about-figure, .about-body { grid-column: 1 / -1; }
  .about-figure { max-width: none; }
  .about-figure img { aspect-ratio: 5 / 4; }
  .about-figure::before { top: -9px; left: -9px; width: 56px; height: 56px; }
  .about-body { margin-top: 2rem; }
}

@media (max-width: 520px) {
  .principles li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ==========================================================
   GLAVNE USLUGE
   ========================================================== */
.services { background: var(--white); }

.service {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
}
.service + .service { margin-top: clamp(5rem, 10vw, 9rem); }

.service-media {
  position: relative;
  grid-column: 1 / 8;
  padding-bottom: clamp(3rem, 8vw, 7rem);
}
.service-media img { transition: transform 0.8s var(--ease); }
.service-media .img-main {
  width: 86%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.service-media .img-inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: clamp(6px, 0.8vw, 10px) solid var(--white);
}
.service-body { grid-column: 8 / 13; }
.service-body > p:not(.kota) { margin-top: 1.25rem; }

.service--reverse .service-media { grid-column: 6 / 13; grid-row: 1; }
.service--reverse .service-body { grid-column: 1 / 6; grid-row: 1; }
.service--reverse .img-main { margin-left: auto; }
.service--reverse .img-inset { right: auto; left: 0; }

.tick-list {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.tick-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.975rem;
  line-height: 1.45;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.85rem;
  height: 2px;
  background: var(--red);
}
.tick-list--light,
.tick-list--light li { border-color: var(--line-light); }
.tick-list--cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.service-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: clamp(5rem, 10vw, 9rem);
  padding: clamp(2.25rem, 6vw, 5rem);
  background: var(--graphite);
  color: #fff;
}
.service-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: clamp(4rem, 10vw, 8rem);
  height: 4px;
  background: var(--red);
}
.service-panel-head { grid-column: 1 / 6; }
.service-panel-body { grid-column: 7 / 13; }
.service-panel-body > p { color: rgba(255, 255, 255, 0.84); }

@media (max-width: 900px) {
  .service-media,
  .service-body,
  .service--reverse .service-media,
  .service--reverse .service-body {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .service-body { margin-top: 0.5rem; }
  .service-panel-head, .service-panel-body { grid-column: 1 / -1; }
  .service-panel-body { margin-top: 0.5rem; }
}

@media (max-width: 560px) {
  .service-media .img-main { width: 90%; }
  .service-media .img-inset { width: 46%; }
  .tick-list--cols { grid-template-columns: 1fr; }
}

/* ==========================================================
   KNAUF PROCES — par fotografija
   ========================================================== */
.process { background: var(--concrete); }

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.2vw, 1rem);
  max-width: calc(980px + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.pair-item { overflow: hidden; }
.pair-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 68vh;
  object-fit: cover;
}
.pair-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-top: 1rem;
}
.pair-tag {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1.05;
  text-transform: uppercase;
}
.pair-item:first-child .pair-tag { color: var(--red); }
.pair-desc {
  font-size: 0.875rem;
  color: var(--steel);
}

@media (max-width: 700px) {
  .pair { grid-template-columns: 1fr; gap: 2rem; }
  .pair-item img { aspect-ratio: 4 / 3; }
}

/* ==========================================================
   FASADE — tijek
   ========================================================== */
.flow { background: var(--white); }

.flow-title {
  display: grid;
  grid-template-columns: auto minmax(3rem, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.flow-arrow {
  position: relative;
  height: 2px;
  background: var(--red);
  transform-origin: left;
}
.flow-arrow::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  transform: translateY(-50%) rotate(45deg);
}
.js .flow-arrow { transform: scaleX(0); }
.js .is-visible .flow-arrow {
  transform: scaleX(1);
  transition: transform 1.1s 0.25s var(--ease);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.flow-a { grid-column: 1 / 6; }
.flow-a img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.flow-b { grid-column: 6 / 13; }
.flow-b img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.flow-text {
  max-width: 34rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  color: var(--steel);
}
.flow-grid figcaption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel);
}

@media (max-width: 760px) {
  .flow-title {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .flow-arrow { width: 5.5rem; }
  .flow-a, .flow-b { grid-column: 1 / -1; }
  .flow-a img { aspect-ratio: 4 / 3; }
  .flow-b { margin-top: 1.5rem; }
  .flow-text { margin-bottom: 1.75rem; }
}

/* ==========================================================
   RADOVI — galerija
   ========================================================== */
.works { background: var(--ink); color: #fff; }
.works .section-head-intro { color: rgba(255, 255, 255, 0.72); }
.works .kota { color: #E5524E; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 270px);
  gap: clamp(0.5rem, 1vw, 0.875rem);
}
.g-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--graphite);
  cursor: zoom-in;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.g-item:hover img,
.g-item:focus-visible img { transform: scale(1.04); }
.g-item:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.g-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 2.5rem 1rem 0.95rem;
  background: linear-gradient(180deg, rgba(17, 18, 20, 0), rgba(17, 18, 20, 0.78));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.g-cap::before {
  content: "";
  width: 1.1rem;
  height: 2px;
  background: var(--red);
}
.g-item:hover .g-cap,
.g-item:focus-visible .g-cap { opacity: 1; transform: none; }

@media (hover: none) {
  .g-cap { opacity: 1; transform: none; }
}

.g-1 { grid-column: 1 / 8;  grid-row: 1 / 3; }
.g-2 { grid-column: 8 / 13; grid-row: 1; }
.g-3 { grid-column: 8 / 13; grid-row: 2; }
.g-4 { grid-column: 1 / 6;  grid-row: 3 / 5; }
.g-5 { grid-column: 6 / 13; grid-row: 3; }
.g-6 { grid-column: 6 / 13; grid-row: 4; }

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(140px, 38vw, 300px);
  }
  .g-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .g-2 { grid-column: 1;     grid-row: 3; }
  .g-3 { grid-column: 2;     grid-row: 3; }
  .g-4 { grid-column: 1;     grid-row: 4 / 6; }
  .g-5 { grid-column: 2;     grid-row: 4; }
  .g-6 { grid-column: 2;     grid-row: 5; }
  .g-cap { font-size: 0.8rem; padding: 2rem 0.75rem 0.75rem; }
}

/* ==========================================================
   OSTALE USLUGE
   ========================================================== */
.more { background: var(--white); }

.more-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}
.more-head {
  grid-column: 1 / 5;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.more-head > p:not(.kota) {
  margin-top: 1.25rem;
  color: var(--steel);
}
.more-list {
  grid-column: 6 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter);
  border-top: 1px solid var(--line);
}
.more-list li {
  padding: 1.35rem 0 1.45rem;
  border-bottom: 1px solid var(--line);
}
.more-list h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}
.more-list p {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--steel);
}

@media (max-width: 900px) {
  .more-head { grid-column: 1 / -1; position: static; margin-bottom: 1.5rem; }
  .more-list { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .more-list { grid-template-columns: 1fr; }
}

/* ==========================================================
   RECENZIJE
   ========================================================== */
.reviews { background: var(--concrete); }

.rating {
  grid-column: 9 / 13;
  justify-self: end;
  text-align: right;
}
.rating-num {
  display: block;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 0.9;
  color: var(--red);
}
.rating-label {
  margin-top: 0.6rem;
  font-weight: 700;
}
.rating-source {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: var(--steel);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}
.review {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--white);
  border-top: 3px solid var(--ink);
}
.review--featured {
  grid-column: 1 / 7;
  grid-row: 1 / 3;
  background: var(--ink);
  color: #fff;
  border-top-color: var(--red);
}
.review-mark {
  height: 1.75rem;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--red);
}
.review blockquote { margin-top: 0.75rem; }
.review blockquote p { font-size: 1.0625rem; line-height: 1.55; }
.review--featured blockquote p {
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.32;
}
.review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: auto;
  padding-top: 1.75rem;
}
.review-meta strong { font-weight: 700; }
.review-meta span { font-size: 0.875rem; color: var(--steel); }
.review--featured .review-meta span { color: rgba(255, 255, 255, 0.68); }

@media (max-width: 1024px) {
  .review--featured { grid-column: 1 / -1; grid-row: auto; }
  .review { grid-column: span 6; }
}
@media (max-width: 900px) {
  .rating { justify-self: start; text-align: left; margin-top: 2rem; }
}
@media (max-width: 600px) {
  .review { grid-column: 1 / -1; }
}

/* ==========================================================
   PODRUČJE RADA
   ========================================================== */
.area { background: var(--graphite); color: #fff; }
.area .section-head-intro { color: rgba(255, 255, 255, 0.72); }

.area-list { border-top: 1px solid var(--line-light); }
.area-row {
  --step: clamp(1rem, 7vw, 7rem);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(1rem, 2.2vw, 1.6rem) 0 clamp(1rem, 2.2vw, 1.6rem) calc(var(--i) * var(--step));
  border-bottom: 1px solid var(--line-light);
}
/* kota od sjedišta do područja — udaljenost kao dimenzijska linija */
.area-row:not(.area-row--base)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: calc(var(--i) * var(--step) - 0.75rem);
  height: 9px;
  transform: translateY(-50%);
  border-left: 1.5px solid rgba(229, 82, 78, 0.9);
  border-right: 1.5px solid rgba(229, 82, 78, 0.9);
  background: linear-gradient(rgba(229, 82, 78, 0.9), rgba(229, 82, 78, 0.9)) center / 100% 1.5px no-repeat;
}
.area-name {
  font-size: clamp(1.9rem, 6.2vw, 5.5rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 0.98;
  text-transform: uppercase;
}
.area-row--base .area-name { color: #fff; }
.area-row--base .area-name::after {
  content: "";
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.18em;
  background: var(--red);
  vertical-align: baseline;
}
.area-meta {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.66);
  text-align: right;
}

@media (max-width: 700px) {
  .area-row { --step: 1.15rem; grid-template-columns: 1fr; gap: 0.35rem; }
  .area-meta { text-align: left; }
  .area-row:not(.area-row--base)::before { top: 1.6rem; }
}

/* ==========================================================
   KONTAKT
   ========================================================== */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}
.contact-info { grid-column: 1 / 6; }
.contact-lead {
  margin-top: 1.5rem;
  max-width: 32rem;
  color: var(--steel);
}

.contact-data {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.contact-data > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-data dt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel);
}
.contact-data dd { font-weight: 600; overflow-wrap: anywhere; }
.contact-data .phone {
  display: inline-block;
  padding: 0.2rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  transition: color 0.2s;
}
.contact-data .phone:hover { color: var(--red); }
.mail-link {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.mail-link:hover { color: var(--red); }

.contact-form-wrap {
  grid-column: 7 / 13;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--concrete);
  border-top: 4px solid var(--red);
}
.form-title {
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  font-stretch: 85%;
  text-transform: uppercase;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.85rem;
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  background: var(--white);
  border: 1px solid rgba(23, 24, 26, 0.24);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--red);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}
.form-note {
  font-size: 0.85rem;
  color: var(--steel);
}
.form-success {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-left: 4px solid var(--red);
  font-weight: 600;
  line-height: 1.5;
}
.form-success:focus { outline: none; }

@media (max-width: 900px) {
  .contact-info, .contact-form-wrap { grid-column: 1 / -1; }
  .contact-form-wrap { margin-top: 2rem; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .contact-data > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
  background: var(--ink);
  color: #fff;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-light);
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
.footer-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }

.footer-legal {
  display: grid;
  gap: 0.65rem;
  padding-top: 2rem;
}
.disclaimer {
  max-width: 62rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}
.demo-by {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================
   LIGHTBOX
   ========================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: calc(env(safe-area-inset-top) + 4.5rem) 1rem calc(env(safe-area-inset-bottom) + 2rem);
  background: rgba(14, 15, 16, 0.95);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lb-figure {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-width: 0;
  height: 100%;
}
.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  max-height: calc(100dvh - 10rem);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lb-caption {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }
.lb-close {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 1rem);
  right: 1rem;
}
.lb-count {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 1.85rem);
  left: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 700px) {
  .lightbox {
    grid-template-columns: minmax(0, 1fr);
    padding: calc(env(safe-area-inset-top) + 4.5rem) 0.75rem calc(env(safe-area-inset-bottom) + 5.5rem);
  }
  .lb-figure { grid-column: 1; }
  .lb-img { max-height: calc(100dvh - 12rem); }
  .lb-prev, .lb-next {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom) + 1.25rem);
  }
  .lb-prev { left: 1rem; }
  .lb-next { right: 1rem; }
}

/* ==========================================================
   REVEAL ANIMACIJE
   ========================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (hover: hover) {
  .service-media:hover .img-main { transform: scale(1.015); }
}

/* ==========================================================
   PREFERS-REDUCED-MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .hero-anim,
  .js .hero-img,
  .js .flow-arrow { opacity: 1; transform: none; }
}