/* ===== Osnovno ===== */
:root {
  --wood: #a0673a;
  --wood-dark: #7a4a25;
  --wood-light: #d9b38c;
  --ink: #1f1c19;
  --ink-soft: #4a4540;
  --muted: #7a726a;
  --bg: #faf7f3;
  --bg-alt: #f1ebe3;
  --white: #fff;
  --line: #e4dbd0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 28, 25, .08);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wood); margin-bottom: .8em;
}
.eyebrow--light { color: var(--wood-light); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 520px; }

/* ===== Dugmad ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid var(--wood);
  background: var(--wood); color: var(--white); font-weight: 600; font-size: 1rem;
  cursor: pointer; font-family: inherit;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.btn:hover { background: var(--wood-dark); border-color: var(--wood-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--small { padding: 9px 20px; font-size: .95rem; }
.btn--full { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(250, 247, 243, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--wood), var(--wood-dark));
  color: var(--white); font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
}
.logo__text { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1; display: flex; flex-direction: column; }
.logo__text small { font-family: var(--font-body); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.logo--light .logo__text { color: var(--white); }
.logo--light .logo__text small { color: var(--wood-light); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { font-weight: 500; color: var(--ink-soft); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--wood); transition: width .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--wood); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 40px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--muted); font-size: .95rem; }
.hero__facts strong { color: var(--ink); }

.hero__visual { position: relative; aspect-ratio: 1 / 1; }
.hero__card { position: absolute; border-radius: 22px; box-shadow: var(--shadow); }
.hero__card--a {
  inset: 0 18% 22% 0;
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,.06) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(88deg, rgba(0,0,0,.05) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, #b77c4b, #7a4a25);
}
.hero__card--b {
  right: 0; bottom: 0; width: 52%; height: 48%;
  background: linear-gradient(160deg, #3a332d, #1f1c19);
}
.hero__card--b::before, .hero__card--b::after {
  content: ""; position: absolute; left: 14%; right: 14%; height: 3px; border-radius: 3px; background: var(--wood-light);
}
.hero__card--b::before { top: 38%; }
.hero__card--b::after { top: 62%; }
.hero__card--c {
  left: 8%; bottom: 6%; width: 34%; height: 26%;
  background: var(--white); border: 1px solid var(--line);
}
.hero__card--c::before {
  content: ""; position: absolute; inset: 22% 18%;
  border-top: 3px solid var(--wood); border-bottom: 3px solid var(--line);
}

/* ===== O nama ===== */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.about__text p { color: var(--ink-soft); }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; display: flex; flex-direction: column; gap: 6px;
}
.stat__num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--wood); line-height: 1; }
.stat__label { font-size: .92rem; color: var(--muted); }

/* ===== Usluge ===== */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--wood-light); }
.service svg {
  width: 44px; height: 44px; margin-bottom: 18px;
  fill: none; stroke: var(--wood); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.service p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== Proces ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: none; }
.step { position: relative; padding-top: 24px; border-top: 2px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--wood);
}
.step__num { font-family: var(--font-head); font-size: 2.6rem; color: var(--wood-light); font-weight: 700; display: block; line-height: 1; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== Galerija ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 16px; }
.gallery__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img, .gallery__item .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img, .gallery__item:hover .ph { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
  color: var(--white); font-weight: 500;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.gallery__item:hover figcaption { opacity: 1; transform: none; }

/* privremene "slike" dok se ne ubace prave fotografije */
.ph { display: grid; place-items: center; color: rgba(255,255,255,.85); font-family: var(--font-head); font-size: 1.4rem; }
.ph--1 { background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 18px), linear-gradient(135deg, #b9834f, #7a4a25); }
.ph--2 { background: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 16px), linear-gradient(160deg, #6d655d, #3a332d); }
.ph--3 { background: linear-gradient(145deg, #d9b38c, #a0673a); }
.ph--4 { background: linear-gradient(145deg, #8fa89b, #4f6b5d); }
.ph--5 { background: linear-gradient(145deg, #4a4540, #1f1c19); }
.ph--6 { background: repeating-linear-gradient(88deg, rgba(0,0,0,.06) 0 1px, transparent 1px 24px), linear-gradient(135deg, #c99a6b, #8a5a33); }

/* ===== Zašto mi ===== */
.why { background: var(--ink); color: var(--white); }
.why__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.why__list li { padding-left: 20px; border-left: 2px solid var(--wood); }
.why__list strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.why__list span { color: #b9b1a8; font-size: .95rem; }

/* ===== Kontakt ===== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list svg {
  flex: none; width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: var(--bg-alt);
  fill: none; stroke: var(--wood); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.contact__list span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact__list a { font-weight: 600; font-size: 1.1rem; }
.contact__list a:hover { color: var(--wood); }

.form {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--wood); box-shadow: 0 0 0 3px rgba(160, 103, 58, .15); background: var(--white);
}
.form .is-invalid { border-color: #c0392b; }
.form__status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form__status.ok { color: #2e7d4f; }
.form__status.err { color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.map { margin-top: 64px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.3); }

/* ===== Footer ===== */
.footer { background: #171512; color: #b9b1a8; padding: 56px 0 24px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer__note { margin: 14px 0 0; font-size: .92rem; }
.footer__links { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer__links a:hover { color: var(--wood-light); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2e2a26; font-size: .85rem; }

/* ===== Plutajuće dugme za poziv (mobilni) ===== */
.call-fab {
  display: none; position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wood);
  box-shadow: 0 8px 24px rgba(122, 74, 37, .45); place-items: center;
}
.call-fab svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15, 13, 11, .92);
  display: grid; place-items: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__content { width: min(1000px, 100%); max-height: 85vh; border-radius: var(--radius); overflow: hidden; }
.lightbox__content img { width: 100%; max-height: 85vh; object-fit: contain; }
.lightbox__content .ph { aspect-ratio: 16 / 10; }
.lightbox__close {
  position: absolute; top: 14px; right: 18px; background: none; border: 0; color: var(--white);
  font-size: 2.6rem; line-height: 1; cursor: pointer;
}

/* ===== Animacija pri skrolu ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .why__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 24px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    opacity: 0; transform: translateY(-12px); visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; padding: 14px; }

  .hero__inner, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 420px; width: 100%; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .call-fab { display: grid; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__visual { max-width: 280px; }
  .services, .steps, .why__list, .form__row { grid-template-columns: 1fr; }
  .about__stats { gap: 12px; }
  .stat { padding: 20px 16px; }
  .stat__num { font-size: 2rem; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item figcaption { opacity: 1; transform: none; }
  .map { height: 300px; margin-top: 48px; }
  .footer__links { text-align: left; }
}
