/* Humus Origen - Official Stylesheet (SEO & Core Web Vitals Optimized) */
:root {
    --primary-dark: #122a21;
    --primary: #1b4332;
    --primary-mid: #2d6a4f;
    --primary-light: #52b788;
    --accent-gold: #d4a373;
    --accent-earth: #8c5a3c;
    --bg-cream: #f9fbf9;
    --bg-card: #ffffff;
    --bg-muted: #eef5f0;
    --text-main: #1e2923;
    --text-muted: #4a5d52;
    --border-color: #d8e6dc;
    --shadow-sm: 0 2px 8px rgba(18, 42, 33, 0.06);
    --shadow-md: 0 8px 24px rgba(18, 42, 33, 0.10);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --max-w: 1180px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-main);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

a {
    color: var(--primary-mid);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
    color: var(--accent-earth);
}

.container {
    width: 92%;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* Top Bar */
.topbar {
    background-color: var(--primary-dark);
    color: #d8f3dc;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--accent-gold);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topbar a {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Header & Navigation */
.site-header {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    gap: 1.5rem;
}

.brand-logo img {
    height: 54px;
    width: auto;
    border-radius: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--bg-muted);
    color: var(--primary-mid);
}

.nav-cta {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    padding: 0.55rem 1.1rem !important;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-gold);
}

.nav-cta:hover {
    background-color: var(--primary-mid) !important;
}

/* Breadcrumbs */
.breadcrumb-bar {
    background-color: var(--bg-muted);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: var(--text-muted);
}

.breadcrumb-list li+li::before {
    content: "›";
    margin-right: 0.5rem;
    color: var(--accent-earth);
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #ffffff;
    padding: 3.5rem 0;
    border-bottom: 4px solid var(--accent-gold);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.badge-pill {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.4rem;
    line-height: 1.22;
    margin-bottom: 1.15rem;
    color: #ffffff;
}

.hero-lead {
    font-size: 1.1rem;
    color: #d8f3dc;
    margin-bottom: 1.5rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.88rem;
    color: #b7e4c7;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: #e6b88a;
    color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #95d5b2;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Main Content Layout (Article + Sidebar) */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    padding: 3rem 0;
    align-items: start;
}

.article-box {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.article-box h2 {
    color: var(--primary-dark);
    font-size: 1.65rem;
    margin: 2.2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-muted);
    line-height: 1.3;
}

.article-box h2:first-of-type {
    margin-top: 0.5rem;
}

.article-box h3 {
    color: var(--primary);
    font-size: 1.28rem;
    margin: 1.6rem 0 0.75rem;
}

.article-box p {
    margin-bottom: 1.25rem;
    color: var(--text-main);
    text-align: justify;
}

.article-box ul,
.article-box ol {
    margin: 0 0 1.5rem 1.5rem;
}

.article-box li {
    margin-bottom: 0.65rem;
}

.figure-block {
    margin: 1.85rem 0;
    background: var(--bg-muted);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.figure-block figcaption {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    text-align: center;
    font-style: italic;
}

/* Callout & Highlight Boxes */
.callout-box {
    background: linear-gradient(to right, #eef7f1, #ffffff);
    border-left: 5px solid var(--primary-mid);
    padding: 1.35rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.75rem 0;
    box-shadow: var(--shadow-sm);
}

.callout-title {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 1.75rem 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    background: var(--bg-card);
}

.data-table th {
    background-color: var(--primary);
    color: #ffffff;
    text-align: left;
    padding: 0.9rem 1rem;
    font-weight: 700;
}

.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:nth-child(even) {
    background-color: var(--bg-muted);
}

/* Sidebar Widgets */
.sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-gold);
    font-weight: 700;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.toc-list a {
    color: var(--text-main);
    display: block;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
}

.toc-list a:hover {
    background: var(--bg-muted);
    color: var(--primary-mid);
    font-weight: 600;
}

/* Interactive Calculator Widget */
.calc-box {
    background: var(--bg-muted);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-light);
    margin: 2rem 0;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #b7e4c7;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: #ffffff;
}

.calc-result {
    margin-top: 1.2rem;
    padding: 1rem;
    background: var(--primary-dark);
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* E-E-A-T Author Bio Box */
.author-box {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 1.5rem;
    background: var(--bg-muted);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 2.5rem;
    align-items: center;
}

.author-avatar {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.85rem;
    background: #ffffff;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    background: var(--bg-muted);
    border: none;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 1.15rem 1.25rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-main);
}

/* Cards Grid for Homepage */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin: 2rem 0;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.22rem;
    color: var(--primary-dark);
    margin-bottom: 0.65rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-dark);
    color: #d8f3dc;
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 4px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-title {
    color: var(--accent-gold);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: #b7e4c7;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: #95d5b2;
}

@media (max-width: 960px) {
    .hero-grid,
    .main-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
    .hero-title {
        font-size: 1.85rem;
    }
    .article-box {
        padding: 1.5rem;
    }
    .calc-grid,
    .author-box {
        grid-template-columns: 1fr;
    }
}
