:root {
  --blue: #1f6aa5;          /* primarna plava */
  --blue-dark: #17548a;
  --blue-deep: #0e3a5f;     /* tamne podloge (hero/footer) */
  --sky: #4d9fd6;           /* svetliji plavi akcenat */
  --sky-bright: #6fb5e6;
  --sky-tint: #eaf3fb;      /* svetla pozadina sekcija */
  --ink: #16283a;
  --muted: #566b7e;
  --bg: #ffffff;
  --line: #d8e3ef;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(14, 58, 95, 0.12);
  --shadow-sm: 0 3px 12px rgba(14, 58, 95, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; color: var(--blue-deep); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 8px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-weight: 700; color: var(--ink); font-size: 0.97rem; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); border-bottom: 2px solid var(--sky); padding-bottom: 2px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--blue-deep); order: 3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(31, 106, 165, 0.35); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-accent { background: var(--sky); color: #fff; box-shadow: 0 4px 14px rgba(77, 159, 214, 0.42); }
.btn-accent:hover { background: var(--sky-bright); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ghost-dark { border: 2px solid var(--line); color: var(--blue-deep); }
.btn-ghost-dark:hover { background: var(--sky-tint); }
.btn-phone { background: var(--sky-tint); color: var(--blue-deep) !important; padding: 9px 18px; }
.btn-phone:hover { background: var(--sky); color: #fff !important; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--blue-deep) 0%, var(--blue-dark) 55%, var(--blue) 100%);
  color: #fff; padding: 84px 0 70px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(77, 159, 214, 0.4), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero-inner { position: relative; z-index: 1; }
.hero-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: 700; color: var(--sky-bright); margin-bottom: 14px; }
.hero h1 { color: #fff; margin-bottom: 18px; max-width: 660px; }
.hero-sub { font-size: 1.12rem; max-width: 580px; color: #d3e6f5; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-stats { display: flex; gap: 40px; list-style: none; flex-wrap: wrap; color: #cadff0; }
.hero-stats strong { display: block; font-size: 1.6rem; color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 66px 0; }
.section-alt { background: var(--sky-tint); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-sub { color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-cta { text-align: center; margin-top: 38px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card p { color: var(--muted); font-size: 0.96rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--blue); background: var(--sky-tint); margin-bottom: 14px;
}
.card-icon svg { width: 26px; height: 26px; }

/* ---------- Ikonice ---------- */
.ico { display: inline-flex; align-items: center; }
.ico svg { width: 1.05em; height: 1.05em; }
.btn .ico { margin-right: -1px; }

/* ---------- Fleet cards ---------- */
.bus-card { padding: 0; overflow: hidden; display: block; transition: transform 0.15s, box-shadow 0.15s; }
.bus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bus-card-body { padding: 16px 20px 20px; }
.bus-img {
  height: 180px; background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.bus-ico { color: rgba(255, 255, 255, 0.6); }
.bus-ico svg { width: 58px; height: 58px; }
.bus-img.has-photo span { display: none; }
.bus-meta { margin: 4px 0 10px; }
.bus-meta strong { color: var(--blue); }
.bus-more { font-weight: 700; color: var(--blue); font-size: 0.92rem; }

/* ---------- Bus detail ---------- */
.crumbs { color: var(--muted); font-size: 0.9rem; padding: 26px 0 18px; }
.crumbs a { color: var(--blue); font-weight: 600; }
.detalj-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding-bottom: 60px; align-items: start; }
.galerija-glavna {
  height: 360px; border-radius: var(--radius); background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.gal-ikonica { color: rgba(255, 255, 255, 0.55); }
.gal-ikonica svg { width: 84px; height: 84px; }
.galerija-glavna.has-photo .gal-ikonica { display: none; }
.galerija-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 84px; height: 62px; border-radius: 9px; background-size: cover; background-position: center;
  cursor: pointer; border: 2px solid transparent; opacity: 0.75; transition: opacity 0.15s;
}
.thumb:hover, .thumb.sel { opacity: 1; border-color: var(--sky); }
.galerija-napomena { color: var(--muted); font-size: 0.85rem; margin-top: 12px; font-style: italic; }
.detalj-tip { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.78rem; font-weight: 700; color: var(--sky); margin-bottom: 6px; }
.detalj-info h1 { margin-bottom: 18px; }
.detalj-spec { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.spec { background: var(--sky-tint); border-radius: 12px; padding: 12px 18px; min-width: 96px; }
.spec span { display: block; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.spec strong { font-size: 1.25rem; color: var(--blue-deep); }
.detalj-opis { color: #3a5163; margin-bottom: 22px; }
.detalj-info h3 { font-size: 1.05rem; margin-bottom: 10px; }
.oprema { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-bottom: 28px; }
.oprema li { position: relative; padding-left: 26px; color: #3a5163; font-size: 0.95rem; }
.oprema li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.detalj-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page header (subpages) ---------- */
.page-hero { background: linear-gradient(150deg, var(--blue-deep), var(--blue)); color: #fff; padding: 54px 0; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #d3e6f5; max-width: 620px; }

/* ---------- Upit forma ---------- */
.upit-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.upit-forma { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.polje { margin-bottom: 16px; }
.polje label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--blue-deep); }
.polje input, .polje select, .polje textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.polje textarea { resize: vertical; }
.polje input:focus, .polje select:focus, .polje textarea:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(77, 159, 214, 0.18);
}
.polje-red { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.forma-note { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }
.forma-ok { background: var(--sky-tint); border: 1px solid var(--sky); color: var(--blue-deep);
  border-radius: 10px; padding: 14px 16px; margin-top: 16px; font-weight: 600; display: none; }
.upit-aside .card { margin-bottom: 16px; }
.upit-aside .card h3 { font-size: 1rem; margin-bottom: 4px; }
.upit-aside .card a, .upit-aside .card p { color: var(--blue); font-weight: 700; }
.upit-aside .card .malo { color: var(--muted); font-weight: 400; font-size: 0.9rem; }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { text-align: center; padding: 30px 24px; }
.contact-card .card-icon { margin: 0 auto 14px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--blue); font-weight: 700; font-size: 1.02rem; }

/* ---------- Koraci (Kako do ponude) ---------- */
.koraci { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.korak { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.korak-broj {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 800; font-size: 1.15rem; margin-bottom: 14px;
}
.korak h3 { margin-bottom: 6px; }
.korak p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Galerija ---------- */
.galerija-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal-cell {
  display: block; aspect-ratio: 4 / 3; border-radius: 12px;
  background-size: cover; background-position: center; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.gal-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.galerija-prazno { color: var(--muted); font-style: italic; text-align: center; padding: 36px 0; }

#lightbox {
  position: fixed; inset: 0; background: rgba(14, 58, 95, 0.93);
  display: none; align-items: center; justify-content: center; padding: 24px; z-index: 100; cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lb-close { position: absolute; top: 16px; right: 26px; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; font-weight: 300; }

/* ---------- Česta pitanja (FAQ) ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--blue-deep);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-odgovor { padding: 0 22px 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: #b3cee4; padding: 48px 0 22px; font-size: 0.92rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 26px; }
.footer-logo { height: 52px; margin-bottom: 14px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-col a:hover { color: var(--sky-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: #86a9c6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .detalj-grid { grid-template-columns: 1fr; gap: 24px; }
  .galerija-glavna { height: 280px; }
}
@media (max-width: 820px) {
  .grid-3, .grid-4, .contact-grid { grid-template-columns: 1fr 1fr; }
  .galerija-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .upit-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .contact-grid, .footer-grid, .oprema, .polje-red, .koraci { grid-template-columns: 1fr; }
  .galerija-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start;
    padding: 18px 20px; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 58px 0 50px; }
  .hero-stats { gap: 24px; }
}
