/* ==========================================================================
   Pamoja To Sustain ; Design System
   Palette:  teal #2C5358 / terracotta #C1622E / amber #E29D3D
             brown #3A2A1E / cream #FAF7F2
   Type:     Fraunces (display) + Inter (body)
   ========================================================================== */

:root {
    --teal:        #2C5358;
    --teal-dark:   #1E3B3F;
    --terracotta:  #C1622E;
    --terracotta-dark: #A14F22;
    --amber:       #E29D3D;
    --brown:       #3A2A1E;
    --cream:       #FAF7F2;
    --cream-dim:   #F0EAE0;
    --white:       #FFFFFF;
    --ink:         #2A2521;
    --ink-soft:    #5C544C;
    --border:      #E3DCCF;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(58, 42, 30, 0.08);
    --shadow-md: 0 8px 28px rgba(58, 42, 30, 0.12);
    --container-width: 1180px;
    --header-height: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    padding-top: var(--header-height);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--teal);
    margin: 0 0 0.5em;
    line-height: 1.18;
    font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--teal); color: var(--white);
    padding: 12px 20px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--teal); color: var(--white); }
.btn-secondary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }

/* ==========================================================================
   HEADER / NAV / LOGO ; FIXED, slim bar, oversized logo allowed to overflow
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: rgba(250, 247, 242, 0.97);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.25s ease;
    overflow: visible; /* critical: lets the logo image extend past the slim bar */
}
.site-header.scrolled {
    box-shadow: 0 4px 18px rgba(58, 42, 30, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--header-height);
    position: relative;
    overflow: visible;
}

.logo img {
    height: 124px;     /* visibly large; overflows the slim header bar on purpose */
    width: auto;
    max-width: 280px;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 2;
    margin-top: 14px;
}
.logo img {
    height: 150px;     /* visibly large; overflows the slim header bar on purpose */
    width: auto;
    max-width: 290px;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 2;
}
.logo-fallback { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--teal); }

.main-nav { flex: 1; display: flex; align-items: center; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px;
    font-size: 0.95rem; font-weight: 500;
    color: var(--teal);
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover, .nav-link.active { background: var(--cream-dim); color: var(--terracotta); }
.chevron { transition: transform 0.2s ease; }
.has-dropdown:hover .chevron,
.has-dropdown.open .chevron { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 280px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 50;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
    display: block; padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem; color: var(--ink);
}
.dropdown-menu a:hover, .dropdown-menu a.active { background: var(--cream-dim); color: var(--terracotta); }

/* ---- Contact button: smaller, dedicated size (desktop + mobile) ---- */
.nav-cta,
.nav-cta-mobile {
    padding: 9px 18px !important;
    font-size: 0.85rem !important;
    border-radius: var(--radius-sm);
}
.nav-cta { flex-shrink: 0; }
.nav-cta-mobile { display: none; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    flex-shrink: 0;
    z-index: 520;
}
.menu-toggle span {
    display: block; width: 100%; height: 2.5px;
    background: var(--teal); border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 490;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.nav-overlay.active { display: block; opacity: 1; visibility: visible; }

/* ---------- Divider ---------- */
.section-divider { display: flex; justify-content: center; margin: 0 auto 2.5rem; }
.section-divider svg { width: 44px; height: 44px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.8em;
}
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p { margin: 0; }

section { padding: 5rem 0; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 6rem 0 5rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dim) 100%);
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--teal); }
.hero .lede { font-size: 1.15rem; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3.2;
    box-shadow: var(--shadow-md);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */
.about-summary { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center; }
.about-grid .stat-row { display: flex; gap: 2.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.stat-item .stat-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--terracotta); display: block; }
.stat-item .stat-label { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Focus cards ---------- */
.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.focus-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; flex-direction: column;
}
.focus-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.focus-card-media { aspect-ratio: 16/11; overflow: hidden; }
.focus-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.focus-card:hover .focus-card-media img { transform: scale(1.06); }
.focus-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.focus-card-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cream-dim);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: var(--terracotta);
}
.focus-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.focus-card p { font-size: 0.92rem; flex: 1; }
.focus-card .card-link {
    margin-top: 0.8rem; font-weight: 600; font-size: 0.88rem;
    color: var(--terracotta);
    display: inline-flex; align-items: center; gap: 5px;
}
.focus-card .card-link svg { transition: transform 0.2s ease; }
.focus-card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Get Involved ---------- */
.get-involved { background: var(--teal); color: var(--white); }
.get-involved h2, .get-involved .eyebrow { color: var(--white); }
.get-involved p { color: rgba(255,255,255,0.85); }
.involved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 2.5rem; }
.involved-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    text-align: left;
}
.involved-card .focus-card-icon { background: rgba(255,255,255,0.12); color: var(--amber); }
.involved-card h3 { color: var(--white); }
.involved-card p { color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.involved-card a { color: var(--amber); font-weight: 600; font-size: 0.9rem; }

/* ---------- Impact stories ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.impact-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    border-left: 4px solid var(--amber);
    box-shadow: var(--shadow-sm);
}
.impact-card h3 { font-size: 1.15rem; }
.impact-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Partners ---------- */
.partners-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3.5rem; }
.partners-strip img { height: 48px; width: auto; filter: grayscale(100%); opacity: 0.65; transition: opacity 0.2s ease, filter 0.2s ease; }
.partners-strip img:hover { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brown); color: var(--cream); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(250,247,242,0.8); max-width: 600px; margin: 0 auto 2rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn {
    padding: 10px 22px;
    font-size: 0.88rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--brown); color: rgba(250,247,242,0.85); padding-top: 4.5rem; overflow: hidden; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(250,247,242,0.12);
}
.footer-col h3 { color: var(--amber); font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.03em; margin-bottom: 1.1rem; }
.footer-about p { color: rgba(250,247,242,0.7); font-size: 0.92rem; }

.logo-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 5px;
    margin-bottom: 1.2rem;
}
.logo-footer img {
    max-height: 42px;
    max-width: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.logo-footer img { height: 56px; width: auto; display: block; }
.logo-footer .logo-fallback { color: var(--teal); }

.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(250,247,242,0.75); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--amber); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 0.9rem; font-size: 0.9rem; color: rgba(250,247,242,0.8); }
.contact-list svg { flex-shrink: 0; margin-top: 2px; color: var(--amber); }
.contact-list a { color: rgba(250,247,242,0.8); }
.contact-list a:hover { color: var(--amber); }

.newsletter-form label { display: block; font-size: 0.85rem; margin-bottom: 0.6rem; color: rgba(250,247,242,0.8); }
.newsletter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-row input {
    flex: 1; min-width: 160px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(250,247,242,0.25);
    background: rgba(250,247,242,0.06);
    color: var(--cream);
    font-size: 0.9rem;
}
.newsletter-row input::placeholder { color: rgba(250,247,242,0.5); }
.newsletter-row .btn { padding: 11px 18px; font-size: 0.88rem; }

.social-links { display: flex; gap: 10px; margin-top: 1.2rem; }
.social-links a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(250,247,242,0.08);
    color: var(--cream);
    transition: background 0.15s ease;
}
.social-links a:hover { background: var(--terracotta); }

.footer-bottom { padding: 1.5rem 0; }
.footer-bottom-inner {
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center;
    gap: 0.5rem;
    text-align: left;
    font-size: 0.85rem;
    color: rgba(250,247,242,0.6);
}
.footer-credit a { color: rgba(250,247,242,0.8); text-decoration: underline; }
.footer-credit a:hover { color: var(--amber); }

/* ---------- Page header (interior pages) ---------- */
.page-header { background: var(--teal); color: var(--white); padding: 4.5rem 0 3.5rem; text-align: center; }
.page-header h1 { color: var(--white); margin-bottom: 0.4rem; }
.page-header .breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.page-header .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-header .breadcrumb a:hover { color: var(--amber); }

/* ---------- Content blocks ---------- */
.content-block { padding: 4.5rem 0; }
.content-block.alt { background: var(--white); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col img { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.bullet-list li { display: flex; gap: 12px; margin-bottom: 1rem; font-size: 0.97rem; color: var(--ink-soft); }
.bullet-list svg { flex-shrink: 0; color: var(--terracotta); margin-top: 3px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--teal); }
.form-field input, .form-field textarea, .form-field select {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--white);
    width: 100%;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--terracotta); outline: none; }
.form-note { font-size: 0.85rem; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.form-note.success { background: #E6F2E8; color: #2A6B3A; }
.form-note.error { background: #F8E6E1; color: #A14F22; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE ; general
   ========================================================================== */
@media (max-width: 980px) {
    .focus-grid { grid-template-columns: repeat(2, 1fr); }
    .involved-grid { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr; }
    .hero-grid, .about-grid, .two-col { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
}

/* ==========================================================================
   RESPONSIVE ; header / nav / mobile menu (≤900px = phones + tablets)
   ========================================================================== */
@media (max-width: 900px) {
    :root { --header-height: 64px; }

    .logo img { height: 92px; max-width: 200px; }

    .nav-cta { display: none; }
    .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: min(320px, 85vw);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5.5rem 1.75rem 2rem;
        box-shadow: -8px 0 30px rgba(0,0,0,0.18);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        overflow-y: auto;
        z-index: 510;
    }
    .main-nav.active { transform: translateX(0); }

    .nav-list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
    .nav-item { width: 100%; border-bottom: 1px solid var(--border); }
    .nav-link { width: 100%; justify-content: space-between; padding: 1rem 0.2rem; font-size: 1rem; }

    .dropdown-menu {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;
        background: var(--cream-dim);
        border-radius: 8px;
        min-width: 0;
        width: 100%;
    }
    .has-dropdown.open .dropdown-menu { max-height: 600px; padding: 0.3rem 0; }

    .nav-cta-mobile { display: block; width: 100%; text-align: center; margin-top: 1.5rem; }

    .focus-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .form-grid { grid-template-columns: 1fr; }
    section, .content-block { padding: 3.2rem 0; }
    .hero { padding: 3rem 0 2.5rem; }
}

@media (max-width: 560px) {
    .logo img { height: 80px; max-width: 170px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

footer .footer-credit a,
footer .footer-credit a:link,
footer .footer-credit a:visited,
footer .footer-credit a:hover {
    text-decoration: none !important;
}