/* ====================================================
   CSS RESET & NORMALIZATION
   ==================================================== */
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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
body {
  line-height: 1;
  background: #F8F7F4;
  color: #194D33;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
  box-sizing: border-box;
}
img {
  max-width: 100%;
  display: block;
}

/* ====================================================
   ROOT VARIABLES & BASE TYPOGRAPHY
   ==================================================== */
:root {
  --color-primary: #194D33;
  --color-secondary: #A2C5B8;
  --color-accent: #F8F7F4;
  --color-brown: #9E7B57;
  --color-leaf: #357a38;
  --color-sage: #E2E7E1;
  --color-shadow: rgba(30,41,35,0.08);
  --color-testimonial-bg: #fff;
  --color-testimonial-text: #1d2921;
  --color-footer-bg: #e8eee8;

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

html {
  font-size: 100%; /* 16px default */
}
body {
  font-family: var(--font-body);
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-size: 16px;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
}
p, ul li, ol li {
  font-size: 1rem;
  line-height: 1.7;
  color: #375942;
}
strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* ====================================================
   CONTAINERS, LAYOUT & COMMONS
   ==================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 30px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
.text-section {
  background: var(--color-sage);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px var(--color-shadow);
}

/* =============================================
   ORGANIC SHAPES & NATURAL EMBELLISHMENTS
   ============================================= */
.section {
  position: relative;
}
.section::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 12px;
  top: -14px;
  width: 58px;
  height: 58px;
  border-radius: 40% 60% 70% 30%/45% 55% 55% 45%;
  background: var(--color-secondary);
  opacity: 0.08;
  pointer-events: none;
}

.text-section {
  position: relative;
}
.text-section::before {
  content: '';
  display: block;
  position: absolute;
  top: -22px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 60% 40% 65% 35%/55% 60% 35% 45%;
  background: var(--color-brown);
  opacity: 0.09;
  pointer-events: none;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
header {
  width: 100%;
  background: var(--color-accent);
  box-shadow: 0 2px 10px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1010;
}
header .container {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header img {
  height: 52px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--color-primary);
  padding: 8px 0 8px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-leaf);
}

.cta-button {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  background: var(--color-primary);
  padding: 12px 32px;
  border-radius: 40px 28px 34px 22px/30px 23px 36px 32px;
  box-shadow: 0 4px 16px var(--color-shadow);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.22s, transform 0.16s;
  cursor: pointer;
  border: none;
  outline: none;
  display: inline-block;
  margin-left: 12px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-leaf);
  transform: translateY(-2px) scale(1.03);
}

/* ===============================
   MOBILE MENU
   =============================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 100%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  box-shadow: 0 6px 16px var(--color-shadow);
  z-index: 1002;
  border: none;
  transition: background 0.15s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-leaf);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-accent);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.25,.8,.25,1);
  padding: 32px 28px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: -3px 0 32px var(--color-shadow);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  color: var(--color-primary);
  background: transparent;
  border-radius: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  cursor: pointer;
  transition: background 0.12s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-secondary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-primary);
  padding: 16px 0;
  border-radius: 14px;
  background: transparent;
  transition: background .15s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-sage);
  color: var(--color-leaf);
}

/* Hide main nav and show burger on mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 768px) {
  header .container {
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
  header img {
    height: 44px;
    margin-right: 10px;
  }
  .cta-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* ===================================
   MAIN CONTENT LAYOUT & SECTIONS
   =================================== */
main {
  padding-top: 30px;
  padding-bottom: 50px;
  min-height: 60vh;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 30px;
  background: transparent;
}
.section:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .section {
    padding: 26px 4px;
    margin-bottom: 36px;
    border-radius: 16px;
  }
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
.text-section {
  padding: 24px 10px;
}

/* ==================================
   FLEXBOX LAYOUT PATTERNS
   ================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-sage);
  border-radius: 18px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 22px 18px;
  min-width: 250px;
  flex: 1 0 250px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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: var(--color-testimonial-bg);
  color: var(--color-testimonial-text);
  border-radius: 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px var(--color-shadow);
  min-width: 0;
  flex: 1 0 280px;
  transition: box-shadow .24s, transform .21s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px rgba(60,80,50, 0.14);
  transform: translateY(-2px) scale(1.015);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-accent);
  border-radius: 20px;
  padding: 26px 20px 20px 18px;
  box-shadow: 0 2px 10px var(--color-shadow);
  min-width: 220px;
  flex: 1 1 210px;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .20s;
}
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
}
.feature-item h3 {
  margin: 0;
}
.feature-item:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateY(-1px) scale(1.02);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.programy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.programy-grid > div {
  background: var(--color-sage);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 18px 16px;
  min-width: 170px;
  flex: 1 1 220px;
  margin-bottom: 20px;
}

.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-bottom: 30px;
}
.team-bios .text-section {
  flex: 1 1 250px;
  margin-bottom: 0;
  background: var(--color-accent);
}

@media (max-width: 900px) {
  .feature-grid, .programy-grid, .team-bios {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .programy-grid > div {
    min-width: 90%;
    margin-bottom: 8px;
  }
}

/* ==================================
   BLOG POST LISTINGS AND TAGS
   ================================== */
.post-listing {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.post-listing article {
  background: var(--color-sage);
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 18px 22px;
  flex: 1 1 200px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .24s, transform .19s;
}
.post-listing article:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateY(-1px) scale(1.01);
}
.post-listing h3 a {
  color: var(--color-primary);
  font-weight: 700;
  transition: color .16s;
}
.post-listing h3 a:hover, .post-listing h3 a:focus {
  color: var(--color-leaf);
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.category-tags span {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 0.9rem;
  border-radius: 12px;
  padding: 6px 12px;
  margin-bottom: 14px;
}

/* ==================================
   TESTIMONIALS SLIDER / CARD BLOCKS
   ================================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 0;
}
.testimonial-card {
  background: var(--color-testimonial-bg);
  color: var(--color-testimonial-text);
  font-size: 1.05rem;
  line-height: 1.7;
  border-radius: 22px;
  margin-bottom: 24px;
  padding: 24px 22px;
  box-shadow: 0 4px 24px var(--color-shadow);
  min-width: 260px;
  flex: 1 0 282px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--color-secondary);
  margin-top: 8px;
  font-style: italic;
  font-weight: 500;
}

/* Make testimonials stack on mobile */
@media (max-width: 700px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
  }
}

/* ==================================
   CONTACT / ADDRESS LISTS
   ================================== */
.contact-details, .contact-methods ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
.contact-details img, .contact-methods img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  vertical-align: middle;
}
.contact-details p, .contact-methods li {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  color: #36563c;
}

/* ==================================
   FOOTER
   ================================== */
footer {
  background: var(--color-footer-bg);
  padding: 36px 0 22px 0;
  box-shadow: 0 -2px 12px var(--color-shadow);
  margin-top: 24px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0.93;
  transition: color .15s, opacity .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-leaf);
  opacity: 1;
}
.footer-contact {
  text-align: center;
  color: #375942;
  font-size: 0.97rem;
  margin-top: 10px;
}
.footer-contact p {
  margin-bottom: 6px;
  color: #596f65;
}

@media (max-width: 700px) {
  .footer-nav {
    gap: 10px;
  }
}

/* ====================================================
   RESPONSIVE DESIGN / MOBILE FIRST
   ==================================================== */
@media (max-width: 920px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.08rem; }
  .container {
    padding-left: 9px;
    padding-right: 9px;
  }
}
@media (max-width: 700px) {
  main {
    padding-top: 12px;
    padding-bottom: 24px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
  }
  .section {
    margin-bottom: 22px;
    padding: 12px 2px;
  }
}

/* Min. touch targets for mobile nav links */
.mobile-nav a {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding-left: 10px;
}

/* =====================================================
   BUTTONS, LINKS & MICROINTERACTIONS
   ===================================================== */
button, .cta-button {
  cursor: pointer;
  transition: background .18s, color .15s, transform .17s;
}
button:focus-visible, .cta-button:focus-visible {
  box-shadow: 0 0 0 3px var(--color-secondary);
  outline: none;
}

/* Animate organic card hover */
.card, .feature-item, .programy-grid > div, .post-listing article {
  transition: box-shadow .18s, transform .16s;
}
.card:hover, .feature-item:hover, .programy-grid > div:hover, .post-listing article:hover {
  box-shadow: 0 6px 24px var(--color-shadow);
  transform: scale(1.013) translateY(-1px);
}

/* ----------------------------------
   Natural curves (only for visuals!)
   ---------------------------------- */
.card, .feature-item, .programy-grid > div, .testimonial-card {
  border-radius: 28px 34px 18px 36px/27px 29px 37px 20px;
}

/* List spacing */
ul, ol {
  margin-top: 6px;
  margin-bottom: 18px;
  padding-left: 22px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
}
ul li::before {
  content: '\2022';
  color: var(--color-leaf);
  font-size: 1.28em;
  margin-right: 12px;
  position: absolute;
  left: -18px;
  top: 2px;
}

/* ==============
   COOKIE BANNER
   ============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: var(--color-accent);
  box-shadow: 0 -3px 22px var(--color-shadow);
  color: var(--color-primary);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 16px;
  justify-content: center;
  padding: 26px 10px;
  border-radius: 28px 28px 0 0/48px 46px 0 0;
  transform: translateY(150%);
  opacity: 0;
  transition: transform .33s cubic-bezier(.22,.9,.52,1), opacity .29s;
  font-family: var(--font-body);
  font-size: 1.08rem;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner p {
  margin-right: 20px;
  margin-bottom: 0 !important;
  flex: 1 1 180px;
  color: var(--color-primary);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-banner button {
  padding: 9px 24px;
  border-radius: 20px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  margin-bottom: 0;
}
.cookie-banner .cookie-btn-secondary {
  background: var(--color-sage);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-leaf);
  color: #fff;
}
.cookie-banner .cookie-btn-secondary:hover, .cookie-banner .cookie-btn-secondary:focus {
  background: var(--color-sage);
  color: var(--color-leaf);
}

/* =============================
   COOKIE MODAL (PREFERENCES)
   ============================= */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 3100;
  background: rgba(60,80,60,.23);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay .22s;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
@keyframes fadeInOverlay {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal-content {
  background: var(--color-accent);
  border-radius: 24px;
  box-shadow: 0 10px 70px var(--color-shadow);
  padding: 36px 30px 30px 30px;
  min-width: 300px;
  max-width: 95vw;
  font-family: var(--font-body);
  color: var(--color-primary);
  animation: slideInModal .25s;
  position: relative;
}
@keyframes slideInModal {
  from {transform: translateY(50px) scale(0.94); opacity: 0;}
  to {transform: translateY(0) scale(1); opacity: 1;}
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.cookie-category label {
  font-size: 1.02rem;
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-toggle {
  width: 44px;
  height: 26px;
  border-radius: 20px;
  background: var(--color-sage);
  position: relative;
  transition: background .12s;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-secondary);
  transition: left .17s, background .16s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 20px;
  background: var(--color-leaf);
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 24px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 1.4rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}
.cookie-modal .cookie-modal-close:hover {
  background: var(--color-brown);
  color: #fff;
}

/* =============================
   ACCESSIBILITY, FOCUS & ETC.
   ============================= */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-leaf);
  outline-offset: 1.5px;
}

/* hide visually (for overlays, cookies) when not open */
.mobile-menu,
.cookie-modal {
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open,
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}

/* =====================================
   MISC: THANK YOU, EMPTY STATES, ETC.
   ===================================== */
.text-section a.cta-button {
  margin-top: 14px;
}

/* Powerfully natural scroll UI smoothing */
html {
  scroll-behavior: smooth;
}

/* Ensure no unwanted layout overlapping (breathing room) */
.card + .card, .testimonial-card + .testimonial-card, .feature-item + .feature-item {
  margin-top: 20px;
}

/* Set min and max widths for responsive containers */
@media (max-width: 500px) {
  .container {
    padding-left: 3px;
    padding-right: 3px;
  }
  .footer-contact, .footer-nav {
    font-size: 0.92rem;
  }
  .cookie-modal-content {
    padding: 14px 6px 12px 10px;
  }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.hide {
  display: none !important;
}

.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ===========================
   END OF FILE
   =========================== */