/* =========================================================
   KIKI GRADNJA d.o.o. — demo stranica
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ivory: #F4F1EB;
  --white: #FFFFFF;
  --ink: #171717;
  --charcoal: #272727;
  --stone: #67635C;          /* sekundarni tekst na svijetlom (AA) */
  --stone-light: #B4AEA3;
  --stone-tint: #E6E1D7;
  --brick: #9A4B35;          /* terracotta, štedljivo */
  --brick-light: #D69A80;    /* terracotta na tamnoj pozadini */

  --line: rgba(23, 23, 23, .14);
  --line-strong: rgba(23, 23, 23, .85);
  --line-dark: rgba(244, 241, 235, .16);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(5rem, 10vw, 9.5rem);
  --header-h: 76px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: var(--brick);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .15vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4 { margin: 0; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 300;
  padding: .8rem 1.2rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

/* ---------- Tipografija ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 106%;
  text-transform: uppercase;
  letter-spacing: -.012em;
  line-height: .98;
  /* nikada ne dijeliti riječi */
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.display .line { display: block; }

.h2 { font-size: clamp(2rem, 1.15rem + 4vw, 5rem); }

.label {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1.75rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brick);
}
.label::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}
.label--light { color: var(--brick-light); }

.lead {
  font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}

.text-link {
  text-decoration: underline;
  text-decoration-color: var(--brick);
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  transition: color .25s;
}
.text-link:hover { color: var(--brick); }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.75rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--ivory); border-color: var(--ivory); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }

.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--brick); border-color: var(--brick); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--white);
  --focus: var(--white);
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(17, 17, 17, .42), rgba(17, 17, 17, 0));
  border-bottom: 1px solid transparent;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}

.site-header.is-scrolled {
  background-color: rgba(244, 241, 235, .97);
  background-image: none;
  color: var(--ink);
  border-bottom-color: var(--line);
  --focus: var(--brick);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--max);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Wordmark — samo tipografija */
.wordmark {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.wordmark-kiki {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 120%;
  font-size: 1.32rem;
  letter-spacing: .04em;
}
.wordmark-rule {
  width: 1px;
  height: 1.25rem;
  background: var(--brick-light);
}
.site-header.is-scrolled .wordmark-rule { background: var(--brick); }
.wordmark-gradnja {
  font-family: var(--font-display);
  font-weight: 400;
  font-stretch: 112%;
  font-size: .82rem;
  letter-spacing: .34em;
}

/* Desktop navigacija */
.site-nav { display: flex; align-items: center; gap: 2.5rem; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.25rem);
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: .45rem 0;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.15rem;
  border: 1px solid rgba(255, 255, 255, .6);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .3s, color .3s, border-color .3s;
}
.nav-cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.site-header.is-scrolled .nav-cta { border-color: var(--ink); }
.site-header.is-scrolled .nav-cta:hover { background: var(--ink); color: var(--white); }

.nav-panel-meta { display: none; }

.nav-toggle { display: none; }

/* Mobilna navigacija */
@media (max-width: 1023.98px) {
  .nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 48px;
    height: 48px;
    margin-right: -10px;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
  }
  .nav-toggle-bar {
    display: block;
    width: 26px;
    height: 1.5px;
    background: currentColor;
    transition: transform .4s var(--ease);
  }
  .nav-open .nav-toggle-bar:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-open .nav-toggle-bar:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 2.5rem;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    background: var(--ink);
    color: var(--ivory);
    --focus: var(--white);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s var(--ease), visibility 0s;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line-dark); }
  .nav-link {
    display: block;
    padding: .85rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7vw, 2.6rem);
    font-weight: 600;
    font-stretch: 106%;
    letter-spacing: -.01em;
    line-height: 1.05;
  }
  .nav-link::after { display: none; }

  .nav-cta,
  .site-header.is-scrolled .nav-cta {
    justify-content: center;
    min-height: 56px;
    border-color: var(--ivory);
    color: var(--ivory);
  }
  .nav-cta:hover,
  .site-header.is-scrolled .nav-cta:hover { background: var(--ivory); color: var(--ink); }

  .nav-panel-meta {
    display: block;
    font-size: .92rem;
    color: var(--stone-light);
  }
  .nav-panel-meta p { margin-bottom: .6rem; }

  .site-header.nav-open,
  .site-header.nav-open.is-scrolled {
    color: var(--ivory);
    background-color: transparent;
    background-image: none;
    border-bottom-color: transparent;
    --focus: var(--white);
  }
  .site-header.nav-open .wordmark-rule { background: var(--brick-light); }

  /* Bez JavaScripta: jednostavna vidljiva navigacija */
  .no-js .nav-toggle { display: none; }
  .no-js .site-header { position: absolute; background: var(--ink); }
  .no-js .header-inner { height: auto; flex-wrap: wrap; padding-block: 1rem; }
  .no-js .site-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    padding: 0;
    width: 100%;
    gap: 1rem;
  }
  .no-js .nav-list { flex-direction: row; flex-wrap: wrap; gap: .25rem 1.25rem; }
  .no-js .nav-list li { border: 0; }
  .no-js .nav-link { font-family: var(--font-body); font-size: .8rem; padding: .3rem 0; }
  .no-js .nav-panel-meta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
  --focus: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
}

.js .hero-media { animation: hero-settle 2.2s var(--ease) both; }
@keyframes hero-settle {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, .25) 0%, rgba(17, 17, 17, 0) 30%, rgba(17, 17, 17, .12) 55%, rgba(17, 17, 17, .74) 100%),
    linear-gradient(90deg, rgba(17, 17, 17, .42) 0%, rgba(17, 17, 17, 0) 62%);
}

.hero-content {
  position: relative;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .86);
}
.hero-eyebrow span { margin-inline: .5em; color: var(--brick-light); }

.hero-title {
  max-width: 17ch;
  margin-bottom: 1.6rem;
  font-size: clamp(2.5rem, 1rem + 5.2vw, 6.25rem);
  font-weight: 680;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .18);
}

.hero-lead {
  max-width: 36rem;
  font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.25rem;
}

.js .hero-content > * { animation: hero-rise 1.1s var(--ease) both; }
.js .hero-content > :nth-child(2) { animation-delay: .12s; }
.js .hero-content > :nth-child(3) { animation-delay: .24s; }
.js .hero-content > :nth-child(4) { animation-delay: .36s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hero-strip {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-strip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 0;
  padding-block: 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  list-style: none;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.hero-strip-list li + li::before {
  content: "/";
  margin-inline: .9em;
  color: rgba(255, 255, 255, .4);
}

@media (max-width: 479.98px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Zajednički "split" naslov ---------- */
.split-head {
  display: grid;
  gap: 2rem;
  align-items: end;
}
.split-head-text {
  max-width: 30rem;
  color: var(--stone);
}
@media (min-width: 900px) {
  .split-head { grid-template-columns: 7fr 5fr; gap: 4rem; }
  .split-head-text { justify-self: end; }
}

/* Okvir za slike: hover zoom */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--stone-tint);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
@media (hover: hover) {
  .img-frame:hover img { transform: scale(1.035); }
}

/* ---------- Uvod ---------- */
.intro-grid {
  display: grid;
  gap: 3rem;
}
.intro-body > p:not(.lead) { color: var(--stone); max-width: 40rem; }
.intro-body .lead { margin-bottom: 1.5rem; max-width: 38rem; }

.intro-trades {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 0;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  list-style: none;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  font-stretch: 106%;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.intro-trades li + li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 .9rem .18em;
  background: var(--brick);
  vertical-align: middle;
}

@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 5fr 6fr; gap: 6rem; }
  .intro-body { padding-top: 3.25rem; }
}

/* ---------- Prije / poslije ---------- */
.transform { background: var(--white); }

.ba-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.ba-item {
  position: relative;
  margin: 0;
}
.ba-frame {
  overflow: hidden;
  background: var(--stone-tint);
  aspect-ratio: 4 / 3;
}
.ba-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.ba-tag--accent { background: var(--brick); }

.ba-note {
  margin-top: 1.25rem;
  font-size: .88rem;
  color: var(--stone);
}

@media (min-width: 768px) {
  .ba-grid {
    grid-template-columns: 5fr 7fr;
    align-items: end;
    gap: 1.5rem;
  }
  .ba-before .ba-frame { aspect-ratio: 4 / 5; }
  .ba-after .ba-frame { aspect-ratio: 5 / 4; }
}

/* ---------- Usluge ---------- */
.service {
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.service--media {
  display: grid;
  gap: 2.5rem;
}

.service-media { position: relative; }
.service-media-main { aspect-ratio: 4 / 3; }
.service-media-secondary {
  width: 46%;
  aspect-ratio: 4 / 5;
  margin: -22% 0 0 auto;
  border: clamp(6px, 1vw, 12px) solid var(--ivory);
  border-right: 0;
  border-bottom: 0;
}

.service-num {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 3vw, 5rem);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1;
  color: var(--stone-light);
}

.service-title {
  font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.6rem);
  line-height: 1.02;
}

.service-desc {
  margin-top: 1.25rem;
  max-width: 30rem;
  color: var(--stone);
}

.service-list {
  margin-top: 1.75rem;
  list-style: none;
  border-top: 1px solid var(--line);
}
.service-list li {
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.service-pair { display: grid; }

@media (min-width: 768px) {
  .service-pair {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(2.5rem, 5vw, 5rem);
  }
}

@media (min-width: 960px) {
  .service--media {
    grid-template-columns: 7fr 5fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .service--reverse { grid-template-columns: 5fr 7fr; }
  .service--reverse .service-media { order: 2; }
  .service--reverse .service-media-main { aspect-ratio: 5 / 4; }
  .service-body { padding-top: .5rem; }
}

/* ---------- Feature ---------- */
.feature {
  background: var(--charcoal);
  color: var(--ivory);
  --focus: var(--white);
}
.feature-grid {
  display: grid;
  gap: 3rem;
}
.feature-media .img-frame { aspect-ratio: 4 / 3; background: #333; }
.feature-title {
  margin-bottom: 2rem;
  font-size: clamp(1.9rem, 1.1rem + 3.4vw, 4.25rem);
}
.feature-body p:not(.label) {
  max-width: 34rem;
  color: rgba(244, 241, 235, .76);
}

.phases {
  margin-top: clamp(4rem, 8vw, 6.5rem);
}
.phases-title {
  margin-bottom: 1.5rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, .6);
}
.phase-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1.25rem;
  list-style: none;
}
.phase-list li {
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 106%;
  font-size: 1rem;
  text-transform: uppercase;
  line-height: 1.2;
}
.phase-num {
  display: block;
  margin-bottom: .6rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--brick-light);
}

@media (min-width: 640px) {
  .phase-list { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: 7fr 5fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }
  .feature-media .img-frame { aspect-ratio: 5 / 6; }
  .phase-list { grid-template-columns: repeat(7, 1fr); }
  .phase-list li { border-top-color: rgba(244, 241, 235, .28); }
}

/* ---------- Reference ---------- */
.ref-list { margin-top: clamp(3rem, 6vw, 5rem); }

.reference {
  display: grid;
  gap: 1.75rem;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-strong);
}
.reference:last-child { border-bottom: 1px solid var(--line); }

.ref-index {
  margin-bottom: 1rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}
.ref-title { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.9rem); }
.ref-place {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1rem;
  font-weight: 600;
}
.ref-place::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--brick);
}

.ref-desc {
  max-width: 40rem;
  font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem);
  line-height: 1.6;
}
.ref-subtitle {
  margin: 2rem 0 .75rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}
.ref-works {
  list-style: none;
  columns: 2 12rem;
  column-gap: 2.5rem;
}
.ref-works li {
  break-inside: avoid;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .reference {
    grid-template-columns: 5fr 7fr;
    gap: clamp(3rem, 6vw, 6rem);
  }
}

/* ---------- Galerija ---------- */
.gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  list-style: none;
}

.gallery-link {
  position: relative;
  display: block;
  height: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone-tint);
  color: var(--white);
  text-decoration: none;
  --focus: var(--brick);
}
.gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.1rem 1rem;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0), rgba(17, 17, 17, .62));
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
@media (hover: hover) {
  .gallery-link:hover img { transform: scale(1.04); }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(220px, 32vw, 360px);
    gap: 1rem;
  }
  .gallery-link { aspect-ratio: auto; }
  .g-1 { grid-column: span 2; }
}

@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(200px, 18vw, 330px);
    grid-auto-flow: dense;
  }
  .g-1 { grid-column: 1 / span 7; grid-row: span 2; }
  .g-2 { grid-column: 8 / span 5; }
  .g-3 { grid-column: 8 / span 5; }
  .g-4 { grid-column: 1 / span 4; }
  .g-5 { grid-column: 5 / span 8; }
  .g-6 { grid-column: 1 / span 5; }
  .g-7 { grid-column: 6 / span 7; }
}

/* ---------- O nama ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
}
.about-body > p:not(.lead) { color: var(--stone); max-width: 38rem; }
.about-body .lead { margin-bottom: 1.5rem; max-width: 38rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  margin: 2.75rem 0 0;
  border-top: 1px solid var(--line);
}
.fact {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line);
}
.fact dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.fact dd {
  margin: .3rem 0 0;
  font-weight: 600;
}

.values {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(4rem, 8vw, 6.5rem);
  list-style: none;
}
.value {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.value-title {
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem);
  line-height: 1.1;
}
.value p { color: var(--stone); max-width: 24rem; }

@media (min-width: 768px) {
  .values { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 5fr 6fr; gap: 6rem; }
  .about-body { padding-top: 3.25rem; }
}

/* ---------- Recenzije ---------- */
.reviews { background: var(--white); }

.reviews-head {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}
.rating {
  padding-left: 1.25rem;
  border-left: 2px solid var(--brick);
}
.rating-score {
  margin-bottom: .25rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
  font-weight: 600;
  font-stretch: 106%;
  line-height: 1;
}
.rating-score span { font-weight: 400; color: var(--stone); font-size: .6em; }
.rating-note { font-size: .88rem; color: var(--stone); }

@media (min-width: 768px) {
  .reviews-head { grid-template-columns: 1fr auto; }
}

.review-list {
  display: grid;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.review {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
}
.review figure { margin: 0; }
.review blockquote { margin: 0; }
.review blockquote p {
  position: relative;
  font-size: clamp(1.2rem, 1.02rem + .7vw, 1.6rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.005em;
}
.review blockquote p::before { content: "„"; color: var(--brick); }
.review blockquote p::after { content: "“"; color: var(--brick); }

.review figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1rem;
  margin-top: 1.5rem;
  font-size: .92rem;
}
.review-name { font-weight: 700; }
.review-project { color: var(--stone); }

@media (min-width: 768px) {
  .review-list { grid-template-columns: 1fr 1fr; }
  .review:nth-child(odd) { padding-right: clamp(2rem, 4vw, 4rem); border-right: 1px solid var(--line); }
  .review:nth-child(even) { padding-left: clamp(2rem, 4vw, 4rem); }
}

/* ---------- Područje rada ---------- */
.area-grid {
  display: grid;
  gap: 3rem;
}
.area-text {
  margin-top: 2rem;
  max-width: 26rem;
  color: var(--stone);
}
.area-list {
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.area-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, .9rem + .9vw, 1.6rem);
  font-weight: 600;
  font-stretch: 106%;
  text-transform: uppercase;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .area-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }
}
@media (min-width: 1024px) {
  .area-grid { grid-template-columns: 5fr 7fr; gap: 6rem; align-items: end; }
}

/* ---------- CTA ---------- */
.cta {
  display: grid;
  background: var(--ink);
  color: var(--ivory);
  --focus: var(--white);
}
.cta-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--charcoal);
}
.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--section) var(--gutter);
}
.cta-body .h2 {
  margin-bottom: 2rem;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 4.3rem);
}
.cta-body p {
  max-width: 32rem;
  margin-bottom: 2.25rem;
  color: rgba(244, 241, 235, .76);
}

@media (min-width: 900px) {
  .cta {
    grid-template-columns: 1fr 1fr;
    min-height: min(88vh, 820px);
  }
  .cta-media { aspect-ratio: auto; }
  .cta-body { padding-inline: clamp(3rem, 6vw, 7rem); }
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  gap: 4rem;
}

.contact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  border-top: 1px solid var(--line-strong);
}
.contact-row {
  grid-column: 1 / -1;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-row--half { grid-column: span 1; }
.contact-row dt {
  margin-bottom: .3rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.contact-row dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.form {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--line);
}
.form-title {
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-stretch: 106%;
  text-transform: uppercase;
}

.form-row { display: grid; gap: 0 2rem; }
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.75rem;
}
.field label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75rem 0;
  font: inherit;
  font-size: 1rem; /* sprječava zoom na iOS-u */
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--stone-light);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
.field select {
  padding-right: 2rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23171717' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .25rem center;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-bottom-color: var(--stone); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--ink); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin: .5rem 0 2rem;
  font-size: .92rem;
  line-height: 1.5;
}
.field-check input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: .15rem 0 0;
  accent-color: var(--brick);
  cursor: pointer;
}
.field-check label { cursor: pointer; }

.form-submit { width: 100%; }
@media (min-width: 640px) {
  .form-submit { width: auto; }
}

.form-status {
  margin: 1.75rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--ivory);
  border-left: 2px solid var(--brick);
  font-weight: 600;
}
.form-status:empty { display: none; }
.js .form-status:not(:empty) { animation: status-in .5s var(--ease) both; }
@keyframes status-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: clamp(4rem, 7vw, 7rem); align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(4rem, 8vw, 6rem);
  background: var(--ink);
  color: rgba(244, 241, 235, .74);
  font-size: .95rem;
  --focus: var(--white);
}
.site-footer a {
  text-decoration: none;
  transition: color .25s;
}
.site-footer a:hover { color: var(--white); }

.footer-grid {
  display: grid;
  gap: 3rem;
}
.wordmark--footer { color: var(--ivory); margin-bottom: 1.25rem; }
.wordmark--footer .wordmark-rule { background: var(--brick-light); }

.footer-heading {
  margin-bottom: 1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, .5);
}
.footer-nav ul { list-style: none; display: grid; gap: .5rem; }
.footer-contact address { font-style: normal; margin-bottom: 1rem; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }

.disclaimer {
  padding: 1.75rem 0 calc(1.75rem + env(safe-area-inset-bottom, 0px));
  background: #0D0D0D;
  border-top: 1px solid var(--line-dark);
}
.disclaimer-text {
  max-width: 52rem;
  margin-bottom: .6rem;
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(244, 241, 235, .85);
}
.disclaimer-credit {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brick-light);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, .95);
  color: var(--ivory);
  --focus: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s var(--ease), visibility 0s;
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: calc(4.5rem + env(safe-area-inset-top, 0px)) 1rem calc(6rem + env(safe-area-inset-bottom, 0px));
}
.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  max-width: min(100%, 1400px);
  max-height: 100%;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 12rem);
  max-height: calc(100svh - 12rem);
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(.985);
  transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.lightbox.is-open .lightbox-img { transform: none; }
.lightbox-img.is-loading { opacity: 0; }

.lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lightbox-counter { color: rgba(244, 241, 235, .6); font-variant-numeric: tabular-nums; }

.lightbox-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .24);
  color: var(--white);
  cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6); }

.lightbox-close {
  top: calc(1rem + env(safe-area-inset-top, 0px));
  right: 1rem;
}
.lightbox-prev,
.lightbox-next {
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.lightbox-prev { left: calc(50% - 60px); }
.lightbox-next { right: calc(50% - 60px); }

@media (min-width: 900px) {
  .lightbox-stage { padding: 4.5rem 6.5rem; }
  .lightbox-img { max-height: calc(100vh - 9rem); max-height: calc(100svh - 9rem); }
  .lightbox-prev,
  .lightbox-next { bottom: auto; top: 50%; transform: translateY(-50%); }
  .lightbox-prev { left: 1.5rem; }
  .lightbox-next { right: 1.5rem; }
  .lightbox-close { top: 1.5rem; right: 1.5rem; }
}

/* ---------- Reveal animacije ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-media { animation: none; transform: none; }
  .img-frame:hover img,
  .gallery-link:hover img { transform: none; }
}