/* ==========================================================================
   Al-Baseer / Qurban Charity — Brand Design System
   ========================================================================== */
:root {
    /* Official logo palette */
    --primary: #1e5631;
    --primary-dark: #143d22;
    --primary-light: #e8f3ec;
    --primary-mid: #4a9b6e;
    --navy: #1a3d2e;
    --navy-light: #2d5a42;
    --donate: #c9a227;
    --donate-dark: #a8851f;
    --donate-light: #faf6ea;
    --secondary: #4a9b6e;
    --accent: #c9a227;
    --gold: #d4a03c;
    --text: #1a2e22;
    --text-muted: #5c6b63;
    --bg-light: #f4f8f5;
    --bg-warm: #faf8f3;
    --white: #ffffff;
    --border: #d8e5dc;
    --shadow-sm: 0 2px 8px rgba(30, 86, 49, 0.07);
    --shadow: 0 8px 32px rgba(30, 86, 49, 0.1);
    --shadow-lg: 0 20px 48px rgba(30, 86, 49, 0.14);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display-ar: 'Cairo', sans-serif;
    --font-display-en: 'Playfair Display', 'Cairo', serif;
    --font-body-ar: 'Cairo', sans-serif;
    --font-body-en: 'Inter', 'Cairo', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body-ar);
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
}

body.locale-en {
    font-family: var(--font-body-en);
    letter-spacing: -0.01em;
}

body.locale-ar .section-title,
body.locale-ar .hero-title,
body.locale-ar .page-header h1 {
    font-family: var(--font-display-ar);
}

body.locale-en .section-title,
body.locale-en .hero-title,
body.locale-en .page-header h1 {
    font-family: var(--font-display-en);
    letter-spacing: -0.02em;
}

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

a { transition: color var(--transition), opacity var(--transition); }

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 9999;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus { top: 0; }

/* ==========================================================================
   Top Bar
   ========================================================================== */
.site-topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-topbar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-topbar a:hover { color: var(--accent); }

.site-topbar .topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.site-topbar .topbar-social a {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    transition: background var(--transition);
}

.site-topbar .topbar-social a:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.site-navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding var(--transition), box-shadow var(--transition);
}

.site-navbar .navbar-brand {
    padding: 0;
    margin: 0;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.brand-logo-img {
    height: 64px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: opacity var(--transition);
}

.brand-logo-link:hover .brand-logo-img {
    opacity: 0.88;
}

@media (max-width: 768px) {
    .brand-logo-img {
        height: 52px;
        max-width: 160px;
    }
}

/* Brand motto bar — matches logo taglines */
.brand-motto-bar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    border-bottom: 2px solid var(--gold);
    padding: 0.45rem 0;
    text-align: center;
}

.brand-motto-primary {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-motto-secondary {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

body.locale-ar .brand-motto-primary,
body.locale-ar .brand-motto-secondary {
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 0.78rem;
}

body.locale-ar .brand-motto-secondary {
    font-size: 0.72rem;
}

/* Footer brand */
.footer-brand-logo {
    height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.brand-footer-name {
    color: var(--gold);
    font-size: 1rem;
}

.footer-cta-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-mid) 100%);
    border-top: 3px solid var(--gold);
    padding: 2.5rem 0;
    text-align: center;
}

.site-navbar .nav-link {
    color: var(--text) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem !important;
    position: relative;
    transition: color var(--transition);
}

.site-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline: 0.85rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
    border-radius: 2px;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--primary) !important;
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after {
    transform: scaleX(1);
}

.site-navbar .navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.site-navbar .navbar-toggler:focus { box-shadow: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-donate {
    background: linear-gradient(135deg, var(--gold) 0%, var(--donate-dark) 100%);
    color: var(--navy) !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.55rem 1.4rem !important;
    border: none;
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
    transition: transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.45);
    color: var(--navy) !important;
}

.btn-donate-lg {
    padding: 0.85rem 2rem !important;
    font-size: 1.05rem;
}

.btn-primary-site {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    padding: 0.65rem 1.6rem;
    transition: background var(--transition), transform var(--transition);
}

.btn-primary-site:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline-site {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    background: transparent;
    transition: all var(--transition);
}

.btn-outline-site:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-light-site {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    padding: 0.65rem 1.6rem;
    background: transparent;
    transition: all var(--transition);
}

.btn-outline-light-site:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-lang {
    border: 1.5px solid var(--border);
    color: var(--text);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    background: var(--white);
}

.btn-lang:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 40%, var(--primary-dark) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(11, 110, 79, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 162, 39, 0.15) 0%, transparent 40%);
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.92;
    max-width: 580px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.trust-badge i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Carousel Hero */
.carousel-hero {
    position: relative;
}

.carousel-hero .carousel-item {
    min-height: 580px;
    background-size: cover;
    background-position: center;
    background-color: var(--navy);
    background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--primary-dark) 100%);
}

.carousel-hero .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(15, 39, 68, 0.88) 0%, rgba(15, 39, 68, 0.55) 50%, rgba(15, 39, 68, 0.3) 100%);
}

.carousel-hero .carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: start;
    inset-inline: 8%;
    padding: 0;
    max-width: 680px;
}

.carousel-hero .carousel-caption h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.carousel-hero .carousel-caption p {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
}

.carousel-hero .carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-hero .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-hero .carousel-indicators button.active {
    background: var(--donate);
    width: 28px;
    border-radius: 5px;
}

.carousel-hero .carousel-control-prev,
.carousel-hero .carousel-control-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    backdrop-filter: blur(4px);
}

.carousel-hero .carousel-control-prev { inset-inline-start: 1.5rem; }
.carousel-hero .carousel-control-next { inset-inline-end: 1.5rem; }

/* ==========================================================================
   Impact Stats Strip
   ========================================================================== */
.impact-stats {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: -4rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.impact-stats::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--donate));
}

.stat-box {
    text-align: center;
    padding: 2.25rem 1.5rem;
    border-inline-end: 1px solid var(--border);
}

.stat-box:last-child { border-inline-end: none; }

.stat-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.stat-number {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section-padding { padding: 5.5rem 0; }

.section-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

.section-subtitle.centered { margin-inline: auto; }

.bg-light-section { background: var(--bg-light); }
.bg-warm-section { background: var(--bg-warm); }

/* ==========================================================================
   Cards
   ========================================================================== */
.site-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}

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

.site-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.site-card:hover .card-img-top { transform: scale(1.04); }

.site-card .card-img-wrap { overflow: hidden; }

.site-card .card-body { padding: 1.5rem; }

.site-card .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.badge-type {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

/* Program card */
.program-card .program-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Impact story card */
.impact-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.impact-card .impact-img {
    height: 240px;
    object-fit: cover;
    width: 100%;
}

.impact-card .quote-icon {
    color: var(--donate);
    font-size: 2rem;
    opacity: 0.3;
    line-height: 1;
}

/* ==========================================================================
   How to Help
   ========================================================================== */
.help-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.25rem 1.75rem;
    text-align: center;
    height: 100%;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.help-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}

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

.help-card:hover::before { transform: scaleX(1); }

.help-card.donate-card::before { background: var(--donate); }
.help-card.volunteer-card::before { background: var(--primary); }
.help-card.partner-card::before { background: var(--accent); }

.help-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
}

.help-card.donate-card .help-icon {
    background: var(--donate-light);
    color: var(--donate);
}

.help-card.volunteer-card .help-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.help-card.partner-card .help-icon {
    background: #fef9e7;
    color: var(--accent);
}

.help-card h4 {
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.help-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   About / Values
   ========================================================================== */
.about-image-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 400px;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-light));
}

.about-image-wrap .about-pattern {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.15;
}

.about-image-wrap .about-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

.about-image-wrap .about-badge {
    position: absolute;
    bottom: 1.5rem;
    inset-inline-start: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    font-weight: 700;
    color: var(--navy);
}

.about-image-wrap .about-badge span {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.value-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

/* ==========================================================================
   Transparency
   ========================================================================== */
.transparency-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.transparency-section::after {
    content: '';
    position: absolute;
    top: -50%;
    inset-inline-end: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(11, 110, 79, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.transparency-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.transparency-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    opacity: 0.92;
}

.transparency-list i {
    color: var(--accent);
    margin-top: 0.2rem;
}

/* ==========================================================================
   CTA Band
   ========================================================================== */
.cta-band {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #12875f 100%);
    color: var(--white);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-band .container { position: relative; z-index: 1; }

.cta-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-band p {
    opacity: 0.92;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 1.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 0;
}


.footer-cta-bar h4 {
    color: var(--white);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-cta-bar p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
}

.footer-main { padding: 4rem 0 2rem; }

.site-footer h5 {
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

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

.site-footer .footer-links li { margin-bottom: 0.65rem; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-inline-end: 0.5rem;
    transition: all var(--transition);
    color: rgba(255, 255, 255, 0.8) !important;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.footer-contact-item i {
    color: var(--accent);
    margin-top: 0.2rem;
    width: 18px;
}

/* ==========================================================================
   Floating Donate Button
   ========================================================================== */
.floating-donate {
    position: fixed;
    bottom: 1.5rem;
    inset-inline-end: 1.5rem;
    z-index: 999;
    display: none;
}

.floating-donate .btn-donate {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(11, 110, 79, 0.2) 0%, transparent 60%);
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-header .page-lead {
    opacity: 0.85;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

.breadcrumb-site {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
    margin-top: 1rem;
}

.breadcrumb-site .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.breadcrumb-site .breadcrumb-item a:hover { color: var(--white); }

.breadcrumb-site .breadcrumb-item.active { color: var(--accent); }

.breadcrumb-site .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 0.75rem 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.12);
}

.form-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-size: 0.9rem;
}

/* Donation */
.donation-amount-btn {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    text-align: center;
    cursor: pointer;
    font-weight: 800;
    font-size: 1rem;
    transition: all var(--transition);
    color: var(--navy);
}

.donation-amount-btn:hover,
.donation-amount-btn.active {
    border-color: var(--donate);
    background: var(--donate-light);
    color: var(--donate-dark);
}

.donation-trust-panel {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
}

.donation-trust-panel .trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.donation-trust-panel .trust-item:last-child { margin-bottom: 0; }

.donation-trust-panel .trust-item i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.bank-info-card {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 2rem;
    border-inline-start: 4px solid var(--primary);
}

.alert-success-site {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    color: var(--primary-dark);
    border-radius: var(--radius);
}

/* Documents */
.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.doc-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
    transform: translateX(-4px);
}

[dir="ltr"] .doc-item:hover { transform: translateX(4px); }

/* News meta */
.news-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .stat-box {
        border-inline-end: none;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
    }

    .stat-box:last-child { border-bottom: none; }

    .impact-stats { margin-top: -2rem; }

    .transparency-section { padding: 2rem; }
}

@media (max-width: 768px) {
    .section-padding { padding: 3.5rem 0; }

    .hero-section,
    .carousel-hero .carousel-item { min-height: 460px; }

    .hero-trust-badges { gap: 1rem; }

    .floating-donate { display: block; }

    .carousel-hero .carousel-control-prev,
    .carousel-hero .carousel-control-next { display: none; }

    .site-navbar .navbar-collapse {
        padding-top: 1rem;
        border-top: 1px solid var(--border);
        margin-top: 0.75rem;
    }
}

@media (min-width: 769px) {
    .floating-donate { display: none; }
}

/* ==========================================================================
   US Nonprofit: Trust, Accountability & Donation UX
   ========================================================================== */
.trust-bar {
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.65rem 0;
    font-size: 0.82rem;
}

.trust-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 2rem;
    color: rgba(255, 255, 255, 0.88);
}

.trust-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.trust-bar-item i { color: var(--accent); }

.trust-bar-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--transition);
}

.trust-bar-link:hover { color: var(--accent); }

.accountability-section {
    background: var(--bg-light);
    padding: 4rem 0;
    border-block: 1px solid var(--border);
}

.accountability-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    height: 100%;
    text-align: center;
    transition: box-shadow var(--transition);
}

.accountability-card:hover { box-shadow: var(--shadow-sm); }

.accountability-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.accountability-label {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.donation-frequency-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.35rem;
    border-radius: 50px;
    width: fit-content;
    border: 1px solid var(--border);
}

.donation-frequency-toggle .btn {
    border-radius: 50px !important;
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: none !important;
}

.donation-frequency-toggle .btn-check:checked + .btn {
    background: var(--primary);
    color: var(--white);
}

.impact-tier-hint {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--navy);
    font-weight: 600;
}

.donation-privacy-notice a { font-weight: 700; }

.tax-exempt-notice {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 600;
}

.ein-card {
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}

.legal-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
}

.legal-content ul {
    padding-inline-start: 1.25rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.footer-legal-links .list-inline-item:not(:last-child)::after {
    content: '|';
    margin-inline: 0.5rem;
    opacity: 0.35;
}

/* WCAG focus states */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.donation-amount-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   Rich Content, Timeline & FAQ
   ========================================================================== */
.content-rich h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.content-rich h3:first-child { margin-top: 0; }

.content-rich p,
.content-rich li {
    color: var(--text-muted);
    line-height: 1.85;
}

.content-rich ul { padding-inline-start: 1.25rem; }

.content-rich blockquote {
    border-inline-start: 4px solid var(--primary);
    padding-inline-start: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--navy);
    font-weight: 600;
}

.timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 60px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-year {
    flex-shrink: 0;
    width: 60px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    text-align: center;
    padding-top: 0.25rem;
}

.timeline-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    flex: 1;
    box-shadow: var(--shadow-sm);
}

.volunteer-tabs .nav-link {
    border-radius: 50px;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin: 0 0.25rem;
}

.volunteer-tabs .nav-link.active {
    background: var(--primary);
    color: var(--white);
}

.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 700;
    color: var(--navy);
    background: var(--bg-light);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: none;
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Hero brand watermark
   ========================================================================== */
.hero-brand-mark {
    position: absolute;
    inset-inline-end: -60px;
    bottom: -60px;
    width: 420px;
    height: 420px;
    background: url('/images/brand/logo.png') no-repeat center / contain;
    opacity: 0.08;
    filter: brightness(0) invert(1);
    pointer-events: none;
    z-index: 0;
}

.carousel-hero .carousel-item .hero-brand-mark { display: none; }

/* ==========================================================================
   Quick Give — Impact Calculator
   ========================================================================== */
.quick-give-section {
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--white) 100%);
}

.quick-give-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    height: 100%;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.quick-give-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.quick-give-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    font-family: var(--font-display-en);
}

.quick-give-amount small {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.quick-give-impact {
    color: var(--text-muted);
    font-size: 0.9rem;
    min-height: 3.4em;
    margin: 0.75rem 0 1.25rem;
    line-height: 1.7;
}

.quick-give-card .btn {
    width: 100%;
}

.quick-give-card.featured {
    border-color: var(--gold);
    background: var(--donate-light);
}

.quick-give-card.featured::after {
    content: '★';
    position: absolute;
    top: -14px;
    inset-inline-end: 1.25rem;
    background: var(--gold);
    color: var(--navy);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Donut progress ring (allocation %)
   ========================================================================== */
.donut-ring {
    --pct: 87;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--gold) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.15) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.donut-ring::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--navy);
}

.donut-ring-value {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
}

.donut-ring-value small {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.8;
    margin-top: 0.15rem;
}

/* ==========================================================================
   Field Notes band (Gaza update)
   ========================================================================== */
.field-notes-section {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(115deg, var(--navy) 0%, var(--primary-dark) 55%, var(--primary) 100%);
    color: var(--white);
    padding: 3rem;
}

.field-notes-section .field-notes-img {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid rgba(255, 255, 255, 0.15);
}

.field-notes-section .field-notes-img img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.field-notes-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.field-notes-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(201, 162, 39, 0); }
}

@media (max-width: 768px) {
    .hero-brand-mark { width: 260px; height: 260px; }
    .field-notes-section { padding: 2rem; }
    .field-notes-section .field-notes-img img { height: 200px; }
}
