/* ========== CSS RESET & NORMALIZE ========== */
/* Reset box-sizing and remove default margins/paddings */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
html { height: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd, address { margin: 0; padding: 0; font-weight: inherit; font-style: inherit; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; border: none; outline: none; background: none; }
body { min-height: 100%;}

/* ========== VINTAGE RETRO COLOR PALETTE ========== */
:root {
  --primary: #395A34;        /* retro green */
  --primary-dark: #2F472A;
  --secondary: #F2E9E1;      /* vintage cream */
  --secondary-light: #fffaf4;
  --accent: #E9AB17;         /* mustard yellow */
  --accent-dark: #B88309;
  --text: #32302b;
  --text-dark: #2F2A24;
  --bg: #FFF8F0;
  --card-bg: #FFFFFF;
  --shadow: rgba(43, 34, 13, 0.07);
  --muted: #B8A98F;
  --secondary-accent: #B9552F; /* retro red-burnt orange for little highlights */
}

/* ========== FONTS: vintage/retro style ========== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Lato:wght@400;700&display=swap');

body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, .cta-btn {
  font-family: 'Montserrat', 'Lato', Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
}
h1 { font-size: 2.8rem; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
h2 { font-size: 2rem; font-weight: 700; color: var(--accent); margin-bottom: 24px; }
h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.subheadline { font-size: 1.2rem; color: var(--text-dark); opacity: 0.85; margin-bottom: 20px; }
strong { font-weight: bold; }

/* ========== GLOBAL CONTAINER & LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary-light);
  border-radius: 24px;
  box-shadow: 0 4px 24px var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  margin-bottom: 20px;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 28px 22px;
  flex: 1 1 290px;
  min-width: 240px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(150, 126, 24, 0.22);
}

.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: #faf4ec;
  border-left: 6px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(87,50,7,0.07);
  margin-bottom: 20px;
  color: var(--text);
}
.testimonial-card blockquote {
  margin: 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--primary-dark);
}
.testimonial-card p { margin-left: 16px; font-size: 1rem; color: var(--text-dark); }

/* Feature item (applies retro icons + text spacing) */
.feature-item,
.value-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--card-bg);
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--shadow);
}
.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.value-list li {
  flex: 1 1 220px;
  min-width: 180px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-grid li {
  flex: 1 1 200px;
  background: var(--card-bg);
  padding: 22px 19px;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.15s;
}
.feature-grid li:hover {
  box-shadow: 0 6px 24px rgba(150,126,24,0.19);
}
.feature-grid img,
.value-list img,
.category-list img,
.category-tile img {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  filter: grayscale(15%) brightness(0.93) contrast(1.1);
}

/* Category list and grid */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 26px 0 30px 0;
}
.category-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff7e1;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1.03rem;
  padding: 10px 24px;
  border-radius: 40px;
  box-shadow: 0 1px 8px var(--shadow);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.category-list li:hover {
  background: var(--accent);
  color: #fff;
}
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 1 1 260px;
  min-width: 180px;
  background: #fff6e8;
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 30px 16px 18px 16px;
  transition: box-shadow 0.2s, background 0.18s;
  margin-bottom: 20px;
}
.category-tile:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 32px rgba(150,126,24,0.22);
}

/* Recipe cards & lists */
.recipe-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}
.recipe-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--shadow);
  padding: 28px 22px;
  flex: 1 1 320px;
  min-width: 260px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.recipe-card:hover {
  box-shadow: 0 8px 32px rgba(150,126,24, 0.21);
}
.recipe-card h3 {
  color: var(--primary-dark);
  font-size: 1.15rem;
}
.recipe-card a {
  color: var(--accent);
  font-weight: bold;
  margin-top: auto;
  text-align: right;
  transition: color 0.18s;
}
.recipe-card a:hover { color: var(--primary); text-decoration: underline; }

.recipe-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 16px 0;
}
.recipe-list li {
  flex: 1 1 288px;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 20px 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: box-shadow 0.18s;
}
.recipe-list li:hover {
  box-shadow: 0 7px 24px rgba(150,126,24,0.17);
}
.recipe-list a {
  color: var(--accent);
  font-weight: bold;
  margin-top: auto;
  transition: color 0.14s;
}
.recipe-list a:hover { color: var(--primary); text-decoration: underline; }

/* FAQ section */
.faq {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.faq-item {
  background: #f6efe3;
  border: 2px dashed var(--muted);
  border-radius: 13px;
  box-shadow: 0 1px 8px var(--shadow);
  padding: 18px 17px;
  flex: 1 1 260px;
  min-width: 160px;
  margin-bottom: 20px;
}
.faq-item h3 {
  color: var(--primary);
  font-size: 1.09rem;
  margin-bottom: 7px;
}
.faq-item div {
  color: var(--text);
  font-size: 1rem;
}

/* Filter and Sorting Buttons */
.filter-options, .sorting-options {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 24px 0;
}
.filter-options button, .sorting-options button {
  background: #fffbe8;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 20px;
  box-shadow: 0 1px 6px var(--shadow);
  border: 1px solid #e9e0ca;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.filter-options button:hover, .sorting-options button:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
}
.filter-options span, .sorting-options span { color: var(--muted); }

input[type="search"],
input[type="email"],
input[type="text"],
input[type="password"] {
  background: #fff;
  border-radius: 8px;
  padding: 11px 16px;
  border: 1px solid #e7dcc6;
  font-size: 1rem;
  margin-bottom: 14px;
  width: 100%;
  transition: border-color 0.14s;
}
input:focus {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
.pagination span,
.pagination a {
  display: inline-block;
  background: #e7dcc6;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 40px;
  font-size: 1rem;
  transition: background 0.16s, color 0.16s;
}
.pagination a:hover {
  background: var(--accent);
  color: #fff;
}
.pagination span[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

/* Address block */
address {
  margin-top: 14px;
  font-style: normal;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.97rem;
}
address strong { color: var(--primary-dark); }
address a { color: var(--primary); text-decoration: underline dotted; }
address a:hover { color: var(--accent); text-decoration: underline double; }

/* ========== HEADER & NAVIGATION ========== */
header {
  width: 100%;
  background: var(--secondary);
  padding: 0;
  box-shadow: 0 3px 16px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
header nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  background: none;
  font-weight: 600;
}
header nav a {
  color: var(--primary-dark);
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 1.04rem;
  letter-spacing: 0.8px;
  transition: background 0.14s, color 0.14s;
  position: relative;
}
header nav a[aria-current],
header nav a.active {
  font-weight: 700;
  color: var(--accent);
  background: #fff7e1;
}
header nav a:hover {
  background: var(--accent);
  color: #fff;
}
header nav img {
  height: 38px;
  width: auto;
  margin-right: 14px;
  margin-bottom: 0;
  filter: saturate(0.74) brightness(0.92);
}
.cta-btn, .cta-btn[aria-current] {
  margin-left: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 40px;
  padding: 10px 28px;
  font-size: 1.09rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  box-shadow: 0 2px 9px rgba(219,161,14,0.18);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.16s;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: #fff6e8;
  border-color: var(--primary);
  box-shadow: 0 6px 25px rgba(219,161,14,0.16);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 5px 16px;
  margin: 0 22px 0 0;
  cursor: pointer;
  z-index: 90;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--primary-dark);
}
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--secondary);
  box-shadow: 0 12px 40px rgba(30, 25, 13, 0.18);
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.4,.6,.5,1);
}
.mobile-menu.open {
  display: block;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 210;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 2rem;
  padding: 5px 16px;
  cursor: pointer;
  transition: background 0.18s;
  box-shadow: 0 2px 11px var(--shadow);
}
.mobile-menu-close:focus {
  background: var(--primary-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 56px;
  align-items: center;
}
.mobile-nav a {
  color: var(--primary-dark);
  font-size: 1.4rem;
  padding: 15px 0;
  width: 100vw;
  text-align: center;
  border-bottom: 1px solid #e4d7c0;
  background: none;
  border-radius: 0;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a.cta-btn {
  width: 90%;
  margin: 18px auto 0 auto;
  border-radius: 60px;
  font-size: 1.17rem;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  border: none;
  padding: 13px 0;
}
.mobile-nav a:hover,
.mobile-nav a[aria-current] {
  background: var(--accent);
  color: #fff;
}

/* ========== FOOTER ========== */
footer {
  background: var(--secondary);
  color: var(--primary-dark);
  margin-top: 70px;
  border-top: 3px solid var(--accent);
  font-size: 16px;
  padding-top: 24px;
  padding-bottom: 32px;
}
footer .container { padding: 0 20px; }
footer .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  flex-direction: row;
  justify-content: space-between;
}
footer nav {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--primary-dark);
  font-size: 1rem;
  padding: 3px 10px;
  border-radius: 6px;
  background: none;
  transition: background 0.18s, color 0.15s;
}
footer nav a:hover {
  background: var(--accent);
  color: #fff;
}

/* ========== BUTTONS, FORMS, INTERACTIONS ========== */
button, .cta-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 1.07rem;
  outline: none;
}
button[type="submit"] {
  border-radius: 28px;
  padding: 10px 28px;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
  transition: background 0.14s, color 0.14s;
}
button[type="submit"]:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

/* ========== MAP PLACEHOLDER & CONTACT DETAILS ========== */
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.05rem;
}
.map-placeholder {
  background: #f6ecd8;
  border: 2px dashed var(--accent);
  border-radius: 13px;
  padding: 20px 12px;
  margin-top: 20px;
  text-align: center;
}
.map-placeholder img { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* ========== NEWSLETTER FORM ========== */
form {
  width: 100%;
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
form label { font-size: 1rem; margin-right: 10px; }
form input[type='email'] { flex: 1 1 auto; min-width: 120px; }
form button, form .cta-btn {
  background: var(--accent);
  color: #fff;
  border-radius: 30px;
  padding: 10px 22px;
  font-weight: 700;
  border: 2px solid var(--accent);
  transition: background 0.18s, border 0.18s, color 0.18s;
}
form button:hover, form .cta-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  z-index: 800;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff9e8;
  color: var(--primary-dark);
  padding: 22px 16px 18px 16px;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -4px 28px rgba(200,160,8,0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(70px);
  transition: opacity 0.27s, transform 0.4s cubic-bezier(.36,.87,.42,1);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner-text {
  max-width: 600px;
  font-size: 1.02rem;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  font-size: 1rem;
  padding: 9px 18px;
  border-radius: 18px;
  font-weight: 700;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  transition: background 0.15s, color 0.13s, border 0.13s;
  cursor: pointer;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--primary-dark);
  border: 2px dashed var(--accent);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 901;
  padding: 34px 28px 24px 28px;
  background: #fffdf7;
  max-width: 440px;
  width: 95vw;
  border-radius: 19px;
  box-shadow: 0 9px 38px rgba(80, 56, 7, 0.23);
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.17s, transform 0.28s cubic-bezier(.42,.98,.42,1);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.cookie-modal-header h3 {
  font-size: 1.34rem;
  color: var(--primary-dark);
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 7px;
  transition: background 0.13s;
}
.cookie-modal-close:hover {
  background: #fff4cc;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.01rem;
  border-bottom: 1px solid #eee3cb;
  padding: 6px 0 10px 0;
}
.cookie-toggle {
  accent-color: var(--accent);
  width: 22px; height: 22px;
  cursor: pointer;
}
.cookie-category.essential .cookie-toggle {
  accent-color: var(--muted);
  pointer-events: none;
}

/* ========== MISCELLANEOUS/MODIFIERS ========== */
.date-updated { color: var(--muted); font-size: 0.98rem; }
.success-message { color: var(--primary); font-size: 1.02rem; margin-bottom: 18px; }
.next-steps { color: var(--accent-dark); margin-bottom: 18px; }

/* ========== RETRO PATTERNED BACKGROUNDS ========== */
.section:nth-child(odd) {
  background: repeating-linear-gradient(135deg, #faf4ec, #faf4ec 11px, #ffe8bc 15px, #ffe8bc 24px);
}
.section:nth-child(even) {
  background: #fff;
}

/* ========== RESPONSIVE DESIGN (flex-direction, alignment, spacing) ========== */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
  header nav { max-width: 98vw; padding: 18px 8px; }
}
@media (max-width: 900px) {
  .content-wrapper, .card-container, .value-list, .feature-grid, .content-grid, .category-list, .category-grid, .recipe-cards, .recipe-list, .faq {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .section, .category-tile, .value-list li, .recipe-card, .card, .testimonial-card {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  form {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .filter-options, .sorting-options { flex-direction: column; gap: 7px; align-items: flex-start; }
  .faq-item { min-width: 0 !important; width: 100%; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.43rem; }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    position: absolute;
    top: 13px;
    right: 18px;
  }
  .content-wrapper { padding: 0; }
  .section { padding: 28px 6px; }
  .text-image-section { flex-direction: column; gap: 20px; }
  .category-list,
  .category-grid,
  .feature-grid,
  .value-list,
  .content-grid,
  .recipe-cards,
  .recipe-list {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .category-list li, .feature-grid li, .value-list li, .category-tile {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
  footer .content-wrapper { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 500px) {
  html, body { font-size: 15px; }
  .container { padding: 0 7px; }
  .cookie-modal { padding: 22px 7px 18px 7px; }
}

/* ========== UTILITY CLASSES ========== */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 20px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 22px; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }

/* ========== HOVER, FOCUS & TRANSITIONS ========== */
a, button, .cta-btn, input, .category-list li, .category-tile, .feature-grid li,
.value-list li, .pagination a, .filter-options button, .sorting-options button {
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, border 0.14s;
}

/* ========== ACCESSIBILITY & FOCUS VISIBLE ========== */
a:focus, button:focus, input:focus, .cta-btn:focus {
  outline: 2px solid var(--accent-dark);
  outline-offset: 1.5px;
  box-shadow: 0 0 0 3px #e7a80044;
}

/* ========== ENSURE FLEXBOX ONLY (no grid, columns!) ========== */
/* (All container, list, grid, form, layout classes above are using flexbox per guidelines) */
