/* RESET & BASE STYLES */
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 {
  scroll-behavior: smooth;
  background: #F5F2EB;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F5F2EB;
  color: #222;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #2D5D34;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B5894B;
  text-decoration: underline;
}

/* BRAND COLORS */
:root {
  --primary: #2D5D34;
  --primary-dark: #1f4224;
  --secondary: #F5F2EB;
  --accent: #B5894B;
  --accent-dark: #8A611E;
  --gray-light: #FFFFFF;
  --gray: #e7e7e7;
  --success: #3bb281;
  --danger: #FF5B57;
  --info: #4699f7;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.14;
}
h1 {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 14px;
}
h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  color: var(--primary);
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, span, label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  color: #222;
}
strong, b {
  font-weight: 900;
}

/* PLAYFUL FONT ELEMENTS */
h1, h2, .cta-button, .section-title, nav a, .mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  background: var(--gray-light);
  box-shadow: 0 2px 16px 2px rgba(181,137,75,0.08);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: 0 3px 12px 2px rgba(45,93,52,0.07);
  transition: transform 0.18s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  min-width: 220px;
}
.card:hover {
  transform: translateY(-4px) scale(1.026);
  box-shadow: 0 6px 26px 4px rgba(45,93,52,0.16);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbe8;
  border-radius: 20px;
  box-shadow: 0 1px 12px 0px rgba(45,93,52,0.10);
  margin-bottom: 20px;
  margin-top: 8px;
  position: relative;
  min-width: 0;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #222;
  margin-bottom: 2px;
  line-height: 1.6;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: var(--accent-dark);
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-left: auto;
}

/* BUTTONS & CALL TO ACTION */
.cta-button {
  display: inline-block;
  font-size: 1.19rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50px;
  padding: 12px 38px;
  margin-top: 10px;
  box-shadow: 0 2px 9px 1px rgba(181,137,75,0.12);
  transition: background 0.18s, transform 0.16s, box-shadow 0.19s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  outline: none;
  position: relative;
  z-index: 1;
}
.cta-button:focus, .cta-button:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 6px 28px 4px rgba(45,93,52,0.20);
}
button, .cta-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
button {
  border: none;
  outline: none;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 8px 22px;
  margin: 2px 0;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.18s, transform 0.15s;
}
button:hover, button:focus {
  background: var(--primary);
  color: #fff;
}

/* NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(45,93,52,0.05);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 95;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  justify-content: flex-start;
  padding: 0 16px;
  height: 64px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 20px;
  transition: background 0.18s, color 0.15s;
  font-size: 1rem;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: #fff;
}
header nav a.cta-button {
  margin-left: 12px;
}
header nav img {
  height: 44px;
  width: auto;
  margin-right: 13px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: var(--primary);
  background: var(--secondary);
  padding: 10px 16px;
  border-radius: 12px;
  margin-right: 8px;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.14s, box-shadow 0.18s;
  z-index: 105;
  box-shadow: 0 1px 6px 0 rgba(45,93,52,0.07);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245,242,235,0.98);
  z-index: 200;
  box-shadow: 2px 0 30px 12px rgba(45,93,52,0.15);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.77,.43,.23,.92);
}
.mobile-menu.open {
  transform: translateX(0);
  animation: slideInMenu 0.38s cubic-bezier(.71,.06,.25,.98);
}
@keyframes slideInMenu {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0%);
  }
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 22px 0 0;
  background: none;
  font-size: 2rem;
  color: var(--accent-dark);
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 203;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--primary);
  background: #fff8ea;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 64px 0 0 32px;
  width: 70vw;
  max-width: 320px;
}
.mobile-nav a {
  font-size: 1.14rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 10px 0 10px 12px;
  border-radius: 16px 0 0 16px;
  width: 100%;
  font-weight: 700;
  background: none;
  transition: background 0.18s, color 0.17s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}

/* SECTION & SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  position: relative;
}
section:last-child {
  margin-bottom: 30px;
}
ul, ol {
  margin-bottom: 18px;
  padding-left: 23px;
}
li {
  margin-bottom: 13px;
  position: relative;
  line-height: 1.5;
}
li img {
  vertical-align: middle;
  height: 28px;
  width: auto;
  margin-right: 9px;
  margin-top: -3px;
  display: inline-block;
  border-radius: 50%;
  background: #fff0da;
  box-shadow: 0 1px 4px 0px rgba(181,137,75,0.15);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 18px 3px;
  }
  section {
    padding: 22px 0 18px 0;
  }
  h1 {
    font-size: 1.44rem;
  }
  h2 {
    font-size: 1.19rem;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 13px;
    padding: 14px;
  }
}

/* FEATURES, CARDS, UL/OL ICONS */
ul > li, ol > li {
  padding-left: 0.5em;
}
ul > li::before, ol > li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
ul > li img {
  margin-right: 7px;
}

/* FOOTER */
footer {
  background: #fff4dc;
  color: var(--primary);
  font-size: 1rem;
  box-shadow: 0 -2px 12px 0 rgba(181,137,75,0.07);
  margin-top: auto;
}
footer .container {
  padding: 18px 12px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  opacity: 0.88;
  font-size: 1rem;
  margin-bottom: 5px;
  transition: color 0.18s, background 0.15s, opacity 0.14s;
  padding: 4px 8px;
  border-radius: 10px;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent-dark);
  background: #ffe6a4;
  opacity: 1;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
  color: var(--primary);
}
.contact-info img {
  height: 20px;
  width: auto;
  margin-right: 7px;
  vertical-align: middle;
  display: inline-block;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 4px;
}
.social-links a img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fffbe8;
  transition: box-shadow 0.18s;
  box-shadow: 0 1px 6px 0px rgba(45,93,52,0.08);
}
.social-links a:hover img {
  box-shadow: 0 5px 14px 0px rgba(181,137,75,0.20);
}
footer p {
  color: #8A611E;
  font-size: 0.92rem;
}

/* ANIMATIONS & MICRO-INTERACTIONS */
.cta-button, button, .card, .testimonial-card, .mobile-menu, .mobile-menu-toggle, .section, .content-wrapper {
  transition: all 0.19s cubic-bezier(.79,.03,.23,.95);
}
.cta-button:active, button:active {
  transform: scale(0.97) rotate(1.5deg);
}
.section {
  animation: fadeInUp 0.7s cubic-bezier(.68,-0.55,.28,1.55) 0.09s 1;
}
@keyframes fadeInUp {
  0% {opacity: 0; transform: translateY(40px) scale(0.98);}
  60% {opacity: 1; transform: translateY(-7px) scale(1.03);}
  100% {opacity: 1; transform: none;}
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 9000;
  background: #fffbe8;
  border-top: 4px solid var(--accent);
  padding: 24px 22px 18px 22px;
  box-shadow: 0 -2px 21px 0 rgba(45,93,52,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeInBanner 0.8s cubic-bezier(.4,.7,.41,1);
}
@keyframes fadeInBanner {
  0% { opacity: 0; transform: translateY(70px); }
  100% { opacity: 1; transform: none; }
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 4px;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
}
.cookie-accept, .cookie-reject, .cookie-settings {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 8px 22px;
  border-radius: 40px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 1.5px 9px 0 rgba(181,137,75,0.10);
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.18s, color 0.13s, transform 0.13s;
}
.cookie-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--accent);
  color: #fff;
}
.cookie-reject {
  background: #ccc;
  color: #222;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--danger);
  color: #fff;
}
.cookie-settings {
  background: var(--accent);
  color: #fff;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--primary-dark);
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(45,93,52,0.21);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
  animation: fadeInCookieModal 0.4s ease;
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 7px 48px 0 rgba(181,137,75,0.17);
  padding: 38px 32px 22px 32px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 23px;
  position: relative;
}
.cookie-modal-content h2 {
  color: var(--primary);
  font-size: 1.32rem;
  margin-top: 2px;
  margin-bottom: 17px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.cookie-modal-content .cookie-toggle {
  width: 38px;
  height: 20px;
  background: #dae8d6;
  border-radius: 13px;
  position: relative;
  transition: background 0.17s;
  margin-left: 9px;
}
.cookie-modal-content .cookie-toggle input {
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.cookie-modal-content .cookie-toggle span {
  position: absolute;
  top: 1.5px;
  left: 2px;
  background: var(--primary);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  transition: left 0.23s, background 0.18s;
}
.cookie-modal-content .cookie-toggle input:checked + span {
  left: 18px;
  background: var(--accent);
}
.cookie-modal-content .cookie-toggle input:disabled + span {
  background: #aaa;
  cursor: not-allowed;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--accent-dark);
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--danger);
}
@media (max-width: 460px) {
  .cookie-modal-content {
    padding: 18px 6px 12px 8px;
    border-radius: 12px;
  }
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.text-right { text-align: right; }
.rounded { border-radius: 24px; }
.mt-2 { margin-top: 1em; }
.mb-2 { margin-bottom: 1em; }
.mt-3 { margin-top: 2em; }
.mb-3 { margin-bottom: 2em; }
/* Energetic, playful color dots for decorative accent near headings */
h2.section-title::after, h1::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 10px 3px 0 0 var(--primary), 18px 7px 0 0 var(--success);
  animation: bounceDots 1.6s cubic-bezier(.65,.04,.36,1.61) infinite alternate;
  vertical-align: middle;
}
@keyframes bounceDots {
  0% { transform: translateY(0) scale(1); }
  48%{ transform: translateY(-2px) scale(1.09); }
  92%{ transform: translateY(4px) scale(0.95); }
  100% { transform: translateY(0) scale(1); }
}

/* RESPONSIVE FORMS/ELEMENTS */
input, textarea, select {
  font-size: 1rem;
  font-family: inherit;
  border-radius: 8px;
  border: 1.5px solid var(--gray);
  padding: 8px 12px;
  margin: 7px 0 18px 0;
  background: #fff;
  transition: border 0.15s, box-shadow 0.12s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 6px 0 rgba(45,93,52,0.07);
  outline: none;
}

/* FUN PLAYFUL TOUCHES */
.cta-button, .card, .testimonial-card {
  /* Wobble / dynamic effect on hover */
  position: relative;
  overflow: hidden;
}
.cta-button::before, .card::before {
  content: '';
  display: block;
  position: absolute;
  z-index: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(45,93,52,0.09);
  top: -12px;
  left: -24px;
  pointer-events: none;
  transition: background 0.14s;
}
.cta-button:hover::before, .card:hover::before {
  background: rgba(181,137,75,0.18);
}

/* --- MINI ANIMATION ON CTA --- */
.cta-button {
  animation: popInBtn 0.83s cubic-bezier(.6,-0.28,.74,1.49) 0.07s 1;
}
@keyframes popInBtn {
  0% { transform: scale(0.97); opacity: 0; }
  70% { transform: scale(1.10); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- STRONG VISUAL HIERARCHY --- */
h1, .cta-button, .section-title {
  text-shadow: 0 2px 6px rgba(181,137,75,0.07);
}
h1, h2.section-title {
  position: relative;
}
h1 {
  margin-bottom: 12px;
}
h2.section-title {
  margin-bottom: 18px;
}

/* SECTIONS ON LIGHT BACKGROUND (show cards) */
.section, .card, .testimonial-card {
  background: #fffbe8;
}

/* --- FOCUS STATES --- */
a:focus, .cta-button:focus, button:focus, input:focus, .cookie-accept:focus, .cookie-settings:focus, .cookie-reject:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* FLEX: PRESET CLASS (as per critical) */
.features, .card-grid, .content-grid, .card-container, .section-features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .features, .card-grid, .content-grid, .card-container, .section-features {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- NO GRID PROPERTIES ALLOWED --- */
/* (All layouts above are flex-based) */

/* --- ENSURE ALL COMPONENTS HAVE AT LEAST 20PX MARGIN BETWEEN THEM --- */
.card, .section, .testimonial-card, .card-content {
  margin-bottom: 20px;
}

/* --- PREVENT OVERLAPPING --- */
.card, .testimonial-card, .card-content, .section, .container {
  min-width: 0;
}


/* CUSTOM BULLETS WITH ICONS FOR ULs IN FEATURES/WHY/INSPIRACJE */
ul li img {
  margin-left: 0;
}

/* Specific for main page 'why' and oferta/inspiracje service lists */
ul > li > img {
  margin-right: 10px;
  vertical-align: middle;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 6px 0 rgba(45,93,52,0.09);
  margin-bottom: -3px;
}

/* --- ACCESSIBILITY & CONTRAST --- */
.testimonial-card {
  background: #fffbe8;
  /* high contrast for text in testimonials */
  color: #222;
}
.testimonial-card p, .testimonial-card span {
  color: #222;
}

/* --- Animations for card hover (playful) --- */
.card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 8px 32px 4px rgba(45,93,52,0.13);
  transform: scale(1.022) rotate(-1.5deg);
}
.testimonial-card:hover {
  box-shadow: 0 3px 22px 0px rgba(181,137,75,0.17);
  transform: scale(1.012);
}

/* --- Responsive font size steps --- */
@media (max-width: 540px) {
  h1 { font-size: 1.11rem; }
  h2 { font-size: 1.01rem; }
  h3 { font-size: 1rem; }
  p, span, li { font-size: 0.95rem; }
}

/* Hide scrollbars in mobile-menu (iOS/Android friendly) */
.mobile-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: auto;
}
.mobile-menu::-webkit-scrollbar { display: none; }

/* PRINT MODE (optional): hide navigation */
@media print {
  header, .mobile-menu, .cta-button, .cookie-banner, .cookie-modal {display:none!important;}
}
