/* The Villagers — Shared Design Tokens & Components */

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

:root {
    --sage: #4a7c59;
    --sage-light: #6b9e7a;
    --sage-dark: #2d5a3a;
    --warm: #f5f0e8;
    --warm-deep: #ebe3d5;
    --clay: #c4956a;
    --clay-light: #e8c9a8;
    --text: #2a2a2a;
    --text-soft: #5a5a5a;
    --text-light: #8a8a8a;
    --white: #ffffff;
    --danger: #c0392b;
    --danger-light: #fef0ee;
    --info: #2980b9;
    --info-light: #eef6fc;
    --success: #27ae60;
    --success-light: #eefbf3;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: var(--text);
    background: var(--warm);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── Navigation ─── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196, 149, 106, 0.15);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--sage-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand span {
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--sage-dark);
    background: rgba(74, 124, 89, 0.08);
}

.nav-links a.active {
    color: var(--sage-dark);
    background: rgba(74, 124, 89, 0.12);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--sage-dark);
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

/* ─── Guide Page Layout ─── */
.guide-page {
    padding-top: 64px; /* nav height */
}

.guide-hero {
    padding: 80px 40px 60px;
    text-align: center;
    position: relative;
}

.guide-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clay-light), transparent);
}

.guide-hero .guide-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.guide-hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--sage-dark);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.guide-hero .guide-subtitle {
    font-size: 1.15rem;
    color: var(--text-soft);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--sage);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    color: var(--clay-light);
}

/* ─── Content Sections ─── */
.guide-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.content-section {
    margin-bottom: 56px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clay);
    margin-bottom: 12px;
}

.content-section h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--sage-dark);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    line-height: 1.25;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* ─── Callout Boxes ─── */
.callout {
    padding: 24px 28px;
    border-radius: 16px;
    margin: 24px 0;
    border-left: 4px solid;
}

.callout-warm {
    background: var(--warm-deep);
    border-color: var(--clay);
}

.callout-info {
    background: var(--info-light);
    border-color: var(--info);
}

.callout-success {
    background: var(--success-light);
    border-color: var(--success);
}

.callout-warning {
    background: var(--danger-light);
    border-color: var(--danger);
}

.callout-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.callout p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-soft);
    margin-bottom: 0;
}

/* ─── Simple Lists ─── */
.simple-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.simple-list li {
    padding: 12px 0 12px 28px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-soft);
    position: relative;
    border-bottom: 1px solid rgba(196, 149, 106, 0.1);
}

.simple-list li:last-child {
    border-bottom: none;
}

.simple-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage-light);
}

/* ─── Tip Cards ─── */
.tip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.tip-card {
    padding: 24px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid rgba(196, 149, 106, 0.15);
    transition: transform 0.2s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
}

.tip-card .tip-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
}

.tip-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.tip-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-soft);
    margin-bottom: 0;
}

/* ─── Number Cards (for blood sugar ranges etc.) ─── */
.number-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid rgba(196, 149, 106, 0.15);
    margin-bottom: 12px;
}

.number-card .number {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--sage-dark);
    white-space: nowrap;
    min-width: 100px;
}

.number-card .number-desc {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ─── Guide Navigation (prev/next) ─── */
.guide-nav-footer {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.guide-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 40px;
    border-top: 1px solid rgba(196, 149, 106, 0.2);
}

.guide-nav-link {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid rgba(196, 149, 106, 0.15);
    text-decoration: none;
    transition: all 0.2s ease;
}

.guide-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 90, 58, 0.08);
}

.guide-nav-link.next {
    text-align: right;
}

.guide-nav-link .nav-direction {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clay);
    margin-bottom: 8px;
}

.guide-nav-link .nav-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sage-dark);
}

/* ─── Footer ─── */
.site-footer {
    padding: 40px;
    background: var(--sage-dark);
    text-align: center;
}

.site-footer .brand {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 8px;
}

.site-footer p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.site-footer .footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.site-footer .footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
    color: rgba(255,255,255,0.8);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .nav-inner {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(245, 240, 232, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(196, 149, 106, 0.15);
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: block;
    }

    .guide-hero {
        padding: 60px 24px 40px;
    }

    .guide-content {
        padding: 40px 24px 60px;
    }

    .guide-nav-footer {
        padding: 0 24px 60px;
    }

    .guide-nav-links {
        grid-template-columns: 1fr;
    }

    .guide-nav-link.next {
        text-align: left;
    }

    .tip-grid {
        grid-template-columns: 1fr;
    }

    .number-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .number-card .number {
        min-width: auto;
    }
}
