/* IDEJNO — arhitektonski biro. Boje, tipografija i pravila: ../../brand/brand.md */

:root {
  --ink: #1B2430;
  --ink-2: #3A4553;
  --muted: #5E6875;
  --paper: #F5F1E8;
  --paper-2: #ECE6D8;
  --white: #FFFDF8;
  --trace: #F3E3B5;
  --accent: #C93F28;
  --accent-d: #A93320;
  --line: #D9D2C1;
  --line-d: #B9B09B;
  --font-h: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-b: "Onest", "Segoe UI", system-ui, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1160px;
  --gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-h); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.28rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.mono { font-family: var(--font-m); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-h); font-weight: 500; font-size: 1.02rem;
  padding: 13px 22px; border: 1.5px solid var(--ink); border-radius: 2px;
  text-decoration: none; color: var(--ink); background: transparent; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- zaglavlje ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 241, 232, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.logo-mark { height: 36px; width: 36px; }
.logo-word { height: 31px; width: auto; }
.logo svg { display: block; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.97rem; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.langs { display: flex; gap: 2px; font-family: var(--font-m); font-size: 0.76rem; letter-spacing: 0.06em; }
.langs a { padding: 5px 7px; color: var(--muted); text-decoration: none; border: 1px solid transparent; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { color: var(--ink); border-color: var(--ink); }
.header-cta { padding: 10px 18px; font-size: 0.95rem; }
.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--ink); background: transparent; border-radius: 2px; cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; }

@media (max-width: 1240px) {
  .burger { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line-d); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 20px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .langs { order: 2; }
}
@media (max-width: 420px) { .logo-word { height: 27px; } .header-inner { gap: 12px; } }

/* ---------- sekcije ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.sec--alt { background: var(--paper-2); }
.sec--tight { padding-top: 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent-d); margin-bottom: 16px; }
.eyebrow::after { content: ""; height: 1px; width: 56px; background: var(--accent); }
/* Na početnoj je oznaka deo naslova H1 (zbog pretrage); izgled ostaje isti. */
h1 .eyebrow { font-weight: 400; line-height: 1.65; }
.sec-head p { color: var(--ink-2); font-size: 1.08rem; margin: 18px 0 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 76px) 0 clamp(56px, 7vw, 92px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--ink-2); margin: 24px 0 30px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--muted); font-size: 0.94rem; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.pagehead { padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.pagehead .hero-grid { align-items: start; }
.pagehead .lead { margin-bottom: 0; }
.pagehead--plain .lead { max-width: 44em; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- crtež na "tabaku" ---------- */
.sheet { margin: 0; background: var(--white); border: 1.5px solid var(--ink); position: relative; }
.sheet-draw {
  padding: clamp(10px, 2vw, 22px);
  background-image: linear-gradient(rgba(27, 36, 48, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 36, 48, .055) 1px, transparent 1px);
  background-size: 20px 20px;
}
.sheet-tb { display: grid; grid-template-columns: auto 1fr auto; border-top: 1.5px solid var(--ink); font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; }
.sheet-tb span { padding: 9px 12px; border-right: 1px solid var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-tb span:last-child { border-right: 0; color: var(--accent-d); }

.art { width: 100%; height: auto; display: block; color: var(--ink); }
.art .a-main { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.art .a-thin { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.art .a-wall { fill: none; stroke: currentColor; stroke-width: 9; }
.art .a-part { fill: none; stroke: currentColor; stroke-width: 5; }
.art .a-dim { fill: none; stroke: var(--muted); stroke-width: 1; }
.art text { font-family: var(--font-m); font-size: 11px; fill: var(--muted); stroke: none; }
.art .a-acc { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art .a-accfill { fill: var(--accent); stroke: none; }
.art .a-acc text { fill: var(--accent-d); }
.art .a-soft { fill: var(--trace); stroke: none; opacity: .75; }
.art .a-dash { stroke-dasharray: 7 5; }
.art .a-dashdot { stroke-dasharray: 16 5 2 5; }

/* ---------- kartice ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line-d); padding: 26px 24px 24px; display: flex; flex-direction: column; text-decoration: none; color: inherit; position: relative; transition: border-color .18s, transform .18s; }
a.card:hover { border-color: var(--ink); transform: translateY(-3px); color: inherit; }
.card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 22px; height: 3px; background: var(--accent); }
.card-ico { width: 34px; height: 34px; color: var(--ink); margin-bottom: 18px; }
.card-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-ico .acc { stroke: var(--accent); }
.card-ico .accfill { fill: var(--accent); stroke: none; }
.card p { color: var(--ink-2); font-size: 0.98rem; margin: 10px 0 0; }
.card .more { margin-top: auto; padding-top: 20px; color: var(--accent-d); }
.card-num { color: var(--accent-d); margin-bottom: 14px; }
@media (max-width: 980px) { .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards--4, .cards--2 { grid-template-columns: 1fr; } }

/* ---------- koraci (kotna linija) ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 0; counter-reset: step; border-top: 1.5px solid var(--ink); }
.step { padding: 26px 28px 0 0; position: relative; counter-increment: step; }
.step::before { content: ""; position: absolute; left: 0; top: -8px; width: 1.5px; height: 15px; background: var(--ink); transform: rotate(45deg); transform-origin: center; }
.step-n { font-family: var(--font-m); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--accent-d); display: block; margin-bottom: 12px; }
.step-n::before { content: "0" counter(step); }
.step p { color: var(--ink-2); margin: 10px 0 0; font-size: 0.99rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1.5px solid var(--ink); }
  .step { padding: 0 0 30px 26px; }
  .step::before { left: -8px; top: 6px; width: 15px; height: 1.5px; }
}
@media (max-width: 1100px) {
  .steps--wide { grid-template-columns: 1fr; border-top: 0; border-left: 1.5px solid var(--ink); }
  .steps--wide .step { padding: 0 0 30px 26px; }
  .steps--wide .step::before { left: -8px; top: 6px; width: 15px; height: 1.5px; }
}

/* ---------- vremenska linija (vodič) ---------- */
.timeline { counter-reset: tl; border-left: 1.5px solid var(--ink); margin-left: 15px; max-width: 820px; }
.tl { position: relative; padding: 0 0 34px 40px; counter-increment: tl; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: counter(tl); position: absolute; left: -16px; top: -2px; width: 30px; height: 30px; border: 1.5px solid var(--ink); background: var(--paper); border-radius: 50%; font-family: var(--font-m); font-size: 0.78rem; display: grid; place-items: center; }
.sec--alt .tl::before { background: var(--paper-2); }
.tl h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.tag { font-family: var(--font-m); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line-d); color: var(--muted); font-weight: 400; }
.tl p { color: var(--ink-2); margin: 8px 0 0; }

/* ---------- liste ---------- */
.list li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 13px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); transform-origin: left bottom; }
.list--no li { color: var(--ink-2); }
.list--no li::before { border: 0; width: 13px; height: 2px; background: var(--muted); transform: none; top: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.box { background: var(--white); border: 1px solid var(--line-d); padding: 26px 26px 14px; }
.box--no { background: transparent; }
.box h3 { margin-bottom: 8px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.principle { padding: 24px 0; border-top: 1px solid var(--line-d); }
.principle p { color: var(--ink-2); margin: 8px 0 0; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }

/* ---------- usluge (lista sa detaljima) ---------- */
.svc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1.5px solid var(--ink); scroll-margin-top: 90px; }
.svc:last-child { border-bottom: 1.5px solid var(--ink); }
.svc-head .card-ico { margin-bottom: 14px; }
.svc-head p { color: var(--ink-2); font-size: 1.06rem; margin: 12px 0 0; }
.svc-head .btn { margin-top: 22px; padding: 10px 18px; font-size: 0.95rem; }
.svc-body h4 { font-family: var(--font-m); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 4px 0 6px; }
.svc-note { color: var(--muted); font-size: 0.95rem; margin: 16px 0 0; padding-left: 14px; border-left: 2px solid var(--line-d); }
@media (max-width: 820px) { .svc { grid-template-columns: 1fr; } }

/* ---------- napomena ---------- */
.note { background: var(--trace); border-left: 3px solid var(--accent); padding: 20px 24px; max-width: 860px; }
.note p { margin: 0; }
.note p + p { margin-top: .7em; }
.note strong { font-weight: 600; }
.note--plain { background: transparent; border-left-color: var(--line-d); color: var(--muted); font-size: 0.93rem; }
.stack > * + * { margin-top: 26px; }
.prose { max-width: 760px; }
.prose p { color: var(--ink-2); }
.prose h3 { margin: 1.6em 0 .5em; }
.prose ul { margin: 0 0 1em; }
.prose ul li { position: relative; padding: 5px 0 5px 22px; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 1.5px; background: var(--accent); }

/* ---------- pitanja ---------- */
.faq { max-width: 860px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-d); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-family: var(--font-h); font-weight: 500; font-size: 1.18rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-family: var(--font-m); font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 44px 22px 0; color: var(--ink-2); }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- tabela ---------- */
.table-wrap { overflow-x: auto; max-width: 900px; }
table { width: 100%; border-collapse: collapse; background: var(--white); border: 1.5px solid var(--ink); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-m); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
tr:last-child td { border-bottom: 0; }
td:last-child { font-weight: 500; width: 42%; }
.table-wrap--cmp { max-width: none; }
.table-wrap--cmp td:last-child { font-weight: 400; width: auto; }
.table-wrap--cmp td:first-child { font-weight: 500; width: 28%; }
.table-wrap--cmp td { width: 36%; }
td.lvl-0::before, td.lvl-1::before, td.lvl-2::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border: 1.5px solid var(--ink); border-radius: 50%; }
td.lvl-1::before { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
td.lvl-2::before { background: var(--accent); border-color: var(--accent); }

/* ---------- tim ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { background: var(--white); border: 1px solid var(--line-d); padding: 22px; }
.avatar { width: 64px; height: 64px; background: var(--trace); border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--font-h); font-weight: 500; font-size: 1.3rem; letter-spacing: 0.02em; margin-bottom: 18px; }
.person .role { color: var(--accent-d); display: block; margin: 6px 0 10px; }
.person p { color: var(--ink-2); font-size: 0.96rem; margin: 0; }
@media (max-width: 980px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border: 1.5px solid var(--ink); background: var(--white); max-width: 900px; }
.facts div { padding: 14px 18px; border-right: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.facts dt { font-family: var(--font-m); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 500; }
dl { margin: 0; }

/* ---------- poziv ---------- */
.cta-band { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-band p { color: #C9CED6; margin: 16px 0 0; max-width: 36em; font-size: 1.08rem; }
.cta-band .ghost { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 360px; height: 360px; color: rgba(245, 241, 232, .07); pointer-events: none; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.channels li { padding: 18px 0; border-top: 1px solid var(--line-d); }
.channels li:last-child { border-bottom: 1px solid var(--line-d); }
.channels .mono { color: var(--muted); display: block; margin-bottom: 4px; }
.channels a, .channels span.val { font-family: var(--font-h); font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.channels a:hover { color: var(--accent-d); }
.form { background: var(--white); border: 1.5px solid var(--ink); padding: clamp(22px, 3vw, 36px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line-d); border-radius: 2px; padding: 12px 14px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); background: #fff; }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--ink-2); }
.field--check input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 16px 0 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--trace); display: none; }
.form-msg.show { display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- futer ---------- */
.site-footer { background: var(--ink); color: #C9CED6; padding: 64px 0 0; font-size: 0.96rem; border-top: 1px solid #2C3744; }
.cta-band + .site-footer { border-top-color: #2C3744; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 48px; }
.site-footer .logo { color: var(--paper); margin-bottom: 18px; }
.site-footer h4 { font-family: var(--font-m); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8E98A5; margin: 6px 0 14px; }
.site-footer a { color: #E6E2D8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { padding: 4px 0; }
.titleblock { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #46515F; font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; }
.titleblock div { padding: 11px 14px; border-right: 1px solid #46515F; }
.titleblock div:last-child { border-right: 0; }
.titleblock b { display: block; font-weight: 400; color: #8E98A5; margin-bottom: 3px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 28px; color: #8E98A5; font-size: 0.84rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .titleblock { grid-template-columns: 1fr 1fr; } .titleblock div:nth-child(2) { border-right: 0; } .titleblock div:nth-child(-n+2) { border-bottom: 1px solid #46515F; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- pojavljivanje: sadržaj je vidljiv i bez JS-a ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
@media print { .site-header, .cta-band, .burger { display: none; } .js .reveal { opacity: 1; transform: none; } }
