/* CSS Reset & Normalize (Mobile first) */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: #F7F6F2;
  color: #2F372E;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
ul, ol {
  margin-left: 1.5em;
}
a {
  color: #50785F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1A5028;
}
button, input[type="submit"] {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

/* Typography scale (Mobile first) */
h1 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: #1C2B44;
  margin-bottom: 16px;
}
h2 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  color: #305145;
  margin-bottom: 16px;
}
h3 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: #46643C;
  margin-bottom: 12px;
}
p, li, blockquote, cite {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #38493C;
  margin-bottom: 12px;
}
p:last-child, li:last-child {
  margin-bottom: 0;
}
blockquote {
  font-style: italic;
  color: #304027;
  border-left: 5px solid #A5B97F;
  margin: 0 0 8px 0;
  padding-left: 16px;
}
cite {
  display: block;
  color: #6C7850;
  font-size: 0.98rem;
  margin-top: 4px;
}

/* Brand colors & organic theme variables */
:root {
  --color-primary: #1C2B44;
  --color-secondary: #F0A830;
  --color-accent: #E9E6DF;
  --color-bg: #F7F6F2;
  --color-success: #89B073;
  --color-green-dark: #305145;
  --color-green-medium: #50785F;
  --color-earth-brown: #A59372;
  --color-forest: #46643C;
  --color-shadow: 0 2px 16px 0 rgba(73, 93, 67, 0.09);
  --radius-card: 20px;
  --radius-btn: 28px;
  --radius-section: 32px;
}

/* Layout containers */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FCFCF8;
  border-radius: var(--radius-section);
  box-shadow: var(--color-shadow);
  position: relative;
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .section {
    margin-bottom: 36px;
    padding: 28px 6px;
    border-radius: 16px;
  }
}

/* Flex and grid patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  box-shadow: var(--color-shadow);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 10px;
}
.post-grid, .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;
}
@media (max-width: 768px) {
  .content-grid, .post-grid, .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}
.text-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #ECEAD4;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(151, 154, 130, 0.07);
  margin-bottom: 20px;
  min-width: 0;
  min-height: 90px;
  flex: 1 1 270px;
}
.testimonial-card blockquote {
  flex: 1;
  color: #2B3119;
  font-size: 1.08rem;
}
.testimonial-card cite {
  color: #6A7A45;
  font-size: 0.97rem;
  margin-left: 18px;
}

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

@media (max-width: 480px) {
  .card,
  .testimonial-card {
    padding: 15px 7px;
    border-radius: 12px;
  }
}

/* Header & Navigation */
header {
  width: 100%;
  background: #F7F6F2;
  padding: 0;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px 0 rgba(34, 54, 28, 0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #50785F;
  padding: 4px 0;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
nav a:hover, nav a:focus {
  background: #E6EBE0;
  color: #1C2B44;
}
.cta {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px 0 rgba(73,93,67,0.05);
  transition: box-shadow 0.14s, background 0.14s, color 0.14s;
  margin-left: 12px;
}
.cta.primary {
  background: linear-gradient(95deg, #AAB567 25%, #5DA57C 100%);
  color: #fff;
  border: none;
}
.cta.secondary {
  background: #fff;
  color: #4D7B55;
  border: 2px solid #D4DFBE;
}
.cta.primary:hover, .cta.primary:focus {
  background: linear-gradient(95deg, #8CA556 25%, #497A66 100%);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(41,82,42,0.13);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #E6EEE2;
  color: #204F22;
  border-color: #BDD297;
}

/* Mobile Burger Menu */
.mobile-menu-toggle {
  display: none;
  background: #AAB567;
  color: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.65rem;
  justify-content: center;
  align-items: center;
  transition: background 0.14s;
  margin-left: 12px;
  z-index: 32;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #6C7B4A;
}

@media (max-width: 980px) {
  header .container {
    flex-wrap: wrap;
    gap: 7px;
  }
  nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(42, 61, 29, 0.7);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.22s, transform 0.22s;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu nav {
  background: #F7F6F2;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  width: 84vw;
  max-width: 380px;
  min-height: 100vh;
  padding: 48px 22px 26px 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: -3px 0 26px 0 rgba(75, 95, 58, 0.12);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 21px;
  background: #AAB567;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #6C7B4A;
}
.mobile-nav a {
  color: #335F35;
  font-size: 1.14rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 14px 0 14px 8px;
  border-radius: 14px;
  transition: background 0.16s, color 0.16s;
  margin-bottom: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EAEDD7;
  color: #1C2B44;
}

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

/* Footer */
footer {
  width: 100%;
  background: #E9E6DF;
  margin-top: 40px;
  padding-top: 24px;
  padding-bottom: 12px;
}
footer .container {
  gap: 16px;
}
footer .content-wrapper {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
footer nav {
  gap: 18px;
  flex-wrap: wrap;
}
footer nav a {
  font-size: 1rem;
  color: #447852;
  padding: 2px 0;
}
footer nav a:hover, footer nav a:focus {
  color: #1C2B44;
  text-decoration: underline;
  background: none;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.98rem;
  margin-top: 10px;
}
.footer-legal a {
  color: #7A7F73;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
  color: #46643C;
}
.contact-info img {
  margin-right: 7px;
  vertical-align: middle;
  height: 20px;
  width: 20px;
}
.social-media {
  display: flex;
  gap: 14px;
  align-items: center;
}
.social-media a {
  border-radius: 14px;
  padding: 4px;
  transition: background 0.12s;
}
.social-media a:hover, .social-media a:focus {
  background: #D4DBB9;
}
@media (max-width: 768px) {
  footer .content-wrapper, .footer-legal {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
}

/* Blog Categories Sidebar */
.categories-sidebar {
  background: #F3F6E6;
  border-radius: 16px;
  padding: 20px;
  min-width: 220px;
  box-shadow: 0 1px 8px 0 rgba(180,196,146,0.08);
  margin-top: 12px;
  margin-bottom: 12px;
}
.categories-sidebar h3 {
  margin-bottom: 12px;
  font-weight: 600;
}
.categories-sidebar ul {
  list-style: disc inside;
  color: #38493C;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-left: 0;
}

/* FAQ Accordion (could be static, but styled) */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 12px;
}
.faq-accordion .text-section h3 {
  font-size: 1.06rem;
  color: #335F35;
  margin-bottom: 8px;
  font-weight: 600;
}
.faq-accordion .text-section p {
  font-size: 1rem;
  color: #49543B;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #E9E6DF;
  color: #244422;
  box-shadow: 0 -2px 20px 0 rgba(34,54,28,0.13);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 24px 16px;
  gap: 28px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: transform 0.32s, opacity 0.22s;
  font-size: 1rem;
}
.cookie-banner.hide {
  pointer-events: none;
  opacity: 0;
  transform: translateY(120%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  margin-left: 24px;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 32px;
  padding: 10px 28px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: #AAB567;
  color: #fff;
  transition: background 0.15s, color 0.13s;
  box-shadow: 0 1px 4px 0 rgba(114,141,91,0.08);
}
.cookie-banner .cookie-btn.secondary {
  background: #E9E6DF;
  color: #46643C;
  border: 1px solid #BDD297;
}
.cookie-banner .cookie-btn:hover {
  background: #50785F;
}
.cookie-banner .cookie-btn.secondary:hover {
  background: #E5EBDE;
  color: #386C43;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 6px 18px 8px;
    gap: 10px;
  }
  .cookie-banner .cookie-actions {
    margin-left: 0;
  }
}

/* Cookie Modal */
.cookie-modal-wrapper {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 299;
  background: rgba(59,84,33,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal-wrapper.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #FCFCF8;
  color: #253728;
  border-radius: 24px;
  box-shadow: 0 4px 48px 0 rgba(75,89,37,0.22);
  padding: 34px 40px 29px 40px;
  min-width: 308px;
  max-width: 97vw;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: cookieModalIn 0.33s cubic-bezier(.18,.89,.32,1.21);
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #305145;
  margin-bottom: 5px;
}
.cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 10px 0;
}
.cookie-modal .category label {
  flex: 1;
  font-size: 1rem;
  color: #3D4625;
}
.cookie-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #BDD297;
  border-radius: 24px;
  transition: background 0.18s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #89B073;
}
.cookie-slider:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fcfcf8;
  transition: transform 0.2s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(17px);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.cookie-modal .modal-close {
  background: #AAB567;
  position: absolute;
  top: 11px;
  right: 17px;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #50785F;
}
@media (max-width: 520px) {
  .cookie-modal {
    padding: 16px 8px 10px 13px;
    border-radius: 13px;
    min-width: 0;
  }
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: scale(0.93); }
  to { opacity: 1; transform: scale(1); }
}

/* Forms (minimal, for contact etc.) */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: #F3F6E6;
  border: 1px solid #C9D1B0;
  border-radius: 10px;
  padding: 10px 14px;
  outline: none;
  margin-bottom: 12px;
  width: 100%;
  color: #2B3119;
  transition: border 0.12s;
}
input:focus, textarea:focus, select:focus {
  border-color: #50785F;
}

/* Organic style extras: earth tones, textures, soft shapes */
h1, h2, h3 {
  letter-spacing: 0.01em;
}
.section, .card, .testimonial-card {
  background: #FAFAF3 url('assets/organic-bg-texture.svg') repeat;
  background-blend-mode: soft-light;
}
@media (max-width: 380px) {
  h1 {
    font-size: 1.42rem;
  }
  h2 {
    font-size: 1.1rem;
  }
}

/* Visual hierarchy and micro-interactions */
.card, .testimonial-card, .categories-sidebar, .cookie-modal {
  transition: box-shadow 0.16s, transform 0.14s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 28px 0 rgba(114,141,91,0.13);
  transform: translateY(-3px) scale(1.015);
}

/* Misc responsive tweaks */
@media (max-width: 400px) {
  .logo img {
    height: 37px;
  }
  footer .logo img {
    height: 32px;
  }
}

/* Accessibility: always readable testimonials */
.testimonial-card, .testimonial-card blockquote, .testimonial-card cite {
  color: #283011;
}

/* Ensure min spacing between cards/sections */
.card:not(:last-child), .testimonial-card:not(:last-child), .section:not(:last-child) {
  margin-bottom: 24px;
}

/* Remove absolute position from cards (allowed for decor only) */

/* Success and error states */
.success-message {
  color: #50785F;
  background: #EBF9F1;
  border: 1px solid #BDD297;
  padding: 12px 20px;
  border-radius: 14px;
  margin: 12px 0;
  font-weight: 600;
}
.error-message {
  color: #991F1F;
  background: #FFF8F6;
  border: 1px solid #E5C6C0;
  padding: 12px 20px;
  border-radius: 14px;
  margin: 12px 0;
  font-weight: 600;
}

/* Utility classes */
.text-center { text-align: center; }
.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }

/* Hide visually but accessible (for cookie modal etc.) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; border: 0; clip: rect(0 0 0 0); white-space: nowrap; }
