/* ============================================================
   FOTOGRAF ZA NEKRETNINE — Nikola Mitrović · Beograd.
   Hand-built static site (one-of-one).
   Crisp, architectural, editorial real-estate aesthetic:
   dark charcoal canvas, clean white type, cool azure accent.
   Big confident imagery, lots of negative space.
   Space Grotesk (display) + Inter (body). Precise, premium.
   ============================================================ */

:root {
  --bg:        #16181d;   /* dark charcoal — page base */
  --bg-2:      #1b1e25;   /* lifted panel */
  --bg-3:      #20242c;   /* card surface on dark */
  --panel:     #1a1d24;   /* feature section base */
  --ink:       #f4f6f9;   /* near-white headline text */
  --ink-soft:  #c2cad6;   /* secondary text */
  --muted:     #8794a5;   /* muted slate */
  --azure:     #38a0eb;   /* cool azure accent */
  --azure-lt:  #7cc0f0;   /* lighter azure */
  --azure-dp:  #2b86c9;   /* deeper azure */
  --azure-soft:rgba(56,160,235,.14);
  --line:      rgba(244,246,249,.10);
  --line-2:    rgba(244,246,249,.06);
  --line-azure:rgba(56,160,235,.40);
  --shadow:    0 34px 70px -36px rgba(0,0,0,.7);
  --shadow-sm: 0 18px 40px -24px rgba(0,0,0,.65);
  --maxw:      1180px;
  --disp: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink-soft);
  font-family: var(--sans); font-weight: 400; line-height: 1.74;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--azure); color: #fff; }

h1, h2, h3 { font-family: var(--disp); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); font-weight: 700; }
h1 em { font-style: normal; color: var(--azure); }
h2 { font-size: clamp(2rem, 4.1vw, 3.2rem); }
h3 { font-size: 1.45rem; font-weight: 600; }

.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--azure-lt); margin-bottom: 1.1rem;
}
.eyebrow-line { display: inline-flex; align-items: center; gap: .8rem; }
.eyebrow-line::before { content: ""; width: 34px; height: 1px; background: var(--azure); }
.eyebrow-center { justify-content: center; }
.eyebrow-center::before { display: none; }

.section { padding: clamp(74px, 10vw, 132px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 62px); }
.section-head-center { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; margin-top: 1rem; }

.text-link {
  display: inline-block; margin-top: 1.7rem; font-family: var(--sans); font-weight: 600;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--azure-lt);
  border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .25s ease, color .25s ease;
}
.text-link:hover { color: var(--ink); border-color: var(--azure); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-size: .86rem; font-weight: 600;
  letter-spacing: .04em; padding: 15px 30px; border-radius: 4px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease;
}
.btn-solid { background: var(--azure); color: #fff; }
.btn-solid:hover { background: var(--azure-dp); transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgba(56,160,235,.6); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--azure); color: var(--azure-lt); background: var(--azure-soft); }
.btn-lg { padding: 17px 38px; font-size: .94rem; }

/* ---------- wordmark ---------- */
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-mark {
  font-family: var(--disp); font-weight: 600; font-size: 1.32rem;
  letter-spacing: -.01em; color: var(--ink); transition: font-size .3s ease, color .3s ease;
}
.brand-sub {
  font-family: var(--sans); font-weight: 600; font-size: .54rem;
  letter-spacing: .3em; color: var(--azure-lt); margin-top: 5px; padding-left: .04em;
}

/* ============================================================
   HEADER  (transparent over hero, charcoal-glass on scroll)
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0;
  transition: padding .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 11px 0; background: rgba(22,24,29,.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); box-shadow: 0 10px 28px -20px rgba(0,0,0,.7);
}
.site-header.scrolled .brand-mark { font-size: 1.18rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-family: var(--sans); font-size: .9rem; font-weight: 500;
  letter-spacing: .02em; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color .2s ease;
}
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--azure); transition: width .28s ease; }
.nav a:not(.nav-cta):hover { color: var(--ink); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { border: 1px solid var(--azure); color: var(--azure-lt); padding: 8px 18px !important; border-radius: 4px; font-weight: 600 !important; transition: all .25s ease; }
.nav-cta:hover { background: var(--azure); color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; z-index: 95; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform .3s ease, opacity .3s ease, background .3s ease; }
.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  (architectural facade photo under charcoal gradient scrim)
   ============================================================ */
.hero {
  position: relative; min-height: 96vh; display: flex; align-items: center;
  padding: clamp(150px, 20vw, 210px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden; background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('images/hero.jpg') center 30% / cover no-repeat;
  transform: scale(1.05); filter: saturate(1.05) contrast(1.04);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(22,24,29,.55) 0%, rgba(22,24,29,.40) 28%, rgba(22,24,29,.78) 74%, rgba(16,18,22,.96) 100%),
    linear-gradient(100deg, rgba(16,18,22,.90) 0%, rgba(16,18,22,.46) 50%, rgba(16,18,22,.10) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 830px; }
.hero h1 { margin-bottom: 1.5rem; text-shadow: 0 4px 34px rgba(0,0,0,.55); }
.hero-lede { font-size: clamp(1.1rem, 1.7vw, 1.36rem); color: #e7edf4; max-width: 38em; margin-bottom: 1.5rem; }
.hero-lede strong { color: var(--azure-lt); font-weight: 600; }
.hero-target {
  font-family: var(--disp); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  color: var(--ink); margin-bottom: 2.2rem; padding-left: 18px; border-left: 2px solid var(--azure);
  letter-spacing: -.01em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-credit {
  position: absolute; right: 24px; bottom: 18px; z-index: 2;
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,246,249,.5);
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.strip { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 34px 18px; text-align: center; border-right: 1px solid var(--line-2); }
.strip-item:last-child { border-right: 0; }
.strip-k { display: block; font-family: var(--disp); font-weight: 600; font-size: 1.6rem; line-height: 1.05; color: var(--ink); letter-spacing: -.01em; }
.strip-v { display: block; font-size: .74rem; letter-spacing: .05em; margin-top: 8px; color: var(--muted); text-transform: uppercase; }

/* ============================================================
   O MENI
   ============================================================ */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about h2 { margin: .3rem 0 1.5rem; }
.about .lead { font-size: 1.22rem; color: var(--ink); margin-bottom: 1.1rem; line-height: 1.6; }
.about .lead strong, .about p strong { color: var(--azure-lt); font-weight: 600; }
.about p { color: var(--ink-soft); margin-bottom: 1rem; }
.about-figure { position: relative; padding: 10px; background: var(--bg-3); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 4px; }
.about-figure::before {
  content: ""; position: absolute; inset: -1px; border-radius: 4px; pointer-events: none;
  border-top: 3px solid var(--azure);
}
.about-figure img { width: 100%; height: clamp(280px, 36vh, 380px); object-fit: cover; object-position: center 50%; border-radius: 3px; }
.about-figure figcaption {
  font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); text-align: center; padding: 12px 6px 4px;
}

/* ============================================================
   USLUGE  (feature cards on lifted panel)
   ============================================================ */
.services { background: var(--panel); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 1.8vw, 26px); }
.svc {
  background: var(--bg-3); padding: clamp(28px, 3vw, 42px); border: 1px solid var(--line);
  border-radius: 4px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--line-azure); }
.svc-num { display: block; font-family: var(--disp); font-size: 1.5rem; font-weight: 600; color: var(--azure); margin-bottom: .7rem; letter-spacing: .02em; }
.svc h3 { margin-bottom: .7rem; }
.svc p { color: var(--ink-soft); font-size: .98rem; line-height: 1.66; }

/* ============================================================
   GALERIJA  (contained cards — sources cap at 240px, never stretch)
   ============================================================ */
.gallery-sec { background: var(--bg); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.5vw, 20px); grid-auto-flow: dense; }
.card {
  position: relative; cursor: pointer; overflow: hidden; border-radius: 4px;
  border: 1px solid var(--line); background: var(--bg-3); padding: 8px;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, border-color .3s ease;
}
.card-tall { grid-row: span 2; }
.card-wide { grid-column: span 2; }
.card img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; transition: transform .7s cubic-bezier(.2,.7,.3,1); aspect-ratio: 3 / 4; }
.card-wide img { aspect-ratio: 16 / 9; }
.card::after {
  content: "⤢"; position: absolute; right: 16px; bottom: 16px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  background: var(--azure); color: #fff; border-radius: 4px; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-azure); }
.card:hover img { transform: scale(1.06); }
.card:hover::after { opacity: 1; transform: none; }

/* ============================================================
   ZA KOGA
   ============================================================ */
.why { background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.why-card { text-align: center; padding: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 30px); border: 1px solid var(--line); border-radius: 4px; background: var(--bg-3); }
.why-ico { display: inline-block; font-size: 1.1rem; color: var(--azure); margin-bottom: 1rem; }
.why-card h3 { margin-bottom: .8rem; font-size: 1.32rem; }
.why-card p { color: var(--ink-soft); font-size: 1rem; line-height: 1.72; }

/* ============================================================
   KONTAKT  (azure-glow feature panel)
   ============================================================ */
.contact { background: var(--panel); text-align: center; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 380px at 50% 0%, rgba(56,160,235,.16), transparent 70%);
}
.contact-inner { max-width: 720px; margin: 0 auto; position: relative; }
.contact h2 { margin: .3rem 0 1.2rem; }
.contact-lede { color: var(--ink-soft); font-size: 1.12rem; margin-bottom: 2.4rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 1.8rem; }
.contact-loc { color: var(--azure-lt); letter-spacing: .1em; font-size: .9rem; text-transform: uppercase; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #101216; color: var(--ink-soft); padding: clamp(50px, 6vw, 76px) 0 60px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.footer-word { display: block; font-family: var(--disp); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em; color: var(--ink); }
.footer-word-sub { display: block; font-family: var(--sans); font-weight: 600; font-size: .56rem; letter-spacing: .3em; color: var(--azure-lt); margin: 5px 0 14px; }
.footer-brand p { color: var(--ink-soft); font-size: .94rem; }
.f-label { font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--azure-lt); font-weight: 600; }
.footer-col p { margin-top: 10px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--azure-lt); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: .8rem; color: var(--muted); letter-spacing: .03em; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  padding: 6vh 5vw; background: rgba(10,11,14,.96); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lb-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 560px; }
.lb-inner img { max-height: 72vh; width: auto; border-radius: 4px; padding: 8px; background: var(--bg-3); box-shadow: var(--shadow); }
.lb-cap { color: var(--ink-soft); text-align: center; font-family: var(--disp); font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em; }
.lb-close, .lb-nav { position: absolute; background: rgba(244,246,249,.08); border: 1px solid rgba(244,246,249,.3); color: var(--ink); cursor: pointer; transition: all .25s ease; border-radius: 4px; z-index: 2; }
.lb-close { top: 22px; right: 22px; width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 1.8rem; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close:hover, .lb-nav:hover { background: var(--azure); color: #fff; border-color: var(--azure); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-figure { max-width: 460px; order: 2; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(1), .strip-item:nth-child(2) { border-bottom: 1px solid var(--line-2); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.7rem; padding: 0 36px;
    background: var(--bg-2); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .38s cubic-bezier(.2,.7,.3,1); z-index: 90;
    box-shadow: -20px 0 50px -30px rgba(0,0,0,.8);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.2rem; color: var(--ink-soft); }
  .nav-toggle { display: flex; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: span 2; }
  .hero { min-height: auto; }
}
@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .svc-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-base { flex-direction: column; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .card-tall { grid-row: span 1; }
  .card-tall img { aspect-ratio: 3 / 4; }
  .card-wide { grid-column: span 2; }
  .card-wide img { aspect-ratio: 16 / 9; }
}
