/* --- 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, 
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F1F5FA;
  color: #273347;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #23547A;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #C16700;
  outline: none;
}
ul, ol {
  margin-left: 32px;
}
h1, h2, h3, h4 {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #23547A;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 28px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 22px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #273347;
}
b, strong {
  font-weight: 700;
  color: #23547A;
}

/* --- BASE CONTAINERS & LAYOUTS --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  margin-bottom: 16px;
}

/* --- SECTION SPACING RULES (MANDATORY) --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(35,84,122,0.04);
  transition: box-shadow .25s;
}
section:last-of-type {
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  section {
    padding: 24px 8px;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 10px;
  }
}

/* --- FLEXBOX LAYOUT CLASSES --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #F9FBFD;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(35,84,122,0.07);
  position: relative;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(35,84,122,0.15);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F8FC;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(35, 84, 122, 0.06);
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #1B2B3A;
}
.testimonial-card p {
  color: #273347;
  font-size: 1.1rem;
  margin-bottom: 0;
  flex: 1;
}
.testimonial-card b {
  color: #23547A;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* --- NAVIGATION --- */
header {
  background: #FFF;
  box-shadow: 0 2px 12px rgba(35, 84, 122, 0.040);
  position: sticky;
  top: 0;
  z-index: 60;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
  min-height: 74px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #23547A;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
header nav a:hover,
header nav a:focus {
  background: #F1F5FA;
  color: #C16700;
}
header .btn.primary {
  margin-left: 16px;
  display: inline-block;
}

/* Burger */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #23547A;
  cursor: pointer;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .2s;
  margin-left: 18px;
  display: none;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F1F5FA;
  color: #23547A;
}

/* --- MOBILE NAV MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35, 50, 70, 0.28);
  z-index: 999;
  display: flex;
  flex-direction: row;
  /* hidden by default */
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu nav.mobile-nav {
  background: #FFF;
  min-width: 260px;
  max-width: 90vw;
  padding: 42px 28px 28px 32px;
  box-shadow: 4px 0 24px rgba(35,84,122,.13);
  border-radius: 0 18px 18px 0;
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open nav.mobile-nav {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #23547A;
  cursor: pointer;
  z-index: 1002;
  border-radius: 4px;
  width: 38px;
  height: 38px;
  transition: background .2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #F1F5FA;
  color: #C16700;
}
.mobile-nav a {
  font-size: 1.12rem;
  color: #23547A;
  padding: 12px 0 12px 0;
  margin-bottom: 2px;
  border-bottom: 1px solid #F0F2F7;
  font-family: 'Open Sans', Arial, sans-serif;
  display: block;
  transition: background .18s, color .18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F1F5FA;
  color: #C16700;
}

/* Hide desktop nav/menu on mobile and show burger */
@media (max-width: 1020px) {
  header nav, header .btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- BUTTONS --- */
.btn, .btn.primary {
  background: #23547A;
  color: #FFF;
  border: none;
  outline: none;
  border-radius: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(35, 84, 122, 0.06);
  margin-right: 12px;
  margin-bottom: 12px;
  margin-top: 8px;
  display: inline-block;
  transition: background .18s, color .18s, box-shadow .22s;
}
.btn.primary {
  background: #23547A;
  color: #FFF;
}
.btn.primary:hover,
.btn.primary:focus {
  background: #C16700;
  color: #FFF;
  box-shadow: 0 4px 18px rgba(242, 148, 26, 0.08);
}
.btn,
.btn:not(.primary) {
  background: #F1F5FA;
  color: #23547A;
  border: 1.5px solid #23547A;
}
.btn:not(.primary):hover,
.btn:not(.primary):focus {
  background: #23547A;
  color: #FFF;
  box-shadow: 0 3px 12px rgba(35,84,122,0.10);
}
@media (max-width: 480px) {
  .btn,.btn.primary { padding: 11px 20px; font-size: 1rem; }
}

/* --- TABLES (CENÍK) --- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  background: #F9FBFD;
  border-radius: 11px;
  box-shadow: 0 2px 7px rgba(35,84,122,0.04);
  overflow: hidden;
}
thead {
  background: #23547A;
  color: #FFF;
}
th, td {
  text-align: left;
  padding: 14px 16px;
  font-size: 1rem;
}
th {
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: .02em;
  background: #23547A;
  color: #fff;
}
tbody tr:nth-child(even) {
  background: #F1F5FA;
}
tbody tr:hover {
  background: #EDF2F8;
  transition: background .2s;
}

/* --- FOOTER --- */
footer {
  background: #FAFBFC;
  border-top: 1px solid #EBF0F7;
  margin-top: 48px;
  padding: 32px 0 12px 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.97rem;
  color: #647A9B;
  margin-bottom: 8px;
}
footer nav a {
  color: #647A9B;
  transition: color .18s;
}
footer nav a:hover { color: #23547A; }
footer .text-section > div {
  margin-bottom: 4px;
  color: #475770;
  font-size: 0.97rem;
}
footer img { margin-bottom: 14px; }

/* --- FOR HELPERS (e.g. content) --- */
ul {
  list-style: disc inside;
  margin-bottom: 20px;
  color: #273347;
  font-size: 1rem;
}
ol {
  list-style: decimal inside;
  margin-bottom: 20px;
  color: #273347;
  font-size: 1rem;
}
li {
  margin-bottom: 8px;
}
span {
  color: #C16700;
  font-weight: bold;
}

/* --- PAGE LAYOUTS --- */
@media (min-width: 1020px) {
  .content-wrapper {
    flex-direction: row;
    gap: 44px;
  }
  .text-section {
    flex: 1;
    min-width: 280px;
  }
}
@media (max-width: 1020px) {
  .content-wrapper {
    flex-direction: column;
    gap: 22px;
  }
}

/* --- TYPOGRAPHY SCALE --- */
h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p,
li { font-size: 1rem; }

@media (max-width: 990px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.04rem; }
}
@media (max-width: 650px) {
  h1 { font-size: 1.25rem; }
  h2, h3 { font-size: 1rem; }
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
a, .btn, .btn.primary, .card, .testimonial-card, .mobile-menu-toggle,
.mobile-menu-close {
  transition: all 0.18s cubic-bezier(.6,0,.22,1);
}
button:active {
  transform: scale(0.99);
}
.card:hover {
  box-shadow: 0 6px 22px rgba(35,84,122,0.11);
}
.testimonial-card:hover {
  box-shadow: 0 5px 16px rgba(35,84,122,0.11);
}

/* --- FORMS (if added in future) --- */
input, textarea, select {
  background: #FFF;
  border: 1.5px solid #C8D3E0;
  border-radius: 7px;
  padding: 12px;
  margin-bottom: 18px;
  font-size: 1rem;
  color: #273347;
  transition: border .16s;
  font-family: 'Open Sans', Arial, sans-serif;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #23547A;
  outline: none;
}
label {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #23547A;
  font-family: 'Roboto', Arial, sans-serif;
}

/* --- ACCESSIBILITY --- */
:focus-visible {
  outline: 2px solid #F2941A;
  outline-offset: 2px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #FFF;
  border-top: 1.5px solid #E2E7F0;
  box-shadow: 0 -4px 24px rgba(35,84,122,0.04);
  z-index: 1020;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 14px 22px 14px;
  gap: 24px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #23547A;
  transition: transform .35s, opacity .28s;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  min-height: 64px;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .banner-text {
  flex: 1;
  margin-right: 18px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-banner .btn, .cookie-banner .btn.primary, .cookie-banner .btn-settings {
  padding: 8px 22px;
  font-size: 1rem;
  border-radius: 6px;
  font-family: 'Roboto', Arial, sans-serif;
  cursor: pointer;
}
.cookie-banner .btn.primary {
  background: #23547A;
  color: #FFF;
}
.cookie-banner .btn.primary:hover { background: #C16700; }
.cookie-banner .btn-settings {
  background: #F1F5FA;
  color: #23547A;
  border: 1.3px solid #23547A;
}
.cookie-banner .btn-settings:hover { background: #23547A; color: #FFF; }
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; gap: 12px; padding: 16px 6px 16px 6px; }
  .cookie-banner .banner-text { margin-right: 0; }
  .cookie-banner .cookie-btns { flex-direction: row; gap: 10px; }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40,50,70,0.18);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 9px 36px rgba(35,84,122,0.17);
  max-width: 440px;
  min-width: 260px;
  width: 92vw;
  padding: 34px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: popin .55s cubic-bezier(.56,.08,.32,1.3);
  position: relative;
}
@keyframes popin {
  from { transform: scale(0.98) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #23547A;
  border-radius: 5px;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F1F5FA;
  color: #C16700;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1.05rem;
  color: #273347;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-toggle {
  width: 38px;
  height: 23px;
  border-radius: 14px;
  background: #E6EBF3;
  position: relative;
  transition: background .16s;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 1px solid #C8D3E0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  left: 3px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFF;
  transition: transform .16s, background .14s;
  box-shadow: 0 1px 3px #c8d3e090;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #23547A;
  transform: translateX(15px);
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
  background: #A9B4C7;
  cursor: not-allowed;
}

/* --- SCANDINAVIAN CLEAN EXTRAS --- */
section, .card, .testimonial-card {
  border-radius: 14px;
}
.card, .testimonial-card, section {
  box-shadow: 0 2px 8px rgba(35,84,122,0.05);
}

/* --- SCROLLBAR STYLING FOR CLEAN/NATURAL FEEL --- */
::-webkit-scrollbar    { width:8px; background: #EFF4F9; }
::-webkit-scrollbar-thumb { background: #23547A25; border-radius: 4px; }

/* --- SELECTION COLOR --- */
::selection { background: #C16700; color: #FFF; }
::-moz-selection { background: #C16700; color: #FFF; }

/* --- MISC SPACING ADJUSTMENTS ON MOBILE --- */
@media (max-width: 600px) {
  footer .container, .container {
    padding-left: 3px; padding-right: 3px;
  }
  section { padding: 15px 4px; margin-bottom: 26px; }
  h1, h2, h3 { margin-bottom: 13px; }
}

/* --- END --- */
