/* =====================================================
   CSS RESET & NORMALIZE - BASELINE
   ===================================================== */
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 {
  line-height: 1.2;
  scroll-behavior: smooth;
}
body {
  background: #FCFAF6;
  color: #49413A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #6A8A41;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus,
a:hover {
  color: #573C1C;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
button {
  cursor: pointer;
}

/* =====================================================
   COLORS & BRAND VARIABLES
   ===================================================== */
:root {
  --color-primary: #573C1C;
  --color-secondary: #E7CEA6;
  --color-accent: #8EA047;
  --color-pastel-pink: #FDE6EB;
  --color-pastel-yellow: #FFF6D3;
  --color-pastel-green: #E6EFE6;
  --color-pastel-blue: #E6F0FA;
  --color-pastel-lavender: #F3E6FC;
  --color-bg: #FCFAF6;
  --color-bg-card: #FFFDF8;
  --color-border: #E4DFD3;
  --color-shadow: rgba(60,50,50,0.06);
  --color-shadow-hover: rgba(140, 180, 160, 0.12);
  --color-text: #3A3833;
  --color-text-dark: #573C1C;
  --color-hero: #F6F6EC;
  --color-white: #fff;
  --color-grey: #A19C93;
}

/* =====================================================
   FONTS - GOOGLE FONTS (for reference)
   =====================================================
   Playfair Display: for headings
   Roboto: for body
   (Assume imported via HTML or @import)
*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1.18;
}
h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

p, li, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
  font-family: 'Playfair Display', serif;
}
blockquote {
  background: var(--color-pastel-lavender);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  margin: 20px 0 20px 0;
  padding: 16px 22px;
  font-style: italic;
  color: var(--color-text-dark);
  box-shadow: 0 3px 12px var(--color-shadow);
}

/* ========== Containers & General ========== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.content-wrapper {
  width: 100%;
  padding: 0;
  margin: 0 auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ========== Section Spacing & Card Patterns ========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-bg-card);
  box-shadow: 0 2px 16px var(--color-shadow);
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 22px var(--color-shadow-hover);
  transform: translateY(-2px) scale(1.012);
}
.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(--color-pastel-yellow);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 3px 18px var(--color-shadow);
  min-width: 0;
  color: #222;
  font-size: 1.08rem;
}
.testimonial-card p {
  margin: 0; font-style: italic; font-size: 1.06rem; color: #49413A;
}
.testimonial-card strong {
  color: var(--color-primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px;
  border-radius: 16px;
  background: var(--color-pastel-blue);
}

/* ========== HERO ========== */
.hero {
  background: var(--color-hero);
  border-radius: 0 0 40px 40px;
  padding: 48px 0 36px 0;
  margin-bottom: 48px;
  box-shadow: 0 3px 22px var(--color-shadow);
  min-height: 230px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  color: var(--color-accent);
  font-size: 2.4rem;
}
.hero p {
  font-size: 1.18rem;
  color: #5d5b51;
}
.hero .cta {
  margin-top: 16px;
}

/* ========== FEATURES GRID ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
  margin-bottom: 12px;
}
.feature {
  background: var(--color-pastel-green);
  border-radius: 15px;
  box-shadow: 0 2px 12px var(--color-shadow);
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 305px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature:hover {
  box-shadow: 0 5px 22px var(--color-shadow-hover);
  transform: translateY(-3px) scale(1.018);
}
.feature img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}

/* ========== Category Filter/Recipe Page Controls ========== */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.category-filters a {
  background: var(--color-pastel-blue);
  color: var(--color-accent);
  border-radius: 22px;
  padding: 7px 18px;
  font-weight: 600;
  font-family: 'Roboto', Arial, sans-serif;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.16s, border 0.15s;
}
.category-filters a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border: 1px solid var(--color-accent);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.search-bar input[type="search"] {
  padding: 8px 13px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-pastel-yellow);
  width: 210px;
  font-size: 1rem;
  transition: border 0.16s;
}
.search-bar input[disabled] {
  background: #f7f4eb;
  color: #b8b2a5;
  cursor: not-allowed;
}
.search-bar button {
  padding: 7px 14px;
  border-radius: 16px;
  background: var(--color-pastel-blue);
  color: var(--color-accent);
  border: none;
  font-size: 1.1em;
}
.search-bar button[disabled] {
  background: #ebecef;
  color: #bbb;
  cursor: not-allowed;
}
.sort-options {
  color: var(--color-grey);
  font-size: 0.98em;
  margin-bottom: 0;
}

/* ========== BUTTONS & CTA ========== */
.cta {
  display: inline-block;
  background: linear-gradient(98deg, var(--color-accent) 0%, #B9D584 100%);
  color: var(--color-primary);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.08rem;
  border: none;
  border-radius: 28px;
  padding: 11px 32px;
  margin: 8px 0;
  box-shadow: 0 2px 11px var(--color-shadow);
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, box-shadow 0.16s, transform 0.2s;
}
.cta:hover, .cta:focus {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 28px var(--color-shadow-hover);
  transform: translateY(-2px) scale(1.03);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--color-pastel-yellow);
  box-shadow: 0 2px 11px var(--color-shadow);
  border-radius: 0 0 24px 24px;
  padding-top: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 49;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 12px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--color-primary);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.14s;
  font-weight: 500;
}
header nav a.cta {
  margin-left: 12px;
}
header nav a:hover {
  background: var(--color-pastel-pink);
  color: var(--color-accent);
}
header img {
  height: 43px;
}
.mobile-menu-toggle {
  display: none;
}

/* ========== MOBILE MENU OVERLAY ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250,246,235,0.97);
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.6,0.1,0.33,1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 24px 0 0;
  font-size: 2.25rem;
  background: none;
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background 0.16s, color 0.11s;
}
.mobile-menu-close:hover {
  background: var(--color-pastel-lavender);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 50px 28px;
}
.mobile-nav a {
  width: 100%;
  font-size: 1.19rem;
  padding: 13px 12px;
  margin-bottom: 7px;
  border-radius: 13px;
  background: var(--color-pastel-green);
  color: var(--color-primary);
  font-weight: 600;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:hover {
  background: var(--color-primary);
  color: var(--color-pastel-yellow);
}

/* ========== FOOTER ========== */
footer {
  background: var(--color-pastel-green);
  border-radius: 28px 28px 0 0;
  margin-top: 54px;
  padding: 38px 0 22px 0;
  position: relative;
  box-shadow: 0 -2px 15px var(--color-shadow);
}
footer .container {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 6px;
  transition: background 0.13s, color 0.11s;
}
footer nav a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--color-text);
  font-size: 0.98rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}
.footer-brand {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--color-grey);
}

/* ========== TEXT SECTIONS & CARDS ========== */
.text-section {
  background: var(--color-pastel-pink);
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 32px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tip-highlight {
  background: var(--color-pastel-yellow);
  border-left: 5px solid var(--color-accent);
  padding: 13px 19px;
  border-radius: 10px;
  color: #5e5a36;
  margin-top: 12px;
}

/* ================= COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  left: 0; 
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-pastel-lavender);
  color: var(--color-text-dark);
  box-shadow: 0 -2px 20px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding: 22px 16px 18px 16px;
  z-index: 10050;
  transition: transform 0.3s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner .cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 5px;
}
.cookie-banner button {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 18px;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  padding: 8px 24px;
  margin: 0 2px;
  box-shadow: 0 2px 9px var(--color-shadow);
  font-weight: 600;
  transition: background 0.19s, color 0.17s;
}
.cookie-banner button.settings-btn {
  background: var(--color-pastel-green);
  color: var(--color-primary);
}
.cookie-banner button.reject-btn {
  background: #F7CACA;
  color: #9E2727;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ==== Cookie Preferences Modal ==== */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(1);
  z-index: 10100;
  min-width: 320px;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 8px 44px var(--color-shadow);
  padding: 32px 26px 26px 26px;
  display: none;
  flex-direction: column;
  gap: 21px;
}
.cookie-modal.open {
  display: flex;
  animation: fadeInModal 0.24s cubic-bezier(0.64,0.2,0.45,1);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translate(-50%,-50%) scale(0.88); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h3 {
  font-size: 1.21rem;
  color: var(--color-accent);
  margin-bottom: 13px;
}
.cookie-modal label {
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.cookie-modal .cookie-switch {
  display: inline-flex;
  align-items: center;
  margin-right: 5px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
  margin-right: 8px;
}
.cookie-modal .cookie-cat {
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-modal .desc-small {
  color: #6a694e;font-size: 0.99em;margin-bottom:4px;
}
.cookie-modal .btns {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.cookie-modal .btns button {
  padding: 7px 19px;
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-modal .btns button.close-modal {
  background: var(--color-pastel-pink);
  color: var(--color-text-dark);
}
.cookie-modal .btns button:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ========================== RESPONSIVE DESIGN =========================== */
@media (max-width: 1024px) {
  .feature {
    min-width: 44vw;
    max-width: 94vw;
  }
}
@media (max-width: 920px) {
  .container, header .container {
    max-width: 98vw;
    padding: 0 12px;
  }
}
@media (max-width: 820px) {
  .feature-grid {
    gap: 18px;
  }
  .text-section {
    padding: 25px 13px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  footer .container {
    gap: 9px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 4px;
    min-height: 58px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2.1rem;
    color: var(--color-primary);
    margin-right: 5px;
    cursor: pointer;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    align-self: center;
  }
  .mobile-menu {
    display: flex;
  }
  .feature-grid, .card-container, .content-grid, .footer-contact {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .content-wrapper, .content-grid, .section {
    padding: 0 4px !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .section {
    padding: 31px 7px;
    margin-bottom: 34px;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.01rem; }
  .container {
    padding: 0 3vw;
  }
  .card, .feature, .text-section {
    border-radius: 13px;
    padding: 15px 7px;
  }
  .hero {
    padding: 29px 0 20px 0;
    border-radius: 0 0 18px 18px;
  }
  .cookie-modal {
    min-width: 80vw;
    padding: 19px 6px 15px 6px;
  }
}

/* ======================= MICRO-INTERACTIONS & ANIMATIONS ================== */
.card, .feature, .testimonial-card, .text-section, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.24s, background 0.23s, color 0.17s, transform 0.2s;
}
.cta, .category-filters a, .mobile-menu-close, .cookie-banner button, .cookie-modal button {
  transition: background 0.18s, color 0.16s, box-shadow 0.18s, transform 0.15s;
}

/* ===== Scrollbar styling ===== */
body::-webkit-scrollbar {
  width: 11px;
  background: var(--color-pastel-green);
}
body::-webkit-scrollbar-thumb {
  background: var(--color-pastel-yellow);
  border-radius: 8px;
}

/* ============== Utility Classes (if needed) ============= */
.m-0  { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/*
==============================================================
BRAND & SOFT PASTEL AESTHETIC
  - Pastel backgrounds, gradients, subtle shadows and rounded corners
  - Gentle typography
  - Modern airy layout, generous gaps
==============================================================
*/
