/* =====================================================
   DeepRootWellness — Main Stylesheet
   Aesthetic: Organic / Editorial / Deep Forest
===================================================== */

:root {
    --forest: #1a2e1a;
    --moss: #2d4a2d;
    --sage: #5a7a5a;
    --leaf: #7fa87f;
    --mint: #c8dfc8;
    --cream: #f7f3ed;
    --warm: #ede8df;
    --gold: #c4973a;
    --text: #2a2a2a;
    --muted: #6b6b6b;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(26,46,26,0.10);
    --shadow-lg: 0 8px 48px rgba(26,46,26,0.15);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.2;
    color: var(--forest);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

a { color: var(--moss); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
    background: var(--forest);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.header-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    color: var(--cream); font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; font-weight: 400;
}
.logo:hover { color: var(--mint); }
.logo strong { font-weight: 700; color: var(--mint); }
.logo-leaf { font-size: 1.8rem; }
.main-nav { display: flex; gap: 32px; }
.main-nav a {
    color: var(--mint); font-size: 0.9rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    font-weight: 500;
}
.main-nav a:hover { color: var(--gold); }
.nav-toggle {
    display: none; background: none; border: none;
    color: var(--cream); font-size: 1.5rem; cursor: pointer;
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, var(--forest) 0%, var(--moss) 60%, #3d5c3d 100%);
    color: var(--cream);
    padding: 80px 0 60px;
    text-align: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero h1 { color: var(--cream); margin-bottom: 16px; }
.hero p { font-size: 1.15rem; color: var(--mint); max-width: 600px; margin: 0 auto 32px; }

/* ---- Breadcrumb ---- */
.breadcrumb {
    background: var(--warm); padding: 10px 0;
    font-size: 0.85rem; color: var(--muted);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.breadcrumb a { color: var(--sage); }
.breadcrumb span { margin: 0 6px; }

/* ---- Section ---- */
.section { padding: 60px 0; }
.section-title {
    text-align: center; margin-bottom: 48px;
}
.section-title h2 { margin-bottom: 8px; }
.section-title p { color: var(--muted); font-size: 1rem; }

/* ---- Topic Grid (Home) ---- */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.topic-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    border-left: 4px solid var(--leaf);
    cursor: pointer;
}
.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--gold);
}
.topic-icon { font-size: 2.5rem; margin-bottom: 12px; }
.topic-card h3 { margin-bottom: 8px; font-size: 1.3rem; }
.topic-card p { font-size: 0.9rem; color: var(--muted); }
.topic-card .card-arrow {
    display: inline-block; margin-top: 16px;
    color: var(--sage); font-weight: 500; font-size: 0.85rem;
}
.topic-card:hover .card-arrow { color: var(--gold); }

/* ---- Subtopic List ---- */
.subtopic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.subtopic-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column;
}
.subtopic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.subtopic-card h3 { margin-bottom: 8px; }
.subtopic-card p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.btn {
    display: inline-block; padding: 10px 22px;
    border-radius: 8px; font-size: 0.9rem;
    font-weight: 500; transition: all 0.2s; cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}
.btn-primary {
    background: var(--moss); color: var(--white);
    border: 2px solid var(--moss);
}
.btn-primary:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn-outline {
    background: transparent; color: var(--moss);
    border: 2px solid var(--moss);
}
.btn-outline:hover { background: var(--moss); color: var(--white); }
.btn-gold {
    background: var(--gold); color: var(--white);
    border: 2px solid var(--gold); font-weight: 600;
}
.btn-gold:hover { background: #b8872e; border-color: #b8872e; color: var(--white); }
.btn-amazon {
    background: #ff9900; color: #111;
    border: 2px solid #ff9900; font-weight: 600;
}
.btn-amazon:hover { background: #e68900; border-color: #e68900; }
.btn-ebay {
    background: #e43137; color: var(--white);
    border: 2px solid #e43137; font-weight: 600;
}
.btn-ebay:hover { background: #c0272d; border-color: #c0272d; }

/* ---- Article List ---- */
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-card {
    background: var(--white);
    border-radius: var(--radius);
    display: grid; grid-template-columns: 200px 1fr;
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.article-card img { width: 200px; height: 140px; object-fit: cover; }
.article-card-body { padding: 20px 24px; }
.article-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.article-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.article-meta { font-size: 0.8rem; color: var(--leaf); font-weight: 500; }

/* ---- Article Page ---- */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
.article-content { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.article-content img.featured { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; }
.article-content h1 { margin-bottom: 16px; }
.article-content .article-meta { margin-bottom: 24px; color: var(--leaf); font-size: 0.85rem; }
.article-content .body-text p { margin-bottom: 16px; }
.article-content .body-text h2 { margin: 32px 0 12px; }
.article-content .body-text h3 { margin: 24px 0 10px; }
.article-content .body-text ul, .article-content .body-text ol { padding-left: 24px; margin-bottom: 16px; }

/* ---- Sidebar ---- */
.sidebar {}
.sidebar-widget {
    background: var(--white); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.sidebar-widget h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; margin-bottom: 16px;
    padding-bottom: 10px; border-bottom: 2px solid var(--mint);
    color: var(--forest);
}

/* ---- Product Cards (in article sidebar) ---- */
.product-mini-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--warm);
}
.product-mini-card:last-child { border-bottom: none; }
.product-mini-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.product-mini-info h5 { font-size: 0.9rem; margin-bottom: 2px; font-family: 'DM Sans', sans-serif; }
.product-mini-info a { font-size: 0.8rem; color: var(--gold); font-weight: 500; }

/* ---- Product Page ---- */
.product-header {
    background: var(--white); border-radius: var(--radius);
    padding: 40px; box-shadow: var(--shadow); margin-bottom: 32px;
    display: grid; grid-template-columns: 300px 1fr; gap: 40px;
}
.product-header img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.product-header-info h1 { margin-bottom: 12px; }
.product-header-info .category-tag {
    display: inline-block; background: var(--mint);
    color: var(--forest); font-size: 0.8rem; font-weight: 500;
    padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.product-header-info .description { color: var(--muted); margin-bottom: 24px; }

/* ---- Affiliate Product Grid ---- */
.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px; margin-top: 24px;
}
.affiliate-card {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 3px solid var(--leaf);
}
.affiliate-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.affiliate-card img { width: 100%; height: 180px; object-fit: cover; }
.affiliate-card-body { padding: 16px; }
.affiliate-card h4 { font-size: 0.95rem; margin-bottom: 6px; font-family: 'DM Sans', sans-serif; font-weight: 500; }
.affiliate-card .price { font-size: 1.3rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.affiliate-card .rating { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.affiliate-card .rating span { color: #f4a62a; }
.affiliate-card .site-badge {
    font-size: 0.75rem; font-weight: 600; padding: 2px 8px;
    border-radius: 4px; margin-bottom: 10px; display: inline-block;
}
.badge-amazon { background: #fff3cd; color: #856404; }
.badge-ebay { background: #fde; color: #c0272d; }

/* ---- Related Topics (on product page) ---- */
.related-topics { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.topic-tag {
    background: var(--mint); color: var(--forest);
    padding: 6px 16px; border-radius: 20px; font-size: 0.85rem;
    font-weight: 500; transition: all 0.2s;
}
.topic-tag:hover { background: var(--forest); color: var(--cream); }

/* ---- Page Header ---- */
.page-header {
    background: linear-gradient(135deg, var(--forest), var(--moss));
    color: var(--cream); padding: 60px 0 48px;
}
.page-header h1 { color: var(--cream); margin-bottom: 10px; }
.page-header p { color: var(--mint); font-size: 1.05rem; }
.page-header .topic-icon-lg { font-size: 3rem; margin-bottom: 12px; }

/* ---- Products Listing ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card img { width: 100%; height: 180px; object-fit: cover; }
.product-card-body { padding: 20px; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.product-card .category-tag {
    display: inline-block; background: var(--mint);
    color: var(--forest); font-size: 0.75rem; padding: 3px 10px;
    border-radius: 12px; margin-bottom: 10px;
}
.product-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }

/* ---- Disclaimer Box ---- */
.disclaimer-box {
    background: #fffbeb; border: 1px solid #f4a62a;
    border-radius: var(--radius); padding: 16px 20px;
    font-size: 0.85rem; color: #856404; margin: 24px 0;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--forest); color: var(--mint);
    padding: 60px 0 0;
}
.footer-inner {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 40px; padding-bottom: 40px;
}
.footer-brand .logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; color: var(--cream);
}
.footer-brand .logo-text strong { color: var(--mint); }
.footer-brand p { margin-top: 10px; font-size: 0.9rem; color: #8aab8a; }
.footer-links h4 {
    color: var(--cream); font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem; margin-bottom: 14px;
}
.footer-links a {
    display: block; color: #8aab8a; font-size: 0.9rem;
    margin-bottom: 8px; transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid var(--moss);
    padding: 20px 0; text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: #6a8a6a; margin-bottom: 4px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; }
    .product-header { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .article-card { grid-template-columns: 1fr; }
    .article-card img { width: 100%; height: 200px; }
}
@media (max-width: 640px) {
    .main-nav { display: none; flex-direction: column; position: absolute; top: 65px; left: 0; right: 0; background: var(--forest); padding: 20px; }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .footer-inner { grid-template-columns: 1fr; }
    .topic-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
    .topic-grid { grid-template-columns: 1fr; }
}
