/* =================================================
   Chytré Váhy Plus - style.css
   Professional Corporate Flexbox-Only Design System
   ================================================= */

/* =========
   RESET & NORMALIZE
   ========= */
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;
}
body {
  line-height: 1.5;
  background: #F8FAFB;
  color: #1A374D;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #25607A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #1A374D;
  text-decoration: underline;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
input, textarea {
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 8px 12px;
}
::-webkit-input-placeholder { color: #8896ab; }
::-moz-placeholder { color: #8896ab; }
:-ms-input-placeholder { color: #8896ab; }
::placeholder { color: #8896ab; }

/* =========
   LAYOUT CONTAINERS
   ========= */
.container {
  width: 100%;
  max-width: 1120px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(32, 56, 85, 0.07);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  border-radius: 10px;
  background: #fff;
  margin-bottom: 20px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(32, 56, 85, 0.09);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.2s;
  position: relative;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(37, 96, 122, 0.16);
}
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonials {
  background: #F0F4F6;
  border-radius: 14px;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(32, 56, 85, 0.06);
  color: #193148;
  font-size: 18px;
  line-height: 1.6;
  flex-direction: column;
}
.testimonial-card strong {
  display: block;
  color: #25607A;
  font-size: 16px;
  margin-top: 8px;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* =========
   TYPOGRAPHY
   ========= */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #1A374D;
  line-height: 1.2;
  margin-bottom: 8px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: #25607A;
  margin-bottom: 8px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: #25607A;
  margin-bottom: 6px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #224559;
  margin-bottom: 4px;
}
p, ul, ol {
  font-size: 1rem;
  line-height: 1.7;
  color: #1A374D;
}
ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
li img {
  vertical-align: middle;
  width: 24px;
  height: 24px;
  margin-right: 10px;
}
strong {
  font-weight: 600;
  color: #1A374D;
}

/* Typography scaling */
@media (max-width: 540px) {
  h1, .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }
}

/* =========
   HEADER & MAIN NAV
   ========= */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(32, 86, 122, 0.07);
  position: sticky;
  top: 0;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #1A374D;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
  position: relative;
  z-index: 2;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #D9EFEA;
  color: #25607A;
}
.main-nav a.cta-primary {
  background: #25607A;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 100px;
  padding: 8px 24px;
  box-shadow: 0 2px 8px rgba(32, 96, 122, 0.07);
  margin-left: 8px;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
}
.main-nav a.cta-primary:hover,
.main-nav a.cta-primary:focus {
  background: #1A374D;
  color: #fff;
  box-shadow: 0 4px 16px rgba(32, 86, 122, 0.14);
}
.main-nav img {
  width: 44px;
  height: 44px;
  margin-right: 18px;
}

/* =========
   HERO / CTA
   ========= */
.hero {
  background: #D9EFEA;
  border-radius: 0 0 24px 24px;
  margin-bottom: 60px;
  padding: 0;
  display: flex;
  align-items: center;
  min-height: 310px;
}
.hero .container {
  align-items: center;
  justify-content: center;
  min-height: 310px;
}
.hero .content-wrapper {
  align-items: flex-start;
  padding: 32px 0 24px 0;
  gap: 18px;
}
.hero p {
  font-size: 1.25rem;
  color: #224559;
  margin: 0 0 8px 0;
}
.cta-primary {
  display: inline-block;
  background: #25607A;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 14px;
  box-shadow: 0 2px 8px rgba(37, 96, 122, 0.07);
  transition: background 0.18s, color 0.18s, transform 0.13s;
  border: none;
  cursor: pointer;
  text-align: center;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #1A374D;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(37, 96, 122, 0.13);
}

/* =========
   FOOTER
   ========= */
footer {
  background: #1A374D;
  color: #fff;
  padding: 32px 0 16px 0;
  border-radius: 20px 20px 0 0;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #D9EFEA;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #25607A;
  color: #fff;
}
.footer-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: 1rem;
  color: #D9EFEA;
}
.footer-identity img {
  width: 36px;
  height: 36px;
}
.footer-identity span {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #D9EFEA;
}

/* =========
   CONTACT PAGE
   ========= */
.contact-details {
  background: #F0F4F6;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(32, 56, 85, 0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #25607A;
}
.contact-details ul {
  font-size: 1rem;
  gap: 10px;
}
.contact-details a {
  color: #25607A;
  text-decoration: underline;
}

/* =========
   COOKIE CONSENT BANNER & MODAL
   ========= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  background: #1A374D;
  color: #fff;
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 16px rgba(32, 56, 85, 0.17);
  gap: 14px;
  animation: cookie-slide-up 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}
.cookie-banner p {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0;
  text-align: center;
  max-width: 600px;
}
.cookie-buttons {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  background: #25607A;
  color: #fff;
  border: none;
  border-radius: 32px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 28px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(32,86,122,0.07);
  margin: 0;
  transition: background 0.17s, color 0.15s;
  outline: none;
}
.cookie-btn:not(:last-child) {
  background: #D9EFEA;
  color: #1A374D;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #315875;
  color: #fff;
}
.cookie-btn:active {
  background: #1A374D;
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(26,55,77,0.68);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.25s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #1A374D;
  border-radius: 16px 16px 0 0;
  max-width: 420px;
  width: 100%;
  padding: 32px 24px 28px 24px;
  box-shadow: 0 0 32px rgba(32,56,85,.22);
  animation: modal-slide-up 0.36s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  margin: 0 0 0 0;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: #25607A;
  font-weight: 700;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  justify-content: space-between;
}
.cookie-toggle {
  width: 42px;
  height: 26px;
  border-radius: 19px;
  background: #E5F3F4;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
  flex-shrink: 0;
}
.cookie-toggle[aria-checked="true"] {
  background: #25607A;
}
.cookie-toggle__slider {
  position: absolute;
  top: 2px; left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 100%;
  box-shadow: 0 1px 6px rgba(32,56,85,0.11);
  transition: left 0.2s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle__slider {
  left: 17px;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 1.45rem;
  color: #25607A;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #E5F3F4;
}
@keyframes cookie-slide-up {
  0% {transform: translateY(60px); opacity:0;}
  100% {transform: translateY(0); opacity:1;}
}
@keyframes modal-slide-up {
  0% {transform: translateY(65px); opacity:0;}
  100% {transform: translateY(0); opacity:1;}
}

/* =========
   MOBILE NAV - BURGER MENU
   ========= */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 2.25rem;
  color: #25607A;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: color 0.17s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #1A374D;
  background: #D9EFEA;
  border-radius: 50%;
}
.mobile-menu {
  position: fixed;
  z-index: 200;
  inset: 0;
  background: rgba(26, 55, 77, .96);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.7,.25,.3,1);
  pointer-events: none;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #fff;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 220;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #315875;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 90px 0 0 0;
  padding: 0 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 14px 0 9px 4px;
  border-radius: 8px;
  transition: background 0.2s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #25607A;
  color: #D9EFEA;
}

/* Hide on desktop */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1021px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* = Responsive adjustments = */
@media (max-width: 900px) {
  .main-nav {
    gap: 13px;
    padding: 14px 10px;
  }
  .hero h1 { font-size: 2rem; }
  .container { padding: 0 9px; }
  .section { padding: 32px 10px; }
  .footer-nav { gap: 6px; }
}
@media (max-width: 768px) {
  .section,
  .hero,
  .testimonials {
    padding: 24px 3vw;
    border-radius: 0;
  }
  .content-wrapper { gap: 16px; }
  .container { padding: 0 4px; }

  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .card, .testimonial-card {
    padding: 16px 10px;
    font-size: 1rem;
  }
  .testimonial-card {
    font-size: 1rem;
  }
  .hero { min-height: 180px; }
}
@media (max-width: 540px) {
  h1, .hero h1 { font-size: 1.38rem; }
  h2 { font-size: 1.13rem; }
  .cta-primary { font-size: 1rem; padding: 8px 14px; }
  .footer-identity img { width: 26px; height: 26px; }
  .footer-identity span { font-size: 0.95rem; }
  .footer-nav a { font-size: 0.91rem; }
  .cookie-btn { padding: 7px 12px; font-size: 0.98rem; }
  .cookie-banner { padding: 14px 6px; }
  .cookie-modal { padding: 24px 7px 18px 7px; }
  .cookie-modal h2 { font-size: 1.05rem; }
}

/* =========
   MISC & MICRO-INTERACTIONS
   ========= */
.card, .testimonial-card, .contact-details {
  transition: box-shadow 0.17s, background 0.17s;
}
.card:focus-within {
  box-shadow: 0 2px 16px rgba(37, 96, 122, 0.14);
}
input:focus, textarea:focus {
  border: 1.5px solid #1A374D;
  background: #F2F8FC;
}

ul li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
}

/* Ensure lists inside .text-section use list-style */
.text-section ul {
  list-style: disc inside;
  gap: 9px;
  margin-left: 22px;
}
.text-section ol {
  list-style: decimal inside;
  margin-left: 22px;
  gap: 9px;
}

/* Decorative divider for testimonials */
.testimonials h2 {
  position: relative;
  margin-bottom: 24px;
}
.testimonials h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #25607A;
  border-radius: 2px;
  margin: 14px 0 0 0;
}

/* Utility helpers */
.mt32 { margin-top: 32px !important; }
.mb32 { margin-bottom: 32px !important; }
.mb24 { margin-bottom: 24px !important; }
.mt16 { margin-top: 16px !important; }

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