/* ==========================================================================
   LLOGISTIKA — DESIGN TOKENS
   Paleta:  #0B1E33 (globoka nočna modra, hero/footer)
            #123457 (temno modra, panels)
            #2F7AD1 (nebesno modra, primarni accent — obstoječa barva znamke)
            #F5A623 (jantarna, kalkulator/CTA accent — "signature" barva)
            #F7F9FC (svetlo ozadje sekcij)
            #1B2733 (besedilo)
   Tipografija: Manrope (display/naslovi), Inter (telo/besedilo)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy-deep: #0B1E33;
  --navy: #123457;
  --blue: #2F7AD1;
  --blue-light: #5B9BE0;
  --amber: #F5A623;
  --amber-dark: #D98A0F;
  --bg-light: #F7F9FC;
  --bg-white: #FFFFFF;
  --text: #1B2733;
  --text-muted: #5A6B7D;
  --border: #E3E9F0;
  --success: #2E9E5B;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(11,30,51,0.06);
  --shadow-md: 0 8px 30px rgba(11,30,51,0.12);
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.15; color: var(--navy-deep); }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--amber-dark); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 10px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--font-body);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2569b8; box-shadow: var(--shadow-md); }
.btn-amber { background: var(--amber); color: var(--navy-deep); }
.btn-amber:hover { background: var(--amber-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: none; border: none; color: var(--blue); font-weight: 700; cursor: pointer; padding: 8px 4px; }

/* ---- Header ---- */
.topbar {
  background: var(--navy-deep); color: #fff; font-size: .85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 8px; }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contact a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: #cfe0f5; }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; text-decoration: none; color: #fff;
}
.topbar-social a:hover { background: var(--blue); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11,30,51,.92); backdrop-filter: blur(8px);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { color: var(--blue-light); }
.logo-text { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.logo-sub { display: block; font-size: .55rem; letter-spacing: .18em; color: #9FB6D1; font-weight: 600; margin-top: -2px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: #E6EEF7; text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: 10px 14px; border-radius: 8px; transition: background .15s ease, color .15s ease;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.main-nav a.nav-cta { background: var(--amber); color: var(--navy-deep); margin-left: 6px; }
.main-nav a.nav-cta:hover { background: var(--amber-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 980px) {
  .main-nav { position: fixed; top: 0; right: -320px; height: 100vh; width: 300px; background: var(--navy-deep);
    flex-direction: column; align-items: stretch; padding: 90px 20px 20px; transition: right .25s ease; box-shadow: -10px 0 30px rgba(0,0,0,.3); }
  .main-nav.open { right: 0; }
  .main-nav a { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .main-nav a.nav-cta { margin: 10px 0 0; text-align: center; border-radius: 8px; border-bottom: none; }
  .nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgba(6,16,29,.55), rgba(6,16,29,.85)), var(--navy-deep);
  background-size: cover; background-position: center;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  padding-bottom: 70px;
}
.hero .container { padding-top: 90px; padding-bottom: 40px; position: relative; z-index: 2; }
.hero-eyebrow { color: var(--amber); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 820px; margin-top: .3em; }
.hero-lead { font-size: 1.15rem; color: #D7E4F2; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* floating price teaser card on hero */
.hero-price-teaser {
  margin-top: 40px; max-width: 380px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 18px 20px; backdrop-filter: blur(6px);
}
.hero-price-teaser strong { color: var(--amber); }

/* ---- Testimonials ---- */
.testimonials { background: var(--bg-light); padding: 64px 0; }
.section-title { text-align: center; font-size: 1.9rem; margin-bottom: 34px; }
.testi-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.testi-card {
  scroll-snap-align: start; flex: 0 0 320px; background: #fff; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; font-size: 1rem; }
.testi-author { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testi-author strong { font-size: .92rem; }

/* ---- Services intro ---- */
.services { padding: 80px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.service-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card img { height: 190px; object-fit: cover; }
.service-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card-body p { color: var(--text-muted); font-size: .94rem; flex: 1; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

/* ---- Detail sections ---- */
.detail-section { padding: 80px 0; }
.detail-section.alt { background: var(--bg-light); }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.detail-grid.reverse .detail-media { order: 2; }
.detail-media { position: relative; }
.detail-media img.main { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 380px; object-fit: cover; }
.detail-media img.floating {
  position: absolute; bottom: -30px; right: -30px; width: 55%; border-radius: 12px; border: 5px solid #fff; box-shadow: var(--shadow-md);
}
.checklist { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.checklist li::before { content: "✔"; color: var(--success); font-weight: 800; flex-shrink: 0; margin-top: 2px; }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .detail-grid, .detail-grid.reverse { grid-template-columns: 1fr; }
  .detail-grid.reverse .detail-media { order: 0; }
  .detail-media img.floating { position: static; width: 100%; margin-top: 16px; border-width: 0; }
}

/* dark variant (logistika section) */
.detail-section.dark { background: var(--navy-deep); color: #fff; }
.detail-section.dark h2, .detail-section.dark .eyebrow { color: #fff; }
.detail-section.dark .checklist li { color: #E6EEF7; }
.detail-section.dark p { color: #C7D6E8; }

/* ---- Fleet ---- */
.fleet { padding: 80px 0; background: var(--bg-light); }
.fleet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 30px; }
.fleet-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.fleet-card img { height: 230px; object-fit: cover; width: 100%; }
.fleet-card-body { padding: 22px; }
.fleet-specs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: .92rem; color: var(--text-muted); }
.fleet-specs li::before { content: "✔"; color: var(--blue); margin-right: 8px; }
@media (max-width: 780px) { .fleet-grid { grid-template-columns: 1fr; } }

/* ---- Contact ---- */
.contact { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 26px; align-items: stretch; }
.contact-card { background: var(--bg-light); border-radius: var(--radius); padding: 30px; border: 1px solid var(--border); }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item strong { display: block; }
.contact-quick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.contact-quick .btn { flex: 1; min-width: 130px; }
.form-card { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 9px; border: 1.5px solid var(--border);
  font-family: var(--font-body); font-size: .95rem; background: #fbfdff; transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.form-msg { margin-top: 12px; font-size: .9rem; border-radius: 8px; padding: 10px 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #E7F6EC; color: #1B7A3F; }
.form-msg.err { background: #FBEAEA; color: #B3261E; }
.map-frame { border-radius: var(--radius); overflow: hidden; margin-top: 20px; border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: #C7D6E8; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid a { display: block; text-decoration: none; color: #C7D6E8; padding: 6px 0; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: .82rem; color: #7C93AD; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Back to top ---- */
.to-top {
  position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue); color: #fff; border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 50;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   KALKULATOR CEN — signature interaktivni element strani
   ========================================================================== */
.calc-section { padding: 80px 0 100px; background: var(--bg-light); }
.calc-shell {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-md); border: 1px solid var(--border);
  overflow: hidden; margin-top: 30px;
}
.calc-progress { display: flex; align-items: center; gap: 10px; padding: 20px 26px; border-bottom: 1px solid var(--border); background: var(--bg-light); flex-wrap: wrap; }
.calc-progress .step-label { font-weight: 700; font-size: .85rem; color: var(--text-muted); white-space: nowrap; }
.progress-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; min-width: 120px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--amber)); width: 0%; transition: width .3s ease; }

.calc-body { display: grid; grid-template-columns: 1fr 340px; }
.calc-main { padding: 34px; min-height: 420px; }
.calc-summary {
  background: var(--navy-deep); color: #fff; padding: 30px 26px; display: flex; flex-direction: column;
}
.calc-summary h4 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.calc-summary-sub { color: #9FB6D1; font-size: .8rem; margin-bottom: 18px; }
.summary-lines { flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: .85rem; color: #D7E4F2; overflow-y: auto; max-height: 320px; padding-right: 4px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed rgba(255,255,255,.12); padding-bottom: 8px; }
.summary-line .lbl { color: #B7C9DD; }
.summary-totals { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 16px; font-size: .88rem; }
.summary-totals .row { display: flex; justify-content: space-between; margin-bottom: 6px; color: #C7D6E8; }
.summary-totals .grand { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--amber); display: flex; justify-content: space-between; margin-top: 10px; }
.summary-empty { color: #7C93AD; font-size: .88rem; }

@media (max-width: 900px) {
  .calc-body { grid-template-columns: 1fr; }
  .calc-summary { order: -1; }
  .calc-main { padding-bottom: 140px; }
}

/* mobile sticky price bar */
.sticky-price-bar {
  display: none; position: sticky; bottom: 0; left: 0; right: 0; background: var(--navy-deep); color: #fff;
  padding: 12px 18px; align-items: center; justify-content: space-between; z-index: 5; border-top: 3px solid var(--amber);
}
@media (max-width: 900px) { .sticky-price-bar.active { display: flex; } }
.sticky-price-bar .amt { font-family: var(--font-display); font-weight: 800; color: var(--amber); font-size: 1.2rem; }

/* service picker cards inside calculator */
.calc-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 780px) { .calc-service-grid { grid-template-columns: 1fr; } }
.calc-service-card {
  border: 2px solid var(--border); border-radius: 16px; padding: 26px 20px; text-align: left; background: #fff;
  cursor: pointer; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; gap: 10px;
}
.calc-service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.calc-service-card.selected { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,166,35,.18); }
.calc-service-card .icon { font-size: 1.8rem; }
.calc-service-card strong { font-size: 1.02rem; }
.calc-service-card span.desc { color: var(--text-muted); font-size: .85rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--border); background: #fff; border-radius: 999px; padding: 9px 16px;
  font-size: .87rem; font-weight: 600; cursor: pointer; transition: all .15s ease; user-select: none;
}
.chip:hover { border-color: var(--blue-light); }
.chip.selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.heavy.selected { background: #C0392B; border-color: #C0392B; }

.step-title { font-size: 1.3rem; margin-bottom: 4px; }
.step-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 22px; }

.stepper-count { display: flex; align-items: center; gap: 14px; }
.stepper-count button {
  width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff;
  font-size: 1.2rem; font-weight: 800; cursor: pointer; color: var(--blue);
}
.stepper-count button:hover { background: var(--bg-light); }
.stepper-count .val { font-weight: 800; font-size: 1.15rem; min-width: 26px; text-align: center; }

.slider-wrap { margin: 10px 0 26px; }
.slider-wrap input[type=range] { width: 100%; accent-color: var(--amber); }
.slider-label { text-align: center; font-weight: 700; color: var(--navy); background: var(--bg-light); border-radius: 10px; padding: 10px 14px; margin-top: 10px; font-size: .92rem; }

.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 780px) { .checkbox-grid { grid-template-columns: repeat(2, 1fr); } }
.checkbox-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; font-size: .87rem; cursor: pointer; }
.checkbox-item input { accent-color: var(--amber); width: 16px; height: 16px; }
.checkbox-item.checked { border-color: var(--amber); background: #FFF7EA; }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 780px) { .vehicle-grid { grid-template-columns: 1fr; } }
.vehicle-card { border: 2px solid var(--border); border-radius: 14px; padding: 18px; cursor: pointer; }
.vehicle-card.selected { border-color: var(--blue); background: #F0F6FD; }
.vehicle-card ul { padding-left: 18px; margin: 8px 0 0; font-size: .82rem; color: var(--text-muted); }

.calc-nav { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }

.additional-services-list { display: grid; gap: 10px; }
.addsvc-row { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 16px; gap: 12px; }
.addsvc-row.active { border-color: var(--blue); background: #F0F6FD; }
.addsvc-right { display: flex; align-items: center; gap: 10px; }
.addsvc-right input[type=number] { width: 60px; padding: 6px; border-radius: 6px; border: 1.5px solid var(--border); }

.inquiry-callout {
  background: #FFF3E0; border: 1.5px solid var(--amber); border-radius: 12px; padding: 16px 18px; margin-top: 20px; font-size: .9rem; color: #7A4A0A;
}
.inquiry-callout strong { display: block; margin-bottom: 4px; }

.disclaimer-box { background: var(--bg-light); border-left: 4px solid var(--blue); border-radius: 8px; padding: 14px 18px; font-size: .82rem; color: var(--text-muted); margin-top: 18px; }

.result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

@media print {
  .site-header, .topbar, .to-top, .calc-nav, .calc-progress, .sticky-price-bar, .site-footer, .hero, .testimonials, .services, .detail-section, .fleet, .contact { display: none !important; }
  #print-summary { display: block !important; }
}
#print-summary { display: none; padding: 40px; }
