/* =====================
   CSS RESET & NORMALIZE
   ===================== */
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;
  min-height: 100vh;
  background: #f5f5f5;
  color: #26313a;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #314e35;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #b6c749;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
}
button {
  background: none;
  cursor: pointer;
}

/* =============================
   TYPOGRAPHY & BRAND FONTSSETUP
   ============================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #26313a;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p, li, span {
  font-size: 1rem;
  color: #314e35;
  line-height: 1.6;
}
strong {
  font-weight: 600;
  color: #26313a;
}

/* =====================
   GLOBAL CONTAINERS
   ===================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* =====================
   SECTIONS / SPACING
   ===================== */
section {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 12px rgba(49, 78, 53, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}

/* =====================
   HEADER & NAV
   ===================== */
header {
  background: #f5f5f5;
  position: relative;
  z-index: 30;
  border-bottom: 1px solid #e5e7eb;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
  justify-content: flex-start;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #26313a;
  padding: 8px 8px;
  transition: color 0.18s;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 6px;
}
.main-nav a.active, .main-nav a:hover, .main-nav a:focus {
  color: #314e35;
  background: #e3e3e3;
}
.main-nav img {
  max-height: 38px;
  margin-right: 8px;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

/* ========== MOBILE MENU =========== */
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 24px;
    top: 16px;
    width: 48px;
    height: 48px;
    z-index: 108;
    font-size: 2rem;
    color: #314e35;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(49,78,53,0.10);
    border: 1px solid #e5e5e5;
    transition: background 0.2s, box-shadow 0.2s;
  }
  .mobile-menu-toggle:active {
    background: #e5e5e5;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #314e35;
  color: #fff;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.7,.12,.17,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #314e35;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 1;
  border: 1px solid #e5e5e5;
  z-index: 210;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #b6c749;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  padding: 80px 40px 24px 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 2px;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #b6c749;
  background: rgba(255,255,255,0.06);
}
@media (max-width: 480px) {
  .mobile-nav {
    padding: 70px 12px 12px 16px;
    gap: 20px;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* =====================
   MAIN BUTTONS / CTA
   ===================== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 13px 30px;
  font-size: 1.10rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  background: #314e35;
  color: #fff;
  letter-spacing: 0.04em;
  border: none;
  box-shadow: 0 2px 12px rgba(49,78,53,0.10);
  transition: background 0.16s, box-shadow 0.17s, color 0.13s;
  margin-top: 10px;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #b6c749;
  color: #26313a;
  box-shadow: 0 6px 18px rgba(182, 199, 73, 0.12);
}

/* =====================
   CARDS, GRIDS & FLEXBOX
   ===================== */
.features-grid, .blog-preview, .blog-posts-grid, .tips-grid, .category-grid, .recipe-list, .team-section, .topic-list, .testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}

.feature, .blog-snippet, .blog-post-preview, .category-card, .recipe-card, .tip-card, .team-card, .topic-item, .faq-item {
  flex: 1 1 250px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.5px 7px 0 rgba(49,78,53,0.04);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  min-width: 240px;
  max-width: 410px;
  border: 1px solid #e8ecec;
  transition: box-shadow 0.18s, border 0.17s;
}
.feature:hover, .feature:focus, .blog-snippet:hover, .category-card:hover, .recipe-card:hover, .team-card:hover, .tip-card:hover, .topic-item:hover {
  box-shadow: 0 6px 22px 0 rgba(49,78,53,0.13);
  border: 1.5px solid #b6c749;
}
.feature img, .feature svg {
  width: 40px;
  height: 40px;
}
@media (max-width: 900px) {
  .features-grid, .blog-preview, .blog-posts-grid, .tips-grid, .category-grid, .recipe-list, .team-section, .topic-list, .testimonials {
    gap: 16px;
  }
  .feature, .blog-snippet, .blog-post-preview, .category-card, .recipe-card, .tip-card, .team-card, .topic-item, .faq-item {
    min-width: 160px;
    max-width: 100%;
    padding: 16px 12px;
  }
}

.recipe-highlight {
  flex: 1 1 290px;
  padding: 22px 18px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(182,199,73,0.05);
  border: 1px solid #e3e8ee;
  min-width: 220px;
  transition: box-shadow 0.2s;
}
.recipe-highlight:hover {
  box-shadow: 0 2px 10px #b6c74933;
  border-color: #b6c749;
}

@media (max-width: 900px) {
  .content-wrapper, .features-grid, .blog-preview, .blog-posts-grid, .tips-grid, .category-grid, .recipe-list, .team-section, .topic-list, .testimonials {
    flex-direction: column !important;
    gap: 14px !important;
  }
}

/* =====================
   TESTIMONIALS & REVIEWS
   ===================== */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  align-items: stretch;
}
.testimonial-card {
  background: #fff;
  border-left: 6px solid #b6c749;
  box-shadow: 0 1.5px 13px 0 rgba(49,78,53,0.06);
  padding: 20px 25px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  min-width: 230px;
  max-width: 380px;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #18243a;
  font-style: italic;
}
.testimonial-card span {
  color: #375869;
  font-size: 0.97rem;
}

@media (max-width: 900px) {
  .testimonial-card {
    padding: 14px 12px;
    max-width: 100%;
    min-width: unset;
  }
}

/* Guarantee testimonial text is always dark on light background */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  background: #fff;
  color: #18243a;
}

/* =====================
   FAQ STYLES
   ===================== */
.faqs, .faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #f8fafc;
  border-left: 4px solid #314e35;
  border-radius: 10px;
  padding: 15px 22px;
  margin-bottom: 20px;
  box-shadow: 0 .5px 2px #b6c74919;
}
.faq-item h3 {
  margin-bottom: 6px;
  color: #314e35;
}
.faq-item p {
  color: #26313a;
}

/* =====================
   FORMS & INPUTS
   ===================== */
input[type="text"] {
  width: 100%;
  max-width: 440px;
  padding: 12px 18px;
  border: 1.5px solid #b6c749;
  border-radius: 6px;
  font-size: 1rem;
  background: #f5f5f5;
  color: #26313a;
  margin-bottom: 12px;
  margin-top: 8px;
  transition: border 0.15s, box-shadow 0.18s;
  box-shadow: 0 1px 8px #e5e5e5;
}
input[type="text"]:focus {
  border: 2px solid #314e35;
  outline: none;
  background: #fff;
}

/* =====================
   LISTS & DETAILS
   ===================== */
.related-recipes {
  margin-top: 12px;
  background: #f8fafc;
  border-radius: 9px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid #e3e8ee;
}
.related-recipes h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.related-recipes a {
  color: #314e35;
  font-weight: 500;
  font-size: 1rem;
}

.contact-details p, .contact-info p {
  line-height: 1.6;
  margin-bottom: 4px;
  font-size: 1rem;
  color: #26313a;
  background-color: #ced5bb;
  display: flex;
  gap: 10px;
  align-items: center;
}
.contact-details img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

/* =====================
   SOCIAL LINKS
   ===================== */
.social-links {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
.social-links img {
  width: 32px;
  opacity: 0.74;
  filter: grayscale(40%);
  transition: filter 0.17s, opacity 0.16s;
}
.social-links img:hover {
  opacity: 1;
  filter: none;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: #26313a;
  color: #fff;
  font-size: 1rem;
  padding-top: 38px;
  padding-bottom: 26px;
}
footer .container {
  width: 100%;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #b6c749;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 2px 0;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
footer .contact-info {
  color: #e5e5e5;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
footer .social-links img {
  filter: none;
  opacity: 0.85;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/* =====================
   RESPONSIVE FLEXBOX LAYOUTS
   ===================== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.card {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1.5px 11px 0 rgba(49,78,53,0.09);
  padding: 18px 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =====================
   HOW-TO, GUIDES & DETAILS
   ===================== */
.how-to-guides {
  background: #f5faec;
  border-radius: 10px;
  padding: 13px 20px;
  margin-top: 20px;
  border: 1px solid #e9efda;
}
.how-to-guides h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.how-to-guides ul {
  margin: 0 0 0 1.2em;
  padding: 0;
  color: #26313a;
}
.how-to-guides li {
  margin-bottom: 5px;
}

/* =====================
   SUBMIT QUESTION BLOCK
   ===================== */
.submit-question {
  background: #e8efef;
  border-left: 3px solid #b6c749;
  border-radius: 8px;
  padding: 10px 19px;
  margin-top: 18px;
}
.submit-question p {
  color: #26313a;
  font-style: italic;
}

/* =====================
   FEATURED ARTICLE
   ===================== */
.featured-article {
  margin-top: 32px;
  margin-bottom: 0;
}
.featured-article a {
  color: #fff;
  background: #314e35;
  padding: 10px 25px;
  border-radius: 7px;
  font-size: 1rem;
  font-family: 'Montserrat';
  font-weight: 700;
  box-shadow: 0 2px 7px rgba(49,78,53,0.10);
  transition: background 0.15s, color 0.15s;
}
.featured-article a:hover, .featured-article a:focus {
  background: #b6c749;
  color: #26313a;
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 600;
  background: #26313a;
  color: #fff;
  padding: 28px 16px 18px 16px;
  box-shadow: 0 -2px 16px #314e3590;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  animation: cookie-fadein 0.7s cubic-bezier(.87,0,.13,1);
}
.cookie-banner p {
  color: #fff;
  margin-right: 22px;
  max-width: 620px;
  line-height: 1.6;
}
.cookie-btn {
  padding: 11px 18px;
  border-radius: 8px;
  border: none;
  margin-right: 10px;
  font-size: 1rem;
  font-family: 'Montserrat';
  font-weight: 600;
  background: #b6c749;
  color: #26313a;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-btn.secondary {
  background: #fff;
  color: #314e35;
  border: 1px solid #ced5bb;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #314e35;
  color: #fff;
  border: 1.5px solid #b6c749;
}

/* Hide on accept in JS with .hide class */
.cookie-banner.hide {
  display: none;
}

@keyframes cookie-fadein {
  from {opacity:0; transform: translateY(30px);}
  to   {opacity:1; transform: translateY(0);}
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 900;
  background: rgba(38,49,58,0.57);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fadein 0.3s;
}
.cookie-modal-overlay.hide {
  display: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  color: #314e35;
  box-shadow: 0 10px 36px 7px #26313a22;
  padding: 36px 30px 24px 30px;
  max-width: 560px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  font-size: 1rem;
  animation: cookie-pop-in 0.4s cubic-bezier(.87,0,.13,1);
}
@keyframes cookie-modal-fadein {
  from {opacity:0;}
  to   {opacity:1;}
}
@keyframes cookie-pop-in {
  from { opacity: 0; transform: scale(.94) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  font-size: 1.35rem;
  font-family: 'Montserrat';
  margin-bottom: 10px;
  color: #26313a;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 6px 0 3px 0;
}
.cookie-modal .category-label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #26313a;
}
.cookie-modal .category-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cookie-switch {
  width: 42px;
  height: 24px;
  background: #e7efdc;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-switch[data-checked='true'] {
  background: #b6c749;
}
.cookie-switch span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 2px 7px #26313a1A;
  transition: left 0.15s;
}
.cookie-switch[data-checked='true'] span {
  left: 20px;
}
/* Essential Cookies: switch always looks disabled */
.cookie-switch[data-disabled='true'] {
  background: #d4d6d8;
  cursor: not-allowed;
}
.cookie-switch[data-disabled='true'] span {
  background: #ededed;
}
.cookie-modal-close {
  position: absolute;
  right: 12px; top: 12px;
  width: 45px; height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #314e35;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 1.6rem;
  border: 1px solid #e5e5e5;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal-close:hover {
  background: #b6c749;
  color: #fff;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 10px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  margin-right: 0;
}

@media (max-width: 700px) {
  .cookie-modal {
    padding: 21px 7vw 20px 7vw;
    font-size: 0.97rem;
  }
}

/* =====================
   ACCESSIBILITY FOCUS
   ===================== */
a, button, .cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close, [tabindex] {
  outline: none;
}
a:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible, .cookie-modal-close:focus-visible {
  outline: 2.5px solid #b6c749;
  outline-offset: 1px;
  border-radius: 6px;
}

/* =====================
   Z-INDEX CONTROL
   ===================== */
header { z-index: 30; }
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 600; }
.cookie-modal-overlay { z-index: 900; }

/* =====================
   MISC ADJUSTMENTS
   ===================== */
::-webkit-scrollbar { width: 8px; background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #e1e5dd; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b6c749; }

/* ============
   RESPONSIVE
   ============ */
@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1.07rem; }
  .container { padding: 0 5px; }
  .cta-btn { min-width: 115px; font-size: 0.97rem; padding: 10px 18px; }
  footer { font-size: 0.95rem; padding-top: 24px; }
}

@media (max-width: 430px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 16px 3vw 10px 3vw;
  }
  .cookie-banner p {
    margin-right: 0;
    font-size: 0.98rem;
  }
  .cookie-btn { font-size: 0.97rem; }
  .cookie-modal {
    padding: 13px 3vw 12px 3vw;
  }
}
