/* CSS RESET & NORMALIZE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
  font-size: 100%;
}
body {
  min-height: 100vh;
  background: #FAFBFB;
  color: #24406E;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0.01em;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #4F7CA6;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #274472;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}
ul li, ol li {
  margin-bottom: 0.7em;
}

/* VARIABLES & SOFT PASTEL PALETTE */
:root {
  --primary: #274472;              /* Dark blue */
  --secondary: #6D9886;            /* Pastel green */
  --accent: #F4F6F7;               /* Pastel grey */
  --peach-pink: #FFE5EC;
  --pastel-blue: #E7F0FF;
  --pastel-purple: #EEF2FF;
  --pastel-yellow: #FFF6DB;
  --shadow: 0 2px 16px 0 rgba(60,66,87,0.06);
  --radius: 14px;
  --transition: all 0.21s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --bg-gradient: linear-gradient(135deg, #E7F0FF 50%, #FFF6DB 100%);
}

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: #FFF;
  box-shadow: var(--shadow);
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section, .text-image-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.text-image-section {
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .section {
    padding: 28px 6px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .container {
    padding: 0 6px;
  }
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.18;
  margin-bottom: 16px;
  color: var(--primary);
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4, h5 {
  font-size: 1rem;
}
.subheadline {
  font-size: 1.11rem;
  font-weight: 500;
  color: #3E577D;
  margin-bottom: 9px;
}
p {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 10px;
  color: #375574;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9em 2.1em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: #FFF;
  background: var(--secondary);
  border: none;
  border-radius: 26px;
  box-shadow: 0 3px 13px 0 rgba(109,152,134,0.13);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  margin-top: 10px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #579378;
  color: #FFF;
  box-shadow: 0 6px 24px 0 rgba(109,152,134,0.18);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1.7em;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  background: #E7F0FF;
  border: 1.5px solid #BFD8EF;
  border-radius: 24px;
  box-shadow: 0 2px 7px 0 rgba(124,145,187,0.10);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F7FAFF;
  color: #1D3B5E;
}

/* NAVIGATION BAR */
header {
  width: 100%;
  background: #F7FAFF;
  box-shadow: 0 2px 18px 0 rgba(39,68,114,0.05);
  z-index: 14;
  position: sticky;
  top: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 16px 8px 16px;
}
.main-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 19px;
  padding: 7px 13px;
  transition: var(--transition);
}
.main-nav a:not(.btn-primary):hover, .main-nav a:not(.btn-primary):focus {
  background: #E7F0FF;
  color: #375574;
}
.main-nav img {
  height: 36px;
  width: auto;
  margin-right: 12px;
  display: inline-block;
}

/* HIDE NAV FOR MOBILE */
@media (max-width:1024px) {
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .main-nav a:not(:first-child):not(.btn-primary) {
    display: none;
  }
}
@media (max-width: 700px) {
  .main-nav{
    gap:7px;
    padding-bottom:5px;
  }
  .main-nav img {
    height: 27px;
    margin-right: 7px;
  }
}

/* MOBILE MENU BURGER BUTTON */
.mobile-menu-toggle {
  position: absolute;
  right: 18px;
  top: 17px;
  background: var(--secondary);
  color: #FFF;
  font-size: 2em;
  padding: 6px 20px 11px 20px;
  border: none;
  border-radius: 14px;
  z-index: 105;
  display: none;
  cursor: pointer;
  box-shadow: 0 2px 18px 0 rgba(76,132,116,0.10);
  transition: var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #578E76;
}
@media (max-width:900px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #F7FAFF;
  z-index: 110;
  transform: translateX(-100%);
  transition: transform 0.29s cubic-bezier(.5,0,.5,1.04);
  box-shadow: 0 0 30px 0 rgba(64,80,117,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
body.mobile-menu-open .mobile-menu{
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 19px 0 0;
  background: #FFE5EC;
  border: none;
  font-size: 2.1em;
  color: #C6557D;
  border-radius: 19px;
  padding: 4px 13px 5px 13px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 155;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFD7E6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  width: 100%;
  align-items: flex-start;
  padding: 36px 30px 0 36px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.25rem;
  padding: 10px 0;
  font-weight: 600;
  font-family: var(--font-display);
  transition: background 0.18s, color 0.2s;
  border-radius: 11px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E7F0FF;
  color: #486794;
}
@media (max-width: 500px) {
  .mobile-nav {
    padding-left: 18px;
    padding-right: 12px;
    font-size: 1rem;
  }
}
body.mobile-menu-open {
  overflow: hidden;
}

/* MAIN CONTENT */
main {
  width: 100%;
  min-height: 64vh;
  margin-top: 0px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-gradient);
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  background: none;
}
@media (max-width:660px) {
  section {
    margin-bottom: 36px;
    padding: 22px 0 24px 0;
  }
}

/* CARD PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 18px 22px;
  flex: 1 1 320px;
  min-width: 230px;
  transition: box-shadow 0.23s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(109,152,134,0.20);
}

.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;
}
@media (max-width: 900px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* PRODUCT CARD GRID */
.products-grid, .services-list, .products-list, .services-grid, .testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 8px;
}
@media (max-width: 900px) {
  .products-grid, .services-list, .products-list, .services-grid, .testimonials-grid {
    flex-direction: column;
    gap: 18px;
  }
}
.product-card, .service-card {
  flex: 1 1 290px;
  min-width: 220px;
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 18px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  border: 1.5px solid #E7F0FF;
  transition: border-color 0.18s, box-shadow 0.2s;
}
.product-card:hover, .service-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 22px 0 rgba(109,152,134,0.15);
}
.product-card h3, .service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.price {
  font-size: 1.10rem;
  font-weight: 700;
  color: #5A828F;
  margin-bottom: 8px;
}

/* SERVICES-LIST (for 2 cols on desktop) */
.services-list > div {
  flex: 1 1 290px;
  min-width: 220px;
  background: #FCFDFE;
  border-radius: 12px;
  box-shadow: 0 1.5px 8px 0 rgba(200, 217, 205, 0.10);
  padding: 22px 18px 16px 18px;
  margin-bottom: 10px;
  border: 1.5px solid #E7F0FF;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: border-color 0.21s, box-shadow 0.18s;
}
.services-list > div:hover {
  border-color: var(--secondary);
  box-shadow: 0 5px 15px 0 rgba(141,186,161,0.13);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* TESTIMONIALS */
.testimonials-grid {
  gap: 24px;
  margin-top: 5px;
}
.testimonial-card {
  background: #FFF;
  border-radius: 17px;
  box-shadow: 0 1px 28px 0 rgba(39,68,114,0.08), var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  color: #234370;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 305px;
  border: 1.5px solid #E7F0FF;
  font-size: 1.07rem;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.18s;
}
.testimonial-card:hover {
  border-color: #BFD8EF;
  box-shadow: 0 5px 26px 0 rgba(119,165,225,0.10);
}
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.11rem;
  font-weight: 500;
  color: #294576;
  margin: 0 0 0.12em 0;
}
.testimonial-card span {
  font-family: var(--font-body);
  color: #466183;
  font-size: 1.05rem;
  opacity: 0.7;
}


/* TABLES (Responsive, pastel style) */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0 8px 0;
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: 0 1.5px 16px 0 rgba(200,217,205,0.10);
  overflow: hidden;
}
thead {
  background: #E7F0FF;
}
th, td {
  padding: 0.95em 0.9em;
  text-align: left;
  font-size: 1rem;
  color: #2C5072;
}
th {
  font-family: var(--font-display);
  font-weight: 600;
  color: #24406E;
}
tr {
  border-bottom: 1px solid #F4F6F7;
}
tbody tr:nth-child(even) {
  background: #F7FAFF;
}

@media (max-width:650px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 18px;
    border: none;
  }
  td {
    border: none;
    position: relative;
    padding-left: 55%;
    margin-bottom: 4px;
    min-height: 34px;
  }
  td:before {
    position: absolute;
    left: 1em;
    top: 0.7em;
    font-family: var(--font-display);
    font-size: 0.95em;
    color: #7494BA;
    opacity: 0.8;
    width: 45%;
    white-space: nowrap;
    content: attr(data-label);
  }
}

/* LISTS */
ul, ol {
  color: #2B4669;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-left: 1.22em;
  margin-bottom: 1.25em;
  margin-top: 0.2em;
  line-height: 1.65;
}
li {
  margin-bottom: 0.7em;
  padding-left: 2px;
}
ul li::marker, ol li::marker {
  color: #A5D0CE;
}

ol {
  list-style-type: decimal;
}

/* FOOTER */
footer {
  width: 100%;
  background: #F4F6F7;
  box-shadow: 0 -1.5px 16px 0 rgba(44,80,114,0.03);
  margin-top: 65px;
  padding: 34px 10px 25px 10px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
}
.footer-nav a {
  color: #5470A1;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #274472;
  text-decoration: underline;
}
.footer-branding {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  color: #A8B8D2;
  font-size: 1.03em;
  margin-top: 10px;
}
.footer-branding img {
  width: 42px;
  height: auto;
}
@media (max-width:700px) {
  footer {
    padding: 22px 1px 15px 1px;
    font-size: 0.97em;
    gap: 7px;
  }
  .footer-nav {
    gap: 14px;
    margin-bottom: 7px;
  }
  .footer-branding {
    gap: 6px;
  }
  .footer-branding img {
    width: 28px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #FFF6DB;
  color: #2C5072;
  box-shadow: 0 -1.5px 30px 0 rgba(252,204,135,0.18), 0 -3px 16px 0 rgba(39,68,114,0.03);
  z-index: 800;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 40px;
  font-family: var(--font-body);
  font-size: 1.08em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.cookie-banner.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.cookie-btn {
  font-family: var(--font-body);
  font-size: 1em;
  padding: 8px 19px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #FFF;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #60a58d;
}
.cookie-btn.reject {
  background: #FFE5EC;
  color: #AE5C81;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFD7E6;
}
.cookie-btn.settings {
  background: #F4F6F7;
  color: #24406E;
  border: 1.5px solid #E7F0FF;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f9fafb;
  color: #24406E;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 7px;
    font-size: 0.97em;
  }
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 44%;
  transform: translate(-50%, 50%) scale(0.98);
  min-width: 295px;
  width: 93vw;
  max-width: 420px;
  background: #FFF;
  z-index: 1200;
  border-radius: 18px;
  box-shadow: 0 12px 48px 0 rgba(39,68,114,0.12);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 20px 14px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s cubic-bezier(.4,0,.2,1);
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h2 {
  font-size: 1.25em;
  color: #274472;
  margin-bottom: 2px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1em;
}
.cookie-category label {
  font-weight: 600;
  min-width: 112px;
  color: #24406E;
  font-family: var(--font-display);
}
.cookie-category input[type="checkbox"] {
  width: 1.2em;
  height: 1.2em;
  accent-color: #6D9886;
  margin-right: 6px;
}
.cookie-category input[disabled] {
  opacity: 0.55;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 7px;
}
.cookie-modal-close {
  position: absolute;
  right: 15px;
  top: 11px;
  background: none;
  border: none;
  font-size: 1.4em;
  color: #A8B8D2;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #274472;
}


/* MISCELLANEOUS/ELEMENTS */
@media (max-width:440px) {
  h1 {
    font-size: 1.40rem;
    margin-bottom: 7px;
  }
  h2 {
    font-size: 1.16rem;
    margin-bottom: 6px;
  }
  .btn-primary, .btn-secondary {
    padding: 0.6em 1.2em;
    font-size: 0.99em;
    min-width: 150px;
  }
}
::-webkit-input-placeholder { color: #9EB7C9; opacity: 1; }
::-moz-placeholder { color: #9EB7C9; opacity: 1; }
:-ms-input-placeholder { color: #9EB7C9; opacity: 1; }
::placeholder { color: #9EB7C9; opacity: 1; }


/* ANIMATIONS & MICRO-INTERACTIONS */
.btn-primary, .btn-secondary, .mobile-menu-toggle {
  transition: background 0.18s, color 0.13s, box-shadow 0.18s, transform 0.18s;
}
.btn-primary:active, .btn-secondary:active, .mobile-menu-toggle:active {
  transform: scale(0.97);
}
.card, .product-card, .service-card, .testimonial-card, .services-list > div {
  transition: box-shadow 0.19s, border-color 0.18s, transform 0.17s;
}
.card:hover, .product-card:hover, .service-card:hover, .testimonial-card:hover, .services-list > div:hover {
  transform: translateY(-2.5px) scale(1.013);
}

/* FOR HERO MAP MOCKUP IN KONTAKT */
.text-section > div[style*="zemljevida"] {
  background: #E7F0FF !important;
  border-radius: 8px;
  font-size: 1em;
  color: #799FC2;
  border: 1.5px dashed #BFD8EF;
  padding: 1em 0.5em;
  margin-top: 0.8em;
  margin-bottom: 1em;
}

/* ERROR/FOCUS STATES */
input:focus, textarea:focus, select:focus {
  outline: 2px solid #BFD8EF;
  outline-offset: 1.5px;
}

/* Accessibility/high contrast for testimonials/reviews */
.testimonial-card, .testimonial-card * {
  color: #234370;
  text-shadow: none;
}
.testimonial-card {
  background: #F7FAFF;
}

/* Hide navlinks for print */
@media print {
  header, .main-nav, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
}
