/* RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, li, ol, blockquote { margin: 0; padding: 0; font-weight: normal; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; border: none; background: none; }

/* BRAND COLORS (with nature-organic tints) */
:root {
  --color-primary: #2580C3;   /* Brand Blue */
  --color-secondary: #232323; /* Brand Deep Neutral */
  --color-accent: #FFC94D;    /* Brand Yellow Accent */
  --color-green: #62a465;     /* Organic Green Accent */
  --color-earth: #E9E4DB;     /* Earth Light BG */
  --color-olive: #A6A489;
  --color-bark: #6b5e48;
  --color-brown: #96704A;
  --color-white: #fff;
  --color-grey-bg: #fbfaf8;
  --color-grey: #6b6d5c;
  --color-shadow: 0 4px 16px 0 rgba(97,89,66,0.09);

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-secondary);
  line-height: 1.7;
  background: var(--color-grey-bg);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* TYPOGRAPHY SCALE & HIERARCHY */
h1, .hero h1 { font-family: var(--font-display); font-size: 2.5rem; color: var(--color-bark); font-weight: 700; margin-bottom: 20px; letter-spacing: -1px; }
h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--color-green); margin-bottom: 16px; }
h3 { font-size: 1.3rem; font-family: var(--font-display); margin-bottom: 8px; color: var(--color-brown); }

p, li, .text-section { font-family: var(--font-body); font-size: 1rem; color: var(--color-secondary); margin-bottom: 12px; }
.strong, strong { color: var(--color-bark); font-weight: 700; }

.text-section { margin-bottom: 16px; }

.hero-lead { font-size: 1.3rem; color: var(--color-green); font-family: var(--font-display); font-weight: 600; margin-bottom: 10px; }
.hero-sub { color: var(--color-brown); margin-bottom: 20px; }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 0.75em 2.2em;
  background: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  border-radius: 40px;
  border: none;
  box-shadow: 0 2px 8px rgba(98, 164, 101, 0.12);
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  cursor: pointer;
  margin-top: 8px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(149, 163, 55, 0.10);
}

/* FLEX LAYOUTS & PADDING */
/* MANDATORY CONTAINER CLASSES */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-earth);
  border-radius: 32px;
  box-shadow: var(--color-shadow);
}
.card-container, .content-grid, .features, .footer-nav > nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.content-grid { gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: 22px; background: var(--color-white); box-shadow: 0 2px 12px 0 rgba(159,139,77,0.13); margin-bottom: 20px; border: 1px solid #EEEDE8; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; background: var(--color-white); border-radius: 14px; padding: 16px 20px; box-shadow: 0 1px 6px 0 rgba(99,110,70,0.09); }
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: 22px;
  box-shadow: var(--color-shadow);
  padding: 28px 20px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover, .card:focus-within { box-shadow: 0 8px 28px 0 rgba(56,76,34,0.13); transform: translateY(-4px) scale(1.02); }
.card-content { display: flex; flex-direction: column; justify-content: center; gap: 8px; }

/* NAVIGATION */
header {
  background: var(--color-white); box-shadow: 0 6px 24px 0 rgba(57, 84, 63, 0.04);
  position: sticky; top: 0; z-index: 60;
}
nav[aria-label="Główna nawigacja"] {
  display: flex;
  align-items: center;
  padding: 12px 0;
  gap: 34px;
}
.nav-logo { margin-right: 20px; }
.nav-logo img { height: 38px; }
.main-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin-right: 24px;
}
.main-menu li a {
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: var(--color-secondary);
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.main-menu li a:hover, .main-menu li a:focus {
  background: var(--color-green);
  color: var(--color-white);
}
nav > .btn-primary {
  margin-left: auto;
}

/* MOBILE MENU STYLES */
.mobile-menu-toggle {
  display: none;
  background: var(--color-green);
  color: var(--color-white);
  border-radius: 10px;
  padding: 8px 15px;
  font-size: 1.7rem;
  z-index: 102;
  border: 2px solid var(--color-olive);
  position: relative;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(36,50,33,0.96);
  z-index: 200;
  transition: transform 0.28s cubic-bezier(0.77,0,0.175,1);
  transform: translateX(100%);
  flex-direction: column;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 28px; right: 32px;
  font-size: 2.2rem;
  color: var(--color-earth);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 221;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: var(--color-accent); }
.mobile-nav {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 22px; margin: 90px 0 0 32px;
}
.mobile-nav a {
  color: var(--color-earth);
  font-size: 1.3rem;
  font-family: var(--font-display);
  margin-bottom: 4px;
  border-radius: 8px;
  padding: 6px 16px;
  background: none;
  transition: background 0.17s, color 0.17s;
  min-width: 160px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-green);
  color: var(--color-white);
}

/* RESPONSIVE NAV */
@media (max-width: 1020px) {
  nav[aria-label="Główna nawigacja"] { gap: 20px; }
  .main-menu { gap: 13px; }
}
@media (max-width: 900px) {
  nav[aria-label="Główna nawigacja"] { gap: 10px; }
}
@media (max-width: 768px) {
  nav[aria-label="Główna nawigacja"] {
    flex-wrap: wrap; gap: 0;
  }
  .main-menu { display: none; }
  nav > .btn-primary { display: none; }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 16px;
  }
}

/* HERO SECTIONS */
.hero {
  background: linear-gradient(108deg, var(--color-earth) 77%, var(--color-green) 100%);
  border-radius: 0 0 44px 44px;
  box-shadow: 0 4px 40px 0 rgba(108, 158, 122, 0.10);
  margin-bottom: 46px;
  padding: 80px 0 54px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
}

/* FEATURES SECTION */
.features {
  padding: 0;
  gap: 24px;
  background: none;
  box-shadow: none;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feature-list li {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(129,146,77,0.08);
  padding: 16px 22px;
  margin-bottom: 12px;
  min-width: 230px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-bark);
  display: flex; align-items: center;
  gap: 14px;
  transition: box-shadow 0.16s, background 0.15s;
}
.feature-list li:hover {
  box-shadow: 0 6px 16px 0 rgba(75, 110, 44, 0.07);
  background: #f5faed;
}
.feature-list img { width: 28px; height: 28px; filter: grayscale(13%) brightness(0.86) sepia(0.12) hue-rotate(-12deg) saturate(0.8); }

.text-section {
  margin-top: 18px;
  color: var(--color-grey);
}

/* SERVICES/CARD-LIKE LISTS */
.services .container { margin-top: 0; }
.services .content-wrapper ul,
.services .content-wrapper p { margin-bottom: 18px; }
.services .content-wrapper a.btn-primary { margin-top: 18px; }

/* TESTIMONIALS */
.testimonials { background: linear-gradient(100deg, #e9efed 62%, var(--color-grey-bg) 100%); border-radius: 32px; box-shadow: 0 2px 10px 0 rgba(120,139,67,0.08);}
.testimonials h2 { margin-bottom: 24px; }
.testimonial-card { max-width: 530px; margin: 0 0 20px 0; }
.testimonial-card blockquote {
  font-size: 1.10rem;
  font-style: italic;
  color: var(--color-secondary);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.testimonial-meta {
  color: var(--color-green);
  font-size: 0.99rem;
  font-family: var(--font-body);
}

/* CTA SECTION */
.cta {
  background: var(--color-green);
  color: var(--color-white);
  text-align: center;
  border-radius: 22px;
  margin-bottom: 30px;
  box-shadow: 0 3px 16px rgba(67,108,67,0.10);
  padding: 38px 0;
}
.cta h2 { color: var(--color-white); }
.cta .btn-primary { background: var(--color-accent); color: var(--color-secondary); margin-top: 14px; }
.cta .btn-primary:hover { background: var(--color-green); color: var(--color-white); }

/* ABOUT PAGE / AVATAR (if any) */
.about .content-wrapper ul {
  margin: 18px 0 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px;
}

/* PRIVACY, COOKIE, TERMS */
.privacy-policy, .cookies-policy, .rodo, .terms {
  background: var(--color-earth);
  border-radius: 22px;
  padding: 34px 20px;
  margin: 34px 0;
  box-shadow: var(--color-shadow);
}
.privacy-policy h1, .cookies-policy h1, .rodo h1, .terms h1 {
  margin-bottom: 16px;
  color: var(--color-bark);
}
.privacy-policy ul, .cookies-policy ul, .rodo ul, .terms ul {
  margin: 15px 0 10px 22px;
  padding: 0;
  list-style: disc;
  color: var(--color-secondary);
  font-size: 1em;
}
.privacy-policy h2, .cookies-policy h2, .rodo h2, .terms h2 { color: var(--color-green); margin-top: 18px; }

/* CONTACT PAGE */
.contact .text-section {
  background: var(--color-earth);
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 16px;
}
.contact .btn-primary { margin-top: 12px; }

/* THANK YOU PAGE */
.thank-you {
  background: var(--color-earth);
  border-radius: 28px;
  padding: 38px 20px;
  margin: 50px 0;
  box-shadow: var(--color-shadow);
  text-align: center;
}
.thank-you h1 { color: var(--color-green); margin-bottom: 14px; }
.thank-you a.btn-primary { margin-top: 22px; }

/* FOOTER */
footer {
  background: var(--color-green);
  color: var(--color-white);
  padding: 40px 0 20px;
  border-radius: 44px 44px 0 0;
  box-shadow: 0 -3px 38px 0 rgba(149, 163, 55, 0.08);
}
footer .container { display: flex; flex-wrap: wrap; flex-direction: row; gap: 34px; align-items: flex-start; justify-content: space-between; }
.footer-brand {
  display: flex; align-items: center; gap: 11px; font-family: var(--font-display);
  font-size: 1.3rem; font-weight: bold;
}
.footer-brand img { width: 38px; }
.footer-nav > nav > ul { flex-direction: row; flex-wrap: wrap; gap: 18px; margin: 0 0 18px 0; }
.footer-nav li a {
  color: var(--color-white);
  font-size: 1rem;
  padding: 3px 11px;
  border-radius: 8px;
  transition: background 0.14s;
}
.footer-nav li a:hover, .footer-nav li a:focus { background: var(--color-accent); color: var(--color-secondary); }
.footer-info { font-size: 0.98rem; color: #e8fae2; opacity: 0.83; margin-top: 10px; }

@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 20px; align-items: flex-start; }
}
@media (max-width: 600px) {
  footer { border-radius: 28px 28px 0 0; padding: 26px 0 14px; }
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 900px) {
  .features, .feature-list {
    gap: 14px; flex-direction: column; align-items: flex-start;
  }
  .testimonial-card { max-width: 99%; }
}
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .section { padding: 23px 7px; margin-bottom: 32px; }
  .hero { padding: 44px 0 24px; border-radius: 0 0 24px 24px; }
  .hero .container, .hero .content-wrapper { max-width: 100%; }
  .content-grid, .card-container, .features, .feature-list { flex-direction: column; align-items: stretch; gap: 17px; }
  .text-image-section { flex-direction: column; align-items: stretch; gap: 13px; }
  .card { padding: 18px 11px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; padding: 14px; }
  .footer-nav > nav > ul { gap: 8px; flex-direction: column; }
  .footer-brand img { width: 30px; }
}

/* TRANSITIONS, SHADOWS, ORGANIC SHAPES */
.section, .card, .feature-list li, .testimonial-card, .hero, .about .content-wrapper, .privacy-policy, .cookies-policy, .rodo, .terms {
  transition: box-shadow 0.18s, background 0.22s, border-radius 0.25s;
}
.section, .hero, .testimonial-card, .about .content-wrapper, .privacy-policy, .cookies-policy {
  border-radius: 28px 31px 30px 26px / 22px 28px 19px 25px;
  /* Organic border radii */
}

/* INTERACTIVE MICRO-INTERACTIONS */
a, .btn-primary, .main-menu li a, .footer-nav li a, .mobile-nav a {
  transition: color 0.13s, background 0.17s, transform 0.12s;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 6000;
  background: var(--color-earth);
  box-shadow: 0 -4px 32px 0 rgba(87, 118, 77, 0.18);
  padding: 22px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  font-size: 1.07rem;
  border-radius: 28px 28px 0 0;
  justify-content: space-between;
  animation: cookie-slidein 0.38s cubic-bezier(0.77,0,0.175,1);
}
@keyframes cookie-slidein {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  color: var(--color-secondary);
  flex: 1;
  min-width: 0;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  padding: 9px 23px;
  border-radius: 16px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.02rem;
  cursor: pointer;
  border: none;
  background: var(--color-green);
  color: var(--color-white);
  transition: background 0.16s, color 0.16s, box-shadow 0.15s;
  box-shadow: 0 1px 8px rgba(118,142,77,0.09);
}
.cookie-btn.settings {
  background: var(--color-accent); color: var(--color-secondary);
}
.cookie-btn.reject {
  background: #afaf9a; color: var(--color-white);
}
.cookie-btn:hover, .cookie-btn:focus { filter: brightness(108%); box-shadow: 0 3px 10px 0 rgba(83, 142, 55, 0.13); }

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 11px;
    gap: 13px;
    font-size: 1em;
  }
  .cookie-banner-buttons { width: 100%; gap: 8px; }
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 7000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(38,55,33,0.83);
  align-items: center;
  justify-content: center;
  animation: cookie-fade-in 0.22s ease;
}
@keyframes cookie-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: var(--color-earth);
  border-radius: 27px;
  max-width: 440px;
  width: 90vw;
  padding: 32px 20px 22px 26px;
  box-shadow: 0 16px 54px 0 rgba(67, 122, 33, 0.21);
  color: var(--color-secondary);
  font-size: 1.04rem;
  position: relative;
  animation: modal-slideup 0.19s cubic-bezier(0.85,0.14,0.22,1);
}
@keyframes modal-slideup {
  from { transform: translateY(70px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-header {
  font-family: var(--font-display);
  font-size: 1.23rem;
  font-weight: bold;
  color: var(--color-green);
  margin-bottom: 9px;
}
.cookie-modal-close {
  position: absolute;
  right: 24px; top: 17px;
  background: transparent;
  border: none;
  color: var(--color-green);
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-bark);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.cookie-category label {
  flex: 1;
  color: var(--color-brown);
  font-weight: 500;
}
.cookie-toggle {
  width: 32px; height: 19px;
  border-radius: 11px;
  background: #cdcdba;
  position: relative;
  transition: background 0.16s;
  vertical-align: middle;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 15px;
  height: 15px;
  background: var(--color-green);
  border-radius: 50%;
  transition: left 0.16s, background 0.15s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 15px; background: var(--color-accent);
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
  background: #99ad87;
}
.cookie-category .desc {
  font-size: 0.98em;
  color: #84906A;
}

/* ACCESSIBILITY */
:focus-visible {
  outline: 2px dashed var(--color-accent);
  outline-offset: 2px;
  z-index: 333;
}

/* Utility classes */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.text-center { text-align: center; }
.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }

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

/* END OF CSS */
