/* =========================================================
   CSS RESET & BASE
   ========================================================= */
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 {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  background: #f8f5ec;
  color: #2b3e2c;
  font-family: 'Roboto', Serif, Georgia, Times, 'Times New Roman';
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   BRAND FONTS & COLOR VARIABLES (with fallbacks)
   ========================================================= */
:root {
  --primary: #30523a;
  --primary-dark: #253d2c;
  --secondary: #b6cf96;
  --secondary-light: #deedce;
  --accent: #f8f5ec;
  --neutral: #ffffff;
  --text: #2b3e2c;
  --subtle: #7B8D78;
  --shadow: rgba(30, 40, 30, 0.07);
  --border: #e2e2de;
  --danger: #96584a;
  --focus: #b6cf96;
  --brand-font-display: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  --brand-font-body: 'Roboto', Georgia, 'Times New Roman', Times, serif;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--brand-font-display);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; margin-bottom: 28px; }
h2 { font-size: 2rem; margin-bottom: 24px; }
h3 { font-size: 1.375rem; margin-bottom: 16px; }
h4 { font-size: 1.125rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.9rem; }

p, ul, ol {
  color: var(--text);
  font-family: var(--brand-font-body);
  font-size: 1.06rem;
  margin-bottom: 18px;
}
ul, ol {
  padding-left: 26px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
}
strong, b { font-weight: 600; }
a {
  color: var(--primary);
  text-decoration: underline;
  transition: color .2s;
}
a:hover, a:focus { color: var(--secondary); }

/* Text sections */
.text-section {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.text-section ul, .text-section ol {
  margin-bottom: 0;
}
.benefit-highlights {
  margin: 24px 0 0 0;
}
.benefit-highlights ul {
  list-style: disc outside;
}

/* =========================================================
   MAIN LAYOUT & SECTIONS
   ========================================================= */
.container {
  width: 100%;
  max-width: 1080px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

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

/* =========================================================
   HEADER/NAVIGATION
   ========================================================= */
header {
  background: var(--neutral);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px 0 var(--shadow);
  position: relative;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  padding: 10px 0;
  margin-right: 20px;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: auto;
}
.main-nav a {
  font-family: var(--brand-font-display);
  font-size: 1.07rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 7px 3px;
  transition: color .2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
}

.cta-btn {
  font-family: var(--brand-font-display);
  font-size: 1.03rem;
  background: var(--primary);
  color: var(--neutral);
  border: none;
  padding: 12px 30px;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 2px 16px 0 var(--shadow);
  margin-left: 18px;
  transition: background .19s, box-shadow .23s, color 0.18s;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  outline: 0;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 6px 20px 0 var(--shadow);
}

.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--neutral);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.52rem;
  align-items: center;
  justify-content: center;
  margin-left: 18px;
  cursor: pointer;
  transition: background .18s;
  z-index: 22;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* =========================================================
   MOBILE MENU
   ========================================================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(48,82,58,0.97);
  color: var(--accent);
  z-index: 2100;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.5,1.6,.68,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  width: 100vw;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--neutral);
  font-size: 2.1rem;
  padding: 30px 28px 10px 20px;
  align-self: flex-end;
  cursor: pointer;
  transition: color .15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 90vw;
  margin-left: 24px;
}
.mobile-nav a {
  color: var(--neutral);
  font-size: 1.24rem;
  font-family: var(--brand-font-display);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 0;
  transition: color .18s;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--secondary);
}

/* =========================================================
   HERO SECTIONS
   ========================================================= */
section:first-of-type {
  background: var(--neutral);
  box-shadow: 0 12px 38px 0 var(--shadow);
  border-bottom: 1px solid var(--border);
  margin-bottom: 50px;
}

/* =========================================================
   FLEX SECTION PATTERNS (MANDATORY)
   ========================================================= */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--neutral);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 var(--shadow);
  overflow: hidden;
}
.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: var(--neutral);
  border-radius: 24px;
  box-shadow: 0 2px 18px 0 var(--shadow);
  border: 1px solid var(--secondary-light);
  margin-bottom: 20px;
  font-size: 1.09rem;
  color: var(--primary-dark);
  transition: box-shadow .18s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 34px 0 var(--shadow);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--neutral);
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 var(--shadow);
  border: 1px solid var(--border);
}

/* Special: features-grid for home/recipes/etc */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  width: 100%;
}
.feature-box {
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
  background: var(--neutral);
  border-radius: 18px;
  border: 1px solid var(--secondary-light);
  box-shadow: 0 2px 8px 0 var(--shadow);
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow .17s, border .15s;
}
.feature-box img {
  height: 44px;
  width: 44px;
  margin-bottom: 8px;
}
.feature-box:hover, .feature-box:focus-within {
  box-shadow: 0 12px 32px 0 var(--shadow);
  border-color: var(--primary);
}

/* Blog teaser cards */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-teaser {
  background: var(--neutral);
  border-radius: 18px;
  border: 1px solid var(--secondary-light);
  box-shadow: 0 2px 12px 0 var(--shadow);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  max-width: 340px;
  min-width: 220px;
  transition: box-shadow .16s, border .15s;
}
.blog-teaser:hover {
  box-shadow: 0 10px 32px 0 var(--shadow);
  border-color: var(--primary);
}
.read-more {
  color: var(--primary);
  background: transparent;
  text-decoration: underline;
  font-weight: 500;
  font-size: 1rem;
  margin-top: 6px;
  cursor: pointer;
  transition: color .16s;
}
.read-more:hover, .read-more:focus {
  color: var(--secondary);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.filter-bar a {
  color: var(--primary);
  font-family: var(--brand-font-display);
  background: var(--secondary-light);
  border-radius: 12px;
  padding: 4px 16px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  margin-right: 3px;
  transition: background .12s, color .18s;
}
.filter-bar a:hover, .filter-bar a.active {
  background: var(--secondary);
  color: var(--primary-dark);
}

/* Testimonials */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-meta {
  font-size: .98rem;
  color: var(--secondary);
  font-family: var(--brand-font-display);
  font-style: italic;
  margin-top: 8px;
}

/* Content-specific styles */
.contact-details ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}
.contact-details ul li {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
  font-size: 1.04rem;
}
.contact-details img {
  height: 22px;
  width: 22px;
  opacity: 0.7;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--primary);
  color: var(--neutral);
  font-family: var(--brand-font-body);
  padding: 49px 0 30px 0;
  margin-top: 60px;
}
footer p {
  color: white;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
}
.footer-logo {
  min-width: 70px;
  display: flex;
  align-items: flex-start;
}
.footer-logo img {
  height: 54px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--neutral);
  text-decoration: none;
  font-size: 1rem;
  transition: color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--accent);
  min-width: 220px;
}
.footer-contact a {
  color: var(--secondary);
  text-decoration: underline;
}

/* =========================================================
   BUTTONS
   ========================================================= */
button, .btn {
  font-family: var(--brand-font-display);
  font-size: 1.03rem;
  background: var(--primary);
  color: var(--neutral);
  border: none;
  padding: 12px 30px;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 2px 16px 0 var(--shadow);
  transition: background .18s, color .16s, box-shadow .19s;
  font-weight: 600;
  letter-spacing: 0.01em;
  outline: 0;
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 6px 20px 0 var(--shadow);
}

input, textarea, select {
  font-family: var(--brand-font-body);
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fbfaf4;
  padding: 11px 14px;
  color: var(--text);
  box-shadow: 0 1px 2px 0 var(--shadow);
  outline: 0;
  transition: border .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--secondary);
  box-shadow: 0 1px 8px 0 var(--shadow);
}

/* =========================================================
   COOKIE CONSENT BANNER + MODAL
   ========================================================= */
#cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 24px;
  background: var(--neutral);
  color: var(--primary);
  border-radius: 24px;
  border: 1.5px solid var(--secondary-light);
  box-shadow: 0 4px 32px 0 var(--shadow);
  z-index: 3000;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(42px);
  transition: opacity .2s .10s, transform .23s .08s;
}
#cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
#cookie-banner .cookie-banner-title {
  font-family: var(--brand-font-display);
  font-size: 1.19rem;
  font-weight: 600;
  margin-bottom: 7px;
}
#cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 15px;
}
#cookie-banner button {
  padding: 10px 22px;
  font-size: 1rem;
}
#cookie-banner .btn-accept {
  background: var(--primary);
  color: var(--neutral);
}
#cookie-banner .btn-accept:hover {
  background: var(--secondary);
  color: var(--primary);
}
#cookie-banner .btn-reject {
  background: var(--neutral);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
#cookie-banner .btn-reject:hover {
  background: var(--secondary-light);
  color: var(--primary-dark);
}
#cookie-banner .btn-cookie-settings {
  background: var(--secondary-light);
  color: var(--primary);
}
#cookie-banner .btn-cookie-settings:hover {
  background: var(--secondary);
  color: var(--primary-dark);
}

#cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(48,82,58,0.62);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
#cookie-modal.show { opacity: 1; pointer-events: auto; }
#cookie-modal .cookie-modal-content {
  background: var(--neutral);
  color: var(--primary);
  border-radius: 30px;
  padding: 32px 24px 22px 24px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 0 32px 0 var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}
#cookie-modal .cookie-modal-title {
  font-family: var(--brand-font-display);
  font-size: 1.28rem;
  margin-bottom: 5px;
}
#cookie-modal .close-cookie-modal {
  background: transparent;
  color: var(--primary);
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 16px;
  right: 19px;
  cursor: pointer;
  transition: color .14s;
}
#cookie-modal .close-cookie-modal:hover {
  color: var(--danger);
}
.cookie-settings-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-settings-list label {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-settings-list input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px; height: 20px;
}
.cookie-category-essential {
  font-weight: 600;
  color: var(--primary-dark);
}

/* =========================================================
   UTILITIES, SPACING, MARGIN, GAPS
   ========================================================= */
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.gap-30 { gap: 30px !important; }
.text-center { text-align: center !important; }

/* =========================================================
   RESPONSIVE DESIGN (MOBILE-FIRST)
   ========================================================= */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .features-grid, .testimonial-list, .blog-list, .card-container, .content-grid {
    gap: 16px;
  }
  .footer-contact {
    min-width: 180px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.08rem; }
  h2 { font-size: 1.41rem; }
  h3 { font-size: 1.10rem; }
  
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding: 0 12px;
  }
  .footer-logo {
    margin-bottom: 20px;
  }
  .features-grid,
  .testimonial-list,
  .blog-list,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    padding: 28px 8px;
  }
  .feature-box,
  .blog-teaser {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}
@media (max-width: 540px) {
  .container {
    padding: 0 5px;
  }
  #cookie-banner {
    left: 6px; right: 6px;
    padding: 14px 10px;
    max-width: 97vw;
    font-size: .94rem;
  }
}

/* =========================================================
   ANIMATIONS, FOCUS VISIBLE, MICRO-INTERACTIONS
   ========================================================= */
button, .cta-btn, .main-nav a, .footer-nav a, .mobile-nav a, .read-more, .filter-bar a {
  outline: none;
}
button:focus-visible, .cta-btn:focus-visible,
.main-nav a:focus-visible, .footer-nav a:focus-visible,
.mobile-nav a:focus-visible, .read-more:focus-visible,
.filter-bar a:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
}

a, button, .cta-btn, .feature-box, .blog-teaser, .testimonial-card {
  transition: box-shadow .18s, background .18s, border .17s, color .16s;
}

.testimonial-card {
  transition: box-shadow .14s, border .18s;
}

/* Subtle hover for cards */
.feature-box:hover, .feature-box:focus-within, .blog-teaser:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px 0 var(--shadow);
}

/* Smooth mobile menu */
.mobile-menu,
#cookie-banner,
#cookie-modal {
  will-change: transform, opacity;
}

/* Prevent overlap issues */
.section, .feature-box, .testimonial-card, .blog-teaser, .card {
  margin-bottom: 20px;
}

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