/* ================================================================
   CRISPBOARD MINIMALIST STYLE.CSS - MOBILE-FIRST FLEXBOX LAYOUT
   Brand: CrispBoard (Bluetooth mini termotiskárny)
   Author: Professional UI & CSS Designer
   ================================================================= */

/* === CSS 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,
main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { min-height: 100vh; background: #fff; }
ul, ol { list-style-position: inside; }
ul, ol { list-style: disc; }
img, svg { display: block; max-width: 100%; height: auto; }
button { background: none; border: none; font: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; outline: none; }

/* === ROOT BRAND COLORS & FONTS === */
:root {
  --primary: #1761A0;
  --secondary: #52B6C5;
  --accent: #F6F8FA;
  --text-base: #23272e;
  --text-muted: #707480;
  --bg: #fff;
  --card-bg: #fff;
  --shadow: 0 2px 12px rgba(23, 97, 160, 0.10);
  --radius: 12px;
  --transition: 0.15s cubic-bezier(.4,.1,0,1);
  --font-display: 'Montserrat', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

body {
  color: var(--text-base);
  background: var(--bg);
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, sans-serif;
  color: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.375rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 1.75rem; line-height: 1.18; margin-bottom: 18px; }
h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.10rem; margin-bottom: 10px; }
p { margin-bottom: 18px; color: var(--text-base); }
strong, b { font-weight: 600; color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* === LAYOUT CONTAINER === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === SECTION SPACING (MANDATORY) === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* === HEADER AND NAVIGATION === */
header {
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid #eaeaea;
  min-height: 68px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 102;
  padding: 0 0;
}
.logo {
  display: flex;
  align-items: center;
  padding: 0 18px 0 0;
  height: 68px;
}
.logo img { height: 38px; width: auto; }
.main-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.main-nav {
  margin-left: 12px;
  flex: 1 1 auto;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-base);
  padding: 7px 12px;
  border-radius: 6px;
  transition: background var(--transition);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
.cta-btn {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  padding: 10px 28px;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-left: 24px;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.04em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px rgba(48,125,194,0.11);
}

.mobile-menu-toggle {
  display: none;
  margin-left: 20px;
  font-size: 2.1rem;
  color: var(--primary);
  background: transparent;
  border-radius: 10px;
  height: 42px;
  width: 48px;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  z-index: 1600;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247,249,251,0.99);
  box-shadow: 0 3px 24px 0 rgba(23,97,160,0.09);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.66,-0.01,.32,1.15);
  display: flex;
  flex-direction: column;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.25rem;
  color: var(--primary);
  background: transparent;
  border: none;
  align-self: flex-end;
  margin: 22px 22px 16px 0;
  cursor: pointer;
  transition: color var(--transition);
  padding: 0 11px;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover { color: var(--secondary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.mobile-nav a {
  font-size: 1.125rem;
  color: var(--primary);
  padding: 13px 32px;
  border-radius: 8px;
  font-family: var(--font-display);
  transition: background var(--transition), color var(--transition);
  min-width: 220px;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/* === HERO / CONTENT WRAPPER === */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.text-section {
  max-width: 700px;
  margin-bottom: 0;
}

/* === CARDS & GRIDS (FLEX ONLY) === */
.card-container, .service-cards, .footer-content, .product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .service-card, .product-card {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 30px 22px 24px 22px;
  min-width: 230px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card:hover, .product-card:hover {
  box-shadow: 0 6px 28px 0 rgba(23, 97, 160, 0.14);
  transform: translateY(-4px) scale(1.025);
}

.product-grid { gap: 24px; }
.product-card { /* see .card above */ }

.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;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 3px 24px rgba(23,97,160,0.09);
  margin-bottom: 20px;
  min-width: 0;
  max-width: 600px;
}
.testimonial-card p {
  color: #1a202c;
  font-style: italic;
  flex: 1 1 0;
  font-size: 1.08rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--primary);
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
  font-size: 1rem;
}
.testimonial-card span {
  display: block;
  color: #fbbf24; /* Amber/yellow stars for visibility */
  font-size: 1.1rem;
}
.testimonial-card > div {
  min-width: 120px;
  text-align: right;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FAQ list (dl) */
.faq-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-list dt {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.faq-list dd {
  margin-left: 0;
  padding-left: 0;
  color: var(--text-base);
}

/* === UL / LI STYLES === */
ul {
  margin-bottom: 12px;
  padding-left: 20px;
  color: var(--text-base);
  line-height: 1.7;
}
ul li {
  margin-bottom: 8px;
  padding-left: 0;
}
ul li:last-child { margin-bottom: 0; }

/* === FOOTER === */
footer {
  background: var(--accent);
  padding: 38px 0 28px 0;
  border-top: 1px solid #eaeaea;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img { height: 32px; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
}
.footer-contact-info {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}
.footer-social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}
.footer-social-links a img { height: 26px; transition: filter .18s linear; }
.footer-social-links a:hover img {
  filter: brightness(1.2) saturate(1.4);
}

/* === BUTTONS & INTERACTIONS === */
button, .cta-btn, .cookie-btn, .cookie-btn-secondary {
  outline: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

/* === RESPONSIVE / MOBILE FIRST === */
@media (max-width: 1020px) {
  .container {
    max-width: 96vw;
  }
  .footer-content {
    gap: 24px;
  }
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.29rem; }
  .container {
    padding: 0 10px;
  }
  section {
    padding: 32px 0;
    margin-bottom: 38px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .cta-btn {
    margin-left: 0;
    padding: 10px 20px;
  }

  .service-cards, .card-container, .footer-content, .product-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card, .service-card, .product-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-width: 100%;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 580px) {
  .container { padding: 0 6px; }
  .section { padding: 30px 0; margin-bottom: 20px; }
  header { min-height: 54px; }
  .logo img { height: 28px; }
}

/* === MICRO-INTERACTIONS === */
a, .cta-btn, button {
  transition: all var(--transition);
}
.card, .service-card, .product-card {
  will-change: transform, box-shadow;
}

/* === ACCESSIBILITY & FOCUS INDICATORS === */
a:focus, .cta-btn:focus, button:focus {
  outline: 2px dashed var(--primary);
  outline-offset: 1px;
}
.main-nav a.active, .footer-nav a.active, .mobile-nav a.active {
  color: var(--primary);
  font-weight: 700;
  background: var(--accent);
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2100;
  background: #fff;
  border-top: 1px solid #e4e8ed;
  box-shadow: 0 -2px 16px rgba(23,97,160,0.10);
  width: 100vw;
  min-height: 62px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 18px 14px 18px 14px;
  gap: 18px 26px;
  font-size: 1rem;
  animation: fadeInC .25s ease;
}
@keyframes fadeInC {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  margin-bottom: 0;
  flex: 1 1 250px;
  color: var(--text-base);
}
.cookie-btn, .cookie-btn-secondary {
  min-width: 115px;
  padding: 8px 16px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 0;
}
.cookie-btn {
  background: var(--primary);
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus { background: var(--secondary); color: #fff; }
.cookie-btn-secondary {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid #d3dde8;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: var(--secondary); color: #fff; border-color: var(--secondary);
}

/* === COOKIE CONSENT MODAL === */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2200;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,97,160,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal .21s linear;
}
@keyframes fadeInModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 28px 0 rgba(23, 97, 160, 0.13);
  max-width: 95vw;
  width: 428px;
  padding: 32px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: popUpModal .25s cubic-bezier(.6,1.3,.43,1);
}
@keyframes popUpModal {
  0% { opacity: 0; transform: translateY(40px) scale(.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h3 {
  font-size: 1.26rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-switch {
  margin-left: auto;
  --switch-width: 38px;
  --switch-height: 24px;
  width: var(--switch-width);
  height: var(--switch-height);
  border-radius: 12px;
  background: #dbe6ef;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  display: inline-block;
}
.cookie-modal .cookie-switch[aria-checked="true"] {
  background: var(--primary);
}
.cookie-modal .cookie-switch .knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(23,97,160,.06);
  transition: left var(--transition);
}
.cookie-modal .cookie-switch[aria-checked="true"] .knob {
  left: 16px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-base);
}
.cookie-modal .cookie-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn, .cookie-modal .cookie-btn-secondary {
  min-width: 100px;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 17px; right: 17px;
  font-size: 1.3rem;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  color: var(--primary);
}

/* === TRANSITION HELPERS === */
.fade-in {
  animation: fadeInC .22s linear;
}
.slide-in-x {
  animation: slideInX .3s cubic-bezier(.72,-0.47,.37,1.33);
}
@keyframes slideInX {
  from { transform: translateX(-70vw); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutX {
  from { transform: translateX(0); opacity:1; }
  to { transform: translateX(-70vw); opacity:0; }
}

/* === MISC: HELPER CLASSES === */
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }
.text-center { text-align: center !important; }

/* === NARROW PAGE TEXT SECTIONS === */
.text-section {
  max-width: 780px;
  margin: 0 auto 0 auto;
}

/* === THANK YOU PAGE BUTTON === */
.thank-you-btn {
  margin-top: 18px;
}

/* === END OF STYLE.CSS === */
