/* CSS RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background-color: #EDEAE4;
  color: #3E2F21;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 1.5em;
}
ul li, ol li {
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}
a {
  color: #465223;
  text-decoration: underline;
  transition: color 0.2s;
  outline: none;
}
a:hover, a:focus {
  color: #A57947;
  text-decoration: none;
}
strong { font-weight: 700; }

/* BRAND FONTS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #3E2F21;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
p {
  margin-bottom: 1.3em;
  font-size: 1rem;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

/* LAYOUT */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 32px 0 rgba(62,47,33,0.08);
  position: relative;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
    border-radius: 16px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* HEADER */
header {
  background-color: #3E2F21;
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 10px rgba(62,47,33,0.12);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  gap: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
header nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 0;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,
header nav a:focus {
  color: #A57947;
  background: #fff2;
}
header nav img {
  height: 42px;
  margin-right: 12px;
}
.btn-primary {
  font-family: 'Merriweather', Georgia, serif;
  background: #A57947;
  color: #fff;
  border: none;
  border-radius: 27px;
  padding: 12px 36px;
  font-size: 1.125rem;
  font-weight: 700;
  margin-left: 18px;
  box-shadow: 0 2px 16px rgba(62,47,33,0.08);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.03em;
  transition: background 0.25s, color 0.2s, box-shadow 0.3s;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #3E2F21;
  color: #fff;
  box-shadow: 0 4px 32px 0 rgba(62,47,33,0.20);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 20px;
  z-index: 40;
}
@media (max-width: 990px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    align-self: center;
    background: none;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(62,47,33, 0.97);
  color: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.175,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 35px;
  padding-left: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.25rem;
  position: absolute;
  top: 18px;
  right: 24px;
  cursor: pointer;
  z-index: 2010;
  outline: none;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #A57947;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
  margin-left: 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Roboto', Arial, sans-serif;
  text-decoration: none;
  padding: 12px 0;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 6px;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #A57947;
  color: #fff;
}
@media (min-width: 991px) {
  .mobile-menu {display: none;}
  .mobile-menu-toggle {display: none;}
}

/* MAIN PAGE SECTIONS & FLEX LAYOUTS */
.section:not(.no-bg) {
  background: #fff;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .feature-grid { gap: 20px; }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F9F7F3;
  border-radius: 18px;
  box-shadow: 0 1px 10px rgba(62,47,33,0.07);
  padding: 20px 20px 20px 24px;
  min-width: 220px;
  flex: 1;
  min-height: 180px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(62,47,33,0.07));
}
.feature-item h3 {
  font-size: 1.15rem;
  color: #3E2F21;
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 1rem;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 8px 32px rgba(165,121,71,0.14);
  transform: translateY(-3px) scale(1.015);
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 32px;
  background: #F2F6F0;
  border-left: 6px solid #A57947;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(62,47,33,0.07);
  margin-bottom: 20px;
  min-width: 230px;
  max-width: 440px;
  transition: box-shadow 0.23s, transform 0.19s;
  font-size: 1rem;
  color: #2E2618;
}
.testimonial-card p {
  color: #3E2F21;
  font-size: 1.02rem;
  margin: 0 0 12px 0;
  font-style: italic;
}
.testimonial-card span {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #6E5737;
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px 0 rgba(62,47,33,.14);
  transform: scale(1.025) translateY(-3px);
}
@media (max-width: 800px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card { max-width: 100%; }
}

.section ul, .section ol {
  margin-left: 18px;
  margin-bottom: 15px;
}
.section ul li, .section ol li {
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(62,47,33,0.08);
  padding: 26px 22px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.21s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(165,121,71,0.09);
  transform: translateY(-2px) scale(1.01);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

.post-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.post-preview {
  background: #F9F7F3;
  border-radius: 14px;
  padding: 18px 22px;
  min-width: 180px;
  flex: 1 1 260px;
  box-shadow: 0 2px 10px rgba(62,47,33,0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.15s;
}
.post-preview:hover, .post-preview:focus-within {
  box-shadow: 0 6px 22px rgba(165,121,71,0.13);
  transform: translateY(-2px);
}
.categories-filter {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 12px;
}
.categories-filter a {
  color: #6E5737;
  text-decoration: underline;
  transition: color 0.19s;
}
.categories-filter a:hover {
  background: #A57947;
  color: #fff;
  border-radius: 7px;
  padding: 2px 10px;
  text-decoration: none;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section img {
  vertical-align: middle;
  margin-right: 6px;
  height: 22px;
}
.text-section a {
  color: #3E2F21;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .post-list { flex-direction: column; gap: 16px; }
}

/* FOOTER */
footer {
  background: #F3EFE8;
  color: #3E2F21;
  border-top: 3px solid #A57947;
  font-size: 0.97rem;
  margin-top: 60px;
}
footer .container {
  padding: 30px 20px 18px 20px;
  flex-direction: column;
  align-items: center;
}
.footer-logo {
  margin-bottom: 18px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
  justify-content: center;
}
footer nav a {
  color: #A57947;
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
  font-family: 'Roboto', Arial, sans-serif;
}
footer nav a:hover {
  color: #3E2F21;
  text-decoration: underline;
}
footer p {
  margin-bottom: 5px;
  color: #3E2F21;
  text-align: center;
}

/* ORGANIC ELEMENTS, TEXTURE, EARTH TONES */
body, .section, .card, .feature-item, .post-preview, .testimonial-card {
  /* Subtle linen-style organic background */
  background-image: repeating-linear-gradient(105deg, rgba(180,160,136,0.03) 0 8px, transparent 8px 16px);
}

.section {
  border-radius: 30px 24px 32px 18px / 26px 34px 24px 30px; /* organic, not fully symmetric */
}
.feature-item, .testimonial-card, .post-preview { border-radius: 22px 18px 28px 12px / 16px 26px 20px 34px; }

/* Earthy Shadow */
.card, .feature-item, .testimonial-card, .post-preview {
  box-shadow: 0 2px 18px rgba(165,121,71,0.07), 0 1.5px 6px rgba(130, 105, 60, 0.06);
}

/* FOCUS STATES */
a:focus, button:focus, .btn-primary:focus { outline: 2px solid #5CA36A; outline-offset: 2px; }

/* SPACING RULES */
.section, .card, .feature-item, .testimonial-card, .post-preview {
  margin-bottom: 20px;
}
.card-container, .feature-grid, .testimonial-slider, .post-list, .content-grid {
  gap: 20px;
}

/* BUTTONS (Accent + Nature Core) */
button, .btn-primary {
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 12px 0 rgba(94,71,39,0.08);
}
button.btn-secondary, .btn-secondary {
  background: #EDEAE4;
  color: #A57947;
  border: 1px solid #A57947;
  border-radius: 19px;
  padding: 9px 26px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  margin-left: 12px;
  margin-right: 10px;
  transition: background 0.22s, color 0.19s, border-color 0.21s;
}
button.btn-secondary:hover, .btn-secondary:hover, button.btn-secondary:focus, .btn-secondary:focus {
  background: #A57947;
  color: #fff;
  border-color: #A57947;
}

/* COOKIE BANNER & MODAL -- BOTTOM FIXED CONSENT */
#cookie-banner, .cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 24px;
  background: #fff;
  color: #3E2F21;
  border: 2.5px solid #A57947;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(62,47,33,0.19);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px 20px 26px;
  z-index: 3000;
  font-size: 1rem;
  transition: bottom 0.3s cubic-bezier(.82, 0, .36, 1), opacity 0.25s;
  opacity: 1;
}
#cookie-banner.hide, .cookie-banner.hide {
  bottom: -200px;
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-text {
  flex: 1 1 auto;
  color: #3E2F21;
  font-size: 1rem;
  margin-right: 20px;
}
.cookie-banner-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
@media (max-width: 600px) {
  #cookie-banner, .cookie-banner {
    padding: 13px 12px 13px 12px;
    flex-direction: column;
    gap: 13px;
    font-size: 0.98rem;
  }
  .cookie-banner-text { margin-right: 0; }
  .cookie-banner-btns { gap: 8px; flex-direction: column; align-items: stretch; }
}
/* Cookie Modal */
#cookie-modal, .cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(62,47,33, 0.55);
  z-index: 3200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
#cookie-modal.active, .cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border: 2.5px solid #A57947;
  border-radius: 16px 16px 0 0 / 22px 22px 0 0;
  min-width: 320px;
  max-width: 480px;
  width: 98%;
  margin-bottom: 0;
  padding: 32px 28px 28px 28px;
  box-shadow: 0 -6px 52px rgba(165,121,71,0.23);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalSlideIn .36s cubic-bezier(.72,0,.19,1);
}
@keyframes cookieModalSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cookie-modal-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.32rem;
  color: #3E2F21;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #3E2F21;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 7px;
  transition: background 0.18s, color 0.19s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #A57947;
  color: #fff;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #F6F4F0;
  border-radius: 10px;
  padding: 9px 14px;
  gap: 16px;
}
.cookie-category-title {
  font-size: 1rem;
  font-weight: 600;
  color: #3E2F21;
  margin-right: 8px;
}
.cookie-category-toggle {
  margin-left: auto;
}
.cookie-category input[type="checkbox"] {
  accent-color: #5CA36A;
  width: 22px; height: 22px;
}
.cookie-category-essential {
  font-size: .97rem;
  color: #A57947;
  font-weight: 600;
}
.cookie-category input[disabled] { opacity: 0.65; cursor: not-allowed; }
.cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 9px;
  justify-content: flex-end;
}
@media (max-width: 500px) {
  .cookie-modal-content { padding: 14px 7px 16px 7px; min-width: 0; }
}

/* MICRO-INTERACTIONS/EFFECTS */
.btn-primary, .btn-secondary {
  transition: background 0.18s, color 0.14s, box-shadow 0.2s;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
  filter: brightness(92%);
}

/* ORGANIC SHAPES & GREEN ACCENTS */
.btn-primary,
.cookie-banner-btns button.btn-primary,
.cookie-modal-buttons button.btn-primary {
  background: #5CA36A;
  color: #fff;
  border-radius: 24px;
  font-family: 'Merriweather', serif;
  font-size: 1.06rem;
  border: none;
  padding: 9px 26px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 3px 14px rgba(92,163,106,0.10);
}
.btn-primary:hover,
.cookie-banner-btns button.btn-primary:hover,
.cookie-modal-buttons button.btn-primary:hover {
  background: #407B40;
  color: #fff;
}
.btn-secondary, .cookie-modal-buttons button.btn-secondary {
  background: #EDEAE4;
  border: 1px solid #A57947;
  color: #A57947;
  border-radius: 21px;
  font-size: 1rem;
  padding: 9px 22px;
  font-weight: 600;
  font-family: 'Roboto', Arial, sans-serif;
}

/* FORM, FIELDS, ETC */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 7px;
  border: 1.5px solid #BDAF9A;
  padding: 10px 14px;
  margin-bottom: 18px;
  background: #FAF9F6;
  color: #3E2F21;
  transition: border-color 0.18s;
  outline: none;
}
input:focus, textarea:focus {
  border-color: #A57947;
}
label {
  font-size: 1rem;
  margin-bottom: 5px;
  display: block;
  color: #3E2F21;
  font-family: 'Roboto', Arial, sans-serif;
}

/* MISC: spacing and alignment rules enforced */
.section, .card, .feature-item, .testimonial-card, .post-preview {
  margin-bottom: 20px !important;
}
.card-container, .feature-grid, .testimonial-slider, .post-list, .content-grid, .text-image-section {
  gap: 20px !important;
}

/* NATURE/ORGANIC GLOBALS */
body {
  background-color: #EDEAE4;
  background-image:
    linear-gradient(125deg,rgba(92,163,106,0.02) 34%,transparent 75%),
    linear-gradient(55deg,rgba(165,121,71,0.03) 20%,transparent 82%);
}
h1, h2, h3, h4 {
  letter-spacing: 0.03em;
  font-family: 'Merriweather', Georgia, serif;
}
main section {
  /* Remove background on cookie banner sections */
}

/* ORGANIC ICON COLORS */
.feature-item img, .text-section img {
  filter: hue-rotate(-35deg) saturate(1.3) brightness(1) drop-shadow(0 2px 5px rgba(92,163,106,0.07));
}

/* ACCESSIBILITY: High contrast for testimonials & review */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #2E2618 !important;
  background: #F2F6F0 !important;
}

@media (max-width: 500px) {
  .section, .card {
    padding: 16px 4px;
    border-radius: 11px;
  }
}

/* PRINT SUPPORT (BASIC) */
@media print {
  header, footer, .mobile-menu, #cookie-banner, .cookie-banner, #cookie-modal, .cookie-modal { display: none !important; }
  body { background: #fff !important; }
  .section, .card { box-shadow: none !important; border: none !important; }
}

/* END */
