/* ================================================================
   Šatník Blízko Vás – CORPORATE PROFESSIONAL CSS STYLES
   Brand: Šatník Blízko Vás
   Palette: Blue/gray (primary: #23597D, accent: #F5F5F5, secondary: #E6B8C2)
   Fonts: Montserrat (display), Open Sans (body)
   Flexbox-only layouts (NO grid or columns)
   Modern, professional, structured, clear hierarchy
================================================================ */
/* ------ CSS RESET ------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F5F5F5;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F5F5F5;
  color: #1F3340;
  font-size: 1rem;
  line-height: 1.7;
}
img {
  max-width: 100%;
  vertical-align: middle;
  display: block;
}
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 16px;
}
a {
  color: #23597D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #163A59;
  text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #1F3340;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-top: 32px; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }
strong, b { font-weight: 700; }
small { font-size: 0.9em; color: #6C7B89; }

/* ------ ROOT CONTAINER ------ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}

/* ------ HEADER & NAVIGATION ------ */
header {
  background: #fff;
  border-bottom: 1px solid #E0E6EB;
  box-shadow: 0 2px 8px 0 rgba(35,89,125,0.07);
  position: sticky;
  top: 0;
  z-index: 99;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px 20px 12px 20px;
}
.main-nav a {
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #23597D;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #E6B8C2;
  color: #163A59;
  text-decoration: none;
}
.main-nav img {
  height: 36px;
  width: auto;
  margin-right: 12px;
  display: inline-block;
}

/* ------ MOBILE NAVIGATION ------ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #23597D;
  position: absolute;
  right: 28px;
  top: 16px;
  z-index: 200;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #E6B8C2;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35, 89, 125, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.61,.04,.17,.95);
  z-index: 9999;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  margin: 20px 32px;
  align-self: flex-end;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-top: 24px;
  gap: 0;
  padding-left: 32px;
}
.mobile-nav a {
  font-size: 1.125rem;
  color: #fff;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid #2d6a98;
  display: block;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E6B8C2;
  color: #163A59;
  border-bottom: 1px solid #E6B8C2;
}

/* ------ HERO & CTA ------ */
section {
  background: none;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.subheadline {
  font-size: 1.25rem;
  color: #3D4953;
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cta-primary {
  background: #23597D;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 8px 0 rgba(35,89,125,0.12);
  transition: background 0.18s, box-shadow 0.2s, color 0.20s;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  margin-top: 16px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #1a4563;
  color: #fff;
  box-shadow: 0 3px 12px 0 rgba(35,89,125,0.15);
  outline: none;
  text-decoration: none;
}

/* ------ FEATURES / CARDS ------ */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 18px;
}
.features-grid > div {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(35,89,125,0.08);
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 200px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.features-grid > div:hover, .features-grid > div:focus-within {
  box-shadow: 0 8px 38px 0 rgba(35,89,125,0.19);
  transform: translateY(-2px) scale(1.012);
}
.features-grid img {
  height: 40px;
  width: auto;
}
.features-grid h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

/* ------ CARDS AND SPACING ------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(35,89,125,0.08);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.18s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 38px 0 rgba(35,89,125,0.16);
  transform: translateY(-3px);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ------ TEXT & INFO SECTIONS ------ */
.text-section {
  background: #fff;
  padding: 26px 32px 26px 32px;
  border-radius: 8px;
  box-shadow: 0 1px 8px 0 rgba(35,89,125,0.06);
  margin-bottom: 24px;
}
.text-section ul,
.text-section ol {
  margin-bottom: 18px;
}
.text-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* ------ TESTIMONIALS ------ */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F5F8FB;
  border-left: 5px solid #23597D;
  border-radius: 9px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  box-shadow: 0 1px 9px 0 rgba(35,89,125,0.07);
  color: #1F3340;
}
.testimonial-card p {
  color: #1f3340;
  margin-bottom: 0;
  flex-shrink: 1;
}
.testimonial-card strong {
  color: #23597D;
  font-size: 1rem;
  font-weight: 700;
}

/* ------ CATEGORY FILTER ------ */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-radius: 7px;
  padding: 20px 18px;
  box-shadow: 0 1px 7px 0 rgba(35,89,125,0.06);
  margin-bottom: 20px;
}
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
}
.category-list li {
  background: #E6B8C2;
  color: #2C3E50;
  padding: 7px 18px;
  border-radius: 16px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.category-filter input[type="text"] {
  border: 1px solid #C4D2DF;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F5F5F5;
  margin-left: 14px;
  transition: border-color 0.15s;
}
.category-filter input[type="text"]:focus {
  outline: none;
  border-color: #23597D;
}

/* ------ FOOTER ------ */
footer {
  background: #FAFAFB;
  border-top: 1px solid #E0E6EB;
  box-shadow: 0 -1px 7px 0 rgba(35,89,125,0.04);
  margin-top: 60px;
  padding: 32px 20px 24px 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #3D4953;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 4px;
  transition: background 0.18s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #E6B8C2;
  color: #163A59;
}
.footer-info {
  font-size: 0.96rem;
  color: #6C7B89;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-info a {
  color: #23597D;
  text-decoration: underline;
  font-weight: 400;
}

/* ------ COOKIE CONSENT BANNER ------ */
.cookie-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFF;
  color: #1F3340;
  border-top: 1px solid #E0E6EB;
  box-shadow: 0 -4px 24px 0 rgba(35,89,125,0.10);
  padding: 16px 32px 20px 32px;
  z-index: 12000;
  font-size: 1rem;
  transition: transform 0.32s cubic-bezier(.65,.05,.36,1);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
}
.cookie-banner.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}
.cookie-buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: #23597D;
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.16s, color 0.16s;
  font-size: 1rem;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #1a4563;
}
.cookie-btn.secondary {
  background: #F5F5F5;
  color: #23597D;
  border: 1px solid #23597D;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #E6B8C2;
  color: #163A59;
}
.cookie-btn.settings {
  background: #E6B8C2;
  color: #1F3340;
  border: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #EBBCD0;
  color: #23597D;
}

/* ------ COOKIE PREFERENCES MODAL ------ */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(35, 89, 125, 0.28);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 10px 42px 0 rgba(35,89,125,0.21);
  padding: 36px 36px 24px 36px;
  min-width: 340px;
  max-width: 96vw;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.09rem;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #23597D;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.cookie-category label {
  font-size: 1rem;
  color: #1F3340;
  font-weight: 500;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 24px;
  border-radius: 12px;
  background: #C4D2DF;
  position: relative;
  outline: none;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.17s;
}
.cookie-toggle:checked {
  background: #23597D;
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  top: 2px; left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 999px;
  transition: left 0.18s;
}
.cookie-toggle:checked:before {
  left: 18px;
}
.cookie-category .always-on {
  color: #aaa;
  font-size: 0.98em;
}
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #23597D;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover {
  color: #E6B8C2;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  justify-content: flex-end;
}

/* ------ FORMS & INPUTS ------ */
input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #C4D2DF;
  transition: border-color 0.13s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #23597D;
}
button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  border: none;
  padding: 11px 22px;
  background: #23597D;
  color: #fff;
  transition: background 0.19s;
}
button:hover, button:focus {
  background: #1a4563;
}

/* ------ TABLES & LISTS ------ */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 26px;
  font-size: 1rem;
}
th,
td {
  border: 1px solid #D6D6D6;
  padding: 12px 10px;
  text-align: left;
}
th {
  background: #E6B8C2;
  color: #2C3E50;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ------ Z-INDEX MANAGEMENT ------ */
header { z-index: 99; }
footer { z-index: 10; }
.mobile-menu { z-index: 9999; }
.cookie-banner { z-index: 12000; }
.cookie-modal-overlay { z-index: 20000; }

/* ------ SHADOWS, ROUNDS, TRANSITIONS ------ */
.card, .features-grid > div, .text-section, .testimonial-card {
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(35,89,125,0.09);
  transition: box-shadow 0.23s, transform 0.18s;
}

/* ------ SPACING ------ */
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .features-grid, .content-grid, .footer-nav {
  gap: 24px;
}
.card, .features-grid > div, .testimonial-card {
  margin-bottom: 20px;
}

/* ------ RESPONSIVE ------ */
@media (max-width: 1079px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
  .features-grid, .card-container, .content-grid {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.5rem; }
  .features-grid > div, .card {
    padding: 18px 12px 16px 12px;
  }
  .text-section {
    padding: 18px 12px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper, .footer-info {
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 19px 12px;
    gap: 14px;
  }
  .cookie-banner-content {
    max-width: 96vw;
  }
  section {
    padding: 26px 7px;
    margin-bottom: 38px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.1rem; }
  .card, .features-grid > div, .testimonial-card {
    padding: 14px 8px;
  }
  .mobile-menu {
    padding-top: 21px;
  }
  .mobile-menu-close {
    margin: 14px 12px;
    font-size: 2.1rem;
  }
  .mobile-nav {
    padding-left: 16px;
  }
  .cookie-modal {
    padding: 18px 7vw 12px 7vw;
    min-width: 90vw;
  }
}

/* ------ INTERACTIONS & MICROTRANSITIONS ------ */
a, .cta-primary, .cookie-btn, button {
  transition: background 0.18s, color 0.16s, box-shadow 0.18s, border 0.13s;
}
.cta-primary:active, .cookie-btn:active, button:active {
  transform: scale(0.98);
}
input[type="text"], input[type="email"], textarea {
  transition: border-color 0.16s, box-shadow 0.18s;
}
input[type="text"]:hover, input[type="email"]:hover,
textarea:hover {
  border-color: #23597D;
}

/* ------ UTILITY CLASSES ------ */
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px !important; }
.mt-20 { margin-top: 20px !important; }
.text-center { text-align: center !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-column { display: flex; flex-direction: column; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }

/* ------ BRAND COLORS (FALLBACK) ------ */
:root {
  --primary: #23597D;
  --secondary: #E6B8C2;
  --accent: #F5F5F5;
  --gray: #6C7B89;
  --text-dark: #1F3340;
  --text-light: #FAFAFB;
}

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

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