/* ==========================================================================
   We Donate — Shared design system
   Loaded on every page before the page-specific stylesheet.
   Palette intentionally kept close to the original brand (blue + yellow).
   ========================================================================== */

:root {
    /* Brand colors */
    --primary: #007bff;
    --primary-dark: #0056b3;
    --primary-darker: #00408a;
    --primary-light: #e7f1ff;
    --accent: #ffcc00;
    --accent-dark: #e6b800;

    /* Neutrals */
    --heading: #1f2a37;
    --dark: #343a40;
    --body: #3d4654;
    --gray: #6c757d;
    --muted: #8a94a6;
    --border: #e5e9f0;
    --light: #f8f9fa;
    --bg: #f6f9fc;
    --white: #ffffff;

    /* Status */
    --success: #28a745;
    --success-dark: #218838;
    --danger: #dc3545;

    /* Shape & motion */
    --radius: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.10);
    --shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 18px 40px rgba(16, 24, 40, 0.14);
    --transition: all 0.25s ease;
    --container: 1140px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    color: var(--body);
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Roboto', sans-serif;
    color: var(--heading);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 4rem 0;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-head h2 {
    margin-bottom: 0.75rem;
}

.section-head p {
    color: var(--gray);
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--heading);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: var(--success-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 0.9rem 1.9rem;
    font-size: 1.05rem;
}

/* ---------- Cards ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ---------- Forms ---------- */
label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--heading);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--body);
    background: var(--white);
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

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

.form-group {
    margin-bottom: 1.4rem;
}

.help-text {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--heading);
}

.brand:hover {
    color: var(--heading);
}

.brand img {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links a {
    color: var(--body);
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-links a.nav-active:not(.btn) {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-cta {
    margin-left: 0.5rem;
}

/* Mobile menu (CSS-only, checkbox hack) */
.nav-toggle {
    display: none;
}

.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle-btn span {
    display: block;
    height: 2.5px;
    width: 24px;
    background: var(--heading);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    background: radial-gradient(1200px 500px at 100% -10%, var(--primary-light) 0%, transparent 60%),
                linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    padding: 2.75rem 0 0.75rem;
    text-align: center;
}

.hero .container {
    max-width: 780px;
}

.hero h1 {
    color: var(--heading);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tighten the gap between a hero title and the content below it */
.hero + .section {
    padding-top: 1.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--heading);
    color: rgba(255, 255, 255, 0.75);
    margin-top: auto;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    padding: 2rem 1.25rem 1.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom span {
    color: #fff;
    font-weight: 600;
}

.footer-bottom .admin-link {
    color: rgba(255, 255, 255, 0.4);
    margin-left: 0.75rem;
    font-size: 0.85rem;
}

.footer-bottom .admin-link:hover {
    color: var(--accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
    .nav-toggle-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 0.75rem 1.25rem 1.25rem;
        display: none;
    }

    .nav-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0.9rem;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

@media (max-width: 560px) {
    .brand img {
        height: 40px;
    }

    .section {
        padding: 2.75rem 0;
    }

    .hero {
        padding: 2rem 0 0.5rem;
    }

    .footer-nav {
        gap: 0.5rem 1.25rem;
    }
}
