/*!
 * C4RE "Warm & Welcoming" design refresh (theme-20).
 * Loaded after application.css. Single-file, reversible, no JavaScript.
 * see DESIGN_REVIEW.md for the five-expert review behind these rules.
 */

:root {
    --c4-green: #076e38;
    --c4-deep: #054a26;
    --c4-gold: #c9a227;
    --c4-ink: #15251c;
    --c4-muted: #5b6b61;
    --c4-line: #e3ebe5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif !important;
    font-size: 16px;
    line-height: 1.65;
    color: var(--c4-ink);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Sans', sans-serif !important;
    line-height: 1.22;
    letter-spacing: -0.015em;
}

h2 {
    font-weight: 700;
}

/* Hero copy must stay readable over the photograph. */
.carousel-caption h2,
.carousel-caption h3 {
    color: #fff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.carousel-caption p {
    color: #fff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* Calls to action: warmer, clearer, easier to hit. */
.button-css,
.main .btn,
.view-more-link a {
    background: linear-gradient(135deg, #0a8a45, #056431) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 11px 26px !important;
    box-shadow: 0 8px 18px rgba(5, 100, 49, 0.22);
    font-weight: 600 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    display: inline-block;
}

.button-css:hover,
.main .btn:hover,
.view-more-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(5, 100, 49, 0.32);
    color: #fff !important;
}

/* Soft, welcoming surfaces instead of hard thin-bordered boxes. */
.contentBoxWrap,
.single-counter-box,
.news-grid-box,
.link-box-content {
    background: #fff !important;
    border: 1px solid var(--c4-line) !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 18px rgba(20, 37, 28, 0.07);
    padding: 20px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contentBoxWrap:hover,
.single-counter-box:hover,
.news-grid-box:hover,
.link-box-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(20, 37, 28, 0.12);
}

/* White cards must never keep inherited white text. */
.contentBoxWrap p,
.contentBoxWrap h3,
.contentBoxWrap h4,
.contentBoxWrap h5,
.single-counter-box p,
.single-counter-box h3,
.single-counter-box h4,
.single-counter-box h5,
.news-grid-box p,
.news-grid-box h3,
.news-grid-box h4,
.news-grid-box h5,
.link-box-content p,
.link-box-content h3,
.link-box-content h4,
.link-box-content h5 {
    color: var(--c4-ink) !important;
}

/* In-text links must stay distinguishable from surrounding copy by more
   than colour alone (WCAG 1.4.1 / Lighthouse "link-in-text-block"). */
.contentBoxWrap p a,
.link-box-content p a,
.news-grid-box p a,
.single-counter-box p a {
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

.news-grid-box .view-more-link a,
.link-box-content .view-more-link a,
.contentBoxWrap .button-css {
    color: #fff !important;
    text-decoration: none !important;
}

.news-grid-box h4,
.single-counter-box h4 {
    color: var(--c4-deep) !important;
}

/* Visible to screen readers only (used by synced Read More links). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Friendly finishing touches. */
img.img-fluid {
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
