/* =========================================================
   MD & V d.o.o. – demonstracijska stranica
   ========================================================= */

:root {
  --navy: #102A56;
  --navy-deep: #0B1F42;
  --dark: #101820;
  --dark-2: #18222C;
  --off: #F5F6F7;
  --concrete: #D9DDE1;
  --concrete-2: #BFC5CB;
  --white: #FFFFFF;
  --accent: #6E9BD6;
  --text: #1A222B;
  --muted: #56606B;
  --muted-light: #A9B3BE;
  --line: rgba(16, 24, 32, 0.14);
  --line-light: rgba(255, 255, 255, 0.16);

  --font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 11vw, 150px);
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 1px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--white);
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Headings: no word breaking ---------- */
h1,
h2,
h3,
.hero-title,
.section-title,
.contact-title,
.experience-number,
.experience-title,
.area-big,
.image-break-title,
.ref-place,
.strip-value {
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-head {
  max-width: 900px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 3px;
  height: 18px;
  background: var(--navy);
}

.eyebrow-light {
  color: var(--concrete);
}

.eyebrow-light::before {
  background: var(--accent);
}

.section-title {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  line-height: 0.98;
  color: var(--dark);
  max-width: 18ch;
}

.section-title-light {
  color: var(--white);
}

.section-title-sm {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.lead {
  font-size: clamp(1.06rem, 1.4vw, 1.22rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 60ch;
}

.lead-light {
  color: var(--concrete);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-bottom: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  transition: color 0.2s, border-color 0.2s;
}

.text-link:hover {
  color: var(--dark);
  border-color: var(--accent);
}

.photo-caption {
  margin-top: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.photo-caption-dark {
  color: var(--muted-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-light:hover {
  background: transparent;
  color: var(--white);
}

.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(16, 24, 32, 0.6), rgba(16, 24, 32, 0));
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: var(--dark);
  box-shadow: 0 1px 0 var(--line-light);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
}

.wordmark-main {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.wordmark-amp {
  display: inline-block;
  margin: 0 0.12em;
  font-weight: 500;
  color: var(--accent);
}

.wordmark-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted-light);
}

.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: clamp(16px, 2.2vw, 32px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-mobile-extra {
  display: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle-bar:nth-child(1) { top: 16px; }
.nav-toggle-bar:nth-child(2) { top: 23px; }
.nav-toggle-bar:nth-child(3) { top: 30px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 40px);
  color: var(--white);
  background: var(--dark);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 55%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.9) 0%, rgba(16, 24, 32, 0.7) 38%, rgba(16, 24, 32, 0.2) 75%, rgba(16, 24, 32, 0.15) 100%),
    linear-gradient(0deg, rgba(16, 24, 32, 0.95) 0%, rgba(16, 24, 32, 0) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(48px, 7vw, 88px);
}

.hero-eyebrow {
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 9.6vw, 7.6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
  max-width: 14ch;
  margin-bottom: 30px;
}

.hero-title span {
  display: block;
}

.hero-title-accent {
  color: var(--concrete);
}

.hero-lead {
  max-width: 54ch;
  margin-bottom: 36px;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-light);
  background: rgba(16, 24, 32, 0.55);
}

.hero-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px 24px 0;
}

.strip-item + .strip-item {
  padding-left: 24px;
  border-left: 1px solid var(--line-light);
}

.strip-value {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.strip-label {
  font-size: 0.8rem;
  color: var(--muted-light);
}

/* =========================================================
   30+ GODINA
   ========================================================= */
.experience {
  background: var(--off);
  overflow: hidden;
  padding-bottom: 0;
}

.bg-year {
  position: absolute;
  top: clamp(20px, 4vw, 60px);
  right: -0.06em;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(9rem, 30vw, 26rem);
  line-height: 0.8;
  color: var(--concrete);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.experience-grid {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.experience-figure {
  position: relative;
}

.experience-number {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(7rem, 17vw, 15rem);
  font-weight: 800;
  line-height: 0.82;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.experience-title {
  margin-top: 18px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 0.95;
  color: var(--dark);
}

.experience-text {
  position: relative;
  padding-top: clamp(0px, 2vw, 24px);
  max-width: 620px;
}

.experience-text p:not(.eyebrow):not(.lead) {
  color: var(--muted);
}

.bleed-right {
  margin-top: clamp(56px, 7vw, 96px);
  margin-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}

.experience-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 55%;
}

.experience-media .photo-caption {
  padding-bottom: 24px;
}

/* =========================================================
   USLUGE
   ========================================================= */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--dark);
}

.service {
  position: relative;
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.6vw, 40px) clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s var(--ease);
}

.service:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--line);
}

.service:nth-child(3n + 1) {
  padding-left: 0;
}

.service:hover {
  background: var(--off);
}

.service:nth-child(3n + 1):hover {
  background: transparent;
}

.service-num {
  display: block;
  margin-bottom: 26px;
  font-family: var(--font-head);
  font-size: clamp(3rem, 4.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  opacity: 0.85;
}

.service-title {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  line-height: 1.05;
  color: var(--dark);
}

.service p {
  margin-bottom: 0.7em;
  color: var(--muted);
  font-size: 0.98rem;
}

.service-list li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 0.95rem;
  color: var(--text);
  border-top: 1px solid var(--line);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 9px;
  height: 2px;
  background: var(--navy);
}

.services-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  margin-top: 36px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.services-note-label {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
}

.services-note p {
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   FEATURE: STROJNO ŽBUKANJE
   ========================================================= */
.feature-plaster {
  background: var(--off);
}

.feature-head {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.feature-head .section-title {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
}

.feature-head-text p {
  color: var(--muted);
  max-width: 56ch;
}

.feature-head-text p:last-child {
  margin-bottom: 0;
}

.photo-label {
  display: inline-block;
  margin: 0 0 20px;
  padding: 7px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
}

.plaster-gallery {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  height: clamp(520px, 62vw, 820px);
}

.plaster-main {
  grid-row: 1 / span 2;
}

.plaster-gallery figure {
  position: relative;
  overflow: hidden;
  background: var(--concrete);
}

.plaster-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   FEATURE: GLAZURE
   ========================================================= */
.feature-screed {
  background: var(--dark);
  color: var(--white);
}

.screed-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.screed-main {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin-left: calc(var(--gutter) * -1);
}

.screed-main img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 60%;
}

.screed-main .photo-caption {
  padding-left: var(--gutter);
}

.screed-content .section-title {
  margin-bottom: 26px;
}

.process {
  margin: 40px 0;
  border-top: 1px solid var(--line-light);
}

.process-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}

.process-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.process-step h3 {
  margin-bottom: 6px;
  font-size: 1.5rem;
  color: var(--white);
}

.process-step p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted-light);
}

.screed-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.screed-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.screed-pair figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted-light);
}

.fine-print {
  margin: 22px 0 0;
  font-size: 0.8rem;
  color: var(--muted-light);
  opacity: 0.85;
}

/* =========================================================
   FEATURE: HIDROIZOLACIJA
   ========================================================= */
.feature-hydro {
  background: var(--white);
}

.hydro-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hydro-text .lead {
  margin: 26px 0 28px;
}

.hydro-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
}

.hydro-panel {
  overflow: hidden;
  background: var(--concrete);
}

.hydro-panel:nth-child(2) {
  margin-top: clamp(24px, 4vw, 56px);
}

.hydro-panel img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   IMAGE BREAK
   ========================================================= */
.image-break {
  position: relative;
  height: clamp(420px, 75vh, 820px);
  overflow: hidden;
  background: var(--dark);
}

.image-break img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.image-break-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 24, 32, 0.85) 0%, rgba(16, 24, 32, 0.1) 55%, rgba(16, 24, 32, 0) 100%);
}

.image-break-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(32px, 6vw, 72px);
  color: var(--white);
}

.image-break-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.image-break-sub {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--concrete);
}

/* =========================================================
   REFERENCE
   ========================================================= */
.references {
  background: var(--off);
}

.ref-index {
  border-top: 2px solid var(--dark);
}

.ref-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 4fr) minmax(0, 6fr) 150px;
  gap: 20px;
  align-items: baseline;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s var(--ease), padding 0.25s var(--ease);
}

.ref-row:hover {
  background: var(--white);
}

.ref-num {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
}

.ref-place {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--dark);
}

.ref-desc {
  margin: 0;
  font-size: 1.02rem;
  color: var(--muted);
}

.ref-tag {
  justify-self: end;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid rgba(16, 42, 86, 0.35);
  white-space: nowrap;
}

/* ---------- Galerija ---------- */
.gallery-wrap {
  margin-top: clamp(80px, 10vw, 140px);
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.gallery-sub {
  margin: 0;
  color: var(--muted);
}

.gallery {
  columns: 3;
  column-gap: clamp(10px, 1.4vw, 18px);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: clamp(10px, 1.4vw, 18px);
}

.gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--concrete);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-btn img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.gallery-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid var(--navy);
  transition: border-width 0.2s var(--ease);
  pointer-events: none;
}

.gallery-btn:hover img {
  transform: scale(1.03);
}

.gallery-btn:hover::after,
.gallery-btn:focus-visible::after {
  border-width: 4px;
}

/* =========================================================
   PODRUČJE RADA
   ========================================================= */
.area {
  background: var(--white);
}

.area-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(24px, 4vw, 64px);
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 2px solid var(--dark);
  border-bottom: 1px solid var(--line);
}

.area-big {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--navy);
}

.area-big:nth-child(2) {
  color: var(--dark);
}

.area-big:nth-child(3) {
  color: transparent;
  -webkit-text-stroke: 2px var(--navy);
}

.area-list-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin: 36px 0 18px;
}

.area-count {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--dark);
}

.area-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.area-grid li {
  position: relative;
  padding: 18px 18px 18px 20px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.area-grid li.is-key {
  background: var(--off);
  font-weight: 600;
  color: var(--navy);
}

.area-grid li.is-key::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--navy);
}

/* =========================================================
   O NAMA
   ========================================================= */
.about {
  background: var(--off);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
}

.about-text .section-title {
  margin-bottom: 28px;
}

.about-text p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--muted);
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 2px solid var(--dark);
}

.data-cell {
  padding: 22px 20px 24px 0;
  border-bottom: 1px solid var(--line);
}

.data-cell:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.data-cell dt {
  margin-bottom: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-cell dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--navy);
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* =========================================================
   KONTAKT
   ========================================================= */
.contact {
  background: var(--navy);
  color: var(--white);
}

.contact-head {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.contact-title {
  margin-bottom: 26px;
  font-size: clamp(2.6rem, 8vw, 6.8rem);
  font-weight: 800;
  line-height: 0.92;
}

.contact-title span {
  display: block;
}

.contact-title span:last-child {
  color: var(--concrete);
}

.contact-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-info {
  border-top: 1px solid var(--line-light);
}

.contact-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
}

.contact-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.contact-value {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 500;
}

.contact-phone {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-value a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.contact-value a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Forma ---------- */
.contact-form {
  padding: clamp(24px, 3.5vw, 44px);
  background: var(--navy-deep);
  border: 1px solid var(--line-light);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--concrete);
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  transition: border-color 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(110, 155, 214, 0.5);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #F2A7A7;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--concrete);
  border-bottom: 2px solid var(--concrete);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field select {
  padding-right: 44px;
  cursor: pointer;
}

.field select option {
  color: var(--dark);
  background: var(--white);
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.field-check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.field-check label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.field-check.has-error label {
  color: #F2A7A7;
}

.btn-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 6px;
}

.form-status {
  min-height: 1.5em;
  margin: 18px 0 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.is-success {
  padding: 14px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent);
}

.form-status.is-error {
  color: #F2C2C2;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding-top: clamp(56px, 7vw, 88px);
  background: var(--dark);
  color: var(--concrete);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.wordmark-footer {
  margin-bottom: 18px;
}

.footer-services {
  max-width: 40ch;
  color: var(--muted-light);
}

.footer-label {
  margin-bottom: 14px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.footer-col p {
  margin-bottom: 10px;
}

.footer-col a,
.footer-nav a {
  color: var(--concrete);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover,
.footer-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-bottom {
  display: grid;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line-light);
}

.copyright {
  margin: 0;
  color: var(--muted-light);
}

.disclaimer {
  margin: 0;
  padding: 16px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--dark-2);
  border-left: 3px solid var(--accent);
}

.disclaimer a {
  font-weight: 600;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 80px;
  background: rgba(10, 15, 20, 0.95);
}

.lightbox[hidden] {
  display: none;
}

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  max-height: calc(100svh - 170px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-caption {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  color: var(--concrete);
}

.lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  transition: background-color 0.2s, border-color 0.2s;
}

.lb-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.lb-close {
  top: 16px;
  right: 16px;
}

.lb-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* =========================================================
   REVEAL (samo tekst, samo uz JS)
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav-list {
    gap: 18px;
  }

  .nav-link {
    font-size: 0.88rem;
  }

  .ref-row {
    grid-template-columns: 60px minmax(0, 4fr) minmax(0, 5fr) 130px;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 68px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px var(--gutter) 32px;
    margin: 0;
    background: var(--dark);
    border-top: 1px solid var(--line-light);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line-light);
  }

  .nav-link {
    display: block;
    padding: 16px 0;
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-active {
    color: var(--accent);
  }

  .nav-mobile-extra {
    display: block;
    margin-top: 32px;
  }

  .nav-mobile-contact {
    margin: 22px 0 0;
    color: var(--muted-light);
    line-height: 1.8;
  }

  .nav-mobile-contact a {
    color: var(--white);
  }

  .site-header.menu-open {
    background: var(--dark);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service:nth-child(3n + 1) {
    padding-left: clamp(20px, 2.6vw, 40px);
  }

  .service:not(:nth-child(3n + 1)) {
    border-left: 0;
  }

  .service:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .service:nth-child(odd) {
    padding-left: 0;
  }

  .service:nth-child(odd):hover {
    background: transparent;
  }

  .service:nth-child(3n + 1):hover {
    background: transparent;
  }

  .service:nth-child(even):hover {
    background: var(--off);
  }

  .hydro-grid {
    grid-template-columns: 1fr;
  }

  .hydro-text {
    max-width: 640px;
  }

  .area-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .experience-grid,
  .feature-head,
  .screed-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .experience-figure {
    display: flex;
    align-items: flex-end;
    gap: 18px;
  }

  .experience-title {
    margin: 0 0 6px;
  }

  .screed-main {
    position: relative;
    top: 0;
    margin-left: 0;
    margin-inline: calc(var(--gutter) * -1);
  }

  .screed-main img {
    aspect-ratio: 4 / 3;
  }

  .ref-row {
    grid-template-columns: 48px 1fr auto;
    grid-template-areas:
      "num place tag"
      "num desc desc";
    gap: 6px 16px;
  }

  .ref-num { grid-area: num; }
  .ref-place { grid-area: place; }
  .ref-desc { grid-area: desc; }
  .ref-tag { grid-area: tag; align-self: center; }

  .gallery {
    columns: 2;
  }

  .plaster-gallery {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .plaster-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .plaster-main img {
    aspect-ratio: 4 / 3;
  }

  .plaster-side img {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 720px) {
  .hero-strip-inner {
    grid-template-columns: 1fr 1fr;
  }

  .strip-item {
    padding: 16px 12px 16px 0;
  }

  .strip-item + .strip-item {
    padding-left: 14px;
  }

  .strip-item:nth-child(3) {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line-light);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service,
  .service:nth-child(odd),
  .service:nth-child(even),
  .service:nth-child(3n + 1) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .service:hover,
  .service:nth-child(even):hover {
    background: transparent;
  }

  .service-num {
    margin-bottom: 14px;
  }

  .hydro-panels {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .hydro-panel {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

  .hydro-panel:nth-child(2) {
    margin-top: 0;
  }

  .hydro-panel img {
    aspect-ratio: 3 / 4;
  }

  .area-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .experience-media img {
    aspect-ratio: 16 / 10;
  }

  .bleed-right {
    margin-left: var(--gutter);
  }

  .lightbox {
    padding: 72px 12px 88px;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lb-prev {
    left: calc(50% - 64px);
  }

  .lb-next {
    right: calc(50% - 64px);
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: calc(var(--header-h) + 28px);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(16, 24, 32, 0.85) 0%, rgba(16, 24, 32, 0.55) 100%),
      linear-gradient(0deg, rgba(16, 24, 32, 0.95) 0%, rgba(16, 24, 32, 0) 55%);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .wordmark-main {
    font-size: 1.75rem;
  }

  .experience-figure {
    display: block;
  }

  .experience-title {
    margin-top: 12px;
  }

  .gallery {
    columns: 1;
  }

  .area-grid {
    grid-template-columns: 1fr;
  }

  .area-big:nth-child(3) {
    -webkit-text-stroke-width: 1.5px;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .data-cell:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .ref-row {
    grid-template-columns: 36px 1fr;
    grid-template-areas:
      "num place"
      "num desc"
      "num tag";
  }

  .ref-tag {
    justify-self: start;
    margin-top: 6px;
  }

  .screed-pair {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-phone {
    font-size: 1.6rem;
  }
}

@media (min-width: 1440px) {
  :root {
    --max: 1360px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .gallery-btn:hover img {
    transform: none;
  }
}

/* =========================================================
   DODACI: klikabilne fotografije, reference kao linkovi, adresa
   ========================================================= */

/* ---------- Zoom gumbi na fotografijama ---------- */
.zoom-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.zoom-btn img {
  transition: transform 0.6s var(--ease);
}

.zoom-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid var(--navy);
  transition: border-width 0.2s var(--ease);
  pointer-events: none;
}

.zoom-btn:hover img {
  transform: scale(1.03);
}

.zoom-btn:hover::after,
.zoom-btn:focus-visible::after {
  border-width: 4px;
}

.zoom-btn:focus-visible {
  outline-offset: -3px;
}

.plaster-gallery .zoom-btn {
  height: 100%;
}

/* Hidroizolacija: fotografije u potpunosti ispunjavaju panele (bez sive pozadine) */
.hydro-panels {
  align-items: start;
}

.hydro-panel {
  background: transparent;
}

.hydro-panel .zoom-btn,
.hydro-panel img {
  display: block;
  width: 100%;
}

/* Velika fotografija – klik otvara lightbox */
.image-break .zoom-btn {
  position: absolute;
  inset: 0;
  height: 100%;
}

.image-break-overlay,
.image-break-content {
  pointer-events: none;
}

/* ---------- Reference: cijeli red je link ---------- */
.ref-row {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ref-row:hover .ref-place,
.ref-row:focus-visible .ref-place {
  color: var(--navy);
}

.ref-row:focus-visible {
  outline-offset: -3px;
  background: var(--white);
}

.ref-tag {
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.ref-row:hover .ref-tag,
.ref-row:focus-visible .ref-tag {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ---------- Povezane reference u feature sekcijama ---------- */
.related-refs {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.related-label {
  margin: 0 0 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.related-refs li {
  position: relative;
  padding: 10px 12px 10px 16px;
  font-size: 0.95rem;
  color: var(--text);
  border-left: 3px solid var(--concrete);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.related-refs li + li {
  margin-top: 6px;
}

.related-refs li strong {
  font-weight: 700;
}

.related-refs li.is-highlight {
  background: rgba(16, 42, 86, 0.08);
  border-left-color: var(--navy);
}

.related-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.feature-screed .related-refs {
  margin-bottom: 8px;
  border-top-color: var(--line-light);
}

.feature-screed .related-label {
  color: var(--accent);
}

.feature-screed .related-refs li {
  color: var(--concrete);
  border-left-color: rgba(255, 255, 255, 0.2);
}

.feature-screed .related-refs li strong {
  color: var(--white);
}

.feature-screed .related-refs li.is-highlight {
  background: rgba(110, 155, 214, 0.16);
  border-left-color: var(--accent);
}

.feature-screed .related-note {
  color: var(--muted-light);
}

.hydro-text .related-refs {
  margin: 0 0 28px;
}

/* ---------- Adresa / Google Karte ---------- */
.map-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(16, 42, 86, 0.35);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s;
}

.map-link:hover {
  text-decoration-color: var(--navy);
}

.contact-hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted-light);
}

/* ---------- Lightbox s jednom fotografijom ---------- */
.lightbox.is-single .lb-prev,
.lightbox.is-single .lb-next {
  display: none;
}

@media (max-width: 720px) {
  .hydro-panels {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zoom-btn:hover img {
    transform: none;
  }
}

/* ---------- Referenca Čakovec na velikoj fotografiji ---------- */
.image-break-ref {
  display: inline-block;
  margin: 22px 0 0;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--concrete);
  background: rgba(16, 24, 32, 0.6);
  border-left: 3px solid var(--accent);
  transition: background-color 0.4s var(--ease);
}

.image-break-ref strong {
  color: var(--white);
}

.image-break-ref-label {
  margin-right: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.image-break-ref.is-highlight {
  background: rgba(16, 42, 86, 0.9);
}