/* Adventures for Wilderness — Ontario Outdoor Guide */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --forest: #2c4a2e;
    --forest-light: #3d6b40;
    --bark: #5c3d2e;
    --bark-light: #7a5a48;
    --sand: #d4c5a9;
    --cream: #f5f2ec;
    --stone: #e8e3da;
    --text: #2a2a2a;
    --text-mid: #555;
    --text-light: #777;
    --white: #fff;
}

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

body {
    font-family: 'Lora', Georgia, serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.8;
    font-size: 1.02rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    color: var(--forest);
    line-height: 1.3;
    font-weight: 700;
}

a { color: var(--forest-light); transition: color 0.2s; }
a:hover { color: var(--bark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.site-header {
    background: var(--forest);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    color: var(--sand);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 0;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.brand:hover { color: #fff; }
.nav { display: flex; gap: 0; }
.nav a {
    color: rgba(255,255,255,0.7);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1rem 0.85rem;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,0.08); }
.nav-toggle { display: none; background: none; border: none; color: var(--sand); font-size: 1.4rem; cursor: pointer; padding: 0.9rem; }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: var(--forest); z-index: 99; }
    .nav.open { display: flex; }
    .site-header .container { flex-wrap: wrap; }
}

/* ── Hero ── */
.hero {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 7rem 1.5rem;
    text-align: center;
    color: #fff;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(44,74,46,0.7) 0%, rgba(44,74,46,0.5) 100%);
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: 2.8rem; margin-bottom: 0.75rem; }
.hero p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 1.5rem; }

@media (min-width: 768px) {
    .hero { padding: 9rem 2rem; }
    .hero h1 { font-size: 3.4rem; }
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.65rem 1.6rem;
    border-radius: 3px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}
.btn-primary { background: var(--sand); color: var(--forest); }
.btn-primary:hover { background: #c4b596; color: var(--forest); transform: translateY(-1px); }
.btn-outline { border: 2px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

/* ── Sections ── */
.section { padding: 4rem 0; }
.section-alt { padding: 4rem 0; background: var(--white); }
.section-title { font-size: 1.7rem; margin-bottom: 0.3rem; text-align: center; }
.section-sub { text-align: center; color: var(--text-mid); margin-bottom: 2rem; font-size: 1rem; }
.section-line { width: 50px; height: 3px; background: var(--forest-light); margin: 0.4rem auto 1.5rem; }

/* ── Card grid ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-cat {
    display: inline-block;
    padding: 0.15em 0.5em;
    background: var(--forest);
    color: var(--sand);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    margin-bottom: 0.4rem;
}
.card-body h3 { font-size: 1.05rem; margin-bottom: 0.4rem; line-height: 1.4; }
.card-body p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; }

/* ── Article ── */
.article-hero {
    background-size: cover;
    background-position: center;
    height: 350px;
    position: relative;
}
.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(44,74,46,0.6) 100%);
}
.article-header {
    padding: 2.5rem 0 0.5rem;
}
.article-header .card-cat { margin-bottom: 0.6rem; }
.article-header h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.article-meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-content {
    padding: 1.5rem 0 4rem;
}
.article-content p { margin-bottom: 1.3rem; font-size: 1.05rem; }
.article-content h2 {
    font-size: 1.4rem;
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--forest-light);
}
.article-content h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.article-content ul, .article-content ol { margin: 0 0 1.5rem 1.5rem; }
.article-content li { margin-bottom: 0.35rem; }
.article-content img { width: 100%; border-radius: 4px; margin: 1.5rem 0; }
.article-content .caption {
    font-size: 0.82rem; color: var(--text-light); font-style: italic;
    text-align: center; margin-top: -1rem; margin-bottom: 1.5rem;
}
.article-content blockquote {
    border-left: 3px solid var(--forest-light);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--white);
    color: var(--text-mid);
}

/* Tip / warning boxes */
.tip-box {
    background: #f0f6f0;
    border: 1px solid #b8d4b8;
    border-left: 4px solid var(--forest-light);
    padding: 1rem 1.25rem;
    border-radius: 3px;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}
.warning-box {
    background: #fef6ee;
    border: 1px solid #f0d4a8;
    border-left: 4px solid var(--bark);
    padding: 1rem 1.25rem;
    border-radius: 3px;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}

/* Related links */
.related {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--stone);
}
.related h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.related ul { list-style: none; padding: 0; }
.related li { padding: 0.3rem 0; }

/* ── Footer ── */
.site-footer {
    background: var(--forest);
    color: rgba(255,255,255,0.5);
    padding: 3rem 0 1.5rem;
    font-size: 0.88rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand {
    color: var(--sand);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.6rem;
    text-decoration: none;
}
.site-footer p { line-height: 1.7; }
.site-footer h4 {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}
.site-footer a { color: rgba(255,255,255,0.45); display: block; padding: 0.2rem 0; text-decoration: none; font-size: 0.85rem; }
.site-footer a:hover { color: var(--sand); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
}
