/* ==========================================================
   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;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  line-height: 1.5;
  background-color: #FAF9F7;
  color: #2F3B32;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ol, ul {
  list-style: disc inside;
}
a {
  color: #34695C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #255042;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
strong {
  font-weight: bold;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
*:focus {
  outline: 2px dashed #34695C;
  outline-offset: 2px;
  z-index: 2;
}

/* ==========================================================
   VARIABLES & THEME ROOT
========================================================== */
:root {
  --color-primary: #34695C;
  --color-primary-dark: #255042;
  --color-secondary: #FFD956;
  --color-accent: #FFFFFF;
  --color-bg: #FAF9F7;
  --color-surface: #F5F1EC;
  --color-organic1: #B8C6B8;
  --color-organic2: #A8B768;
  --color-organic3: #E5E2D5;
  --color-danger: #C34040;
  --color-shadow: 0 4px 18px 0 rgba(52, 105, 92,.07);
  --rounded: 18px;
  --shadow-card: 0 2px 10px 0 rgba(52,105,92,.11);
}

/* ==========================================================
   TYPOGRAPHY - nature_organic style
========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #34695C;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, li, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  color: #2f3b32;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
blockquote {
  font-style: italic;
  color: #255042;
  background: var(--color-organic3);
  border-left: 5px solid var(--color-secondary);
  padding: 18px 26px 18px 20px;
  margin-bottom: 10px;
  border-radius: var(--rounded);
}
ul, ol {
  margin-bottom: 18px;
  padding-left: 22px;
}
label {
  font-weight: 600;
  font-size: 1rem;
  color: #255042;
}

/* ==========================================================
   UTILITY CLASSES & LAYOUTS (FLEXBOX ONLY!)
========================================================== */
.container {
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-surface);
  border-radius: var(--rounded);
  box-shadow: var(--shadow-card);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:last-child {
  margin-bottom: 0;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--rounded);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  border-left: 6px solid var(--color-secondary);
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid,
.team-grid,
.services-grid,
.tips-grid,
.inspiration-stories {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  margin-top: 8px;
}
.feature-card, .service-card, .highlight-box, .team-bio {
  background: var(--color-surface);
  border-radius: var(--rounded);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  flex: 1 1 290px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
  border-left: 5px solid var(--color-organic1);
}
.feature-card:hover, .service-card:hover, .highlight-box:hover, .team-bio:hover {
  box-shadow: 0 4px 28px 0 rgba(52,105,92,.18);
}

/* Testimonial author */
.testimonial-author {
  color: #34695C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  margin-left: 12px;
}

/* .text-section utility */
.text-section {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* cta-section, confirmation-section, hero-section styling */
.hero-section {
  background: linear-gradient(120deg, #F8F6E9 80%, #B8C6B8 100%);
  padding: 48px 0 34px 0;
  border-bottom-right-radius: 88px 34px;
  border-bottom-left-radius: 48px 38px;
  position: relative;
  min-height: 360px;
}
.hero-section h1 {
  color: #34695C;
  font-size: 2.3rem;
  margin-bottom: 16px;
  line-height: 1.18;
}
.hero-section .subheadline {
  font-size: 1.3rem;
  color: #255042;
  margin-bottom: 22px;
}
.cta-section, .confirmation-section {
  background: #B8C6B8;
  border-radius: var(--rounded);
  box-shadow: var(--shadow-card);
  text-align: center;
  margin-bottom: 72px;
  position: relative;
  overflow: hidden;
  padding: 35px 10px 40px 10px;
}
.cta-section h2, .confirmation-section h1 {
  color: #34695C;
  margin-bottom: 10px;
}
.confirmation-section p {
  color: #255042;
}

/* ==========================================================
   HEADER AND NAVIGATION
========================================================== */
header {
  background: #F8F6E9;
  box-shadow: 0 2px 10px 0 rgba(52,105,92,0.05);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 41;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 14px 16px;
  gap: 18px;
}
header img {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #255042;
  padding: 3px 10px 3px 10px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-organic1);
  color: #34695C;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 28px;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 30px;
  font-size: 1.12rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(52,105,92,0.09);
  transition: background 0.2s, color 0.15s, transform 0.18s, box-shadow 0.2s;
  margin-left: 18px;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: #34695C;
  box-shadow: 0 6px 18px rgba(52,105,92,0.14);
  transform: translateY(-2px) scale(1.04);
}

/* ==========================================================
   MOBILE NAVIGATION (Hamburger menu)
========================================================== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 103;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  color: #34695C;
  background: var(--color-secondary);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.18s;
  outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FFE680;
  color: #255042;
  transform: scale(1.08);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 104;
  background: rgba(34, 44, 35, 0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.7,0,0.3,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  margin: 25px 30px 0 0;
  background: var(--color-accent);
  color: #34695C;
  border-radius: 50%;
  font-size: 2.2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 107;
  box-shadow: 0 1px 4px 0 rgba(52,105,92,0.08);
  transition: background 0.2s, color 0.2s, transform 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #255042;
  transform: scale(1.1);
}
.mobile-nav {
  background: #fff;
  margin: 40px 0 0 0;
  width: 100%;
  height: 100%;
  border-top-left-radius: 36px;
  border-bottom-left-radius: 26px;
  box-shadow: 0 6px 30px 2px rgba(52,105,92,0.18);
  padding: 54px 0 0px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #255042;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 24px 10px 6px;
  transition: background 0.13s, color 0.13s;
  margin-bottom: 2px;
  min-width: 200px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-organic1);
  color: #34695C;
}
@media (max-width: 1024px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none!important;
  }
}

/* ==========================================================
   SEARCH BAR
=========================================================== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  margin-bottom: 22px;
  background: var(--color-surface);
  border-radius: 15px;
  box-shadow: 0 2px 8px 0 rgba(52,105,92,0.06);
}
.search-bar input[type="text"] {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid #b8c6b8;
  font-size: 1rem;
  color: #255042;
  background: #fff;
  transition: border 0.15s;
  margin-left: 10px;
}
.search-bar input[type="text"]:focus {
  border: 1.5px solid #34695C;
  background: #F5F1EC;
}

/* ==========================================================
   FOOTER
========================================================== */
footer {
  background: #34695C;
  color: #fff;
  padding-top: 38px;
  padding-bottom: 24px;
  margin-top: 64px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
footer img {
  height: 38px;
  width: auto;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
footer nav a {
  color: #FFD956;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  text-decoration: underline;
  font-size: 1rem;
  padding: 2px 10px 2px 10px;
}
footer nav a:hover, footer nav a:focus {
  background: #FFD956;
  color: #255042;
  border-radius: 7px;
}
footer .contact-details {
  color: #E5E2D5;
  font-size: 1rem;
  margin-bottom: 7px;
}
footer .contact-details a {
  color: #FFD956;
  text-decoration: underline;
  font-weight: 500;
}
.footer-note {
  font-size: 0.88rem;
  margin-top: 13px;
  color: #FFE680;
}

/* ==========================================================
   RESPONSIVE STYLES (Mobile-first)
========================================================== */
@media (max-width: 991px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .features-grid, .team-grid, .services-grid, .tips-grid, .inspiration-stories, .card-container, .content-grid {
    gap: 16px;
  }
  .card {
    padding: 18px;
  }
  .feature-card, .service-card, .highlight-box, .team-bio {
    padding: 16px 13px;
    min-width: 180px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 34px;
    padding: 22px 7px;
  }
  .content-wrapper {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .hero-section {
    min-height: unset;
    padding: 32px 0 24px 0;
    border-bottom-right-radius: 62px 22px;
    border-bottom-left-radius: 18px 14px;
  }
  .cta-section, .confirmation-section {
    margin-bottom: 36px;
    padding: 20px 4px 26px 4px;
  }
  .features-grid, .team-grid, .services-grid, .tips-grid, .inspiration-stories, .content-grid, .card-container {
    flex-direction: column;
    gap: 11px;
  }
  .feature-card, .service-card, .highlight-box, .team-bio, .testimonial-card{
    min-width: 0;
    width: 100%;
  }
  header .container {
    flex-direction: row;
  }
  .search-bar {
    flex-direction: column;
    gap: 5px;
    padding: 8px 4px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 10px;
  }
  footer .container {
    gap: 14px;
    padding-left: 0;
    padding-right: 0;
  }
  .footer-note { margin-top: 6px; }
}
@media (max-width: 450px) {
  html, body {
    font-size: 15px;
  }
  header img,
  footer img {
    height: 26px;
  }
  .hero-section h1 {
    font-size: 1.3rem;
  }
  .hero-section .subheadline {
    font-size: 1.032rem;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 9px 12px;
  }
}

/* ==========================================================
   SPECIAL: ORGANIC SHAPES & TEXTURES
========================================================== */
.cta-section::before, .confirmation-section::before {
  content: "";
  position: absolute;
  left: -34px; top: -14px;
  width: 84px; height: 54px;
  background: #FFD956;
  opacity: .23;
  border-radius: 63% 37% 63% 37%;
  z-index: 0;
}
.cta-section::after, .confirmation-section::after {
  content: "";
  position: absolute;
  right: -24px; bottom: -12px;
  width: 44px; height: 48px;
  background: #34695C;
  opacity: .12;
  border-radius: 55% 45% 56% 44%;
  z-index: 0;
}

/* ----------------------------------------------------------
   CARD HIGHLIGHTS & DETAILS
---------------------------------------------------------- */
.feature-card img, .service-card img, .team-bio img, .highlight-box img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 8px;
}
.highlight-box {
  border-left: 5px solid #A8B768;
  background: #F5F1EC;
  min-width: 220px;
  margin-bottom: 20px;
}

/* ==============================  Contact Details Format  ============================== */
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 14px 0 14px 0;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #34695C;
}
.contact-details img {
  width: 22px;
  height: 22px;
}
.map-embed {
  background: #E5E2D5;
  padding: 16px 14px;
  border-radius: 14px;
  margin-top: 18px;
}

/* ==========================================================
   BUTTONS and MICRO-INTERACTIONS
========================================================== */
button,
input[type="button"],
input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.16s, box-shadow 0.16s, color 0.15s, transform 0.17s;
  border: none;
  border-radius: 30px;
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 9px 26px;
  cursor: pointer;
  font-size: 1.06rem;
  box-shadow: 0 3px 12px rgba(52,105,92,.08);
  margin-right: 10px;
}
button:hover, button:focus,
input[type="button"]:hover, input[type="submit"]:hover,
input[type="button"]:focus, input[type="submit"]:focus {
  background: var(--color-secondary);
  color: #34695C;
  transform: scale(1.03) translateY(-1.5px);
  box-shadow: 0 7px 18px rgba(52,105,92,.18);
}

/* For generic links that look like buttons (e.g. .cta-btn) - already styled above */

/* ================================================
   COOKIE BANNER & COOKIE MODAL
================================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff8e0;
  color: #255042;
  box-shadow: 0 -2px 16px 0 rgba(52,105,92,0.09);
  z-index: 105;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  transition: transform 0.4s cubic-bezier(0.6,0,0.45,1), opacity 0.28s;
  border-top-left-radius: 22px;
  border-top-right-radius: 18px;
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner.hide {
  transform: translateY(105%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner .cookie-text {
  flex: 1 1 250px;
  margin-right: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn, .cookie-banner button {
  background: #FFD956;
  color: #34695C;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  font-size: 1rem;
  border-radius: 20px;
  padding: 7px 20px;
  box-shadow: 0 1.5px 5px 0 rgba(52,105,92,0.06);
  margin-right: 3px;
  transition: all .18s;
}
.cookie-btn.accept {
  background: #34695C;
  color: #FFD956;
}
.cookie-btn.reject {
  background: #fff;
  color: #C34040;
  border: 1.4px solid #C34040;
}
.cookie-btn.settings {
  background: #B8C6B8;
  color: #255042;
}
.cookie-btn:hover, .cookie-btn:focus {
  box-shadow: 0 2px 14px rgba(52,105,92,0.10);
  transform: scale(1.04);
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0;
  width: 100vw;
  height: 100vh;
  background: rgba(46, 59, 41, 0.18);
  z-index: 108;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fffce6;
  border-radius: 24px;
  box-shadow: 0 7px 26px 0 rgba(44,64,44,0.21);
  padding: 38px 32px 28px 32px;
  min-width: 90vw;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  font-family: 'Roboto', Arial, sans-serif;
  color: #255042;
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #34695C;
  margin-bottom: 9px;
  font-size: 1.2rem;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  right: 16px;
  top: 16px;
  background: var(--color-secondary);
  color: #34695C;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: none;
  z-index: 12;
  transition: background 0.16s, color 0.16s, transform 0.14s;
}
.cookie-modal .close-modal-btn:hover, .cookie-modal .close-modal-btn:focus {
  background: #34695C;
  color: #FFD956;
  transform: scale(1.12);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: #255042;
}
.cookie-modal .category-desc {
  font-size: 0.96rem;
  color: #6c6b62;
}
.cookie-modal input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: #34695C;
}
.essential-label {
  font-weight: 700;
  color: #34695C;
}
.essential-label::after {
  content: " (wymagane)";
  font-size: 0.95em;
  color: #B8C6B8;
  margin-left: 7px;
}
.cookie-modal .modal-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 500px) {
  .cookie-modal {
    min-width: 97vw;
    max-width: 97vw;
    padding: 20px 7px 17px 7px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 11px 7px;
    gap: 10px;
  }
}

/* Hide native scrollbars in overlays (mobile) */
.mobile-menu, .cookie-modal-overlay {
  scrollbar-width: thin;
  scrollbar-color: #B8C6B8 #E5E2D5;
}

/* Animations - subtle fade up for cards/content */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}
.feature-card, .service-card, .testimonial-card, .highlight-box, .team-bio, .card {
  animation: fadeInUp 0.88s cubic-bezier(.23,1.13,.23,1) both;
}

/* =============================================
   MISC FIXES AND HELPERS
============================================= */
main {
  flex: 1 1 auto;
  background: transparent;
  min-height: 74vh;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 1;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #B8C6B8; border-radius: 8px; }
::-webkit-scrollbar-track { background: #F8F6E9; }

/* Hide extra margins after last cards/sections */
.section:last-child, .card-container:last-child, .card:last-child, .testimonial-card:last-child {
  margin-bottom: 0!important;
}

/* Prevent accidental card overlapping */
.card, .feature-card, .service-card, .team-bio, .testimonial-card, .highlight-box {
  min-width: 0;
  word-break: break-word;
}

/* ------ END OF CSS ------ */