/* ==========================================================================
   COLiBRI — Design tokens (source: docs/visual-identity.pdf v1.1)
   ========================================================================== */
:root {
    --c-forest: #0E3113;
    --c-forest-tint: rgba(14, 49, 19, 0.2);
    --c-moss: #559827;
    --c-moss-tint: rgba(85, 152, 39, 0.2);
    --c-gold: #FFC502;
    --c-gold-tint: rgba(255, 197, 2, 0.2);
    --c-espresso: #4F2F27;
    --c-espresso-tint: rgba(79, 47, 39, 0.2);
    --c-burnt: #FA613A;
    --c-burnt-tint: rgba(250, 97, 58, 0.2);
    --c-black: #000000;
    --c-white: #FFFFFF;

    --font-body: Georgia, 'Times New Roman', Times, serif;
    --font-heading: Arial, Helvetica, sans-serif;

    --header-height: 84px;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
    font-family: var(--font-body);
    color: var(--c-forest);
    background-color: var(--c-white);
}

h1, h2, h3, h4, h5, h6,
.navbar, .btn, .badge {
    font-family: var(--font-heading);
}

h1 { font-size: 35.84px; font-weight: 700; }
h2 { font-size: 29.86px; font-weight: 700; }
h3 { font-size: 24.89px; font-weight: 700; }
h4 { font-size: 20.74px; font-weight: 700; }

a { color: var(--c-moss); }
a:hover { color: var(--c-forest); }

.btn-colibri,
.btn-colibri-outline {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 4px 16px 4px 16px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.btn-colibri:hover .btn-arrow,
.btn-colibri-outline:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-colibri {
    background-color: var(--c-gold);
    border-color: var(--c-gold);
    color: var(--c-forest);
    padding: 0.65rem 1.75rem;
}
.btn-colibri:hover {
    background-color: var(--c-forest);
    color: var(--c-white);
    transform: translateY(-1px);
}

.btn-colibri-outline {
    background-color: transparent;
    border: 2px solid var(--c-white);
    color: var(--c-white);
    padding: 0.6rem 1.75rem;
}
.btn-colibri-outline:hover {
    background-color: var(--c-white);
    color: var(--c-forest);
    transform: translateY(-1px);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.colibri-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--c-forest-tint);
}

.colibri-header__brand img { height: 40px; }

.colibri-header__actions { margin-left: auto; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.colibri-breadcrumb {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    flex: 1 1 auto;
    margin: 0 2rem;
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 1.05rem;
}
.colibri-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    transition: opacity .2s ease, transform .2s ease;
}
.colibri-breadcrumb__item[data-anim='out'] {
    opacity: 0;
    transform: translateX(-8px);
}
.colibri-breadcrumb__link,
.colibri-breadcrumb__current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.colibri-breadcrumb__link {
    color: var(--c-forest);
    opacity: .55;
    font-weight: 600;
    text-decoration: none;
}
.colibri-breadcrumb__link:hover { opacity: 1; color: var(--c-moss); }
.colibri-breadcrumb__current { color: var(--c-forest); font-weight: 700; }
.colibri-breadcrumb__sep { color: var(--c-forest); opacity: .3; font-size: .95em; }
@media (max-width: 991.98px) {
    .colibri-breadcrumb { display: none; }
}

/* ==========================================================================
   Hamburger (header + menu fullscreen)
   ========================================================================== */
.colibri-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--c-forest);
    cursor: pointer;
    flex-shrink: 0;
}
.colibri-hamburger__icon {
    display: flex;
    width: 20px;
    height: 16px;
    flex-direction: column;
    justify-content: space-between;
}
.colibri-hamburger__icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    transition: transform .3s ease, opacity .3s ease;
}
.colibri-hamburger__icon.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.colibri-hamburger__icon.is-open span:nth-child(2) { opacity: 0; }
.colibri-hamburger__icon.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Menu fullscreen
   ========================================================================== */
html.colibri-menu-open,
html.colibri-menu-open body { overflow: hidden; height: 100%; }

.colibri-menu {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: linear-gradient(160deg, var(--c-forest) 0%, #184a20 60%, var(--c-moss) 130%);
    color: var(--c-white);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.colibri-menu.is-open { opacity: 1; pointer-events: auto; }

.colibri-menu__bar {
    display: flex;
    align-items: center;
    height: var(--header-height);
    flex-shrink: 0;
}
.colibri-menu__bar img { height: 40px; }
.colibri-menu__close { margin-left: auto; color: var(--c-white); }

.colibri-menu__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0 4rem;
}
@media (min-width: 992px) {
    .colibri-menu__body { flex-direction: row; align-items: flex-start; gap: 4rem; padding-top: 4rem; }
}

.colibri-menu-nav { display: flex; flex-direction: column; gap: .25rem; }
@media (min-width: 992px) {
    .colibri-menu-nav { width: 320px; flex-shrink: 0; }
}

.colibri-menu-link {
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .35s ease, transform .35s ease;
}
.colibri-menu.is-open .colibri-menu-link { opacity: 1; transform: translateY(0); }
.colibri-menu-link > a {
    display: block;
    padding: .85rem 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--c-white);
    text-decoration: none;
    transition: color .2s ease;
}
.colibri-menu-link > a:hover,
.colibri-menu-link > a.active { color: var(--c-gold); }

.colibri-menu-eyebrow {
    margin: 0 0 .5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .4);
}

.colibri-menu-children {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 0 0 1rem;
}
.colibri-menu-children a { color: rgba(255, 255, 255, .75); font-size: 1.1rem; text-decoration: none; }
.colibri-menu-children a:hover { color: var(--c-gold); }
@media (min-width: 992px) {
    .colibri-menu-children { display: none; }
}

.colibri-menu-panels { display: none; }
@media (min-width: 992px) {
    .colibri-menu-panels { display: block; flex: 1; padding-top: .4rem; }
}
.colibri-menu-panel {
    display: none;
    flex-direction: column;
    gap: .85rem;
}
.colibri-menu-panel.is-active { display: flex; }
.colibri-menu-panel a { color: rgba(255, 255, 255, .8); font-size: 1.3rem; text-decoration: none; }
.colibri-menu-panel a:hover { color: var(--c-gold); }

.colibri-menu-cta { margin-top: auto; }
@media (min-width: 992px) {
    .colibri-menu-cta { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 5rem;
    background: linear-gradient(160deg, var(--c-forest) 0%, #184a20 60%, var(--c-moss) 130%);
    color: var(--c-white);
    overflow: hidden;
    position: relative;
}

.hero h1 { color: var(--c-white); font-size: 3rem; line-height: 1.15; }
.hero .lede { font-size: 1.15rem; max-width: 46rem; opacity: 0.95; }
.hero .eu-badge,
.maintenance-panel--info .eu-badge {
    display: inline-flex;
    gap: .75rem;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 3px 14px 3px 14px;
    padding: .5rem 1.1rem;
    font-family: var(--font-heading);
    font-size: .8rem;
}
.hero > .container { position: relative; z-index: 1; }

.hero-mark-accent {
    position: absolute;
    right: 70px;
    bottom: -5px;
    width: 440px;
    height: 440px;
    max-width: 46vw;
    fill: rgba(255, 255, 255, 0.09);
    pointer-events: none;
    z-index: 0;
}

.hero--compact {
    padding-top: calc(var(--header-height) + 4.5rem);
    padding-bottom: 4.5rem;
    min-height: 560px;
    display: flex;
    align-items: center;
}
.hero--compact h1 { font-size: 2.4rem; }
.hero--compact .hero-mark-accent {
    width: 380px;
    height: 380px;
    max-width: 42vw;
    right: 20px;
    bottom: -30px;
    fill: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Challenge / Approach split-screen
   ========================================================================== */
.challenge-header h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .95rem;
    margin-bottom: 1.5rem;
}
.challenge-header .col-md-6:first-child h3 { color: var(--c-forest); opacity: .6; }
.challenge-header .col-md-6:last-child h3 { color: var(--c-forest); }

.challenge-row { border-top: 1px solid var(--c-forest-tint); padding: 1.75rem 0; }
.challenge-row:last-of-type { border-bottom: 1px solid var(--c-forest-tint); }

.challenge-side,
.approach-side {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.challenge-side .icon-badge,
.approach-side .icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.challenge-side .icon-badge svg,
.approach-side .icon-badge svg { width: 22px; height: 22px; }

.challenge-side { opacity: .7; }
.challenge-side .icon-badge { background: var(--c-forest-tint); color: var(--c-forest); }
.challenge-side h4 { font-size: 1rem; margin-bottom: .25rem; }

.approach-side { border-left: 2px solid var(--c-gold-tint); padding-left: 1.5rem; }
.approach-side .icon-badge { background: var(--c-gold-tint); color: var(--c-espresso); }
.approach-side h4 { font-size: 1rem; margin-bottom: .25rem; color: var(--c-forest); }
@media (max-width: 767.98px) {
    .approach-side { border-left: none; padding-left: 0; margin-top: 1rem; }
}

/* ==========================================================================
   Slim CTA (lighter than .stakeholder-cta)
   ========================================================================== */
.cta-slim {
    border: 1px solid var(--c-forest-tint);
    border-radius: 12px 40px 12px 40px;
    padding: 2.5rem;
}

/* ==========================================================================
   Maintenance / "under construction" page
   ========================================================================== */
.maintenance-page {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    overflow: hidden;
}
.maintenance-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
}
.maintenance-panel--info {
    flex: 0 0 0;
    min-width: 0;
    min-height: 0;
    padding: 0;
    opacity: 0;
    background: linear-gradient(160deg, var(--c-forest) 0%, #184a20 60%, var(--c-moss) 130%);
    color: var(--c-white);
    z-index: 2;
    box-shadow: 6px 0 16px rgba(0, 0, 0, 0.4);
}
.maintenance-panel--brand {
    flex: 1 1 auto;
    background-color: #F7F6F1;
    color: var(--c-forest);
}

.maintenance-badge { margin-bottom: 1.75rem; }
.maintenance-title { color: var(--c-white); font-size: 2.4rem; line-height: 1.2; max-width: 32rem; margin-bottom: 1rem; }
.maintenance-lede { font-size: 1.1rem; max-width: 28rem; opacity: 0.9; margin-bottom: 0; }

.maintenance-logo { height: 84px; margin-bottom: 1.75rem; opacity: 0; }
.maintenance-tagline { font-size: 1rem; max-width: 24rem; opacity: 0.85; margin-bottom: 0; }

[data-maintenance-reveal] { opacity: 0; transform: translateY(24px); }

@media (max-width: 900px) {
    .maintenance-page { flex-direction: column; }
    .maintenance-panel--info { order: 2; box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.4); }
    .maintenance-panel--brand { order: 1; }
    .desktop-break { display: none; }
}

.section-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 72px;
    display: block;
    line-height: 0;
    pointer-events: none;
    transform-origin: bottom;
    transform: scaleY(0);
}

.eyebrow-leaf {
    width: 14px;
    height: 14px;
    fill: currentColor;
    margin-right: .3rem;
    transform: rotate(-15deg) translateY(-1px);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 5rem 0; position: relative; }
.section-tinted { background-color: #F7F6F1; }

.section-eyebrow {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 700;
    color: var(--c-moss);
}

.focus-card {
    display: block;
    background: var(--c-white);
    border: 1px solid var(--c-forest-tint);
    border-radius: 6px 28px 6px 28px;
    padding: 2rem;
    height: 100%;
    color: var(--c-espresso);
    transition: transform .25s ease, box-shadow .25s ease;
}
#focus-areas .row > div:nth-child(2) .focus-card { border-radius: 28px 6px 28px 6px; }
.focus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(14, 49, 19, 0.12);
}
.focus-card .icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 63% 37% 54% 46% / 55% 45% 55% 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-moss-tint);
    color: var(--c-moss);
    margin-bottom: 1.25rem;
}
.focus-card .icon-badge svg {
    width: 28px;
    height: 28px;
}
#focus-areas .row > div:nth-child(2) .icon-badge { border-radius: 46% 54% 37% 63% / 45% 55% 45% 55%; }
#focus-areas .row > div:nth-child(3) .icon-badge { border-radius: 54% 46% 63% 37% / 63% 37% 63% 37%; }

.roadmap-panel {
    background-color: var(--c-forest);
    color: var(--c-white);
    border-radius: 12px 56px 12px 56px;
    padding: 3rem;
}
.roadmap-panel h2 { color: var(--c-white); }
.roadmap-step {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 1.75rem;
}
.roadmap-step-leaf {
    position: absolute;
    left: 0;
    top: .2rem;
    width: 20px;
    height: 20px;
    fill: var(--c-gold);
}

.stakeholder-cta {
    background: linear-gradient(120deg, var(--c-burnt-tint), var(--c-gold-tint));
    border-radius: 56px 12px 56px 12px;
    padding: 3rem;
}

#stakeholder-map {
    height: 360px;
    width: 100%;
    border-radius: 24px 8px 24px 8px;
    border: 1px solid var(--c-forest-tint);
}

.news-card {
    background: var(--c-white);
    border: 1px solid var(--c-forest-tint);
    border-radius: 6px 28px 6px 28px;
    overflow: hidden;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(14, 49, 19, 0.12);
}
.news-card .news-thumb {
    height: 160px;
    background: var(--c-moss-tint);
    color: var(--c-moss);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-thumb-icon { width: 34px; height: 34px; opacity: .55; }
.news-card .news-body { padding: 1.25rem; }
.news-card .news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .6rem;
    font-family: var(--font-heading);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.news-card .news-tag { font-weight: 700; color: var(--c-moss); }
.news-card .news-date { opacity: .55; }
.news-card .news-abstract { color: var(--c-espresso); font-size: .9rem; }

#latest-news .row > div:nth-child(2) .news-thumb { background: var(--c-gold-tint); color: #9C7600; }
#latest-news .row > div:nth-child(2) .news-tag { color: #9C7600; }
#latest-news .row > div:nth-child(2) .news-card { border-radius: 28px 6px 28px 6px; }
#latest-news .row > div:nth-child(3) .news-thumb { background: var(--c-burnt-tint); color: var(--c-burnt); }
#latest-news .row > div:nth-child(3) .news-tag { color: var(--c-burnt); }

#news-grid .row > div:nth-child(3n+2) .news-thumb { background: var(--c-gold-tint); color: #9C7600; }
#news-grid .row > div:nth-child(3n+2) .news-tag { color: #9C7600; }
#news-grid .row > div:nth-child(3n+2) .news-card { border-radius: 28px 6px 28px 6px; }
#news-grid .row > div:nth-child(3n+3) .news-thumb { background: var(--c-burnt-tint); color: var(--c-burnt); }
#news-grid .row > div:nth-child(3n+3) .news-tag { color: var(--c-burnt); }

/* ==========================================================================
   News filter bar + pagination
   ========================================================================== */
.news-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2.5rem;
}
.news-filter-pill {
    font-family: var(--font-heading);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-forest);
    background: transparent;
    border: 1px solid var(--c-forest-tint);
    border-radius: 999px;
    padding: .5rem 1.1rem;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.news-filter-pill:hover { border-color: var(--c-forest); }
.news-filter-pill.is-active {
    background: var(--c-forest);
    border-color: var(--c-forest);
    color: var(--c-white);
}

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 3rem;
}
.news-pagination-page,
.news-pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--c-forest-tint);
    color: var(--c-forest);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.news-pagination-arrow svg { width: 16px; height: 16px; }
.news-pagination-page:hover,
.news-pagination-arrow:hover { border-color: var(--c-forest); }
.news-pagination-page.is-active {
    background: var(--c-forest);
    border-color: var(--c-forest);
    color: var(--c-white);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.colibri-footer {
    background-color: var(--c-forest);
    color: var(--c-white);
    padding: 3.5rem 0 2rem;
}
.colibri-footer a { color: var(--c-white); opacity: .85; }
.colibri-footer a:hover { opacity: 1; }
.colibri-footer .footer-meta {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: .8rem;
    opacity: .75;
}
.footer-eu-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--c-white);
    border-radius: 4px;
    padding: .25rem .5rem;
    line-height: 0;
}

/* ==========================================================================
   Reveal-on-scroll (GSAP hook)
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-hero-mark] { opacity: 0; }
