/* =======================================================
   Minimalist CSS for Spletni Karierni Pospešek
   Author: Senior CSS & UI Designer
   Branding: #134074, #81A4CD, #FCFCFC
   Fonts: 'Montserrat', 'Roboto'
   ======================================================= */

/* ===== CSS RESET & BASELINE ===== */
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; scroll-behavior: smooth;}
*, *:before, *:after {box-sizing: inherit;}

/* ===== FONT IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #FCFCFC;
  color: #134074;
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #134074; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { text-decoration: underline; color: #81A4CD; }
ul, ol { padding-left: 1.2em; margin: 12px 0; }
strong, b { font-weight: 700; }

/* ===== TYPOGRAPHY SCALE ===== */
h1, .hero-section h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4,h5,h6 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; margin-bottom: 10px; }
p, li {
  font-size: 1rem;
  margin-bottom: 10px;
}

.subheadline {
  font-size: 1.12rem;
  color: #375882;
  margin-bottom: 24px;
}

small {
  font-size: 0.96em;
  color: #375882;
  letter-spacing: 0.02em;
}

/* ===== GLOBAL CONTAINERS & LAYOUTS ===== */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section {
  background: #FCFCFC;
  border-radius: 16px;
  box-shadow: 0 1px 12px 0 rgba(19,64,116,.05);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(19,64,116,0.07);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(19,64,116,0.08);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  max-width: 600px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: #FCFCFC;
  padding: 60px 0 40px 0;
  margin-bottom: 60px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  width: 100%;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 210px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 2px 12px 0 rgba(19,64,116,.05);
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.feature-grid > div img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 6px 24px rgba(19,64,116,0.10);
  transform: translateY(-4px) scale(1.01);
}

/* ===== BUTTONS ===== */
.cta-btn, button, .cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #134074;
  color: #FCFCFC;
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  border-radius: 32px;
  padding: 12px 28px;
  margin-top: 6px;
  margin-bottom: 6px;
  box-shadow: 0 2px 16px 0 rgba(19,64,116,0.08);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.13s;
  letter-spacing: 0.02em;
  outline: none;
}
.cta-btn:focus, .cta-btn:hover, button:focus, button:hover {
  background: #81A4CD;
  color: #134074;
  box-shadow: 0 4px 20px 0 rgba(19,64,116,0.16);
  transform: translateY(-2px) scale(1.02);
}
.footer-nav a {
  color: #134074;
  font-weight: 500;
  padding: 4px 0;
  margin-right: 20px;
  font-family: 'Roboto', Arial, sans-serif;
  transition: color 0.16s;
}
.footer-nav a:last-child { margin-right: 0; }
.footer-nav a:hover, .footer-nav a:focus { color: #81A4CD; text-decoration: underline; }

/* ===== MAIN NAVIGATION ===== */
header {
  background: #FCFCFC;
  box-shadow: 0px 2px 16px 0 rgba(19,64,116,.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 18px;
  min-height: 64px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 0 20px 0 20px;
}
.main-nav ul li a {
  font-size: 1rem;
  color: #134074;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 12px;
  transition: background 0.13s, color 0.13s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: #EDF2FA;
  color: #375882;
}
.main-nav img {
  width: 40px; height: 40px;
}
.main-nav .cta-btn {
  margin-left: 16px;
  font-size: 1.06rem;
  padding: 8px 20px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: #134074;
  color: #FCFCFC;
  width: 44px; height: 44px;
  border: none;
  border-radius: 8px;
  font-size: 2.1rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  right: 18px;
  top: 10px;
  z-index: 201;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #81A4CD;
  color: #134074;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(19,64,116,0.97);
  color: #FCFCFC;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px 18px 0 25px;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(.61,.01,.32,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FCFCFC;
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 26px;
  cursor: pointer;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #81A4CD;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  width: 100%;
}
.mobile-nav a {
  color: #FCFCFC;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 10px 0 10px 6px;
  border-radius: 7px;
  transition: background 0.19s, color 0.13s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #375882;
  color: #81A4CD;
}

/* ===== FOOTER ===== */
footer {
  background: #FCFCFC;
  padding: 36px 0 28px 0;
  text-align: center;
  font-size: 1rem;
  box-shadow: 0 -1px 8px 0 rgba(19,64,116,.03);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
footer p { color: #375882; font-size: 0.92em; }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: #fff;
  color: #134074;
  border-radius: 10px;
  box-shadow: 0 3px 14px 0 rgba(19,64,116,0.08);
  padding: 20px 20px 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 650px;
  font-size: 1.13rem;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 26px 0 rgba(19,64,116,0.11);
}
.testimonial-card p {
  color: #134074;
  font-size: 1.07rem;
  margin: 0 0 6px 0;
}
.testimonial-card small {
  color: #375882;
  font-size: 0.97em;
}

/* ===== LISTS & LINKS ===== */
ul, ol {
  margin-left: 16px;
  margin-bottom: 11px;
}
ul li, ol li {
  margin-bottom: 6px;
  list-style-position: outside;
}

/* ===== FORMS (future-proof for contact forms) ===== */
input, textarea, select {
  font-family: inherit;
  font-size: 1em;
  padding: 11px 14px;
  border-radius: 7px;
  border: 1px solid #CED8E4;
  background: #FCFCFC;
  color: #134074;
  transition: border-color 0.14s;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border-color: #81A4CD;
  outline: none;
}
label {
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
  color: #134074;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #134074;
  color: #FCFCFC;
  z-index: 9998;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 22px 18px 24px 18px;
  box-shadow: 0 -5px 28px 0 rgba(19,64,116,0.14);
  font-size: 1rem;
  transition: transform 0.25s cubic-bezier(.6,0,.37,1);
}
.cookie-banner.closed {
  transform: translateY(110%);
}
.cookie-banner-content {
  flex: 1;
  font-size: 1.04rem;
  color: #FCFCFC;
}
.cookie-banner button {
  background: #81A4CD;
  color: #134074;
  font-size: 0.97rem;
  font-weight: 700;
  border-radius: 24px;
  border: none;
  margin-left: 10px;
  padding: 10px 22px;
  box-shadow: 0 1px 8px 0 rgba(19,64,116,0.15);
  cursor: pointer;
  transition: background 0.15s, color 0.12s, box-shadow 0.13s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #FCFCFC;
  color: #134074;
  box-shadow: 0 2px 16px 0 rgba(19,64,116,0.15);
}
.cookie-banner .cookie-settings-btn {
  background: #FCFCFC;
  color: #134074;
  border: 1px solid #81A4CD;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #81A4CD;
  color: #FCFCFC;
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(19,64,116, 0.39);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.closed {
  display: none;
}
.cookie-modal {
  background: #FCFCFC;
  color: #134074;
  border-radius: 16px;
  box-shadow: 0 5px 40px rgba(19,64,116,0.17);
  min-width: 320px;
  max-width: 95vw;
  padding: 38px 30px 28px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: modalIn 0.36s cubic-bezier(.66,.04,.19,.98);
}
@keyframes modalIn {from{transform: translateY(80px) scale(.965); opacity:0}to{transform:none;opacity:1}}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 18px;
  background: none;
  border: none;
  color: #134074;
  font-size: 1.65rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus{ color: #81A4CD; }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
  margin-bottom: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1em;
  font-weight: 500;
  color: #134074;
  cursor: pointer;
  margin-bottom: 0;
}
.cookie-category input[type='checkbox'] {
  accent-color: #81A4CD;
  width: 19px; height: 19px;
  cursor: pointer;
}
.cookie-category.essential input[type='checkbox'] {
  accent-color: #375882;
}
.cookie-category.essential label {
  font-style: italic;
  opacity: .67;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-top: 8px;
}
.cookie-modal .cookie-save-btn {
  background: #134074;
  color: #FCFCFC;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 28px;
  border: none;
  cursor: pointer;
}
.cookie-modal .cookie-save-btn:hover{
  background: #81A4CD;
  color: #134074;
}

/* ===== UTILITIES & MICRO-INTERACTIONS ===== */
.shadow-sm { box-shadow: 0 1px 9px 0 rgba(19,64,116,0.07); }
.shadow-lg { box-shadow: 0 6px 26px 0 rgba(19,64,116,0.11); }
.rounded { border-radius: 7px; }
.fw-bold { font-weight: 700; }

/* ===== RESPONSIVE DESIGN (MOBILE-FIRST) ===== */
@media (max-width: 1024px) {
  .container { max-width: 92vw; }
  .content-grid { gap: 16px; }
  .feature-grid { gap: 16px; }
}

@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .main-nav ul { gap: 14px; }
}

@media (max-width: 768px) {
  /* Stack sections/feature cards and adapt paddings */
  .main-nav ul, .footer-nav { flex-direction: column; gap: 14px; }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .section { padding: 34px 7px; }
  .hero-section { padding: 38px 0 22px 0; }
  .container { max-width: 98vw; padding: 0 7px; }
  /* Text & image sections stack */
  .text-image-section { flex-direction: column; gap: 15px; align-items: flex-start; }
  /* Testimonials stack */
  .testimonial-card { max-width: 100vw; }
  /* Hide desktop nav, enable burger */
  .main-nav ul, .main-nav .cta-btn { display: none !important; }
  .mobile-menu-toggle { display: flex; }
  .main-nav { padding: 0 6px; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.47rem; }
  h2 { font-size: 1.16rem; }
  .footer-nav { flex-direction: column; gap: 9px; }
  .cookie-banner { flex-direction: column; gap: 12px; font-size: 0.98em; padding: 12px 7px 14px 7px; }
  .cookie-banner button { width: 100%; margin: 4px 0 0 0; padding: 11px 0; }
  .cookie-modal { padding: 24px 7px 14px 7px; min-width: unset; }
}

/* ===== PRINT FRIENDLY ===== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
