/* ===== CSS Variables ===== */
:root {
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-500: #52b788;
  --green-100: #d8f3dc;
  --green-50: #f0fdf4;
  --cream: #fefae0;
  --warm-white: #fffdf7;
  --gray-900: #1a1a2e;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --accent: #e07a5f;
  --accent-light: #f4a261;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1140px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--gray-900); line-height: 1.3; }
h1 { font-size: 2.5rem; letter-spacing: -0.5px; }
h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.35rem; margin: 1.75rem 0 0.75rem; }
p { margin-bottom: 1.25rem; }
a { color: var(--green-700); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-500); }

/* ===== Layout ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== Header / Nav ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: var(--gray-700); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--green-600); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-700); }

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1rem 1.5rem; gap: 1rem; border-bottom: 1px solid var(--gray-300); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
}

/* ===== Hero / Homepage ===== */
.hero {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--cream) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
}
.hero h1 { font-size: 2.75rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: var(--gray-500); max-width: 650px; margin: 0 auto 2rem; }
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn-primary { background: var(--green-600); color: var(--white); }
.btn-primary:hover { background: var(--green-700); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 2px solid var(--green-600); color: var(--green-600); }
.btn-outline:hover { background: var(--green-600); color: var(--white); }

/* ===== Hero with BG image ===== */
.hero.has-bg {
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero.has-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 253, 247, 0.85);
  z-index: 0;
}
.hero.has-bg > * { position: relative; z-index: 1; }

/* ===== Article images ===== */
.article-img {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--green-50);
}

/* ===== Card Grid ===== */
.section-title { text-align: center; margin: 3rem 0 2rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--gray-100);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--green-50);
  position: relative;
}
.card-body { padding: 1.5rem; }
.card-body .category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-600);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card-body h3 { font-size: 1.2rem; margin: 0.5rem 0; }
.card-body h3 a { color: var(--gray-900); }
.card-body p { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 1rem; }
.card-body .meta { font-size: 0.85rem; color: var(--gray-500); display: flex; gap: 1rem; }

/* ===== Blog Post ===== */
.article-header {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--cream) 100%);
  padding: 3rem 1.5rem;
  text-align: center;
}
.article-header .category { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--green-600); font-weight: 700; margin-bottom: 0.75rem; display: inline-block; background: var(--green-100); padding: 0.3rem 1rem; border-radius: 50px; }
.article-header h1 { max-width: 800px; margin: 0 auto 1rem; }
.article-header .meta { color: var(--gray-500); font-size: 0.95rem; display: flex; justify-content: center; gap: 1.5rem; }
.article-content {
  max-width: 750px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.article-content h2 {
  border-bottom: 2px solid var(--green-100);
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
}
.article-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

/* ===== Recipe Card ===== */
.recipe-card {
  background: var(--white);
  border: 2px solid var(--green-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}
.recipe-card h3 { color: var(--green-700); margin-top: 0; }
.recipe-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.recipe-meta-item { display: flex; flex-direction: column; align-items: center; }
.recipe-meta-item .value { font-size: 1.3rem; font-weight: 700; color: var(--green-700); }
.recipe-meta-item .label { font-size: 0.8rem; color: var(--gray-500); }
.recipe-ingredients, .recipe-instructions { margin-top: 1.5rem; }
.recipe-ingredients ul, .recipe-instructions ol { padding-left: 1.5rem; }
.recipe-ingredients li, .recipe-instructions li { margin-bottom: 0.5rem; }
.nutrition-box {
  background: var(--green-50);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
}

/* ===== Tip Box ===== */
.tip-box {
  background: var(--cream);
  border-left: 4px solid var(--accent-light);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.tip-box strong { color: var(--accent); }

/* ===== CTA / Newsletter ===== */
.cta-box {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-box h2 { color: var(--white); margin-top: 0; }
.cta-box p { color: var(--green-100); }
.cta-form { display: flex; gap: 0.75rem; max-width: 450px; margin: 1.5rem auto 0; }
.cta-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}
.cta-form button {
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.cta-form button:hover { background: var(--accent-light); }

@media (max-width: 500px) {
  .cta-form { flex-direction: column; }
}

/* ===== Affiliate Disclosure ===== */
.affiliate-disclosure {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ===== Related Posts ===== */
.related-posts { background: var(--gray-100); padding: 3rem 1.5rem; margin-top: 3rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; max-width: var(--max-width); margin: 0 auto; }

/* ===== Footer ===== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 1.5rem 1.5rem;
  font-size: 0.9rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h4 { color: var(--white); margin: 0 0 1rem; font-family: var(--font-sans); font-size: 1rem; }
.footer-col a { color: var(--gray-300); display: block; margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--green-500); }
.footer-bottom { max-width: var(--max-width); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--gray-700); text-align: center; color: var(--gray-500); font-size: 0.85rem; }

/* ===== About Page ===== */
.about-hero { text-align: center; padding: 3rem 1.5rem; }
.about-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-100), var(--cream));
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.about-content { max-width: 750px; margin: 0 auto; padding: 0 1.5rem 3rem; }

/* ===== Contact Form ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-sans);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ===== Breadcrumb ===== */
.breadcrumb { max-width: 750px; margin: 1rem auto; padding: 0 1.5rem; font-size: 0.9rem; color: var(--gray-500); }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb span { color: var(--gray-700); }

/* ===== Table of Contents ===== */
.toc {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.toc h3 { margin-top: 0; font-family: var(--font-sans); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); }
.toc ol { padding-left: 1.25rem; }
.toc li { margin-bottom: 0.35rem; }
.toc a { font-size: 0.95rem; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.25rem;
}

/* ===== Print ===== */
@media print {
  .site-header, .site-footer, .cta-box, .related-posts { display: none; }
  .article-content { max-width: 100%; }
}
