/* =========================================
   SHALOM DAY CARE - Premium Stylesheet
   Lavender Glassmorphism Theme
   Version: 2.3 - Fixed Navbar Active State & Mobile
   ========================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

/* CSS Variables */
:root {
    --primary: #4A90D9;
    --primary-dark: #1565C0;
    --primary-light: #64B5F6;
    --accent: #7C5CBF;
    --accent-dark: #6A4C93;
    --accent-light: #B4A0D9;
    --yellow: #FFD54F;
    --yellow-dark: #FFC107;
    --green: #66BB6A;
    --red: #EF5350;
    --teal: #4DB6AC;
    --text-dark: #1A1A2E;
    --text-medium: #4A4A6A;
    --text-light: #8A8AA0;
    --white: #FFFFFF;
    --off-white: #F8F7FC;
    --light-gray: #F0EEF5;
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-strong: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-blur: blur(20px) saturate(180%);
    --glass-shadow: 0 8px 32px rgba(74, 20, 140, 0.08);
    --glass-shadow-hover: 0 16px 48px rgba(74, 20, 140, 0.15);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50px;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
    --nav-offset: 74px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(74, 144, 217, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 92, 191, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 213, 79, 0.02) 0%, transparent 50%),
        linear-gradient(165deg, #FAF9FC 0%, #F5F3FA 30%, #F0EEF8 60%, #F8F6FC 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-top: var(--nav-offset);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.display-4 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.fw-bold {
    font-weight: 700 !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    color: var(--primary);
    text-decoration: none !important;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none !important;
}


/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* ========== NAVBAR ========== */
#header-container {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1080;
    width: 100%;
    flex-shrink: 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(180, 160, 217, 0.2);
    box-shadow: 0 2px 20px rgba(74, 20, 140, 0.06);
    z-index: 1030;
    padding: 0.6rem 0;
    transition: var(--transition);
    position: relative !important;
    top: auto !important;
    display: block !important;
    visibility: visible !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 24px rgba(74, 20, 140, 0.12);
    position: relative !important;
    top: auto !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-dark) !important;
    letter-spacing: -0.03em;
    text-decoration: none !important;
}

.navbar-brand:hover {
    color: var(--accent-dark) !important;
    transform: translateY(-1px);
}

.navbar-brand img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(124, 92, 191, 0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.navbar-brand:hover img {
    border-color: var(--accent);
    transform: rotate(-5deg) scale(1.05);
}

.navbar-toggler {
    border: none !important;
    padding: 0.5rem;
    transition: var(--transition-fast);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.2) !important;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(74, 20, 140, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========== NAV LINKS - FIXED ========== */
.navbar-nav {
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-medium) !important;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
    text-decoration: none !important;
    white-space: nowrap;
    background: transparent;
}

/* Remove ALL underlines - no pseudo elements */
.nav-link {
    text-decoration: none !important;
}

.nav-link::after,
.nav-link::before {
    display: none !important;
}

/* Hover state - subtle background */
.nav-link:hover {
    background: rgba(124, 92, 191, 0.08);
    color: var(--accent-dark) !important;
    text-decoration: none !important;
}

/* ACTIVE STATE - Clean background only */
.nav-link.active {
    color: var(--primary-dark) !important;
    font-weight: 600;
    background: rgba(74, 144, 217, 0.15);
    border-radius: 8px;
    text-decoration: none !important;
}

.nav-link.active:hover {
    background: rgba(74, 144, 217, 0.25);
}

/* Dropdown toggle active state - no underline */
.nav-item.dropdown .nav-link.active {
    background: rgba(74, 144, 217, 0.15);
}

/* Dropdown */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(180, 160, 217, 0.2);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.6rem;
    margin-top: 0.5rem;
    animation: scaleIn 0.2s ease;
    min-width: 220px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    transition: var(--transition-fast);
    font-weight: 500;
    color: var(--text-medium);
    text-decoration: none !important;
    font-size: 0.95rem;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(124, 92, 191, 0.12);
    color: var(--accent-dark);
    text-decoration: none !important;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Donate button in nav */
.navbar-nav .btn-glass {
    padding: 8px 20px !important;
    font-size: 0.9rem;
    border-radius: 50px;
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 92, 191, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-carousel .carousel-item img {
    height: 450px;
    object-fit: cover;
    width: 100%;
}

.hero-carousel .carousel-indicators {
    margin-bottom: 0.5rem;
}

.hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(124, 92, 191, 0.3);
}

.hero-carousel .carousel-indicators button.active {
    background: var(--accent);
    border-color: var(--accent);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 10px;
    opacity: 0;
    transition: var(--transition);
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(124, 92, 191, 0.1), rgba(74, 144, 217, 0.1));
    border: 1px solid rgba(124, 92, 191, 0.2);
    color: var(--accent-dark);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ========== BUTTONS ========== */
.btn {
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 12px 28px;
    transition: var(--transition);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-glass {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: white !important;
    border: none;
    box-shadow: 0 4px 20px rgba(106, 76, 147, 0.3);
}

.btn-glass:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(106, 76, 147, 0.5);
    color: white !important;
}

.btn-outline {
    background: transparent;
    color: var(--accent-dark) !important;
    border: 2px solid var(--accent-dark);
}

.btn-outline:hover {
    background: var(--accent-dark);
    color: white !important;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ========== GLASS PANELS ========== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
}

.glass-panel-strong {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass-panel-strong:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ========== CARDS ========== */
.card-news {
    border: none;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.card-news:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-news img {
    height: 240px;
    object-fit: cover;
    width: 100%;
    transition: var(--transition-slow);
}

.card-news:hover img {
    transform: scale(1.05);
}

/* ========== FORMS ========== */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(180, 160, 217, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-dark);
    font-family: var(--font-primary);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(124, 92, 191, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

label.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ========== BADGES ========== */
.badge-category {
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: var(--text-dark);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-success {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9) !important;
    color: #2E7D32 !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
}

/* ========== FOOTER ========== */
footer {
    background: linear-gradient(160deg, #1A1A3A 0%, #16223E 40%, #12203A 100%);
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 92, 191, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

footer h5, footer h6 {
    color: white;
    font-weight: 700;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
    text-decoration: none !important;
}

footer a:hover {
    color: white;
    padding-left: 5px;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.08);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white !important;
    transition: var(--transition);
    text-decoration: none !important;
}

.footer-social-link:hover {
    background: var(--accent);
    transform: translateY(-4px);
    color: white !important;
    padding-left: 0;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 32px;
    right: 32px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    transform: scale(1.15) translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none !important;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 108px;
    right: 32px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    color: var(--accent-dark);
    border: 2px solid rgba(124, 92, 191, 0.2);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    text-decoration: none !important;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--accent-dark);
    color: white;
    border-color: var(--accent-dark);
}

/* ========== SECTIONS ========== */
.section-padding {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.section-subtitle {
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== STATS ========== */
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    color: rgba(124, 92, 191, 0.06);
    font-family: var(--font-display);
    line-height: 1;
}

/* ========== MODALS ========== */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 2rem 2rem 0.5rem;
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
}

/* ========== ORG CHART ========== */
.org-chart .badge {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: normal;
    line-height: 1.4;
    padding: 0.8rem 1.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 992px) {
    #header-container {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        width: 100%;
    }

    .navbar {
        width: 100%;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(180, 160, 217, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: none;
        overscroll-behavior: contain;
    }
    
    .navbar-collapse.show {
        max-height: min(520px, calc(100vh - var(--nav-offset) - 1rem));
        max-height: min(520px, calc(100dvh - var(--nav-offset) - 1rem));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-nav {
        gap: 4px;
        padding: 0.5rem 0;
    }
    
    /* Mobile nav links - full width */
    .nav-link {
        display: flex;
        width: 100%;
        padding: 0.7rem 1rem !important;
        border-radius: 10px;
        font-size: 1rem;
        text-decoration: none !important;
    }
    
    /* Mobile active state - no underline */
    .nav-link.active {
        background: rgba(74, 144, 217, 0.15);
        text-decoration: none !important;
    }
    
    .nav-link.active::after,
    .nav-link.active::before {
        display: none !important;
    }
    
    .navbar-nav .btn-glass {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(180, 160, 217, 0.15);
        margin: 0.3rem 0 0.3rem 0.5rem;
        box-shadow: none;
    }
    
    .section-padding { padding: 4rem 0; }
    .section-title { font-size: 2rem; }
    
    .hero-carousel .carousel-item img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .glass-panel { border-radius: var(--radius-md); }
    .hero-section { padding: 3rem 0; }
    .display-4 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    
    .hero-carousel .carousel-item img {
        height: 280px;
    }
    
    .whatsapp-float {
        bottom: 24px;
        right: 24px;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
    
    .back-to-top {
        bottom: 92px;
        right: 24px;
        width: 40px;
        height: 40px;
    }
    
    .stat-number { font-size: 2.5rem; }
    footer { padding: 3rem 0 1.5rem; }
}

@media (max-width: 576px) {
    :root { --nav-offset: 66px; }
    .navbar-brand { font-size: 1.1rem; }
    .navbar-brand img { height: 40px; width: 40px; }
    .btn-lg { padding: 14px 28px; font-size: 1rem; }
    .display-4 { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
    
    .hero-carousel .carousel-item img {
        height: 220px;
    }
}
.glass-badge {
    background: rgba(116, 85, 169, 1) !important;  /* blue lavender with transparency */
    border: 1px solid rgba(186, 85, 211, 0.4);
    border-radius: 14px;
    color: #fff;
    font-weight: 700;  /* bolder text */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.95rem;
}
