/* ============================================
   BDORI — Polished Standalone CSS
   No WordPress, no Thrive, no WooCommerce.
   ============================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* --- Variables --- */
:root {
    --color-primary: #3468d0;
    --color-primary-dark: #1e3a8a;
    --color-primary-light: #eaf0fb;
    --color-primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #3468d0 50%, #4a7fe6 100%);
    --color-accent: #d4a843;
    --color-accent-light: #faf4e6;
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --color-text-muted: #777;
    --color-bg: #fff;
    --color-bg-light: #f6f8fb;
    --color-bg-warm: #fafaf8;
    --color-border: #e2e6ed;
    --color-success: #16a34a;
    --color-error: #b91c1c;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: var(--font-body);
    --max-width: 1100px;
    --max-width-narrow: 720px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
    --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.75;
    font-size: 1.0125rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-primary-dark); }

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
}
.content-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

/* --- Header --- */
.site-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.site-logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--color-text);
    text-decoration: none;
}
.site-logo strong {
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    color: var(--color-primary-dark);
}
.site-logo span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: none;
}
@media (min-width: 768px) {
    .site-logo span { display: inline; }
}
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2px;
}
.site-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}
.site-nav a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}
.site-nav a.active {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    position: absolute;
    left: 0;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

@media (max-width: 767px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        padding: 12px 0;
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; padding: 0 16px; }
    .site-nav a { padding: 12px 16px; }
}

/* --- Hero --- */
.hero {
    background: var(--color-primary-gradient);
    color: #fff;
    padding: 88px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
    pointer-events: none;
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.hero-tagline {
    font-size: 1.2rem;
    opacity: 0.92;
    max-width: 620px;
    margin: 0 auto 14px;
    font-weight: 400;
}
.hero-sub {
    font-size: 1rem;
    opacity: 0.7;
    font-style: italic;
}
@media (min-width: 768px) {
    .hero { padding: 110px 0; }
    .hero h1 { font-size: 3rem; }
    .hero-tagline { font-size: 1.3rem; }
}

/* --- Page Header --- */
.page-header {
    background: var(--color-primary-gradient);
    color: #fff;
    padding: 52px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.07) 0%, transparent 50%);
    pointer-events: none;
}
.page-header .container {
    position: relative;
    z-index: 1;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* --- Content Sections --- */
.content-section {
    padding: 56px 0;
}
.content-section h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 44px 0 16px;
    color: var(--color-primary-dark);
    letter-spacing: -0.01em;
}
.content-section h2:first-child {
    margin-top: 0;
}
.content-section p {
    margin-bottom: 18px;
    color: var(--color-text-light);
}

/* --- Pillar Grid --- */
.pillars {
    padding: 72px 0;
    background: var(--color-bg-light);
}
.pillars h2 {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-primary-dark);
    letter-spacing: -0.01em;
}
.pillar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0 0;
}
@media (min-width: 768px) {
    .pillar-grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--color-primary-gradient);
    border-radius: 0 0 3px 3px;
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pillar-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-primary-dark);
}
.pillar-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* --- CTA Band --- */
.cta-band {
    background: linear-gradient(135deg, #f0f4fb 0%, #e8eef8 50%, #f5f0e6 100%);
    padding: 56px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.cta-band h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-primary-dark);
}
.cta-band p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
}

/* --- CTA Block (inline) --- */
.cta-block {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    margin: 44px 0;
}
.cta-block h3 {
    margin-bottom: 12px;
    color: var(--color-primary-dark);
}
.cta-block p {
    margin-bottom: 18px;
}

/* --- Stats --- */
.stat-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 36px 0;
}
.stat-card {
    background: var(--color-primary-gradient);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}
.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* --- Testimonial --- */
.testimonial {
    border-left: 4px solid var(--color-accent);
    padding: 24px 28px;
    margin: 36px 0;
    background: var(--color-accent-light);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.testimonial blockquote p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: 1.75;
}
.testimonial cite {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: normal;
    font-weight: 500;
}

/* --- Value callout --- */
.value-callout {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-align: center;
    padding: 20px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 13px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0.01em;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary {
    background: var(--color-primary-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(52, 104, 208, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(52, 104, 208, 0.35);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* --- Forms --- */
.site-form {
    max-width: 100%;
    margin: 24px 0;
}
.form-field {
    display: block;
    margin-bottom: 22px;
}
.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}
.form-label .optional {
    font-weight: 400;
    color: var(--color-text-muted);
}
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--color-bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(52, 104, 208, 0.12);
}
.form-field textarea {
    resize: vertical;
    min-height: 100px;
}
.char-count {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}
.form-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 22px 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}
.form-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}
.form-msg {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--radius);
}
.form-msg:empty { display: none; }
.form-msg-error {
    color: var(--color-error);
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.form-msg-success {
    color: var(--color-success);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

/* --- Scholarship form section --- */
.scholarship-form-section {
    background: var(--color-bg-light);
    padding: 56px 0;
    border-top: 1px solid var(--color-border);
}
.scholarship-form-section h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary-dark);
}
.scholarship-form-section > .container > p {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

/* --- Leadership --- */
.leadership-list p {
    margin-bottom: 4px;
}

/* --- Contact info --- */
.contact-info {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}
.crisis-notice {
    margin-top: 32px;
    padding: 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--color-error);
}
.crisis-notice a { color: var(--color-error); text-decoration: underline; }

/* --- Donate --- */
.donate-options {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin: 28px 0;
    text-align: center;
}
.address-block {
    background: var(--color-bg);
    padding: 18px 28px;
    border-radius: var(--radius);
    display: inline-block;
    border: 1px solid var(--color-border);
}
.tax-notice {
    margin-top: 32px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}
.contact-privacy {
    margin-top: 32px;
    font-style: italic;
}

/* --- Footer --- */
.site-footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #141425 100%);
    color: #bbb;
    padding: 56px 0 28px;
    margin-top: 72px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-about strong {
    color: #fff;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
}
.footer-about p {
    font-size: 0.85rem;
    margin-top: 10px;
    line-height: 1.6;
}
.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}
.footer-links ul { list-style: none; }
.footer-links a {
    color: #999;
    font-size: 0.85rem;
    display: block;
    padding: 4px 0;
    transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}
.footer-contact p {
    font-size: 0.85rem;
    line-height: 1.6;
}
.footer-bottom {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}
.footer-bottom p + p {
    margin-top: 6px;
}
.footer-bottom a {
    color: #999;
    transition: color var(--transition);
}
.footer-bottom a:hover { color: #fff; }

/* --- Focus/accessibility --- */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* --- Selection --- */
::selection {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}
