/* --------------------------------------------------
   RESET & BASELINE NORMALIZE for ALL BROWSERS
--------------------------------------------------- */
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.6;
  background: #FCF7F2;
  color: #2E392F;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
a {
  color: #22577A;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #32875B;
}
ul, ol {
  list-style-position: outside;
  margin-left: 1.4em;
  margin-bottom: 1em;
}
img {
  max-width: 100%;
  height: auto;
  border: none;
  display: block;
}
input, button, select, textarea {
  font-family: inherit;
  border-radius: 6px;
  border: 1px solid #C5C3B0;
  outline: none;
}
input[type="checkbox"] {
  accent-color: #32875B;
}

/* FONTS - DISPLAY & BODY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #22577A;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 1.75rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; color: #32875B; }
h4, h5, h6 { font-size: 1.1rem; color: #49624B; }
p, li, label { font-size: 1rem; font-family: 'Open Sans', Arial, sans-serif;}
strong, b { font-weight: 700; }
cite { font-style: normal; font-weight: 600; color: #568259; }

/* RESPONSIVE TYPOGRAPHY */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
}

/* --------------------------------------------------
   LAYOUT CONTAINERS
--------------------------------------------------- */
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  justify-content: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 28px;
  background: linear-gradient(110deg, #FEF8EA 80%, #F4FFE7 100%);
  box-shadow: 0 2px 18px 0 rgba(85,100,85,0.07);
}

@media (max-width: 768px) {
  .section {
    padding: 26px 8px;
    margin-bottom: 40px;
    border-radius: 20px;
  }
}

/* FLEX UTILITIES for Content/Alignment */
.card-container,
.card-grid,
.recipe-grid,
.blog-grid,
.feature-list,
.popular-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}

.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) {
  .text-image-section { flex-direction: column; gap: 20px; }
  .card-container, .card-grid, .recipe-grid, .blog-grid, .feature-list,
  .popular-categories { flex-direction: column; gap: 20px; }
}

/* --------------------------------------------------
   HEADER & NAVIGATION
--------------------------------------------------- */
header {
  background: linear-gradient(120deg, #EEF8EA 90%, #E9F4EA 100%);
  border-bottom: 2px solid #F6DEB4;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px 16px;
}
header img {
  height: 45px;
  width: auto;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 1rem;
  color: #254751;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .22s, color .18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #ecf8f0;
  color: #32875B;
}
.cta-btn {
  background: #32875B;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 12px 0 rgba(115,142,115,0.13);
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.2s, transform 0.16s, box-shadow 0.2s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #22577A;
  color: #FFF;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 24px 0 rgba(50,135,91,0.20);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 970px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 22px; right: 22px;
    font-size: 2rem;
    color: #32875B;
    background: none;
    border: none;
    z-index: 101;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 50%;
    transition: background 0.16s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #CDEAC0;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #FCF8F3;
  box-shadow: 0 0 0 100vmax rgba(70,100,80,.13);
  z-index: 1300;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.75,.1,.14,.98);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 36px 28px 18px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #254751;
  cursor: pointer;
  z-index: 1320;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top: 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #22577A;
  padding: 14px 0;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E7F4EA;
  color: #32875B;
}

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

/* --------------------------------------------------
   FOOTER
--------------------------------------------------- */
footer {
  background: linear-gradient(107deg, #F1E6D7 80%, #E8F2E2 100%);
  color: #3C362A;
  margin-top: 80px;
  font-size: 0.99rem;
}
footer .container {
  padding: 38px 18px 25px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #215744;
  font-weight: 500;
  margin-bottom: 0;
  font-size: 1rem;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F6AE2D;
}
.contact-footer {
  color: #23724B;
  margin-top: 9px;
}
footer p {
  margin-top: 24px;
  font-size: 0.87rem;
  color: #7F7D6B;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .footer-nav, .contact-footer {
    margin-bottom: 16px;
  }
}
footer img {
  margin-bottom: 8px;
  height: 38px;
}
.contact-footer img {
  display: inline-block;
  margin-right: 6px;
  width: 20px; height: 20px;
  vertical-align: middle;
}

/* --------------------------------------------------
   HOMEPAGE/COMPONENTS/NATURE ORGANIC VISUALS
--------------------------------------------------- */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 22px 0 8px 0;
}
.feature-list li {
  background: #F6FFF2;
  border-radius: 20px;
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 1px 10px 0 rgba(50,135,91,0.06);
  min-width: 200px;
  max-width: 300px;
  font-size: 1.06rem;
  color: #24523C;
}
.feature-list img {
  width: 41px;
  margin-bottom: 3px;
}

.popular-categories {
  gap: 28px;
}
.popular-categories li {
  background: #FFF9F1;
  border-radius: 18px;
  box-shadow: 0 0.5px 7px 0 rgba(200,170,60,0.07);
  padding: 20px 18px;
  min-width: 210px;
  max-width: 310px;
  margin-bottom: 20px;
}
.popular-categories h3 {
  color: #22577A;
  margin-bottom: 7px;
}
.popular-categories a {
  font-weight: 600;
  color: #32875B;
  margin-top: 8px;
  display: inline-block;
  transition: color .14s;
}
.popular-categories a:hover {
  color: #F6AE2D;
}

@media (max-width: 768px) {
  .feature-list, .popular-categories {
    flex-direction: column;
    gap: 18px;
  }
}

/* --------------------------------------------------
   CARDS & GRIDS
--------------------------------------------------- */
.card-container, .card-grid, .recipe-grid, .blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F8FFE8;
  border-radius: 20px;
  box-shadow: 0 1.5px 11px 0 rgba(80,115,80,0.08);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
}
.recipe-card, .blog-preview {
  background: #F9FAF6;
  border-radius: 18px;
  min-width: 215px;
  max-width: 310px;
  box-shadow: 0 0.5px 6px 0 rgba(60,100,60,0.072);
  padding: 22px 17px 18px 17px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.19s, transform 0.19s;
}
.recipe-card:hover, .recipe-card:focus, .blog-preview:hover, .blog-preview:focus {
  box-shadow: 0 7px 24px 0 rgba(110,180,90,0.13);
  transform: translateY(-4px) scale(1.03);
}
.recipe-card h3, .blog-preview h3 {
  margin-bottom: 4px;
  color: #32875B;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.tag {
  display: inline-block;
  background: #E8FFD5;
  color: #32875B;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 12px;
  padding: 3px 14px;
  margin-top: 10px;
  box-shadow: 0 1px 3px #EDE9C7;
}

@media (max-width: 768px) {
  .card-container, .card-grid, .recipe-grid, .blog-grid { flex-direction: column; gap: 18px; }
  .recipe-card, .blog-preview { min-width: unset; max-width: unset;}
}

/* SPECIALS-LIST, AUTHOR SPOTLIGHT & TAG CLOUD */
.specials-list {
  margin-top: 24px;
  margin-bottom: 6px;
}
.author-spotlight {
  background: #E8F7E4;
  border-radius: 18px;
  padding: 13px 19px;
  margin-bottom: 10px;
  box-shadow: 0 1.5px 7px 0 rgba(80,115,80,0.07);
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 15px;
}
.tag-cloud span {
  background: #F6FFF2;
  color: #498B43;
  border-radius: 14px 24px 20px 10px/20px 16px 18px 24px;
  padding: 6px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  box-shadow: 0 1.5px 4px 0 rgba(88,166,91,.09);
  margin-bottom: 7px;
}

/* --------------------------------------------------
   TESTIMONIALS & STAR-RATING
--------------------------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FCFFFB;
  border-radius: 18px;
  box-shadow: 0 1.5px 10px 0 rgba(60,100,60,0.06);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #22577A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.testimonial-card cite {
  font-size: 1rem;
  color: #32875B;
  margin-left: 8px;
}
.star-rating {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 21px;
}
.star-rating img {
  height: 21px;
  width: 21px;
}
@media (max-width: 600px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; }
  .star-rating { margin-left: 0; }
}

/* --------------------------------------------------
   FORMS, FILTERS, SORTERS
--------------------------------------------------- */
input[type="text"] {
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #B1CCAB;
  margin-bottom: 12px;
  background: #FFF;
  color: #395948;
  width: 100%;
  max-width: 370px;
  box-shadow: 0 0.5px 2px 0 #E2F7D1;
  transition: border 0.18s;
}
input[type="text"]:focus {
  border: 1.5px solid #32875B;
}
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 7px;
  margin-bottom: 20px;
}
.category-filter label {
  font-size: 0.98rem;
  color: #42714F;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
}
.category-filter input { margin-right: 5px; }
.sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.sort-bar label {
  color: #7B6C35;
  font-weight: 600;
  font-size: 1rem;
}
.sort-bar select {
  padding: 5px 12px;
  background: #F8FFF2;
  border-radius: 8px;
  border: 1px solid #CEDEBD;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #4E6540;
  font-size: 1rem;
}
@media (max-width: 560px) {
  .category-filter, .sort-bar { flex-direction: column; gap: 8px; }
}

/* --------------------------------------------------
   TEXT & TYPOGRAPHY BLOCKS
--------------------------------------------------- */
.text-section {
  background: #FFF6E8;
  border-radius: 18px 28px 18px 28px/22px 16px 20px 26px;
  padding: 18px 20px 14px 24px;
  margin: 18px 0 0 0;
  box-shadow: 0 0.5px 4px 0 rgba(240,180,60,0.07);
}
.newsletter-section {
  background: #EDF7EE;
  border-radius: 18px;
  padding: 17px 22px;
  box-shadow: 0 1px 6px 0 rgba(80,150,90,0.06);
  margin-bottom: 20px;
}

.thank-you-message {
  background: #F9FFF2;
  border-radius: 18px;
  box-shadow: 0 3px 16px 0 rgba(98,167,80,0.09);
  padding: 22px 25px;
  margin-top: 16px;
}

/* --------------------------------------------------
   SPACING & FLEX LAYOUTS (PATTERNS REQUIRED)
--------------------------------------------------- */
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --------------------------------------------------
   BUTTON/INTERACTIVE
--------------------------------------------------- */
button, .cta-btn, .mobile-menu-close {
  outline: none;
  transition: background .15s, color .16s, box-shadow .16s, transform .12s;
}
button:active, .cta-btn:active {
  transform: scale(0.98);
}
button:focus, .cta-btn:focus {
  box-shadow: 0 0 0 3px #B6ECC7;
}

/* --------------------------------------------------
   COOKIE CONSENT BANNER
--------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #F7FFF6;
  color: #254751;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -2px 22px 0 rgba(60,170,90,0.13);
  z-index: 5000;
  padding: 26px 12px 18px 12px;
  font-size: 1.01rem;
  border-radius: 22px 22px 0 0 / 22px 22px 0 0;
  animation: fadeInUpCookie 0.38s cubic-bezier(.97,.01,.53,.98);
}
@keyframes fadeInUpCookie {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-btns {
  display: flex;
  gap: 15px;
  margin-top: 6px;
}
.cookie-banner-btn, .cookie-settings-btn {
  border: none;
  border-radius: 19px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 25px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .16s;
}
.cookie-banner-btn.accept {
  background: #32875B;
  color: #FFF;
  box-shadow: 0 2px 8px 0 rgba(80,150,90,0.10);
}
.cookie-banner-btn.accept:hover, .cookie-banner-btn.accept:focus {
  background: #22577A;
  color: #FFF;
}
.cookie-banner-btn.reject {
  background: #F6AE2D;
  color: #254751;
  box-shadow: 0 2px 8px 0 rgba(200,170,60,0.09);
}
.cookie-banner-btn.reject:hover, .cookie-banner-btn.reject:focus {
  background: #22577A;
  color: #FFF;
}
.cookie-settings-btn {
  background: #F2FDE7;
  color: #2E392F;
  border: 1px solid #CDEAC0;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #E8FFD5;
}
 /* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  max-width: 92vw;
  width: 390px;
  background: #F7FFF6;
  color: #254751;
  border-radius: 24px;
  box-shadow: 0 10px 50px 0 rgba(30,70,40,0.21);
  z-index: 5050;
  transform: translate(-50%, -66%) scale(0.97);
  padding: 32px 32px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInUpCookieModal .32s cubic-bezier(.97,.01,.53,.98);
}
@keyframes fadeInUpCookieModal {
  from { opacity: 0; transform: translate(-50%, -15%) scale(.8); }
  to { opacity: 1; transform: translate(-50%, -66%) scale(.97); }
}
.cookie-modal h2 { color: #32875B; font-size: 1.24rem; }
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 12px;
}
.cookie-modal-category label {
  font-size: 1.04rem;
  color: #2E392F;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal input[type=checkbox] {
  width: 20px; height: 20px;
}
.cookie-modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  align-items: center;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #22577A;
  font-size: 1.7rem;
  position: absolute;
  top: 12px; right: 17px;
  cursor: pointer;
  padding: 5px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #32875B; }

@media (max-width: 560px) {
  .cookie-modal { padding: 19px 7px 19px 12px; width: 99vw; max-width: 99vw;}
}

/* Overlay for modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(78,95,79,0.22);
  z-index: 5040;
  animation: fadeInCookieOverlay .19s cubic-bezier(.77,.27,.12,.92);
}
@keyframes fadeInCookieOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------
   ORGANIC SHAPES (subtle)
--------------------------------------------------- */
.section, .newsletter-section, .text-section, .card, .recipe-card, .testimonial-card, .popular-categories li,
.author-spotlight, .blog-preview, .thank-you-message {
  /* Organic, nature-inspired border radius */
  border-radius: 22px 28px 16px 20px / 24px 18px 26px 20px;
}

/* --------------------------------------------------
   SELECTION & TRANSITIONS
--------------------------------------------------- */
::selection {
  background: #CDF7B9;
  color: #22577A;
}

* {
  transition: background .22s, color .18s, box-shadow .19s, border-color .19s;
}

/* --------------------------------------------------
   MISC & UTILITY CLASSES
--------------------------------------------------- */
.gap-20 { gap: 20px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }

/* Hide visually
   For accessiblity (e.g. cookie preferences toggle hidden input)
*/
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* --------------------------------------------------
   COLORS - BRAND/NATURE ORGANIC PALETTE
--------------------------------------------------- */
:root {
  --primary: #22577A;
  --secondary: #F6AE2D;
  --accent: #FAFAFA;
  --earth-green: #32875B;
  --earth-brown: #B9AA89;
  --earth-beige: #FCF7F2;
  --soft-leaf: #E8FFD5;
  --nature-cream: #FFF9F1;
  --nature-shadow: #E9E2BE;
}

/* --------------------------------------------------
   SCROLLBAR - nature touch
--------------------------------------------------- */
body::-webkit-scrollbar {
  background: #EAFDEE;
  width: 12px;
}
body::-webkit-scrollbar-thumb {
  background: #D3EEDB;
  border-radius: 11px;
}

/* --------------------------------------------------
   MEDIA QUERIES: FINE TUNE LAYOUT
--------------------------------------------------- */
@media (max-width: 768px) {
  .container { padding-left: 3.5vw; padding-right: 3.5vw; }
  .content-wrapper { gap: 17px; }
  footer { margin-top: 36px; }
}
