/* =====================
   CSS RESET & NORMALIZE
   ===================== */

/* Box sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Remove default margins */
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,
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;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #f6f7f9;
  color: #242A34;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Selection */
::selection {
  background: #276336;
  color: #fff;
}

/* Remove number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* =======================
   BRAND COLORS
   ======================= */
:root {
  --brand-primary: #276336;
  --brand-secondary: #EDEAE3;
  --brand-accent: #E5912D;
  --brand-accent-dark: #A05C09;
  --gray-100: #f6f7f9;
  --gray-200: #e9ecef;
  --gray-300: #dee4ea;
  --gray-400: #b5bbc3;
  --gray-500: #9098a7;
  --gray-700: #323c4b;
  --gray-900: #242A34;
  --blue-100: #e9f2ff;
  --blue-600: #2c4065;
  --error: #DC3545;
}

/* =======================
   TYPOGRAPHY
   ======================= */

@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--gray-900);
  background: var(--gray-100);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.125rem; margin-bottom: 10px; }
p, ul, ol, li, dl, dd {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-900);
}
.subheadline {
  color: var(--gray-500);
  font-size: 1.125rem;
  margin-bottom: 28px;
}
strong { font-weight: 700; }

/* Responsive typography */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }
  .subheadline { font-size: 1rem; }
}

/* =======================
   LAYOUT CONTAINERS & SPACING
   ======================= */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary, #fff);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44, 64, 101, 0.04);
}
@media (max-width: 768px) {
  .section {
    padding: 20px 8px;
    margin-bottom: 32px;
    border-radius: 8px;
  }
}

/* Content wrapper with flex */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}

/* Card container */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(44, 64, 101, 0.07);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  min-width: 240px;
  flex: 1 1 340px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 3px 24px rgba(39, 99, 54, 0.11);
}

/* Content flex grid, feature grid etc. */
.content-grid,
.feature-grid,
.highlight-list,
.recipe-list,
.seasonal-recipe-list,
.event-list,
.newsletter-form,
.filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .content-grid, .feature-grid, .highlight-list, .recipe-list, .seasonal-recipe-list, .event-list, .newsletter-form, .filter-section {
    flex-direction: column;
    gap: 16px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ==========================
   HEADER & NAVIGATION
   ========================== */
header {
  width: 100%;
  background: var(--brand-primary);
  padding: 0 0;
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
  box-shadow: 0 1px 7px rgba(44, 64, 101, 0.08);
}
header .container {
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  padding: 0 16px 0 24px;
  height: 65px;
}
.logo img {
  height: 38px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0 10px;
  opacity: 0.92;
  transition: opacity 0.18s, color 0.18s;
  border-radius: 4px;
  position: relative;
  height: 65px;
  display: flex;
  align-items: center;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-accent);
  opacity: 1;
  background: rgba(255,255,255,0.1);
}

.cta.primary, .cta.secondary {
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 28px 11px 28px;
  margin-left: 18px;
  border: none;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  box-shadow: 0 2px 8px rgba(39,99,54,0.05);
}
.cta.primary {
  background: var(--brand-accent);
  color: #fff;
  border: 2px solid var(--brand-accent-dark);
  box-shadow: 0 2px 10px rgba(165, 92, 9, 0.08);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--brand-accent-dark);
  color: #fff;
  box-shadow: 0 4px 26px rgba(39,99,54,0.10);
}
.cta.secondary {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--brand-primary);
  color: #fff;
}

.quick-link {
  color: var(--brand-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--brand-accent);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.quick-link:hover {
  color: var(--brand-accent-dark);
  border-color: var(--brand-accent-dark);
}

header .mobile-menu-toggle {
  display: none;
}

@media (max-width: 950px) {
  .main-nav, .cta.primary {
    display: none !important;
  }
  header .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    margin-right: 18px;
    cursor: pointer;
    padding: 4px 14px;
    transition: color 0.15s;
    z-index: 111;
  }
  header .mobile-menu-toggle:focus {
    outline: 3px solid var(--brand-accent);
    color: var(--brand-accent);
  }
}

/* ====================
    MOBILE MENU
   ==================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39,99,54,0.98);
  z-index: 2000;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.24s;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 24px 30px 6px 0;
  cursor: pointer;
  transition: color 0.17s;
  z-index: 2222;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-accent);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 0 36px;
  gap: 14px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 10px 0 10px 2px;
  border-bottom: 2px solid rgba(255,255,255,0.08);
  width: auto;
  transition: color 0.16s;
  margin-top: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-accent);
  background: rgba(255,255,255,0.05);
  border-bottom: 2px solid var(--brand-accent);
}

@media (max-width: 950px) {
  .mobile-menu { display: flex; }
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==================================
   SECTION, FEATURES, CARDS, TESTIMONIALS
   ================================== */
/* Feature grid cards */
.feature-grid > div, .highlight-list > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(39,99,54,0.08);
  padding: 24px 20px 28px 20px;
  flex: 1 1 210px;
  min-width: 210px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.16s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-grid > div img, .highlight-list > div img {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
}
.feature-grid > div:hover, .highlight-list > div:hover {
  box-shadow: 0 6px 32px rgba(39,99,54,0.13);
  transform: translateY(-3px) scale(1.025);
  z-index: 11;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--gray-200);
  border-left: 5px solid var(--brand-accent);
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 7px rgba(44,64,101,0.055);
  color: var(--gray-900);
  font-style: italic;
  transition: border-color 0.19s, box-shadow 0.18s;
}
.testimonial-card p {
  margin-bottom: 0;
  color: var(--gray-900);
  font-size: 1.09rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal;
  margin-left: auto;
}
.testimonial-card:hover {
  border-color: var(--brand-accent-dark);
  box-shadow: 0 6px 24px rgba(39,99,54,0.12);
}

/* Newsletter form style */
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: var(--gray-200);
  border-radius: 10px;
}
.newsletter-form ul {
  padding-left: 18px;
}
.newsletter-form li {
  margin-bottom: 8px;
  color: var(--gray-700);
}

/* Contact Info lists */
.contact-info ul {
  list-style: none;
  padding: 0;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--gray-700);
  font-size: 1rem;
}
.contact-info img {
  width: 19px;
  height: 19px;
}

/* Map section */
.map {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-700);
}
.map img {
  width: 27px;
  height: 27px;
}

/* FAQ and guides */
.faq, .quick-faq {
  margin-top: 14px;
  background: var(--gray-200);
  border-radius: 8px;
  padding: 18px 18px 15px 18px;
}
.faq h3, .quick-faq h3 {
  font-size: 1.15rem;
  color: var(--brand-primary);
  margin-bottom: 12px;
}
.faq dt, .quick-faq dt {
  font-weight: 600;
  color: var(--brand-accent);
  margin-top: 12px;
}
.faq dd, .quick-faq dd {
  margin-left: 0;
  margin-top: 0;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.step-by-step-guides {
  margin-top: 18px;
}
.step-by-step-guides h3 {
  color: var(--brand-accent-dark);
  font-size: 1.1rem;
}
.step-by-step-guides ol li {
  margin-bottom: 7px;
}

/* Tip-list */
.tip-list {
  padding-left: 17px;
  margin-bottom: 18px;
}
.tip-list li {
  margin-bottom: 7px;
  color: var(--gray-700);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Card content flex patterns */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =========================
      FOOTER
   ========================= */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 38px 0 24px 0;
  margin-top: 40px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-menu a {
  color: #fff;
  opacity: 0.85;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  padding: 2px 7px;
  border-radius: 4px;
  transition: opacity 0.14s, color 0.16s, background 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  opacity: 1;
  color: var(--brand-accent);
  background: rgba(255,255,255,0.08);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eaeaea;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .footer-menu, .footer-contact {
    gap: 12px;
    font-size: 0.98rem;
    flex-direction: column;
    align-items: flex-start;
  }
  footer {
    padding: 30px 0 14px 0;
  }
}

/* =========================
    COOKIE CONSENT BANNER
   ========================= */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 9999;
  background: #fff;
  color: var(--gray-900);
  box-shadow: 0 -2px 16px rgba(44,64,101,0.12);
  border-radius: 10px 10px 0 0;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(.5,1.25,.3,1), opacity 0.22s;
  pointer-events: none;
}
#cookie-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
#cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
}
#cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 5px;
  min-width: 132px;
  padding: 10px 18px;
  cursor: pointer;
  border: 2px solid var(--gray-400);
  background: #fff;
  color: var(--brand-primary);
  font-weight: 600;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
#cookie-banner .cookie-btn.accept {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent-dark);
}
#cookie-banner .cookie-btn.accept:hover {
  background: var(--brand-accent-dark);
  color: #fff;
}
#cookie-banner .cookie-btn.reject {
  background: #fff;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
#cookie-banner .cookie-btn.reject:hover {
  background: var(--brand-secondary);
  color: var(--brand-accent-dark);
  border-color: var(--brand-accent-dark);
}
#cookie-banner .cookie-btn.settings {
  background: var(--gray-200);
  color: var(--brand-primary);
}
#cookie-banner .cookie-btn.settings:hover {
  background: var(--gray-300);
}

@media (max-width: 600px) {
  #cookie-banner {
    padding: 16px 6px 11px 6px;
    font-size: 0.97rem;
    gap: 13px;
  }
  #cookie-banner .cookie-banner-buttons {
    flex-direction: column;
    width: 100%;
    gap: 9px;
  }
  #cookie-banner .cookie-btn { width: 100%; }
}

/* Cookie Modal */
#cookie-modal {
  position: fixed;
  z-index: 12000;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 64, 101, 0.41);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
}
#cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  min-width: 320px;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(44,64,101,0.19);
  padding: 32px 22px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: fadeInModal 0.29s cubic-bezier(.5,1.25,.3,1);
}
@keyframes fadeInModal {
  0% { transform: scale(0.96) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h3 {
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 7px;
}
.cookie-modal-content ul {
  list-style: disc;
  padding-left: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}
.cookie-toggle {
  width: 38px;
  height: 20px;
  border-radius: 20px;
  background: var(--gray-300);
  position: relative;
  transition: background .18s;
  cursor: pointer;
  border: none;
  outline: none;
}
.cookie-toggle[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand-primary);
  transition: left .2s, background .18s;
}
.cookie-toggle.on {
  background: var(--brand-accent);
}
.cookie-toggle.on .slider {
  left: 20px;
  background: var(--brand-accent);
}

.cookie-modal-actions {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 4px;
  padding: 9px 20px;
  font-weight: 600;
  cursor: pointer;
  background: var(--gray-200);
  color: var(--brand-primary);
  border: 2px solid var(--gray-400);
  font-size: 1rem;
  transition: background .15s, color .15s, border-color .15s;
}
.cookie-modal-actions .accept-all {
  background: var(--brand-accent);
  border-color: var(--brand-accent-dark);
  color: #fff;
}
.cookie-modal-actions .accept-all:hover {
  background: var(--brand-accent-dark);
}
.cookie-modal-content .close-modal {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: none;
  color: var(--gray-500);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-content .close-modal:hover,
.cookie-modal-content .close-modal:focus {
  color: var(--brand-accent);
}

/* ===================
   RESPONSIVE UTILITY
   =================== */
@media (max-width: 1200px) {
  .container { max-width: 980px; }
}
@media (max-width: 900px) {
  .container { max-width: 100%; }
}
@media (max-width: 768px) {
  .container { padding-left: 9px; padding-right: 9px; }
}

/* =================================
   GENERAL: LIST/UL and OL
   ================================= */
ul, ol {
  padding-left: 20px;
  margin-bottom: 1.1em;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* ===============================
   INTERACTIVITY: Transitions
   =============================== */
a, .cta, button, .feature-grid > div, .card {
  transition: color 0.18s, background 0.18s, box-shadow 0.19s, border-color 0.16s, opacity 0.15s, transform 0.14s;
}

/* ==============================
   SCROLLBAR CUSTOM (modern)
   ============================== */
::-webkit-scrollbar { width: 11px; background: var(--gray-300); }
::-webkit-scrollbar-thumb { background: var(--brand-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-700); }

/* ============================
   MISC SPACING & HELPERS
   ============================ */
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.gap-20 { gap: 20px !important; }

/* Ensure all sections and cards have at least 20px gap */
section, .card, .feature-grid > div, .testimonial-card, .highlight-list > div {
  margin-bottom: 20px;
}

/* Prevent overlap in flex layouts */
.content-wrapper, .feature-grid, .card-container, .content-grid, .highlight-list, .newsletter-form, .filter-section, .event-list {
  gap: 20px;
}

/* No overlapping absolute positioning for content cards! */

/* ===================
   ACCESSIBILITY
   =================== */
a:focus, .cta:focus, button:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* ===================
   PRINT TOP NAV BAR
   =================== */
@media print {
  header, footer, .mobile-menu, #cookie-banner, #cookie-modal {
    display: none !important;
  }
  main {
    padding: 0;
  }
}
