/* ========================================================================
   CSS RESET & BASELINE 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background-color: #faf9f4;
  color: #443421;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: #8B4513;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A31D17;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-size: 100%;
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
}
button {
  cursor: pointer;
}

/* ========================================================================
   BRAND FONTS
========================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, "Times New Roman", serif;
  color: #43371e;
  font-weight: 700;
  line-height: 1.18;
}
h1 { font-size: 2.3rem; margin-bottom: 20px; }
h2 { font-size: 1.7rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }

.section h2, .section h3 { margin-top: 0; }
strong { color: #8B4513; font-weight: 700; }

p { font-size: 1rem; margin-bottom: 18px; color: #3d321c; }

/* ========================================================================
   COLOR PALETTE & ORGANIC THEMING
========================================================================= */
:root {
  --color-primary: #8B4513;
  --color-secondary: #FFEBC1;
  --color-accent: #A31D17;
  --color-bg: #faf9f4;
  --color-surface: #fff7eb;
  --color-green: #52714d;
  --color-green-light: #e9f8e0;
  --color-brown-mid: #ad7843;
  --color-border: #e7dbc6;
  --color-shadow: rgba(139, 69, 19, 0.08);
  --color-text: #443421;
  --color-link-hover: #A31D17;
}

/* ========================================================================
   LAYOUT - FLEXBOX CONTAINERS ONLY
========================================================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* container itself, adjust if needed on sections */
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* Mandatory spacing patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 38px 28px 44px 32px/36px 32px 46px 28px;
  background: var(--color-surface);
  box-shadow: 0 4px 32px var(--color-shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 26px 8px;
    border-radius: 26px 18px 30px 18px/22px 18px 28px 12px;
    margin-bottom: 38px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 2px 16px var(--color-shadow);
  border-radius: 22px 18px 28px 18px/20px 18px 27px 12px;
  padding: 22px 18px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  flex: 1 1 270px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(82, 113, 77, 0.13);
  transform: translateY(-4px) scale(1.015);
}

.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,
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-left: 7px solid var(--color-green);
  border-radius: 20px 16px 24px 14px / 16px 12px 22px 10px;
  box-shadow: 0 2px 20px var(--color-shadow);
  margin-bottom: 20px;
  color: #2D2512;
}
.testimonial-card p {
  margin: 0 0 4px 0;
  color: #333116;
  font-size: 1.02rem;
}
.testimonial-card span {
  font-size: .93rem;
  color: var(--color-green);
  margin-left: 8px;
}

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

/* ========================================================================
   HEADER & MAIN NAVIGATION
========================================================================= */
header {
  background: var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 14px var(--color-shadow);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 14px 20px;
  min-height: 64px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header a img {
  max-height: 42px;
  transition: transform 0.15s;
}
header a img:hover {
  transform: scale(1.07) rotate(-3deg);
}
header nav a {
  font-family: 'Open Sans', sans-serif;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  padding: 6px 10px;
}
header nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  position: absolute;
  left: 50%;
  bottom: 0;
  transition: width 0.2s, left 0.2s;
}
header nav a:hover:after, header nav a:focus:after {
  width: 100%;
  left: 0;
}
.primary-cta {
  background: var(--color-green);
  color: #fff !important;
  border-radius: 14px 10px 14px 10px/12px 8px 13px 8px;
  padding: 8px 22px;
  font-size: 1rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  margin-left: 14px;
  box-shadow: 0 2px 9px rgba(139, 69, 19, 0.08);
  transition: background 0.18s, color 0.17s, box-shadow 0.18s;
  border: none;
}
.primary-cta:hover, .primary-cta:focus {
  background: #43643a;
  color: #fff;
  box-shadow: 0 4px 20px rgba(82, 113, 77, 0.16);
}
.secondary-cta {
  background: transparent;
  color: var(--color-green);
  border-radius: 11px 8px 12px 8px/10px 7px 11px 7px;
  border: 2px solid var(--color-green);
  padding: 7px 16px;
  font-size: .98rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  margin-top: 18px;
  transition: background .22s, color .22s, border-color .22s;
  display: inline-block;
}
.secondary-cta:hover, .secondary-cta:focus {
  background: var(--color-green);
  color: #fff;
  border-color: #45683a;
}

/* ========================================================================
   MOBILE MENU - HAMBURGER & SLIDE MENU
========================================================================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--color-primary);
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  padding: 3px 9px;
  margin-left: 18px;
  border-radius: 8px;
  transition: background 0.15s;
  z-index: 130;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #f4eddd;
  color: var(--color-accent);
}
@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(115deg, #f3eedc 70%, #e9f8e0 100%);
  box-shadow: 0 0 80px rgba(139,69,19,0.14);
  z-index: 200;
  transform: translateX(-100vw);
  transition: transform 0.45s cubic-bezier(.66,.03,.29,.99);
  overflow-y: auto;
  padding: 0 0 36px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 30px 18px 0;
  font-size: 2.1rem;
  background: none;
  color: var(--color-accent);
  border: none;
  border-radius: 8px;
  transition: background 0.14s;
  z-index: 280;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #efddd7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-left: 32px;
  margin-top: 12px;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: 'Roboto Slab',sans-serif;
  color: var(--color-primary);
  padding: 12px 0 12px 0;
  font-weight: 600;
  border-radius: 10px;
  width: 100%;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-green-light);
  color: var(--color-accent);
}
@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
}

/* ========================================================================
   FOOTER
========================================================================= */
footer {
  background: var(--color-secondary);
  border-top: 2px solid var(--color-border);
  padding: 34px 0 28px;
  box-shadow: 0 -2px 14px var(--color-shadow);
  margin-top: 38px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 38px;
}
.footer-brand img {
  max-height: 48px;
  filter: grayscale(0.15) brightness(0.90);
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .98rem;
}
footer nav a {
  color: var(--color-primary);
}
footer nav a:hover {
  color: var(--color-accent);
}
.footer-contact {
  font-size: .95rem;
  color: #4c411c;
}
.footer-contact a {
  color: var(--color-accent);
  text-decoration: underline dotted;
  transition: color .13s;
}
.footer-contact a:hover {
  color: var(--color-green);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    text-align: left;
  }
}

/* ========================================================================
   FORMS, INPUTS, FILTERS
========================================================================= */
input[type="search"], input[type="email"], select {
  padding: 10px 15px;
  border-radius: 14px;
  border: 1.5px solid var(--color-green);
  background: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  transition: border-color 0.14s, box-shadow 0.16s;
}
input[type="search"]:focus,
input[type="email"]:focus,
select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 1px 12px rgba(163,29,23,0.14);
}
select {
  margin-left: 8px;
}
.filter-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
@media (max-width: 540px) {
  .filter-row {
    flex-direction: column;
    gap: 12px;
  }
}
form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}
form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
}
form button {
  background: var(--color-accent);
  color: #fff;
  border-radius: 14px;
  padding: 8px 20px;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: background 0.18s, color 0.18s;
}
form button:hover,
form button:focus {
  background: #8B4513;
  color: #ffeccf;
}
@media (max-width: 600px) {
  form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* ========================================================================
   CARD-BASED & TEASER LAYOUTS
========================================================================= */
.recipe-teaser-list,
.recipe-grid,
.tips-grid,
.post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.recipe-teaser-list > div,
.recipe-grid > div,
.tips-grid > div,
.post-grid > div {
  flex: 1 1 250px;
  min-width: 220px;
  background: var(--color-green-light);
  border-radius: 20px 14px 22px 14px/17px 14px 22px 9px;
  box-shadow: 0 1px 11px var(--color-shadow);
  padding: 18px 16px 16px 18px;
  margin-bottom: 12px;
  transition: box-shadow .18s, transform .18s;
}
.recipe-teaser-list > div:hover, .recipe-grid > div:hover, .tips-grid > div:hover, .post-grid > div:hover {
  box-shadow: 0 4px 22px rgba(82, 113, 77, 0.17);
  transform: translateY(-3px) scale(1.012);
}
.featured-post {
  background: var(--color-secondary);
  border-left: 5px solid var(--color-green);
  box-shadow: 0 1px 15px var(--color-shadow);
  border-radius: 13px 9px 16px 9px/11px 7px 14px 7px;
  padding: 18px;
  margin-top: 28px;
}
@media (max-width: 768px) {
  .recipe-teaser-list, .recipe-grid, .tips-grid, .post-grid {
    flex-direction: column;
    gap: 14px;
  }
}

.pagination {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 26px;
  align-items: center;
  justify-content: center;
}
.pagination li {
  display: flex;
}
.pagination a {
  display: block;
  padding: 6px 13px;
  background: #fbf7ec;
  border-radius: 8px;
  color: var(--color-green);
  font-weight: 600;
  border: 1.5px solid var(--color-green-light);
  transition: background 0.13s, color 0.14s;
  font-family: 'Roboto Slab', serif;
}
.pagination a:hover,.pagination a:focus {
  background: var(--color-green);
  color: #fff;
  border-color: #52714d;
}

/* ========================================================================
   GENERIC ELEMENTS & ORGANIC SHAPES
========================================================================= */
section > .container {
  padding: 0;
}
section:not(:last-child) {
  margin-bottom: 60px;
}
.text-section {
  margin-bottom: 18px;
  border-left: 4px solid var(--color-brown-mid);
  background: #fffaf2;
  padding: 16px 20px 16px 24px;
  border-radius: 13px 10px 13px 10px / 10px 9px 11px 7px;
}

ul li {
  margin-bottom: 7px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
}
ul li img {
  height: 22px;
  width: 22px;
  margin-right: 10px;
  border-radius: 6px; /* gives organic feel to icons */
  background: #e8e0ce;
  object-fit: contain;
}

/* FAQ Accordion Style (just stylized block since no JS in snippets) */
.faq-accordion > div {
  background: #f7f6f2;
  border-radius: 15px 9px 16px 9px/13px 6px 13px 6px;
  border-left: 4px solid #ad7843;
  box-shadow: 0 1px 11px var(--color-shadow);
  padding: 13px 17px;
  margin-bottom: 16px;
  transition: box-shadow .16s;
}
.faq-accordion > div:hover {
  box-shadow: 0 4px 17px rgba(139,69,19,0.13);
}

/* ========================================================================
   COOKIE BANNER AND COOKIE MODAL
========================================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  width: 100vw;
  background: linear-gradient(95deg, var(--color-secondary) 68%, #e9f8e0 100%);
  box-shadow: 0 -3px 24px rgba(139,69,19,0.23);
  padding: 16px 20px 22px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 42px;
  transition: transform .42s cubic-bezier(.66,.03,.29,.99);
}
.cookie-banner[aria-hidden="true"] {
  transform: translateY(100%);
}
.cookie-banner__text {
  flex: 1 1 auto;
  font-size: 1.01rem;
  color: #3d321c;
  margin-right: 18px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  background: var(--color-green);
  color: #fff;
  border-radius: 12px;
  padding: 7px 20px;
  font-size: 1rem;
  font-family: 'Roboto Slab', serif;
  font-weight: bold;
  border: none;
  box-shadow: 0 2px 7px var(--color-shadow);
  transition: background .18s, color .18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #43643a;
  color: #ffeccf;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-green);
  border: 2px solid var(--color-green);
  box-shadow: none;
}
.cookie-btn.settings:hover {
  background: var(--color-green-light);
  color: var(--color-green);
}
.cookie-btn.reject {
  background: var(--color-accent);
  color: #fff;
  border: none;
}
.cookie-btn.reject:hover {
  background: #8B4513;
  color: #ffeccf;
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 6px 20px 6px;
  }
  .cookie-banner__actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: stretch;
  }
}

.cookie-modal-backdrop {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34, 32, 27, .44);
  z-index: 4200;
  justify-content: center;
  align-items: center;
  animation: fadeInCookie .23s;
}
@keyframes fadeInCookie {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-surface);
  border-radius: 24px 18px 24px 20px/22px 16px 24px 12px;
  box-shadow: 0 9px 76px rgba(82,113,77,0.16);
  padding: 34px 24px 30px 28px;
  max-width: 380px;
  width: 93vw;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 4400;
  animation: popInCookie .36s cubic-bezier(.5,1.65,.35,1.53);
}
@keyframes popInCookie {
  from { transform: scale(.84); opacity: 0; } to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 9px;
  margin-top: 6px;
}
.cookie-category {
  padding: 7px 2px 7px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .99rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-green);
  width: 19px;
  height: 19px;
}
.cookie-modal .cookie-btn {
  width: 100%;
  margin-top: 10px;
}
.cookie-modal .cookie-btn.close {
  background: #fff1d9;
  color: var(--color-green);
  border: 2px solid var(--color-green);
  margin-top: 7px;
}
.cookie-modal .cookie-btn.close:hover {
  background: var(--color-green-light);
  color: #34512a;
}

/* ========================================================================
   RESPONSIVENESS & MOBILE SETTINGS
========================================================================= */
@media (max-width:600px) {
  h1 {font-size:1.4rem;}
  h2 {font-size:1.09rem;}
  .section {padding: 22px 6px;}
  .content-wrapper {gap:12px;}
}

/* ========================================================================
   MICRO-ANIMATIONS & HOVER EFFECTS
========================================================================= */
a, button, .card, .primary-cta, .secondary-cta, .pagination a {
  transition: background .18s, box-shadow .18s, color .16s, border .14s, transform .18s;
}

/* Organic soft focus effect for buttons on focus */
button:focus, .primary-cta:focus, .secondary-cta:focus, .cookie-btn:focus {
  box-shadow: 0 0 0 3px #e9f8e0, 0 2px 7px var(--color-shadow);
  outline: none;
}

/* ========================================================================
   HIGHLIGHTED UTILITIES
========================================================================= */
@media screen and (max-width: 540px) {
  .footer-brand img { max-height: 36px; }
}

/* Accessibility outline for keyboard users */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Hide visually but maintain accessibility */
.sr-only,
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ========================================================================
   END
========================================================================= */
