/* -------------------- CSS RESET & BASE ------------------- */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F7FAFD;
  color: #233241;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #185375;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FBC02D;
  outline: none;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1.2em;
}
strong {
  font-weight: 600;
}
button, .cta, input[type="submit"] {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* ------------ TYPOGRAPHY ------------------- */
h1, .h1 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: #185375;
  line-height: 1.18;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: #185375;
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #233241;
  margin-bottom: 12px;
}
p, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #233241;
  margin-bottom: 12px;
}
.subheadline {
  font-size: 1.125rem;
  color: #4C5A66;
  margin-bottom: 26px;
}

@media (min-width: 768px) {
  h1, .h1 { font-size: 2.8rem; }
  h2, .h2 { font-size: 2rem; }
  h3, .h3 { font-size: 1.35rem; }
}

/* ----------------- LAYOUT CONTAINERS & GRID ----------------- */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 32px 0 rgba(44, 60, 78, 0.04);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* CARD LAYOUTS, FLEXBOX ONLY */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 15px 0 rgba(32, 44, 54, 0.06);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 250px;
  min-width: 220px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.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: 768px) {
  .content-wrapper {
    gap: 18px;
  }
  .card-container, .content-grid, .feature-grid, .service-list {
    flex-direction: column;
    gap: 22px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .section {
    padding: 28px 9px;
    margin-bottom: 40px;
  }
}

/* ---------------- BRAND FLEX CONTAINER EXCEPTIONS ------------- */
.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(80, 93, 112, 0.07);
  flex: 1 1 220px;
  min-width: 200px;
  padding: 22px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.service-item {
  background: #F0F4F9;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(80, 93, 112, 0.04);
  flex: 1 1 220px;
  min-width: 200px;
  padding: 22px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.22s, transform 0.13s;
}
.service-item:hover, .feature:hover {
  box-shadow: 0 5px 36px 0 rgba(29, 52, 65, 0.12);
  transform: translateY(-2px) scale(1.03);
}

/* -------- HERO & ACCENT SECTIONS --------------- */
.hero {
  background: #F0F4F9;
  padding: 58px 0 36px 0;
  border-radius: 0 0 28px 28px;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.cta-section {
  margin-top: 48px;
  margin-bottom: 60px;
  padding: 38px 16px;
  background: #185375;
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 4px 36px 0 rgba(24, 83, 117, 0.13);
}
.cta-section.accent {
  background: #FBC02D;
  color: #0A2232;
}
.cta-section .cta.primary {
  margin-top: 22px;
}

@media (max-width: 768px) {
  .hero {
    padding: 32px 0 16px 0;
    border-radius: 0 0 14px 14px;
  }
  .cta-section {
    margin-top: 26px;
    margin-bottom: 32px;
    border-radius: 9px;
    padding: 22px 8px;
  }
}

/* ------------------ BUTTONS & CTA -------------------- */
.cta {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s, box-shadow 0.25s, transform 0.13s;
  box-shadow: 0 1px 7px 0 rgba(80, 93, 112, 0.08);
}
.cta.primary {
  background: #185375;
  color: #fff;
  border: 2px solid #185375;
}
.cta.primary:hover, .cta.primary:focus {
  background: #103959;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 22px 0 rgba(24, 83, 117, 0.13);
}
.cta.secondary {
  background: #fff;
  color: #185375;
  border: 2px solid #185375;
  margin-top: 18px;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #FBC02D;
  color: #0A2232;
  border-color: #FBC02D;
  transform: translateY(-1px) scale(1.03);
}

/* ---------------- NAVIGATION & HEADER --------------- */
header {
  background: #fff;
  box-shadow: 0 2px 24px 0 rgba(80, 93, 112, 0.09);
  position: sticky;
  top: 0;
  z-index: 200;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
}
.logo img {
  height: 38px;
  width: auto;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
nav a {
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  color: #185375;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
nav a[aria-current], nav a.active {
  color: #FBC02D;
}
nav a:hover, nav a:focus {
  background: #F0F4F9;
  color: #0A2232;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 980px) {
  header .container nav, header .container .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    font-size: 2.1rem;
    line-height: 1;
    color: #185375;
    background: none;
    border: none;
    margin-left: 14px;
    cursor: pointer;
    z-index: 302;
    padding: 0 8px 0 0;
    height: 42px;
    width: 44px;
    border-radius: 6px;
    transition: background 0.12s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #F0F4F9;
  }
}

/* -------------------- MOBILE MENU ------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(23, 83, 117, 0.97);
  backdrop-filter: blur(2px);
  z-index: 320;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.49,.17,0,1.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px 32px 0 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 19px;
  right: 27px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  z-index: 370;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FBC02D;
  color: #103959;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 42px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  font-family: 'Roboto Slab', 'Georgia', serif;
  padding: 12px 0;
  width: 100%;
  border-radius: 6px;
  transition: background 0.14s, color 0.18s;
  text-align: left;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FBC02D;
  color: #185375;
}
.mobile-nav a.active {
  background: #F0F4F9;
  color: #185375;
}
@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ----------------- TESTIMONIALS ------------------- */
.testimonials {
  margin-bottom: 60px;
}
.testimonials .content-wrapper {
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 22px 0 rgba(44, 60, 78, 0.08);
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  border-left: 7px solid #185375;
  color: #233241;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #233241;
  margin-bottom: 9px;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: #4C5A66;
}

/* ------------------- BLOG ELEMENTS ---------------- */
.blog-posts ul {
  list-style: none;
  margin-left: 0;
}
.blog-posts ul li {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 20px;
  padding: 22px 22px 16px 22px;
  box-shadow: 0 2px 18px 0 rgba(80, 93, 112, 0.06);
}
.blog-posts h3 {
  margin-bottom: 8px;
  color: #185375;
}
.blog-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-categories span {
  font-weight: 600;
}
.blog-categories a {
  color: #185375;
  font-size: 0.99rem;
  background: #F0F4F9;
  border-radius: 6px;
  padding: 5px 13px;
  margin: 0 3px;
  transition: background 0.19s, color 0.19s;
}
.blog-categories a:hover {
  background: #FBC02D;
  color: #0A2232;
}

/* ------------------- FOOTER --------------------- */
footer {
  background: #F0F4F9;
  padding: 44px 0 20px 0;
  border-top: 1.5px solid #E6EAF2;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img {
  width: 44px;
  height: 44px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-nav a {
  color: #233241;
  font-size: 1rem;
  padding: 3px 0;
  border-radius: 3px;
  font-weight: 400;
  transition: color 0.17s, background 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #185375;
  background: #FBC02D;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.97rem;
  color: #4C5A66;
}
.footer-contact a {
  color: #185375;
  transition: color 0.16s;
}
.footer-contact a:hover {
  color: #FBC02D;
}
@media (max-width: 860px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding-left: 5px;
  }
}

/* ------------------- LEGAL & TEXT SECTIONS -------------- */
.legal {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 16px 0 rgba(44, 60, 78, 0.06);
  padding: 40px 20px;
  margin-bottom: 52px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #233241;
}
.text-section ul {
  margin-bottom: 8px;
}
.text-section li {
  margin-bottom: 8px;
}

/* ------------------- THANK YOU PAGE --------------------- */
.thank-you .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 22px;
}
.thank-you h1 {
  color: #185375;
}
.thank-you a.cta.primary {
  margin-top: 8px;
}

/* -------- CONTACT PAGE SPECIFIC (also flex) ---------- */
.contact-section .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.map-section .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

/* ----------------- COOKIE CONSENT BANNER ----------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -3px 24px 0 rgba(80, 93, 112, 0.09), 0 -1px 0 #E6EAF2;
  padding: 22px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 900;
  gap: 13px;
  animation: cookieFadeIn 0.55s 0.1s both;
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(64px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner a,
.cookie-banner p {
  color: #233241;
  font-size: 0.99rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 8px;
}
.cookie-banner button {
  padding: 8px 29px;
  border-radius: 21px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: background 0.18s, color 0.16s;
  cursor: pointer;
  background: #F0F4F9;
  color: #185375;
}
.cookie-banner .accept-cookie {
  background: #185375;
  color: #fff;
  border: 2px solid #185375;
}
.cookie-banner .accept-cookie:hover {
  background: #103959;
  color: #fff;
}
.cookie-banner .reject-cookie {
  background: #fff;
  color: #4C5A66;
  border: 2px solid #E7E7E7;
}
.cookie-banner .reject-cookie:hover {
  background: #F0F4F9;
  color: #185375;
  border-color: #185375;
}
.cookie-banner .settings-cookie {
  background: #FBC02D;
  color: #0A2232;
  border: 2px solid #FBC02D;
}
.cookie-banner .settings-cookie:hover {
  background: #185375;
  color: #FBC02D;
  border-color: #185375;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  min-height: 280px;
  max-height: 96vh;
  background: #fff;
  box-shadow: 0 0 44px 0 rgba(24,83,117,0.16);
  z-index: 999;
  padding: 35px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cookieModalIn 0.4s cubic-bezier(.42,.21,0,1.18);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(120px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal h2 {
  color: #185375;
  font-size: 1.32rem;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: #F0F4F9;
  border-radius: 8px;
  padding: 11px 18px;
  margin-bottom: 13px;
  width: 100%;
  max-width: 492px;
  font-size: 1.01rem;
  justify-content: space-between;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #185375;
}
.cookie-category.essential label::after {
  content: ' (vedno omogočeno)';
  color: #185375;
  font-size: 0.95em;
  margin-left: 3px;
  font-weight: 400;
}
.cookie-modal .cookie-actions {
  margin-top: 26px;
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 19px 7px;
  }
  .cookie-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 8px;
    font-size: 0.97rem;
  }
}

/* Hide banner/modal by default, let JS set .visible */
.cookie-banner, .cookie-modal {
  display: none;
}
.cookie-banner.visible, .cookie-modal.visible {
  display: flex;
}

/* ---------------- MICRO-INTERACTIONS / COMMON EFFECTS ------------------- */
.feature img, .service-item img {
  width: 36px;
  height: 36px;
}
.feature img, .service-item img {
  filter: grayscale(0.1) brightness(0.89);
  transition: filter 0.23s;
}
.feature:hover img, .service-item:hover img {
  filter: grayscale(0.01) brightness(1) drop-shadow(0px 2px 8px #FBC02D88);
}
.card, .feature, .service-item, .testimonial-card, .blog-posts ul li {
  transition: box-shadow 0.18s, transform 0.12s;
}
.card:hover, .feature:hover, .service-item:hover, .blog-posts ul li:hover {
  box-shadow: 0 7px 28px 0 rgba(80, 93, 112, 0.12);
  transform: translateY(-2px) scale(1.01);
}

/* ---------------- SPACING BETWEEN CARDS/SECTIONS --------------------- */
section, .section {
  margin-bottom: 60px;
}
.card, .feature, .service-item, .testimonial-card, .blog-posts ul li {
  margin-bottom: 20px;
}
.card-container, .content-grid, .feature-grid, .service-list {
  gap: 24px;
}
@media (max-width: 768px) {
  section, .section {
    margin-bottom: 34px;
  }
  .card, .feature, .service-item, .testimonial-card, .blog-posts ul li {
    margin-bottom: 16px;
  }
}

/* -------------------- SCANDINAVIAN GENTLE TOUCH -------------------- */
.card, .feature, .testimonial-card, .service-item {
  box-shadow: 0 2px 18px 0 rgba(44, 60, 78, 0.07);
  border-radius: 11px;
  background: #fff;
  border: 1px solid #EFF4F8;
}
.section {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 35px 0 rgba(44, 60, 78, 0.06);
  border: 1.5px solid #F0F4F9;
}
.hero, .footer-nav, .footer-contact, .footer-brand {
  background: none;
  box-shadow: none;
  border: none;
}
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
}
@media (max-width: 430px) {
  .card, .feature, .service-item, .testimonial-card, .blog-posts ul li, .section {
    padding-left: 7px;
    padding-right: 7px;
  }
  .footer-nav, .footer-contact, .footer-brand {
    text-align: left;
    align-items: flex-start;
  }
}

/* ------------ UTILITY CLASSES (for flex containers) ------------- */
.flex {
  display: flex;
  flex-wrap: wrap;
}
.flex.col {
  flex-direction: column;
}
.flex.row {
  flex-direction: row;
}
.flex.align-center {
  align-items: center;
}
.flex.justify-between {
  justify-content: space-between;
}
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* ----------- FOCUS VISIBLE OUTLINES ----------- */
a:focus, button:focus {
  outline: 2px dashed #185375;
  outline-offset: 2px;
}

/* ----------- SCROLLBAR STYLING -------------- */
::-webkit-scrollbar {
  width: 11px;
  background: #F0F4F9;
}
::-webkit-scrollbar-thumb {
  background: #d5dbe6;
  border-radius: 6px;
}

/* ----------- ERROR STATES ----------- */
.error, .invalid {
  color: #D43333;
  font-weight: 600;
}

/* ------------- NATURAL MATERIAL INSPIRED DECORATIVE ELEMENTS (SUBTLE) ----------- */
/* For hover on cards/CTA: faint accent box-shadow for warmth                   */
.card:hover, .feature:hover, .testimonial-card:hover, .service-item:hover {
  box-shadow: 0 9px 36px 0 rgba(251,192,45,0.08), 0 3px 33px 0 rgba(24,83,117,0.08);
}

/* ------------- PRINT OPTIMIZATION --------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  main, .container, .section {
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
  }
}

/* --------------- END OF CSS ------------- */
