/* ===== The Heirloom Garden Guide — Fresh Layout v2 ===== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f8f7f2;
  --bg-alt: #f0eee6;
  --card: #ffffff;
  --text: #1c2a1c;
  --text-muted: #5d6b5d;
  --primary: #2a4a2a;
  --primary-light: #3d6b3d;
  --accent: #b8860b;
  --accent-light: #d4a017;
  --accent-bg: #fdf6e3;
  --border: #e2dfd7;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --max-width: 1280px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  letter-spacing: -0.015em;
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { font-size: 1rem; }

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 2rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 2rem; }

@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 1.25rem; }
}

/* ===== Header — split bar with top accent strip ===== */
.top-bar {
  background: var(--accent);
  height: 4px;
  width: 100%;
}
.site-header {
  position: sticky; top: 4px; z-index: 100;
  background: rgba(248,247,242,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--primary); font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 700;
  white-space: nowrap;
}
.logo svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--primary); 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.15rem; flex-wrap: wrap; align-items: center; }
.main-nav a {
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  padding: 0.4rem 0.7rem; border-radius: var(--radius-sm);
  font-family: var(--font-body);
  position: relative;
}
.main-nav a:hover { color: var(--primary); background: var(--bg-alt); }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 0.7rem; right: 0.7rem;
  height: 2px; background: var(--accent); border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: var(--bg);
    padding: 0.5rem 1.25rem; gap: 0; box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--border); }
  .main-nav a.active::after { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: var(--transition); border: 2px solid transparent;
  font-family: var(--font-body);
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-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: 1rem; }
.btn svg { width: 18px; height: 18px; }

.affiliate-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem; background: var(--primary); color: #fff;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
  transition: var(--transition); text-decoration: none;
  font-family: var(--font-body);
}
.affiliate-cta:hover { background: var(--primary-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.6rem; font-style: italic;
}

/* ===== Hero — split layout, text left, image right ===== */
.hero {
  background: var(--bg);
  padding: var(--space-9) 0 var(--space-8);
  position: relative;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-7); align-items: center;
}
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-6); }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent);
  margin-bottom: var(--space-4);
}
.hero-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { margin-bottom: var(--space-4); color: var(--text); }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; margin-bottom: var(--space-6); }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }

.hero-image-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-badge {
  position: absolute; bottom: var(--space-4); left: var(--space-4);
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4);
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-image-badge .score { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.hero-image-badge .label { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-body); }

/* ===== Sections ===== */
.section { padding: var(--space-8) 0; }
.section-alt { background: var(--bg-alt); }
.section-title { margin-bottom: var(--space-7); }
.section-title h2 { margin-bottom: var(--space-2); }
.section-title p { color: var(--text-muted); max-width: 580px; }
.section-title.center { text-align: center; }
.section-title.center p { margin: 0 auto; }

/* ===== Cards — horizontal accent bar, rounded, shadow ===== */
.card-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition); box-shadow: var(--shadow-xs);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card-body { padding: var(--space-5); }
.card-body h3 { margin-bottom: var(--space-2); font-size: 1.2rem; }
.card-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.card-badge {
  display: inline-block; padding: 0.25rem 0.7rem; background: var(--accent-bg);
  color: var(--accent); border-radius: var(--radius-sm); font-size: 0.72rem;
  font-weight: 600; margin-bottom: var(--space-3);
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.04em;
}

/* ===== 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.6rem; font-weight: 700; color: var(--primary); font-family: var(--font-head); }
.rating-bar {
  height: 6px; background: var(--bg-alt); border-radius: 3px; overflow: hidden;
  margin: 0.5rem 0;
}
.rating-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; 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.875rem; font-weight: 600; font-family: var(--font-body); }
.rating-row .bar { flex: 1; height: 6px; background: var(--bg-alt); border-radius: 3px; overflow: hidden; }
.rating-row .bar-fill { height: 100%; background: var(--accent); border-radius: 3px; }
.rating-row .score { width: 40px; text-align: right; font-weight: 700; font-size: 0.875rem; color: var(--primary); font-family: var(--font-head); }

/* ===== Score Card ===== */
.score-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-6); margin-bottom: var(--space-6); text-align: center;
  box-shadow: var(--shadow-sm);
}
.score-card .big-score {
  font-family: var(--font-head); font-size: 3.5rem; font-weight: 700; color: var(--primary);
}
.score-card .big-score span { font-size: 1.5rem; color: var(--text-muted); font-weight: 400; }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.comparison-table {
  width: 100%; border-collapse: collapse; min-width: 700px;
  font-size: 0.875rem; font-family: var(--font-body);
  background: var(--card);
}
table.comparison-table th, table.comparison-table td {
  padding: 0.85rem 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; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em;
}
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: var(--space-5); }
@media (max-width: 700px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons h4 { margin-bottom: var(--space-3); display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.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.875rem; color: var(--text-muted); font-family: var(--font-body); }
.pros li::before { content: '✓ '; color: #2d7a2d; font-weight: 700; }
.cons li::before { content: '✗ '; color: #c0392b; font-weight: 700; }

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

.article-meta { display: flex; gap: var(--space-3); font-size: 0.8rem; color: var(--text-muted); margin-bottom: var(--space-5); flex-wrap: wrap; font-family: var(--font-body); }
.article-meta span { display: flex; align-items: center; gap: 0.3rem; }
.article-hero { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--space-6); }

/* ===== CTA Banner — wide rounded card ===== */
.cta-banner {
  background: var(--primary); color: #fff; padding: var(--space-7);
  text-align: center; border-radius: var(--radius-lg);
  margin: var(--space-6) 0; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(184,134,11,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 { color: #fff; margin-bottom: var(--space-2); position: relative; }
.cta-banner p { opacity: 0.85; margin-bottom: var(--space-5); position: relative; }
.cta-banner .affiliate-cta { background: var(--accent); color: #fff; position: relative; }
.cta-banner .affiliate-cta:hover { background: var(--accent-light); }
.cta-banner .disclosure { font-size: 0.75rem; opacity: 0.6; margin-top: var(--space-3); position: relative; }

/* ===== Footer — dark with accent top border ===== */
.site-footer {
  background: var(--primary); color: rgba(255,255,255,0.75);
  padding: var(--space-8) 0 var(--space-5);
  border-top: 4px solid var(--accent);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6);
  margin-bottom: var(--space-6);
}
@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: var(--space-3); font-size: 0.95rem; font-family: var(--font-head); }
.footer-grid p { font-size: 0.85rem; opacity: 0.65; font-family: var(--font-body); }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 0.85rem; display: block; padding: 0.2rem 0; font-family: var(--font-body); }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-5);
  text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.45);
  font-family: var(--font-body);
}
.footer-disclaimer { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: var(--space-3); max-width: 800px; margin-left: auto; margin-right: auto; }

/* ===== Misc ===== */
.badge {
  display: inline-block; padding: 0.25rem 0.65rem; border-radius: var(--radius-sm);
  font-size: 0.72rem; font-weight: 600; font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.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: var(--space-6) 0; }

.info-box {
  background: var(--accent-bg); border: 1px solid rgba(184,134,11,0.2);
  border-radius: var(--radius); padding: var(--space-5); margin: var(--space-5) 0;
}
.info-box p { color: var(--text-muted); font-size: 0.875rem; font-family: var(--font-body); }
.info-box strong { color: var(--accent); }

.breadcrumb { display: flex; gap: 0.4rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: var(--space-4); font-family: var(--font-body); }
.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: var(--space-2); }
.tag {
  padding: 0.35rem 0.8rem; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.78rem; color: var(--text-muted);
  font-family: var(--font-body); font-weight: 500;
}

/* ===== Feature Grid — horizontal cards with icon left ===== */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.feature-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-5); background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--transition);
}
.feature-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feature-item .icon-wrap {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--accent-bg); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.feature-item svg { width: 22px; height: 22px; color: var(--accent); }
.feature-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.feature-item p { font-size: 0.82rem; color: var(--text-muted); }

.sitemap-list { list-style: none; }
.sitemap-list li { padding: 0.4rem 0; }
.sitemap-list a { font-size: 0.95rem; font-family: var(--font-body); }

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

/* ===== Stat row ===== */
.stat-row { display: flex; gap: var(--space-6); flex-wrap: wrap; margin: var(--space-5) 0; }
.stat-item { text-align: center; }
.stat-item .num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--accent); }
.stat-item .desc { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-body); }

/* ===== Alternatives cards ===== */
.alt-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: var(--space-5); overflow: hidden; box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
.alt-card:hover { box-shadow: var(--shadow-sm); }
.alt-card-body { padding: var(--space-6); }
.alt-card-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.alt-card-header h3 { margin-bottom: 0.2rem; }
.alt-card-header .best-for { color: var(--text-muted); font-size: 0.82rem; font-family: var(--font-body); }
.alt-card-header .score-badge { text-align: right; }
.alt-card-header .score-badge .num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.alt-card-header .score-badge .total { color: var(--text-muted); font-size: 0.85rem; }
