/* ==========================================================================
   TERRA KOP MEHANIZACIJA d.o.o. — design system + homepage styles
   Plain CSS. No build step. All tokens live in :root.
   Signature shape: a single clipped ("notched") corner on cards and buttons.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Accent — used ONLY for CTAs, key figures and small markers */
  --orange-600: #E8500F;
  --orange-500: #F5651F;
  --orange-100: #FDE8DF;

  /* Ink / neutrals */
  --ink-950: #101418;
  --ink-800: #1C2228;
  --steel-600: #5A6672;
  --body-600: #495159;

  /* Surfaces */
  --surface-0: #FFFFFF;
  --surface-50: #F4F6F7;
  --surface-100: #E9EDEF;
  --line: #DCE2E5;

  /* Feedback colours */
  --error-600: #C42B1C;
  --error-50:  #FDF3F2;
  --success-700: #125730;
  --success-600: #1E7A44;
  --success-50: #E8F5EC;

  /* Brand colour of an external service, used only on its own button */
  --whatsapp: #25D366;

  /* On-dark variants */
  --on-dark: #FFFFFF;
  --on-dark-muted: #A9B3BC;
  --line-dark: #2A3238;

  /* Shape */
  --radius-sm: 4px;
  --radius-md: 8px;
  --notch: 18px;
  --notch-sm: 12px;

  /* Elevation */
  --shadow-card: 0 12px 36px rgba(16, 20, 24, .10);
  --shadow-card-hover: 0 18px 48px rgba(16, 20, 24, .16);
  --shadow-header: 0 2px 16px rgba(16, 20, 24, .08);

  /* Layout */
  --container: 1280px;
  --gutter: 20px;
  --header-h: 76px;
  --utility-h: 38px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 88px;
  --s-10: 120px;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --tracking-label: .16em;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .28s;

  /* Z-index */
  --z-header: 100;
  --z-menu: 200;
  --z-cookie: 300;
  --z-stickybar: 150;
}

/* --------------------------------------------------------------------------
   2. Minimal reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keep in-page anchors clear of the sticky header */
  scroll-padding-top: var(--header-h);
  /* clip, not hidden: `hidden` forces the paired overflow-y to compute as
     `auto`, which turns <html>/<body> into scroll containers and breaks the
     sticky header (Chromium detaches position: sticky from the viewport
     once an ancestor up to <html> is a scroll container). `clip` prevents
     the horizontal scrollbar without creating that container. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-600);
  background: var(--surface-0);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  /* Clear the fixed mobile action bar so it never covers the footer. */
  padding-bottom: 56px;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-950);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -.005em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 var(--s-4); max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   3. Accessibility helpers
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink-950);
  color: var(--on-dark);
  padding: var(--s-3) var(--s-5);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--orange-600);
  outline-offset: 3px;
}

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

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

.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-7); }
.section--band { background: var(--surface-50); }
.section--dark { background: var(--ink-950); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }

/* Small uppercase label with a thin rule — marks the start of a section */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--steel-600);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange-600);
  flex: none;
}
.section--dark .eyebrow { color: var(--on-dark-muted); }

/* Spacing utility — used by the CTA that follows a grid */
.mt-6 { margin-top: var(--s-6); }

.section-head { margin-bottom: var(--s-6); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-head p { margin-top: var(--s-3); color: var(--body-600); }
.section--dark .section-head p { color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   5. Notch utilities — the signature shape
   -------------------------------------------------------------------------- */
.notch-tr {
  clip-path: polygon(
    0 0,
    calc(100% - var(--notch)) 0,
    100% var(--notch),
    100% 100%,
    0 100%
  );
}

.notch-bl {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    var(--notch) 100%,
    0 calc(100% - var(--notch))
  );
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --notch: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: 0 var(--s-6);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 0;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.btn--primary {
  background: var(--orange-600);
  color: var(--on-dark);
}
.btn--primary:hover { background: var(--orange-500); }

.btn--dark {
  background: var(--ink-950);
  color: var(--on-dark);
}
.btn--dark:hover { background: var(--ink-800); }

.btn--ghost {
  background: transparent;
  color: var(--ink-950);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink-950); }

.btn--on-dark {
  background: rgba(255, 255, 255, .08);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22);
}
.btn--on-dark:hover { background: rgba(255, 255, 255, .16); }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 var(--s-5); font-size: .95rem; }

/* Text link with a chevron; the chevron is an element, not a character in the label */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-950);
  min-height: 44px;
}
.link-more svg { transition: transform var(--dur) var(--ease); flex: none; }
.link-more:hover { color: var(--orange-600); }
.link-more:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   7. Utility bar
   -------------------------------------------------------------------------- */
.utility {
  background: var(--ink-950);
  color: var(--on-dark-muted);
  font-size: .82rem;
  /* Deliberately no stacking context: the sticky header must paint over this
     bar as the page scrolls past it. */
}
.utility__inner {
  min-height: var(--utility-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.utility__group { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.utility a { display: inline-flex; align-items: center; gap: var(--s-2); padding-block: 6px; }
.utility a:hover { color: var(--on-dark); }
.utility svg { flex: none; color: var(--orange-600); }
.utility__region { display: inline-flex; align-items: center; gap: var(--s-2); }

/* --------------------------------------------------------------------------
   8. Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: transparent;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  transition: min-height var(--dur) var(--ease);
}

/* Once the page scrolls past the hero, the header morphs into a shorter,
   solid bar so it reads as a distinct "docked" navbar rather than just a
   recolored version of the transparent one — it keeps following the page
   via position: sticky the whole time. */
.header.is-stuck {
  background: var(--surface-0);
  box-shadow: var(--shadow-header);
}
.header.is-stuck .header__inner { min-height: calc(var(--header-h) - 18px); }
.header.is-stuck .nav__list { padding: 4px; }
.header.is-stuck .logo__mark { transform: scale(.9); }

/* Logo: wordmark with a notched orange block. Replace with {{LOGO}} when supplied. */
.logo { display: inline-flex; align-items: center; gap: var(--s-3); }
.logo__mark {
  width: 38px; height: 38px;
  background: var(--orange-600);
  display: grid;
  place-items: center;
  flex: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: transform var(--dur) var(--ease);
}
.logo__mark svg { width: 22px; height: 22px; color: var(--on-dark); }
.logo__text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--on-dark);
}
.logo__text span { color: var(--orange-600); }
.logo__sub {
  display: block;
  font-family: var(--font-body);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--on-dark-muted);
  text-transform: uppercase;
  margin-top: 3px;
}
.header.is-stuck .logo__text { color: var(--ink-950); }
.header.is-stuck .logo__sub { color: var(--steel-600); }

/* Nav in a bordered capsule, as in the reference */
.nav { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(16, 20, 24, .28);
  backdrop-filter: blur(6px);
  transition: padding var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.header.is-stuck .nav__list {
  border-color: var(--line);
  background: var(--surface-50);
  backdrop-filter: none;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 var(--s-4);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.header.is-stuck .nav__link { color: var(--body-600); }
.nav__link:hover { background: rgba(255, 255, 255, .14); color: var(--on-dark); }
.header.is-stuck .nav__link:hover { background: var(--surface-100); color: var(--ink-950); }
.nav__link.is-active { background: var(--orange-600); color: var(--on-dark); }
.header.is-stuck .nav__link.is-active { background: var(--orange-600); color: var(--on-dark); }

/* Services dropdown */
.nav__item { position: relative; }
.nav__toggle { background: none; border: 0; cursor: pointer; }
.nav__chevron { transition: transform var(--dur) var(--ease); }
.nav__item.is-open .nav__chevron { transform: rotate(180deg); }
.nav__sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 290px;
  background: var(--surface-0);
  border: 1px solid var(--line);
  padding: var(--s-3);
  display: none;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.nav__item.is-open .nav__sub { display: block; }
.nav__sub a {
  display: block;
  padding: 10px var(--s-4);
  font-size: .92rem;
  color: var(--body-600);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav__sub a:hover { background: var(--surface-50); color: var(--orange-600); }

.header__actions { display: flex; align-items: center; gap: var(--s-4); }
.header__phone {
  display: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--on-dark);
  white-space: nowrap;
}
.header.is-stuck .header__phone { color: var(--ink-950); }
.header__cta { display: none; }

/* Burger */
.burger {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  cursor: pointer;
  flex: none;
}
.header.is-stuck .burger { background: var(--surface-50); border-color: var(--line); }
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--on-dark);
  box-shadow: 0 -7px 0 var(--on-dark), 0 7px 0 var(--on-dark);
}
.header.is-stuck .burger span { background: var(--ink-950); box-shadow: 0 -7px 0 var(--ink-950), 0 7px 0 var(--ink-950); }

/* Full-screen mobile menu */
.mobilemenu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--ink-950);
  padding: var(--s-5) var(--gutter) var(--s-8);
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .34s var(--ease), visibility .34s;
}
.mobilemenu.is-open { transform: translateY(0); visibility: visible; }
.mobilemenu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-6); }
.mobilemenu__close {
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .24);
  color: var(--on-dark);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.mobilemenu__list { border-top: 1px solid var(--line-dark); }
.mobilemenu__list > li { border-bottom: 1px solid var(--line-dark); }
.mobilemenu__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--on-dark);
}
.mobilemenu__list a.is-active { color: var(--orange-600); }
.mobilemenu__sub { padding: 0 0 var(--s-4) var(--s-4); }
.mobilemenu__sub a { font-size: 1rem; font-family: var(--font-body); text-transform: none; color: var(--on-dark-muted); min-height: 44px; }
.mobilemenu__foot { margin-top: var(--s-6); display: grid; gap: var(--s-3); }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  /* Pull up under the transparent header so the video runs behind it */
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + var(--s-7));
  padding-bottom: var(--s-8);
  min-height: 620px;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: var(--ink-950);
}

/* The hero's content sits in a wider box than the rest of the site: on wide
   screens the standard 1280px container leaves the headline and the quote
   panel both stranded near the middle, while the background photo runs
   full-bleed. Widening just this container pushes the headline further left
   and the panel further right, toward the real edges of the screen. */
.hero > .container { max-width: 1680px; }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--ink-950);
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__poster { position: absolute; inset: 0; }
.hero__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.hero__video.is-ready { opacity: 1; }

/* Gradient scrim — holds WCAG AA contrast for white text over any frame */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(16, 20, 24, .92) 0%, rgba(16, 20, 24, .78) 42%, rgba(16, 20, 24, .48) 100%),
    linear-gradient(to top, rgba(16, 20, 24, .86) 0%, rgba(16, 20, 24, 0) 45%);
}

.hero__grid {
  display: grid;
  gap: var(--s-6);
  width: 100%;
}

/* Years block */
.hero__years { display: flex; align-items: flex-start; gap: var(--s-4); }
.hero__years-marker {
  width: 26px; height: 26px;
  background: var(--orange-600);
  flex: none;
  margin-top: 10px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.hero__years-num {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 11vw, 8.5rem);
  font-weight: 700;
  line-height: .82;
  color: rgba(255, 255, 255, .34);
  letter-spacing: -.03em;
}
.hero__years-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-top: var(--s-2);
  line-height: 1.4;
}

/* Headline column */
.hero h1 {
  color: var(--on-dark);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -.01em;
  line-height: .98;
  margin-bottom: var(--s-5);
}
.hero__lead {
  color: rgba(255, 255, 255, .84);
  font-size: 1.06rem;
  max-width: 54ch;
  margin-bottom: var(--s-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Right panel */
.hero__panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  padding: var(--s-5);
  --notch: 22px;
}
.hero__panel h2 {
  color: var(--on-dark);
  font-size: 1.35rem;
  margin-bottom: var(--s-3);
}
.hero__panel p {
  color: rgba(255, 255, 255, .78);
  font-size: .94rem;
  margin-bottom: var(--s-5);
}
.hero__panel-phone {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  min-height: 44px;
}
.hero__panel-phone svg { color: var(--orange-600); flex: none; }

/* Video pause/play toggle */
.hero__videotoggle {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s-5);
  z-index: 3;
  width: 48px; height: 48px;
  display: none;
  place-items: center;
  background: rgba(16, 20, 24, .58);
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--on-dark);
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.hero__videotoggle.is-visible { display: grid; }
.hero__videotoggle:hover { background: rgba(16, 20, 24, .82); }

/* --------------------------------------------------------------------------
   10. Overlapping info card row
   -------------------------------------------------------------------------- */
.infocards {
  position: relative;
  z-index: 5;
  margin-top: calc(-1 * var(--s-7));
  margin-bottom: var(--s-7);
  /* clip-path clips box-shadow away, so elevation lives on the parent as a
     drop-shadow filter — it follows the notched silhouette correctly. */
  filter: drop-shadow(0 12px 28px rgba(16, 20, 24, .18));
}
.infocards__grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  --notch: 22px;
}
.infocard {
  background: var(--surface-0);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.infocard--dark { background: var(--ink-950); }
.infocard__icon { color: var(--orange-600); }
.infocard__title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-950);
  line-height: 1.1;
}
.infocard--dark .infocard__title { color: var(--on-dark); }
.infocard__text { font-size: .9rem; color: var(--steel-600); margin: 0; }
.infocard--dark .infocard__text { color: var(--on-dark-muted); }
.infocard__figure {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orange-600);
}

/* --------------------------------------------------------------------------
   11. Services
   -------------------------------------------------------------------------- */
.services__grid {
  display: grid;
  gap: var(--s-5);
}
.service {
  background: var(--surface-0);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  --notch: 20px;
}
/* No box-shadow here: it would be clipped by clip-path. Depth comes from the
   border darkening and a small lift instead. */
.service:hover { border-color: var(--ink-950); transform: translateY(-4px); }
.service__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-100); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service:hover .service__media img { transform: scale(1.05); }
.service__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; gap: var(--s-3); }
.service__title { font-size: 1.35rem; line-height: 1.08; }
.service:hover .service__title { color: var(--orange-600); }
.service__text { font-size: .94rem; margin: 0; flex: 1; }
.service__link { margin-top: auto; }

/* --------------------------------------------------------------------------
   12. O nama
   -------------------------------------------------------------------------- */
.about__grid { display: grid; gap: var(--s-7); align-items: center; }
.about__media { position: relative; }
.about__img-main { --notch: 26px; width: 100%; }
.about__img-sub {
  display: none;
  position: absolute;
  right: calc(-1 * var(--s-5));
  bottom: calc(-1 * var(--s-5));
  width: 46%;
  border: 8px solid var(--surface-0);
  --notch: 18px;
}
.about__checks { display: grid; gap: var(--s-4); margin: var(--s-5) 0 var(--s-6); }
.about__check { display: flex; gap: var(--s-3); align-items: flex-start; }
.about__check svg { color: var(--orange-600); flex: none; margin-top: 3px; }
.about__check strong { display: block; color: var(--ink-950); font-weight: 600; }
.about__check span { font-size: .94rem; }

/* --------------------------------------------------------------------------
   13. Process — 4 koraka (a genuine sequence, so numbered)
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--s-5); counter-reset: step; }
.step { border-top: 3px solid var(--line); padding-top: var(--s-4); }
.step__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orange-600);
  display: block;
  margin-bottom: var(--s-2);
}
.step h3 { font-size: 1.28rem; margin-bottom: var(--s-2); }
.step p { font-size: .94rem; margin: 0; }

/* --------------------------------------------------------------------------
   14. Mehanizacija
   -------------------------------------------------------------------------- */
.machines { display: grid; gap: var(--s-5); }
.machine {
  position: relative;
  overflow: hidden;
  --notch: 20px;
  background: var(--ink-950);
  aspect-ratio: 4 / 3;
}
.machine img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .5s var(--ease), opacity var(--dur) var(--ease); }
.machine:hover img { transform: scale(1.05); opacity: .68; }
.machine__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-5);
  background: linear-gradient(to top, rgba(16, 20, 24, .94) 12%, rgba(16, 20, 24, 0) 100%);
}
.machine__title { color: var(--on-dark); font-size: 1.35rem; margin-bottom: 4px; }
.machine__text { color: var(--on-dark-muted); font-size: .9rem; margin: 0; }

/* --------------------------------------------------------------------------
   15. Zašto TERRA KOP — dark band
   -------------------------------------------------------------------------- */
.why { position: relative; isolation: isolate; overflow: hidden; }
.why__bg { position: absolute; inset: 0; z-index: -2; }
.why__bg img { width: 100%; height: 100%; object-fit: cover; }
.why__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(16, 20, 24, .97) 0%, rgba(16, 20, 24, .88) 60%, rgba(16, 20, 24, .74) 100%);
}
.why__grid { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.why__item { padding: var(--s-5) 0 0; border-top: 2px solid var(--line-dark); }
.why__item h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.why__item p { font-size: .92rem; margin: 0; color: var(--on-dark-muted); }
.why__icon { color: var(--orange-600); margin-bottom: var(--s-3); }

/* --------------------------------------------------------------------------
   16. Reference / Projekti
   -------------------------------------------------------------------------- */
/* Horizontal scroll-snap row. Card width is deliberately wider than an even
   fraction of the container so the last card always peeks in cut off at the
   edge — a visible cue that there's more to scroll to, not just a grid that
   happens to be short two cards. */
.projects {
  display: flex;
  gap: var(--s-5);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--gutter);
  padding-bottom: var(--s-4);
  margin-bottom: calc(-1 * var(--s-3));
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.projects::-webkit-scrollbar { height: 8px; }
.projects::-webkit-scrollbar-track { background: transparent; }
.projects::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.projects::-webkit-scrollbar-thumb:hover { background: var(--steel-600); }

.project {
  flex: none;
  width: clamp(280px, 78vw, 400px);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--surface-0);
  --notch: 20px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.project:hover {
  transform: translateY(-6px);
  border-color: var(--ink-950);
  box-shadow: var(--shadow-card);
}
.project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-100);
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.project:hover .project__media img { transform: scale(1.06); }
.project__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--steel-600);
}
.project__meta span { display: inline-flex; align-items: center; gap: 6px; }
.project__meta svg { color: var(--orange-600); flex: none; }
.project h3 { font-size: 1.3rem; line-height: 1.1; }
.project:hover h3 { color: var(--orange-600); }
.project p { font-size: .94rem; margin: 0; flex: 1; }
.project__media .project__tag {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  background: var(--surface-0);
}
.project__tag {
  align-self: flex-start;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--orange-600);
  background: var(--orange-100);
  padding: 6px var(--s-3);
}

/* Iskustva klijenata — still ships commented out in index.html. The
   styles live here so enabling it needs no new CSS. */
.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-5);
  align-items: center;
}
.clients img {
  max-height: 56px;
  width: auto;
  margin-inline: auto;
  filter: grayscale(1);
  opacity: .62;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.clients img:hover { filter: none; opacity: 1; }

/* Klijenti — logo strip that scrolls in an endless loop. The track holds
   the client list twice back to back; animating it exactly -50% of its
   own width loops seamlessly from the first set into the identical
   second set, then jumps back to 0 unnoticed. */
.clients-marquee {
  margin-top: var(--s-6);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.clients-marquee__track {
  display: flex;
  width: max-content;
  gap: var(--s-5);
  padding-inline: var(--gutter);
  animation: clients-marquee 40s linear infinite;
}
.clients-marquee:hover .clients-marquee__track,
.clients-marquee:focus-within .clients-marquee__track {
  animation-play-state: paused;
}
@keyframes clients-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-card {
  flex: none;
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  background: var(--surface-0);
  border: 1px solid var(--line);
  filter: grayscale(1);
  opacity: .72;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.client-card:hover { filter: none; opacity: 1; border-color: var(--ink-950); }
.client-card__logo {
  width: 100%;
  height: 120px;
  display: grid;
  place-items: center;
  background: var(--ink-950);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
/* Real client logos: white-artwork marks sit on the default dark plate above;
   dark/colored marks need a light plate instead so they stay visible. */
.client-card__logo--light {
  background: var(--surface-0);
  box-shadow: inset 0 0 0 1px var(--line);
}
.client-card__logo img {
  max-width: 84%;
  max-height: 84%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.reviews { display: grid; gap: var(--s-5); }
.reviews blockquote {
  margin: 0;
  background: var(--surface-50);
  border-top: 3px solid var(--orange-600);
  padding: var(--s-5);
  --notch: 20px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}
.reviews p { font-size: 1rem; margin-bottom: var(--s-4); }
.reviews cite {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-950);
  font-size: .9rem;
}
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   17. FAQ accordion
   -------------------------------------------------------------------------- */
.faq { max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__btn {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  min-height: 60px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-950);
  line-height: 1.15;
}
.faq__btn:hover { color: var(--orange-600); }
.faq__sign { position: relative; width: 20px; height: 20px; flex: none; }
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  background: var(--orange-600);
  transition: transform var(--dur) var(--ease);
}
.faq__sign::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq__sign::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq__btn[aria-expanded="true"] .faq__sign::after { transform: scaleY(0); }
.faq__panel { display: none; padding-bottom: var(--s-5); }
.faq__panel.is-open { display: block; }
.faq__panel p { margin: 0; font-size: .97rem; }

/* --------------------------------------------------------------------------
   18. Karijere
   -------------------------------------------------------------------------- */
.careers {
  background: var(--ink-950);
  color: var(--on-dark-muted);
  padding: var(--s-7) var(--s-5);
  display: grid;
  gap: var(--s-5);
  align-items: center;
  --notch: 26px;
}
.careers h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--s-3); }
.careers p { margin: 0; color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   19. Kontakt + form
   -------------------------------------------------------------------------- */
.contact__grid { display: grid; gap: var(--s-7); align-items: start; }

.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--ink-950);
  line-height: 1;
  margin-bottom: var(--s-5);
}
.contact__phone svg { color: var(--orange-600); flex: none; }
.contact__phone:hover { color: var(--orange-600); }

.contact__details { display: grid; gap: var(--s-4); margin-bottom: var(--s-5); }
.contact__row { display: flex; gap: var(--s-3); align-items: flex-start; }
.contact__row svg { color: var(--orange-600); flex: none; margin-top: 4px; }
.contact__row strong { display: block; color: var(--ink-950); font-weight: 600; }
.contact__row a { min-height: 44px; display: inline-flex; align-items: center; }
.contact__row a:hover { color: var(--orange-600); }

.contact__map {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  background: var(--surface-100);
  --notch: 22px;
}

.form {
  background: var(--surface-0);
  border: 2px solid var(--line);
  padding: var(--s-5);
  --notch: 26px;
}
.form__grid { display: grid; gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-950); }
.field .req { color: var(--orange-600); }
.field input,
.field select,
.field textarea {
  min-height: 50px;
  padding: 12px var(--s-4);
  border: 1px solid var(--line);
  background: var(--surface-50);
  border-radius: var(--radius-sm);
  font-size: .97rem;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; padding-top: var(--s-3); }
.field input:focus,
.field select:focus,
.field textarea:focus { background: var(--surface-0); border-color: var(--ink-950); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error-600); background: var(--error-50); }
.field__error { font-size: .82rem; color: var(--error-600); font-weight: 500; min-height: 0; }
.field__hint { font-size: .8rem; color: var(--steel-600); }

.field--check { flex-direction: row; gap: var(--s-3); align-items: flex-start; }
.field--check input { min-height: 0; width: 22px; height: 22px; flex: none; margin-top: 3px; accent-color: var(--orange-600); }
.field--check label { font-weight: 400; font-size: .87rem; color: var(--body-600); line-height: 1.5; }
.field--check a { text-decoration: underline; }

.form__status {
  display: none;
  padding: var(--s-4);
  background: var(--success-50);
  border-left: 4px solid var(--success-600);
  color: var(--success-700);
  font-weight: 500;
  font-size: .94rem;
}
.form__status.is-visible { display: block; }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink-950); color: var(--on-dark-muted); padding-top: var(--s-8); }
.footer__grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-7); }
.footer h3 {
  font-size: 1rem;
  color: var(--on-dark);
  letter-spacing: var(--tracking-label);
  margin-bottom: var(--s-4);
  font-family: var(--font-body);
  font-weight: 600;
}
.footer__list { display: grid; gap: var(--s-1); }
.footer__list a { display: inline-flex; align-items: center; min-height: 40px; font-size: .94rem; }
.footer__list a:hover { color: var(--orange-600); }
.footer__intro { font-size: .94rem; margin: var(--s-4) 0; max-width: 34ch; }
.footer__socials { display: flex; gap: var(--s-3); }
.footer__socials a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  color: var(--on-dark);
}
.footer__socials a:hover { background: var(--orange-600); }

.footer__legal {
  border-top: 1px solid var(--line-dark);
  padding-block: var(--s-5) var(--s-6);
  font-size: .82rem;
  line-height: 1.7;
  display: grid;
  gap: var(--s-4);
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer__legal-links a { min-height: 40px; display: inline-flex; align-items: center; }
.footer__legal-links a:hover { color: var(--on-dark); }
.footer__legal-info { display: grid; gap: 2px; }
.footer__legal-info p { margin: 0; max-width: none; }
.footer__legal-info strong { font-weight: 600; color: var(--on-dark); }

/* --------------------------------------------------------------------------
   21. Cookie banner + sticky mobile bar
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: var(--z-cookie);
  display: none;
  max-width: 720px;
  /* Elevation on the outer box; the notch on the inner box (see §5 note above). */
  filter: drop-shadow(0 14px 40px rgba(16, 20, 24, .28));
}
.cookie.is-visible { display: block; }
.cookie__inner {
  background: var(--surface-0);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-4);
  --notch: 22px;
}
.cookie p { font-size: .88rem; margin: 0; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-stickybar);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink-950);
  border-top: 1px solid var(--line-dark);
}
.stickybar a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--on-dark);
}
.stickybar a + a { background: var(--orange-600); }

/* WhatsApp floating button */
.whatsapp {
  position: fixed;
  right: var(--gutter);
  bottom: calc(56px + var(--gutter));
  z-index: var(--z-stickybar);
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: var(--on-dark);
  box-shadow: var(--shadow-card);
  border-radius: 50%;
}
.whatsapp:hover { transform: scale(1.06); }

/* --------------------------------------------------------------------------
   22. Scroll reveal (disabled under reduced motion — see §24)
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* --------------------------------------------------------------------------
   23. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 560px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .infocards__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .machines { grid-template-columns: repeat(2, 1fr); }
  .form__grid { grid-template-columns: repeat(2, 1fr); }
  .field--wide { grid-column: 1 / -1; }
  .cookie__inner { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .section { padding-block: var(--s-9); }
  .stickybar { display: none; }
  .whatsapp { bottom: var(--gutter); }
  .about__img-sub { display: block; }
  .careers { grid-template-columns: 1fr auto; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__legal { grid-template-columns: 1fr auto; align-items: end; }
  .hero { min-height: 700px; }
  .hero__lead { font-size: 1.12rem; }
}

@media (min-width: 1024px) {
  :root { --header-h: 88px; }
  .nav { display: block; }
  .burger { display: none; }
  .header__cta { display: inline-flex; }
  .section { padding-block: var(--s-10); }

  .hero__grid {
    grid-template-columns: auto minmax(0, 1fr) 320px;
    gap: var(--s-7);
    align-items: center;
  }
  .hero__years { flex-direction: column; align-items: flex-start; gap: 0; }
  .hero__years-marker { margin-top: 0; margin-bottom: var(--s-4); }

  .infocards__grid { grid-template-columns: repeat(4, 1fr); }
  .infocards { margin-top: calc(-1 * var(--s-8)); margin-bottom: var(--s-8); }

  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .machines { grid-template-columns: repeat(3, 1fr); }

  .about__grid { grid-template-columns: 1fr 1fr; gap: var(--s-9); }
  .contact__grid { grid-template-columns: 1fr 1.05fr; gap: var(--s-8); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

@media (min-width: 1280px) {
  /* Only now is there room for the phone beside the nav without crowding. */
  .header__phone { display: block; }
  .hero h1 { font-size: 4.8rem; }
  .hero__grid { grid-template-columns: auto minmax(0, 1fr) 360px; }
}

/* --------------------------------------------------------------------------
   24. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .service:hover .service__media img,
  .machine:hover img { transform: none; }
}

/* --------------------------------------------------------------------------
   25. Print
   -------------------------------------------------------------------------- */
@media print {
  .header, .utility, .mobilemenu, .cookie, .stickybar, .whatsapp,
  .hero__media, .hero__videotoggle, .contact__map { display: none !important; }
  body { color: var(--ink-950); font-size: 12pt; }
  .hero { min-height: 0; background: none; margin-top: 0; padding-top: 0; }
  .hero h1, .hero__lead, .hero__years-num { color: var(--ink-950); }
}
