/* =============================================================
   We Love the Tarwin — Main Stylesheet
   Colour palette: river teals, water greens, warm sandy accents
   Font: Rethink Sans via Google Fonts
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@0,400..800;1,400..800&display=swap');

/* ---------- Custom Properties ---------- */
:root {
    --river:        #1b6b7a;   /* deep river teal — header accents, primary colour */
    --river-dark:   #144f5c;   /* darker river — hover states */
    --water:        #2e9e8e;   /* water green — projects section bg */
    --water-dark:   #237a6d;
    --reed:         #4a8c5a;   /* reed/fern green — trails feature */
    --sandy-hero:   rgba(178, 130, 52, 0.72); /* hero pill overlay */
    --sandy-solid:  #b48040;   /* warm sandy — news section bg */
    --creek:        #5a8e8a;   /* teal mid — citizen science feature */
    --bg:           #f0f7f6;
    --bg-white:     #ffffff;
    --text:         #1a2828;
    --text-muted:   #4a5858;
    --white:        #ffffff;
    --radius-card:  8px;
    --shadow:       0 2px 12px rgba(0,0,0,0.08);
    --transition:   0.22s ease;
    --max-width:    1280px;
    --gutter:       clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'Rethink Sans', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-white);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
    box-shadow: 0 2px 16px rgba(27,107,122,0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem var(--gutter);
}

.header-logo { flex-shrink: 0; }
.site-logo { height: 60px; width: auto; }

/* Text logo fallback */
.site-logo-text {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--river);
    line-height: 1.2;
}
.site-logo-text em {
    font-style: normal;
    color: #c0392b; /* heart red from WLT logo */
}

/* Nav */
.header-nav { flex: 1; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu li { position: relative; }

.nav-menu a {
    display: block;
    padding: 0.5rem 0.7rem;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover { color: var(--river); }

/* Dropdown */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 200px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    z-index: 200;
    padding: 0.5rem 0;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu a { padding: 0.5rem 1rem; font-size: 0.875rem; }

.nav-menu .menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 0.7em;
    opacity: 0.7;
}

/* Donate button in header */
.header-donate {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.1rem;
    background: var(--river);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: background var(--transition);
    white-space: nowrap;
}
.header-donate:hover { background: var(--river-dark); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    padding: 6px;
    margin-left: auto;
    border-radius: 4px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================================
   HERO
   ============================================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    height: clamp(380px, 52vw, 520px);
    /* River teal gradient as default background — replace with a Tarwin photo */
    background: linear-gradient(150deg, #144f5c 0%, #1b6b7a 40%, #2e9e8e 80%, #5abcac 100%);
}

.hero-image-wrap {
    position: absolute;
    inset: 0;
}
.hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.32);
    z-index: 1;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-content {
    position: absolute;
    inset: 0;
}

.hero-blob {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 54%;
    max-width: 760px;
    background: var(--sandy-hero);
    border-radius: 0 90px 90px 0;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 4rem);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-heading {
    font-size: clamp(1.1rem, 2vw, 1.75rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

/* Decorative circle — use WLT logo once uploaded */
.hero-circle-decor {
    position: absolute;
    top: clamp(40px, 10vw, 120px);
    right: clamp(-80px, -5vw, -60px);
    width: clamp(180px, 28vw, 340px);
    height: clamp(180px, 28vw, 340px);
    border-radius: 50%;
    /* Replace with WLT logo URL once uploaded */
    background: rgba(255,255,255,0.07);
    border: 2px solid rgba(255,255,255,0.12);
    pointer-events: none;
}

/* =============================================================
   CATCHMENT STATS
   ============================================================= */
.stats-section {
    background: #ffffff;
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.stats-heading {
    text-align: center;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    font-weight: 600;
    color: var(--creek);
    max-width: 680px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    line-height: 1.4;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 100px;
}

.stat-icon-wrap {
    width: clamp(70px, 10vw, 90px);
    height: clamp(70px, 10vw, 90px);
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--creek);
    text-align: center;
    line-height: 1.3;
}

/* =============================================================
   MAP / CATCHMENT INTRO
   ============================================================= */
.map-section {
    position: relative;
    background: var(--creek);
    overflow: hidden;
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.map-image-wrap {
    width: 100%;
    background: var(--creek);
    overflow: hidden;
}
.map-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: center;
    display: block;
    mix-blend-mode: multiply;
    opacity: 0.85;
}

.map-caption {
    position: relative;
    z-index: 2;
    padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) 0;
    max-width: var(--max-width);
    margin: 0 auto;
    color: var(--white);
}
.map-caption-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.map-caption-text {
    font-size: 0.925rem;
    max-width: 520px;
    line-height: 1.6;
    opacity: 0.92;
}
.map-circle-decor {
    position: absolute;
    top: -5%;
    right: -2%;
    width: clamp(80px, 14vw, 160px);
    height: clamp(80px, 14vw, 160px);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}

/* =============================================================
   DISCOVER SECTION
   ============================================================= */
.discover-section {
    background: var(--water);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

/* Discover grid (fallback static cards) */
.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.discover-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.25rem;
    color: var(--white);
    transition: background var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.discover-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-3px);
}
.discover-card-icon {
    font-size: 2rem;
    line-height: 1;
}
.discover-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}
.discover-card p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.55;
}

/* No-content note */
.no-content-note {
    color: rgba(255,255,255,0.7);
    font-size: 0.925rem;
    font-style: italic;
    padding: 1rem 0;
}

/* =============================================================
   SHARED SECTION PATTERNS
   ============================================================= */
.projects-section {
    background: var(--water);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.news-section {
    background: var(--bg);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.support-section {
    background: var(--water);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-svg-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.section-svg-icon--color {
    opacity: 1;
}

.section-heading {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--white);
}
.section-heading--dark { color: var(--text); }

.section-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.section-description {
    font-size: 0.925rem;
    color: rgba(255,255,255,0.88);
    max-width: 320px;
    text-align: right;
    line-height: 1.5;
}
.section-description--dark {
    color: var(--text-muted);
    text-align: right;
}

/* News section overrides (on light bg) */
.news-section .section-heading--dark { color: var(--text); }
.news-section .section-description--dark { color: var(--text-muted); }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border: 1.5px solid var(--white);
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    background: transparent;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.btn-outline:hover { background: rgba(255,255,255,0.18); }
.btn-arrow { font-size: 1rem; line-height: 1; }

.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1.5px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.btn-solid--river {
    background: transparent;
    color: var(--river);
    border-color: var(--river);
}
.btn-solid--river:hover {
    background: var(--river);
    color: var(--white);
}

.btn-solid--river-dark {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}
.btn-solid--river-dark:hover {
    background: rgba(255,255,255,0.18);
    border-color: var(--white);
}

/* =============================================================
   CARDS CAROUSEL
   ============================================================= */
.carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.5);
    background: transparent;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition);
    z-index: 2;
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--white);
}
.carousel-btn--dark {
    border-color: rgba(27,107,122,0.5);
    color: var(--river);
}
.carousel-btn--dark:hover {
    background: rgba(27,107,122,0.1);
    border-color: var(--river);
}

.cards-carousel {
    display: flex;
    gap: 1.25rem;
    overflow: hidden;
    flex: 1;
    scroll-behavior: smooth;
}

.card {
    flex: 0 0 calc(33.333% - 0.84rem);
    min-width: 0;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform var(--transition);
}
.card:hover { transform: translateY(-3px); }
.card--light {
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.card-image-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card-image-link:hover .card-image { transform: scale(1.04); }
.card-image--placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.08);
}
.card-image--placeholder-light { background: var(--bg); }

.card-body { padding: 0.9rem 1rem 1.1rem; }
.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 0.4rem;
}
.card-title a { color: inherit; }
.card-title a:hover { text-decoration: underline; }
.card-title--dark { color: var(--text); }
.card-excerpt {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.55;
}
.card-excerpt--dark { color: var(--text-muted); }

/* =============================================================
   FEATURE SPLIT SECTIONS
   ============================================================= */
.feature-split {
    display: flex;
    min-height: clamp(360px, 40vw, 500px);
    overflow: hidden;
}

.split-text-panel {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem) clamp(2rem, 5vw, 5rem);
    gap: 1rem;
}

/* Trails: reed green */
.trails-section .split-text-panel { background: var(--reed); }

/* Citizen Science: deep creek teal */
.citizen-section .split-text-panel { background: var(--creek); }

.split-image-panel {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.split-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-top-left-radius: clamp(160px, 22vw, 280px);
}

.feature-icon-svg {
    opacity: 0.9;
    flex-shrink: 0;
}
.feature-heading {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
}
.feature-description {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.6;
    max-width: 420px;
}

/* =============================================================
   NEWS SECTION (light bg overrides)
   ============================================================= */
.news-section .carousel-btn--dark {
    border-color: rgba(27,107,122,0.4);
    color: var(--river);
}
.news-section .carousel-btn--dark:hover {
    background: rgba(27,107,122,0.1);
    border-color: var(--river);
}

/* =============================================================
   SUPPORT SECTION
   ============================================================= */
.support-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.support-text {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.support-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.support-image-circle {
    width: clamp(220px, 30vw, 340px);
    height: clamp(220px, 30vw, 340px);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.support-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Support section text overrides (on water bg) */
.support-section .section-heading--dark { color: var(--white); }
.support-section .section-description--dark { color: rgba(255,255,255,0.92); }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter) 2.5rem;
    align-items: start;
}

.footer-org-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.footer-col p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.footer-col a { color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--river); }

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--river);
    color: var(--white);
    transition: background var(--transition);
    flex-shrink: 0;
}
.social-icon:hover { background: var(--river-dark); }
.social-icon svg { width: 16px; height: 16px; }

.footer-heading {
    font-weight: 600;
    font-size: 0.925rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.newsletter-input-wrap {
    display: flex;
    border: 1.5px solid rgba(27,107,122,0.35);
    border-radius: 2rem;
    overflow: hidden;
    background: var(--bg-white);
}
.newsletter-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.55rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    background: transparent;
    color: var(--text);
    min-width: 0;
}
.newsletter-input-wrap input::placeholder { color: #aaa; }
.newsletter-input-wrap button {
    background: none;
    border: none;
    padding: 0.55rem 0.9rem;
    color: var(--river);
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
.newsletter-input-wrap button:hover { color: var(--river-dark); }

.footer-col--acknowledgement p {
    font-size: 0.8rem;
    line-height: 1.65;
}

.aboriginal-flag {
    width: clamp(60px, 7vw, 90px);
    height: auto;
    border-radius: 3px;
}

/* =============================================================
   PAGE BANNER — consistent header for all non-home pages
   (background image + dark overlay + white title/desc)
   ============================================================= */
.page-banner {
    position: relative;
    min-height: clamp(280px, 32vw, 400px);
    display: flex;
    align-items: flex-end;
    background-color: #0d4f5e;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 0;
}
.page-banner-content {
    position: relative;
    z-index: 1;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.page-banner-meta {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    margin: 0 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.page-banner-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem;
    line-height: 1.15;
    max-width: 760px;
}
.page-banner-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    max-width: 580px;
    margin: 0;
    line-height: 1.55;
}

/* =============================================================
   INNER PAGES
   ============================================================= */
.page-content {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    min-height: 50vh;
}

.entry-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    max-width: 780px;
}
.entry-content p { margin-bottom: 1rem; }
.entry-content h2, .entry-content h3 { font-weight: 700; margin: 1.5rem 0 0.5rem; }
.entry-content a { color: var(--river); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: 6px; }
.entry-content figure { margin: 1.5rem 0; }
.entry-content figure figcaption { font-size: 0.8rem; color: #666; margin-top: 0.4rem; font-style: italic; }
.entry-content::after { content: ''; display: table; clear: both; }
@media (max-width: 600px) {
    .entry-content figure[style*="float"] { float: none !important; max-width: 100% !important; margin: 1rem 0 !important; }
}

/* Page with sidebar (About, The Catchment) */
.page-content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    align-items: start;
}
.page-content-main .entry-content { max-width: 100%; }
.page-sidebar {
    position: sticky;
    top: 90px;
}
.sidebar-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--river);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--river);
}
.info-card {
    background: #f0f8f7;
    border-left: 4px solid var(--river);
    padding: 0.875rem 1.1rem;
    margin-bottom: 0.75rem;
    border-radius: 0 6px 6px 0;
}
.info-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--river);
    line-height: 1;
    margin-bottom: 0.2rem;
}
.info-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.sidebar-cta { margin-top: 1.25rem; }
@media (max-width: 800px) {
    .page-content-with-sidebar { grid-template-columns: 1fr; }
    .page-sidebar { position: static; }
}

/* Blog / archive */
.blog-main { padding-top: 0; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: var(--bg);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.post-card-image-link { display: block; }
.post-card-image-wrap { aspect-ratio: 16/9; overflow: hidden; }
.post-card-image { width: 100%; height: 100%; object-fit: cover; }

.post-card-body { padding: 1.25rem; }
.post-card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.post-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.35; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--river); }
.post-card-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 1rem; }

.post-meta-line { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.post-nav { margin-top: 2.5rem; }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--river);
    color: var(--white);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .card { flex: 0 0 calc(50% - 0.63rem); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Tablet portrait (≤ 768px) */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        padding: 1rem var(--gutter);
        z-index: 99;
    }
    .header-nav.is-open { display: block; }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .nav-menu a {
        padding: 0.65rem 0;
        width: 100%;
        font-size: 1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        display: block;
        border-radius: 0;
    }

    .header-donate { display: none; }

    .hero-section { height: clamp(300px, 65vw, 420px); }
    .hero-blob { width: 72%; border-radius: 0 60px 60px 0; min-height: 110px; }
    .hero-circle-decor { width: 140px; height: 140px; top: 20px; right: -30px; }

    .stats-grid { gap: 1.5rem 2.5rem; }

    .section-header { flex-direction: column; align-items: flex-start; }
    .section-meta { align-items: flex-start; }
    .section-description, .section-description--dark { text-align: left; }

    .card { flex: 0 0 calc(100%); }
    .carousel-btn { display: none; }

    .feature-split { flex-direction: column; min-height: 0; }
    .split-text-panel { width: 100%; padding: 2rem var(--gutter); }
    .split-image-panel { min-height: 260px; }
    .split-photo { border-top-left-radius: 0; }

    .support-inner { grid-template-columns: 1fr; gap: 2rem; }
    .support-image-wrap { justify-content: flex-start; }

    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

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

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
    .site-logo { height: 46px; }
    .hero-heading { font-size: 1.05rem; }
    .hero-blob { padding: 1rem 1.25rem; }
    .split-image-panel { min-height: 200px; }
    .discover-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
}

/* ── Trail detail meta ──────────────────────────────────────────── */
.trail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--water);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.trail-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.trail-meta-item--wide { grid-column: 1 / -1; }
.trail-meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.trail-meta-value { font-weight: 600; color: var(--text); }
.trail-difficulty--easy   { color: var(--reed); }
.trail-difficulty--medium { color: var(--sandy-solid); }
.trail-difficulty--hard   { color: #b84040; }

.trail-map-wrap { margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; }
.trail-map { width: 100%; height: 400px; border: none; }

/* ── 404 page ───────────────────────────────────────────────────── */
.fourohfour-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin: 1.5rem 0 2rem;
}
.fourohfour-links a {
    color: var(--river);
    font-weight: 600;
    text-decoration: underline;
}
.fourohfour-links a:hover { color: var(--water); }

/* ── Footer bottom bar ──────────────────────────────────────────── */
.footer-bottom {
    text-align: center;
    padding: 0.75rem var(--gutter);
    background: rgba(0,0,0,0.15);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
