/* Monte-Mont — dizajn 3 (topli pergament, uski naslovi Barlow Semi Condensed, bakreni naglasak) */
:root {
  --parchment: #f7f7f4;   /* pozadina */
  --bone: #f2f1ed;        /* kartice */
  --linen: #e6e5e0;       /* svijetli gumbi, tagovi */
  --stone: #cdcdc9;       /* linije */
  --ash: #7a7974;         /* prigušeni tekst */
  --ink: #26251e;         /* tekst, tamni gumb */
  --ink-2: #3b3a33;
  --accent: #b14e1a;      /* bakreni naglasak — samo tekst */
  --line: color-mix(in oklab, var(--ink) 12%, transparent);

  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;  /* naslovi */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(48px, 6vw, 84px);
  --radius: 4px;
  --shadow: 0 28px 70px rgba(0, 0, 0, .14), 0 14px 32px rgba(0, 0, 0, .10), 0 0 0 1px var(--line);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--parchment); color: var(--ink);
  font: 400 15px/1.6 var(--sans); letter-spacing: .002em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: #8bc4f8; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.small { font-size: 14px; }
.muted { color: var(--ash); }
.label { font-size: 14px; color: #66655f; margin: 0 0 16px; letter-spacing: .01em; }
.split > .label { margin-top: .5em; }
.label a:hover { color: var(--ink); }

/* tipografija */
.display, .h1, .h2, .h3, .brand, .serif-lg, .prose-lg, .news-title, blockquote p { font-family: var(--display); }
.display { font-size: clamp(46px, 5.6vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -.015em; max-width: 22ch; }
.h2 { font-size: clamp(32px, 3.6vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.display em, .h1 em { font-style: normal; color: var(--accent); }
.serif-lg { font-size: 21px; line-height: 1.4; }
.prose-lg { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.35; letter-spacing: -.005em; }
.lead { font-size: 17px; color: var(--ash); max-width: 56ch; margin-top: 20px; }
.prose { max-width: 68ch; }
.prose p { font-size: 16px; line-height: 1.7; }
.prose p.prose-lg { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.35; margin-bottom: .9em; }
.prose ul { margin: 0 0 1em; }
.prose li { padding: 6px 0 6px 18px; position: relative; }
.prose li::before { content: "—"; position: absolute; left: 0; color: var(--ash); }
.prose a, .link-accent { color: var(--accent); }
.prose a:hover, .link-accent:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-accent { font-size: 14px; white-space: nowrap; }
.arrow { display: inline-block; transition: transform .2s ease; }
a:hover > .arrow { transform: translateX(3px); }

/* gumbi */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius);
  padding: .78em 1.35em .8em; font: 400 14px/1.2 var(--sans); border: 0; cursor: pointer;
  transition: background-color .15s cubic-bezier(.4, 0, .2, 1), color .15s;
}
.btn-dark { background: var(--ink); color: var(--parchment); }
.btn-dark:hover { background: var(--ink-2); }
.btn-light { background: var(--linen); color: var(--ink); }
.btn-light:hover { background: #dcdbd5; }
.btn-sm { padding: .62em 1.05em; font-size: 14px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* zaglavlje */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--parchment) 90%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand-footer img { height: 34px; margin-bottom: 10px; }
.main-nav { display: flex; gap: 28px; font-size: 14px; }
.main-nav a { color: color-mix(in oklab, var(--ink) 75%, transparent); transition: color .15s; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.main-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; gap: 2px; font-size: 13px; }
.lang a { color: var(--ash); padding: 4px 5px; border-radius: 2px; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); background: var(--linen); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
.nav-contact-mobile { display: none; }

/* naslovnica — hero */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero-text { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.hero-text .display em { display: block; }
.hero-side { padding-bottom: .35em; }
.hero-side p { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; max-width: 36ch; margin-bottom: 1.4em; }
.hero-side .btn { font-size: 15px; padding: .85em 1.5em .87em; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--ash); }

/* sekcije */
.section { padding-top: var(--section); }
.section:last-child { padding-bottom: var(--section); }
main > :last-child { margin-bottom: var(--section); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.split { display: grid; grid-template-columns: minmax(160px, 1fr) 2.2fr; gap: 32px; align-items: start; }
.border-top { border-top: 1px solid var(--line); padding-top: var(--section); }
.page-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(28px, 3.5vw, 44px); }
.page-head + .section { padding-top: 8px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 22px; margin: 28px 0 24px; }
.stats strong { display: block; font: 500 clamp(28px, 3vw, 38px)/1.1 var(--display); letter-spacing: -.015em; }
.stats span { font-size: 14px; color: var(--ash); }

/* usluge */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.service-card { background: var(--bone); border-radius: var(--radius); padding: 28px 28px 34px; min-height: 190px; transition: background-color .2s; }
.service-card:hover { background: var(--linen); }
.service-mark { display: block; font: 400 30px/1 var(--display); color: var(--accent); height: 18px; }
.service-card h3 { font: 500 24px/1.2 var(--display); margin: 6px 0 10px; }
.service-card p { color: var(--ink-2); font-size: 14px; max-width: 52ch; margin: 0; }

.service-rows { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 56px 1.1fr 1.4fr 24px; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service-row p { margin: 0; font-size: 14px; }
.service-row:hover h2 { color: var(--accent); }
.side-links { display: flex; flex-direction: column; gap: 10px; }
.side-links a { color: var(--ink-2); }
.side-links a:hover { color: var(--accent); }

/* mozaik projekata (naslovnica) */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 14vw, 180px); gap: 4px; }
.tile { position: relative; overflow: hidden; border-radius: 2px; background: var(--bone); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.035); }
.tile-cap { position: absolute; left: 10px; bottom: 10px; background: var(--parchment); color: var(--ink); font-size: 12px; padding: 4px 8px; border-radius: 2px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
.m-a { grid-column: span 3; grid-row: span 2; }
.m-b { grid-column: span 3; }
.m-c { grid-column: span 3; }
.m-d { grid-column: span 2; }
.m-e { grid-column: span 2; }
.m-f { grid-column: span 2; }
.m-g { grid-column: span 6; grid-row: span 1; }

/* citat */
.quote-band { background: var(--ink); color: var(--parchment); padding: clamp(56px, 7vw, 96px) 0; margin-top: var(--section); }
.quote-band .label { color: #a1a19f; }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p { font-size: clamp(26px, 3vw, 36px); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; max-width: 30ch; }
.quote-text { margin-top: 24px; max-width: 64ch; }
.quote-band .quote-text p { max-width: none; letter-spacing: 0; font: 400 clamp(15px, 1.2vw, 18px)/1.65 var(--sans); color: #cdcdc9; margin: 0 0 1em; }
.quote-band blockquote footer { color: #e6e5e0; margin-top: 20px; font-size: 15px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.mv-grid .serif-lg { color: var(--linen); margin: 0; }

/* partneri */
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.logos { --cols: 9; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.logos .logo-tile { flex: 0 0 calc((100% - (var(--cols) - 1) * 4px) / var(--cols)); }
@media (max-width: 1100px) { .logos { --cols: 6; } }
@media (max-width: 760px) { .logos { --cols: 4; --lu: .62px; } .logo-tile { padding: 8px; aspect-ratio: 4 / 3; } }
.logo-tile { background: var(--bone); border-radius: var(--radius); aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 14px 18px; transition: background-color .2s; }
.logo-tile img { width: calc(var(--lw, 70) * var(--lu, 1px)); max-width: 100%; height: auto; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); opacity: .72; transition: filter .25s, opacity .25s; }
.logo-tile:hover { background: var(--linen); }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-text { font: 500 17px/1.2 var(--display); color: var(--ink-2); text-align: center; }
.tag { background: var(--linen); border-radius: 2px; padding: 6px 11px; font-size: 14px; color: var(--ink-2); }

/* novosti */
.news-list { border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 140px 1fr 24px; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-title { font-size: 24px; font-weight: 500; line-height: 1.25; }
.news-row:hover .news-title { color: var(--accent); }
.news-row .arrow { color: var(--accent); }

/* popis projekata */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.chip { font: 400 14px/1 var(--sans); background: transparent; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; cursor: pointer; transition: all .15s; }
.chip:hover { background: var(--bone); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--parchment); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
.project-card[hidden] { display: none; }
.no-img { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--ash); }
.project-img { overflow: hidden; border-radius: var(--radius); background: var(--bone); aspect-ratio: 4 / 3; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.project-card:hover .project-img img { transform: scale(1.035); }
.project-meta { padding-top: 14px; }
.project-meta h3 { font: 500 24px/1.2 var(--display); margin-top: 4px; }
.project-card:hover h3 { color: var(--accent); }

/* projekt */
.project-hero { display: block; }
.project-hero img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.facts { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.facts dd { margin: 4px 0 0; font: 400 18px/1.3 var(--display); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: var(--section); }
.g-item { overflow: hidden; background: var(--bone); aspect-ratio: 4 / 3; border-radius: 2px; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.04); }
.pager { display: flex; justify-content: space-between; gap: 24px; padding-top: var(--section); }
.pager a { display: flex; flex-direction: column; gap: 6px; max-width: 45%; font: 400 20px/1.3 var(--display); }
.pager a.right { text-align: right; align-items: flex-end; }
.pager a:hover span:last-child { color: var(--accent); }
.wide-figure { margin: 0; }
.wide-figure img { width: 100%; max-height: 72vh; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* karta projekata */
.map-intro { margin: -12px 0 22px; font-size: 15px; max-width: 60ch; }
.project-map { position: relative; isolation: isolate; height: clamp(380px, 46vw, 580px); border-radius: var(--radius); overflow: hidden; background: var(--bone); box-shadow: var(--shadow); }
.map-on-projects { margin-bottom: 36px; }
.project-map .leaflet-tile-pane { filter: grayscale(1) sepia(.18) contrast(.88) brightness(1.08); }
.project-map .map-pin { display: flex; align-items: center; justify-content: center; background: var(--accent); border: 2px solid var(--parchment); border-radius: 50%; box-shadow: 0 2px 10px rgba(38, 37, 30, .35); color: var(--parchment); font: 600 12px/1 var(--display); transition: background-color .15s, box-shadow .15s; }
.project-map .map-pin:hover { background: #8f3e14; box-shadow: 0 0 0 4px rgba(177, 78, 26, .25), 0 2px 10px rgba(38, 37, 30, .35); }
.project-map .leaflet-popup-content-wrapper { background: var(--parchment); border-radius: var(--radius); box-shadow: var(--shadow); }
.project-map .leaflet-popup-tip { background: var(--parchment); }
.project-map .leaflet-popup-content { margin: 14px 16px; font-family: var(--sans); }
.map-pop strong { display: block; font: 600 21px/1.1 var(--display); color: var(--ink); }
.map-pop .mono { font-size: 12px; color: var(--ash); }
.map-pop ul { margin-top: 10px; max-height: 248px; overflow-y: auto; }
.map-pop li a { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 1.3; }
.map-pop li a:hover span { color: var(--accent); }
.map-pop img { width: 46px; height: 34px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.map-all { background: var(--ink); color: var(--parchment); border: 0; border-radius: var(--radius); padding: 8px 12px; font: 400 13px/1 var(--sans); cursor: pointer; box-shadow: 0 2px 8px rgba(38, 37, 30, .25); }
.map-all:hover { background: var(--ink-2); }
.project-map .leaflet-control-attribution { font-size: 10px; background: rgba(247, 247, 244, .8); }

/* reference */
.ref-sub + .ref-sub { margin-top: 36px; }
.ref-sub h3 { margin-bottom: 8px; font-size: 14px; }
.list-lines { border-top: 1px solid var(--line); }
.list-lines li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.list-lines li::first-letter { text-transform: uppercase; }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: stretch; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-content: start; }
.contact-cards .card { background: var(--bone); border-radius: var(--radius); padding: 22px; }
.contact-cards .card .serif-lg { margin: 0; font-size: 19px; }
.contact-cards .card a:hover { color: var(--accent); }
.contact-cards .btn { grid-column: 1 / -1; justify-content: center; margin-top: 12px; padding: 1em; }
.map { min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bone); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.6) sepia(.15); }

/* podnožje */
.site-footer { background: var(--bone); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font: 500 14px/1.4 var(--sans); margin-bottom: 8px; }
.site-footer p { color: var(--ash); margin: 0; }
.site-footer a:hover { color: var(--ink); }
.footer-eu { margin-top: 40px; }
.footer-eu img { width: 100%; max-width: 420px; mix-blend-mode: multiply; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ash); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 19, 15, .94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 2px; }
.lightbox button { position: absolute; background: transparent; border: 0; color: var(--parchment); font: 400 28px/1 var(--sans); cursor: pointer; padding: 16px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #a1a19f; font: 12px var(--mono); }

/* tablet */
@media (max-width: 960px) {
  .main-nav { gap: 20px; }
  .hero-text { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 40px 1fr 24px; }
  .service-row p { grid-column: 2; grid-row: 2; }
  .service-row .arrow { grid-column: 3; grid-row: 1; }
}

/* mobitel */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .nav-toggle { display: block; }
  .header-right .btn { display: none; }
  .header-right { gap: 6px; }
  .brand img { height: 28px; }
  .main-nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; background: var(--parchment);
    padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .main-nav a { font: 400 26px/1.2 var(--display); color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-contact-mobile { display: block; border-bottom: 0; color: var(--accent); }
  .nav-open .main-nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .hero-figure img { aspect-ratio: 4 / 3; }
  .hero-figure figcaption { flex-direction: column; gap: 4px; }
  .split { grid-template-columns: 1fr; gap: 8px; }
  .facts { margin-bottom: 28px; }
  .stats { gap: 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .m-a, .m-g { grid-column: span 2; grid-row: span 1; }
  .m-a { grid-row: span 2; }
  .m-b, .m-c, .m-d, .m-e, .m-f { grid-column: span 1; }
  .m-f { grid-column: span 2; }
  .tile-cap { opacity: 1; transform: none; }
  .news-row { grid-template-columns: 1fr 20px; gap: 4px 16px; }
  .news-row .mono { grid-column: 1 / -1; }
  .news-title { font-size: 19px; }
  .project-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { grid-template-columns: 1fr; gap: 32px; }
  .quote-band blockquote p { font-size: 22px; line-height: 1.28; }
  .quote-text { margin-top: 18px; }
  .project-map { height: 420px; }
  .map-pop ul { max-height: 176px; }
  .map-intro { margin-top: -8px; }
  .quote-band blockquote footer { font-size: 14px; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .pager a { font-size: 17px; }
  .section-head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
