/* kroz.hr: one stylesheet for the home page, the legal pages and the 404 page.
   Palette and type from the concept page; system fonts only, no web fonts. */
:root {
  --bg:#fdfaf5; --card:#fffdf9; --ink:#2a221c; --muted:#75685c; --line:#e8dccd;
  --accent:#b4532a; --accent2:#e2733f; --soft:#f8efe4; --plate:#f1ebe2;
  --green:#4a9d62; --amber:#e2a23a; --grey:#c4b8a8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --focus: 0 0 0 3px rgba(180,83,42,.35);
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:var(--sans); font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased; }
[hidden] { display:none !important; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }
img { max-width:100%; }
.wrap { max-width:1120px; margin:0 auto; padding:0 20px; }
h1,h2,h3 { font-family:var(--serif); font-weight:500; margin:0; letter-spacing:-.01em; }
h1 { font-size:clamp(30px, 3.6vw, 46px); line-height:1.08; }
h2 { font-size:clamp(24px, 2.8vw, 34px); line-height:1.15; }
h3 { font-size:20px; }
.eyebrow { font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); font-weight:600; }
.muted { color:var(--muted); }
.small { font-size:13px; }
.num { font-variant-numeric:tabular-nums; }

/* visible focus everywhere, once for keyboards and once as a fallback */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
section:focus, [tabindex="-1"]:focus { outline:none; }
.skip { position:absolute; left:16px; top:-60px; z-index:50; background:var(--ink); color:#fff; padding:10px 14px; border-radius:8px; font-weight:600; }
.skip:focus { top:12px; }

header.top { position:sticky; top:0; z-index:20; background:rgba(253,250,245,.92); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
header.top .wrap { display:flex; align-items:center; justify-content:space-between; height:60px; }
.brand { display:flex; align-items:center; gap:10px; font-family:var(--serif); font-size:24px; letter-spacing:.02em; color:var(--ink); }
.brand:hover { text-decoration:none; }
.brand .mark { width:26px; height:26px; flex:none; }
nav.main { display:flex; align-items:center; gap:22px; font-size:15px; }
nav.main a { color:var(--ink); }
nav.main a.wa { background:var(--ink); color:#fff; padding:8px 14px; border-radius:999px; font-size:14px; }
nav.main a.wa:hover { background:var(--accent); text-decoration:none; }
@media (max-width:760px) { nav.main a.hide-m { display:none; } }

/* hero */
.hero { padding:44px 0 36px; }
.hero .grid { display:grid; grid-template-columns:5fr 7fr; grid-template-areas:"text stage" "strip stage"; gap:0 40px; align-items:start; }
.hero .text { grid-area:text; } .hero .vis { grid-area:stage; } .hero .strip { grid-area:strip; }
@media (max-width:900px) { .hero .grid { grid-template-columns:1fr; grid-template-areas:"text" "stage" "strip"; gap:22px; } .hero .strip { margin-top:0; } }
.hero h1 { margin-top:12px; }
.hero p.lede { font-size:18px; color:var(--muted); margin:16px 0 0; max-width:48ch; }
.cta { display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; align-items:center; }
.cta.tight { margin-top:0; }
.btn { display:inline-flex; align-items:center; gap:8px; padding:13px 20px; border-radius:999px; font-weight:600; font-size:15px; border:1px solid transparent; line-height:1.2; }
.btn.primary { background:var(--accent); color:#fff; }
.btn.primary:hover { background:var(--accent2); text-decoration:none; }
.btn.ghost { border-color:var(--line); color:var(--ink); background:var(--card); }
.btn.ghost:hover { border-color:var(--ink); text-decoration:none; }

.strip { margin-top:26px; border:1px solid var(--line); background:var(--card); border-radius:14px; padding:14px 16px 12px; }
.strip .row1 { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.strip label { font-size:14px; color:var(--muted); }
.strip select { font:inherit; font-size:15px; padding:6px 30px 6px 10px; border:1px solid var(--line); border-radius:8px; background:var(--bg) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" fill="none" stroke="%232a221c" stroke-width="1.6"/></svg>') no-repeat right 10px center; appearance:none; -webkit-appearance:none; color:var(--ink); }
.cells { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:12px; }
.cell { background:var(--soft); border-radius:10px; padding:10px 12px; }
.cell b { display:block; font-family:var(--serif); font-size:26px; font-weight:500; color:var(--accent); line-height:1.1; }
.cell span { font-size:13px; color:var(--muted); }
@media (max-width:560px) { .cells { grid-template-columns:1fr; gap:6px; } .cell { display:flex; align-items:baseline; gap:10px; padding:8px 12px; } .cell b { font-size:22px; min-width:84px; } }
.strip .foot { margin-top:10px; font-size:13px; color:var(--muted); display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }

/* the stage: the walk-in sequence */
.stage { position:relative; aspect-ratio:16/10; border-radius:16px; overflow:hidden; background:var(--plate); box-shadow:0 1px 0 var(--line), 0 24px 50px -30px rgba(42,34,28,.45); }
.stage img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .9s ease; transform:scale(1.02); }
.stage img.on { opacity:1; animation:kb 4.2s ease-in-out forwards; }
@keyframes kb { from { transform:scale(1.02) } to { transform:scale(1.07) } }
.stage .cap { position:absolute; left:14px; bottom:14px; display:flex; align-items:center; gap:10px; background:rgba(253,250,245,.94); border:1px solid var(--line); border-radius:999px; padding:7px 14px 7px 8px; font-size:14px; box-shadow:0 6px 20px -10px rgba(0,0,0,.35); margin:0; }
.stage .cap .n { width:24px; height:24px; border-radius:50%; background:var(--accent); color:#fff; display:grid; place-items:center; font-size:12px; font-weight:700; flex:none; }
.stage .legend { position:absolute; right:14px; top:14px; background:rgba(253,250,245,.94); border:1px solid var(--line); border-radius:12px; padding:9px 12px; font-size:13px; display:none; margin:0; }
.stage .legend .r { display:flex; align-items:center; gap:8px; }
.stage .legend i { width:10px; height:10px; border-radius:50%; display:inline-block; flex:none; }
.dot-ok { background:var(--green); } .dot-res { background:var(--amber); } .dot-sold { background:var(--grey); }
.stage.s1 .legend { display:block; }
.stage .pin { position:absolute; left:47.5%; top:24.5%; width:9%; aspect-ratio:1; border-radius:50%; border:2px solid var(--accent); display:none; }
.stage .pin::after { content:""; position:absolute; inset:-10px; border-radius:50%; border:2px solid var(--accent); opacity:.35; animation:pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform:scale(.8); opacity:.5 } to { transform:scale(1.25); opacity:0 } }
.stage .pin b { position:absolute; right:110%; top:50%; transform:translateY(-50%); white-space:nowrap; background:rgba(253,250,245,.95); border:1px solid var(--line); border-radius:8px; padding:4px 8px; font-size:12px; font-weight:600; }
.stage.s1 .pin, .stage.s6 .pin { display:block; }
@media (max-width:560px) { .stage .pin b { right:auto; left:50%; top:auto; bottom:calc(100% + 14px); transform:translateX(-50%); font-size:11px; } }
/* the live 3D example: loads over the stills and fades in once it shows the building */
.stage iframe { position:absolute; inset:0; width:100%; height:100%; border:0; opacity:0; transition:opacity 1.2s ease; background:transparent; }
.stage .bar, .stage .legend, .stage .pin, .stage .cap { z-index:2; }
.stage.live iframe { opacity:1; }
.stage.live img.on { animation:none; }
.stage.live .pin { display:none; }
.stage.live.s6 .legend { display:block; }
/* On a phone the stage is about 335 x 250 px, so the caption and legend shrink to keep the building clear,
   and with the stills the legend steps down below the penthouse label. */
@media (max-width:560px) {
  .stage { aspect-ratio:4/3; }
  .stage .cap { left:8px; bottom:8px; gap:7px; padding:4px 10px 4px 5px; font-size:12px; }
  .stage .cap .n { width:19px; height:19px; font-size:10px; }
  .stage .legend { right:8px; top:9px; padding:5px 8px; font-size:11px; }
  .stage .legend .r { gap:6px; }
  .stage .legend i { width:8px; height:8px; }
  .stage.s1:not(.live) .legend { top:44px; }
}
.stage .bar { position:absolute; left:0; right:0; top:0; height:3px; background:rgba(42,34,28,.12); }
.stage .bar i { display:block; height:100%; width:0; background:var(--accent); transition:width .2s linear; }
.steps { display:flex; gap:6px; margin-top:12px; flex-wrap:wrap; }
.steps button { font:inherit; font-size:13px; padding:7px 12px; border-radius:999px; border:1px solid var(--line); background:var(--card); color:var(--ink); cursor:pointer; }
.steps button:hover { border-color:var(--ink); }
.steps button.on { background:var(--ink); color:#fff; border-color:var(--ink); }
.under { display:flex; justify-content:space-between; gap:10px; margin-top:10px; font-size:13px; color:var(--muted); flex-wrap:wrap; }

section { padding:56px 0; border-top:1px solid var(--line); }
section.hero { border-top:0; }
.sec-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:26px; flex-wrap:wrap; }
.sec-head p { margin:6px 0 0; color:var(--muted); max-width:60ch; }

/* why 3D */
.why { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; list-style:none; margin:0; padding:0; }
@media (max-width:900px) { .why { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px) { .why { grid-template-columns:1fr; } }
.why li { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:18px; }
.why h3 { font-size:19px; margin-bottom:6px; }
.why p { margin:0; color:var(--muted); font-size:15px; }

/* stavke */
.stavka { display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:center; padding:26px 0; border-top:1px dashed var(--line); }
.stavka:first-of-type { border-top:0; padding-top:0; }
.stavka:nth-of-type(even) .pic { order:-1; }
@media (max-width:820px) { .stavka { grid-template-columns:1fr; gap:14px; } .stavka:nth-of-type(even) .pic { order:0; } }
.stavka .pic { border-radius:14px; overflow:hidden; background:var(--plate); aspect-ratio:16/10; position:relative; }
.stavka .pic img { width:100%; height:100%; object-fit:cover; display:block; }
.stavka .no { font-family:var(--serif); color:var(--accent); font-size:14px; letter-spacing:.1em; }
.stavka h3 { font-size:24px; margin:4px 0 8px; }
.stavka p { margin:0 0 12px; color:var(--muted); }
.price { display:inline-flex; align-items:baseline; gap:8px; border-top:1px solid var(--line); padding-top:10px; flex-wrap:wrap; }
.price b { font-family:var(--serif); font-size:22px; font-weight:500; color:var(--ink); }
.price span { font-size:13px; color:var(--muted); }
.pic.tall { aspect-ratio:16/10; display:grid; place-items:center; background:var(--soft); }
.pic.tall .phone { width:30%; aspect-ratio:9/16; border-radius:14px; overflow:hidden; border:1px solid var(--line); box-shadow:0 20px 40px -24px rgba(0,0,0,.45); position:relative; }
.pic.tall .phone img { object-position:60% 50%; }
.pic.tall .phone i { position:absolute; left:50%; top:50%; width:38px; height:38px; margin:-19px 0 0 -19px; border-radius:50%; background:rgba(253,250,245,.95); display:grid; place-items:center; }
.pic.tall .phone i::after { content:""; margin-left:3px; border-left:12px solid var(--accent); border-top:7px solid transparent; border-bottom:7px solid transparent; }

/* status drawing */
.pic.svg { display:grid; place-items:center; background:var(--soft); }
.pic.svg svg { width:88%; height:auto; }

/* cjenik */
.table-wrap { overflow-x:auto; border-radius:14px; border:1px solid var(--line); background:var(--card); }
table { width:100%; border-collapse:collapse; background:var(--card); }
caption { text-align:left; padding:0 0 10px; color:var(--muted); font-size:13px; }
th,td { text-align:left; padding:12px 14px; border-top:1px solid var(--line); vertical-align:top; font-size:15px; }
thead th { border-top:0; background:var(--soft); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
td.p { white-space:nowrap; font-family:var(--serif); font-size:18px; }
td .s { display:block; color:var(--muted); font-size:13px; }
.note { margin-top:12px; font-size:13px; color:var(--muted); }

/* calculator */
.calc { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:820px) { .calc { grid-template-columns:1fr; } }
.calc .in { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:20px; }
.field { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid var(--line); }
.field:first-child { border-top:0; padding-top:0; }
.field label { font-size:15px; }
.field label small { display:block; color:var(--muted); font-size:13px; }
.stepper { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:999px; overflow:hidden; flex:none; }
.stepper button { font:inherit; width:36px; height:36px; border:0; background:var(--soft); cursor:pointer; color:var(--ink); font-size:18px; }
.stepper button:hover { background:var(--line); }
.stepper button:focus-visible { outline-offset:-3px; }
.stepper input { width:56px; text-align:center; border:0; font:inherit; font-size:16px; background:transparent; color:var(--ink); }
.calc .out { background:var(--ink); color:#fff; border-radius:14px; padding:22px; }
.calc .out .line { display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-top:1px solid rgba(255,255,255,.12); font-size:15px; color:rgba(255,255,255,.85); }
.calc .out .line b { white-space:nowrap; }
.calc .out .line:first-of-type { border-top:0; }
.calc .out .big { font-family:var(--serif); font-size:38px; color:#fff; line-height:1.05; margin:0 0 12px; }
.calc .out .big small { font-family:var(--sans); font-size:14px; color:rgba(255,255,255,.7); display:block; margin-top:4px; }
.calc .out .cmp { margin-top:16px; padding-top:14px; border-top:1px solid rgba(255,255,255,.12); font-size:14px; color:rgba(255,255,255,.8); }
.calc .out .cmp input { width:92px; font:inherit; font-size:14px; padding:3px 6px; border-radius:6px; border:1px solid rgba(255,255,255,.3); background:transparent; color:#fff; text-align:right; }
.calc .out a { color:#fff; text-decoration:underline; }
.calc .out input:focus-visible, .calc .out a:focus-visible { outline-color:#fff; }

/* questions */
.qa { display:grid; grid-template-columns:repeat(2,1fr); gap:16px 32px; }
@media (max-width:760px) { .qa { grid-template-columns:1fr; } }
.qa div { padding:14px 0; border-top:1px solid var(--line); }
.qa h3 { font-size:18px; margin-bottom:6px; }
.qa p { margin:0; color:var(--muted); font-size:15px; }

/* examples */
.ex { display:grid; grid-template-columns:1fr; gap:20px; }
.ex a.card { display:grid; grid-template-columns:1.2fr 1fr; align-items:center; background:var(--card); border:1px solid var(--line); border-radius:16px; overflow:hidden; color:var(--ink); }
@media (max-width:760px) { .ex a.card { grid-template-columns:1fr; } }
.ex a.card:hover { text-decoration:none; border-color:var(--accent); }
.ex .pic { aspect-ratio:16/10; background:var(--plate); position:relative; }
.ex .pic img { width:100%; height:100%; object-fit:cover; display:block; }
.ex .pic .play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); background:rgba(253,250,245,.95); border-radius:999px; padding:10px 18px 10px 14px; font-weight:600; font-size:14px; display:flex; gap:8px; align-items:center; }
.ex .pic .play::before { content:""; border-left:11px solid var(--accent); border-top:7px solid transparent; border-bottom:7px solid transparent; }
.ex .body { padding:22px 26px; }
@media (max-width:760px) { .ex .body { padding:16px 18px 18px; } }
.ex h3 { margin-bottom:4px; }
.ex p { margin:0; color:var(--muted); font-size:14px; }

/* contact */
.contact { background:var(--soft); border:1px solid var(--line); border-radius:18px; padding:30px; display:grid; grid-template-columns:1.2fr 1fr; gap:28px; align-items:center; }
@media (max-width:820px) { .contact { grid-template-columns:1fr; } }
.contact .lede { margin:8px 0 18px; }
.contact .who { display:flex; gap:14px; align-items:center; }
.contact .who .ava { width:56px; height:56px; border-radius:50%; background:var(--plate); border:1px solid var(--line); display:grid; place-items:center; color:var(--muted); flex:none; }
.contact .who .ava svg { width:28px; height:28px; }
.contact .who p { margin:0; }

footer { padding:28px 0 48px; color:var(--muted); font-size:13px; border-top:1px solid var(--line); }
footer .wrap { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
footer nav { display:inline; }
footer nav a { color:var(--accent); }

/* legal pages and the 404 page */
.page { padding:48px 0 64px; }
.page .wrap { max-width:760px; }
.page h1 { font-size:clamp(30px, 3.4vw, 40px); margin-bottom:8px; }
.page .lede { color:var(--muted); font-size:17px; margin:0 0 28px; }
.page h2 { font-size:22px; margin:28px 0 8px; }
.page p, .page li { color:var(--ink); }
.page dl { display:grid; grid-template-columns:minmax(140px, 1fr) 2fr; gap:8px 20px; margin:0; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:18px 20px; }
.page dt { color:var(--muted); font-size:14px; }
.page dd { margin:0; }
@media (max-width:520px) { .page dl { grid-template-columns:1fr; gap:2px 0; } .page dt { margin-top:10px; } .page dt:first-child { margin-top:0; } }
.page .back { display:inline-block; margin-top:28px; }
.notfound { min-height:60vh; display:grid; place-items:center; text-align:center; padding:60px 20px; }
.notfound .code { font-family:var(--serif); font-size:clamp(72px, 14vw, 140px); line-height:1; color:var(--accent); letter-spacing:-.03em; }
.notfound p { color:var(--muted); max-width:44ch; margin:10px auto 0; }
.notfound .cta { justify-content:center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .stage img.on { animation:none; }
  .stage .pin::after { animation:none; }
  .stage img, .stage iframe, .stage .bar i { transition:none; }
}
@media print {
  header.top, .steps, .under, .stage .bar, .stage .cap, .stage .legend, .stage .pin, .skip { display:none !important; }
  section { break-inside:avoid; }
}
