/* ═══════════════════════════════════════════════════════════════════════════
   Urban Goes Green — Static Site Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
    --green-900: #0b3d20;
    --green-800: #14532d;
    --green-700: #166534;
    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-400: #4ade80;
    --green-100: #dcfce7;
    --green-50:  #f0fdf4;
    --earth-700: #78350f;
    --earth-500: #a16207;
    --earth-100: #fef3c7;
    --red-600:   #dc2626;
    --red-100:   #fee2e2;
    --blue-700:  #1d4ed8;
    --blue-100:  #dbeafe;
    --gray-900:  #111827;
    --gray-700:  #374151;
    --gray-500:  #6b7280;
    --gray-300:  #d1d5db;
    --gray-100:  #f3f4f6;
    --gray-50:   #f9fafb;
    --white:     #ffffff;
    --radius:    8px;
    --radius-lg: 12px;
    --shadow:    0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --max-w:     1200px;
    --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-900); line-height: 1.7; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── Header ──────────────────────────────────────────────────────────────── */
.site-header { background: var(--green-800); padding: 16px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-logo { color: var(--white); font-size: 1.375rem; font-weight: 700; text-decoration: none; }
.site-nav ul { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; }
.site-nav a { color: var(--green-100); font-size: 0.9375rem; font-weight: 500; }
.site-nav a:hover { color: var(--white); text-decoration: none; }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--green-800), var(--green-700)); color: var(--white); padding: 64px 0; text-align: center; }
.hero h1 { font-size: 2.75rem; margin-bottom: 16px; line-height: 1.15; }
.hero__subtitle { font-size: 1.25rem; color: var(--green-100); max-width: 640px; margin: 0 auto 32px; }
.hero__search { max-width: 560px; margin: 0 auto 40px; }
.hero__search form { display: flex; }
.hero__search input[type="search"] {
    flex: 1; padding: 14px 20px; font-size: 1rem; border: 2px solid rgba(255,255,255,0.3);
    border-right: none; border-radius: var(--radius) 0 0 var(--radius); background: rgba(255,255,255,0.15);
    color: var(--white); outline: none;
}
.hero__search input::placeholder { color: rgba(255,255,255,0.7); }
.hero__search input:focus { border-color: var(--green-400); background: rgba(255,255,255,0.2); }
.hero__search button {
    padding: 14px 24px; background: var(--green-500); color: var(--green-900); border: none;
    border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.hero__search button:hover { background: var(--green-400); }

.hero__stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat__number { display: block; font-size: 2rem; font-weight: 800; }
.stat__label { font-size: 0.875rem; color: var(--green-100); }

/* ─── Category Cards ──────────────────────────────────────────────────────── */
.categories { padding: 64px 0; background: var(--gray-50); }
.categories h2 { text-align: center; font-size: 2rem; margin-bottom: 32px; color: var(--green-800); }
.categories__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 640px) { .categories__grid { grid-template-columns: 1fr; } }

.category-card {
    display: block; padding: 40px 32px; border-radius: var(--radius-lg); text-decoration: none;
    color: var(--white); transition: transform 0.2s, box-shadow 0.2s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.category-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.category-card p { font-size: 1rem; opacity: 0.9; margin-bottom: 16px; line-height: 1.6; }
.category-card__cta { font-weight: 700; font-size: 0.9375rem; }
.category-card--edible { background: linear-gradient(135deg, #166534, #15803d); }
.category-card--ornamental { background: linear-gradient(135deg, #7c2d12, #b45309); }

/* ─── Plant Grid ──────────────────────────────────────────────────────────── */
.plant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .plant-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plant-grid { grid-template-columns: 1fr; } }

.plant-card {
    display: block; background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius-lg);
    overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; color: inherit;
}
.plant-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.plant-card__body { padding: 20px; }
.plant-card h3 { font-size: 1.25rem; color: var(--green-800); margin-bottom: 4px; }
.plant-card__scientific { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 8px; }
.plant-card__excerpt { font-size: 0.9375rem; color: var(--gray-700); line-height: 1.5; }

/* ─── Pills / Badges ──────────────────────────────────────────────────────── */
.pill {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px;
}
.pill--edible { background: var(--green-100); color: var(--green-700); }
.pill--ornamental { background: var(--earth-100); color: var(--earth-700); }
.pill--warning { background: var(--red-100); color: var(--red-600); }
.pill--safe { background: var(--green-100); color: var(--green-700); }
.pill--nasa { background: var(--blue-100); color: var(--blue-700); }

/* ─── Featured / Sections ─────────────────────────────────────────────────── */
.featured { padding: 64px 0; }
.featured h2 { text-align: center; font-size: 2rem; margin-bottom: 32px; color: var(--green-800); }
.about-snippet { padding: 48px 0; background: var(--green-50); }
.about-snippet h2 { font-size: 1.75rem; color: var(--green-800); margin-bottom: 16px; }
.about-snippet p { max-width: 800px; font-size: 1.0625rem; color: var(--gray-700); }

/* ─── Category Landing ────────────────────────────────────────────────────── */
.category-landing { padding: 48px 0; }
.category-landing__header { margin-bottom: 40px; }
.category-landing__header h1 { font-size: 2.25rem; color: var(--green-800); margin-bottom: 12px; }
.category-landing__header p { font-size: 1.125rem; color: var(--gray-500); max-width: 700px; }
.category-landing__search { max-width: 560px; margin-bottom: 32px; }
.category-landing__search form { display: flex; }
.category-landing__search input {
    flex: 1; padding: 12px 16px; border: 2px solid var(--gray-300); border-right: none;
    border-radius: var(--radius) 0 0 var(--radius); font-size: 1rem; outline: none;
}
.category-landing__search input:focus { border-color: var(--green-600); }
.category-landing__search button {
    padding: 12px 20px; background: var(--green-700); color: var(--white); border: none;
    border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700; cursor: pointer;
}
.category-landing__list { margin-top: 24px; }
.category-landing__list h2 { font-size: 1.5rem; color: var(--green-800); margin-bottom: 20px; }

/* ─── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb { padding: 16px 0; font-size: 0.875rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li:not(:last-child)::after { content: " › "; color: var(--gray-500); margin-left: 4px; }
.breadcrumb a { color: var(--green-700); }
.breadcrumb [aria-current="page"] { color: var(--gray-500); }

/* ─── Plant Single Page ───────────────────────────────────────────────────── */
.plant-page { padding: 0 0 64px; }
.plant-page__hero { margin-bottom: 32px; }
.plant-page__hero h1 { font-size: 2.25rem; color: var(--green-800); margin-bottom: 4px; line-height: 1.2; }
.plant-page__hero .scientific { font-size: 1.25rem; color: var(--gray-500); font-style: italic; display: block; margin-bottom: 12px; }
.plant-page__hero .tagline { font-size: 1.0625rem; color: var(--gray-700); margin-bottom: 16px; max-width: 720px; }
.plant-page__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.plant-page__layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
@media (max-width: 900px) { .plant-page__layout { grid-template-columns: 1fr; } }

.plant-page__content { min-width: 0; }

/* Quick Facts Sidebar */
.quick-facts {
    background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: var(--radius-lg);
    padding: 24px; position: sticky; top: 24px; align-self: start;
}
.quick-facts h2 { font-size: 1.125rem; color: var(--green-800); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--green-500); }
.quick-facts dl { }
.quick-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); margin-top: 14px; }
.quick-facts dt:first-of-type { margin-top: 0; }
.quick-facts dd { font-weight: 600; color: var(--gray-900); margin: 2px 0 0; }
.quick-facts__mediums { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gray-300); }
.quick-facts__mediums h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); margin-bottom: 8px; }
.quick-facts__mediums ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.quick-facts__mediums li { font-size: 0.8125rem; padding: 4px 10px; border-radius: 4px; }
.medium--yes { background: var(--green-100); color: var(--green-700); font-weight: 600; }
.medium--no { background: var(--gray-100); color: var(--gray-500); text-decoration: line-through; }

@media (max-width: 900px) {
    .quick-facts { position: static; order: -1; }
}

/* TOC */
.toc { background: var(--gray-50); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.toc h2 { font-size: 1rem; color: var(--green-800); margin-bottom: 12px; }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { font-size: 0.9375rem; color: var(--green-700); }

/* Content Sections */
.plant-section { margin-bottom: 40px; }
.plant-section > h2 {
    font-size: 1.5rem; color: var(--green-800); margin-bottom: 16px; padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-300);
}
.plant-section h3 { font-size: 1.125rem; color: var(--earth-500); margin: 20px 0 8px; }
.plant-section p { margin-bottom: 12px; }
.plant-section ul, .plant-section ol { margin: 0 0 12px 24px; }
.plant-section li { margin-bottom: 4px; }

/* Growing Medium Cards */
.medium-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .medium-cards { grid-template-columns: 1fr; } }
.medium-card { padding: 20px; border-radius: var(--radius); text-align: center; border: 2px solid var(--gray-300); }
.medium-card h3 { margin: 0 0 8px; font-size: 1.125rem; }
.medium-card--yes { border-color: var(--green-500); background: var(--green-50); }
.medium-card--yes p { color: var(--green-700); font-weight: 600; }
.medium-card--no { background: var(--gray-50); }
.medium-card--no p { color: var(--gray-500); }

/* Nutrition Table */
.nutrition-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; }
.nutrition-table th, .nutrition-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--gray-300); }
.nutrition-table th { background: var(--gray-50); font-weight: 600; font-size: 0.875rem; }

/* VOC Pills */
.voc-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; }
.voc-list li { background: var(--blue-100); color: var(--blue-700); padding: 4px 12px; border-radius: 20px; font-size: 0.8125rem; font-weight: 600; }

/* FAQ */
.faq-section { margin-bottom: 40px; }
.faq-section > h2 { font-size: 1.5rem; color: var(--green-800); margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-300); }
.faq-item { border: 1px solid var(--gray-300); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
    padding: 16px 20px; font-weight: 600; font-size: 1rem; cursor: pointer;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
    background: var(--gray-50);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--green-700); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--gray-300); }
.faq-item .faq-answer { padding: 16px 20px; line-height: 1.7; }

/* Sources */
.sources { font-size: 0.9375rem; }
.sources h2 { font-size: 1.25rem; color: var(--green-800); margin-bottom: 12px; }
.sources ul { list-style: none; padding: 0; }
.sources li { padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.sources a { color: var(--green-700); }
.sources .date { color: var(--gray-500); font-size: 0.8125rem; }

/* CTA */
.plant-cta { background: var(--green-800); color: var(--white); padding: 32px; border-radius: var(--radius-lg); text-align: center; margin-top: 40px; }
.plant-cta h2 { color: var(--white); border: none; margin-bottom: 8px; font-size: 1.375rem; }
.plant-cta p { color: var(--green-100); margin: 0; }
.plant-cta a { color: var(--green-400); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding: 48px 0 24px; margin-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 640px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__col h3 { color: var(--white); font-size: 1.125rem; margin-bottom: 8px; }
.footer__col h4 { color: var(--white); font-size: 0.9375rem; margin-bottom: 8px; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 6px; }
.footer__col a { color: var(--gray-300); font-size: 0.9375rem; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid var(--gray-700); padding-top: 16px; font-size: 0.8125rem; color: var(--gray-500); }

/* ─── Directory Hub (plants/index.html) ───────────────────────────────────── */
.directory-hub { padding: 48px 0; }
.directory-hub__header { text-align: center; margin-bottom: 40px; }
.directory-hub__header h1 { font-size: 2.5rem; color: var(--green-800); margin-bottom: 8px; }
.directory-hub__header p { font-size: 1.125rem; color: var(--gray-500); }

/* ─── Utility ─────────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-32 { margin-bottom: 32px; }
