/* =====================================================================
   MONTEREX TGA DOO — stilovi
   Referentni dizajn: "Čelik i vatra" (1a, tamna industrijska varijanta)
   Sve boje, veličine fontova i razmaci definisani kao CSS varijable.
   ===================================================================== */

:root {
  /* --- Boje --- */
  --c-bg:          #14171a;  /* glavna tamna pozadina / hero / naizmenične sekcije */
  --c-bg-alt:      #1c2023;  /* naizmenične (svetlije tamne) sekcije */
  --c-surface:     #20262a;  /* kartice vrednosti u „O firmi” */
  --c-accent:      #ef5b25;  /* narandžasta (vatra) */
  --c-accent-ink:  #14171a;  /* tekst na narandžastoj podlozi (logo M) */
  --c-header-bg:   rgba(20, 23, 26, 0.92);

  --c-text:        #f2f1ec;  /* osnovni svetli tekst */
  --c-text-70:     rgba(242, 241, 236, 0.70);
  --c-text-68:     rgba(242, 241, 236, 0.68);
  --c-text-62:     rgba(242, 241, 236, 0.62);
  --c-text-60:     rgba(242, 241, 236, 0.60);
  --c-text-55:     rgba(242, 241, 236, 0.55);
  --c-text-50:     rgba(242, 241, 236, 0.50);
  --c-text-45:     rgba(242, 241, 236, 0.45);
  --c-text-40:     rgba(242, 241, 236, 0.40);
  --c-text-35:     rgba(242, 241, 236, 0.35);

  --c-line:        rgba(255, 255, 255, 0.10);
  --c-line-08:     rgba(255, 255, 255, 0.08);
  --c-line-12:     rgba(255, 255, 255, 0.12);
  --c-line-14:     rgba(255, 255, 255, 0.14);
  --c-line-16:     rgba(255, 255, 255, 0.16);

  /* --- Tipografija --- */
  --f-head: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --fs-hero:     62px;
  --fs-h2:       36px;
  --fs-h3-field: 19px;
  --fs-h3-value: 18px;
  --fs-lead:     18px;
  --fs-body:     15.5px;
  --fs-stat:     38px;
  --fs-eyebrow:  12px;

  /* --- Razmaci / layout --- */
  --maxw:      1440px;
  --pad-x:     56px;
  --section-y: 100px;
  --header-h:  85px; /* približna visina sticky headera za scroll-margin */
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, dt, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
address { font-style: normal; }

/* --- Pristupačnost: fokus stanja --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 10px 16px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* --- Zajednički container --- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* --- Zajednički elementi --- */
.eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.section__title {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.15;
  color: var(--c-text);
  margin: 16px 0 22px;
}
.section__title--mb { margin-bottom: 40px; }
.section__lead {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text-60);
  max-width: 620px;
  margin: 0 0 40px;
}

.section {
  padding: var(--section-y) 0;
  background: var(--c-bg);
  scroll-margin-top: var(--header-h);
}
.section--alt { background: var(--c-bg-alt); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--c-header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo (privremeni wordmark) */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo__mark {
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--c-accent);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--c-accent-ink);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__word {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--c-text);
}
.logo__accent { color: var(--c-accent); }
.logo__sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-45);
}

/* Navigacija */
.nav { display: flex; gap: 36px; }
.nav__link {
  font-family: var(--f-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-text-70);
  text-decoration: none;
  transition: color .15s ease;
}
.nav__link:hover { color: var(--c-text); }
.nav__link--cta { color: var(--c-accent); font-weight: 600; }
.nav__link--cta:hover { color: var(--c-accent); }
.nav__link.is-active { color: var(--c-accent); }

/* Hamburger (skriven na desktopu) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--c-text);
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Akcije u zaglavlju (prekidač jezika + hamburger) */
.header-actions { display: flex; align-items: center; gap: 18px; }

/* Prekidač jezika SR / DE */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.lang-switch__link {
  color: var(--c-text-45);
  text-decoration: none;
  transition: color .15s ease;
}
.lang-switch__link:hover { color: var(--c-text); }
.lang-switch__link.is-active { color: var(--c-accent); font-weight: 600; }
.lang-switch__sep { color: var(--c-text-45); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  padding: 130px 0 90px;
  overflow: hidden;
  background: var(--c-bg);
  scroll-margin-top: var(--header-h);
}
.hero__texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px, transparent 46px);
  pointer-events: none;
  z-index: 1;
}
/* Pozadinski placeholder za hero fotografiju (ispod teksta) */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: calc(740px + 2 * var(--pad-x)); }
.hero__title {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: var(--fs-hero);
  line-height: 1.06;
  color: var(--c-text);
  margin: 20px 0 26px;
}
.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--c-text-68);
  max-width: 600px;
}
.hero__stats {
  display: flex;
  gap: 56px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line-12);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: var(--fs-stat);
  color: var(--c-text);
}
.stat__label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-45);
}

/* =====================================================================
   O FIRMI
   ===================================================================== */
.onama {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.onama__intro p {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-text-62);
  margin: 0 0 18px;
}
.onama__intro p:last-child { margin-bottom: 0; }

.onama__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.value-card { background: var(--c-surface); padding: 30px; }
.value-card__num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-accent);
}
.value-card__title {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: var(--fs-h3-value);
  color: var(--c-text);
  margin: 12px 0 8px;
}
.value-card__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-text-55);
}

/* =====================================================================
   DELATNOST
   ===================================================================== */
.fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.field-card { background: var(--c-bg-alt); padding: 32px 28px; }
.field-card__num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-accent);
}
.field-card__title {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: var(--fs-h3-field);
  color: var(--c-text);
  margin: 14px 0 10px;
}
.field-card__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-text-55);
}

/* =====================================================================
   REFERENCE
   ===================================================================== */
.refs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.refs__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--c-line-16);
  padding-bottom: 14px;
  margin-bottom: 6px;
}
.refs__country {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 20px;
  color: var(--c-text);
}
.refs__count {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--c-text-40);
}
.ref {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line-08);
}
.ref:last-child { border-bottom: 0; }
.ref__year {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 22px;
  color: var(--c-accent);
  width: 96px;
  flex: none;
}
.ref__object {
  display: block;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 16px;
  color: var(--c-text);
}
.ref__work {
  display: block;
  font-size: 13px;
  color: var(--c-text-50);
  margin-top: 3px;
}

/* =====================================================================
   SERTIFIKATI
   ===================================================================== */
.certs {
  display: flex;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.cert-card { background: var(--c-bg-alt); padding: 32px; flex: 1; }
.cert-card__code {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 22px;
  color: var(--c-text);
}
.cert-card__desc {
  font-size: 13.5px;
  color: var(--c-text-50);
  margin-top: 10px;
}

/* =====================================================================
   FOOTER / KONTAKT
   ===================================================================== */
.site-footer {
  padding: 80px 0 40px;
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-line-14);
  scroll-margin-top: var(--header-h);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
}
.footer__brand {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 20px;
  color: var(--c-text);
  margin-bottom: 14px;
}
.footer__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-40);
  margin-bottom: 14px;
}
.footer__text {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--c-text-55);
}
.footer__text--bright { color: var(--c-text-70); }
.footer__text a { text-decoration: none; transition: color .15s ease; }
.footer__text a:hover { color: var(--c-accent); }
.footer__bar {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--c-line);
  padding-top: 22px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--c-text-35);
}

/* =====================================================================
   IMAGE PLACEHOLDER (privremena mesta za fotografije)
   ===================================================================== */
.image-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 12px,
      transparent 12px, transparent 24px),
    var(--c-surface);
  border: 1px dashed var(--c-line-16);
}
.image-placeholder__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-40);
  text-align: center;
  padding: 8px 14px;
}
.image-placeholder--hero { border: 0; }

/* =====================================================================
   RESPONZIVNOST — tablet (< 1080px)
   ===================================================================== */
@media (max-width: 1080px) {
  :root { --pad-x: 40px; --section-y: 80px; --fs-hero: 48px; }
  .fields { grid-template-columns: repeat(2, 1fr); }
  .onama { gap: 48px; }
}

/* =====================================================================
   RESPONZIVNOST — mobilni (< 768px) — referenca: varijanta 2a
   ===================================================================== */
@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
    --section-y: 48px;
    --fs-hero: 32px;
    --fs-h2: 25px;
    --fs-stat: 26px;
    --fs-lead: 14.5px;
    --fs-body: 14px;
    --header-h: 65px;
  }

  /* Header */
  .site-header__inner { padding: 16px var(--pad-x); }
  .logo__mark { width: 32px; height: 32px; font-size: 16px; }
  .logo__word { font-size: 15.5px; }
  .logo__sub { display: none; }
  .hamburger { display: flex; }

  /* Mobilni meni — spušta se ispod headera */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 340px; }
  .nav__link {
    padding: 16px var(--pad-x);
    font-size: 15px;
    border-top: 1px solid var(--c-line-08);
  }

  /* Hero */
  .hero { padding: 52px 0 40px; }
  .hero__texture {
    background-image: repeating-linear-gradient(135deg,
      rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px,
      transparent 1px, transparent 40px);
  }
  .hero__inner { max-width: 100%; }
  .hero__title { margin: 14px 0 16px; }
  .hero__lead { font-size: var(--fs-lead); }
  .hero__stats {
    flex-direction: column;
    gap: 18px;
    margin-top: 32px;
    padding-top: 22px;
  }
  .stat {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .stat__label { text-align: right; }

  /* O firmi */
  .onama { grid-template-columns: 1fr; gap: 28px; }
  .onama__values { grid-template-columns: 1fr; }
  .value-card { padding: 22px; }
  .value-card__title { font-size: 16px; }

  /* Delatnost */
  .fields { grid-template-columns: 1fr; }
  .field-card { padding: 22px; }
  .field-card__title { font-size: 16.5px; }

  /* Reference */
  .refs { grid-template-columns: 1fr; gap: 36px; }
  .ref { gap: 16px; padding: 16px 0; }
  .ref__year { font-size: 15px; width: auto; }
  .ref__object { font-size: 14.5px; }

  /* Sertifikati */
  .certs { flex-direction: column; }

  /* Footer */
  .site-footer { padding: 44px 0 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer__bar { flex-direction: column; gap: 8px; }
}

/* Umanjen pokret za korisnike koji to preferiraju */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
