/* ========================
   Zielona Odyseja CSS – style.css
   Playful Dynamic, Responsive, Flexbox Only
   ======================== */

/* RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, img, input, textarea, button { margin: 0; padding: 0; font-weight: normal; }
ul, ol { padding-left: 1.2em; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; cursor: pointer; }
button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; }
html { font-size: 16px; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F0EFE6;
  color: #145C35;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  transition: background 0.2s;
  /* Playful animated bokeh in background -- optional/experimental */
  position: relative;
  overflow-x: hidden;
}

/* ========================
   COLOR PALETTE & VARIABLES
   ======================== */
:root {
  --primary: #145C35;     /* Zielona Odyseja Green */
  --secondary: #F0EFE6;   /* Offwhite / Sand */
  --accent: #16684A;      /* Deep Green */
  --highlight: #FFD54A;   /* Playful yellow for accents */
  --mid-green: #28C49C;   /* Playful accent for highlights */
  --soft-pink: #FFCBF2;   /* Playful accent for highlights */
  --orange: #FFD97A;      /* Fun energy accent */
  --blue: #6BE3FF;        /* Playful blue */
  --text-dark: #103824;   /* For most text */
  --text-light: #fff;   
  --shadow: 0 2px 16px rgba(20,92,53, 0.12);
}

/* ========================
   TYPOGRAPHY
   ======================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:800,700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, .cta-btn, .service-cta {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.05;
  text-shadow: 1px 2px 0 var(--highlight),0 8px 28px rgba(44,92,80,0.05);
  animation: fadein-slide 0.8s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes fadein-slide {
  0% { opacity: 0; transform: translateY(30px);} 
  100% { opacity: 1; transform: translateY(0);}
}

h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: var(--accent);
}
h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
}
.subheadline {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--mid-green);
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

p, ul, ol, li {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 14px;
}
strong { font-weight: 700; color: var(--accent); }
ul, ol { margin-bottom: 18px; }
li {
  margin-bottom: 8px;
  list-style: disc inside;
}
.testimonial-author { font-size: 1rem; font-family: 'Montserrat', 'Open Sans', sans-serif; font-weight: 600; color: var(--accent); letter-spacing: 0.01em; }

/* Playful font with some wavy/rounded feel for display */
.cta-btn, .service-cta {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ========================
   SPACING & CONTAINER
   ======================== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}
.text-section {
  width: 100%;
  margin-bottom: 32px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.22s, box-shadow 0.21s;
  padding: 26px 18px;
}
.card:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 32px rgba(20,92,53,0.23), 0 1.5px 8px var(--highlight);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
}

/* Grids & groupings using FLEXBOX */
.content-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 18px;
  flex: 1 1 260px;
  min-width: 200px;
  margin-bottom: 20px; /* Ensures gap on wrap */
  position: relative;
  transition: box-shadow 0.18s, transform 0.22s;
  z-index: 1;
  overflow: hidden;
  border: 2px solid var(--soft-pink);
  animation: floatIn 0.6s cubic-bezier(.62,-0.33,.57,1.67);
}
@keyframes floatIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.feature-grid > div::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  bottom: 12px;
  right: 20px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.11;
  z-index: 0;
}
.feature-grid > div:hover {
  box-shadow: 0 7px 26px rgba(22,104,74,0.14),0 2.5px 12px var(--mid-green);
  transform: scale(1.03) rotate(-1.5deg);
  border-color: var(--orange);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 9px;
  filter: drop-shadow(0 3px 3px #F3ECC4);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 19px rgba(22,104,74, .10);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  min-width: 260px;
  max-width: 360px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  border: 2px solid var(--highlight);
  transition: box-shadow 0.17s, transform 0.15s;
  position: relative;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px var(--mid-green), 0 2px 10px var(--highlight);
  transform: scale(1.04) rotate(0.5deg);
  border-color: var(--mid-green);
}
.stars {
  color: #FFD54A;
  font-size: 1.4rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.16em;
}

/* ========================
    BUTTONS & CTA
   ======================== */
.cta-btn {
  padding: 14px 34px;
  background: linear-gradient(90deg,var(--mid-green), var(--accent));
  color: var(--text-light);
  border: none;
  border-radius: 32px 32px 24px 32px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: box-shadow 0.22s, background 0.18s, transform 0.18s;
  margin-top: 12px;
  margin-bottom: 10px;
  box-shadow: 0 3px 16px rgba(22,104,74,0.15);
  cursor: pointer;
  outline: none;
  position: relative;
}
.cta-btn:after {
  content: '';
  position: absolute;
  top: -8px; right: -10px;
  width: 14px; height: 14px;
  background: var(--soft-pink);
  border-radius: 50%;
  opacity: 0.23;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg,var(--accent), var(--mid-green));
  color: var(--highlight);
  box-shadow: 0 5px 32px var(--accent),0 2px 15px var(--highlight);
  transform: translateY(-2px) scale(1.05) rotate(-1deg);
}

.service-cta {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 10px 22px;
  background: var(--mid-green);
  color: var(--text-light);
  border-radius: 24px 24px 24px 30px;
  transition: background 0.18s, color 0.18s, transform 0.19s;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(22,104,74,0.13);
}
.service-cta:hover, .service-cta:focus {
  background: var(--highlight);
  color: var(--accent);
  transform: scale(1.06) rotate(-2deg);
}

/* ========================
   NAVIGATION
   ======================== */
header {
  background: var(--primary);
  box-shadow: 0 0.5px 12px rgba(20,92,53,0.08);
  width: 100%;
  z-index: 50;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
}
header a img {
  height: 48px;
  width: auto;
  transition: filter 0.18s;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  color: var(--highlight);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 18px;
  transition: background 0.17s, color 0.17s, transform 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--highlight);
  color: var(--primary);
  transform: scale(1.08); 
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: var(--highlight);
  background: var(--mid-green);
  border-radius: 50%;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--highlight);
  transition: background 0.15s, color 0.14s;
  margin-left: 10px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--highlight);
  color: var(--primary);
}

/* =====================
   MOBILE NAVIGATION
   ===================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,92,53,0.98);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.67,-0.31,.34,1.25);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: var(--highlight);
  background: var(--mid-green);
  border-radius: 50%;
  width: 48px; height: 48px;
  margin: 30px 0 16px 28px;
  align-self: flex-start;
  border: 3px solid var(--highlight);
  transition: background 0.15s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--highlight);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 16px;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--highlight);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 18px;
  width: 100%;
  display: block;
  transition: background 0.15s, color 0.14s, transform 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--highlight);
  color: var(--primary);
  transform: scale(1.04);
}

/* ========================
   FOOTER
   ======================== */
footer {
  background: #fff;
  border-top: 7px solid var(--primary);
  margin-top: 50px;
  box-shadow: 0 3px 17px rgba(20,92,53,0.055);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 35px 0 30px 0;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 12px;
  transition: background 0.14s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--mid-green);
  color: var(--text-light);
}
.footer-info {
  flex: 1 1 250px;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.footer-info a { color: var(--mid-green); font-weight: 600; }
.footer-social {
  display: flex; gap: 16px; align-items: center;
}
.footer-social img { width: 32px; height: 32px; border-radius: 50%; background: var(--highlight); padding: 4px; transition: filter 0.16s, background 0.16s; }
.footer-social img:hover { background: var(--mid-green); filter: brightness(1.23);
}
.footer-newsletter {
  background: var(--soft-pink);
  color: var(--primary);
  border-radius: 16px;
  padding: 18px 20px;
  max-width: 310px;
  box-shadow: 0 2px 14px rgba(255,203,242,0.19);
  margin: 0 0 0 auto;
}
.footer-newsletter h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 7px;
}
/* ========================
     MOCKUP CONTACT FORM
   ======================== */
.contact-form-mockup {
  background: var(--soft-pink);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 16px 0 24px 0;
  box-shadow: 0 2px 11px rgb(255,203,242,0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.08rem;
}
.contact-form-mockup ul { margin-bottom: 10px; }
.contact-form-mockup li:before {
  content: '\2606';
  margin-right: 6px;
  color: var(--highlight);
}
.contact-form-mockup .cta-btn {
  width: 100%;
  margin: 0;
  margin-top: 8px;
}
/* ========================
   COOKIE CONSENT BANNER
   ======================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--mid-green);
  color: var(--text-light);
  box-shadow: 0 -2px 14px rgba(19, 110, 80,0.12);
  width: 100%;
  z-index: 1800;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 16px;
  animation: slideUp .7s cubic-bezier(0.25, 1.25, 0.3, 1) 0s 1 both;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 5px 0 0;
  font-size: 1rem;
  color: var(--text-light);
  flex: 1 1 320px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  background: var(--highlight);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.04rem;
  border: none;
  border-radius: 12px;
  padding: 9px 20px;
  margin: 0;
  transition: background 0.17s, color 0.17s, transform 0.14s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--primary);
  color: var(--highlight);
  transform: scale(1.07);
}
.cookie-banner .settings-btn {
  background: var(--blue);
  color: var(--primary);
}

/* Cookie preference modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom:0;
  background: rgba(20,92,53,0.82);
  z-index: 1900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.3s;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px 30px 30px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 10px 32px rgba(22,104,74,0.16),0 1.5px 8px var(--soft-pink);
  color: var(--primary);
  position: relative;
}
.cookie-modal h2 {
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--mid-green);
  width: 24px; height: 24px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 1.5rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover {
  color: var(--mid-green);
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 9px 24px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  background: var(--highlight);
  color: var(--primary);
  transition: background 0.14s, color 0.14s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--mid-green);
  color: var(--text-light);
}

/* ========================
   MISC & OTHER ELEMENTS
   ======================== */
section { margin-bottom: 60px; padding: 40px 20px; }

/* Links */
a {
  transition: color 0.16s, text-decoration 0.13s;
}
a:hover, a:focus {
  color: var(--mid-green);
  text-decoration: underline;
}

ol {
  margin-bottom: 18px;
  padding-left: 1.2em;
}
li { margin-bottom: 8px; line-height: 1.6; }

/* Hero section playful deco bubbles */
section:first-of-type {
  position: relative;
}
section:first-of-type::before {
  content: '';
  position: absolute;
  left: 4%; top: 15%;
  width: 56px; height: 56px;
  background: var(--blue);
  border-radius: 50%;
  opacity: 0.16;
  z-index: 0;
}
section:first-of-type::after {
  content: '';
  position: absolute;
  right: 1%; top: 28%;
  width: 44px; height: 44px;
  background: var(--soft-pink);
  border-radius: 48% 52% 53% 47%;
  opacity: 0.16;
  z-index: 0;
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */
@media (max-width: 992px) {
  .feature-grid, .testimonial-grid, .content-grid, .footer-newsletter, .footer-newsletter,.container, .footer-nav {
    flex-wrap: wrap;
  }
  .feature-grid > div, .testimonial-card {
    flex: 1 1 100%;
    min-width: 220px;
    max-width: 100%;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 34px;
  }
  .footer-newsletter {
    margin: 0;
    width: 100%;
    max-width: none;
  }
  .footer-nav { gap: 14px; }
}
@media (max-width: 768px) {
  .container { padding-left: 8px; padding-right: 8px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .main-nav, .cta-btn {
    font-size: 1rem;
  }
  header .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    padding-top: 5px; padding-bottom: 5px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid, .testimonial-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .testimonial-card {
    max-width: 100%;
    min-width: 180px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-wrapper {
    align-items: center; gap: 14px;
  }
  .footer-newsletter {
    max-width: none;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 8px;
  }
}
@media (max-width:500px) {
  h1 { font-size: 1.36rem; }
  h2 { font-size: 1.08rem; }
  .cta-btn, .service-cta {
    font-size: 0.94rem;
    padding: 10px 12px;
  }
  section { padding: 20px 4px; margin-bottom: 32px; }
  .feature-grid > div, .testimonial-card, .card {
    padding: 14px 8px;
    border-radius: 12px;
    margin-bottom: 15px;
  }
  .footer-newsletter {
    padding: 10px 8px;
    border-radius: 9px;
  }
  .cookie-modal {
    min-width: 90vw;
    padding: 14px 6px 20px 10px;
  }
}

/* ========================
   MICRO-ANIMATIONS
   ======================== */
.feature-grid > div, .testimonial-card, .card {
  transition: box-shadow .2s, transform .18s, border-color .16s;
}
.animated {
  animation: floatIn 0.6s cubic-bezier(.62,-0.33,.57,1.67);
}

/* ==========================
   ACCESSIBILITY FOCUSES
   ========================== */
.cta-btn:focus, .service-cta:focus, .main-nav a:focus, .footer-nav a:focus, .mobile-nav a:focus, .cookie-banner button:focus, .cookie-modal button:focus {
  outline: 2.5px dashed var(--blue);
  outline-offset: 3px;
}

/* ==========================
   Z-INDEX LAYERING
   ========================== */
header { z-index: 900; }
.mobile-menu { z-index: 1300; }
.cookie-banner { z-index: 1800; }
.cookie-modal-overlay { z-index: 1900; }

/* ==========================
   PRINT STYLES
   ========================== */
@media print {  body { background: #fff !important; }  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; } }

/* ==========================
   END FINAL
   ========================== */