/* Asset Master — ceo CSS sajta.
   Breakpointi (isti kao na starom sajtu): 1366 / 1200 / 1024 / 921 (osnovna veličina fonta) / 880 / 767. */

:root {
  --black: #000;
  --text: #383838;
  --accent: #c3272c;
  --light: #e1e1e1;
  --dark: #45505b;
  --link: #a63034;
  --heading: #1e293b;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --poppins: "Poppins", sans-serif;
  --exo: "Exo 2", sans-serif;
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: #334155;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1.75em; }
ul { margin: 0 0 1.5em 3em; padding: 0; list-style: disc; }
b, strong { font-weight: 700; }
a { color: #046bd2; text-decoration: none; }
img { max-width: 100%; height: auto; border: 0; }
::selection { background: #046bd2; color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Widget: svaki blok u koloni (razmak 20 px, poslednji bez razmaka). */
.w { position: relative; width: 100%; margin: 0 0 20px; }
.w:last-child { margin-bottom: 0; }

/* Tekst blokovi */
.txt { font-family: var(--exo); font-weight: 400; color: var(--black); }
.txt p:last-child { margin-bottom: 0; }

/* ---------- Izbor jezika ---------- */
.lang { position: relative; z-index: 9999; overflow: hidden; padding: 7px; border: 1px solid transparent; }
.lang__list { display: flex; margin: 0; padding: 0; list-style: none; }
.lang__list li { margin: 0; padding: 0; }
.lang__link { display: block; padding: 5px 10px 6px; line-height: 1; color: var(--black); }
.lang__flag { display: inline; vertical-align: middle; width: 35px; height: auto; }

/* ---------- Zaglavlje (hero) ---------- */
.hero { position: relative; margin-top: -45px; padding-bottom: 200px; background: var(--light); }
.hero__bg {
  position: absolute; inset: 0;
  background: #000 url(../img/hero-bg.webp) center center / cover no-repeat;
  opacity: .05;
}
.hero__shape { position: absolute; left: 0; bottom: -1px; width: 100%; overflow: hidden; line-height: 0; direction: ltr; }
.hero__shape svg {
  display: block; position: relative; left: 50%; transform: translateX(-50%);
  width: calc(100% + 1.3px); height: 55px; fill: #fff;
}
.hero__box { position: relative; display: flex; max-width: 1000px; margin: 0 auto; }
.hero__col {
  display: flex; flex-wrap: wrap; align-content: center; align-items: center;
  width: 100%; margin-top: 20px; padding: 10px;
}

.logo { line-height: 0; }
.logo a { display: inline-block; vertical-align: top; }
.logo img { display: block; }
.logo--hero { text-align: center; }
/* Visina logoa prati sličicu koju je stari sajt učitavao na datoj širini (1200/1024/768 px varijanta),
   da raspored ispod ostane identičan do na delić piksela. */
.logo--hero img { width: 300px; aspect-ratio: 1200 / 279; }
@media (max-width: 1024px) { .logo--hero img { aspect-ratio: 1024 / 238; } }
@media (max-width: 768px) { .logo--hero img { aspect-ratio: 768 / 179; } }
.logo--small { text-align: left; }
.logo--small img { width: 90px; aspect-ratio: 836 / 787; }

.menu__list { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.menu__link {
  display: block; padding: 15px;
  font-family: var(--poppins); font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: 1.2px;
  color: var(--black);
}
.menu__link:hover, .menu__link:focus { color: var(--accent); }

.hero__title { padding: 50px 50px 0; text-align: center; }
.hero__title h1 { font-family: var(--poppins); font-size: 25px; font-weight: 700; line-height: 60px; color: var(--black); }
.hero__text { padding: 50px 50px 0; color: var(--text); }

/* ---------- Naslovi sekcija ---------- */
.shead { margin-top: 100px; }
.shead__box { max-width: 1600px; margin: 0 auto; padding: 10px; }
.shead .w { margin-bottom: 8px; }
.shead .w:last-child { margin-bottom: 0; }
.shead .kicker, .shead .stitle { text-align: center; }

.kicker {
  font-family: var(--poppins); font-size: 12px; font-weight: 600; line-height: 1.3em; letter-spacing: 1.5px;
  color: var(--black);
}
.kicker--accent { color: var(--accent); }
.stitle { font-family: var(--poppins); font-size: 45px; font-weight: 800; line-height: 1.3em; color: var(--black); }

/* ---------- Usluge (harmonika) ---------- */
.svc { margin: 50px 0; padding: 0 50px; }
.svc__box { max-width: 1600px; margin: 0 auto; }
.svc__col { padding: 10px; }

.tg { text-align: left; }
.tg__item { display: block; }
.tg__title {
  display: block; list-style: none; cursor: pointer;
  padding: 15px; border-bottom: 1px solid var(--accent);
  font-family: var(--sans); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--heading);
}
.tg__title::-webkit-details-marker { display: none; }
.tg__title::marker { content: ""; }
.tg__label {
  display: inline; margin: 0;
  font-family: var(--poppins); font-size: 30px; font-weight: 600; line-height: 1; color: var(--black);
}
.tg__icon { float: right; display: inline-block; width: 1em; }
.tg__icon .ico { display: block; width: .625em; height: 1em; margin: 1px 0 0 auto; fill: var(--accent); }
.tg__icon .ico-angle-up { display: none; margin-top: 0; }
.tg__item.is-open > .tg__title { border-bottom: 0; }
.tg__item.is-open > .tg__title .tg__label { color: var(--accent); }
.tg__item.is-open > .tg__title .ico-angle-down { display: none; }
.tg__item.is-open > .tg__title .ico-angle-up { display: block; }
.tg__content {
  padding: 15px; border-bottom: 1px solid var(--accent);
  font-family: var(--exo); font-weight: 400; color: var(--black);
}
.tg__content.is-animating { overflow: hidden; }
.tg__content h4 { font-family: var(--exo); font-size: 1.625rem; font-weight: 600; line-height: 1.3em; color: var(--heading); }

/* Bez JS-a (ili pre nego što se učita) stanje prati sam [open] atribut. */
html:not(.js) .tg__item[open] > .tg__title { border-bottom: 0; }
html:not(.js) .tg__item[open] > .tg__title .tg__label { color: var(--accent); }
html:not(.js) .tg__item[open] > .tg__title .ico-angle-down { display: none; }
html:not(.js) .tg__item[open] > .tg__title .ico-angle-up { display: block; }

/* ---------- Dvokolonske sekcije ---------- */
.split { display: flex; }
.split--arch { margin-top: 100px; }
.split__col {
  display: flex; flex-wrap: wrap; align-content: center; align-items: center;
  width: 50%; padding: 50px;
}
.split__col--dark { padding: 100px 50px; background: var(--dark); }
.split__col--dark > .w:last-child { margin-bottom: 20px; }
.split__col--dark .txt { color: #fff; }
.split__col--end .kicker, .split__col--end .big { text-align: right; }

.spacer { height: 50px; }
.big { font-family: var(--poppins); font-size: 55px; font-weight: 800; line-height: 1.3em; color: var(--accent); }
.split .big { margin-bottom: 30px; }

/* Stavka sa ikonicom */
.ibox { display: flex; align-items: center; gap: 25px; text-align: left; }
.ibox__icon { display: inline-block; flex: 0 0 auto; line-height: 0; }
.ibox__ring {
  display: inline-block; padding: .5em; border: 3px solid var(--accent); border-radius: 50%;
  font-size: 25px; line-height: 1; color: var(--accent);
}
.ibox__ring .ico { display: block; width: 1em; height: 1em; fill: currentColor; }
.ibox__text { flex-grow: 1; width: 100%; margin: 0; font-family: var(--exo); font-weight: 400; color: #fff; }

/* ---------- Kontakt ---------- */
.contact { margin-top: 200px; }
.contact__box { display: flex; align-items: center; min-height: 422px; }
.contact__col {
  position: relative; display: flex; flex-wrap: wrap; align-content: center; align-items: center;
  width: 100%; padding: 50px; background: var(--light);
}
.contact__col::before {
  content: ""; position: absolute; inset: 0;
  background: url(../img/hero-bg.webp) center center / cover no-repeat;
  opacity: .05;
}
.contact__col > .w { margin-bottom: 0; }
.contact__title {
  width: 96.364%; max-width: 96.364%;
  font-family: var(--poppins); font-size: 45px; font-weight: 700; line-height: 1.3em; color: var(--black);
}
.contact__lead { color: var(--text); }
.contact__text { padding-top: 50px; }
.contact__info { margin-top: 20px; padding-left: 20px; border-left: 3px solid; }
.contact__info address { font-style: normal; }
.contact__info a, .contact__info a:visited, .contact__info a:hover { color: var(--link); }
.contact__info a.tel { color: inherit; }

/* ---------- Dugme "nazad na vrh" ---------- */
.to-top {
  display: none; position: fixed; right: 30px; bottom: 30px; z-index: 99;
  width: 2.1em; height: 2.1em; padding: 0; border: 0; border-radius: 2px;
  background: #c2272c; color: #fff;
  font-family: inherit; font-size: 20px; line-height: 2.1; text-align: center; cursor: pointer;
}
.to-top.is-visible { display: block; }
.to-top:hover { background: #da1e25; }
.to-top svg { vertical-align: middle; width: 1.6em; height: .6em; fill: currentColor; transform: translate(0, -20%) rotate(180deg); }

/* ---------- Strana "nije pronađeno" (404/410) ---------- */
.nf { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 50px 25px; background: var(--light); text-align: center; }
.nf__bg {
  position: absolute; inset: 0;
  background: #000 url(../img/hero-bg.webp) center center / cover no-repeat;
  opacity: .05;
}
.nf__box { position: relative; max-width: 640px; }
.nf__logo { display: inline-block; line-height: 0; }
.nf__logo img { width: 300px; aspect-ratio: 1200 / 279; }
.nf__code { margin: 40px 0 0; font-family: var(--poppins); font-size: 90px; font-weight: 800; line-height: 1; color: var(--accent); }
.nf__title { margin-top: 15px; font-family: var(--poppins); font-size: 32px; font-weight: 800; line-height: 1.3em; color: var(--black); }
.nf__text { margin: 15px 0 30px; font-family: var(--exo); color: var(--text); }
.nf__btn {
  display: inline-block; padding: 12px 28px; border-radius: 2px; background: var(--accent); color: #fff;
  font-family: var(--poppins); font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: 1.2px;
}
.nf__btn:hover, .nf__btn:focus { background: #da1e25; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1366px) {
  .hero { padding-bottom: 100px; }
  .hero__shape svg { height: 30px; }
  .svc__box { max-width: 1150px; }
}

@media (max-width: 1200px) {
  .svc__box { max-width: 1000px; }
  .stitle, .big { font-size: 35px; }
  .ibox__ring { font-size: 20px; }
  .ibox__text { font-size: 13px; }
}

@media (max-width: 1024px) {
  .hero__shape svg { height: 20px; }
  .svc__box { max-width: 750px; }
  .split { flex-wrap: wrap; }
  .split__col { width: 100%; }
  .split--rev > .split__col:first-child { order: 10; }
  .split__col--head .kicker, .split__col--head .big { text-align: center; }
  .ibox__ring { font-size: 22px; }
  .ibox__text { font-size: 15px; }
}

@media (max-width: 921px) {
  html { font-size: 91.2%; }
  .tg__title { font-size: 25px; }
  .tg__content h4 { font-size: 20px; }
  .to-top svg { width: 1em; height: .85em; }
}

@media (max-width: 880px) {
  .hero__title h1 { line-height: 38px; }
  .svc__box { max-width: 650px; }
  .split--arch { margin-top: 0; }
  .split--arch .spacer { height: 0; }
}

@media (max-width: 767px) {
  .lang { margin-left: 20px; }
  .lang__flag { width: 25px; }

  .logo--hero { padding-top: 20px; }
  .menu__link { font-size: 12px; }
  .hero__title { padding: 30px 25px 0; }
  .hero__title h1 { font-size: 20px; line-height: 1.5em; }
  .hero__text { padding: 30px 25px 0; }
  .hero__shape svg { height: 15px; }

  .shead { padding: 0 25px; }
  #our-services { margin-top: 80px; }
  .stitle { font-size: 32px; }

  .svc { margin: 0; padding: 0 25px; }
  .svc__col { margin-top: 50px; padding: 0; }
  .tg__title { padding: 12px; }
  .tg__label { font-size: 25px; }
  .tg__content { padding: 12px 10px; }

  .split { padding: 0 25px; }
  .split--arch { margin-top: 50px; }
  .split__col--head { padding: 0 0 20px; }
  .split--arch .split__col--head { padding: 0; }
  .split__col--dark { padding: 50px 25px; }
  .split__col--dark .txt { text-align: center; }
  .big { font-size: 34px; }

  .ibox { flex-direction: column; align-items: stretch; text-align: center; }

  .contact__col { padding: 50px 25px 100px; }
  .contact__title { font-size: 38px; }
  .contact__text { padding: 50px 10px 0; }
  .contact__info { width: calc(100% - 20px); margin: 20px 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
