/* RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; border: 0; }
body, html { height: 100%; }
body { min-height: 100vh; background: #F5F5F5; color: #263238; font-family: 'Roboto', Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: #00A843; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #007b34; text-decoration: underline; outline: none; }
main { flex: 1 0 auto; }

/* BRAND TYPOGRAPHY */
h1, .h1 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-size: 2.5rem; line-height: 1.14; font-weight: 700; color: #263238; margin-bottom: 24px; letter-spacing: -0.01em; }
h2, .h2 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-size: 2rem; line-height: 1.18; font-weight: 600; color: #263238; margin-bottom: 24px; letter-spacing: -0.01em; }
h3, .h3 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-size: 1.25rem; font-weight: 600; margin-bottom: 16px; color: #263238; }
p, ul, ol, li { color: #263238; font-size: 1rem; font-family: 'Roboto', Arial, Helvetica, sans-serif; }
ul, ol { padding-left: 24px; margin-bottom: 16px; }
strong, b { font-weight: 700; }

/* CONTAINERS & SPACING */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  background: #fff;
  border-radius: 22px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 16px rgba(38, 50, 56, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FLEX LAYOUT MANDATORY CLASSES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F8FAF4;
  border-radius: 20px;
  border: 1px solid #D1E6D4;
  box-shadow: 0 6px 24px rgba(38,50,56,0.06);
  padding: 32px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  min-width: 240px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 10px 30px rgba(38,50,56,0.13);
  border-color: #B5D7B2;
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F8FAF4;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(38,50,56,0.08);
  border: 1px solid #D1E6D4;
  margin-bottom: 20px;
  min-width: 220px;
  transition: box-shadow 0.16s, transform 0.12s;
}
.testimonial-card p {
  color: #263238;
  font-size: 1.1rem;
  font-style: italic;
}
.testimonial-card:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 6px 28px rgba(38,50,56,0.16);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F9F8F5;
  border-radius: 14px;
  padding: 20px 18px;
  border-left: 4px solid #00C853;
  margin-bottom: 16px;
}

/* HEADER, NAVIGATION & MOBILE MENU */
header {
  background: #e7ecdf url('../assets/leaf-bg.jpg') repeat-x left bottom;
  box-shadow: 0 2px 10px rgba(38,50,56,0.06);
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
}
header nav a {
  color: #263238;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 16px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
header nav a.cta {
  background: #00C853;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,200,83,0.09);
}
header nav a:not(.cta):hover,
header nav a:not(.cta):focus {
  background: #D1E6D4;
  color: #00A843;
}
header nav a.cta:hover,
header nav a.cta:focus {
  background: #008e3f;
  color: #fff;
}
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: #263238;
  cursor: pointer;
  z-index: 108;
  margin-left: 14px;
}
@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(231, 236, 223, 0.98);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 28px 24px 16px 24px;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: transparent;
  border: none;
  color: #263238;
  cursor: pointer;
  margin-bottom: 18px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #263238;
  background: #e7ecdf;
  border-radius: 17px;
  padding: 12px 0 12px 18px;
  font-weight: 500;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a.cta {
  background: #00C853;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 9px rgba(0,200,83,0.09);
}
.mobile-nav a:not(.cta):hover,
.mobile-nav a:not(.cta):focus {
  background: #D1E6D4;
  color: #00A843;
}
.mobile-nav a.cta:hover,
.mobile-nav a.cta:focus {
  background: #008e3f;
  color: #fff;
}


/* MAIN BANNER & HERO */
main section:first-child .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  min-height: 260px;
  text-align: left;
  padding-top: 10px;
}
main section:first-child h1 {
  color: #00C853;
  font-size: 2.1rem;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
}
main section:first-child p {
  font-size: 1.1rem;
  margin-bottom: 28px;
}

/* CTA BUTTONS */
.cta {
  display: inline-flex;
  align-items: center;
  background: #00C853;
  color: #fff !important;
  padding: 13px 36px;
  border-radius: 25px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 20px rgba(0, 200, 83, 0.09);
  border: none;
  cursor: pointer;
  transition: background 0.16s, transform 0.18s, box-shadow 0.16s;
  text-decoration: none;
  margin-top: 10px;
  margin-bottom: 10px;
}
.cta:hover, .cta:focus {
  background: #008e3f;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 25px rgba(0, 200, 83, 0.15);
  outline: none;
}
button.cta { border: none; }

/* FEATURE GRID (for .features-grid in index) */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.features-grid > div {
  background: #F8FAF4;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(38,50,56,0.06);
  border: 1px solid #D1E6D4;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 220px;
  min-width: 200px;
  min-height: 210px;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.features-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 3px;
}
.features-grid > div:hover {
  box-shadow: 0 9px 26px rgba(38, 50, 56, 0.13);
}

/* SHORT ABOUT (index) */
.short-about {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  background: #F9F8F5;
  padding: 18px 18px;
  border-radius: 16px;
  border-left: 4px solid #00C853;
}
.short-about img {
  width: 68px;
  min-width: 48px;
}
.short-about p {
  margin-bottom: 0;
}

/* VALUE PROPS (index) */
.value-props {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: disc;
  margin-top: 18px;
}
.value-props li {
  background: #e0efdf;
  border-radius: 12px;
  padding: 8px 18px;
  color: #2C4935;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
}
.products-teaser {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: flex-start;
}
.products-teaser ul {
  min-width: 180px;
  padding-left: 20px;
}

/* ICON STEPS (Jak to Dziala) */
.icon-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 12px;
}
.icon-steps img {
  width: 56px; height: 56px;
  background: #F8FAF4;
  border-radius: 50%;
  padding: 8px;
  border: 1px solid #d2e5d5;
}

/* TESTIMONIAL SLIDER / GRID (index) */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 18px;
}
.testimonial-slider .testimonial-card {
  min-width: 230px;
}
.testimonial-slider .testimonial-card img {
  display: inline-block;
  width: 22px;
  margin-right: 3px;
  margin-bottom: -5px;
}

/* FOOTER */
footer {
  background: #F5F5F5;
  border-top: 1.5px solid #d1e6d4;
  margin-top: 48px;
}
footer .container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 24px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #263238;
  font-size: 1rem;
  margin-bottom: 2px;
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: #00A843;
}
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
}
footer .contact-info a { color: #00A843; }

/* BLOG - NEWSLETTER */
.newsletter-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.newsletter-benefits li {
  background: #F8FAF4;
  border-radius: 14px;
  padding: 7px 18px;
  color: #315c2f;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* BENEFITS (products) */
.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2px;
}
.benefits li {
  background: #e9efeb;
  border-radius: 12px;
  padding: 9px 14px;
  color: #315c2f;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}

/* FORM ELEMENTS (basic, for newsletter & contact) */
input, textarea, select {
  border: 1.5px solid #d1e6d4;
  border-radius: 9px;
  padding: 12px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  background: #fff;
  margin-bottom: 20px;
  width: 100%;
  transition: border 0.17s;
}
input:focus, textarea:focus, select:focus { border-color: #00C853; box-shadow: 0 1px 7px rgba(0,200,83,0.04); }

/* COOKIE CONSENT - BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: #fff;
  border-top: 2px solid #d1e6d4;
  box-shadow: 0 -4px 18px rgba(60,80,52,0.08);
  padding: 24px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.25s, transform 0.32s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 1.1rem;
  color: #263238;
  margin-bottom: 0;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  padding: 11px 25px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.15s;
  margin-bottom: 0;
}
.cookie-banner .accept-all {
  background: #00C853;
  color: #fff;
  box-shadow: 0 1px 7px rgba(0,200,83,0.09);
}
.cookie-banner .accept-all:hover { background: #008e3f; }
.cookie-banner .reject-all {
  background: #e7ecdf;
  color: #263238;
  border: 1.5px solid #d1e6d4;
}
.cookie-banner .reject-all:hover { background: #D1E6D4; color: #189447; }
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #00C853;
  border: 1.2px solid #00C853;
}
.cookie-banner .cookie-settings-btn:hover { background: #00C853; color: #fff; }

/* COOKIE SETTINGS MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4100;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(38,50,56,0.25);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 0 24px rgba(60,80,52,0.10);
  padding: 32px 20px 24px 20px;
  min-width: 320px;
  max-width: 98vw;
  margin-bottom: 0;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(.65, -.3, .2, 1.6);
}
.cookie-modal.visible {
  transform: translateY(0);
}
.cookie-modal h3 {
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F8FAF4;
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 1rem;
}
.cookie-modal label {
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
}
.cookie-modal input[type='checkbox'] {
  accent-color: #00C853;
  width: 18px;
  height: 18px;
}
.cookie-modal .essential {
  font-weight: 600;
  color: #00C853;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 24px;
  top: 17px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #263238;
  cursor: pointer;
}
@media (min-width: 768px) {
  .cookie-modal {
    border-radius: 26px;
    max-width: 460px;
    margin-bottom: auto;
    position: relative;
    top: 50%;
    transform: translateY(100%) translateY(-50%);
  }
  .cookie-modal.visible {
    transform: translateY(-50%);
  }
}

/* ANIMATION KEYFRAMES */
@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(35px); }
  100% { opacity: 1; transform: none; }
}


/* RESPONSIVENESS & BREAKPOINTS */
@media (max-width: 1024px) {
  .container { max-width: 97vw; }
  footer .container { gap: 18px; }
  .features-grid, .testimonial-slider { flex-direction: column; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .short-about { gap: 18px; }
  .features-grid > div { min-width: 140px; }
  .testimonials .testimonial-card { min-width: 150px; }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.5rem; }
  .section { margin-bottom: 38px; padding: 28px 10px; }
  .features-grid, .products-teaser, .content-grid, .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .card, .testimonial-card, .feature-item, .short-about { min-width: 110px; padding: 15px 8px; }
  .products-teaser ul, .value-props ul { min-width: unset; max-width: 100%; }
  header .container { flex-direction: row; flex-wrap: wrap; gap: 7px; }
  header nav { display: none !important; }
  .mobile-menu-toggle { display: flex; }
  .footer .container { flex-direction: column; gap: 18px; }
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
}
@media (max-width: 520px) {
  .container { padding-left: 6px; padding-right: 6px; }
  footer .container { padding: 22px 7px; }
  .section { padding: 17px 2px; }
  .card, .testimonial-card, .feature-item, .short-about { padding: 10px 4px; }
  .cookie-banner { padding: 15px 6px; gap: 10px; }
  .cookie-modal { padding: 14px 5px 14px 5px; }
}

/* ACCESSIBILITY/FOCUS */
a:focus-visible, .cta:focus-visible, button:focus-visible {
  outline: 2px solid #00C853;
  outline-offset: 2px;
}

/* ORGANIC NATURE ACCENTS */
.section, .card, .testimonial-card, .feature-item, .short-about {
  box-shadow: 0 2px 16px rgba(38,50,56,0.07);
  border-radius: 22px 22px 22px 38px/22px 38px 22px 22px;
  /* slightly irregular corners for 'organic' look */
}
.features-grid > div, .products-teaser ul, .benefits li, .value-props li, .newsletter-benefits li {
  border-radius: 16px 21px 19px 13px/17px 22px 17px 21px;
}
.card, .testimonial-card, .feature-item, .short-about, .newsletter-benefits li {
  background: #F8FAF4 url('../assets/organic-texture.png') repeat top left;
  /* optional decorative organic pattern, fallback to solid color */
}

/* Icon accent color override */
.features-grid img,
.short-about img,
.icon-steps img,
footer img {
  background: #e0efdf;
  border: 1.5px solid #B5D7B2;
  border-radius: 14px;
}

/* Microinteractions & Animations */
.section, .card, .testimonial-card, .feature-item, .short-about,
.features-grid > div, .products-teaser ul, .benefits li, .value-props li, .newsletter-benefits li {
  animation: fade-in-up 0.7s cubic-bezier(0.65,0,-0.09,1.19) both;
}

/* Hide visually but keep accessible */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
