/* ========================================================
   CSS RESET & NORMALIZE
======================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #f8faf5;
  color: #213421;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #14506B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #227C9D;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
}
button {
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
ul, ol {
  padding-left: 1.5em;
}

/* ========================================================
   BRAND COLORS & TYPOGRAPHY
======================================================== */
:root {
  --primary: #316B3E;
  --secondary: #F2E7CA;
  --accent: #227C9D;
  --white: #fff;
  --dark: #213421;
  --light-bg: #f8faf5;
  --box-bg: #ffffff;
  --shadow: 0 3px 16px 0 rgba(49, 107, 62, 0.08), 0 1.5px 16px 0 rgba(34, 124, 157, 0.08);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.7rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  text-shadow: 1.5px 2px 0px #F2E7CA;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-shadow: 1.5px 1.5px 0px #F2E7CA;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1rem;
}
p, li, label, input, select {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
p {
  margin-bottom: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ====== CREATIVE ARTISTIC ACCENTS ====== */
.tag {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.95rem;
  border-radius: 22px;
  padding: 3px 14px 4px 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 4px 6px 0 0;
  margin-bottom: 6px;
  border: 1px dashed var(--primary);
  /* creative hand-drawn feel */
  box-shadow: 1px 2px 0 rgba(34,124,157,0.08);
  transition: background 0.25s, color 0.25s;
}
.tag:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ========================================================
   CONTAINER & LAYOUTS
======================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
/* Always use flex for primary wrappers */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: flex-start;
}

.features-grid, .recipes-preview-grid, .recipes-grid, .blog-list-grid, .calendar-overview, .about-team {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid, .recipes-preview-grid, .recipes-grid, .blog-list-grid, .calendar-overview {
  justify-content: space-between;
}
.about-team {
  gap: 32px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  flex: 1 1 240px;
  background: var(--box-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  border-left: 6px solid var(--primary);
  position: relative;
  transition: box-shadow 0.25s, transform 0.18s;
}
.feature-item:hover {
  box-shadow: 0 8px 28px 0 rgba(34,124,157,0.14);
  transform: translateY(-5px) scale(1.02) rotate(-1deg) skewX(-1deg);
  border-left-color: var(--accent);
}
.feature-item img {
  width: 42px;
  height: 42px;
}

.recipe-card, .blog-card, .event-card {
  background: var(--box-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 30px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.19s;
  position: relative;
  min-width: 220px;
  flex: 1 1 280px;
  border-bottom: 5px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recipe-card:hover, .blog-card:hover, .event-card:hover {
  box-shadow: 0 10px 36px 0 rgba(49,107,62,0.13);
  transform: translateY(-6px) scale(1.015) rotate(1deg) skewX(1deg);
  border-bottom-color: var(--primary);
}

.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  margin: 24px 0 10px 0;
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: 0 3px 18px 0 rgba(49,107,62,0.08);
  color: var(--dark);
  border-left: 6px solid var(--accent);
  font-style: italic;
  font-size: 1.07rem;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
}
.testimonial-card span {
  font-weight: 600;
  color: var(--primary);
  font-style: normal;
  align-self: flex-end;
  font-size: 0.98rem;
  padding-top: 8px;
}

/* Contact Row */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}
.contact-row > div {
  flex: 1 1 250px;
  min-width: 240px;
}
.contact-row img {
  max-width: 54px;
  margin-bottom: 8px;
  filter: drop-shadow(0 1.5px 5px rgba(49,107,62,0.10));
}

/* Flex helper for possible user content */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.flex-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ========================================================
   NAVIGATION & HEADER
======================================================== */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 3px 16px 0 rgba(49, 107, 62, 0.06);
  padding: 10px 0px 10px 0px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
header > img {
  width: 145px;
  min-width: 80px;
  margin-right: 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--primary);
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 7px 12px;
  transition: background 0.18s, color 0.2s;
  background: transparent;
  margin-right: 2px;
}
header nav a:hover, header nav a.active {
  background: var(--secondary);
  color: var(--accent);
}

.cta-btn {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent) 80%, var(--primary) 100%);
  color: var(--white) !important;
  border: none;
  border-radius: 32px;
  padding: 11px 30px 12px 30px;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 16px 0 rgba(34,124,157,0.08);
  margin-left: 24px;
  transition: background 0.14s, transform 0.12s, box-shadow 0.18s;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--primary) 50%, var(--accent) 100%);
  color: var(--secondary) !important;
  transform: scale(1.037) translateY(-2px);
  box-shadow: 0 8px 34px 2px rgba(49,107,62,0.13);
}

.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 41;
  margin-left: auto;
  background: var(--accent);
  color: var(--white);
  font-size: 2rem;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
}

/* =======================================================
   MOBILE BURGER MENU
======================================================== */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(49, 107, 62, 0.98);
  color: var(--white);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.7,0,0.3,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2.2rem;
  color: var(--white);
  background: none;
  border: none;
  z-index: 102;
  border-radius: 10px;
  padding: 0 8px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 84px 38px 22px 38px;
  width: 320px;
  max-width: 96vw;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--secondary);
  padding: 13px 8px 10px 12px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover {
  background: var(--accent);
  color: var(--white);
}

/* Main nav + burger menu responsive */
@media (max-width: 960px) {
  header nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (min-width: 961px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========================================================
   FOOTER
======================================================== */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 40px 0 30px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-start;
}
.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 22px;
  margin-bottom: 8px;
}
.footer-navigation a {
  color: var(--secondary);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 7px;
  padding: 5px 12px;
  opacity: 0.92;
  transition: background 0.16s, color 0.15s;
}
.footer-navigation a:hover, .footer-navigation a:focus {  background: var(--secondary); color: var(--primary);}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.footer-contact img {
  width: 68px;
  margin-bottom: 4px;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: var(--secondary);
  border: none;
  transition: background 0.15s;
}
.footer-social a img {
  width: 22px;
  height: 22px;
  filter: none;
}
.footer-social a:hover {
  background: var(--accent);
}
.footer-legal {
  font-size: 0.94rem;
  opacity: 0.93;
  margin-top: 7px;
}
.footer-legal a {
  color: var(--secondary);
  text-decoration: underline dotted;
  margin: 0 2px;
}
.footer-legal a:hover {
  color: var(--accent);
}

/* ========================================================
   FILTERS, FORMS, MISC UI ELEMENTS
======================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px 28px;
  margin-bottom: 5px;
  background: var(--secondary);
  padding: 14px 18px 16px 18px;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(49,107,62,0.05);
}
.filters label {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 1.03rem;
  color: var(--primary);
  font-weight: 500;
}
.filters input[type='text'], .filters select {
  background: var(--white);
  border: 1.8px solid var(--primary);
  border-radius: 7px;
  padding: 6px 12px 7px 10px;
  margin-left: 7px;
  font-size: 1rem;
  margin-top: 3px;
  width: 130px;
  transition: border-color 0.16s;
}
.filters input[type='text']:focus, .filters select:focus {
  border-color: var(--accent);
}
.tag-list {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ========== TABLES (for legal pages if any) ========== */
table {
  border-collapse: collapse;
  min-width: 320px;
  width: 100%;
  margin-bottom: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}
th, td {
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  font-size: 1rem;
}
th {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 600;
}


/* ========================================================
   COOKIE CONSENT BANNER & MODAL
======================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--secondary);
  color: var(--dark);
  box-shadow: 0 -2px 18px 0 rgba(34,124,157,0.16);
  border-top: 3px solid var(--primary);
  z-index: 110;
  padding: 24px 8px 22px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: bannerSlideUp 0.8s cubic-bezier(0.68,0,0.29,1);
}
@keyframes bannerSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner h4 {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 1.09rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-banner-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cookie-btn {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.01rem;
  margin: 0 4px;
  background: var(--accent);
  color: var(--white);
  transition: background 0.18s, color 0.12s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--primary);
}
.cookie-btn.reject {
  background: #b94747;
}
.cookie-btn.settings {
  background: var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.12);
  box-shadow: 0 3px 12px 0 rgba(34,124,157,0.14);
}

/* Cookie preferences modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 120;
  background: rgba(49,107,62,0.94);
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.38s 0.02s cubic-bezier(0.7,0,0.3,1);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal-content {
  background: var(--secondary);
  color: var(--dark);
  padding: 38px 24px 30px 26px;
  border-radius: 20px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 5px 40px 0 rgba(34,124,157,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalScaleIn 0.34s cubic-bezier(0.7,0,0.29,1);
}
@keyframes modalScaleIn {
  from { transform: scale(0.92); opacity: 0.66; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 17px;
  background: none;
  font-size: 1.8rem;
  color: var(--primary);
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--primary);
  color: var(--white);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 7px 0;
}
.cookie-category input[type='checkbox'] {
  width: 24px;
  height: 24px;
  accent-color: var(--primary);
  border-radius: 7px;
  outline: 2px solid var(--accent);
}
.cookie-category .desc {
  font-size: 0.97rem;
  color: var(--dark);
}

/* Cookie modal categories */
.cookie-category.essential input {
  accent-color: #426a4a;
}
.cookie-category.essential .desc {
  color: #426a4a;
  font-weight: 600;
}

/* ========================================================
   RESPONSIVE DESIGN: MOBILE-FIRST
======================================================== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  .section { padding: 22px 8px; margin-bottom: 34px; }
  .container { padding: 0 7px; }
  .content-wrapper { gap: 18px; }
  .features-grid, .recipes-preview-grid, .recipes-grid, .blog-list-grid, .calendar-overview {
    flex-direction: column;
    gap: 18px;
  }
  .about-team {
    flex-direction: column;
    gap: 18px;
  }
  .contact-row {
    flex-direction: column;
    gap: 14px;
  }
  .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    padding: 16px 10px;
    font-size: 0.97rem;
  }
  header {
    flex-direction: row;
    padding: 7px 0 7px 0;
  }
  .footer-navigation, .footer-social {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .footer-contact img {
    width: 54px;
  }
  .footer-legal { font-size: 0.91rem; }
}

/* Ensure no card/content overlapping and spacing everywhere */
.section, .feature-item, .recipe-card, .blog-card, .event-card, .testimonial-card,
.card, .card-container > *, .calendar-overview > *, .footer-navigation > *, .footer-social > * {
  margin-bottom: 20px;
}

/* Ensure no absolute positioning for content cards (only for decorative, here we none) */

/* ========================================================
   ADDITIONAL MICRO-INTERACTIONS & EFFECTS
======================================================== */
.cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close {
  transition: background 0.18s, color 0.18s, transform 0.19s, box-shadow 0.18s;
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.96);
}

.recipe-card::before, .blog-card::before, .event-card::before {
  content: '';
  display: block;
  position: absolute;
  top: -8px; left: -8px;
  width: 34px; height: 34px;
  background: var(--secondary);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
  /* creates a subtle artistic floating circle upper corner */
}
.recipe-card:hover::before, .blog-card:hover::before, .event-card:hover::before {
  background: var(--accent);
  opacity: 0.21;
}

/* Artistic hand-drawn underline for h2, h1 */
h1, h2 {
  position: relative;
}
h1::after, h2::after {
  content: '';
  display: block;
  height: 4px;
  width: 55px;
  background: var(--accent);
  border-radius: 10px 5px 20px 8px;
  margin-top: 8px;
  opacity: 0.33;
}

/* =========== SCROLLBAR artistic style ============ */
::-webkit-scrollbar {
  width: 10px;
  background: var(--secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
}

/* =========== FOCUS STATES FOR a, button =========== */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Accessibility: high contrast for reviews/testimonials */
.testimonial-card {
  color: #1e2319;
  background: #F2E7CA;
}

/* ========================================================
   PRINT MINIMAL STYLE (no bg)
======================================================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #222 !important;
  }
  .container, .section {
    padding: 0 !important;
    margin: 0 !important;
  }
}
