/* ============================================================
   ФОРТЭК / PHORTECH — phortech.ru
   Stil inspirisan sovacapital.com (Montserrat, belo + teal)
   ============================================================ */

/* ---------- Montserrat (self-hosted, latin + cyrillic) ---------- */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/montserrat-300-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/montserrat-300-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/montserrat-300-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-400-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-600-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-600-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Osnove ---------- */
:root {
  --akcenat: #a0915f;
  --akcenat-svetli: #b2a475;
  --tamna: #1c1d1a;
  --tekst: #2a2c29;
  --siva: #868382;
  --svetla-siva: #f4f5f6;
  --linija: #e6e8e9;
  --footer-bg: #14181d;
  --lako: cubic-bezier(.25, .1, .25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.85;
  color: var(--tekst);
  background: #fff;
  overflow-x: hidden;
}

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografija ---------- */
h1, h2, h3, h4 { font-weight: 400; line-height: 1.3; }

h2 {
  font-size: 27px;
  color: var(--akcenat);
  margin-bottom: 28px;
}

h3 { font-size: 19px; font-weight: 600; color: var(--tamna); margin-bottom: 10px; }

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--akcenat); text-decoration: none; transition: color .3s var(--lako); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--lako), box-shadow .35s var(--lako);
}
.header.skrolovan {
  background: rgba(16, 20, 24, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.nav {
  display: flex; align-items: center; gap: 34px;
  height: 76px;
}

.logo {
  display: flex; align-items: center; gap: 12px;
  margin-right: auto;
}
.logo img { height: 34px; width: auto; }
.logo span {
  font-size: 19px; font-weight: 600; letter-spacing: 3px; color: #fff;
}

.meni { display: flex; list-style: none; gap: 30px; }
.meni a {
  color: rgba(255, 255, 255, .85); font-size: 15px; font-weight: 400;
  padding: 6px 0; position: relative; white-space: nowrap;
}
.meni a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--akcenat);
  transition: width .3s var(--lako);
}
.meni a:hover, .meni a.aktivan { color: #fff; }
.meni a:hover::after, .meni a.aktivan::after { width: 100%; }

/* jezik */
.jezik { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.jezik a { color: rgba(255, 255, 255, .55); font-weight: 400; letter-spacing: 1px; }
.jezik a.aktivan { color: var(--akcenat); font-weight: 600; }
.jezik span { color: rgba(255, 255, 255, .25); }

/* search dugme — mala okrugla ikonica kao na sovi */
.btn-search {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; cursor: pointer; flex-shrink: 0;
  background-color: var(--akcenat);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.2' y2='16.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 15px;
  transition: transform .3s var(--lako), background-color .3s var(--lako);
}
.btn-search:hover { transform: scale(1.12); background-color: #b2a475; }

/* burger */
.burger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px; z-index: 210;
}
.burger span {
  display: block; width: 24px; height: 2px; background: #fff;
  transition: transform .3s var(--lako), opacity .3s var(--lako);
}
.burger.otvoren span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.otvoren span:nth-child(2) { opacity: 0; }
.burger.otvoren span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--tamna) url(../img/pozadina.jpg) center 30% / cover no-repeat;
  color: #fff;
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 18, .62), rgba(10, 14, 18, .38) 55%, rgba(10, 14, 18, .55));
}
.hero > .container { position: relative; z-index: 1; width: 100%; }

/* unutrašnje strane */
.hero-strana { min-height: 340px; padding-top: 76px; }
.hero-strana h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 300; letter-spacing: 1px;
}
.hero-strana .hero-crta {
  width: 54px; height: 2px; background: var(--akcenat); margin-top: 22px;
}

/* početna — slider (tekst centriran) */
.hero-slider { min-height: 92vh; padding-top: 76px; text-align: center; }
.hero-slider .tackice { justify-content: center; }
.slajdovi { position: relative; min-height: 140px; }
.slajd {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s var(--lako), transform .9s var(--lako);
  pointer-events: none;
}
.slajd.aktivan { opacity: 1; transform: none; pointer-events: auto; }
.slajd h1, .slajd .naslov {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 300; letter-spacing: 1px; line-height: 1.2;
}
.slajd .naslov b { font-weight: 600; color: var(--akcenat-svetli); }

.tackice { display: flex; gap: 10px; margin-top: 42px; }
.tackica {
  width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
  background: transparent; cursor: pointer; padding: 0;
  transition: background .3s var(--lako), transform .3s var(--lako);
}
.tackica.aktivna { background: var(--akcenat); border-color: var(--akcenat); transform: scale(1.25); }

/* ---------- Sekcije ---------- */
.sekcija { padding: 88px 0; }
.sekcija-siva { background: var(--svetla-siva); }

.uvod { max-width: 820px; font-size: 18px; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 34px; border-radius: 42px;
  border: 1px solid var(--akcenat);
  background: transparent; color: var(--akcenat);
  font-family: inherit; font-size: 15px; font-weight: 400;
  cursor: pointer;
  transition: all .3s var(--lako);
}
.btn:hover { background: var(--akcenat); color: #fff; }
.btn-pun { background: var(--akcenat); color: #fff; }
.btn-pun:hover { background: #b2a475; border-color: #b2a475; }

/* ---------- Liste (usluge) ---------- */
.lista {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 42px;
  max-width: 920px;
}
.lista li { position: relative; padding-left: 26px; }
.lista li::before {
  content: ''; position: absolute; left: 0; top: .72em;
  width: 14px; height: 2px; background: var(--akcenat);
}

/* ---------- Kartice ---------- */
.mreza { display: grid; gap: 26px; }
.mreza-2 { grid-template-columns: 1fr 1fr; }
.mreza-3 { grid-template-columns: repeat(3, 1fr); }

.kartica {
  background: #fff; border: 1px solid var(--linija); border-radius: 6px;
  padding: 30px;
  transition: transform .35s var(--lako), border-color .35s var(--lako), box-shadow .35s var(--lako);
}
.kartica:hover {
  transform: translateY(-5px);
  border-color: var(--akcenat);
  box-shadow: 0 16px 40px rgba(20, 24, 29, .07);
}

/* transport kartice sa slikom */
.kartica-slika { padding: 0; overflow: hidden; }
.kartica-slika img { width: 100%; aspect-ratio: 9 / 8.2; object-fit: cover; }
.kartica-slika .kartica-telo { padding: 26px 28px 30px; }

/* mini kartice (skladište) */
.kartica-mini h4 { font-size: 16px; font-weight: 600; color: var(--tamna); margin-bottom: 6px; }
.kartica-mini p { font-size: 15px; color: var(--siva); }

/* brend kartice */
.brend { display: flex; flex-direction: column; }
.brend .brend-logo {
  height: 96px; display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 20px;
}
.brend .brend-logo img { max-height: 76px; max-width: 200px; width: auto; object-fit: contain; }
.brend p { font-size: 15.5px; }

/* proces (o nas) */
.proces h3 { margin-top: 4px; }
.proces .broj {
  font-size: 13px; letter-spacing: 2px; color: var(--akcenat); font-weight: 600;
}

/* ---------- O nas ---------- */
.onas-red {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
}
.onas-red img { border-radius: 6px; }
.slika-siroka { border-radius: 6px; width: 100%; object-fit: cover; }

/* ---------- Kontakt ---------- */
.kontakt-ikona {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(160, 145, 95, .1); color: var(--akcenat);
  margin-bottom: 18px;
}
.kontakt-ikona svg { width: 20px; height: 20px; }
.kartica-kontakt h3 { font-size: 17px; }
.kartica-kontakt p { font-size: 15px; color: var(--siva); }
.kartica-kontakt a { font-weight: 400; }

.mapa { border: 1px solid var(--linija); border-radius: 6px; overflow: hidden; }
.mapa iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Forma (polja 1:1 kao na starom sajtu) ---------- */
.sekcija-forma h2 { text-align: center; margin-bottom: 46px; }
.forma-okvir { width: 100%; }
.polje { margin-bottom: 16px; }
.polje input, .polje textarea {
  width: 100%; border: 1px solid #dfe3e6; border-radius: 3px;
  background: #fff; padding: 13px 16px;
  font-family: inherit; font-size: 15.5px; font-weight: 300; color: var(--tekst);
  transition: border-color .3s var(--lako), box-shadow .3s var(--lako);
}
.polje input::placeholder, .polje textarea::placeholder { color: #9aa3a8; opacity: 1; }
.polje input:focus, .polje textarea:focus {
  outline: none; border-color: var(--akcenat);
  box-shadow: 0 0 0 3px rgba(160, 145, 95, .08);
}
.polje textarea { min-height: 200px; resize: vertical; }
.med { position: absolute; left: -6000px; opacity: 0; }

.btn-forma {
  display: inline-flex; align-items: center; justify-content: center;
  background: #101418; color: #fff; border: 1px solid #101418; border-radius: 3px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 16px 30px; cursor: pointer;
  transition: background .3s var(--lako), border-color .3s var(--lako);
}
.btn-forma:hover { background: var(--akcenat); border-color: var(--akcenat); }
.btn-forma:disabled { opacity: .6; cursor: default; }

.forma-poruka {
  display: none; margin-top: 22px; padding: 14px 20px; border-radius: 6px;
  font-size: 15px; font-weight: 400;
}
.forma-poruka.ok { display: block; background: rgba(160, 145, 95, .09); color: #81723e; border: 1px solid rgba(160, 145, 95, .35); }
.forma-poruka.greska { display: block; background: rgba(200, 60, 50, .07); color: #a03328; border: 1px solid rgba(200, 60, 50, .3); }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(255, 255, 255, .985);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: scale(1.03);
  transition: opacity .35s var(--lako), transform .35s var(--lako), visibility .35s;
}
.search-overlay.otvoren { opacity: 1; visibility: visible; transform: none; }
.search-forma { width: min(720px, 86vw); }
.search-forma input {
  width: 100%; border: none; border-bottom: 2px solid #d5d9db;
  font-family: inherit; font-size: clamp(26px, 4vw, 38px); font-weight: 300;
  padding: 10px 2px; color: var(--tamna); background: transparent;
  transition: border-color .3s var(--lako);
}
.search-forma input:focus { outline: none; border-color: var(--akcenat); }
.search-hint { margin-top: 16px; font-size: 14px; color: var(--siva); }
.search-close {
  position: absolute; top: 30px; right: 34px;
  width: 44px; height: 44px; border: none; background: none; cursor: pointer;
  color: var(--siva); transition: color .3s var(--lako), transform .3s var(--lako);
}
.search-close:hover { color: var(--tamna); transform: rotate(90deg); }
.search-close svg { width: 26px; height: 26px; }

/* ---------- Mobilni meni ---------- */
.mobilni-meni {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16, 20, 24, .97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--lako), visibility .35s;
}
.mobilni-meni.otvoren { opacity: 1; visibility: visible; }
.mobilni-meni a {
  color: rgba(255, 255, 255, .9); font-size: 24px; font-weight: 300; padding: 10px;
}
.mobilni-meni a.aktivan { color: var(--akcenat); }
.mobilni-meni .jezik { margin-top: 26px; font-size: 16px; }
.meni-close {
  position: absolute; top: 22px; right: 24px;
  width: 44px; height: 44px; border: none; background: none; cursor: pointer;
  color: rgba(255, 255, 255, .85);
  transition: color .3s var(--lako), transform .3s var(--lako);
}
.meni-close:hover { color: #fff; transform: rotate(90deg); }
.meni-close svg { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg); color: rgba(255, 255, 255, .78);
  padding: 64px 0 0; font-size: 15px;
}
.footer-red {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start;
  padding-bottom: 48px;
}
.footer .logo img { height: 44px; }
.footer h4 { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 18px; }
.footer p { margin-bottom: 8px; }
.footer a { color: var(--akcenat-svetli); }
.footer a:hover { color: #fff; }
.footer-dno {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0; font-size: 13px; color: rgba(255, 255, 255, .45);
}

/* ---------- Reveal (samo uz JS) ---------- */
html.js .otkrij { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--lako), transform .7s var(--lako); }
html.js .otkrij.vidljiv { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .meni { display: none; }
  .burger { display: flex; }
  .nav { gap: 18px; }
  .mreza-3 { grid-template-columns: 1fr 1fr; }
  .onas-red { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .sekcija { padding: 60px 0; }
  .hero-slider { min-height: 88vh; }
  .mreza-2, .mreza-3 { grid-template-columns: 1fr; }
  .lista { grid-template-columns: 1fr; }
  .footer-red { grid-template-columns: 1fr; gap: 26px; }
  .logo span { font-size: 16px; letter-spacing: 2px; }
  .logo img { height: 28px; }
}
