/* Eko Lab – stilovi sajta. Boje i fontovi prema knjizi grafičkih standarda (v1.0). */
:root {
  --green-dark: #004E1A;   /* Tamnozelena – EKO, naslovi */
  --green: #4E9900;        /* Zelena – LAB, akcenti */
  --green-deep: #003314;   /* Duboka zelena – tamne podloge */
  --green-light: #7CC60A;  /* Svetla zelena */
  --graphite: #1F2326;     /* Tekst */
  --light: #F2F4EF;        /* Svetle podloge */
  --line: #DCE3D8;
  --muted: #5A635C;
  --b1: #05811A; --b2: #2E8C12; --b3: #B8C203; --b4: #F4B002; --b5: #F57E02;
  --pad: max(5vw, 16px);
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 20px; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 Nunito, system-ui, sans-serif; color: var(--graphite); background: #fff; overflow-x: clip; }
h1, h2, h3 { font-family: 'Varela Round', system-ui, sans-serif; font-weight: 400; color: var(--green-dark); }
h1 { margin: 0; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; text-wrap: balance; }
h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; text-wrap: balance; }
h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
a { color: var(--green-dark); }
a:hover { color: var(--green-deep); }
img { max-width: 100%; }
i { font-style: italic; }
.wrap { max-width: 1240px; margin: 0 auto; }
.band { padding: clamp(48px, 6vw, 96px) var(--pad); }
.band-top0 { padding-top: 0; }
.band-tight { padding-top: clamp(16px, 3vw, 40px); }
.band-soft { background: var(--light); }
.sub { margin: 12px 0 32px; max-width: 64ch; }
.lead { margin: 20px 0 0; max-width: 60ch; font-size: 18px; }
.kicker { margin: 0 0 14px; color: #2E6B00; font-weight: 800; font-size: 15px; }
.muted { color: var(--muted); font-size: 16px; }
.small { font-size: 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--b4); outline-offset: 2px; }

/* Dugmad */
.btn { display: inline-block; background: var(--green-dark); color: #fff !important; text-decoration: none; font: inherit; font-weight: 800; padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer; }
.btn:hover { background: var(--green-deep); }
.btn-light { background: #fff; color: var(--green-dark) !important; border: 1px solid #C9D3C4; }
.btn-light:hover { background: var(--light); }
.btn-white { background: #fff; color: var(--green-dark) !important; }
.btn-white:hover { background: var(--light); }
.strong-link { font-weight: 800; }

/* Traka u 5 boja */
.stripe { display: grid; grid-template-columns: repeat(5, 1fr); height: 8px; }
.stripe.thin { height: 6px; }
.stripe i:nth-child(1) { background: var(--b1); } .stripe i:nth-child(2) { background: var(--b2); }
.stripe i:nth-child(3) { background: var(--b3); } .stripe i:nth-child(4) { background: var(--b4); }
.stripe i:nth-child(5) { background: var(--b5); }

/* Gornja traka */
.topbar { background: var(--green-deep); color: #E6EEE4; font-size: 14px; padding: 8px var(--pad); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: center; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-info, .topbar-contact { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; }
.lang { display: flex; gap: 4px; }
.lang a { display: flex; align-items: center; gap: 6px; font-weight: 700; padding: 2px 8px; border-radius: 6px; color: #E6EEE4; }
.lang a.on { background: #1E5233; color: #fff; font-weight: 800; }

/* Zaglavlje i meni */
.site-header { padding: 18px var(--pad); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; border-bottom: 1px solid #E3E8E0; }
.logo img { height: 48px; width: auto; display: block; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-weight: 700; font-size: 16px; }
.menu a { color: var(--graphite); text-decoration: none; }
.menu a[aria-current="page"] { color: var(--green-dark); box-shadow: inset 0 -3px var(--green); }
.menu a.btn { color: #fff; padding: 11px 20px; }
.burger { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid #C9D3C4; border-radius: 12px; background: #fff; cursor: pointer; }

/* Početna – vrh */
.hero { background: var(--light); padding: clamp(40px, 6vw, 88px) var(--pad) 0; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 64px; }
.hero-text { flex: 1 1 480px; padding-bottom: clamp(40px, 6vw, 88px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.bars { flex: 1 1 380px; display: flex; justify-content: center; align-items: flex-end; gap: 18px; height: 320px; }
.bars i { width: 58px; border-radius: 29px 29px 0 0; }
.bars i:nth-child(1) { height: 52%; background: linear-gradient(#2A9A0A, #035E1E); }
.bars i:nth-child(2) { height: 100%; background: linear-gradient(#46A300, #036922); }
.bars i:nth-child(3) { height: 82%; background: linear-gradient(#E8D402, #4D9801); }
.bars i:nth-child(4) { height: 66%; background: linear-gradient(#FEC302, #E98501); }
.bars i:nth-child(5) { height: 40%; background: linear-gradient(#FD9A02, #EE6D01); }

/* Akreditacioni znakovi: ILAC uvek levo od ATS, iste visine, originalne boje na beloj podlozi */
.badges { display: flex; align-items: center; gap: 14px; }
.badges img { width: auto; display: block; }
.badges-big { display: inline-flex; gap: 16px; margin-top: 26px; background: #fff; border-radius: 16px; padding: 16px 18px; border: 1px solid var(--line); }
.badges-big img { height: 150px; }
.badges-box { background: #fff; border-radius: 14px; padding: 10px 12px; border: 1px solid var(--line); gap: 8px; }
.badges-footer { background: #fff; border-radius: 12px; padding: 10px 12px; gap: 10px; align-self: flex-start; }
.accr-strip { padding: 28px var(--pad); border-bottom: 1px solid #E3E8E0; }
.accr-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.accr-grid p { margin: 0; flex: 1 1 420px; max-width: 68ch; }

/* Odeljenja */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.dep-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.dep-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: 6px solid; }
.dep-icon { margin: -32px 0 0 30px; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; position: relative; }
.dep-card h3 { margin: 16px 30px 10px; font-size: 23px; }
.dep-card p { margin: 0 30px 28px; font-size: 16px; }

/* Šta ispitujemo – kartice na početnoj */
.grid-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile { text-decoration: none; color: var(--graphite); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s; }
.tile:hover { color: var(--graphite); box-shadow: 0 6px 20px rgba(0, 51, 20, .12); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-bottom: 6px solid; }
.tile-body { padding: 18px 20px 22px; font-size: 15px; }
.tile-body strong { display: block; font: 400 22px/1.25 'Varela Round', sans-serif; color: var(--green-dark); margin-bottom: 4px; }
.more { display: inline-block; margin-top: 24px; }

/* Dokumenti */
.docs-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.docs-grid > div:first-child { flex: 1 1 340px; }
.docs-grid .sub { max-width: 52ch; margin-bottom: 0; }
.doc-list { flex: 1 1 520px; display: flex; flex-direction: column; gap: 10px; }
.doc { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 14px; padding: 16px 20px; text-decoration: none; color: var(--graphite); border: 1px solid var(--line); }
.doc:hover { color: var(--graphite); border-color: #A9BBA3; }
.doc-tag { flex: none; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 4px 7px; color: var(--green-dark); background: #fff; }
.doc-tag.pdf { color: #fff; background: #B3261E; }
.doc-text { flex: 1 1 auto; display: flex; flex-direction: column; }
.doc-text strong { font-weight: 700; }
.doc-text span { font-size: 14px; color: var(--muted); }
.doc-act { flex: none; font-weight: 800; color: var(--green-dark); }
.doc-ats { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.doc-ats:hover { color: #fff; background: var(--green-deep); }
.doc-ats .doc-text span { color: #DCE8D8; }
.doc-ats .doc-act { color: #fff; }

/* Kontakt i forma */
.contact-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.contact-grid > div { flex: 1 1 380px; }
.contact-list { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; font-size: 16px; }
.contact-list dt { font-weight: 800; color: var(--green-dark); }
.contact-list dd { margin: 0; }
.phones { display: flex; flex-direction: column; }
.phones a, .contact-list a { color: var(--graphite); text-decoration: none; white-space: nowrap; }
.map { margin-top: 24px; height: 280px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #EAEFE6; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { display: inline-block; margin-top: 10px; font-size: 15px; }
.quote { flex: 1 1 460px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-self: flex-start; }
.quote h3 { grid-column: 1 / -1; margin: 0; font-size: 24px; }
.quote label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.quote input[type=text], .quote input[type=email], .quote input[type=tel], .quote textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #C9D3C4; border-radius: 10px; font-weight: 400; }
.quote textarea { resize: vertical; }
.quote .full, .quote fieldset, .alert { grid-column: 1 / -1; }
.quote fieldset { border: 0; margin: 0; padding: 0; }
.quote legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 15px; }
.quote legend span { font-weight: 400; color: var(--muted); }
.full-start { grid-column: 1 / -1; justify-self: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border-radius: 999px; border: 1px solid #C9D3C4; background: #fff; font-weight: 700; font-size: 15px; }
.chip input:checked + span { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.chip input:checked + span::before { content: '✓ '; white-space: pre; }
.chip input:focus-visible + span { outline: 3px solid var(--b4); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.alert { margin: 0; padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.alert.ok { background: #E6F4DC; color: #1E5233; }
.alert.err { background: #FDECEA; color: #8C1D18; }

/* Podstranice */
.page-hero { background: var(--light); padding: clamp(32px, 5vw, 72px) var(--pad); }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 50px); }
.crumbs { margin: 0 0 16px; font-size: 15px; }
.crumbs span { color: var(--muted); }
.page-hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.page-hero-grid > div:first-child { flex: 1 1 520px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pills a { background: #fff; border: 1px solid #C9D3C4; border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 700; font-size: 15px; }
.group { padding-top: 24px; }
.group h2 { font-size: clamp(24px, 2.6vw, 32px); }
.group .muted { margin: 4px 0 20px; }
.grid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-bottom: 28px; }
.item { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-bottom: 6px solid; }
.item div { padding: 20px 22px 24px; }
.item h3 { font-size: 20px; }
.item p { margin: 0; font-size: 16px; }
.cta { background: var(--green-dark); color: #fff; border-radius: 20px; padding: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.cta h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.cta p { margin: 0; color: #DCE8D8; }
.cta p a { color: #fff; }

/* O nama */
.about-hero > div:first-child { flex: 1 1 460px; }
.lab-photo { flex: 1 1 440px; aspect-ratio: 16 / 10; border-radius: 20px; object-fit: cover; border-bottom: 8px solid var(--b2); }
.placeholder { background: #E3E8E0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #4A534C; font-size: 15px; }
.story-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.story { flex: 1 1 520px; }
.story h3 { margin-top: 28px; }
.story p { margin: 0 0 16px; max-width: 64ch; }
.ekolab { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.ekolab div { flex: 1 1 220px; background: var(--light); border-radius: 16px; padding: 18px 20px; font-size: 16px; }
.ekolab strong { display: block; font: 400 30px/1 'Varela Round', sans-serif; color: var(--green-dark); margin-bottom: 4px; }
.ekolab strong.lab { color: #2E7A00; }
.timeline { list-style: none; margin: 36px 0 0; padding: 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline .dot { position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; border: 3px solid #fff; }
.timeline strong { display: block; font: 400 22px/1.3 'Varela Round', sans-serif; color: var(--green-dark); }
.cert { flex: 1 1 340px; margin: 0; align-self: flex-start; }
.cert-box { background: var(--light); border-radius: 20px; padding: 24px; }
.cert-box img { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); transform: rotate(-1.5deg); }
.cert figcaption { margin-top: 12px; font-size: 15px; color: #4A534C; }
.archive-photo { margin-top: 28px; width: 100%; aspect-ratio: 4 / 3; border-radius: 20px; object-fit: cover; display: flex; }
.cert .muted { margin: 10px 0 0; font-size: 15px; }
.grid-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.value { background: #fff; border-radius: 18px; padding: 24px; border-top: 6px solid; }
.value h3 { font-size: 20px; }
.value p { margin: 0; font-size: 16px; }
.grid-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.person { margin: 0; }
.person-photo { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; border-bottom: 6px solid; }
.person-img { width: 100%; height: 100%; object-fit: cover; display: flex; }
.person figcaption { margin-top: 12px; }
.person strong { display: block; font-size: 18px; }
.person span { font-size: 15px; color: var(--muted); }
.team-photo { margin-top: 28px; width: 100%; aspect-ratio: 21 / 8; border-radius: 20px; object-fit: cover; display: flex; }

/* Podnožje */
.site-footer { background: var(--green-deep); color: #D5E0D2; padding: 48px var(--pad) 28px; font-size: 15px; line-height: 1.8; }
.site-footer a { color: #D5E0D2; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; }
.footer-brand, .footer-company { flex: 1 1 280px; }
.footer-brand img { height: 52px; width: auto; display: block; }
.footer-brand p { margin: 12px 0 0; }
.footer-company strong { color: #fff; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid #1E5233; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }

/* Telefon i manji ekrani */
@media (max-width: 820px) {
  .topbar-info { display: none; }
  .burger { display: flex; }
  .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; font-size: 18px; }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; border-bottom: 1px solid #EEF1EC; }
  .menu a[aria-current="page"] { box-shadow: none; color: var(--green-dark); }
  .menu a.btn { margin-top: 10px; text-align: center; border: 0; }
  .quote { grid-template-columns: minmax(0, 1fr); }
  .bars { height: 220px; gap: 12px; }
  .bars i { width: 44px; }
  .badges-big img { height: 110px; }
}
@media (max-width: 420px) {
  .badges-big img { height: 92px; }
  .contact-list { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .contact-list dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
