/* ===================== 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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: "Roboto", Arial, sans-serif;
  background: #f5f6fa;
  color: #162634;
  min-height: 100vh;
  line-height: 1.58;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #143a52;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #59b1c6;
  text-decoration: underline dotted;
}
img {
  max-width: 100%;
  display: block;
}
hr {
  border: none;
  border-top: 2px dashed #59b1c6;
  margin: 24px 0;
}

/* ===================== BRAND COLORS ===================== */
:root {
  --primary: #143a52;
  --secondary: #59b1c6;
  --accent: #f5f6fa;
  --creamy: #fff8f4;
  --highlight: #ffda77;
  --purple: #7c3aed;
  --pink: #ff5486;
  --card-shadow: rgba(21,45,61,0.12);
  --text: #162634;
  --text-light: #fff;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", "Roboto", Arial, sans-serif;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--primary);
  letter-spacing: 1.2px;
  line-height: 1.15;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #59b1c6 40%, #143a52 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 {
  font-size: 2rem;
  color: var(--secondary);
  margin-top: 12px;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  color: var(--primary);
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: var(--primary);
}
p, ul, ol {
  font-size: 1.05rem;
  margin-bottom: 14px;
}
strong {
  color: var(--primary);
}
em {
  color: var(--purple);
}

/* Artful List Bullets */
ul, ol {
  margin-left: 24px;
  padding-left: 14px;
  margin-bottom: 16px;
}
ul li, ol li {
  position: relative;
  margin-bottom: 8px;
  line-height: 1.72;
  padding-left: 13px;
}
ul li::before {
  content: "\2022";
  color: var(--pink);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2em;
  top: 1px;
  line-height: 1;
}
ol li {
  list-style-type: decimal;
  padding-left: 2px;
}

/* Tables (used in Primerjave/Svetovanje) */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0 16px 0;
  font-size: 1rem;
  background: var(--accent);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 19px -10px var(--card-shadow);
}
thead th {
  background: var(--secondary);
  color: var(--text-light);
  padding: 10px 16px;
  font-weight: bold;
  text-align: left;
  font-family: "Montserrat", sans-serif;
}
tbody td {
  padding: 9px 13px;
  border-bottom: 1px solid #dde4ec;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:nth-child(even) {
  background: #e7f4fa;
}

/* ===================== FLEX SPACING, SECTIONS, GRIDS ===================== */
.container {
  max-width: 1140px;
  padding: 0 18px;
  margin: 0 auto;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  background: var(--creamy);
  border-radius: 18px;
  box-shadow: 0 3px 24px -14px var(--card-shadow);
  padding: 34px 26px;
  margin-bottom: 28px;
  border-left: 6px solid var(--secondary);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  border-radius: 18px;
  margin-bottom: 20px;
  padding: 24px 20px;
  box-shadow: 0 4px 34px -18px var(--card-shadow);
  position: relative;
  transition: transform 0.26s, box-shadow 0.26s;
}
.card:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 38px -10px rgba(20,58,82,0.21);
  z-index: 2;
}
.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;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  margin-bottom: 20px;
  padding: 20px 30px 18px 30px;
  border-radius: 22px;
  box-shadow: 0 2px 18px -8px rgba(44,47,76, .15);
  border-left: 5px solid var(--secondary);
  transition: box-shadow 0.22s, border-left-color 0.2s;
}
.testimonial-card strong {
  color: var(--purple);
  font-weight: bold;
}
.testimonial-card p {
  color: #222f3a;
  font-size: 1.10rem;
  font-style: italic;
  margin-bottom: 0.25em;
}
.testimonial-card:hover {
  box-shadow: 0 7px 30px -8px rgba(44,47,76, .23);
  border-left-color: var(--pink);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================== HEADER & NAVIGATION ===================== */
header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  box-shadow: 0 3px 20px -6px var(--card-shadow);
  display: flex;
  align-items: center;
  padding: 0;
}
header > a img {
  height: 56px;
  margin: 16px 20px 16px 0;
  display: block;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-left: 12px;
}
header nav a {
  font-family: "Montserrat", sans-serif;
  font-size: 1.06rem;
  color: var(--primary);
  font-weight: 700;
  padding: 7px 3px;
  border-radius: 4px;
  transition: background 0.17s, color 0.17s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--secondary);
  text-decoration: none;
}
.cta-primary {
  background: linear-gradient(95deg, #ff5486 0%, #59b1c6 95%);
  color: #fff !important;
  border: none;
  border-radius: 29px;
  padding: 12px 34px;
  margin-left: 30px;
  font-size: 1.13rem;
  font-weight: 900;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px -7px #143a5272;
  transition: background 0.22s, box-shadow 0.18s, transform 0.12s;
  cursor: pointer;
  display: inline-block;
  position: relative;
  text-rendering: geometricPrecision;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(87deg, #59b1c6 0%, #ff5486 100%);
  color: #fff;
  box-shadow: 0 7px 30px -7px #7c3aed44;
  transform: translateY(-2px) scale(1.025);
  text-decoration: none;
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  margin-left: 28px;
  cursor: pointer;
  z-index: 300;
  border-radius: 10px;
  padding: 6px 14px;
  transition: background 0.14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e1f3f6;
  outline: none;
}

/* ========== MOBILE NAVIGATION OVERLAY ========== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(115deg, #fff 87%, #59b1c6 100%);
  z-index: 9010;
  transform: translateX(-100%);
  transition: transform 0.46s cubic-bezier(0.48,0.01,0.24,1);
  box-shadow: 12px 0 60px -10px var(--card-shadow);
  padding: 38px 26px 24px 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  position: absolute;
  top: 29px;
  right: 28px;
  z-index: 9020;
  cursor: pointer;
  border-radius: 10px;
  padding: 3px 12px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #dde8f4;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 46px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  padding: 16px 0 8px 12px;
  border-bottom: 2px dashed #59b1c6;
  border-radius: 6px;
  transition: background 0.18s, color 0.17s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff8f4;
  color: #ff5486;
  text-decoration: none;
}

/* Show/hide mobile nav and desktop nav */
@media (max-width: 1024px) {
  header nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===================== MAIN & CARDS LAYOUT ===================== */
main {
  margin-top: 18px;
  margin-bottom: 38px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 0;
}
@media (max-width: 768px) {
  section {
    padding: 28px 6px 28px 6px;
    margin-bottom: 36px;
  }
  .text-section {
    padding: 22px 10px;
    border-radius: 14px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.33rem;
  }
  .content-wrapper {
    gap: 12px;
  }
}

/* ===================== BUTTONS & INTERACTIONS ===================== */
button, .btn, input[type="submit"] {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 19px;
  padding: 11px 32px;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 2px 12px -5px var(--card-shadow);
  transition: background 0.18s, color 0.12s, box-shadow 0.18s;
  outline: none;
  letter-spacing: 0.06em;
}
button.secondary, .btn.secondary {
  background: var(--purple);
}
button.pale, .btn.pale {
  background: #fff8f4;
  color: var(--primary);
  border: 1px solid var(--secondary);
}
button:hover, .btn:hover,
input[type="submit"]:hover,
button:focus, .btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px -7px var(--purple);
}

/* =============== FOOTER =============== */
footer {
  background: #f7fafc;
  padding: 31px 0 0 0;
  margin-top: 80px;
  border-top: 3px solid var(--secondary);
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
footer nav a {
  font-weight: 600;
  color: var(--primary);
  font-size: 1em;
  padding: 3px 6px;
  border-radius: 6px;
  transition: background 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: #e7f4fa;
  color: var(--secondary);
  text-decoration: none;
}
footer p {
  color: #587182;
  font-size: 0.99em;
  margin: 0 0 14px 0;
}

/* ============ COOKIE CONSENT BANNER ============ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 999999;
  background: linear-gradient(95deg, #143a52 92%, #59b1c6 100%);
  color: #fff;
  padding: 23px 10px 18px 10px;
  box-shadow: 0 -4px 26px -10px #143a527a;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 1.04rem;
  letter-spacing: 0.02em;
  min-height: 60px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.35s ease, opacity 0.25s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  margin-left: 25px;
}
.cookie-banner button {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 8px 20px;
  font-size: 1em;
  transition: background 0.15s, color 0.13s, box-shadow 0.13s;
  margin-top: 2px;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #ff5486;
  color: #fff;
  box-shadow: 0 1px 6px -2px #7c3aed77;
}

/* ========== Cookie Modal ========== */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(20,58,82, 0.46);
  z-index: 100003;
  justify-content: center;
  align-items: center;
  animation: fadein-cookie-modal 0.35s cubic-bezier(.66,-0.02,.6,.99);
}
.cookie-modal.open {
  display: flex;
}
@keyframes fadein-cookie-modal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #143a52;
  width: 95vw; max-width: 350px;
  border-radius: 18px;
  box-shadow: 0 10px 34px -4px #143a525a;
  padding: 36px 30px 20px 30px;
  text-align: left;
  position: relative;
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: showcookie 0.53s cubic-bezier(.66,-0.02,.6,.99);
}
@keyframes showcookie {
  0% { transform: scale(0.95) translateY(80px); opacity: 0.2; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h3 {
  font-size: 1.23rem;
  color: var(--primary);
  font-family: "Montserrat", sans-serif;
  margin-bottom: 12px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08em;
  margin-bottom: 6px;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 19px;
  height: 19px;
}
.cookie-modal-content .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 7px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 11px; right: 14px;
  background: none;
  border: none;
  color: #143a52;
  font-size: 1.3em;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal .cookie-modal-close:hover {
  background: #e7f4fc;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: "Montserrat", sans-serif;
}

/* ===================== RESPONSIVE FLEX LAYOUT ===================== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 4vw;
  }
}
@media (max-width: 992px) {
  .text-image-section,
  .content-grid {
    flex-direction: column;
    gap: 18px !important;
  }
}
@media (max-width: 768px) {
  .header, .footer {
    padding: 12px 4vw;
  }
  .testimonial-card {
    padding: 16px 12px;
    border-radius: 15px;
    margin-bottom: 14px;
  }
  .card, .text-section {
    padding: 18px 8px;
  }
  .content-grid, .card-container {
    gap: 10px;
  }
  .container {
    padding: 0 2vw;
  }
  main {
    margin-bottom: 18px;
  }
}
@media (max-width: 499px) {
  .cookie-banner {
    flex-direction: column;
    gap: 21px;
    align-items: flex-start;
    font-size: 1em;
    padding: 11px 0 14px 7px;
    min-height: 44px;
  }
  .cookie-banner .cookie-buttons {
    margin-left: 0;
    gap: 12px;
  }
}

/* ================= CREATIVE/ARTISTIC ELEMENTS ================= */
body {
  background: linear-gradient(98deg, #fff8f4 7%, #e7f4fa 97%);
}
header::before {
  content: "";
  display: block;
  width: 100vw;
  height: 13px;
  background: repeating-linear-gradient(90deg, #59b1c6 0 8%, #fff8f4 8% 16%, #ff5486 16% 24%, #fff8f4 24% 32%, #7c3aed 32% 38%, #fff8f4 38% 46%, #ffda77 46% 52%, #fff8f4 52% 60%);
  position: absolute;
  left: 0; top: 0;
  z-index: 99;
  pointer-events: none;
}
section {
  background: #fff8f4;
  border-radius: 18px;
  box-shadow: 0 10px 38px -18px var(--card-shadow);
}
section:nth-child(odd) {
  background: #e7f4fa;
}
main > section:first-child {
  background: linear-gradient(99deg, #e7f4fa 67%, #ffda77 100%);
}
.card {
  border-left: 5px solid var(--purple);
  background: #fff;
}
.card::after {
  content: "";
  display: block;
  position: absolute;
  right: 24px;
  top: 18px;
  width: 35px; height: 7px;
  border-radius: 8px;
  background: linear-gradient(93deg, #ff5486 10%, #59b1c6 90%);
  opacity: 0.14;
  pointer-events: none;
}
@media (max-width: 768px) {
  section, .card, .testimonial-card {
    border-radius: 10px;
    box-shadow: 0 4px 18px -10px var(--card-shadow);
  }
}

/* Artistic colored shadows */
.card, .testimonial-card, .text-section {
  box-shadow: 0 2px 32px -14px #ff548633, 0 7px 24px -12px #59b1c66c;
}

/* ===================== FORMS ===================== */
input, textarea, select {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1em;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1.5px solid #dde8f4;
  background: #f5f6fa;
  color: #143a52;
  margin-bottom: 12px;
  transition: border 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #59b1c6;
  outline: none;
  background: #fff;
}

/* ============== OVERRIDES FOR VISUAL HIERARCHY & SPACING ============== */
.section{margin-bottom:60px;padding:40px 20px;}
.card-container{display:flex;flex-wrap:wrap;gap:24px;}
.card{margin-bottom:20px;position:relative;}
.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;align-items:center;gap:20px;padding:20px;}
.feature-item{display:flex;flex-direction:column;align-items:flex-start;gap:15px;}

/* ====================== ACCESSIBILITY ====================== */
:focus {
  outline: 2.5px dashed var(--purple);
  outline-offset: 3px;
}
[tabindex]:focus {
  outline: 2.5px dashed var(--secondary);
  outline-offset: 3px;
}

/* ============= SPECIAL STARS / RATINGS IN TESTIMONIALS ============= */
.testimonial-card span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.07em;
  color: var(--primary);
  margin-top: 8px;
  font-weight: 700;
}

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