/* LMS – opcija 2 (stil: Last Minute Solution – bela/tamnoplava + zlatni akcenat, tanak sans)
   Paleta i razmaci su CSS promenljive u :root. */

:root {
  --navy: #0f2a4a;
  --navy-deep: #0a1f38;
  --gold: #b8935a;
  --gold-dark: #9d7b46;
  --ink: #14233a;
  --text: #4a5a70;
  --line: #e2e6ec;
  --bg: #f4f5f7;
  --white: #fff;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 80px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

h1, h2, h3 { color: var(--navy); font-weight: 600; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; margin-bottom: 22px; }

.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow-light { color: #dbe3ee; }
.subhead { font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--gold-dark); margin: 0 0 14px; }
.subhead-light { color: #e3c48e; }
.rule { display: block; width: 44px; height: 2px; background: var(--gold); }

/* Dugmad */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 26px; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  font: 500 15px/1 var(--font); transition: background .2s, color .2s, border-color .2s;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline { background: transparent; color: var(--gold-dark); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-sm { padding: 12px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 24px; margin-left: 12px; }
.main-nav a { position: relative; white-space: nowrap; font-size: 14px; font-weight: 400; color: var(--ink); padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { font-weight: 600; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.lang-switch button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--text); padding: 4px 0; cursor: pointer; border-bottom: 2px solid transparent; }
.lang-switch button.is-active { color: var(--navy); border-color: var(--gold); }
.lang-switch button:hover { color: var(--navy); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; background: var(--navy-deep); }
.hero-bg { position: absolute; inset: 0; background: 50% 78% / cover no-repeat; /* slika dolazi iz administracije (inline background-image) */ }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,31,56,.82) 0%, rgba(10,31,56,.58) 32%, rgba(10,31,56,.12) 58%, rgba(10,31,56,0) 76%); }
.hero-inner { position: relative; padding-top: 56px; padding-bottom: 60px; }
.hero-badge { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 8px 20px 8px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(4px); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .01em; line-height: 1.2; }
.hero-badge .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); border: 2px solid rgba(255,255,255,.75); box-shadow: 0 0 0 5px rgba(255,255,255,.14); margin: 0 2px 0 4px; }
.hero h1 { font-size: clamp(32px, 4.9vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -.025em; color: #fff; margin-bottom: 20px; }
.hero .rule { margin-bottom: 22px; }
.hero-lead { font-size: clamp(17px, 1.6vw, 21px); font-weight: 300; color: #f1f4f8; line-height: 1.5; max-width: 460px; margin: 0; }

.hero-text { font-size: 16px; font-weight: 300; color: #e6ebf2; line-height: 1.65; max-width: 540px; margin: 22px 0 0; }
.hero-text strong { font-weight: 600; color: #fff; }

/* Sekcije */
.section { padding: 68px 0; }

/* Transportni upit */
.tone-grey { background: var(--bg); --card-bg: #fff; }
.tone-white { background: var(--white); --card-bg: var(--bg); }
.enq-grid { display: grid; grid-template-columns: 1fr 1fr; }
.enq-cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; display: flex; flex-direction: column; min-height: 600px; }
.enq-cta-text { position: relative; z-index: 1; padding: 48px 48px 32px max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.enq-cta h2 { color: #fff; }
.enq-lead { max-width: 480px; margin: 14px 0 26px; color: rgba(255,255,255,.82); }
.enq-box { border: 1px solid rgba(184,147,90,.6); border-radius: 4px; background: rgba(255,255,255,.05); transition: border-color .2s; }
.enq-box:hover, .enq-box:focus-within { border-color: var(--gold); }
.enq-toggle {
  display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; padding: 18px 20px;
  border: 0; border-radius: 4px; background: transparent; color: #fff; font: inherit; text-align: center; cursor: pointer;
}
.enq-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.enq-toggle-label { display: inline-grid; font-size: 17px; text-align: right; font-weight: 600; letter-spacing: .01em; }
.enq-toggle-label > span { grid-area: 1 / 1; }
.enq-toggle .lbl-close, .enq-toggle[aria-expanded="true"] .lbl-open { visibility: hidden; }
.enq-toggle[aria-expanded="true"] .lbl-close { visibility: visible; }
.enq-toggle-arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); transition: background .2s, color .2s, transform .35s;
  animation: enq-bob 1.8s ease-in-out infinite;
}
.enq-toggle-arrow .ico { width: 24px; height: 24px; stroke-width: 1.75; }
.enq-toggle:hover .enq-toggle-arrow, .enq-toggle:focus-visible .enq-toggle-arrow { background: var(--gold); color: var(--navy); }
.enq-toggle[aria-expanded="true"] .enq-toggle-arrow { animation: none; }
@keyframes enq-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.enq-photo { position: absolute; left: 0; right: 0; bottom: 0; height: 430px; margin: 0; z-index: 0; }
.enq-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.enq-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--navy) 0%, rgba(15,42,74,.35) 40%, rgba(15,42,74,0) 100%); }
.enq-photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--navy); opacity: 0; transition: opacity .45s ease; }
.enq-cta.is-open .enq-photo::after { opacity: .84; }
.enq-intro { align-self: start; padding: 48px max(var(--gutter), calc((100vw - var(--container)) / 2)) 48px 64px; }
.enq-intro h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; margin-bottom: 20px; }
.enq-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 24px; }
.enq-checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.enq-checks .chk { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(184,147,90,.16); color: var(--gold-dark); }
.enq-checks .chk .ico { width: 15px; height: 15px; stroke-width: 2.2; }
.enq-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.enq-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 12px 18px; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); box-shadow: 0 8px 22px rgba(15,42,74,.07); transition: transform .3s ease, box-shadow .3s ease; }
.enq-step:hover { transform: scale(1.07); z-index: 1; box-shadow: 0 16px 34px rgba(15,42,74,.16); }
.enq-step-num { position: absolute; top: 8px; left: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--gold-dark); }
.enq-step img { width: 88px; height: 88px; }
.enq-step-label { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.enq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.enq-panel-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .45s; }
.enq-panel.is-open .enq-panel-inner { visibility: visible; transition-delay: 0s; }
.enq-panel.is-open { grid-template-rows: 1fr; }
.enq-panel-body { padding: 4px 22px 24px; }
.enq-cta .field > span { color: rgba(255,255,255,.9); }
.enq-cta .btn-navy { background: var(--gold); color: var(--navy); }
.enq-cta .btn-navy:hover { background: #c9a56c; }
.enq-cta .enq-note { color: rgba(255,255,255,.65); }
.enq-cta .enq-error { color: #ff9b94; }
.enq-cta .enq-done h3 { color: #fff; }
.enq-cta .enq-done p { color: rgba(255,255,255,.85); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .enq-panel, .enq-toggle-arrow, .enq-step { transition: none; animation: none; } .enq-step:hover { transform: none; } }
.enq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 14px; }
.field { display: block; }
.ff, .enq-actions { grid-column: 1 / -1; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 10px 14px; border: 1px solid #d3d9e2; border-radius: var(--radius);
  background: #fff; color: var(--ink); font: 400 15px var(--font); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,147,90,.18); }
.field textarea { resize: vertical; min-height: 72px; }
.field input.is-invalid, .field textarea.is-invalid { border-color: #d9534f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enq-note { margin: 0; font-size: 13px; color: #6b7a8f; }
.enq-error { margin: 12px 0 0; font-size: 14px; color: #c0392b; }
.enq-done { padding: 12px 0; }
.enq-done h3 { font-size: 32px; margin-bottom: 10px; }
.enq-done p { max-width: 520px; margin-bottom: 22px; }

/* O nama */
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.about-mission { margin-top: 24px; padding-left: 18px; border-left: 2px solid var(--gold); font-weight: 500; color: var(--ink); }

/* Transport */
.transport-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 48px; }
.transport-head h2 { margin-bottom: 0; }
.section-lead { margin: 0; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 48px; }
.mode { position: relative; }
.mode + .mode::before { content: ""; position: absolute; left: -24px; top: 0; bottom: 0; width: 1px; background: #d7dce4; }
.mode-photo { margin-bottom: 22px; }
.mode-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.pos-sea { object-position: 50% 58%; }
.mode-ico { width: 34px; height: 34px; color: var(--navy); margin-bottom: 10px; stroke-width: 1.3; }
.mode h3 { font-size: 20px; margin-bottom: 4px; }
.mode-tag { font-size: 14px; font-weight: 600; color: var(--gold-dark); margin-bottom: 10px; }
.mode p:last-child { margin: 0; font-size: 14.5px; line-height: 1.65; }

/* Multimodalni */
.multimodal { color: #cfd9e6; padding: 64px 0; background: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.6px) 0 0 / 18px 18px, var(--navy); }
.multimodal-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.multimodal h2 { color: #fff; }
.multimodal-cols { display: grid; grid-template-columns: 1fr 1fr; }
.multimodal-cols p { margin: 0; padding: 0 32px; }
.multimodal-cols p:first-child { padding-left: 0; }
.multimodal-cols p + p { border-left: 1px solid rgba(255,255,255,.2); padding-right: 0; }

/* Naš pristup */
.approach-photo { margin: 0; align-self: stretch; min-height: 420px; position: relative; }
.approach-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.approach-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }

/* Opasna roba */
.danger-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.danger-lead { max-width: 600px; margin-bottom: 26px; }
.danger-card { display: flex; gap: 18px; padding: 22px 24px; margin-bottom: 14px; background: var(--card-bg, var(--bg)); border: 1px solid var(--line); border-radius: var(--radius); }
.danger-card h3 { font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
.danger-card p { margin: 0; font-size: 15px; }
.danger-badge { flex: none; width: 38px; height: 38px; border-radius: var(--radius); background: var(--gold); color: #fff; display: grid; place-items: center; }
.danger-badge .ico { width: 19px; height: 19px; stroke-width: 2.2; }
.danger .btn { margin-top: 12px; }
.danger-photo { position: relative; margin: 0; }
.danger-photo img { width: 100%; height: 540px; object-fit: cover; border-radius: var(--radius); }
.danger-photo figcaption { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 18px 22px; background: rgba(255,255,255,.96); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(10,31,56,.2); }
.danger-photo figcaption strong { display: block; font-size: 20px; line-height: 1.25; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.danger-photo figcaption span { font-size: 14px; line-height: 1.5; color: var(--text); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b7c4d6; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr 1.3fr; gap: 48px; padding-top: 56px; padding-bottom: 44px; }
.brand-footer img { height: 42px; }
.footer-brand p { margin: 16px 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a:hover { color: #fff; }
.footer-contact h3 { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-contact p { max-width: 420px; }
.contact-mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 18px; font-weight: 500; color: #fff; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.contact-mail .ico { color: var(--gold); }
.contact-mail:hover { color: #e3c48e; }
.contact-address { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 0; line-height: 1.5; }
.contact-address .ico { color: var(--gold); margin-top: 2px; }
.contact-phone { display: flex; width: fit-content; align-items: center; gap: 12px; margin: 16px 0 0; }
.contact-phone .ico { color: var(--gold); }
.contact-phone:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; color: #8091a8; }

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

/* Navigacija ima 7 stavki: CTA u headeru se sakriva kad nema mesta (forma je odmah ispod hero) */
@media (max-width: 1240px) {
  .header-actions .btn { display: none; }
  .main-nav { gap: 20px; }
}

/* Meni u hamburgeru */
@media (max-width: 1060px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; margin-left: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,42,74,.1);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .25s ease, visibility .25s;
  }
  .main-nav.is-open { max-height: 460px; visibility: visible; }
  .main-nav a { padding: 15px var(--gutter); border-top: 1px solid var(--line); font-size: 16px; }
  .main-nav a::after { display: none; }
  .header-actions { margin-left: auto; gap: 8px; }
}

/* Tablet */
@media (max-width: 1020px) {
  .enq-grid { grid-template-columns: 1fr; }
  .enq-cta-text { padding: 48px var(--gutter) 36px; }
  .enq-cta { min-height: 0; }
  .enq-photo { position: relative; height: 240px; transition: height .45s ease; }
  .enq-cta.is-open .enq-photo { height: 0; }
  .enq-photo::after { display: none; }
  .enq-intro { padding: 48px var(--gutter); }
  .about-grid, .approach-grid, .danger-grid, .multimodal-grid, .transport-head { grid-template-columns: 1fr; gap: 36px; }
  .modes { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .mode:nth-child(odd)::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

/* Mobilni */
@media (max-width: 820px) {
  :root { --header-h: 68px; --gutter: 20px; }
  body { font-size: 15.5px; }
  .brand img { height: 36px; }
  .section { padding: 44px 0; }

  .enq-checks { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; }
  .hero-bg { background-position: 86% bottom; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(10,31,56,.9) 0%, rgba(10,31,56,.78) 55%, rgba(10,31,56,.5) 100%); }
  .hero-inner { padding-top: 34px; padding-bottom: 44px; }


  .about-photo img { height: 260px; }
  .approach-photo { min-height: 260px; }

  .modes { grid-template-columns: 1fr; }
  .mode::before { display: none; }

  .multimodal { padding: 44px 0; }
  .multimodal-cols { grid-template-columns: 1fr; gap: 20px; }
  .multimodal-cols p, .multimodal-cols p:first-child, .multimodal-cols p + p { padding: 0; border-left: 0; }


  .danger-photo img { height: 380px; }
  .danger-photo figcaption { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }

  /* tekst poravnat po ivicama (justify); naslovi, male oznake i poruke ostaju kakvi jesu */
  main p:not(.eyebrow):not(.hero-badge):not(.hero-lead):not(.mode-tag):not(.enq-note):not(.enq-error),
  .site-footer p:not(.contact-address) { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
}

@media (max-width: 560px) {
  .enq-steps { grid-template-columns: 1fr; gap: 10px; }
  .enq-step { flex-direction: row; text-align: left; gap: 16px; padding: 14px 16px 14px 36px; border-top-width: 1px; border-left: 3px solid var(--gold); }
  .enq-step-num { top: 50%; left: 12px; transform: translateY(-50%); }
  .enq-step img { width: 64px; height: 64px; flex: none; }
  .enq-step:hover { transform: scale(1.02); }
  .enq-fields { grid-template-columns: 1fr; }
  .enq-checks { grid-template-columns: 1fr; }
}
