/* CSS RESET & NORMALIZATION (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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #F1E5C8;
  color: #2C3E27;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #4A6F47;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #B94D1A;
  outline: none;
}
ul, ol {
  margin-left: 24px;
}
strong { font-weight: bold; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bitter', serif;
  color: #2C3E27;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
  line-height: 1.1;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}
@media (min-width: 600px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.35rem; }
}
p, li, address {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 16px;
  color: #2C3E27;
}
blockquote {
  font-style: italic;
  margin: 0 0 16px 0;
  padding-left: 18px;
  border-left: 4px solid #B94D1A;
  color: #3a362e;
  background: #fff8ed;
}

/* LAYOUT CONTAINERS & CORE FLEXBOX */
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* SECTION SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (min-width: 940px) {
  section {
    padding: 60px 0; 
  }
}

.hero {
  background: #FFFFFF;
  box-shadow: 0 2px 20px rgba(74,111,71,0.08);
  border-radius: 18px;
}
.cta-section {
  background: #4A6F47;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(44,62,39,0.07);
}
.cta-section h2,
.cta-section p {
  color: #fff;
}

/* MAIN LAYOUT COMPONENTS */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div {
  flex: 1 1 230px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(74, 111, 71, 0.10);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.features-grid > div:hover {
  box-shadow: 0 4px 16px rgba(155, 98, 31, 0.13);
}
.features-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}

.recipe-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.recipe-box {
  background: #fff;
  border-radius: 13px;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 2px 8px rgba(74,111,71,0.08);
  margin-bottom: 20px;
  flex: 1 1 230px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.20s;
}
.recipe-box:hover {
  box-shadow: 0 8px 24px rgba(185,77,26,0.11);
  transform: translateY(-2px) scale(1.025);
}

.recipes-listing {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.recipe-summary {
  background: #fff;
  padding: 22px 20px 18px 20px;
  border-radius: 13px;
  margin-bottom: 20px;
  min-width: 240px;
  flex: 1 1 260px;
  box-shadow: 0 2px 7px rgba(74,111,71,0.09);
  transition: box-shadow 0.2s, transform 0.17s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.recipe-summary:hover {
  box-shadow: 0 8px 24px rgba(44,62,39,0.10);
  transform: translateY(-2px);
}
.recipe-summary span {
  display: inline-block;
  color: #9C4016;
  font-size: 0.96rem;
  font-style: italic;
  margin-top: 6px;
}

.filter-options {
  margin-bottom: 25px;
  padding: 16px 0 12px 0;
  background: #f6efe0;
  border-radius: 8px;
}
.filter-options ul, .filter-options li{
  margin: 0; padding: 0; list-style: disc;
}
.filter-options ul {
  padding-left: 24px;
  color: #4A6F47;
}
.filter-options strong {
  color: #B94D1A;
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(155,64,22,0.11);
  transition: box-shadow 0.18s, background 0.15s;
}
.social-links a:hover {
  background: #B94D1A;
  box-shadow: 0 4px 12px rgba(185,77,26,0.13);
}
.social-links img { width: 22px; height: 22px; }

/* FLEXBOX CLASS UTILITY */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 9px rgba(44,62,39,0.10);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 560px;
  color: #2C3E27;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HEADER/NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(44,62,39,0.045);
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 0 0 0 0;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
header a > img {
  height: 52px;
  margin-right: 12px;
  margin-bottom: -8px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-left: 2vw;
}
.main-nav a {
  font-family: 'Bitter', serif;
  font-weight: 500;
  color: #4A6F47;
  font-size: 1.08rem;
  letter-spacing: 0.015em;
  padding: 6px 10px 6px 2px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #F1E5C8;
  color: #B94D1A;
}
.cta-primary {
  display: inline-block;
  padding: 12px 28px;
  margin-left: 16px;
  font-family: 'Bitter', serif;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: #fff;
  background: #4A6F47;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(74, 111, 71, 0.10);
  cursor: pointer;
  transition: background 0.21s, transform 0.14s, box-shadow 0.22s;
  text-align: center;
  text-decoration: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #2C3E27;
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(185,77,26,0.11);
}
.cta-secondary {
  display: inline-block;
  padding: 8px 22px;
  font-family: 'Bitter', serif;
  font-size: 1rem;
  color: #B94D1A;
  background: #F1E5C8;
  border-radius: 8px;
  border: 1px solid #B94D1A;
  font-weight: 700;
  margin-top: 12px;
  transition: background 0.19s, color 0.18s;
}
.cta-secondary:hover, .cta-secondary:focus{
  background: #fff;
  color: #9C4016;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: none;
  background: transparent;
  color: #4A6F47;
  padding: 8px 12px;
  margin-left: 8px;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: none;
  transition: background 0.08s;
  z-index: 301;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F1E5C8;
}
@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(44,62,39,0.82);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  z-index: 330;
  justify-content: flex-start;
  align-items: flex-end;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.0rem;
  color: #fff;
  background: transparent;
  border: none;
  padding: 16px;
  margin-right: 12px;
  margin-top: 18px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 340;
  align-self: flex-end;
  transition: background 0.08s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus{ background: #4A6F47; }

.mobile-nav {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding: 16px 32px 0 0;
}
.mobile-nav a {
  font-family: 'Bitter', serif;
  font-size: 1.34rem;
  color: #fff;
  font-weight: 500;
  padding: 12px 0;
  width: 240px;
  border-radius: 8px;
  text-align: right;
  transition: background 0.16s, color 0.19s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #B94D1A;
  color: #fffbe6;
}

@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .cta-primary {
    margin-left: 0;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}

/* FOOTER */
footer {
  background: #fff;
  box-shadow: 0 -2px 10px rgba(44,62,39,0.04);
  padding: 40px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  font-family: 'Bitter', serif;
  color: #4A6F47;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #B94D1A;
}
.footer-contact {
  text-align: center;
  font-size: 0.99rem;
  color: #2C3E27;
}
.footer-contact address {
  font-style: normal;
  font-size: 1rem;
  margin-bottom: 8px;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 9px rgba(44,62,39,0.10);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 560px;
  color: #2C3E27;
}
.testimonial-card blockquote {
  font-size: 1.12rem;
  font-family: 'Bitter', serif;
  color: #2C3E27;
}
.testimonial-card p {
  color: #6C422B;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }
}

/* FORM, LISTS & MISC */
ul, ol {
  margin-bottom: 16px;
  font-size: 1rem;
}
li {
  margin-bottom: 8px;
}
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #4A6F47;
  padding: 10px;
  margin-bottom: 16px;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border: 1.5px solid #B94D1A;
}

/* General Card Styling (for universal flexibility) */
.card {
  background: #fff;
  padding: 24px 16px;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(74,111,71,0.09);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff8ed;
  border-top: 2px solid #4A6F47;
  box-shadow: 0 -2px 16px rgba(44,62,39,0.10);
  padding: 26px 18px 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 8200;
  gap: 14px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.63,0,.23,1);
  font-size: 1.04rem;
}
.cookie-consent-banner.show {
  transform: translateY(0);
}
.cookie-consent-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 1rem;
  font-family: 'Bitter', serif;
  border-radius: 8px;
  border: 1px solid #4A6F47;
  background: #fff;
  color: #4A6F47;
  box-shadow: 0 2px 4px rgba(185,77,26,0.09);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.19s, color 0.15s, border 0.13s;
}
.cookie-btn.accept {
  background: #4A6F47;
  color: #fff;
  border: 1px solid #B94D1A;
}
.cookie-btn.accept:hover {
  background: #B94D1A;
  color: #fffbe6;
}
.cookie-btn.settings {
  background: #fff8ed;
  color: #B94D1A;
  border: 1px solid #B94D1A;
}
.cookie-btn.settings:hover {
  background: #fff;
  color: #9C4016;
}
.cookie-btn.reject {
  background: #fff;
  color: #4A6F47;
  border: 1px solid #9C4016;
}
.cookie-btn.reject:hover {
  background: #fff8ed;
  color: #B94D1A;
  border: 1px solid #B94D1A;
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(44,62,39,0.60);
  z-index: 8300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.7,0,.18,1);
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: #fff;
  padding: 38px 22px 32px 22px;
  border-radius: 16px;
  box-shadow: 0 10px 42px rgba(44,62,39,0.19);
  min-width: 320px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 1.65rem;
  color: #4A6F47;
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s;
  z-index: 90;
  padding: 2px 8px;
}
.cookie-modal-close:hover { background: #F1E5C8; }
.cookie-modal h3 {
  color: #B94D1A;
  font-family: 'Bitter', serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1.07rem;
}
.cookie-category input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: #4A6F47;
}
.cookie-category .always-on {
  color: #2C3E27;
  font-weight: 600;
  margin-left: 6px;
}

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 1023px) {
  .container {
    max-width: 92vw;
    padding: 0 10px;
  }
  section {
    padding: 30px 10px;
    margin-bottom: 44px;
  }
  .footer-contact, .footer-nav {
    padding-left: 8px; padding-right: 8px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 95vw;
    padding: 0 6px;
  }
  .features-grid, .recipe-grid, .recipes-listing, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .main-nav {
    display: none;
  }
  .footer-nav {
    gap: 12px;
    font-size: 0.96rem;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.05rem; }
}

/* Transitions & subtle hover states */
.card, .features-grid > div, .recipe-summary, .recipe-box {
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover, .features-grid > div:hover, .recipe-summary:hover, .recipe-box:hover {
  box-shadow: 0 8px 32px rgba(185, 77, 26, 0.12);
  transform: translateY(-3px) scale(1.015);
}

/* Utility: Hide visually, keep for screen readers */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Remove focus outlines except for keyboard navigation */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #B94D1A;
  outline-offset: 3px;
}

/* ---- END CSS ---- */
