@import url('https://fonts.googleapis.com/css2?family=Petrona:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* base neutrals */
    --ink: #152019;
    --ink-soft: #3C463E;
    --muted: #667069;
    --paper: #F5F6F0;
    --paper-raised: #FFFFFF;
    --line: #DDE3D9;

    /* default theme: Forest */
    --accent: #1F6F5C;
    --accent-ink: #123D33;
    --accent-2: #F2A93B;
    --accent-soft: #E7F1EC;

    /* type */
    --font-display: 'Petrona', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    /* rhythm */
    --section-pad: clamp(4rem, 3rem + 4vw, 7rem);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 20px;
    --radius-xl: 22px;
    --radius-pill: 999px;
    --ease: cubic-bezier(.16, .84, .44, 1);

    /* shared shadows (consolidated from repeated literals) */
    --shadow-nav: 0px 4px 24px rgba(21, 32, 25, .07);
    --shadow-nav-fixed: 0 2px 16px rgba(21, 32, 25, .1);
    --shadow-card: 0 24px 55px -32px rgba(21, 32, 25, .4);
    --shadow-card-soft: 0 20px 55px -30px rgba(21, 32, 25, .35);
    --shadow-card-hover: 0 28px 60px -22px rgba(21, 32, 25, .28);
    --shadow-menu: 0 12px 32px rgba(21, 32, 25, .12);
    --shadow-hero: 0 30px 60px -20px rgba(21, 32, 25, .35);
    --shadow-chip: 0 20px 45px -15px rgba(21, 32, 25, .3);
    --shadow-modal: 0 30px 70px -20px rgba(0, 0, 0, .5);

    /* shared motion */
    --lift-hover: translateY(-8px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .3s var(--ease);
}

li {
    list-style: none;
}

body {
    font-family: var(--font-body);
    background-color: var(--paper);
    color: var(--ink-soft);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1,
h2 {
    font-weight: 600;
}

.bg-secondary,
.bg-primary {
    background-color: var(--accent) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-normal {
    font-weight: 400 !important;
}

/* eyebrow / mono label, used to encode section context (not decoration) */
.eyebrow,
.hero-eyebrow {
    font-family: var(--font-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--accent-ink);
}

.eyebrow {
    font-size: .72rem;
    margin-bottom: .9rem;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--accent);
}

/* ============================================================
   SCROLL PROGRESS — "growth line"
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 1200;
    background: transparent;
    pointer-events: none;
}

.scroll-progress__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform-origin: left;
    transition: width .08s linear;
}

@supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
        .scroll-progress__fill {
            animation: grow-scrollbar linear forwards;
            animation-timeline: scroll(root);
            transition: none;
        }
    }
}

@keyframes grow-scrollbar {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal="scale"] {
    transform: scale(.94);
}

[data-reveal="scale"].is-visible {
    transform: scale(1);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    color: #FFF;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all .35s var(--ease);
    border: 0;
    letter-spacing: .01em;
}

.btn-square {
    width: 64px;
    height: 64px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    line-height: 1;
    background: var(--accent-soft);
    border-radius: 14px;
    transition: .4s var(--ease);
}

.btn-square i {
    transition: .4s var(--ease);
    color: var(--accent);
}

.btn-primary,
.btn-secondary {
    border-radius: var(--radius-pill);
}

.btn-primary {
    background-color: var(--accent-2);
}

.btn-primary:hover {
    background-color: var(--accent-ink);
    filter: none;
}

.btn-secondary {
    background-color: var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent-ink);
}

.text-primary {
    color: var(--accent-2) !important;
}

.text-secondary {
    color: var(--accent) !important;
}

.bg-light {
    background-color: var(--accent-soft) !important;
}

/* ============================================================
   TOP CONTACT BAR
   ============================================================ */
.navbar-top {
    overflow-x: clip;
    background-color: var(--ink);
}

.navbar-top a {
    color: rgba(255, 255, 255, .85);
    font-size: 13.5px;
    font-family: var(--font-mono);
    letter-spacing: .02em;
}

.navbar-top a:hover {
    color: var(--accent-2);
}

.navbar-top .row {
    padding-bottom: 26px;
}

.navbar-top .list-inline-item a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
}

.navbar-top .list-inline-item a:hover {
    border-color: var(--accent-2);
}

/* ============================================================
   MAIN NAVBAR
   ============================================================ */
.navbar {
    background-color: var(--paper-raised);
    position: relative;
    z-index: 999;
    transition: .3s ease;
}

@media only screen and (min-width: 992px) {
    .navbar {
        position: absolute;
        inset-inline: 0px;
        background-color: transparent;
    }

    .navbar .container {
        top: -30px;
    }
}

.navbar .container {
    padding-inline-start: 24px;
    background-color: var(--paper-raised);
    box-shadow: var(--shadow-nav);
    border-radius: var(--radius);
    position: relative;
}

.navbar.fixed-top {
    background-color: var(--paper-raised);
    box-shadow: var(--shadow-nav-fixed);
}

.navbar.fixed-top .container {
    top: 0;
    border-radius: 0;
}

.navbar.navbar-expand-lg img {
    max-width: 148px;
    width: 100%;
}

header .menu-item {
    padding: 0 .55rem;
}

.menu-link {
    display: block;
    color: var(--ink);
    width: max-content;
    font-weight: 600;
    padding: 2.5rem 0;
    position: relative;
    transition: all 0.4s var(--ease);
}

.menu-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2.1rem;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .35s var(--ease);
}

.menu-link:hover::after {
    width: 100%;
}

.menu-link:hover {
    color: var(--accent);
}

.offcanvas-header img {
    max-width: 130px;
}

.sub-menu {
    padding-left: 0;
    transition: all .4s;
    background-color: var(--paper-raised);
    z-index: 11111;
    display: none;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-menu);
}

.menu-item-has-children.active>.sub-menu {
    display: block;
    animation: fadeIn .4s ease;
}

.menu-item-has-children {
    position: relative;
}


/* Nested flyouts open sideways, so their chevrons stay right-pointing
   and simply mirror on hover/active instead of rotating to "down" */
.sub-menu .menu-item-has-children>.menu-link::after {
    transform: rotate(-45deg);
}

.sub-menu .menu-item-has-children:hover>.menu-link::after,
.sub-menu .menu-item-has-children.active>.menu-link::after {
    transform: rotate(135deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .sub-menu {
        position: absolute;
        width: 240px;
        min-width: 240px;
    }

    .sub-menu .sub-menu {
        left: 100%;
        top: 0px;
    }

    .menu-item-has-children:hover>.sub-menu {
        display: block;
        animation: fadeIn .4s ease;
    }
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler i {
    color: var(--ink) !important;
}

footer .menu-link {
    color: rgba(255, 255, 255, .75);
    padding: .3rem 0;
    display: inline-block;
}

footer .menu-link::after {
    background: var(--accent-2);
    bottom: 0;
}

footer .menu-link:hover {
    color: #FFF;
}

/* focus visibility for a11y */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
}

/* ============================================================
   HERO
   ============================================================ */
.header-carousel {
    background: radial-gradient(circle at 15% 20%, var(--accent-soft), transparent 55%), var(--paper);
    padding-top: clamp(4.5rem, 3rem + 4vw, 8rem);
}

.hero-eyebrow {
    font-size: .75rem;
    margin-bottom: 1.1rem;
}

.hero-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
}

.carousel-text h2 {
    font-size: clamp(2.3rem, 1.6rem + 3vw, 3.4rem);
    line-height: 1.08;
}

.header-carousel .carousel-img {
    position: relative;
}

.header-carousel .carousel-img img {
    border-radius: 32px 120px 32px 32px;
    box-shadow: var(--shadow-hero);
}

.hero-stat-chip {
    position: absolute;
    bottom: -1.4rem;
    left: -1.4rem;
    background: var(--paper-raised);
    border-radius: 16px;
    padding: 1.1rem 1.4rem;
    box-shadow: var(--shadow-chip);
    display: flex;
    align-items: center;
    gap: .9rem;
}

.hero-stat-chip .num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--accent);
    line-height: 1;
}

.hero-stat-chip .label {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    max-width: 90px;
    line-height: 1.3;
}

@media (max-width: 575.98px) {
    .hero-stat-chip {
        left: 0;
        bottom: -1rem;
        padding: .85rem 1.1rem;
    }
}

/* ============================================================
   VIDEO BANNER
   ============================================================ */
.container-fluid.bg-primary {
    background: linear-gradient(120deg, var(--accent-ink), var(--accent)) !important;
    border-radius: 0;
}

.container-fluid.bg-primary h2 {
    color: #FFF;
    font-weight: 500;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--accent-2);
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-play:before,
.btn-play:after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--accent-2);
    border-radius: 50%;
}

.btn-play:before {
    animation: pulse-border 1800ms ease-out infinite;
}

.btn-play:after {
    transition: all 200ms;
    z-index: 1;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid #FFF;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) scale(1);
        opacity: .6;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) scale(2.1);
        opacity: 0;
    }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-content {
    border-radius: 16px;
    overflow: hidden;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

/* ============================================================
   ABOUT + GROWTH LINE (signature element)
   ============================================================ */
.about-visual {
    position: relative;
}

.growth-line {
    position: absolute;
    top: 0;
    right: -6px;
    height: 100%;
    width: 40px;
    display: none;
}

@media (min-width: 576px) {
    .growth-line {
        display: block;
    }
}

.growth-line path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    pathLength: 1;
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .growth-line path {
            animation: draw-line linear forwards;
            animation-timeline: view();
            animation-range: entry 10% cover 60%;
        }
    }
}

.growth-line path.js-drawn {
    transition: stroke-dashoffset 1.2s var(--ease);
}

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

.stat-block {
    border-radius: var(--radius);
    padding: 1.6rem 1.2rem;
    text-align: center;
}

.stat-block .stat-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: #FFF;
    line-height: 1;
    display: block;
}

.stat-block .stat-label {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    margin-top: .5rem;
}

.stat-block.is-ink {
    background: var(--ink);
}

.stat-block.is-accent {
    background: var(--accent);
}

.about-copy p {
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services {
    background-color: var(--accent-soft);
}

.service-item {
    padding: 3rem 2.2rem;
    background: var(--paper-raised);
    border-radius: var(--radius-lg);
    transition: .45s var(--ease);
    cursor: pointer;
    box-shadow: var(--shadow-card-soft);
    height: 100%;
}

.service-item:hover {
    transform: var(--lift-hover);
    box-shadow: var(--shadow-card-hover);
}

.service-item:hover .btn-square {
    background: var(--accent);
}

.service-item:hover .btn-square i {
    color: #FFF !important;
}

.service-item h5 {
    font-size: 1.2rem;
    margin-bottom: .6rem;
}

/* ============================================================
   DONATION CAUSES
   ============================================================ */
.donation-item {
    transition: .5s var(--ease);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-raised);
    box-shadow: 0 24px 55px -30px rgba(21, 32, 25, .4);
    margin-bottom: 2rem;
    width: 100%;
}

.donation-item:hover {
    transform: var(--lift-hover);
}

.donation-detail {
    width: 100%;
}

.donation-detail img {
    display: block;
    border-radius: 0;
}

.donation-detail>div:last-child {
    padding-bottom: 1.6rem;
}

.donation-detail .btn {
    border-radius: var(--radius-pill) !important;
}

.badge {
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .4rem .8rem;
    font-weight: 500;
}

.progress-wrap {
    margin-bottom: 14px;
}

.progress-bar-bg {
    background: var(--accent-soft);
    border-radius: 6px;
    height: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 6px;
    border-radius: 6px;
    background: #1D9E75;
    width: 0%;
    transition: width 1.4s var(--ease);
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .02em;
    color: var(--muted);
    margin-top: 7px;
}

/* ============================================================
   DONATE FORM BANNER
   ============================================================ */
#donation-form {
    background-color: var(--ink);
    position: relative;
    overflow: hidden;
}

.donate .donate-form .btn-group {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.donate .donate-form .btn-group .btn {
    margin: 0;
    padding: 0;
    height: 52px;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm) !important;
    color: var(--muted);
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: .85rem;
}

.donate .donate-form .btn-group .btn-check:checked+.btn {
    border-color: var(--accent);
    background: var(--accent);
    color: #FFF;
}

.donate-form {
    background: var(--paper-raised);
    padding: 2.4rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-modal);
}

.donate-form h2 {
    font-size: 1.4rem;
}

.form-control {
    background-color: transparent;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    line-height: 48px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    color: var(--ink-soft);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background-color: transparent;
    border-color: var(--accent);
}

.form-control::placeholder {
    color: var(--muted);
}

.donate-text ul li i {
    color: var(--accent-2) !important;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--accent-2);
    border-radius: 24px;
    z-index: -1;
}

.testimonial-img img {
    border-radius: var(--radius-lg);
}

@media (max-width: 767.98px) {
    .testimonial-img {
        padding: 20px 0 20px 20px;
    }

    .testimonial-img::before {
        width: calc(50% + 20px);
        border-radius: 18px;
    }
}

.testimonial-text {
    position: relative;
}

.testimonial-text::before {
    content: "\201C";
    position: absolute;
    top: -2.2rem;
    left: -.4rem;
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--accent-soft);
    line-height: 1;
    z-index: -1;
}

.testimonial-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-style: italic;
}

.owl-dots {
    text-align: left;
    margin-top: 1rem;
}

.owl-dot span {
    background: var(--line) !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 4px !important;
}

.owl-dot.active span {
    background: var(--accent) !important;
}

/* ============================================================
   TEAM
   ============================================================ */
#team {
    background-color: var(--accent-soft);
}

.team-item {
    transition: .5s var(--ease);
    border-radius: var(--radius-lg);
    background: var(--paper-raised);
    box-shadow: var(--shadow-card);
}

.team-item:hover {
    transform: var(--lift-hover);
}

.team-detail img {
    border-radius: 16px;
    filter: grayscale(1);
    transition: filter .5s var(--ease);
}

.team-item:hover .team-detail img {
    filter: grayscale(0);
}

.team-detail h3 {
    font-size: 1.15rem;
    margin-bottom: .2rem;
}

.team-detail span {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ============================================================
   EVENTS
   ============================================================ */
.event-item {
    transition: .5s var(--ease);
    border-radius: var(--radius-lg);
    background: var(--paper-raised);
    box-shadow: var(--shadow-card);
    height: 100%;
}

.event-item img {
    border-radius: 14px;
}

.event-item:hover {
    transform: var(--lift-hover);
}

.event-item a.h5 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    transition: color .3s;
}

.event-item a.h5:hover {
    color: var(--accent);
}

.event-item ul li {
    font-size: .92rem;
    color: var(--muted);
}

.event-item ul li i {
    color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: var(--ink);
}

.footer h6 {
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55) !important;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.opening-hours {
    padding-left: 0;
    margin-bottom: 0;
    list-style-type: none;
}

.opening-hours li {
    overflow: hidden;
    text-transform: uppercase;
    padding-bottom: 10px;
    font-size: 13px;
    letter-spacing: .04em;
    padding-top: .25rem !important;
    color: rgba(255, 255, 255, .6);
}

.opening-hours li span {
    color: #FFF;
}

.footer .row.g-2 img {
    border-radius: 8px;
    transition: transform .4s var(--ease);
}

.footer .row.g-2 img:hover {
    transform: scale(1.05);
}

.fill-primary {
    fill: var(--accent-2) !important;
}

/* If Owl Carousel's JS never runs (blocked CDN, script error, etc.) the
   library's own CSS leaves .owl-carousel at display:none forever, since
   only a successful owlCarousel() call adds .owl-loaded to reveal it.
   modern.js adds .owl-fallback after a timeout if that never happens,
   so at minimum the first slide is always visible. */
.owl-carousel.owl-fallback {
    display: block !important;
}

.owl-carousel.owl-fallback>*:not(:first-child) {
    display: none !important;
}

/* ============================================================
   MISC
   ============================================================ */
section {
    scroll-margin-top: 90px;
}

::selection {
    background: var(--accent-2);
    color: var(--ink);
}