/* --- 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;
}
html {
  box-sizing: border-box;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #F5F6F4;
  color: #294A51;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #294A51;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}

p, li, blockquote, dd {
  font-size: 1rem;
  margin-bottom: 10px;
}

strong {
  font-weight: 700;
}
blockquote {
  font-style: italic;
  color: #294A51;
  background: #F5F6F4;
  border-left: 3px solid #294A51;
  padding-left: 16px;
  margin-bottom: 8px;
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* --- LINKS --- */
a {
  color: #294A51;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #3D6972;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(41,74,81,0.05);
  padding: 40px 24px;
  margin-bottom: 40px;
  transition: box-shadow 0.3s;
}
.text-section:hover {
  box-shadow: 0 6px 24px 0 rgba(41,74,81,0.10);
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 1.5px solid #E3E7EB;
  padding: 0 0;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
header a img {
  height: 38px;
  margin-right: 12px;
  vertical-align: middle;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 6px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #F5F6F4;
  color: #294A51;
}
.cta-button {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  background: #294A51;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  margin-left: 26px;
  box-shadow: 0 1px 8px 0 rgba(41, 74, 81, 0.10);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.25s, color 0.2s;
  letter-spacing: 0.06em;
}
.cta-button:hover, .cta-button:focus {
  background: #3D6972;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(41,74,81,0.13);
}

/* --- HERO SECTION --- */
.hero {
  background: #E8EEF1;
  display: flex;
  align-items: center;
  min-height: 320px;
  margin-bottom: 60px;
  padding: 60px 0 56px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 0 20px;
}
.hero .content-wrapper {
  max-width: 600px;
  align-items: flex-start;
  gap: 22px;
}

/* --- FEATURE GRID (index, resitve-za-varcevanje, services) --- */
.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .service-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(41,74,81,0.06);
  padding: 32px 20px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: calc(33.33% - 16px);
  min-width: 260px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s, transform 0.19s;
}
.feature-grid > div img,
.service-item img {
  height: 38px;
  width: 38px;
  background: #F5F6F4;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 10px;
}
.feature-grid > div:hover,
.service-item:hover {
  box-shadow: 0 6px 22px 0 rgba(41,74,81,0.12);
  transform: translateY(-2px) scale(1.03);
}

/* --- SECTION SPACING & LAYOUT --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 10px 0 rgba(41,74,81,0.05);
}
.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;
  margin-bottom: 32px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #294A51;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(41,74,81,0.10);
  padding: 28px 28px 24px 28px;
  margin-bottom: 24px;
  min-width: 240px;
  max-width: 500px;
  border-left: 5px solid #294A51;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- CARDS: BLOG, CASE STUDY, ETC. --- */
.blog-card, .case-study {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 10px 0 rgba(41,74,81,0.075);
  margin-bottom: 20px;
  padding: 26px 22px 18px 22px;
  min-width: 240px;
  font-size: 1rem;
  transition: box-shadow 0.25s;
  border-left: 3px solid #97AABD;
}
.blog-card:hover, .case-study:hover {
  box-shadow: 0 4px 22px 0 rgba(41,74,81,0.13);
}

/* --- FOOTER --- */
footer {
  background: #E8EEF1;
  border-top: 1.5px solid #E3E7EB;
  padding: 30px 0 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 8px;
}
.footer-contact {
  font-size: 0.97rem;
  line-height: 1.5;
  color: #294A51;
  text-align: center;
}
.footer-contact a {
  color: #294A51;
  text-decoration: underline;
  word-break: break-all;
}
.footer-contact a:hover {
  color: #3D6972;
}

/* --- CONTACT DETAILS --- */
.contact-details {
  background: #F5F6F4;
  border-radius: 10px;
  padding: 22px 20px 14px 20px;
  margin-bottom: 18px;
  font-size: 1rem;
}

/* --- LISTS, DL --- */
dl, dt, dd {
  margin-bottom: 10px;
}

/* --- SPECIAL CLASSES --- */
.service-list {
  margin-bottom: 26px;
}
.service-item p strong {
  color: #294A51;
  font-weight: 700;
  font-size: 1.05em;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #294A51;
  border-top: 2px solid #E3E7EB;
  box-shadow: 0 -2px 12px 0 rgba(41,74,81,0.07);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  z-index: 1400;
  gap: 20px;
  font-size: 1rem;
  animation: cookieIn 0.45s cubic-bezier(.32,1.56,.3,.86);
}
@keyframes cookieIn {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #F5F6F4;
  color: #294A51;
  margin-right: 2px;
  transition: background 0.13s, color 0.17s;
}
.cookie-banner button.cookie-accept {
  background: #294A51;
  color: #fff;
}
.cookie-banner button.cookie-accept:hover {
  background: #3D6972;
}
.cookie-banner button.cookie-reject {
  background: #97AABD;
  color: #294A51;
}
.cookie-banner button.cookie-reject:hover {
  background: #294A51;
  color: #fff;
}
.cookie-banner button.cookie-settings {
  background: #F5F6F4;
  color: #294A51;
  border: 1px solid #97AABD;
}
.cookie-banner button.cookie-settings:hover {
  background: #E8EEF1;
}
/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(41, 74, 81, 0.28);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieIn 0.25s cubic-bezier(.32,1.56,.3,.86);
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 48px 0 rgba(41,74,81,0.15);
  padding: 38px 32px 28px 32px;
  width: 95vw;
  max-width: 400px;
  z-index: 1501;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieIn 0.18s cubic-bezier(.32,1.56,.3,.86);
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 500;
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-right: 2px;
  transition: background 0.13s, color 0.17s;
}
.cookie-modal .cookie-save {
  background: #294A51;
  color: #fff;
}
.cookie-modal .cookie-save:hover {
  background: #3D6972;
}
.cookie-modal .cookie-cancel {
  background: #F5F6F4;
  color: #294A51;
  border: 1px solid #97AABD;
}
.cookie-modal .cookie-cancel:hover {
  background: #E8EEF1;
}


/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #294A51;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  padding: 8px 16px;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1200;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(41,74,81,0.11);
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #3D6972;
  outline: none;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #294A51;
  z-index: 2000;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 24px;
  transform: translateX(100vw);
  transition: transform 0.34s cubic-bezier(.22,1.32,.32,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  box-shadow: -2px 0 28px 0 rgba(41,74,81,0.17);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  position: absolute;
  top: 20px;
  right: 25px;
  cursor: pointer;
  z-index: 2010;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 56px 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  padding: 10px 0;
  border-radius: 7px;
  transition: background 0.19s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #97AABD;
  color: #294A51;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .feature-grid > div, .service-item {
    width: calc(50% - 16px);
    min-width: 220px;
  }
  .feature-grid, .service-list {
    gap: 20px;
  }
}
@media (max-width: 850px) {
  section {
    padding: 28px 6px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .feature-grid, .service-list {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  header {
    flex-direction: row;
    height: 62px;
    padding: 2px 6px 2px 6px;
  }
  header nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
    padding: 10px 18px;
    font-size: 0.99rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    padding: 38px 0 32px 0;
    min-height: 180px;
  }
  .feature-grid > div, .service-item {
    width: 100%;
    min-width: unset;
    padding: 22px 14px 16px 14px;
  }
  .feature-grid, .service-list {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .blog-card, .case-study {
    min-width: unset;
    max-width: unset;
    padding: 20px 12px 18px 14px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
  .footer-contact {
    text-align: left;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.22rem;
  }
  .hero .content-wrapper {
    max-width: 98vw;
    padding: 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 6px;
    gap: 8px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 18px 10px 18px 14px;
  }
}

/* --- MICRO INTERACTIONS --- */
button, .cta-button {
  transition: background 0.19s, box-shadow 0.21s, color 0.15s, transform 0.15s;
}
button:active, .cta-button:active {
  transform: scale(0.97);
}

/* --- FORMS (future proof) --- */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #E3E7EB;
  padding: 10px 12px;
  background: #F5F6F4;
  color: #294A51;
  margin-bottom: 12px;
  transition: border 0.18s;
}
input:focus, textarea:focus {
  border: 1.5px solid #294A51;
  outline: none;
}
label {
  font-size: 1rem;
  color: #294A51;
}

/* --- SCROLLBAR (modern, non-intrusive) --- */
::-webkit-scrollbar {
  width: 10px;
  background: #F5F6F4;
}
::-webkit-scrollbar-thumb {
  background: #E3E7EB;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B1BBC2;
}

/* --- UTILITIES --- */
.hide {
  display: none !important;
}
.show {
  display: block !important;
}

/* --- ACCESSIBILITY OUTLINE --- */
a:focus, button:focus, input:focus, .cta-button:focus {
  outline: 2px solid #97AABD;
  outline-offset: 2px;
}
