/* ================================================================
   CzystoFaktura - Scandinavian Clean CSS
   Author: AI Senior CSS Dev 2024
   Brand colors: #17406d (primary), #f3f6f9/#ffffff (secondary), #ebb735 (accent)
   Fonts: Montserrat (display), Roboto (body)
   Only Flexbox for all layout
=====================================================================
*/

/* 1. CSS Reset & Basic 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,
main, 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;
}
body {
  background: #f3f6f9;
  color: #17406d;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #17406d;
  font-weight: 700;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
}
p, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 1em;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #17406d;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}
a:hover, a:focus {
  color: #ebb735;
  outline: none;
}
ul, ol {
  margin-bottom: 1.3em;
  margin-left: 1.2em;
}
li {
  font-size: 1rem;
  margin-bottom: 0.5em;
}
strong {
  font-weight: 700;
}

/* 2. Container and Main Layout */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 3. Header & Navigation */
header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(23,64,109,0.07);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
}
header img {
  height: 44px;
  margin-right: 12px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
nav a {
  padding: 7px 13px;
  border-radius: 5px;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  color: #17406d;
}
nav a.cta {
  background: #ebb735;
  color: #17406d;
  font-weight: bold;
  padding: 9px 20px;
  border-radius: 22px;
  box-shadow: 0 2px 4px rgba(235,183,53,0.11);
  transition: background 0.2s, box-shadow 0.2s;
}
nav a.cta:hover, nav a.cta:focus {
  background: #17406d;
  color: #fff;
  box-shadow: 0 4px 12px rgba(23,64,109,0.10);
}
nav a:hover, nav a:focus {
  background: #f3f6f9;
  color: #17406d;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
  background: #ebb735;
  color: #17406d;
  font-size: 2.2rem;
  border: none;
  border-radius: 16px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(23,64,109,0.07);
  cursor: pointer;
  transition: background 0.2s,color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #ebb735;
}
.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: #ffffff;
  box-shadow: 0 4px 32px rgba(23,64,109,0.20);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  margin: 26px 0 16px 20px;
  align-self: flex-start;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #17406d;
  cursor: pointer;
  z-index: 1300;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  color: #ebb735;
  outline: 2px solid #ebb735;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0 32px;
}
.mobile-nav a {
  font-size: 1.18rem;
  padding: 14px 0;
  color: #17406d;
  border-bottom: 1px solid #f3f6f9;
  transition: color 0.2s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #ebb735;
  background: none;
}

@media (max-width: 1024px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width:1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* 4. Section and Spacing Patterns (MANDATORY) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(23,64,109,0.04);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(23,64,109,0.05);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 22px;
  flex: 1 1 300px;
  min-width: 250px;
  transition: box-shadow 0.22s, transform 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px rgba(23,64,109,0.14);
  transform: translateY(-2px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f3f6f9;
  border-radius: 13px;
  box-shadow: 0 1px 6px rgba(23,64,109,0.04);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.11s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(23,64,109,0.13);
  transform: scale(1.012);
}
.testimonial-info {
  margin-left: 15px;
  color: #17406d;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Custom grids used in HTML */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 180px;
  background: #f3f6f9;
  border-radius: 12px;
  padding: 26px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 1px 10px rgba(23,64,109,0.04);
  transition: box-shadow 0.18s;
  margin-bottom: 0;
}
.feature-grid > div img {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(23,64,109,0.03);
}
.feature-grid > div h3 {
  margin: 0 0 8px 0;
  font-size: 1.18rem;
}
.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}
.info-grid > div {
  flex: 1 1 240px;
  min-width: 180px;
  background: #f3f6f9;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 12px;
}
.info-map {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(23,64,109,0.045);
  padding: 22px 20px;
  margin-top: 12px;
}

/* 5. Typography Scale */
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.29rem;
  font-weight: 600;
}
h4 {
  font-size: 1.1rem;
  font-weight: 600;
}
.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #ebb735;
  color: #17406d;
  font-weight: 700;
  border: none;
  border-radius: 22px;
  padding: 12px 32px;
  font-size: 1.08rem;
  box-shadow: 0 2px 6px rgba(235,183,53,0.09);
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.15s, color 0.22s, transform .11s;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}
.cta:hover, .cta:focus {
  background: #17406d;
  color: #fff;
  box-shadow: 0 4px 10px rgba(23,64,109,0.13);
  outline: none;
}

/* 6. Footer */
footer {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 -2px 22px rgba(23,64,109,.04);
  margin-top: 70px;
  padding: 0 0 0 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 18px 18px 18px;
}
.footer-nav {
  font-size: 0.96rem;
  margin-bottom: 7px;
  color: #17406d;
  width: 100%;
}
.footer-nav a { color: #17406d; margin-right: 8px; }
.footer-contact {
  font-size: 0.97rem;
  color: #365481;
  line-height: 1.7;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
}
.footer-copy {
  font-size: 0.91rem;
  color: #9cb5d5;
  margin-bottom: 0;
  width: 100%;
}

/* 7. Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 1600;
  background: #ffffff;
  border-top: 1px solid #e7e7ec;
  box-shadow: 0 -2px 14px rgba(23,64,109,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 16px 18px 16px;
  animation: cb-in 0.37s cubic-bezier(.65,0,.56,1) 1;
}
@keyframes cb-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  font-size: 1rem;
  color: #17406d;
  margin-bottom: 8px;
  text-align: center;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 20px;
  border: 1.5px solid #17406d;
  background: #f3f6f9;
  color: #17406d;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.19s, color 0.17s;
}
.cookie-btn.accept {
  background: #ebb735;
  color: #17406d;
  border: 1.5px solid #ebb735;
}
.cookie-btn.accept:hover {
  background: #17406d;
  color: #fff;
  border-color: #17406d;
}
.cookie-btn.reject {
  background: #f3f6f9;
  color: #17406d;
}
.cookie-btn.reject:hover {
  background: #17406d;
  color: #fff;
}
.cookie-btn.settings {
  background: #ffffff;
  color: #17406d;
}
.cookie-btn.settings:hover {
  background: #ebb735;
  color: #17406d;
}
/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: rgba(23,64,109,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cb-fader 0.3s;
}
@keyframes cb-fader {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 10px 36px rgba(23,64,109,0.17);
  max-width: 440px;
  width: 95%;
  padding: 36px 24px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h3 {
  margin: 0 0 2px 0;
  font-size: 1.25rem;
  color: #17406d;
  text-align: left;
}
.cookie-modal .cookie-modal-section {
  border-bottom: 1px solid #f3f6f9;
  padding-bottom: 13px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-modal-section:last-child {
  border-bottom: 0;
  margin-bottom: 2px;
  padding-bottom: 0;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-top: 5px;
}
.cookie-toggle-label {
  font-size: 1rem;
  color: #17406d;
  font-weight: 500;
}
.cookie-switch {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #e8e8e8;
  border-radius: 14px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-switch:checked {
  background: #ebb735;
}
.cookie-switch::-webkit-slider-thumb, .cookie-switch::-moz-slider-thumb, .cookie-switch::-ms-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
}
.cookie-switch:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
  box-shadow: 0 2px 5px rgba(23,64,109,0.13);
}
.cookie-switch:checked:before {
  left: 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 13px;
  background: none;
  border: none;
  color: #17406d;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #ebb735;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* 8. Lists styling in offer/feature/testimonials */
ul li strong { color:#17406d; font-weight:600; }

/* 9. Utilities & Microinteractions */
.shake {
  animation: shake 0.49s cubic-bezier(.35,0,.6,1.1);
}
@keyframes shake {
  0%{transform:translateX(0)}
  20%{transform:translateX(-6px)}
  40%{transform:translateX(6px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
  100%{transform:translateX(0)}
}
.fade-in {
  animation: fadein .7s linear 1;
}
@keyframes fadein {
  from{opacity:0;}
  to{opacity:1;}
}

/* 10. Responsive Queries (Mobile First) */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 7px;
  }
  .section {
    padding: 24px 7px;
    margin-bottom: 38px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    padding: 14px 7px;
  }
  .section {
    padding: 22px 4px;
    margin-bottom: 25px;
    border-radius: 10px;
  }
  .feature-grid,.info-grid,.card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .info-grid > div,
  .card, .testimonial-card {
    min-width: 0;
    width: 100%;
    padding: 17px 13px;
  }
  .content-wrapper {
    padding: 0;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.04rem; }
  .info-map { padding: 18px 10px; }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 1rem;
  }
  .footer-nav, .footer-contact, .footer-copy {
    font-size: 0.92rem;
    text-align: left;
    word-break: break-word;
  }
  .footer-contact {
    gap: 4px;
  }
  .cookie-banner {
    padding: 12px 7px 8px 7px;
  }
  .cookie-modal {
    max-width: 97vw;
    padding: 18px 8px 12px 8px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
}

/* 11. Accessibility: Focus & Contrast  */
:focus-visible {
  outline: 2px solid #ebb735;
  outline-offset: 2px;
}
.testimonial-card, .card, .feature-grid > div {
  color: #17406d;
  background: #f3f6f9;
}
.testimonial-card p {
  color: #17406d;
  font-size: 1rem;
}

/* 12. Miscellaneous Adjustments */
main {
  flex: 1 1 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 13. Print tweaks */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  main, .section, .container {
    background: #fff;
    box-shadow: none;
    color: #17406d;
    padding: 0;
  }
}
