/* =====================================
   CSS RESET & NORMALIZE (ESSENTIAL)
======================================= */
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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
article,aside,details,figcaption,figure, 
footer,header,hgroup,menu,nav,section { display: block; }
body {
  line-height: 1.5;
  min-height: 100vh;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background-color: #F3F6FA;
  color: #21304D;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; border: 0; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  background: none;
  border: none;
}

/* =====================================
   NATURE ORGANIC THEME – BRAND COLORS/FONTS
======================================= */
:root {
  --color-primary: #21304D;
  --color-secondary: #A1D0C7;
  --color-accent: #F3F6FA;
  --color-deep-green: #48614A;
  --color-light-green: #DFF5E3;
  --color-earth: #D3BA96;
  --color-dark-earth: #B8A07B;
  --color-gray-text: #324155;
  --color-white: #fff;
  --color-black: #131A13;
  --color-shadow-green: rgba(135, 163, 118, 0.08);
  --transition: 0.3s cubic-bezier(.44,1.48,.62,1);
  --radius-section: 36px;
  --radius-card: 24px;
  --radius-btn: 23px;
  --shadow-card: 0 4px 18px rgba(106, 133, 101, 0.13);
  --shadow-strong: 0 4px 32px rgba(33,48,77,0.09);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Lato', Arial, Helvetica, sans-serif;
}

/* =====================================
   TYPOGRAPHY – ORGANIC+
======================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 { font-size: 2.7rem; margin-bottom: 26px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.2rem; margin-bottom: 12px; font-weight: 700; }
h4, h5, h6 { font-size: 1em; }

p, ul, ol, li, span, a, label {
  font-family: var(--font-body);
  color: var(--color-gray-text);
  font-size: 1rem;
  line-height: 1.7;
}
p { margin-bottom: 16px; }
strong, b { font-weight: 700; color: var(--color-primary); }
em, i { font-style: italic; }

.text-section h2 { font-size: 2rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
}

/* =====================================
   LAYOUTS   (FLEXBOX ONLY!)
======================================= */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-section);
  background: var(--color-accent);
  box-shadow: 0 2px 18px var(--color-shadow-green);
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 980px) {
  .content-wrapper {
    flex-direction: row;
    gap: 38px;
    align-items: flex-start;
  }
}

/* Feature Grid & Card Containers */
.feature-grid,
.card-container,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 8px;
}
.card-container { gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 32px 24px; min-width: 265px; flex: 1 1 300px; }
.card-content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }

.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: stretch; gap: 18px; }
  .content-wrapper { flex-direction: column; gap: 18px; }
  .feature-grid,
  .card-container,
  .content-grid { flex-direction: column; gap: 22px; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: var(--color-light-green);
  border-radius: 18px;
  box-shadow: 0 2px 15px rgba(95,131,92,0.10);
  margin-bottom: 20px;
  border-left: 7px solid var(--color-secondary);
  color: var(--color-black);
}
.testimonial-card p {
  color: var(--color-black);
  font-size: 1.13rem;
  font-style: italic;
  text-align: center;
}
.testimonial-card span {
  color: var(--color-primary);
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 600;
}

/* Flex utility patterns for features */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =====================================
   BUTTONS, LINK STYLES, MICRO-INTERACTIONS
======================================= */
.cta-btn, .btn, button, input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.13rem;
  padding: 15px 36px;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 12px rgba(57,120,70,0.07);
  letter-spacing: 0.01em;
  margin: 8px 0 0 0;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform .18s ease;
  outline: none;
}
.cta-btn:hover,
.btn:hover,
input[type='submit']:hover {
  background: var(--color-deep-green);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 32px rgba(57,120,70,0.13);
}
.cta-btn:active {
  transform: scale(0.98);
}

/* For secondary/ghost buttons if needed */
.btn-outline {
  background: none;
  color: var(--color-deep-green);
  border: 1.5px solid var(--color-deep-green);
  box-shadow: none;
}
.btn-outline:hover { background: var(--color-light-green); }

/* Navigation link styles */
nav a {
  /* desktop nav links */
  margin-right: 20px;
  color: var(--color-deep-green);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  padding: 8px 0;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
nav a:last-child { margin-right: 0; }
nav a:hover, nav a:focus {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-secondary);
}

/* Header and Nav Layout */
header {
  background: var(--color-white);
  box-shadow: 0 2px 15px rgba(60,103,60,0.09);
  padding: 0;
  border-radius: 0 0 22px 22px;
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 18px 0 0 0;
  flex-wrap: wrap;
}
header nav a img { height: 41px; margin-right: 20px; }
header .cta-btn {
  margin-left: auto;
  margin-right: 30px;
}

/* Hide CTA btn for desktop if mobile (later revealed) */
@media (max-width: 1024px) {
  header nav a { font-size: 0.96rem; }
}
@media (max-width: 900px) {
  header nav { flex-wrap: wrap; gap: 5px; }
}

/* =====================================
   MOBILE BURGER MENU PATTERNS
======================================= */
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 1200;
  font-size: 2.2rem;
  padding: 8px 12px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 13px;
  border: none;
  margin-left: 20px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}

@media (max-width: 880px) {
  header nav, header .cta-btn { display: none !important; }
  .mobile-menu-toggle { display: inline-flex; }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-light-green);
  transform: translateX(-100%);
  z-index: 2000;
  box-shadow: var(--shadow-strong);
  transition: transform 0.33s cubic-bezier(.36,1.36,.61,1);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: var(--color-deep-green);
  color: var(--color-accent);
  border-radius: 14px;
  margin: 25px 0 0 22px;
  width: 46px; height: 46px;
  cursor: pointer;
  border: none;
  z-index: 2100;
  box-shadow: 0 2px 10px rgba(33,48,77,0.07);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 42px 0 0 28px;
  width: 82vw;
}
.mobile-nav a {
  color: var(--color-deep-green);
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 17px 0 15px 6px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  margin-bottom: 2px;

}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-earth);
  color: var(--color-primary);
}

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

/* =====================================
   ORGANIC SECTION & CARD VISUALS
======================================= */
.section {
  background: var(--color-accent);
  box-shadow: 0 4px 16px rgba(51, 141, 104, 0.09);
  border-radius: var(--radius-section);
}
@media (max-width: 600px) {
  .section {
    padding: 20px 10px;
    margin-bottom: 32px;
  }
}

.card, .feature-grid li {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 18px 28px 18px;
  margin-bottom: 20px;
  border-left: 7px solid var(--color-secondary);
  min-width: 220px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid li {
  border-left: 7px solid var(--color-deep-green);
  box-shadow: 0 2px 14px rgba(100,150,90,0.09);
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-start;
}
.feature-grid li:hover, .card:hover {
  box-shadow: 0 8px 34px rgba(57,120,70, 0.16);
  transform: translateY(-5px) scale(1.015);
}

.feature-grid img,
.card img {
  width: 40px; height: 40px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--color-light-green);
  box-shadow: 0 2px 7px rgba(100,150,90,0.12);
  padding: 7px;
}

/* =====================================
   PAGE-SPECIFIC MODIFICATIONS
======================================= */
.text-section {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.text-section ul {
  margin: 8px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  list-style: disc inside;
}
.text-section ul li, .contact-info li {
  color: var(--color-deep-green);
}
.text-section img {
  border-radius: 18px;
}
@media (max-width: 900px) {
  .text-section { max-width: 99vw; }
}

.feature-grid h3 {
  font-family: var(--font-display);
  font-size: 1.13rem;
  margin-bottom: 6px;
  color: var(--color-deep-green);
}
.feature-grid p { font-size: 1rem; color: var(--color-gray-text); margin-bottom: 0; }

/* =====================================
   FOOTER
======================================= */
footer {
  background: var(--color-earth);
  color: var(--color-primary);
  padding: 38px 0 20px 0;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -2px 12px rgba(160,160,90,0.07);
  margin-top: 60px;
  font-size: 1rem;
}
footer nav {
  display: flex;
  justify-content: center;
  gap: 17px;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 7px;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-light-green);
  color: var(--color-deep-green);
  transition: background var(--transition), color var(--transition);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  color: var(--color-primary);
  font-size: 0.93rem;
}
@media (max-width: 768px) {
  footer {
    font-size: 0.96rem;
    margin-top: 30px;
    padding: 28px 0 11px 0;
  }
}

/* =====================================
  FORMS, INPUTS, KONSULTACJE CTA, ETC.
======================================= */
input, textarea, select {
  border: 1.5px solid var(--color-secondary);
  border-radius: 13px;
  background: var(--color-accent);
  padding: 13px 16px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--color-primary);
  width: 100%;
  box-shadow: 0 2px 8px rgba(51, 141, 104, 0.04);
  resize: vertical;
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: 1.5px solid var(--color-deep-green);
  border-color: var(--color-deep-green);
}

label {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 4px;
  display: block;
  font-family: var(--font-display);
}

/* =====================================
   COOKIE CONSENT BANNER & MODAL
======================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-accent);
  color: var(--color-gray-text);
  box-shadow: 0 -4px 24px rgba(60, 103, 60, 0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3000;
  padding: 28px 16px 18px 16px;
  gap: 15px;
  border-radius: 26px 26px 0 0;
  animation: fadeInUp .6s ease;
}
@keyframes fadeInUp {
  from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 9px;
}
.cookie-banner .btn {
  min-width: 128px;
  font-size: 1rem;
  border-radius: 23px;
  margin: 0;
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: rgba(31,48,77,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s cubic-bezier(.42,1.12,.7,1);
}
@keyframes fadeInModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--color-white);
  box-shadow: 0 12px 40px rgba(70,130,120,0.18);
  padding: 36px 28px;
  border-radius: 25px;
  min-width: 320px;
  max-width: 99vw;
  max-height: 98vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  animation: modalPop .32s cubic-bezier(.4,1.38,.86,1.25);
}
@keyframes modalPop {
  0% { transform: scale(0.96); opacity: 0; } 80% { transform: scale(1.022); } 100% { transform: none; opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 2px;
}
.cookie-modal-content label {
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 6px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 13px 0 8px 0;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  color: var(--color-gray-text);
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
  transition: color .18s;
}
.cookie-modal-close:hover { color: var(--color-primary); }

.cookie-toggle {
  margin-left: 12px;
  accent-color: var(--color-secondary);
  width: 22px;
  height: 22px;
}

/* =====================================
   VARIOUS: SPACING, UTILS, ETC.
======================================= */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-40 { margin-top: 40px; }
.nolist { list-style: none !important; padding: 0; margin: 0; }

/* Responsive utility for spacing */
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .section { margin-bottom: 34px; padding: 18px 6px; }
  .card, .feature-grid li { padding: 18px 10px; }
  .testimonial-card { padding: 15px 7px; }
  .card-content { padding: 0; }
}

/* =====================================
   CUSTOM ORGANIC SHAPES (SECTION DECO)
======================================= */
.section::after {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  right: -24px; bottom: -18px;
  width: 80px; height: 80px;
  background: var(--color-light-green);
  border-radius: 40% 60% 50% 50%/60% 60% 100% 100%;
  opacity: 0.22;
  pointer-events: none;
}
@media (max-width: 768px) {
  .section::after { width: 42px; height: 37px; right: -10px; bottom: -10px; }
}

/* =====================================
   ORGANIC ANIMATIONS & MICRO-INTERACTIONS
======================================= */
.card, .feature-grid li, .testimonial-card {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .feature-grid li:hover, .testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(57,120,70,0.17);
  transform: translateY(-5px) scale(1.013);
}
.cta-btn:focus, .btn:focus, a:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2.5px;
}

/* =====================================
   ACCESSIBILITY / HINTS
======================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* =====================================
   LAST-RESORT BUGFIXES
======================================= */
dialog { display: none; }

/* =========================================================
 ENSURE NO OVERLAPPING, ONLY FLEXBOX FOR LAYOUTS, NO GRID!
=========================================================== */
