/* Flecked Fundusze - style.css - Playful Dynamic, Flexbox-Only, Responsive, Brand-compliant */

/* 1. 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.5;
  background: #F7F6F2;
  color: #16394C;
}
ul, ol {
  padding-left: 24px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #16394C;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: #59B7B0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: transparent;
  box-sizing: border-box;
}

/* 2. Fonts */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.13;
}
h1 {
  font-size: 2.25rem;
  color: #16394C;
}
h2 {
  font-size: 1.5rem;
  color: #16394C;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.125rem;
  color: #16394C;
  margin-bottom: 8px;
}

/* 3. Layout: Container, Wrapper, Section Spacing */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(90deg, #F7F6F2 85%, #E8FEDB 100%);
  border-radius: 32px;
  box-shadow: 0 4px 32px -10px rgba(89,183,176,0.07), 0 1.5px 8px 0px #E5F4F2;
  position: relative;
}
@media (max-width: 768px) {
  .section {
    padding: 26px 10px;
    margin-bottom: 32px;
    border-radius: 18px;
  }
}

/* 4. Navigation Styles */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(22,57,76,0.08);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  min-height: 75px;
}
header img {
  height: 38px;
}
header nav {
  display: flex;
  gap: 15px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #16394C;
  padding: 8px 14px;
  border-radius: 20px;
  transition: background 0.14s, color 0.15s;
  background: none;
}
header nav a:hover, header nav a:focus {
  background: #E5F4F2;
  color: #59B7B0;
}
header nav .cta-primary {
  background: #F9CB40;
  color: #16394C;
  padding: 10px 30px;
  border-radius: 28px;
  font-size: 1.04rem;
  margin-left: 6px;
  box-shadow: 0 2px 14px -2px #F9CB4060;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.16s, color 0.16s, box-shadow 0.2s;
}
header nav .cta-primary:hover {
  background: #59B7B0;
  color: #fff;
  box-shadow: 0 4px 20px -4px #59B7B0;
}
button.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #16394C;
  background: #F9CB40;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
button.mobile-menu-toggle:hover,
button.mobile-menu-toggle:focus {
  background: #59B7B0;
  color: #fff;
}

@media (max-width: 992px) {
  header nav {
    display: none;
  }
  button.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
  }
}

/* 5. Mobile Menu (slide in) */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #16394C;
  color: #fff;
  z-index: 100;
  transform: translateX(-100vw);
  transition: transform 0.3s cubic-bezier(.6,0,.4,1);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2.2rem;
  background: #F9CB40;
  color: #16394C;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover {
  background: #59B7B0;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-top: 90px;
}
.mobile-nav a {
  color: #fff;
  background: #59B7B0;
  padding: 14px 38px;
  font-size: 1.2rem;
  border-radius: 30px;
  width: 85vw;
  max-width: 400px;
  text-align: center;
  margin: 0 auto;
  transition: background 0.2s, color 0.2s, transform 0.18s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F9CB40;
  color: #16394C;
  transform: scale(1.04);
}

@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
  button.mobile-menu-toggle {
    display: none !important;
  }
}

/* 6. Buttons: Playful Dynamic Style */
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.8em 2em;
  border-radius: 40px;
  background: #59B7B0;
  color: #fff;
  box-shadow: 0 4px 14px -3px #59B7B090;
  margin-top: 18px;
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  text-shadow: 0 2px 8px #16394C10;
  transition: background 0.18s, color 0.18s, box-shadow 0.25s, transform 0.18s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #F9CB40;
  color: #16394C;
  transform: translateY(-1px) scale(1.03) rotate(-1.5deg);
  box-shadow: 0 7px 24px -8px #F9CB4080;
}
.cta-secondary {
  background: #F9CB40;
  color: #16394C;
  box-shadow: 0 4px 10px -3px #59B7B050;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #59B7B0;
  color: #fff;
  box-shadow: 0 7px 22px -8px #59B7B080;
  transform: scale(1.04) rotate(1.2deg);
}

/* 7. Card Containers & Cards (flex) */
.card-container,
.feature-grid,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
  margin: 22px 0 0 0;
}
.card,
.feature-grid > div,
.card-grid > * {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 24px -10px #16394C20;
  padding: 24px 18px 18px 18px;
  margin-bottom: 20px;
  flex: 1 1 230px;
  min-width: 210px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: box-shadow 0.23s, transform 0.16s;
  z-index: 1;
}
.card:hover, .feature-grid > div:hover, .card-grid > *:hover {
  box-shadow: 0 8px 36px -7px #59B7B0;
  transform: translateY(-5px) scale(1.03) rotate(-1.7deg);
}

@media (max-width: 900px) {
  .card-container, .feature-grid, .card-grid, .content-grid {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .card, .feature-grid > div, .card-grid > * {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* 8. Spacing Utilities (Cards, Sections) */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}
.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: 20px;
  }
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFFDEB;
  border-left: 8px solid #59B7B0;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 14px -4px #59B7B060;
  font-size: 1.08rem;
  font-style: italic;
  color: #16394C;
  max-width: 460px;
  width: 100%;
  min-width: 0;
}
.testimonial-card strong {
  font-style: normal;
  color: #16394C;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 4px;
}

@media (min-width: 701px) {
  .content-wrapper> .testimonial-card {
    margin-right: auto;
  }
}

/* 9. Lists, Blockquotes, Address */
ul {
  list-style-type: disc;
  margin-bottom: 10px;
}
li {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.54;
}
blockquote {
  font-style: italic;
  color: #1D6178;
  background: #E5F4F2;
  border-left: 5px solid #59B7B0;
  border-radius: 10px;
  margin: 10px 0 7px 0;
  padding: 12px 22px; 
}
address, address a {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
}
address a:hover {
  color: #59B7B0;
}

/* 10. Footer */
footer {
  background: #16394C;
  color: #fff;
  padding: 36px 0 14px 0;
  margin-top: 45px;
}
footer .container {
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #59B7B0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 2px 0;
  font-size: 1.07rem;
  transition: color 0.2s;
}
footer nav a:hover {
  color: #F9CB40;
}
.footer-logo img {
  height: 44px;
  filter: brightness(1.1);
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
  .footer-logo {
    margin-top: 18px;
  }
}

/* 11. Playful Micro Animations */
@keyframes playful-pop {
  0% { transform: scale(1) rotate(0deg); }
  70% { transform: scale(1.14) rotate(1deg); }
  100% { transform: scale(1) rotate(0); }
}
.cta-primary:hover, .cta-secondary:hover,
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  animation: playful-pop 0.46s cubic-bezier(.3,2,.2,1);
}

/* 12. Accent Colors for Visual Energy */
.feature-grid > div {
  border: 3px solid #59B7B0;
  border-radius: 28px;
  box-shadow: 0 4px 22px -8px #59B7B060;
  background: #fff;
  position: relative;
  transition: border-color 0.22s, box-shadow 0.23s;
}
.feature-grid > div:hover {
  border-color: #F9CB40;
  box-shadow: 0 8px 28px -6px #F9CB4040, 0 2px 16px -6px #59B7B0;
  z-index: 2;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-bottom: 10px;
  background: #F9CB40;
  box-shadow: 0 2px 10px -2px #E5F4F2;
  padding: 7px;
  transition: box-shadow 0.25s, background 0.21s;
}
.feature-grid > div:hover img {
  background: #59B7B0;
  box-shadow: 0 6px 30px -8px #59B7B090;
}

/* 13. Content Grid & Responsiveness */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

/* 14. Special: News Articles */
.feature-grid article {
  background: #fff;
  border: 2.7px solid #59B7B0;
  border-radius: 22px;
  box-shadow: 0 2px 14px -3px #16394C19;
  padding: 18px 15px 14px 15px;
  margin-bottom: 20px;
  min-width: 200px;
  flex: 1 1 240px;
  transition: box-shadow 0.21s;
  position: relative;
}
.feature-grid article:hover {
  box-shadow: 0 7px 20px -4px #59B7B040;
  border-color: #F9CB40;
}
.feature-grid article h3 {
  font-size: 1.09rem;
  margin-bottom: 8px;
}
.feature-grid article span {
  display: block;
  color: #7DADBD;
  font-size: 0.99rem;
  margin-top: 10px;
  font-weight: 700;
}

/* 15. Cookie Consent Banner & Modal */
.flecked-cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #16394C;
  color: #fff;
  box-shadow: 0 -2px 16px -5px #59B7B0;
  padding: 26px 16px 22px 16px;
  border-radius: 20px 20px 0 0;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  justify-content: center;
  animation: banner-slide-up 0.7s cubic-bezier(.33,1.4,.56,1);
}
@keyframes banner-slide-up {
  0% { transform: translateY(110%); opacity: 0 } 
  100% { transform: translateY(0); opacity: 1 }
}
.flecked-cookie-banner p {
  color: #fff;
  font-size: 1.06rem;
  text-align: center;
}
.flecked-cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.flecked-cookie-actions button {
  padding: 10px 28px;
  margin: 0;
  border-radius: 32px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: #F9CB40;
  color: #16394C;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  border: none;
}
.flecked-cookie-actions .reject {
  background: #fff;
  color: #16394C;
  border: 2px solid #F9CB40;
}
.flecked-cookie-actions .settings {
  background: #59B7B0;
  color: #fff;
}
.flecked-cookie-actions button:hover,
.flecked-cookie-actions button:focus {
  background: #59B7B0;
  color: #fff;
}
.flecked-cookie-actions .settings:hover {
  background: #F9CB40;
  color: #16394C;
}

.flecked-cookie-modal {
  position: fixed;
  left: 0; right: 0; top:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(22,57,76,0.65);
  z-index: 5000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modal-fade-in 0.35s cubic-bezier(.3,2,.2,1);
  pointer-events: auto;
}
@keyframes modal-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.flecked-cookie-modal-content {
  background: #fff;
  min-width: 300px;
  max-width: 96vw;
  border-radius: 24px;
  padding: 34px 24px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 8px 38px -10px #59B7B0;
  color: #16394C;
  animation: modal-content-pop .3s cubic-bezier(.5,2.1,.6,.98);
}
@keyframes modal-content-pop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.flecked-cookie-modal-content h2 {
  margin-bottom: 6px;
  font-size: 1.5rem;
}
.flecked-cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.flecked-cookie-category input[type=checkbox] {
  width: 28px; height: 28px;
  accent-color: #59B7B0;
  outline: 2px solid #F9CB40;
  border-radius: 7px;
}
.flecked-cookie-modal-content .flecked-cookie-actions {
  margin-top: 16px;
  justify-content: flex-end;
  gap: 15px;
}
.flecked-cookie-modal-close {
  position: absolute;
  top: 23px;
  right: 26px;
  font-size: 2rem;
  background: #59B7B0;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center; justify-content: center;
  transition: background 0.18s;
}
.flecked-cookie-modal-close:hover { background: #F9CB40; color: #16394C; }

@media (max-width: 600px) {
  .flecked-cookie-modal-content {
    min-width: 0;
    width: 94vw;
    padding: 20px 10px 18px 10px;
    border-radius: 14px;
  }
  .flecked-cookie-modal-close {
    top: 10px;
    right: 13px;
  }
}

/* 16. Miscellaneous/Playful Elements */
::-webkit-scrollbar {
  width: 9px;
  background: #f4f4f4;
}
::-webkit-scrollbar-thumb {
  background: #59B7B0;
  border-radius: 9px;
}

/* 17. Responsive Typography (mobile-first) */
@media (max-width: 600px) {
  html { font-size: 16px; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
  .footer-logo img { height: 34px; }
}
@media (max-width: 360px) {
  html { font-size: 15px; }
}

/* 18. A11y & Focus - always visible, playful */
:focus {
  outline: 2.5px dashed #F9CB40;
  outline-offset: 1.5px;
}

/* END Flecked Fundusze playful_dynamic, flexbox only CSS */
