/* ==========================================================================
   Unnayan Uddog — site stylesheet
   Plain CSS, no build step. Palette taken from the organisation monogram.
   ========================================================================== */

:root {
    --yellow: #f5d400;
    --yellow-soft: #fdf6d2;
    --green: #2e9e3e;
    --green-dark: #1f6f2c;
    --green-darker: #14501f;
    --ink: #23282b;
    --ink-soft: #4c565b;
    --muted: #7c8790;
    --line: #e2e6e9;
    --paper: #ffffff;
    --paper-alt: #f6f8f7;
    --radius: 6px;
    --shadow: 0 1px 3px rgba(35, 40, 43, .08), 0 8px 24px rgba(35, 40, 43, .06);
    --wrap: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-dark); }
a:hover { color: var(--green-darker); }

h1, h2, h3, h4 {
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 .6em;
    font-weight: 700;
}

h1 { font-size: 2.15rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- top bar */

.topbar {
    background: var(--ink);
    color: #cfd6da;
    font-size: .85rem;
}

.topbar .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.topbar a { color: #cfd6da; text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.topbar ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* ------------------------------------------------------------------- nav */
/* Single bar: brand on the left, menu items on the right. */

.mainnav {
    background: var(--green-dark);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}

.mainnav .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
}

/* --------------------------------------------------------------- branding */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px 0;
    margin-right: auto;
    flex-shrink: 0;
}

.brand img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--yellow);
    flex-shrink: 0;
}

.brand-text { display: block; line-height: 1.25; }
.brand-name { font-size: 1.12rem; font-weight: 700; color: #fff; letter-spacing: .3px; display: block; }
.brand-sub { font-size: .72rem; color: #a9c9b1; display: block; }

/* ----------------------------------------------------------- nav toggle */

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: var(--radius);
    padding: 9px 11px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* ------------------------------------------------------------- menu list */

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.menu > li { position: relative; }

.menu > li > a {
    display: block;
    padding: 22px 12px;
    color: #eef3ef;
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.menu > li > a:hover,
.menu > li:focus-within > a,
.menu > li > a.active {
    background: var(--green-darker);
    color: #fff;
    border-bottom-color: var(--yellow);
}

.menu > li.cta > a {
    background: var(--yellow);
    color: var(--ink);
    margin: 0 0 0 10px;
    padding: 10px 18px;
    border-radius: var(--radius);
    align-self: center;
}
.menu > li.cta { display: flex; align-items: center; }
.menu > li.cta > a:hover { background: #ffe233; border-bottom-color: transparent; }

.submenu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    display: none;
    z-index: 40;
}

.menu > li:hover > .submenu,
.menu > li:focus-within > .submenu { display: block; }

.submenu a {
    display: block;
    padding: 8px 18px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: .92rem;
}
.submenu a:hover { background: var(--paper-alt); color: var(--green-darker); }
.submenu .divider { height: 1px; background: var(--line); margin: 6px 0; }
.submenu .sub-note { display: block; font-size: .78rem; color: var(--muted); }

/* ------------------------------------------------------------------ hero */

.hero {
    background: linear-gradient(160deg, var(--green-darker), var(--green-dark) 60%, #2b7d38);
    color: #fff;
    padding: 66px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(245, 212, 0, .10);
}

.hero .wrap { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { color: #fff; font-size: 2.6rem; max-width: 20ch; }
.hero p { font-size: 1.12rem; color: #dff0e2; max-width: 62ch; }
.hero .eyebrow {
    display: inline-block;
    background: var(--yellow);
    color: var(--ink);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* --------------------------------------------------------------- buttons */

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #ffe233; color: var(--ink); }

.btn-outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn-green { background: var(--green-dark); color: #fff; }
.btn-green:hover { background: var(--green-darker); color: #fff; }

/* -------------------------------------------------------------- sections */

.section { padding: 62px 0; }
.section-alt { background: var(--paper-alt); }

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); }

.eyebrow-line {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 8px;
}

/* ----------------------------------------------------------------- grids */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.card h3 { margin-bottom: .4em; font-size: 1.08rem; }
.card p { color: var(--ink-soft); font-size: .94rem; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.card .more::after { content: " \2192"; }

a.card { text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--green); transform: translateY(-2px); }

.card-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--green-dark);
    background: var(--yellow-soft);
    padding: 3px 9px;
    border-radius: 100px;
    margin-bottom: 12px;
    align-self: flex-start;
}

/* -------------------------------------------------------------- at glance */

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--yellow);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
}
.stat .value { font-size: 1.9rem; font-weight: 700; color: var(--green-dark); line-height: 1.2; }
.stat .label { font-weight: 600; margin-top: 4px; }
.stat .note { font-size: .84rem; color: var(--muted); margin-top: 4px; }

/* ---------------------------------------------------------- page heading */

.pagehead {
    background: var(--green-darker);
    color: #fff;
    padding: 42px 0;
}
.pagehead h1 { color: #fff; margin-bottom: .25em; }
.pagehead p { color: #cfe3d3; max-width: 68ch; margin: 0; }

.crumbs { font-size: .85rem; color: #a9c9b1; margin-bottom: 10px; }
.crumbs a { color: #cfe3d3; text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span { opacity: .6; margin: 0 6px; }

/* ----------------------------------------------------------------- prose */

.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }

.lead { font-size: 1.12rem; color: var(--ink-soft); }

.pullquote {
    border-left: 4px solid var(--yellow);
    background: var(--yellow-soft);
    padding: 18px 22px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 0 0 1.4em;
    font-size: 1.05rem;
}

.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-weight: 700;
}

/* ---------------------------------------------------------------- layout */

.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }

.sidebox {
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}
.sidebox h3 { font-size: 1rem; margin-bottom: .8em; }
.sidebox ul { list-style: none; margin: 0; padding: 0; }
.sidebox li { border-bottom: 1px solid var(--line); }
.sidebox li:last-child { border-bottom: 0; }
.sidebox a { display: block; padding: 8px 0; font-size: .92rem; text-decoration: none; color: var(--ink-soft); }
.sidebox a:hover, .sidebox a.active { color: var(--green-darker); font-weight: 600; }

/* ---------------------------------------------------------------- tables */

.table-scroll { overflow-x: auto; }

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: .93rem;
    min-width: 560px;
}
table.data th,
table.data td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
table.data thead th {
    background: var(--green-darker);
    color: #fff;
    font-size: .82rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-bottom: 0;
}
table.data tbody tr:nth-child(even) { background: var(--paper-alt); }

/* ----------------------------------------------------------------- lists */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
    border-left: 2px solid var(--line);
    padding: 0 0 26px 24px;
    position: relative;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--yellow);
    border: 2px solid var(--green-dark);
}
.timeline h3 { margin-bottom: .3em; font-size: 1.05rem; }
.timeline .meta { font-size: .85rem; color: var(--muted); margin-bottom: .5em; }

.donor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.donor {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    background: #fff;
}
.donor strong { display: block; color: var(--green-dark); }
.donor span { font-size: .85rem; color: var(--muted); display: block; }

/* ------------------------------------------------------------- organogram */

.organogram { margin: 0; padding: 0; list-style: none; text-align: center; }
.organogram > li { margin-bottom: 10px; position: relative; padding-top: 18px; }
.organogram > li:first-child { padding-top: 0; }
.organogram > li:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 18px;
    background: var(--line);
}
.organogram .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.organogram .box {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-radius: var(--radius);
    padding: 10px 16px;
    font-size: .9rem;
    font-weight: 600;
    min-width: 200px;
}

/* ------------------------------------------------------------------ form */

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    font-size: .95rem;
    background: #fff;
    color: var(--ink);
}

input:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }

textarea { min-height: 140px; resize: vertical; }

.field-error { color: #b4231d; font-size: .85rem; margin-top: 4px; }

.alert {
    background: var(--yellow-soft);
    border: 1px solid var(--yellow);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: .95rem;
}

/* ------------------------------------------------------------- contact bits */

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k {
    display: block;
    font-size: .78rem;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

/* ------------------------------------------------------------------- cta */

.cta-band {
    background: var(--yellow);
    color: var(--ink);
    padding: 44px 0;
}
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; max-width: 60ch; }

/* ---------------------------------------------------------------- footer */

.site-footer {
    background: var(--ink);
    color: #b9c2c7;
    padding: 52px 0 0;
    font-size: .92rem;
}
.site-footer h3 {
    color: #fff;
    font-size: .82rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 1.1em;
}
.site-footer a { color: #b9c2c7; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; }
.footer-brand strong { color: #fff; display: block; font-size: 1.05rem; }

.colophon {
    margin-top: 40px;
    border-top: 1px solid #3a4145;
    padding: 18px 0;
    font-size: .85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: space-between;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .with-side { grid-template-columns: 1fr; gap: 32px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    .nav-toggle { display: flex; }

    .mainnav .wrap { flex-wrap: wrap; }

    .mainnav .menu {
        display: none;
        flex-direction: column;
        flex-basis: 100%;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    .mainnav.open .menu { display: flex; }

    .menu > li > a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .menu > li.cta > a { margin: 10px 0; text-align: center; }

    .submenu {
        display: block;
        position: static;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0 0 8px 16px;
        min-width: 0;
    }
    .submenu a { color: #cfe3d3; padding: 7px 0; }
    .submenu a:hover { background: transparent; color: var(--yellow); }
    .submenu .divider { background: rgba(255, 255, 255, .15); }
    .submenu .sub-note { color: #9dbba5; }

    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero { padding: 46px 0 52px; }
    .hero h1 { font-size: 2rem; }
}

@media (max-width: 560px) {
    .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .brand img { width: 50px; height: 50px; }
    .brand-name { font-size: 1.15rem; }
    h1 { font-size: 1.7rem; }
    .section { padding: 44px 0; }
}

@media print {
    .topbar, .mainnav, .nav-toggle, .cta-band, .site-footer { display: none; }
    body { font-size: 12pt; }
}
