/* =====================================================
   0. CSS Reset & Normalize
   ===================================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fafbfc;
  color: #1A4467;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }

/* =====================================================
   1. Fonts & Global Variables
   ===================================================== */
:root {
  --color-primary: #1A4467;
  --color-secondary: #ffffff;
  --color-bg-soft: #F3F5F7;
  --color-neutral: #E4E5E7;
  --color-accent: #C07C19;
  --color-accent-alt: #E09927;
  --color-shadow: rgba(26,68,103,0.07);
  --color-danger: #E84E36;
  --radius-card: 20px;
  --radius-btn: 10px;
  --radius-lg: 24px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800|Roboto:400,500,700&display=swap');

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-bg-soft);
  color: var(--color-primary);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  color: var(--color-primary);
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }
p, ul, ol, blockquote {
  font-size: 1rem;
  margin-bottom: 14px;
}
strong {
  font-weight: 700;
}
blockquote {
  font-style: italic;
  border-left: 5px solid var(--color-accent);
  padding-left: 16px;
  color: #234b6e;
  background: var(--color-neutral);
  margin: 12px 0;
  border-radius: 10px;
}

/* =====================================================
   2. Layout: Containers & Grids (Flexbox Only!)
   ===================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px 0 var(--color-shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--color-neutral);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 18px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px 24px 24px;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 22px var(--color-shadow);
  transform: translateY(-4px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: var(--color-neutral);
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 var(--color-shadow);
  min-width: 240px;
  max-width: 460px;
  color: #15324a;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-bg-soft);
  border-radius: 12px;
  padding: 18px 16px;
  min-width: 180px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =====================================================
   3. Header & Navigation Styles (Mobile & Desktop)
   ===================================================== */
header {
  background: var(--color-secondary);
  border-bottom: 2px solid var(--color-neutral);
  width: 100%;
  position: relative;
  z-index: 900;
  box-shadow: 0px 2px 18px var(--color-shadow);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 10px 20px;
}
header img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
nav a {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  padding: 7px 13px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.2s;
}
nav a.active, nav a:hover {
  background: var(--color-neutral);
  color: var(--color-accent);
}
nav .btn-primary {
  margin-left: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--color-accent);
  color: var(--color-secondary)!important;
  padding: 11px 32px;
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 12px var(--color-shadow);
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent-alt);
  color: var(--color-primary)!important;
  box-shadow: 0 6px 18px var(--color-shadow);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 14px;
  padding: 6px 12px;
  transition: background 0.19s;
  border-radius: 8px;
  z-index: 1201;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-neutral);
  outline: none;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-secondary);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding-top: 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.57,.12,0,1.08);
  box-shadow: 0 8px 40px 0 var(--color-shadow);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin-right: 24px;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: 10px;
  padding: 4px 10px;
  transition: background 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-neutral);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 32px;
}
.mobile-nav a {
  font-size: 1.17rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  padding: 13px 9px;
  border-radius: 7px;
  margin-bottom: 6px;
  font-weight: 600;
  width: 100%;
  transition: background 0.19s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--color-neutral);
  color: var(--color-accent);
}

/* Hide desktop nav/show mobile menu toggle on mobile */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding-left: 13px; padding-right: 13px;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none!important;
  }
}

/* =====================================================
   4. Section, Cards, Lists
   ===================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 0px;
  background: none;
  border: none;
}
.content-wrapper > ul, .content-wrapper > ol {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}
.content-wrapper > ul > li, .content-wrapper > ol > li {
  font-size: 1rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-wrapper > ul > li img,
.content-wrapper > ol > li img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.content-wrapper > ol {
  list-style: decimal inside;
  flex-direction: column;
  gap: 13px;
}

/* Feature/Info cards like in FAQ, vehicle, team list, etc */
.feature-item, .faq-list > div {
  background: var(--color-bg-soft);
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 18px 16px;
  margin-bottom: 12px;
  min-width: 180px;
}

/* =====================================================
   5. Testimonials
   ===================================================== */
.testimonial-card {
  background: var(--color-neutral);
  color: #1A4467;
  border-radius: 20px;
  box-shadow: 0 3px 14px var(--color-shadow);
  font-size: 1.08rem;
  margin-bottom: 20px;
  max-width: 380px;
  min-width: 250px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.testimonial-card strong {
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 700;
}
.testimonial-card:hover {
  box-shadow: 0 9px 32px var(--color-shadow);
  transform: scale(1.017);
}

/* =====================================================
   6. Tables (Cenik)
   ===================================================== */
table {
  width: 100%;
  background: var(--color-neutral);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 1px 8px var(--color-shadow);
}
thead {
  background: var(--color-primary);
  color: #fff;
}
th, td {
  padding: 15px 13px;
  text-align: left;
  border-bottom: 1px solid var(--color-bg-soft);
  font-family: var(--font-body);
  font-size: 1.02rem;
}
thead th {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* =====================================================
   7. Footer
   ===================================================== */
footer {
  background: var(--color-secondary);
  border-top: 2px solid var(--color-neutral);
  box-shadow: 0px -2px 22px var(--color-shadow);
  margin-top: 60px;
  padding: 30px 0 0 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 38px;
  padding-bottom: 32px;
}
footer img {
  height: 44px;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 4px 0px;
  border-radius: 4px;
  transition: color 0.16s;
}
footer nav a:hover { color: var(--color-accent); text-decoration: underline; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.99rem;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.footer-contact img {
  width: 22px; height: 22px;
  margin-bottom: 0;
}

@media (max-width:960px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 20px;
  }
}

/* =====================================================
   8. Cookie Consent Banner & Modal
   ===================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-secondary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  box-shadow: 0 -4px 24px var(--color-shadow);
  z-index: 1400;
  gap: 20px;
  animation: cookie-fadein 0.7s cubic-bezier(.59,-0.16,.2,.99) 1;
}
@keyframes cookie-fadein { from { opacity:0; transform: translateY(20px);} to{ opacity:1; transform:none;}}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-secondary);
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
  box-shadow: 0 2px 10px var(--color-shadow);
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cookie-btn.reject {
  background: #e4e5e7;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-accent-alt);
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-danger);
  color: #fff;
}

.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(26,68,103,0.185);
  backdrop-filter: blur(2.5px);
  z-index: 1550;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: cookie-fadein 0.33s cubic-bezier(.59,-0.16,.2,.99) 1;
}
.cookie-modal-content {
  background: var(--color-secondary);
  border-radius: 18px;
  box-shadow: 0 8px 32px var(--color-shadow);
  padding: 34px 26px 26px 26px;
  min-width: 320px;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-content h3 {
  font-size: 1.27rem;
  font-family: var(--font-display);
  margin-bottom: 2px;
}
.cookie-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: space-between;
}
.cookie-toggle-row label {
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-switch {
  width: 38px; height: 20px;
  border-radius: 13px;
  background: var(--color-neutral);
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-switch span {
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  position: absolute;
  top: 1px; left: 1px;
  transition: left 0.22s, background 0.18s;
}
.cookie-switch input:checked + span {
  left: 19px;
  background: var(--color-accent-alt);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  justify-content: flex-end;
}

/* Essential: always enabled */
.cookie-toggle-row.essential label:after {
  content: ' (vedno omogočeno)';
  color: #888e9b;
  font-size: 0.96rem;
}
.cookie-toggle-row.essential .cookie-switch {
  opacity: 0.65;
  pointer-events: none;
}

/* =====================================================
   9. Responsive Design (Mobile-first)
   ===================================================== */
@media (max-width: 768px) {
  h1 { font-size: 2.01rem; }
  h2 { font-size: 1.37rem; }
  h3 { font-size: 1.11rem; }
  .section {
    margin-bottom: 32px;
    padding: 26px 6px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .content-grid {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .card-container {
    gap: 14px;
    flex-direction: column;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
    padding: 17px 7px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  header .container {
    padding: 9px 7px;
  }
  .mobile-nav {
    padding: 16px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    padding: 11px 10px;
    gap: 10px;
    font-size: 0.98rem;
    align-items: flex-start;
  }
  .cookie-modal-content {
    min-width: 86vw;
    max-width: 99vw;
    padding: 18px 8px 8px 11px;
  }
}

/* =====================================
   10. Other Visual, Icon, Misc
   ===================================== */
::-webkit-input-placeholder { color: #b1bccd; }
::-moz-placeholder { color: #b1bccd; }
:-ms-input-placeholder { color: #b1bccd; }
::placeholder { color: #b1bccd; }

hr {
  border-top: 1.5px solid var(--color-neutral);
  margin: 24px 0;
}

a { text-underline-offset: 2px; }
a:focus { outline: 2px solid var(--color-accent); }
a.btn-primary:focus { outline: 3px solid var(--color-accent); }

/* Visual geometry for cards & sections: chromatic bottom line */
.card::after, .section::after {
  content: '';
  display: block;
  position: absolute;
  left: 18px; bottom: 18px;
  width: 44px; height: 5px;
  background: var(--color-accent-alt);
  border-radius: 10px;
  opacity: 0.10;
  pointer-events: none;
}
.section::after { left: 36px; width: 36px; height: 6px; opacity: 0.18;}

/* Hide the geometry bar if there is overflow or on mobile */
@media (max-width:600px) {
  .card::after, .section::after { opacity: 0.08; left:7px; width:18vw; }
}

/* ===========================
   11. Animations, Microinteractions
   =========================== */
.btn-primary, .cookie-btn {
  transition: background 0.18s, box-shadow 0.16s, color 0.16s, transform 0.14s;
}
.btn-primary:hover, .cookie-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 7px 28px var(--color-shadow);
}
.testimonial-card, .card, .feature-item {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 8px 24px var(--color-shadow);
  transform: scale(1.018);
}
nav a, .mobile-nav a {
  transition: color 0.17s, background 0.17s;
}

/* ================================
   12. Utility/Misc Styles
   ================================ */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-12 { gap: 12px; }

/* ===============================
   13. Accessibility improvements
   =============================== */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px dashed var(--color-accent-alt);
  outline-offset: 1px;
}