/* ==========================================================================
   Banglar Bagh Foundation — Components CSS
   All custom CSS extracted from inline <style> blocks across every page.
   Organised: Base → Layout → Components → Utilities → Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BASE
   -------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0A3B2E;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   2. NAVIGATION
   -------------------------------------------------------------------------- */

/* Prevent body scroll while mobile menu is open */
.mobile-menu-open {
    overflow: hidden;
}

/* Mobile overlay slide-in animation */
.mobile-overlay {
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.2s ease;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.mobile-overlay.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Breadcrumb separator */
.breadcrumb-separator::before {
    content: '›';
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   3. HERO SECTION
   -------------------------------------------------------------------------- */

.hero-gradient {
    background: linear-gradient(135deg, rgba(10, 59, 46, 0.65) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-gradient-deep {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.hero-slider-wrapper {
    position: relative;
    min-height: 100vh;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.75s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
}

.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    z-index: 30;
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-slider-nav:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(255, 255, 255, 0.28);
}

.hero-slider-prev {
    left: 1.5rem;
}

.hero-slider-next {
    right: 1.5rem;
}

.hero-slider-dots {
    display: flex;
    gap: 0.75rem;
}

.hero-slider-dot {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-slider-dot.active {
    width: 1.1rem;
    height: 1.1rem;
    background: #E9B35F;
}

/* Inner-page hero (solid primary bg with decorative blobs) */
.page-hero {
    position: relative;
    padding-top: 9rem;
    padding-bottom: 5rem;
    overflow: hidden;
    background-color: #0A3B2E;
}

.page-hero .hero-blob-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    border-radius: 9999px;
    background: rgba(233, 179, 95, 0.1);
    filter: blur(3rem);
    transform: translateY(-50%) translateX(33%);
}

.page-hero .hero-blob-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    border-radius: 9999px;
    background: rgba(45, 106, 79, 0.3);
    filter: blur(2rem);
    transform: translateY(50%) translateX(-25%);
}

.page-hero .hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
}

.page-hero .wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* --------------------------------------------------------------------------
   4. CARDS & GLASS EFFECTS
   -------------------------------------------------------------------------- */

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
}

/* Card with animated gradient border on hover */
.gradient-border,
.gradient-border-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.gradient-border::after,
.gradient-border-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, #E9B35F, #0A3B2E);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gradient-border:hover::after,
.gradient-border-card:hover::after {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */

.btn-primary-gradient {
    background: linear-gradient(105deg, #0A3B2E 0%, #2D6A4F 100%);
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -12px rgba(10, 59, 46, 0.5);
}

.btn-accent-gradient {
    background: linear-gradient(135deg, #E9B35F, #D49B3A);
    transition: all 0.3s ease;
}

.btn-accent-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -12px rgba(233, 179, 95, 0.5);
}

/* --------------------------------------------------------------------------
   6. HOVER UTILITIES
   -------------------------------------------------------------------------- */

.hover-scale {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-scale:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   7. STAT COUNTERS
   -------------------------------------------------------------------------- */

.stat-number {
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   8. ACCORDION / FAQ
   -------------------------------------------------------------------------- */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
    max-height: 500px;
}

.faq-item .faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   9. FORM INPUTS
   -------------------------------------------------------------------------- */

.form-input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.form-input:focus {
    border-color: #0A3B2E;
    box-shadow: 0 0 0 3px rgba(10, 59, 46, 0.12);
}

/* --------------------------------------------------------------------------
   10. PROGRESS / DONATION BAR
   -------------------------------------------------------------------------- */

.donation-amount {
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.donation-amount:hover,
.donation-amount.selected {
    background: rgba(233, 179, 95, 0.15);
    color: #0A3B2E;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   11. SECTION DIVIDERS
   -------------------------------------------------------------------------- */

.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* --------------------------------------------------------------------------
   12. TYPOGRAPHY HELPERS
   -------------------------------------------------------------------------- */

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E9B35F;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #0A3B2E;
    margin-top: 0.5rem;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   13. GO-TO-TOP BUTTON
   -------------------------------------------------------------------------- */

#goToTop {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background-color: #0A3B2E;
    color: #fff;
    border: none;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(10, 59, 46, 0.35);
    z-index: 50;
}

#goToTop:hover {
    background-color: #2D6A4F;
    box-shadow: 0 12px 30px rgba(10, 59, 46, 0.45);
}

#goToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   14. TEAM MEMBER CARDS
   -------------------------------------------------------------------------- */

.team-img {
    transition: transform 0.5s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE TWEAKS
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .page-hero {
        padding-top: 7rem;
        padding-bottom: 3.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}