/* CSS RESET & NORMALIZATION */
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;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #19405A;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-color: #f8fafb;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
a {
  color: #177245;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}
a:hover, a:focus {
  color: #f75d19;
  text-decoration: underline;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}

/* BRANDING COLORS */
:root {
  --kcp-primary: #177245;
  --kcp-secondary: #19405A;
  --kcp-accent: #EAF6ED;
  --kcp-white: #ffffff;
  --kcp-black: #181C22;
  --kcp-energetic1: #f75d19;
  --kcp-energetic2: #f8d800;
  --kcp-energetic3: #00d9ff;
  --kcp-energetic4: #a128c4;
  --kcp-text: #19405A;
  --kcp-success: #25ce98;
  --kcp-shadow: 0 2px 12px rgba(23, 114, 69, 0.10), 0 0.5px 2px rgba(19,30,40,0.09);
}


/* TYPOGRAPHY */
h1, .h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: -1px;
  color: var(--kcp-primary);
  margin-bottom: 20px;
  line-height: 1.16;
  text-shadow: 0 4px 24px #17724532;
}
h2, .h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--kcp-energetic1);
  margin-bottom: 16px;
  line-height: 1.18;
  text-shadow: 0 2px 8px #f75d1911;
}
h3, .h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--kcp-secondary);
}

h4, .h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--kcp-energetic4);
  margin-bottom: 6px;
}

p, li, address {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--kcp-text);
}

strong {
  font-weight: 700;
  color: var(--kcp-primary);
}
em {
  font-style: italic;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--kcp-accent);
  border-radius: 20px;
  box-shadow: 0 2px 24px #19405A18;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 0;
}
.text-section {
  gap: 16px;
  background: none;
  box-shadow: none;
}

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

.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--kcp-white);
  border-radius: 14px;
  box-shadow: var(--kcp-shadow);
  padding: 32px 24px;
  min-width: 240px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 5px 28px #17724525;
  transform: translateY(-5px) scale(1.025);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  background: var(--kcp-accent);
  border-radius: 18px;
  min-width: 240px;
  margin-bottom: 20px;
  box-shadow: 0 3px 18px #19405A28;
  border-left: 5px solid var(--kcp-energetic1);
  color: var(--kcp-text);
  font-size: 1.1rem;
}
.testimonial-card strong {
  color: var(--kcp-primary);
  font-weight: 800;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

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

/* LISTS, ICONS, ACCORDIONS */
ul, ol {
  margin-bottom: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
ul li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px #17724511);
}

.faq-accordion > div {
  margin-bottom: 24px;
  background: #fff;
  border-radius: 12px;
  padding: 20px 20px 8px 20px;
  box-shadow: 0 1.5px 16px #19405A10;
  cursor: pointer;
  transition: box-shadow 0.16s, transform 0.14s;
}
.faq-accordion > div:hover {
  box-shadow: 0 4px 26px #17724516;
  transform: scale(1.015);
}

.quick-contact-prompt {
  background: var(--kcp-energetic1);
  color: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-top: 24px;
}
.quick-contact-prompt a { color: #fff; text-decoration: underline; }
.quick-contact-prompt a:hover { color: #19405A; }

/* BUTTONS & CTAS */
.cta-primary,
button.cta-primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  padding: 16px 32px;
  background: linear-gradient(90deg,#177245 65%, #25ce98 100%);
  color: #fff;
  border: none;
  border-radius: 32px;
  box-shadow: 0 4px 18px #25ce9845, 0 2px 8px #1772451a;
  cursor: pointer;
  letter-spacing: .04em;
  outline: none;
  margin-top: 12px;
  transition: background 0.18s, box-shadow 0.22s, transform 0.18s;
  display: inline-block;
  position: relative;
  z-index: 1;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #25ce98 30%, #f75d19 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px #f75d191f, 0 2px 8px #25ce9840;
}

.cta-secondary {
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #177245;
  background: #fff;
  border: 2px solid #177245;
  border-radius: 32px;
  padding: 12px 24px;
  margin-top: 10px;
  transition: color 0.2s, background 0.2s, border 0.2s;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  color: #fff;
  background: #177245;
  border-color: #177245;
}

button { cursor: pointer; }

/* TABLES (in .content-wrapper) */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px #1772450b;
}
thead {
  background: var(--kcp-energetic2);
}
th, td {
  padding: 14px 12px;
  font-size: 1rem;
  text-align: left;
}
th {
  font-weight: 800;
  color: var(--kcp-secondary);
  background: var(--kcp-energetic2);
}
tbody tr { border-bottom: 1px solid #e9ecef; }
tbody tr:last-child { border-bottom: none; }
td { color: var(--kcp-secondary); }
tbody tr:hover { background: var(--kcp-energetic3); transition: background 0.16s; }

/* HEADER & NAVIGATION */
header {
  background: var(--kcp-white);
  box-shadow: 0 2.5px 14px #1772450e;
  z-index: 99;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 23px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  color: #19405A;
  font-size: 1rem;
  position: relative;
  letter-spacing: .02em;
  padding: 4px 0;
}
.main-nav a:after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 0%;
  height: 2.5px;
  background: #f75d19;
  border-radius: 2px;
  transition: width .19s;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 90%;
}

.mobile-menu-toggle {
  display: none;
  background: #19405A;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  transition: background .19s, color .15s;
  z-index: 201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #177245;
  color: #f8d800;
}

/* MOBILE MENU STYLES */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,64,90,0.95);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(105vw);
  transition: transform 0.35s cubic-bezier(.86,0,.07,1);
  box-shadow: -6px 0 32px #17724521;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 209;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  margin-top: 88px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.6rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  color: #fff;
  padding: 12px 0;
  letter-spacing: .03em;
  background: none;
  border-radius: 10px;
  width: 90%;
  text-align: center;
  transition: background .14s, color .14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #25ce98;
  color: #177245;
}

@media (max-width: 1140px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 991px) {
  header .container {
    max-width: 98vw;
  }
}

@media (max-width: 900px) {
  .content-wrapper, .card-container, .card-grid, .content-grid {
    gap: 14px !important;
  }
  .main-nav {
    gap: 13px;
  }
}

@media (max-width: 850px) {
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  .main-nav {
    gap: 2vw;
  }
}

@media (max-width: 768px) {
  html { font-size: 95%; }
  .container { padding-left: 10px; padding-right: 10px; }
  .section { padding: 28px 6px; margin-bottom: 36px; border-radius: 14px; }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.4rem; }
  .content-wrapper, .text-section, .card-grid, .card-container, .content-grid {
    gap: 10px !important;
  }
  .testimonial-card { padding: 16px 12px; }
  .main-nav { display: none; }
  .cta-primary { font-size: 1rem; padding: 12px 18px; }
  .mobile-menu-toggle { display: flex; }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

@media (max-width: 490px) {
  h1, .h1 { font-size: 1.35rem; }
  h2, .h2 { font-size: 1rem; }
}

@media (max-width: 600px) {
  .card, .testimonial-card {
    padding: 12px 8px;
    min-width: 140px;
    font-size: 0.98rem;
  }
}

/* FOOTER */
footer {
  background: #19405A;
  color: #fff;
  padding: 0 0 24px 0;
  margin-top: 64px;
}
footer .container {
  padding-top: 40px;
  padding-bottom: 20px;
}
footer .content-wrapper {
  display: flex;
  gap: 44px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 0;
}
footer h3 {
  color: var(--kcp-energetic3);
  font-size: 1.15rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
}
footer a, footer address {
  color: #fff;
  font-size: 1rem;
}
footer a:hover { color: #f8d800; text-decoration: underline; }
footer address { font-style: normal; margin-bottom: 4px; }
footer .social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
footer .social-links a {
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
footer .social-links a:hover {
  background: #f8d800;
}
footer .social-links img {
  width: 22px; height: 22px;
}

@media (max-width: 800px) {
  footer .content-wrapper { gap: 20px; flex-direction: column; align-items: flex-start; }
  footer .container { padding-top: 26px; }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #19405A;
  color: #fff;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 6vw 18px 16px;
  box-shadow: 0 -2px 24px #1772452a;
  font-size: 1rem;
  animation: cookie-slide-in 0.5s cubic-bezier(.65,0,.2,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 18px;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  margin-left: 2px;
  transition: background .18s;
}
.cookie-banner .accept {
  background: #25ce98;
  color: #fff;
}
.cookie-banner .accept:hover { background: #f75d19; }
.cookie-banner .reject {
  background: #fff;
  color: #19405A;
}
.cookie-banner .reject:hover { background: #f75d19; color: #fff; }
.cookie-banner .settings {
  background: #f8d800;
  color: #19405A;
}
.cookie-banner .settings:hover { background: #19405A; color: #f8d800; }

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px 6vw; gap: 10px; }
  .cookie-banner__buttons { flex-wrap: wrap; gap: 10px; }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24,28,34,.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: all;
  animation: cookie-modal-in 0.33s cubic-bezier(.66,0,.13,1) both;
}
@keyframes cookie-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #19405A;
  border-radius: 18px;
  max-width: 98vw;
  width: 350px;
  padding: 32px 24px 16px 24px;
  box-shadow: 0 2px 30px #17724522, 0 0.5px 2px #19405A0f;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h3 {
  color: #f75d19;
  margin-bottom: 0;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-modal label {
  font-size: 1rem;
  font-weight: 600;
}
.cookie-modal .toggle {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: #e3e9ef;
  position: relative;
  transition: background 0.18s;
}
.cookie-modal .toggle input {
  display: none;
}
.cookie-modal .slider {
  position: absolute;
  top: 3px; left: 4px;
  width: 16px; height: 16px;
  background: #25ce98;
  border-radius: 50%;
  transition: transform .19s, background .17s;
}
.cookie-modal .toggle input:checked + .slider {
  background: #177245;
  transform: translateX(14px);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal .cookie-actions button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 18px;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  background: #25ce98;
  color: #fff;
  transition: background .18s;
}
.cookie-modal .cookie-actions .cancel {
  background: #f8d800; color: #19405A;
}
.cookie-modal .cookie-actions .cancel:hover {
  background: #19405A; color: #f8d800;
}
.cookie-modal .cookie-actions .save {
  background: #25ce98; color: #fff;
}
.cookie-modal .cookie-actions .save:hover {
  background: #177245;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: #19405A;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 9;
  transition: color 0.18s;
}
.cookie-modal .modal-close:hover {
  color: #f75d19;
}

@media (max-width: 410px) {
  .cookie-modal { padding: 14px 6px; width: 96vw; min-width: 0; }
}

/* ANIMATIONS & MICRO-INTERACTIONS */
.cta-primary, .cta-secondary, .card, .testimonial-card, .faq-accordion > div {
  transition: box-shadow .22s, transform .19s, color .17s, background .19s, border .17s;
}
@media (hover: hover) {
  .card:hover, .testimonial-card:hover {
    box-shadow: 0 10px 32px #1772452e, 0 2px 8px #25ce9822;
    transform: translateY(-4px) scale(1.032);
  }
}

/* UTILITIES */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* Hide visually but accessible to screen readers */
.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ELECTRIC VIBRANT ACCENTS */
h1, h2, .cta-primary, .card, .testimonial-card, .mobile-menu {
  box-shadow: 0 1.5px 12px #00d9ff10, 0 0.5px 4px #f75d190b;
}
.section {
  border: 2.5px solid #25ce9822;
  background: linear-gradient(120deg, #eaf6ed 88%, #f8d80012 100%);
}
.card, .testimonial-card {
  border: 2px solid #f8d80021;
  background-color: #fff;
}
.cta-primary {
  /* box-shadow already in component */
  border: 2.5px solid #00d9ff30;
  background: linear-gradient(90deg, #25ce98 70%, #00d9ff 100%);
  text-shadow: 0 1px 6px #00d9ff11;
}
.cta-primary:hover {
  background: linear-gradient(90deg, #00d9ff 30%, #f75d19 85%);
  border-color: #f8d800aa;
}

/* Fix for tables and responsive overflow */
@media (max-width: 650px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  thead tr { display: none; }
  td { position: relative; padding-left: 40%; }
  td:before {
    position: absolute;
    top: .5em; left: 10px;
    width: 38%;
    white-space: pre-wrap;
    font-weight: 800;
    color: #177245;
    content: attr(data-label);
  }
}

/* ELECTRIC FOCUS RINGS */
button:focus, .cta-primary:focus, .cta-secondary:focus, a:focus {
  outline: 2.5px solid #00d9ff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #f8d80060;
}

/* ----- SPACING Between Cards, Content Blocks ----- */
.card + .card, .testimonial-card + .testimonial-card, .content-wrapper > * + * { margin-top: 20px; }
/* Remove duplicate margin if inside .card-container or .card-grid etc */
.card-container > *, .card-grid > *, .content-grid > *, .content-wrapper > * {
  margin-bottom: 0 !important;
}

/* Ensure NO content overlap and consistent gaps -- spacing safety net */
.section, .card, .testimonial-card, .card-content, .text-section, .feature-item {
  box-sizing: border-box;
}

/* Responsive fix for .testimonial-card (for contrast, always dark text) */
.testimonial-card {
  color: var(--kcp-text) !important;
  background: #eaf6ed;
  border-left: 5px solid #25ce98;
}

/* Fix for .faq-accordion text (contrast) */
.faq-accordion > div {
  color: var(--kcp-secondary);
  background: #fff;
}

/* Hide scroll on mobile menu when open */
body.menu-open {
  overflow: hidden;
  height: 100vh;
}

/* ----- END OF STYLE.CSS (KAPKA ČASU - vibrant energetic) ----- */
