@import url("tokens.css");

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: var(--lh-body);
  /* No lone word on the last line of a paragraph, heading or button, site
     wide (inherited). Rules that set text-wrap: balance still win where
     they apply. Browsers without support just wrap as before. */
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--c-band); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-head);
  margin: 0;
  letter-spacing: -.018em;
}
h1 { font-size: var(--fs-900); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-700); }
p { margin: 0; }
/* Headings, buttons and short labels: balance the lines (two even lines, not
   a full line plus one long word, which "pretty" on body lets through).
   Longhand on purpose: it leaves white-space: nowrap rules alone. Balance only
   suits short text, so paragraphs keep "pretty". */
h1, h2, h3, h4, .btn, .news__title, .stat__label, .std__text, .svc__list li { text-wrap-style: balance; }

a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--c-red); outline-offset: 2px; border-radius: 2px; }
/* Red is only 2.67:1 on coal, so the focus ring switches to the light tint
   wherever the ground is dark. */
.band--coal :focus-visible, .footer :focus-visible,
.drawer :focus-visible, .hero :focus-visible, .pagehero :focus-visible,
.cpanel :focus-visible { outline-color: var(--c-red-light); }

[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: var(--s4); top: -100%;
  z-index: 200; padding: var(--s3) var(--s5);
  background: var(--c-coal); color: #fff; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: var(--s4); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Layout
   ============================================================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { --section-pad: clamp(3.25rem, 7vw, 6rem); padding-block: var(--section-pad); }
/* A heading-less strip (the standards band) needs less air than a full section. */
.section--tight { padding-block: clamp(2.75rem, 5.5vw, 4.5rem); }
.band--white { background: var(--c-white); }
.band--tint { background: var(--c-band); }
.band--coal { background: var(--c-coal); color: var(--c-on-dark); }
.band--coal h1, .band--coal h2, .band--coal h3 { color: var(--c-on-dark); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { margin-top: var(--s4); font-size: var(--fs-500); color: var(--c-ink-soft); max-width: 62ch; }
.section__head--center .section__lead { margin-inline: auto; }
.band--coal .section__lead { color: var(--c-smoke); }

/* Section label: red small caps, no rule above the heading */
.section__label {
  display: block; font-family: var(--font-display); font-size: var(--fs-200); font-weight: 700;
  letter-spacing: var(--caps-ls); text-transform: uppercase;
  color: var(--c-red); margin-bottom: var(--s3);
}
.band--coal .section__label { color: var(--c-red-light); }

/* ============================================================
   Buttons - signal red pills. White on red measures 6.6:1, so unlike the
   yellow of version 84 this accent can carry its own type.
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 3.25rem; padding: var(--s3) var(--s6);
  background: var(--c-red); color: #fff;
  border: 2px solid var(--c-red); border-radius: 100px;
  font-family: var(--font-display); font-size: var(--fs-300); font-weight: 700;
  letter-spacing: var(--caps-ls-sm); text-transform: uppercase;
  text-decoration: none; text-align: center;
  white-space: normal; max-width: 100%;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--c-red-deep); border-color: var(--c-red-deep); transform: translateY(-1px); }
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--coal { background: var(--c-coal); border-color: var(--c-coal); color: #fff; }
.btn--coal:hover { background: var(--c-coal-2); border-color: var(--c-coal-2); }

/* .btn--ghost is the same button under the name the units engine in
   js/main.js emits (and 404.html uses). Without it those buttons fall back to
   the red primary and every row reads as a primary action. */
.btn--outline, .btn--ghost { background: transparent; border-color: var(--c-line-strong); color: var(--c-ink); }
.btn--outline:hover, .btn--ghost:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.band--coal .btn--outline, .hero .btn--outline { color: var(--c-on-photo); border-color: var(--c-line-dark-strong); }
.band--coal .btn--outline:hover, .hero .btn--outline:hover { background: #fff; border-color: #fff; color: var(--c-coal); }

.btn--sm { min-height: 2.6rem; padding: var(--s2) var(--s5); font-size: var(--fs-200); }
.btn--block { width: 100%; }

/* Text link with an arrow. renderUnitsHome() in js/main.js emits this below
   the apartment cards; without a rule its inline SVG has no intrinsic size
   and stretches to the full container width. */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-display); font-size: var(--fs-300); font-weight: 700;
  letter-spacing: var(--caps-ls-sm); text-transform: uppercase;
  color: var(--c-red); text-decoration: none;
}
.link-arrow svg { width: 1.05rem; height: 1.05rem; flex: none; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--c-red-deep); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ============================================================
   Topbar + header
   ============================================================ */
/* Topbar and header both stay on screen: the topbar sticks to the top and the
   header sticks right under it, so the topbar keeps a fixed height
   (--topbar-h). Anything that offsets for "the sticky header" adds both. */
.topbar { position: sticky; top: 0; z-index: 131; background: var(--c-coal); color: var(--c-on-dark); font-size: var(--fs-200); }
.topbar__inner { display: flex; align-items: center; justify-content: flex-end; gap: var(--s6); height: var(--topbar-h); }
.topbar__tag { margin-right: auto; color: var(--c-smoke); white-space: nowrap; }
.topbar__item { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; white-space: nowrap; transition: color .2s var(--ease); }
.topbar__item:hover { color: var(--c-red-light); }
.topbar__item svg { width: .95rem; height: .95rem; color: var(--c-red-light); flex: none; }
@media (max-width: 560px) {
  .topbar__inner { justify-content: center; }
  .topbar__tag, .topbar__item--mail { display: none; }
  .topbar__item { min-height: 44px; }
}

.header { position: sticky; top: var(--topbar-h); z-index: 130; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--c-line); transition: background .25s var(--ease); }
body[data-locked="true"] .header { background: var(--c-coal); border-bottom-color: var(--c-line-dark); }
/* The monogram is dark ink with a gold stem; on the coal header swap in the
   white copy (logo-mark-white.webp), whose stem stays gold. A filter would
   turn the gold white too. */
.brand__mark--on-dark { display: none; }
body[data-locked="true"] .header .brand__mark { display: none; }
body[data-locked="true"] .header .brand__mark.brand__mark--on-dark { display: block; }
body[data-locked="true"] .brand__name { color: var(--c-on-dark); }
body[data-locked="true"] .brand__sub { color: var(--c-red-light); }
body[data-locked="true"] .burger { border-color: var(--c-line-dark-strong); }
body[data-locked="true"] .burger span { background: #fff; }

.header__inner { display: flex; align-items: center; gap: var(--s5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; flex: none; }
.brand__mark { width: auto; height: 2.75rem; background: none; }
.brand__text { display: flex; flex-direction: column; gap: .15rem; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1; letter-spacing: -.01em; color: var(--c-ink); white-space: nowrap; }
.brand__sub { font-size: .5625rem; font-weight: 700; line-height: 1; letter-spacing: .24em; text-transform: uppercase; color: var(--c-ink-faint); white-space: nowrap; }

.nav { display: none; align-items: center; gap: var(--s6); margin-left: auto; }
.nav__link { font-family: var(--font-display); font-size: var(--fs-300); font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--c-ink-soft); transition: color .2s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--c-red); }
/* Nothing in the header may wrap to a second line. English "Get in touch" is
   the longest CTA, so the row is tightened before the desktop nav appears. */
.nav .btn { flex: none; white-space: nowrap; }

.lang { display: inline-flex; align-items: center; gap: var(--s1); flex: none; }
.lang__btn {
  min-width: 2.25rem; min-height: 2.25rem; padding: var(--s1) var(--s2);
  background: none; border: 1px solid transparent; border-radius: 100px;
  font-family: var(--font-display); font-size: var(--fs-200); font-weight: 700; color: var(--c-ink-faint);
  transition: all .2s var(--ease);
}
.lang__btn:hover { color: var(--c-ink); }
.lang__btn[aria-pressed="true"] { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.lang__sep { color: var(--c-line-strong); }
.drawer .lang__btn { color: var(--c-smoke); min-width: 2.75rem; min-height: 2.75rem; }
.drawer .lang__btn[aria-pressed="true"] { background: var(--c-red); border-color: var(--c-red); color: #fff; }

/* Instagram and Facebook after the language switch: plain icons in the
   header row (a hairline sets them apart from HR/EN), outlined circles on
   the coal drawer, like the footer. */
.social { display: inline-flex; align-items: center; gap: var(--s1); flex: none; }
.social a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 100px; color: var(--c-ink-faint); transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.social a:hover { color: var(--c-red); }
.social svg { width: 1.15rem; height: 1.15rem; }
.nav .social { padding-left: var(--s4); border-left: 1px solid var(--c-line); }
.drawer .social { gap: var(--s3); }
.drawer .social a { width: 2.75rem; height: 2.75rem; border: 1px solid var(--c-line-dark-strong); color: #fff; }
.drawer .social a:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }

.burger {
  margin-left: auto; flex: none;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; padding: 0 .55rem;
  background: none; border: 1px solid var(--c-line-strong); border-radius: var(--radius);
}
.burger span { display: block; height: 2px; width: 100%; background: var(--c-coal); transition: transform .25s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 120;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + var(--s6)) var(--gutter) var(--s7);
  background: var(--c-coal); color: var(--c-on-dark);
  transform: translateX(100%); visibility: hidden;
  transition: transform .32s var(--ease), visibility .32s var(--ease);
  overflow-y: auto;
}
.drawer[data-open="true"] { transform: none; visibility: visible; }
.drawer__link { display: block; padding: var(--s4) 0; border-bottom: 1px solid var(--c-line-dark); font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; text-decoration: none; }
.drawer__link:hover { color: var(--c-red-light); }
.drawer__foot { margin-top: auto; padding-top: var(--s7); display: grid; gap: var(--s5); justify-items: start; }
.drawer__contact { display: grid; gap: var(--s2); font-size: var(--fs-300); color: var(--c-smoke); }
.drawer__contact a { text-decoration: none; }
body[data-locked="true"] { overflow: hidden; }

@media (min-width: 1080px) { .nav { display: flex; } .burger { display: none; } }
@media (min-width: 1080px) and (max-width: 1319px) {
  .nav { gap: var(--s5); }
  .nav .btn--sm { padding-inline: var(--s4); }
  .header__inner { gap: var(--s4); }
}

/* ============================================================
   Hero - full bleed, LEFT aligned, no angled cut. A soft blue shadow sits
   only behind the copy (a blurred rounded box in the sky's own blue), so
   the rest of the photograph keeps its bright sky. It hangs off the copy
   block, so it follows the copy's real size in every language. Its
   strength was measured with tools/contrast.py together with the text
   shadows on the title and lead: if you lighten either, run the check again.
   ============================================================ */
.hero {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  color: var(--c-on-photo);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__copy { position: relative; max-width: 100%; }
.hero__copy::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -3.5rem -5rem; border-radius: 4rem;
  background: rgb(81 107 157 / 60%);
  filter: blur(46px);
}
/* Phones: the copy spans the screen, so a tighter patch and a smaller blur. */
@media (max-width: 767px) {
  .hero__copy::before { inset: -2.5rem -2rem; filter: blur(34px); }
}
.hero__inner {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  text-align: left; min-height: min(74svh, 40rem);
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.hero__title { max-width: 18ch; text-wrap: balance; text-shadow: 0 2px 20px rgba(8, 10, 13, .55); }
.hero__lead { margin-top: var(--s5); max-width: 52ch; font-size: var(--fs-500); color: var(--c-on-photo); text-shadow: 0 1px 14px rgba(8, 10, 13, .8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s7); }
@media (max-width: 560px) { .hero__actions { display: grid; grid-template-columns: 1fr; width: 100%; } }

/* ============================================================
   Standards strip - on the coal band, in the stats band's inks:
   light red accent, near-white titles, smoke for the small print.
   Phones (one column) centre each standard under a ringed icon, with a
   short rule between them, so the strip doesn't hug the left edge.
   ============================================================ */
.standards { display: grid; gap: var(--s6) var(--s5); grid-template-columns: 1fr; }
@media (min-width: 620px) { .standards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .standards { grid-template-columns: repeat(4, 1fr); } }
.std__icon { display: block; width: 1.6rem; height: 1.6rem; color: var(--c-gold); margin-bottom: var(--s4); }
.std__title { font-family: var(--font-display); font-size: var(--fs-500); font-weight: 700; color: var(--c-on-dark); }
.std__text { margin-top: var(--s2); font-size: var(--fs-300); color: var(--c-smoke); max-width: 34ch; }
@media (max-width: 619px) {
  .standards { gap: 0; }
  .std { text-align: center; }
  .std + .std::before { content: ""; display: block; width: 12.5rem; height: 1px; margin: var(--s6) auto; background: var(--c-line-dark-strong); }
  .std__icon { width: 3.5rem; height: 3.5rem; padding: .9rem; margin: 0 auto var(--s4); border: 1px solid var(--c-line-dark-strong); border-radius: 100px; }
  .std__title, .std__text { text-wrap: balance; }
  .std__text { margin-inline: auto; max-width: 30ch; }
}

/* ============================================================
   About: text left, portrait right, on the coal band.
   Coal here because the neighbouring sections are tint then page;
   a third surface keeps the three apart. Everything on it uses the
   on-coal inks: --c-gold for the accent (label, bullet bars, the pull
   quote's rule; --c-red is 2.67:1 there), --c-smoke for body copy,
   --c-on-dark for the pull quote.
   ============================================================ */
/* Sticky-header offset for in-page anchors. Without it the section label and
   the top of the heading land underneath the header when a nav link is used. */
main [id] { scroll-margin-top: calc(var(--topbar-h) + var(--header-h) + var(--s5)); }

/* About band: the copy on coal, the process timeline on the light page ground.
   From 980px they sit side by side and the band splits down the centre of the
   page, the light half running to the right edge of the screen at full band
   height. Below that they stack and the timeline becomes its own full-width
   light band. The light panel is a pseudo-element that bleeds out through the
   section padding and past the container; the band clips it. */
/* clip, not hidden: overflow:hidden would turn the band into a scroll box and
   the intro column below could no longer stick. Older browsers keep hidden. */
.about-band { overflow: hidden; overflow: clip; }
.about { --about-split: var(--s8); display: grid; gap: calc(2 * var(--section-pad)); }
@media (min-width: 980px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(2 * var(--about-split)); }
}
.about__body, .about__process { min-width: 0; }
/* Side by side, the intro column pins under the sticky header while the
   longer timeline scrolls past. main.js adds .is-sticky only when the column
   fits on screen, so a short window never hides its button below the fold. */
@media (min-width: 980px) {
  .about__body { align-self: start; }
  .about__body.is-sticky { position: sticky; top: calc(var(--topbar-h) + var(--header-h) + var(--s5)); }
}
.about__text { margin-top: var(--s4); color: var(--c-smoke); max-width: 62ch; }
.about__body .section__label { color: var(--c-gold); }

.about__process { position: relative; isolation: isolate; color: var(--c-ink); }
/* The timeline panel is a plain stone-grey block (the contact band's
   colour) with crisp edges. Stacked, it starts halfway down the gap under
   the coal intro, so the button and the label get equal room, and runs to
   the bottom of the band; side by side it fills the band's right half. */
.about__process::before {
  content: ""; position: absolute; z-index: -1;
  inset: calc(-1 * var(--section-pad)) -100vw;
  background: var(--c-band);
}
@media (min-width: 980px) {
  .about__process::before { left: calc(-1 * var(--about-split)); }
}
/* Light-ground colours inside the coal band */
.about__process .section__label { color: var(--c-red); }
.about__process .about__process-title { font-size: var(--fs-800); color: var(--c-ink); }
.about__process .about__text { color: var(--c-ink-soft); }
/* "Ona obuhvaća cijeli proces:": five short points in display type, a short
   gold bar as the marker. */
.pillars { display: grid; gap: var(--s3); margin-top: var(--s5); }
.pillars__item {
  position: relative; padding-left: var(--s5);
  font-family: var(--font-display); font-size: var(--fs-600); font-weight: 600; line-height: 1.4;
  color: var(--c-on-dark);
}
.pillars__item::before {
  content: ""; position: absolute; left: 0; top: .7em;
  width: .7rem; height: 2px; background: var(--c-gold);
}
.pull {
  margin-top: var(--s6); padding-left: var(--s5);
  border-left: 3px solid var(--c-gold);
  font-family: var(--font-display); font-size: var(--fs-600);
  font-weight: 600; line-height: 1.5; color: var(--c-on-dark);
}
.about .btn { margin-top: var(--s7); }
/* The button jumps to the timeline, which only sits below the intro when
   stacked. Side by side the timeline is already in view, so it goes. */
@media (min-width: 980px) {
  .about__cta { display: none; }
}

/* ============================================================
   Stats band. The numerals and the label sit on coal, so they are gold:
   --c-red at that size measures 2.67:1 and would fail outright.
   ============================================================ */
.stats-band .section__label { color: var(--c-gold); }
.stats__grid { display: grid; grid-template-columns: 1fr; gap: var(--s7); }
@media (min-width: 640px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1; color: var(--c-gold); letter-spacing: -.03em; }
.stat__label { margin-top: var(--s3); font-size: var(--fs-200); letter-spacing: var(--caps-ls-sm); text-transform: uppercase; color: var(--c-smoke); }

/* ============================================================
   Services - 2x2 cards, each opening on a dark "blueprint" plate:
   charcoal, a fine grid every 1.5rem and a stronger one every 6rem,
   the service drawn in line in the middle. The drawings are inline SVG
   on a 48-unit grid (index.html): light lines, .acc parts in logo gold,
   .solid parts (a ruler laid over paper) opaque, .open strokes never
   filled. Every other shape is filled with the plate colour so the grid
   stops at its edges.
   ============================================================ */
.svcs { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc {
  display: flex; flex-direction: column;
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.svc__plate {
  position: relative; display: grid; place-items: center;
  height: clamp(11rem, 9rem + 6vw, 14rem);
  background-color: var(--c-coal);
  background-image: var(--blueprint); background-size: var(--blueprint-size);
  background-position: center;
}
.svc__icon {
  width: clamp(6.5rem, 5rem + 3vw, 8.5rem); height: auto;
  color: var(--c-on-dark); stroke-width: 1.35;
  transition: transform .4s var(--ease);
}
.svc__icon > * { fill: var(--c-coal); }
.svc__icon .acc { stroke: var(--c-gold); fill: var(--c-gold-wash); }
.svc__icon .solid { fill: var(--c-coal); }
.svc__icon path.open { fill: none; }
.svc:hover .svc__icon { transform: scale(1.05); }
/* Gold, not red: red on charcoal is 2.67:1. */
.svc__num {
  position: absolute; top: var(--s4); left: var(--s5);
  font-family: var(--font-display); font-size: var(--fs-300); font-weight: 700;
  letter-spacing: var(--caps-ls); color: var(--c-gold);
}
.svc__body { display: flex; flex-direction: column; flex: 1; padding: var(--s6) clamp(1.25rem, 2.5vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem); }
.svc__title { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); text-wrap: balance; color: var(--c-red); }
.svc__text { margin-top: var(--s3); color: var(--c-ink-soft); }
/* What the service covers, as a checklist with red ticks */
.svc__list { display: grid; gap: var(--s2) var(--s5); margin-top: auto; padding-top: var(--s5); }
@media (min-width: 560px) { .svc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc__list li {
  position: relative; padding-left: 1.6rem;
  font-size: var(--fs-300); font-weight: 500; line-height: 1.45; color: var(--c-ink);
}
.svc__list li::before {
  content: ""; position: absolute; left: .2rem; top: .32em;
  width: .7rem; height: .38rem;
  border-left: 2px solid var(--c-red); border-bottom: 2px solid var(--c-red);
  transform: rotate(-45deg);
}

/* ============================================================
   Process timeline - vertical, on the light half of the about band.
   Each step is a dot in a narrow first column with its title and text to the
   right; a line runs from each dot down to the next.
   ============================================================ */
.tl { --tl-dot: 2.75rem; margin-top: var(--s7); }
.tl__step {
  position: relative;
  display: grid; grid-template-columns: var(--tl-dot) minmax(0, 1fr);
  column-gap: var(--s5);
  padding-bottom: var(--s6);
}
.tl__step:last-child { padding-bottom: 0; }
.tl__step:not(:last-child)::after {
  content: ""; position: absolute;
  top: var(--tl-dot); bottom: 0; left: calc(var(--tl-dot) / 2 - 1px);
  width: 2px; background: var(--c-line);
}
.tl__dot {
  grid-row: 1 / span 2;
  display: grid; place-items: center; width: var(--tl-dot); height: var(--tl-dot);
  border-radius: 100px; background: var(--c-red); color: #fff;
  font-family: var(--font-display); font-size: var(--fs-300); font-weight: 700;
}
/* The top padding centres the title's first line on the dot, so the
   description can follow tight underneath. */
.tl__title {
  padding-top: calc((var(--tl-dot) - 1.3em) / 2);
  font-family: var(--font-display); font-size: var(--fs-600); font-weight: 700; line-height: 1.3;
  color: var(--c-ink);
}
.tl__text { margin-top: var(--s2); font-size: var(--fs-300); color: var(--c-ink-soft); max-width: 52ch; }

/* ============================================================
   Guides - "Vodič kroz gradnju kuće". The head is centred: label, title
   with its quieter second line, then a full-width site photo with the
   statement on a white card overlapping its lower edge. Each topic is
   a card with a charcoal blueprint header (number, title, question
   count) and its questions as expandable rows underneath. The investor
   FAQ is not a phase, so its header is red and its number a "?".
   ============================================================ */
.guide-band { overflow: hidden; overflow: clip; }
.guide__intro { margin-bottom: var(--section-pad); }
.guide__top { max-width: 50rem; margin-inline: auto; text-align: center; }
.guide__heading { text-wrap: balance; }
.guide__sub {
  display: block; margin-top: .3em;
  font-size: var(--fs-700); font-weight: 500; letter-spacing: -.012em;
  color: var(--c-ink-faint);
}
/* Phones get their own 4:3 crop (the <source> in index.html); from 768px
   the wide crop fills a 16:7 frame. */
.guide__media {
  margin: clamp(2rem, 4vw, 3rem) 0 0; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--c-band);
}
@media (min-width: 768px) { .guide__media { aspect-ratio: 16 / 7; } }
.guide__media picture { display: block; height: 100%; }
.guide__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.03); }
.guide__card {
  position: relative; margin: -3rem var(--s4) 0;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  text-align: center;
}
/* Centred at up to 50rem, never closer than --s6 to the photo's sides. */
@media (min-width: 768px) {
  .guide__card { margin: clamp(-7rem, -7vw, -4rem) max(var(--s6), (100% - 50rem) / 2) 0; }
}
.guide__statement {
  font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem);
  font-weight: 500; line-height: 1.42; letter-spacing: -.01em; color: var(--c-ink); text-wrap: balance;
}
.guide__lead { margin-top: var(--s4); color: var(--c-ink-soft); }

/* The topics sit on a stone-grey band (the contact band's colour) running
   full width from here to the end of the section: the intro keeps the page
   colour and the questions read as their own block. The section clips the
   band's sides (.guide-band) so it can never cause a sideways scroll. */
.guide { position: relative; isolation: isolate; padding-top: var(--section-pad); }
.guide::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0 calc(50% - 50vw) calc(-1 * var(--section-pad));
  background: var(--c-band);
}
.guide__group {
  --guide-pad: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.guide__group + .guide__group { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.guide__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s2) var(--s5);
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--guide-pad);
  background-color: var(--c-coal); background-image: var(--blueprint); background-size: var(--blueprint-size);
}
.guide__group--faq .guide__head { background-color: var(--c-red); }
/* Gold, not red: red on charcoal is 2.67:1. */
.guide__num {
  font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.25rem); font-weight: 700;
  line-height: 1; letter-spacing: -.03em; color: var(--c-gold);
}
.guide__title { font-size: var(--fs-700); color: var(--c-on-dark); text-wrap: balance; }
.guide__count {
  padding: var(--s1) var(--s4); border: 1px solid var(--c-line-dark-strong); border-radius: 100px;
  font-size: var(--fs-200); color: var(--c-smoke); white-space: nowrap;
}
.guide__group--faq .guide__num, .guide__group--faq .guide__title, .guide__group--faq .guide__count { color: #fff; }
.guide__group--faq .guide__count { border-color: rgba(255, 255, 255, .5); }
/* Phones: the count drops under the title. */
@media (max-width: 559px) {
  .guide__head { grid-template-columns: auto minmax(0, 1fr); }
  .guide__num { grid-row: span 2; }
  .guide__count { justify-self: start; }
}

.news + .news { border-top: 1px solid var(--c-line); }
/* The open question: a red edge down the side and a red title. */
.news:has(.news__btn[aria-expanded="true"]) { box-shadow: inset 4px 0 0 var(--c-red); }
.news:has(.news__btn[aria-expanded="true"]) .news__title { color: var(--c-red); }
.news__h { margin: 0; font-size: var(--fs-400); }
.news__btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  width: 100%; min-height: 4.25rem; padding: var(--s5) var(--guide-pad);
  background: none; border: 0; text-align: left;
  transition: background .2s var(--ease);
}
.news__btn:hover { background: var(--c-page); }
.news__title { font-family: var(--font-display); font-size: var(--fs-600); font-weight: 700; color: var(--c-ink); }
.news__chev { flex: none; width: 1.15rem; height: 1.15rem; color: var(--c-red); transition: transform .25s var(--ease); }
.news__btn[aria-expanded="true"] .news__chev { transform: rotate(180deg); }
.news__panel { display: grid; gap: var(--s3); padding: 0 var(--guide-pad) var(--s6); }
.news__panel p { max-width: 72ch; color: var(--c-ink-soft); font-size: var(--fs-400); }
/* A step chain inside an answer ("Problem → uzrok → rješenje ..."): set
   apart in display type so it reads as one sequence, not a sentence. */
.news__panel .news__flow { font-family: var(--font-display); font-weight: 600; color: var(--c-ink); }
.news__list { display: grid; gap: var(--s2); }
.news__list li { position: relative; padding-left: var(--s5); color: var(--c-ink-soft); font-size: var(--fs-400); }
.news__list li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: .7rem; height: 2px; background: var(--c-red);
}
@media (max-width: 560px) {
  .news__btn { gap: var(--s4); }
}

/* ============================================================
   Apartments
   ============================================================ */
.units { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 680px) { .units { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .units { grid-template-columns: repeat(3, 1fr); } }
.unit { display: flex; flex-direction: column; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.unit--sold { opacity: .76; }
.unit__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-band); }
.unit__media img { width: 100%; height: 100%; object-fit: cover; }
.unit__body { padding: var(--s5); display: grid; gap: var(--s3); }
.unit__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.unit__code { font-family: var(--font-display); font-size: var(--fs-700); font-weight: 700; line-height: 1; color: var(--c-ink); }
.unit__project { font-size: var(--fs-200); color: var(--c-ink-faint); }
.unit__specs { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); padding-top: var(--s4); border-top: 1px solid var(--c-line); }
.unit__spec { font-size: var(--fs-200); color: var(--c-ink-soft); }
.unit__spec b { display: block; font-family: var(--font-display); font-size: var(--fs-600); font-weight: 700; color: var(--c-ink); }
.unit__price { font-family: var(--font-display); font-size: var(--fs-600); font-weight: 700; color: var(--c-red-deep); }

.chip { display: inline-flex; align-items: center; gap: var(--s2); padding: .28rem var(--s4); flex: none; border-radius: 100px; border: 1px solid currentColor; font-family: var(--font-display); font-size: var(--fs-100); font-weight: 700; letter-spacing: var(--caps-ls-sm); text-transform: uppercase; }
.chip::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.chip--free { color: var(--c-free); }
.chip--held { color: var(--c-held); }
.chip--sold { color: var(--c-sold); }

.empty { display: grid; gap: var(--s5); justify-items: start; padding: var(--s9) var(--s7); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.empty__title { font-family: var(--font-display); font-size: var(--fs-700); font-weight: 700; color: var(--c-ink); }
.empty__text { color: var(--c-ink-soft); max-width: 54ch; }

/* Floor accordion */
.floor { border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; background: var(--c-white); }
.floor + .floor { margin-top: var(--s4); }
.floor__btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  width: 100%; padding: var(--s5) var(--s6); min-height: 3.75rem;
  background: var(--c-coal); border: 0; text-align: left; color: var(--c-on-dark);
  font-family: var(--font-display); font-size: var(--fs-600); font-weight: 700;
  letter-spacing: var(--caps-ls-sm); text-transform: uppercase;
  transition: background .2s var(--ease);
}
.floor__btn:hover { background: var(--c-coal-2); }
.floor__count { display: inline-flex; align-items: center; gap: var(--s3); font-family: var(--font-body); font-size: var(--fs-300); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--c-smoke); }
.floor__chev { transition: transform .25s var(--ease); }
.floor__btn[aria-expanded="true"] .floor__chev { transform: rotate(180deg); }
.floor__panel { padding: var(--s5) var(--s6) var(--s6); }

.table-wrap { overflow-x: auto; }
.utable { width: 100%; border-collapse: collapse; min-width: 42rem; }
.utable th, .utable td { padding: var(--s4) var(--s3); text-align: left; border-bottom: 1px solid var(--c-line); }
.utable th { font-family: var(--font-display); font-size: var(--fs-200); font-weight: 700; letter-spacing: var(--caps-ls-sm); text-transform: uppercase; color: var(--c-ink-faint); }
.utable tbody tr:last-child td { border-bottom: 0; }
.utable td:first-child { font-family: var(--font-display); font-weight: 700; color: var(--c-ink); }

/* ============================================================
   Contact
   ============================================================ */
.contact__grid { display: grid; gap: var(--s8); }
@media (min-width: 980px) { .contact__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: var(--s9); } }

/* Coal contact panel. Labels take the light tint: --c-red on coal is 2.67:1. */
.cpanel { margin-top: var(--s7); background: var(--c-coal); border-top: 4px solid var(--c-red); border-radius: var(--radius-lg); overflow: hidden; }
.cpanel__row { display: grid; gap: var(--s1); padding: var(--s5) var(--s6); }
.cpanel__row + .cpanel__row { border-top: 1px solid var(--c-line-dark); }
.cpanel__label { font-family: var(--font-display); font-size: var(--fs-200); font-weight: 700; letter-spacing: var(--caps-ls); text-transform: uppercase; color: var(--c-red-light); }
.cpanel__value { font-family: var(--font-display); font-size: var(--fs-600); font-weight: 700; color: var(--c-on-dark); text-decoration: none; overflow-wrap: anywhere; }
a.cpanel__value:hover { color: var(--c-red-light); }

.form { display: grid; gap: var(--s5); }
.form__row { display: grid; gap: var(--s5); }
@media (min-width: 620px) { .form__row { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: var(--s2); }
.field__label { font-family: var(--font-display); font-size: var(--fs-200); font-weight: 600; letter-spacing: var(--caps-ls-sm); text-transform: uppercase; color: var(--c-ink-faint); }
.field input, .field select, .field textarea { width: 100%; min-height: 3.25rem; padding: var(--s3) var(--s5); background: #fff; border: 1px solid var(--c-line-strong); border-radius: var(--radius); transition: border-color .2s var(--ease); }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-red); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-red); outline: none; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d636b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--s5) center; background-size: 1.1rem; padding-right: var(--s8); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; font-size: var(--fs-300); color: var(--c-ink-soft); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .35rem; accent-color: var(--c-red); }
/* Disabled until the consent box is ticked (and while sending): an outline
   pill instead of solid red. --c-ink-faint keeps the label at 5.1:1 on the band. */
.form .btn:disabled, .form .btn:disabled:hover { background: transparent; border-color: var(--c-line-strong); color: var(--c-ink-faint); cursor: not-allowed; transform: none; }
.form[aria-busy="true"] .btn:disabled { cursor: progress; }
.form__error { font-size: var(--fs-300); color: var(--c-sold); }
.form__error a { color: inherit; font-weight: 600; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__success { display: grid; gap: var(--s3); padding: var(--s7); background: #fff; border-left: 4px solid var(--c-red); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.form__success h3 { color: var(--c-ink); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--c-coal); color: var(--c-smoke); padding-block: var(--s9) var(--s6); }
.footer__grid { display: grid; gap: var(--s8); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s7); } }
/* The header lockup on charcoal: the white copy of the monogram
   (logo-mark-white.webp, gold stem), a white name and the red-light sub line. */
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: var(--c-red-light); }
.footer__blurb { margin-top: var(--s5); font-size: var(--fs-300); max-width: 34ch; }
/* Company name, address and OIB (legally required for a d.o.o.), set apart from the e-mail/phone links below it */
.footer__legal { margin-bottom: var(--s2); }
.footer__company { font-weight: 600; color: #fff; }
.footer__title { font-family: var(--font-display); font-size: var(--fs-300); font-weight: 700; letter-spacing: var(--caps-ls-sm); text-transform: uppercase; color: #fff; margin-bottom: var(--s5); }
.footer__list { display: grid; gap: var(--s3); }
.footer__list a { font-size: var(--fs-300); text-decoration: none; transition: color .2s var(--ease); }
.footer__list a:hover { color: var(--c-red-light); }
.footer__contact { display: grid; gap: var(--s3); font-size: var(--fs-300); font-style: normal; }
.footer__contact a { text-decoration: none; }
.footer__contact a:hover { color: var(--c-red-light); }
.footer__social { display: flex; gap: var(--s3); margin-top: var(--s6); }
.footer__social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--c-line-dark-strong); border-radius: 100px; color: #fff; transition: all .2s var(--ease); }
.footer__social a:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.footer__social svg { width: 1.1rem; height: 1.1rem; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--c-line-dark); font-size: var(--fs-200); }
.footer__bottom a { text-decoration: none; transition: color .2s var(--ease); }
.footer__bottom a:hover, .footer__bottom a[aria-current] { color: var(--c-red-light); }

/* ============================================================
   Sub-page hero
   ============================================================ */
.pagehero { position: relative; isolation: isolate; color: var(--c-on-photo); }
.pagehero__media { position: absolute; inset: 0; z-index: -2; }
.pagehero__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,17,20,.76), rgba(15,17,20,.9)); }
.pagehero__inner { padding-block: clamp(3.5rem, 8vw, 6rem); }
.pagehero h1 { text-shadow: 0 2px 18px rgba(8,10,13,.55); }
.pagehero .hero__lead { margin-top: var(--s5); text-align: left; }
/* align-items:center matters on touch, where the link grows to a 44px tap box:
   without it the stretched sibling spans keep their text at the top of the row
   and the trail reads as two different baselines. */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s5); font-family: var(--font-display); font-size: var(--fs-200); font-weight: 600; letter-spacing: var(--caps-ls-sm); text-transform: uppercase; color: var(--c-on-photo); text-shadow: 0 1px 10px rgba(8,10,13,.75); }
.crumbs a { text-decoration: none; }
.crumbs a:hover, .crumbs [aria-current] { color: var(--c-red-light); }

/* Impressum: no photo, a plain charcoal head, then the company data the
   Companies Act requires on the website (ZTD čl. 21) as label/value rows. */
.pagehero--plain { background: var(--c-coal); }
.pagehero--plain::after { content: none; }
.pagehero--plain h1, .pagehero--plain .crumbs, .pagehero--plain .hero__lead { text-shadow: none; }
.legal { max-width: 48rem; }
.legal__row { display: grid; gap: var(--s1) var(--s6); padding-block: var(--s4); border-bottom: 1px solid var(--c-line); }
.legal__row:first-child { border-top: 1px solid var(--c-line); }
@media (min-width: 640px) { .legal__row { grid-template-columns: 16rem minmax(0, 1fr); } }
.legal dt { font-family: var(--font-display); font-weight: 600; color: var(--c-ink); }
.legal dd { margin: 0; color: var(--c-ink-soft); }
.legal a { color: var(--c-red); text-decoration: none; }
.legal a:hover { text-decoration: underline; }

/* ============================================================
   Touch targets
   ============================================================ */
@media (hover: none), (max-width: 767px) {
  .footer__list a, .footer__contact a, .footer__bottom a, .crumbs a,
  .cpanel__value, .link-arrow,
  .drawer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
  .std, .news__btn { min-height: 44px; }
  .footer__list { gap: 0; }
  /* Short crumb labels ("Home") shrink below the 44px hit area on touch. */
  .crumbs a { justify-content: center; min-width: 44px; }
  /* Each row now carries its own 44px box, so drop the extra gap. */
  .drawer__contact { gap: 0; }
  .consent input { width: 1.35rem; height: 1.35rem; margin-top: .5rem; }
  .consent { padding-block: var(--s2); }
}

/* ============================================================
   Reveal
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
