/* ================================================================
   Minimalist CSS for Tęczowa Fala – All Pages
   Responsive, modern, flexbox-only, with mobile menu and cookie consent
=================================================================== */

/* === CSS RESET & 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;
}

/* Remove list styles */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #1a2130;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Google Fonts - only recommended, include in HTML <head> */
/*
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Baloo+2:600,700&display=swap" rel="stylesheet">
*/

/* ==== BRAND VARS (as fallbacks, no CSS vars for max compatibility) ==== */

/* ===============================
   LAYOUT BASE: CONTAINERS
================================ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* use gap in flex children */
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(24, 121, 183, 0.04), 0 1.5px 8px rgba(26,33,48,.02);
}

/* ===============================
   TYPOGRAPHY
================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Baloo 2', 'Montserrat', Arial, sans-serif;
  color: #1879B7;
  margin-bottom: 18px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.text-section h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul li, span, label {
  color: #1a2130;
  font-size: 1rem;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}
strong {
  font-weight: 700;
}
small {
  color: #666;
  font-size: 0.9em;
}

.text-section {
  margin-bottom: 32px;
}
.text-section p {
  margin-bottom: 10px;
}

/* ===============================
   HEADER & NAVIGATION
================================ */
header {
  width: 100%;
  padding-top: 0.7rem;
  background: #fff;
  box-shadow: 0 1px 8px rgba(24, 121, 183, 0.05);
  z-index: 990;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 20px;
  gap: 24px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  height: 48px;
}
.logo img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1a2130;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 8px 0px;
  transition: color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #1879B7;
}
.cta-btn.primary {
  background: #1879B7;
  border-radius: 999px;
  color: #fff;
  border: none;
  font-family: 'Baloo 2', 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 28px;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(24, 121, 183, 0.07);
  transition: background .18s, box-shadow .18s, color .16s;
  margin-left: 16px;
  position: relative;
  z-index: 2;
}
.cta-btn.primary:hover,
.cta-btn.primary:focus {
  background: #115c8e;
  color: #fff;
  box-shadow: 0 3px 24px rgba(24,121,183,0.13);
}
.cta-btn.secondary {
  background: #FBE448;
  border-radius: 999px;
  color: #1a2130;
  border: none;
  font-family: 'Baloo 2', 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 28px;
  margin-top: 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(251,228,72,0.11);
  transition: background .16s, color .16s, box-shadow .16s;
}
.cta-btn.secondary:hover,
.cta-btn.secondary:focus {
  background: #ffe98d;
  color: #1879B7;
  box-shadow: 0 3px 14px rgba(251,228,72,0.19);
}

/* ===========
  MOBILE NAV
============ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1879B7;
  cursor: pointer;
  z-index: 1003;
  margin-left: 20px;
  transition: color .17s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #1879B7;
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.97);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 2000;
  transform: translateX(0);
  transition: transform 0.30s cubic-bezier(.7,0,.3,1), opacity .20s;
  box-shadow: 0 10px 40px 0 rgba(24,121,183,0.12);
  padding: 38px 32px 24px 32px;
}
.mobile-menu {
  transform: translateX(-110vw);
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #1879B7;
  align-self: flex-end;
  margin-right: 0;
  margin-bottom: 34px;
  cursor: pointer;
  z-index: 1020;
  transition: color .16s;
}
.mobile-menu-close:focus {
  outline: 2px solid #1879B7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1a2130;
  padding: 12px 0;
  font-weight: 500;
  border-radius: 4px;
  transition: background .14s, color .14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FBE448;
  color: #1879B7;
}

/* MOBILE NAV Enable/hide on small screens */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .cta-btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 650px) {
  .mobile-menu.active {
    padding: 32px 14px 18px 14px;
  }
}

/* ===============================
   HERO SECTIONS & MAJOR SECTION LAYOUTS
================================ */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
  border: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(24,121,183,0.04), 0 1.5px 8px rgba(26,33,48,0.03);
}

/* ===============================
   CARDS & FLEXBOX COMPONENTS
================================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(24,121,183,0.03);
  padding: 30px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 240px;
  flex: 1 1 240px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 32px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(24,121,183,0.10);
  border-radius: 13px;
  margin-bottom: 20px;
  margin-top: 0;
  max-width: 700px;
  color: #1a2130;
}
.testimonial-card p {
  color: #1a2130;
  font-size: 1.05rem;
  line-height: 1.5;
}
.testimonial-card span {
  color: #1879B7;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
}
.average-score {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  font-weight: 600;
  color: #1a2130;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.tips-slider {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8faff;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 26px 0;
  box-shadow: 0 1px 7px rgba(24,121,183,0.06);
}
.tips-slider p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.tips-slider img {
  width: 22px;
  height: 22px;
}

/* ===============================
   LISTS IN FEATURES/CARDS
================================ */
.content-wrapper ul {
  margin: 0 0 26px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.content-wrapper ul li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  padding-left: 0;
  line-height: 1.6;
}
.content-wrapper ul li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-right: 8px;
  border-radius: 7px;
}

/* ===============================
   FOOTER
================================ */
footer {
  width: 100%;
  background: #f6fafe;
  border-top: 1px solid #e5eaef;
  padding: 32px 0 12px 0;
  margin-top: 48px;
}
footer .container {
  flex-direction: column;
  gap: 28px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #1879B7;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  line-height: 1.8;
  transition: color .13s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #1a2130;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #1a2130;
  font-size: 1rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}
.footer-branding {
  font-size: 0.98rem;
  color: #888;
  margin-top: 12px;
}

/* ===============================
   COOKIE CONSENT BANNER + MODAL
================================ */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(24,121,183,0.11);
  width: 100vw;
  z-index: 3200;
  padding: 18px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  transition: transform .30s, opacity .20s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner-text {
  flex: 1 1 320px;
  font-size: 1rem;
  color: #1a2130;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 999px;
  border: 0;
  padding: 8px 22px;
  cursor: pointer;
  font-weight: 600;
  transition: background .15s, color .15s, box-shadow .16s;
  box-shadow: 0 1px 4px rgba(24,121,183,0.07);
}
.cookie-btn.accept {
  background: #1879B7;
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #105a89;
  color: #fff;
}
.cookie-btn.reject {
  background: #e6eaf1;
  color: #1a2130;
}
.cookie-btn.reject:hover {
  background: #cfdceb;
  color: #1879B7;
}
.cookie-btn.settings {
  background: #FBE448;
  color: #1a2130;
}
.cookie-btn.settings:hover {
  background: #ffe98d;
  color: #1879B7;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,121,183,0.17);
  z-index: 3250;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .20s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px 14px 0 0;
  max-width: 460px;
  width: 100%;
  margin: 0 auto 0 auto;
  box-shadow: 0 6px 32px rgba(24,121,183,.19);
  padding: 38px 32px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  bottom: 0;
  animation: cookieModalIn .32s cubic-bezier(.7,0,.3,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(200px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #1879B7;
  font-size: 2.2rem;
  position: absolute;
  top: 14px;
  right: 18px;
  cursor: pointer;
  transition: color .13s;
}
.cookie-modal-close:focus {
  outline: 2px solid #1879B7;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 500;
  color: #1a2130;
}
.cookie-switch {
  margin-left: 0;
}
.cookie-category input[type=checkbox],
.cookie-category input[type=radio] {
  accent-color: #1879B7;
  width: 20px;
  height: 20px;
}
.cookie-category.essential input[type=checkbox],
.cookie-category.essential input[type=radio] {
  accent-color: #b8d0e6;
}

/* ===============================
   RESPONSIVE & MEDIA QUERIES
================================ */
@media (max-width: 992px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  .container { padding: 0 12px; }
  .card, .testimonial-card, .cookie-modal { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 768px) {

  .container {
    max-width: 100%;
    padding: 0 8px;
  }
  .content-wrapper {
    padding: 0 0;
  }
  header .container {
    gap: 12px;
    min-height: 50px;
    padding-right: 8px;
    padding-left: 8px;
  }
  section, .section {
    padding: 34px 4px;
    margin-bottom: 40px;
    border-radius: 10px;
  }
  .testimonial-card {
    padding: 20px 10px;
    min-width: unset;
    font-size: 0.95rem;
  }
  .content-grid,
  .card-container,
  .feature-item {
    flex-direction: column;
    gap: 16px;
  }
  .footer-contact {
    gap: 3px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 5px;
  }
  .cookie-modal {
    width: 100vw;
    border-radius: 14px 14px 0 0;
    max-width: 100vw;
    left: 0; right: 0;
    padding: 32px 8px 18px 16px;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 1.18rem; }
  h2 { font-size: 1.08rem; }
  .section, section {
    padding: 16px 2px;
    margin-bottom: 30px;
    border-radius: 8px;
  }
  .testimonial-card, .card {
    padding: 12px 4px;
    border-radius: 8px;
    font-size: 0.9rem;
  }
  .footer-nav {
    gap: 12px;
    font-size: 0.95rem;
  }
  .footer-branding {
    font-size: 0.85rem;
  }
}
/* ===============================
   MICRO-INTERACTIONS & TRANSITIONS
================================ */
.card, .testimonial-card, .tips-slider, .cookie-modal {
  transition: box-shadow .18s, border .13s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(24,121,183,0.21);
}
.cta-btn.primary, .cta-btn.secondary, .cookie-btn {
  transition: background .18s, color .13s, box-shadow .12s;
}

/* ===============================
   MISC CLASSES & UTILITIES
================================ */
.text-center { text-align: center !important; }
.text-section { margin-top: 16px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* Hide visually but keep accessible */
.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0 !important;
  position: absolute !important;
  width: 1px;
}

/* ===============================
   COLOR ACCESSIBILITY ADJUSTMENTS
================================ */
.testimonial-card p, .testimonial-card span {
  color: #1a2130!important;
  background: none;
}

/* --- END --- */
