/* Assam Flood Relief — starter theme.
   Direction: a calm civic trust tool, not a campaign page.
   Palette grounded in the Brahmaputra: deep river-slate + silt, with a
   single decisive "verified" green and an amber caution. System fonts only,
   so it loads instantly on patchy rural bandwidth. */

:root {
    --river:      #123a4f;   /* deep slate-blue — headers, brand */
    --river-deep: #0c2a3a;   /* near-black slate — text */
    --current:    #1f7a8c;   /* mid river-teal — links, focus */
    --silt:       #f4f1ea;   /* warm off-white — page bg */
    --paper:      #ffffff;
    --line:       #dfd9cc;   /* hairline */
    --verified:   #167a4a;   /* the trust colour — used sparingly */
    --verified-bg:#e6f2ea;
    --caution:    #b06a00;   /* pending / warnings */
    --danger:     #a12b2b;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(12,42,58,.08), 0 6px 20px rgba(12,42,58,.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
    color: var(--river-deep);
    background: var(--silt);
    line-height: 1.55;
}

a { color: var(--current); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--current);
    outline-offset: 2px;
}

/* ---- header / footer ---- */
.site-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    padding: .9rem 1.2rem;
    background: var(--river);
    color: #fff;
}
.brand {
    display: inline-flex; align-items: center; gap: .55rem;
    color: #fff; text-decoration: none;
    font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em;
}
.brand-mark {
    width: 14px; height: 14px; border-radius: 50% 50% 50% 0;
    background: var(--current); transform: rotate(-45deg);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.25);
}
.site-nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.site-nav a { color: #dbe8ee; text-decoration: none; font-size: .95rem; }
.nav-cta {
    background: var(--current); color: #fff !important;
    padding: .5rem .9rem; border-radius: var(--radius); font-weight: 600;
    font: inherit; font-weight: 600;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 1.6rem 1.2rem 3rem; }

.site-foot {
    max-width: 960px; margin: 0 auto; padding: 1.5rem 1.2rem 3rem;
    color: #4a5a63; font-size: .88rem; border-top: 1px solid var(--line);
}
.foot-links { margin-top: .4rem; }

/* ---- hero (homepage) ---- */
.hero {
    background: linear-gradient(135deg, var(--river), var(--current));
    color: #fff;
    border-radius: var(--radius);
    padding: 2.6rem 1.8rem;
    margin-bottom: 1.6rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.hero h1 {
    color: #fff;
    font-size: 2.1rem;
    line-height: 1.25;
    max-width: 700px;
    margin: 0 auto .7rem;
}
.hero-lead {
    color: #dbe8ee;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
}

/* ---- filters ---- */
.filters {
    display: flex; gap: .6rem; flex-wrap: wrap;
    background: var(--paper); padding: 1rem; border-radius: var(--radius);
    border: 1px solid var(--line); margin-bottom: 1.4rem;
}
.filters input, .filters select {
    padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px;
    font-size: 1rem; flex: 1 1 180px; background: #fff;
}
.btn {
    display: inline-block; padding: .6rem 1.1rem; border: 0; cursor: pointer;
    background: var(--river); color: #fff; border-radius: var(--radius);
    font-size: 1rem; font-weight: 600; text-decoration: none; text-align: center;
}
.btn-lg { padding: .95rem 1.4rem; font-size: 1.1rem; width: 100%; }
.btn-verified { background: var(--verified); }
.btn-ghost { background: transparent; color: var(--river); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); }

/* ---- ngo cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1rem; }
.card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.card p { margin: .4rem 0; color: #40515a; font-size: .93rem; }
.meta { font-size: .82rem; color: #6a7a82; }

/* ---- the verified badge: the emotional core of the whole product ---- */
.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .01em;
    padding: .22rem .6rem; border-radius: 999px;
}
.badge-verified { background: var(--verified-bg); color: var(--verified); }
.badge-verified::before { content: "\2713"; font-weight: 900; }
.badge-pending  { background: #f6edda; color: var(--caution); }

/* ---- profile / contribute panel ---- */
.profile-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.contribute {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.4rem; margin: 1.4rem 0;
    box-shadow: var(--shadow); text-align: center;
}
.contribute img.qr { border: 1px solid var(--line); border-radius: 8px; margin: .8rem auto; display: block; }
.contribute .vpa {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    background: var(--silt); padding: .3rem .5rem; border-radius: 6px;
}
.hint { color: #6a7a82; font-size: .85rem; }

/* ---- forms ---- */
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: .65rem .7rem; border: 1px solid var(--line);
    border-radius: 8px; font-size: 1rem; background: #fff;
}
.form-field .err { color: var(--danger); font-size: .85rem; margin-top: .25rem; }
.notice { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.notice-info { background: #e8f0f3; color: var(--river); }
.notice-good { background: var(--verified-bg); color: var(--verified); }

/* ---- admin queue ---- */
.queue-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem; }
.queue-item .docs a { display: inline-block; margin-right: .6rem; font-size: .9rem; }
.queue-actions { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }

h1 { font-size: 1.7rem; letter-spacing: -.02em; margin: 0 0 .3rem; color: var(--river); }
.lead { color: #4a5a63; margin-top: 0; }

/* ---- legal drafts (terms / privacy) ---- */
.legal-doc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.legal-doc h1 { font-size: 1.5rem; }
.legal-doc h2 { font-size: 1.15rem; margin-top: 1.6rem; color: var(--river); }
.legal-doc blockquote { margin: 1rem 0; padding: .1rem 1rem; border-left: 3px solid var(--current); color: #4a5a63; background: var(--silt); border-radius: 0 8px 8px 0; }
.legal-doc p, .legal-doc li { color: #40515a; }

@media (max-width: 520px) {
    .site-nav { width: 100%; justify-content: space-between; }
    .hero { padding: 1.8rem 1.2rem; }
    .hero h1 { font-size: 1.6rem; }
}
