/* =========================================
   CSS Reset & Base Normalize
   ========================================= */
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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FFFFFF;
  color: #2D3C38;
  font-family: 'Georgia', serif; /* Classic serif for elegance */
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px solid #A62818; }
img { max-width: 100%; display: block; height: auto; }
ul, ol { list-style-position: inside; margin-bottom: 1.5em; }

/* =========================================
   Typography – Elegant & Classic
   ========================================= */
:root {
  --brand-primary: #2D3C38;
  --brand-secondary: #FFFFFF;
  --brand-accent: #A62818;
  --brand-muted: #F4FFC9;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Georgia', serif;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  letter-spacing: 0.01em;
  font-weight: 600;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  line-height: 1.18;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
  line-height: 1.22;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 600;
}
p, li {
  font-family: var(--font-body);
  color: #3A514C;
  font-size: 1rem;
  line-height: 1.7;
}
strong, b { font-weight: bold; }
blockquote {
  font-style: italic;
  background: #F4FFC9;
  padding: 16px 24px;
  border-left: 4px solid var(--brand-accent);
  border-radius: 2px 8px 8px 2px;
  margin-bottom: 14px;
  color: #2D3C38;
}
hr {
  border: none;
  border-top: 1px solid #EFEFEF;
  margin: 32px 0;
}

/* =========================================
   Layout Containers
   ========================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* === Flexbox Patterns === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container,
.card-grid, .feature-grid, .blog-list, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(50,70,60,0.06), 0 1.5px 7px 0 rgba(50,70,60,0.08);
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 32px 0 rgba(50,56,60,0.13), 0 2px 12px 0 rgba(50,56,60,.12);
  transform: translateY(-3px) scale(1.01);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F4FFC9;
  border-radius: 10px;
  border: 1px solid #E2E5D8;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px 0 rgba(225,220,170,0.11);
  max-width: 600px;
  color: #2D3C38;
  font-family: var(--font-body);
  line-height: 1.8;
}
.testimonial-card blockquote {
  background: transparent;
  border: none;
  padding: 0;
  color: #2D3C38;
  font-size: 1.1rem;
}
.testimonial-card > div {
  font-size: 0.97rem;
  font-style: normal;
  color: #7C866A;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid { gap: 24px; }
.feature {
  flex: 1 1 270px;
  min-width: 220px;
  padding: 22px;
  background: #F8FAF4;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(60,80,70,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.22s, transform 0.15s;
  margin-bottom: 20px;
}
.feature img {
  width: 38px;
  margin-bottom: 10px;
}
.feature:hover {
  box-shadow: 0 4px 14px 0 rgba(155,190,120,0.12);
  transform: translateY(-2px);
}

/* Blog variants */
.blog-list {
  flex-direction: column;
  gap: 28px;
}
.blog-feature {
  padding: 18px 18px 15px 18px;
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0 1px 7px 0 rgba(60,70,60,0.06);
  margin-bottom: 10px;
}
.blog-preview {
  padding: 11px 17px;
  background: #FAFBEF;
  border-left: 4px solid #A62818;
  border-radius: 5px;
  margin-bottom: 7px;
}

.text-section {
  margin-bottom: 24px;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
  background: var(--brand-secondary);
  border-bottom: 1px solid #EEF0E5;
  box-shadow: 0 1px 7px 0 rgba(60,70,60,0.04);
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 6px;
  padding-bottom: 6px;
}
nav.main-nav {
  display: flex;
  gap: 20px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1.04rem;
  color: var(--brand-primary);
  padding: 4px 10px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--brand-muted);
  color: var(--brand-accent);
}

.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 11px 26px;
  border-radius: 20px;
  border: none;
  outline: none;
  text-align: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s;
  cursor: pointer;
  margin-left: 12px;
  box-shadow: 0 1px 4px 0 rgba(60,80,70,0.07);
}
.cta-primary {
  background: var(--brand-primary);
  color: #fff;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--brand-accent);
  color: #FFF;
  box-shadow: 0 1px 14px 0 rgba(166,40,24,0.08);
}
.cta-secondary {
  background: var(--brand-muted);
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}
.cta-secondary:hover, .cta-secondary:focus {
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}

/* =========================================
   Mobile Burger Menu
   ========================================= */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.3rem;
  cursor: pointer;
  color: var(--brand-primary);
  display: none;
  margin-left: 16px;
  z-index: 105;
  line-height: 1;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: var(--brand-accent);
}
@media (max-width: 1024px) {
  .main-nav, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250,249,242,0.97);
  z-index: 120;
  transform: translateX(-100%);
  box-shadow: 0 4px 30px 0 rgba(70,70,60,0.15);
  transition: transform .32s cubic-bezier(.42,.00,.58,1.0);
  display: flex;
  flex-direction: column;
  padding-top: 18px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--brand-accent);
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 12px 23px 18px;
  cursor: pointer;
  z-index: 125;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  padding: 30px 36px;
}
.mobile-nav a {
  font-size: 1.22rem;
  font-family: var(--font-display);
  color: var(--brand-primary);
  padding: 6px 0;
  transition: color 0.16s, background .22s;
  border-radius: 8px;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--brand-accent);
  background: var(--brand-muted);
}

/* =========================================
   Main Sections/Elegant Spacing
   ========================================= */
.hero-section {
  background: #F8FAF4;
  border-radius: 22px;
  box-shadow: 0 4px 30px 0 rgba(210,230,200,0.09);
  padding: 48px 30px 45px 30px;
  margin-top: 32px;
  margin-bottom: 34px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Call to action inside hero */
.hero-section .cta-primary {
  margin-top: 16px;
  margin-left: 0;
}

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

@media (max-width: 650px) {
  .section { padding: 26px 5px; }
  .hero-section { padding: 32px 10px 32px 10px; }
}

/* =========================================
   Footer Styles
   ========================================= */
footer {
  background: #F8FAF4;
  border-top: 1.5px solid #EEF1EA;
  padding: 32px 0 16px 0;
  margin-top: 30px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  margin-bottom: 13px;
}
.footer-nav a {
  color: #2D3C38;
  font-size: 1.01rem;
  font-family: var(--font-body);
  padding: 5px 14px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover {
  color: var(--brand-accent);
  background: #F4FFC9;
}
.footer-info {
  text-align: center;
  color: #7C866A;
  font-size: 0.98rem;
  font-family: var(--font-body);
  padding-top: 8px;
}

/* =========================================
   Form & List Styling
   ========================================= */
input, textarea, select {
  font-family: var(--font-body);
  padding: 9px;
  border-radius: 4px;
  border: 1.2px solid #CCC;
  font-size: 1rem;
  background: #F8FAF4;
  margin-bottom: 14px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-primary);
  outline: 1.4px solid var(--brand-accent);
}

ul, ol {
  padding-left: 1.1em;
}
ul>li, ol>li {
  margin-bottom: 9px;
}

/* =========================================
   Cookie Consent Banner
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #F4FFC9;
  box-shadow: 0px -10px 28px 0 rgba(60,50,20,0.14);
  border-top: 2px solid #E2E5D8;
  padding: 23px 15px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  font-family: var(--font-body);
  color: #2D3C38;
  animation: fadeInCookie 0.9s cubic-bezier(.38,0,.32,1) both;
}
@keyframes fadeInCookie { from{opacity:0;transform:translateY(30px);} to{opacity:1; transform:translateY(0);} }
.cookie-banner .cookie-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 7px;
  justify-content: center;
}
.cookie-btn, .cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  outline: none;
  border-radius: 16px;
  padding: 8px 19px;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
}
.cookie-btn.accept {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-btn.accept:hover { background: var(--brand-accent); }
.cookie-btn.reject {
  background: #fff;
  color: var(--brand-accent);
  border: 1.3px solid var(--brand-accent);
}
.cookie-btn.reject:hover {
  background: #F7DFDF;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--brand-primary);
  border: 1.3px solid var(--brand-primary);
}
.cookie-btn.settings:hover {
  background: #EAF3CE;
}

/* Cookie preferences modal */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -54%) scale(0.92);
  min-width: 320px;
  max-width: 96vw;
  max-height: 80vh;
  background: white;
  border-radius: 20px;
  box-shadow: 0 12px 66px 0 rgba(30,40,26,0.28);
  border: 2px solid #E2E5D8;
  padding: 38px 26px 30px 26px;
  z-index: 10000000;
  display: none;
  flex-direction: column;
  gap: 19px;
  animation: cookieModalIn .67s cubic-bezier(.14,.75,.32,1.1) both;
}
.cookie-modal.open {
  display: flex;
}
@keyframes cookieModalIn { from{opacity: 0; transform:translate(-50%,-58%) scale(0.90);} to{opacity:1; transform:translate(-50%,-54%) scale(1);} }

.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 7px;
}
.cookie-modal .cookie-category {
  padding: 12px 0 10px 0;
  border-bottom: 1px solid #F0F2E8;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 17px;
}
.cookie-modal label {
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: #2D3C38;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--brand-accent);
  width: 17px;
  height: 17px;
  border-radius: 4px;
  margin-right: 5px;
}
.cookie-modal .essential-checkbox[disabled] + label {
  font-style: italic;
  color: #BBBBAA;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 22px;
}

/* =========================================
   Responsive Styles
   ========================================= */
@media (max-width: 1024px) {
  .feature-grid,.card-container,.content-grid { gap: 16px; }
  .card, .feature { min-width: 180px; padding: 16px 10px; font-size: 0.96rem; }
  nav.main-nav { gap: 11px; }
}
@media (max-width: 870px) {
  .container { padding: 0 7px; }
  .feature { min-width: 144px; font-size: 0.95rem; padding: 12px 7px; }
  .testimonial-card { max-width: 99vw; }
  .footer-nav { gap: 11px; }
}
@media (max-width: 768px) {
  .container { padding: 0 5vw; }
  .content-grid, .feature-grid, .card-container { flex-direction: column; gap: 18px; }
  .feature, .card { width: 100%; min-width: 0; }
  .text-image-section { flex-direction: column; gap: 14px; align-items: flex-start; }
  .hero-section { text-align: left; margin-top: 20px; border-radius: 14px; padding: 24px 7px; }
  .section { padding: 24px 3vw; }
  h1 { font-size: 1.42rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.12rem; }
}
@media (max-width: 480px) {
  html { font-size: 97%; }
  .hero-section { padding: 15px 2vw; }
  .section { padding: 13px 1vw; }
  footer { padding: 22px 0 8px 0; }
}

/* =========================================
   Micro-interactions & Utilities
   ========================================= */
button, .cta-primary, .cta-secondary, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.12s, border 0.13s;
}
.card, .feature, .hero-section, .testimonial-card {
  transition: box-shadow 0.15s, transform 0.17s;
}

::-webkit-input-placeholder { color: #A2A9A3; }
:-ms-input-placeholder { color: #A2A9A3; }
::placeholder { color: #A2A9A3; }

/* =========================================
   Miscellaneous/Accessibility
   ========================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
  background: #F4FFC9;
  color: #2D3C38;
  z-index: 99999;
  padding: 7px 18px;
  border-radius: 7px;
}

/* =========================================
   Print Styles – For PDFs/Recipes
   ========================================= */
@media print {
  body, html, .container, .section, .feature, .hero-section, .content-wrapper {
    background: #FFF !important;
    color: #222 !important;
    box-shadow: none !important;
  }
  header, footer, nav, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  h1,h2,h3,h4 { color: #111!important; }
  a, a:visited { color: #3A514C!important; text-decoration: underline; }
  .card, .feature, .testimonial-card { border: 1px solid #AAA !important; }
}
