/* ===== The Heirloom Garden Guide — Pure HTML/CSS ===== */

:root {
  --bg: #faf9f5;
  --bg-alt: #f5f3ec;
  --card: #fffefb;
  --text: #1a2e1a;
  --text-muted: #5a6b5a;
  --primary: #2d4a2d;
  --primary-light: #3d6b3d;
  --accent: #b8860b;
  --accent-light: #d4a017;
  --accent-bg: #fdf6e3;
  --border: #e0ddd5;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary);
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  color: #fff; font-size: 1.25rem; font-weight: 700;
  white-space: nowrap;
}
.logo svg { width: 28px; height: 28px; flex-shrink: 0; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block; width: 24px; height: 3px;
  background: #fff; border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.main-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,0.85); font-size: 0.9rem;
  padding: 0.4rem 0.7rem; border-radius: var(--radius);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.main-nav a.active { color: #fff; background: rgba(255,255,255,0.18); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: var(--primary);
    padding: 0.5rem 1rem; gap: 0; box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: var(--transition); border: 2px solid transparent;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { background: var(--bg-alt); border-color: var(--primary); }
.btn-large { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }

.affiliate-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem; background: var(--accent); color: #fff;
  border-radius: var(--radius); font-weight: 600; font-size: 1rem;
  transition: var(--transition); text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.affiliate-cta:hover { background: var(--accent-light); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.affiliate-cta svg { width: 20px; height: 20px; }
.affiliate-disclosure {
  font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; font-style: italic;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a1a 100%);
  color: #fff; padding: 4rem 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/botanical-seeds-hero.webp') center/cover;
  opacity: 0.15;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 1rem; max-width: 700px; }
.hero p { font-size: 1.15rem; max-width: 600px; margin-bottom: 2rem; opacity: 0.9; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ===== Cards ===== */
.card-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.card-body p { color: var(--text-muted); font-size: 0.95rem; }
.card-badge {
  display: inline-block; padding: 0.2rem 0.6rem; background: var(--accent-bg);
  color: var(--accent); border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  margin-bottom: 0.75rem; font-family: -apple-system, sans-serif;
}

/* ===== Rating ===== */
.rating-display { display: flex; align-items: center; gap: 0.5rem; }
.rating-stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 2px; }
.rating-number { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.rating-bar {
  height: 8px; background: var(--border); border-radius: 4px; overflow: hidden;
  margin: 0.5rem 0;
}
.rating-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.6s ease; }

.rating-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.rating-row .label { width: 140px; font-size: 0.9rem; font-weight: 600; }
.rating-row .bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.rating-row .bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.rating-row .score { width: 40px; text-align: right; font-weight: 700; font-size: 0.9rem; color: var(--primary); }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.comparison-table {
  width: 100%; border-collapse: collapse; min-width: 700px;
  font-size: 0.9rem;
}
table.comparison-table th, table.comparison-table td {
  padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border);
}
table.comparison-table th {
  background: var(--primary); color: #fff; font-weight: 600;
  position: sticky; top: 0;
}
table.comparison-table tr:nth-child(even) { background: var(--bg-alt); }
table.comparison-table tr:hover { background: var(--accent-bg); }
table.comparison-table .dim { font-weight: 600; color: var(--primary); }

/* ===== Pros/Cons ===== */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons h4 { margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.pros h4 { color: #2d7a2d; }
.cons h4 { color: #c0392b; }
.pros ul, .cons ul { list-style: none; }
.pros li, .cons li { padding: 0.3rem 0; font-size: 0.9rem; color: var(--text-muted); }
.pros li::before { content: '✓ '; color: #2d7a2d; font-weight: 700; }
.cons li::before { content: '✗ '; color: #c0392b; font-weight: 7 00; }

/* ===== Blog Article ===== */
.article-content h2 { margin: 2rem 0 0.75rem; color: var(--primary); }
.article-content h3 { margin: 1.5rem 0 0.5rem; }
.article-content p { margin-bottom: 1rem; color: var(--text-muted); }
.article-content ul, .article-content ol { margin: 0 0 1rem 1.5rem; color: var(--text-muted); }
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
  border-left: 4px solid var(--accent); padding-left: 1rem;
  font-style: italic; color: var(--text-muted); margin: 1rem 0;
}
.article-content strong { color: var(--text); }

.article-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.article-hero { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff; padding: 3rem 0; text-align: center; border-radius: var(--radius);
  margin: 2rem 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 1.5rem; }
.cta-banner .affiliate-cta { background: #fff; color: var(--accent); }
.cta-banner .affiliate-cta:hover { background: var(--bg); }

/* ===== Footer ===== */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.8); padding: 3rem 0 1.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; margin-bottom: 0.75rem; font-size: 1rem; }
.footer-grid a { color: rgba(255,255,255,0.7); font-size: 0.85rem; display: block; padding: 0.2rem 0; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem;
  text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.footer-disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 1rem; max-width: 800px; margin-left: auto; margin-right: auto; }

/* ===== Misc ===== */
.badge {
  display: inline-block; padding: 0.25rem 0.65rem; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; font-family: -apple-system, sans-serif;
}
.badge-accent { background: var(--accent-bg); color: var(--accent); }
.badge-green { background: #e8f5e9; color: #2d7a2d; }
.badge-red { background: #fbe9e7; color: #c0392b; }

.divider { height: 1px; background: var(--border); margin: 2rem 0; }

.info-box {
  background: var(--accent-bg); border: 1px solid rgba(184,134,11,0.3);
  border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0;
}
.info-box p { color: var(--text-muted); font-size: 0.9rem; }
.info-box strong { color: var(--accent); }

.breadcrumb { display: flex; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--border); }

.fade-in { animation: fadeIn 0.6s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.slide-up { animation: slideUp 0.5s ease-out forwards; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  padding: 0.3rem 0.7rem; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 20px; font-size: 0.8rem; color: var(--text-muted);
  font-family: -apple-system, sans-serif;
}

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature-item { text-align: center; padding: 1.5rem; }
.feature-item svg { width: 40px; height: 40px; color: var(--accent); margin: 0 auto 0.75rem; }
.feature-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature-item p { font-size: 0.85rem; color: var(--text-muted); }

.sitemap-list { list-style: none; }
.sitemap-list li { padding: 0.4rem 0; }
.sitemap-list a { font-size: 1rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.7rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem; background: var(--card);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
