/* ====================================================================
   RESET & BASELINE NORMALIZATION
   ==================================================================== */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F8FBFD;
  color: #212529;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
a {
  color: #16697A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #489FB5;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
strong { font-weight: 600; }
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #16697A;
  letter-spacing: 0.01em;
}
h1 { font-size: 2rem; margin-bottom: 24px; line-height: 1.15; }
h2 { font-size: 1.5rem; margin-bottom: 20px; line-height: 1.2; }
h3 { font-size: 1.18rem; margin-bottom: 12px; }
h4 { font-size: 1rem; margin-bottom: 8px; }
p, li, blockquote, td, th, dd, dt {
  font-size: 1rem;
}
blockquote {
  border-left: 4px solid #489FB5;
  padding-left: 20px;
  margin-bottom: 20px;
  font-style: italic;
  color: #345059;
}

/* === Typography scale (mobile) === */
@media (max-width: 768px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }
}

/* ====================================================================
   CONTAINER & BASIC STRUCTURE
   ==================================================================== */
.container {
  width: 100%;
  max-width: 1080px;
  padding: 0 16px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(40,61,86,0.07);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 32px;
    padding: 24px 5px;
    border-radius: 8px;
  }
}

/* ====================================================================
   NAVIGATION & HEADER
   ==================================================================== */
header {
  width: 100%;
  background: #16697A;
  color: #fff;
  box-shadow: 0 2px 12px rgba(22,105,122,0.06);
  position: relative;
  z-index: 1100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  min-height: 66px;
  gap: 16px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  display: inline-block;
  padding: 7px 2px;
  transition: color 0.2s;
}
.main-nav a.active,
.main-nav a:focus,
.main-nav a:hover {
  color: #ffd12d;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: #489FB5;
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 40px;
  padding: 10px 28px;
  margin-left: 20px;
  box-shadow: 0 2px 8px rgba(40,61,86,0.07);
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #16697A;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(22,105,122,0.16);
  transform: translateY(-2px) scale(1.025);
}

/* Hide mobile nav toggle on desktop */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 900px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1202;
    position: relative;
    transition: color 0.18s;
  }
  .mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    color: #ffd12d;
  }
}

/* ============ MOBILE SLIDE MENU ============= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(22, 105, 122, 0.98);
  color: #fff;
  z-index: 1201;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.6,.1,.35,1);
  will-change: transform;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 36px;
  padding-left: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2rem;
  border: none;
  position: absolute;
  top: 14px;
  right: 18px;
  cursor: pointer;
  z-index: 200;
  transition: color .2s;
  padding: 2px 8px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #ffd12d;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 38px;
  width: 100vw;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  display: block;
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 12px 0;
  width: 100%;
  transition: color 0.22s, background 0.22s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #ffd12d;
  background: rgba(255,255,255,0.05);
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ====================================================================
   BUTTONS & LINKS
   ==================================================================== */
.cta-link {
  color: #16697A;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 600;
  text-decoration: underline;
  font-size: 1.02rem;
  cursor: pointer;
  transition: color 0.18s;
}
.cta-link:hover, .cta-link:focus {
  color: #489FB5;
}

/* ====================================================================
   FLEX LAYOUTS (MANDATORY USAGE)
   ==================================================================== */
/* Feature grid (homepage "Proč si vybrat nás?") */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: #F8FBFD;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(40,61,86,0.06);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.16s, transform 0.16s;
  margin-bottom: 20px;
  border: 1px solid #E4EEF3;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 24px 0 rgba(40,61,86,0.12);
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
  }
  .feature-grid > div {
    flex: 1 1 160px;
    padding: 16px 12px;
    font-size: 14px;
  }
}
@media (max-width: 610px) {
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* Service Details Grid */
.service-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  align-items: stretch;
}
.service-detail-grid > div {
  background: #F8FBFD;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(22,105,122,0.09);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 18px;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.16s;
  border: 1px solid #EAEEF2;
  position: relative;
}
.service-detail-grid > div:hover {
  box-shadow: 0 4px 18px 0 rgba(22,105,122,.15);
  transform: translateY(-2px) scale(1.0125);
}
@media (max-width: 910px) {
  .service-detail-grid {
    gap: 14px;
  }
  .service-detail-grid > div {
    flex: 1 1 170px;
    padding: 14px 10px;
    min-width: 150px;
    margin-bottom: 16px;
  }
}
@media (max-width: 610px) {
  .service-detail-grid {
    flex-direction: column;
    gap: 10px;
  }
}

/* Content grid for side-by-side elements */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
@media (max-width: 790px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* Text + Image Section */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
}

/* Card container for cards/reviews */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(40,61,86,0.11);
  padding: 24px 20px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Card Grid for Pricing, if needed later */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Card Content (vertical centering) */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ====================================================================
   TESTIMONIALS & SPECIAL CARDS
   ==================================================================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F8FBFD;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(22,105,122,0.07);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 520px;
  color: #1a2732;
  border-left: 4px solid #489FB5;
}
.testimonial-card span {
  color: #16697A;
  font-weight: 600;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
}
@media (max-width: 900px) {
  .testimonial-card {
    padding: 12px 12px;
    gap: 12px;
    font-size: 15px;
    max-width: 99%;
  }
}

/* ====================================================================
   TABLES (for pricing)
   ==================================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #F8FBFD;
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
thead {
  background: #16697A;
  color: #fff;
}
th, td {
  padding: 10px 12px;
  border-bottom: 1px solid #CBDDE5;
  text-align: left;
}
th:last-child, td:last-child {
  text-align: center;
}
tr:last-child td {
  border-bottom: none;
}
@media (max-width: 700px) {
  th, td {
    padding: 7px 5px;
    font-size: 0.97em;
  }
}

/* ====================================================================
   FOOTER
   ==================================================================== */
footer {
  background: #16697A;
  color: #fff;
  padding: 0;
  position: relative;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid #489FB5;
  padding-bottom: 14px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.16s;
  padding: 1px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #ffd12d;
}
.company-info {
  font-size: 0.98rem;
  color: #d2e0e7;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.company-info a {
  color: #b5e7f4;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.18s;
}
.company-info a:hover, .company-info a:focus {
  color: #ffd12d;
}
@media (max-width: 780px) {
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* ====================================================================
   TEXT-SECTION, DL, ETC.
   ==================================================================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
dl {
  margin-bottom: 18px;
}
dt {
  font-weight: 600;
  color: #16697A;
  margin-top: 16px;
}
dd {
  margin-left: 0;
  margin-bottom: 10px;
}

/* ====================================================================
   COOKIE CONSENT BANNER & MODAL
   ==================================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #16697A;
  color: #fff;
  z-index: 3000;
  padding: 18px 16px;
  box-shadow: 0 -2px 16px rgba(51,84,102,0.10);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: transform 0.36s;
  font-size: 1rem;
}
.cookie-consent-banner.hide {
  transform: translateY(140%);
  pointer-events: none;
  opacity: 0.2;
}
.cookie-banner-text {
  flex-basis: 70%;
  max-width: 610px;
  line-height: 1.5;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-settings-btn {
  padding: 8px 22px;
  border-radius: 24px;
  border: none;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
}
.cookie-btn.accept {
  background: #489FB5;
  color: #fff;
}
.cookie-btn.reject {
  background: #EAEEF2;
  color: #16697A;
}
.cookie-btn:hover, .cookie-btn:focus,
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #16697A;
  color: #fff;
}
.cookie-settings-btn {
  background: #fff;
  color: #16697A;
  border: 1.5px solid #489FB5;
  margin-left: 6px;
}

@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cookie-banner-actions {
    flex-direction: row;
    gap: 7px;
  }
}

/* ================ COOKIE PREFERENCES MODAL =============== */
.cookie-preferences-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,48,66,0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3300;
  pointer-events: all;
  opacity: 1;
  transition: opacity .29s;
}
.cookie-preferences-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 410px;
  width: 92vw;
  padding: 30px 26px 24px 26px;
  box-shadow: 0 6px 32px 0 rgba(22,105,122,0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #212529;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.18rem;
  color: #16697A;
  margin-bottom: 0.2em;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category label {
  flex: 1 1 auto;
  font-weight: 500;
  font-size: 1rem;
  color: #16697A;
}
.cookie-switch {
  width: 32px;
  height: 20px;
  background: #CBDDE5;
  border-radius: 12px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  transition: background 0.15s;
  margin-right: 5px;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-switch .slider {
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: #489FB5;
  border-radius: 50%;
  transition: left 0.2s, background 0.2s;
}
.cookie-switch input:checked + .slider {
  left: 15px;
  background: #16697A;
}
.cookie-category.essential .cookie-switch {
  background: #489FB5;
}
.cookie-category.essential .cookie-switch .slider {
  background: #16697A;
}
.cookie-category.essential label {
  opacity: 0.6;
}
.cookie-category.essential .cookie-switch {
  pointer-events: none;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #489FB5;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 2;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #16697A;
}
@media (max-width: 500px) {
  .cookie-modal-content {
    padding: 16px 6vw 14px 6vw;
    max-width: 97vw;
    font-size: 15px;
  }
}

/* ====================================================================
   ANIMATION/MICRO-INTERACTIONS (hover, transitions)
   ==================================================================== */
a, button, .cta-btn, .card, .feature-grid > div, .service-detail-grid > div, .testimonial-card, .cookie-btn,
.cookie-settings-btn {
  transition: box-shadow 0.18s, color 0.19s, background 0.19s, transform 0.17s;
}

/* ====================================================================
   RESPONSIVE LAYOUT RULES
   ==================================================================== */
@media (max-width: 1100px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
  }
}

/* -- Responsive for .text-image-section (flex-direction: column on mobile) -- */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Proper gap for all content cards/sections */
.section, .card-container, .content-wrapper, .feature-grid, .service-detail-grid, .content-grid, .text-image-section {
  gap: 20px;
}

/* Padding/margin for all cards/sections */
.section, .card, .testimonial-card {
  margin-bottom: 20px;
}

/* === Utility: visually hide === */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ====================================================================
   MISCELLANEOUS & BRAND ACCENTS
   ==================================================================== */
/* Accent background for special highlights */
.bg-accent {
  background: #F8EBE8;
}

hr {
  border: none;
  border-top: 1px solid #CBDDE5;
  margin: 16px 0;
}

::-webkit-input-placeholder { color: #8B99A6; }
::-moz-placeholder { color: #8B99A6; }
:-ms-input-placeholder { color: #8B99A6; }
::placeholder { color: #8B99A6; }

/* ====================================================================
   PRINT FRIENDLY
   ==================================================================== */
@media print {
  header, footer, .cookie-consent-banner, .cookie-preferences-modal, .mobile-menu { display: none !important; }
  body, .container, .section, .card { background: #fff !important; color: #212529 !important; }
}
