/* =============================================
   Baraa NGO — Modern UI System
   Extracted from style.php
   ============================================= */

:root {
    /* Mapping to original root elements as requested */
    --br-terracotta: var(--theme-color);
    --br-terracotta-light: var(--theme-color-light);
    --br-terracotta-pale: rgba(var(--theme-color-rgb), 0.1); /* Fallback to theme or specific pale */
    --br-sage: var(--theme-color2);
    --br-sage-light: var(--theme-color-light);
    --br-sage-pale: var(--grey);
    --br-warm-black: var(--theme-color-dark);
    --br-dark-brown: var(--theme-color-dark);
    --br-sand: var(--grey);
    --br-white: #FFFFFF;
    --br-gray: #6B6B6B;
    --br-gray-light: #C4B8B2;

    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}



/* ---- Navbar Enhancements ---- */
#navbar {
    transition: all 0.4s var(--transition-smooth);
}

#navbar.is-scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(var(--theme-color-rgb), 0.08), 0 4px 24px rgba(44, 36, 34, 0.06) !important;
}

#navbar.is-scrolled .nav-logo {
    max-height: 40px;
}

#navbar .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.625rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    white-space: nowrap;
}

#navbar .nav-link:hover,
#navbar .nav-link:focus,
#navbar .nav-link.active-link {
    color: var(--br-terracotta) !important;
    background-color: var(--br-terracotta-pale);
}

/* Dropdown Customization */
#navbar .dropdown-menu {
    border: 1px solid rgba(var(--theme-color-rgb), 0.1);
    box-shadow: 0 12px 40px rgba(44, 36, 34, 0.1), 0 4px 12px rgba(44, 36, 34, 0.04);
}

#navbar .dropdown-menu .dropdown-item:hover {
    background-color: var(--br-terracotta-pale);
    color: var(--br-terracotta);
}

#navbar .btn-donate {
    background: var(--br-terracotta);
    border: 2px solid var(--br-terracotta);
    color: var(--br-white) !important;
    transition: all 0.35s var(--transition-smooth);
}

#navbar .btn-donate:hover {
    background: var(--br-terracotta-light);
    border-color: var(--br-terracotta-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--theme-color-rgb), 0.3);
}

/* Progress Bar */
.nav-scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--br-terracotta), var(--br-terracotta-light));
    width: 0%;
    transition: width 0.1s linear;
    z-index: 1001;
}

/* Mobile Overlay */
.nav-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 36, 34, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition-smooth);
}

.nav-mobile-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ---- Component Specific ---- */

/* Stats Band */
.stats-band {
    background: var(--br-sage-pale);
}

.stat-number {
    font-family: 'DM Serif Display', serif;
    color: var(--br-terracotta);
}

.stat-label {
    color: var(--br-sage);
}

/* Programs section (formerly home_services) */
#services-section {
    background: var(--br-white);
}

.program-card {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(44, 36, 34, 0.06);
    transition: all 0.4s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(44, 36, 34, 0.1);
}

.program-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: var(--br-terracotta-pale);
    color: var(--br-terracotta);
}

/* Get Involved */
.involvement-card {
    background: var(--br-sage-pale);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.35s ease;
}

.involvement-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(44, 36, 34, 0.08);
}

.section-subtitle {
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--br-sage);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--br-warm-black);
    margin-bottom: 1rem;
}

.program-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}
.program-card:hover img {
    transform: scale(1.1);
}
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
    opacity: 0;
}
.program-card:hover .card-overlay {
    opacity: 1;
}

/* ---- Common Section Styles (Vision, Mission, Values) ---- */
.section-decorative-circle {
    background: rgba(var(--theme-color-rgb), 0.1);
    width: 80%;
    height: 80%;
    top: -5%;
    z-index: 0;
}
.section-decorative-circle-start {
    inset-inline-start: -5%;
}
.section-decorative-circle-end {
    inset-inline-end: -5%;
}

.section-image-wrapper {
    border-radius: 2rem;
   
}

.section-image-placeholder {
    background: rgba(var(--theme-color-rgb), 0.05);
    color: var(--theme-color);
}

.section-floating-badge {
    bottom: 0;
    min-width: 220px;
    border: 1px solid rgba(0,0,0,0.05);
}
.section-floating-badge-end {
    inset-inline-end: -20px !important;
}
.section-floating-badge-start {
    inset-inline-start: -20px !important;
}

.badge-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(var(--theme-color-rgb), 0.1);
    color: var(--theme-color);
}

.badge-title {
    color: var(--theme-color-dark);
    font-size: 1.1rem;
}

.section-divider-line {
    width: 40px;
    height: 3px;
    background: var(--theme-color);
}

.section-subtitle-text {
    color: var(--theme-color);
    font-size: 2.2rem;
}

.section-heading {
    color: var(--theme-color-dark);
}

.section-description {
    color: var(--theme-color-dark);
    opacity: 0.75;
    font-size: 1.5rem;
}

/* Values Section Specific */
.value-card {
    background: rgba(var(--theme-color-rgb), 0.03);
    border: 1px solid rgba(var(--theme-color-rgb), 0.1);
}
.value-icon-wrapper {
    width: 32px;
    height: 32px;
    background: var(--theme-color);
    color: white;
    flex-shrink: 0;
}
.value-title {
    color: var(--theme-color-dark);
    font-size: 1rem;
}

.duration-500 {
    transition-duration: 500ms;
}

/* ── Page Header ── */
.ph-header {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--theme-color);
}
.ph-header--no-image {
    min-height: 160px;
}

.ph-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    transition: transform 0.6s ease;
}
.ph-header:hover .ph-header-bg {
    transform: scale(1.02);
}

.ph-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.3) 55%, transparent 100%);
}
.ph-header-content {
    position: relative;
    width: 100%;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ph-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.ph-eyebrow-line {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: rgba(255,255,255,0.35);
}
.ph-title {
    font-size: clamp(3rem, 6vw, 4rem);
    color: #fff;
    line-height: 1.1;
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ── Body Layout ── */
.ph-body {
    padding: 2.5rem 0 3rem;
}
.ph-body *{
    font-family:inherit !important;
}


.ph-with-image {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 768px) {
    .ph-with-image {
        grid-template-columns: 1fr;
    }
    .ph-image-wrap {
        order: -1;
    }
    .ph-header-content {
        padding: 1.5rem;
    }
}

.ph-image-wrap {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.ph-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.ph-image-wrap:hover img {
    transform: scale(1.04);
}   