/* ===========================
   CSS 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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; background: #F8F7F2; color: #35544C; font-family: 'Montserrat', Arial, sans-serif; font-size: 16px; min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: #35544C; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #6D8C6B; }
ul, ol { padding-left: 24px; margin-bottom: 16px; }
li { margin-bottom: 8px; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; color: #35544C; margin-bottom: 16px; font-weight: bold; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { color: #3E604F; margin-bottom: 16px; }

/* Typography hierarchy for .nature_organic */
.section h1, .section h2, .section h3, .section h4 {
  letter-spacing: 0.5px;
  line-height: 1.15;
}

/* =====================
   LAYOUT CONTAINERS
   ===================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0; /* containers control children, gap only as needed within wrapper */
}
.content-wrapper {
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(53,84,76,0.06);
  transition: box-shadow 0.2s;
}
.section:last-child { margin-bottom: 0; }

.main, main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 60vh;
}

/* ===============================
   HEADER & NAVIGATION (DESKTOP)
   =============================== */
header {
  background: #F5F5EE;
  box-shadow: 0 2px 16px rgba(53,84,76,0.07);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  position: relative;
  min-height: 74px;
}
.logo img { height: 54px; width: auto; border-radius: 16px; background: #E3DED2; padding: 6px; }
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 16px;
  color: #35544C;
  background: none;
  transition: background 0.15s, color 0.15s;
}
nav a:hover, nav a:focus {
  background: #DEE5CB;
  color: #274138;
  outline: none;
}

.cta.primary, .cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  background: #35544C;
  color: #fff;
  padding: 0.7em 1.8em;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(53,84,76,0.10);
  transition: background 0.16s, box-shadow 0.16s, transform 0.1s;
  font-weight: bold;
  letter-spacing: 0.02em;
  margin-left: 10px;
  display: inline-block;
}
.cta.primary:hover, .cta:hover, .cta.primary:focus, .cta:focus {
  background: #487260;
  color: #fff;
  box-shadow: 0 4px 18px rgba(53,84,76,0.13);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

/* ===============================
   MOBILE MENU
   =============================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #35544C;
  padding: 7px 15px;
  cursor: pointer;
  border-radius: 16px;
  transition: background 0.1s;
  z-index: 102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #DEE5CB;
  color: #274138;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(233,231,219,0.97);
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.74,.01,.24,1);
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  padding: 10px 16px;
  font-size: 2.5rem;
  color: #35544C;
  background: transparent;
  border: none;
  margin-top: 18px;
  margin-right: 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.1s;
  z-index: 102;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E3DED2;
  color: #274138;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  margin: 54px 0 0 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  padding: 12px 0;
  color: #35544C;
  border-radius: 16px;
  width: 100%;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #DEE5CB;
  color: #274138;
}

/* ========================================
   RESPONSIVE HEADER: SHOW/HIDE NAV
   ======================================== */
@media (max-width: 991px) {
  nav { display: none; }
  .cta.primary { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ===============================
   SECTION STYLES
   =============================== */
.section {
  background: #fff;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 36px;
  box-shadow: 0 2px 12px rgba(53,84,76,0.10);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===============================
   FLEXBOX MANDATORY ALIGNMENTS
   =============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #F5F5EE;
  border-radius: 26px;
  box-shadow: 0 1px 9px rgba(53,84,76,0.08);
  position: relative;
  transition: box-shadow 0.2s, transform 0.1s;
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 22px 26px;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 27px rgba(53,84,76,0.14);
  transform: translateY(-4px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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: #E3DED2;
  color: #274138;
  border-radius: 22px;
  box-shadow: 0 1px 8px rgba(53,84,76,0.10);
  margin-bottom: 20px;
  flex: 1 1 330px;
  min-width: 225px;
  max-width: 480px;
  font-size: 1.07rem;
  position: relative;
  transition: box-shadow 0.18s, transform 0.10s;
}
.testimonial-card p {
  font-style: italic;
  color: #35544C;
  margin-bottom: 0;
  margin-right: 16px;
  flex: 1 1 auto;
}
.testimonial-card span {
  font-weight: bold;
  color: #7C8D72;
  font-size: 0.98em;
  opacity: 0.86;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 4px 12px rgba(53,84,76,0.16);
  transform: translateY(-2px) scale(1.01);
}

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

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

.footer-columns {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 24px;
}
.footer-columns > * {
  flex: 1 1 200px;
  min-width: 160px;
  margin-bottom: 20px;
}
footer nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 18px;
}
footer nav a {
  color: #35544C;
  font-size: 1rem;
  margin-bottom: 6px;
  padding: 0 0 2px 0;
}
footer nav a:hover, footer nav a:focus {
  color: #6D8C6B;
  background: none;
}
footer {
  background: #F5F5EE;
  padding: 32px 0 16px 0;
  border-top: 2px solid #9DAC82;
  box-shadow: 0 -1px 22px rgba(53,84,76,0.05);
}
footer .logo,
footer [alt="Mistyczny Ogród"],
footer img {
  margin-bottom: 12px;
}

/* ===============================
   COOKIE CONSENT BANNER + MODAL
   =============================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #DEE5CB;
  color: #35544C;
  box-shadow: 0 -2px 18px rgba(53,84,76,0.11);
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  z-index: 999;
  transition: transform 0.26s cubic-bezier(.7,.01,.25,1), opacity 0.17s;
}
.cookie-consent-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-consent-banner button {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 20px;
  padding: 0.6em 1.5em;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s, color 0.14s, box-shadow 0.12s;
}
.cookie-consent-banner .accept {
  background: #35544C;
  color: #fff;
}
.cookie-consent-banner .accept:hover, .cookie-consent-banner .accept:focus {
  background: #49735F;
}
.cookie-consent-banner .reject {
  background: #E3DED2;
  color: #35544C;
  border: 1px solid #35544C;
}
.cookie-consent-banner .reject:hover, .cookie-consent-banner .reject:focus {
  background: #bbbfa3;
  color: #fff;
}
.cookie-consent-banner .settings {
  background: #DEE5CB;
  color: #35544C;
  border: 1px solid #9DAC82;
}
.cookie-consent-banner .settings:hover, .cookie-consent-banner .settings:focus {
  background: #E3DED2;
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(53,84,76,0.12);
  backdrop-filter: blur(1px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 6px 34px rgba(53,84,76,0.23);
  padding: 32px 24px 26px 24px;
  min-width: 300px;
  max-width: 90vw;
  color: #35544C;
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-size: 1.06rem;
  position: relative;
  transform: translateY(38px);
  transition: transform 0.21s cubic-bezier(.64,.01,.36,1);
}
.cookie-modal-overlay.open .cookie-modal {
  transform: translateY(0);
}
.cookie-modal h3 {
  margin-bottom: 10px;
  color: #274138;
}
.cookie-modal .cookie-category {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal .cookie-category label {
  font-weight: 500;
  color: #35544C;
  font-size: 1rem;
}
.cookie-modal .cookie-category input[type=checkbox] {
  accent-color: #9DAC82;
  width: 18px; height: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #35544C;
  cursor: pointer;
  border-radius: 16px;
  transition: background 0.1s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus { background: #E3DED2; outline: none; }
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 12px;
}
/* ================================
   FORM ELEMENTS
   ================================ */
input[type="text"], input[type="email"], input[type="number"], textarea, select {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 18px;
  border: 1.5px solid #9DAC82;
  padding: 12px 14px;
  background: #F5F5EE;
  color: #35544C;
  font-size: 1rem;
  transition: border-color 0.13s;
  margin-bottom: 18px;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
  border-color: #35544C;
  outline: none;
}
button, input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  border-radius: 20px;
  border: none;
  padding: 0.65em 1.5em;
  background: #35544C;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.18s, color 0.13s, box-shadow 0.13s;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: #49735F;
  color: #fff;
  box-shadow: 0 1px 9px #9DAC82;
  outline: none;
}

/* ================================
   ORGANIC/NATURAL ACCENTS
   ================================ */
.section, .card, .testimonial-card, .cookie-modal, .footer-columns {
  border-radius: 32px 42px 32px 28px / 44px 28px 32px 44px;
  /* Unmistakably organic, subtle random radius effect */
}

.section, .card {
  background-image: repeating-linear-gradient(-20deg, transparent, transparent 100px, #E3DED2 110px);
  background-size: 480px 240px;
}
.section:nth-child(even),
.card:nth-child(even),
.testimonial-card:nth-child(even) {
  background-color: #F7F5F0;
}

.section h2, .section h3 {
  color: #35544C;
  position: relative;
}
.section h2::after, .section h3::after {
  content: '';
  display: block;
  width: 64px;
  height: 5px;
  background: #9DAC82;
  border-radius: 0 10px 10px 0;
  margin-top: 8px;
  margin-bottom: 4px;
}

/* ================================
   MISCELLANEOUS CLASSES
   ================================ */
@media (max-width: 1200px) {
  .container { padding: 0 10px; }
  .section { padding: 32px 8px; }
}
@media (max-width: 991px) {
  .footer-columns { gap: 20px; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; }
  .footer-columns { flex-direction: column; gap: 32px; }
  .section { padding: 26px 3vw; margin-bottom: 40px; }
  .card-container, .content-grid, .footer-columns {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .card { min-width: 95vw; max-width: 100%; }
  nav { display: none !important; }
  .cta.primary { display: none !important; }
  .mobile-menu-toggle { display: block !important; }
  .text-image-section { flex-direction: column !important; gap: 24px; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .footer-columns { gap: 18px; }
  .section { padding: 18px 2vw; }
  .cookie-consent-banner { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ================================
   SCROLLBARS, SHADOWS, MICRO EFFECTS
   ================================ */
::-webkit-scrollbar {
  width: 12px;
  background: #E3DED2;
}
::-webkit-scrollbar-thumb {
  background: #9DAC82;
  border-radius: 8px;
}

/* Subtle hover animation for lists */
ul li b, ul li strong, ol li b, ol li strong {
  color: #35544C;
  background: #E3DED2;
  padding: 2px 7px;
  border-radius: 10px;
}
ul li:hover, ol li:hover {
  background: #F5F5EE;
  transition: background 0.13s;
}

/* Misc micro-interactions */
.card, .testimonial-card {
  cursor: default;
}

/* ===============
   UTILITY CLASSES
   =============== */
.hide { display: none !important; }
.text-center { text-align: center !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-24 { margin-bottom: 24px !important; }
.pt-0 { padding-top: 0 !important; }

/* ============
   FOCUS STATES
   ============ */
a:focus, button:focus, .cta:focus {
  outline: 2px solid #9DAC82;
  outline-offset: 2px;
  z-index: 2;
}

/* ==============================
   ORGANIC/NATURE HIGHLIGHT ACCENT
   ============================== */
.organic-accent {
  background: #DEE5CB;
  color: #35544C;
  border-radius: 40px 60px 52px 38px / 34px 58px 48px 40px;
  padding: 10px 24px;
  font-family: 'Playfair Display', serif;
  font-size: 1.21rem;
  font-style: italic;
  margin-bottom: 18px;
}

/* End of CSS */
