/* Happy Family Rwanda - Master Stylesheet 2026
    Branding: Deep Purple & Vibrant Pink 
*/

:root {
    /* --- Official Brand Colors --- */
    --primary-color: #631084;      /* Deep Purple (Trust & Authority) */
    --accent-color: #ec409e;       /* Vibrant Pink (Action & Heart) */
    --btn-modern-purple: #631084;
    --primary-purple: #631084;
    --light-bg: #fcfaff;
    
    /* --- Helper Variables --- */
    --bs-primary: var(--primary-color);
    --bs-secondary: #fdf2f8;
    --bs-dark: #1a1a1a;
    --bs-white: #ffffff;
    --bs-body: #333333;
    
    /* --- Animations --- */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Global Link Reset (Fixes the blue underline) */
a {
    text-decoration: none !important; /* Removes underline */
    color: inherit; /* Stops links from turning default blue */
}

/* 3. Specific fix for Navbar Links to ensure they use your Purple */
.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* --- Base Elements --- */
body { 
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden; 
    color: var(--bs-body);
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6, .nav-link { 
    font-family: 'Jost', sans-serif; 
    font-weight: 700; 
    color: var(--primary-color);
}

::selection {
    background-color: var(--accent-color);
    color: var(--bs-white);
}

[x-cloak] { display: none !important; }
.lh-lg { line-height: 1.8; }

/* --- Spinner --- */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}

/* --- Navigation (Glassmorphism) --- */
.navbar {
    padding: 0;
    transition: var(--transition-smooth);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(99, 16, 132, 0.1);
}

.scrolled-nav {
    padding: 5px 0 !important;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(99, 16, 132, 0.1);
}

.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--primary-color) !important;
}

.topbar a {
    color: var(--bs-white) !important;
    transition: var(--transition-smooth);
}

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

/* --- Nav Link Interaction --- */
.nav-link {
    font-weight: 600;
    color: var(--primary-color) !important;
    position: relative;
    padding: 10px 15px;
    transition: var(--transition-smooth);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: var(--accent-color);
    transition: var(--transition-smooth);
    border-radius: 10px;
}

.nav-link:hover:after, .nav-link.active:after {
    width: 60%;
    left: 20%;
}

/* --- Professional Button UI --- */
.btn-modern {
    border-radius: 8px; /* Soft square trend */
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition-smooth);
    background: var(--primary-color);
    color: white;
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-modern:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(236, 64, 158, 0.3);
    color: white;
}

/* --- Carousel --- */
.carousel-header #carouselId .carousel-inner .carousel-item {
    min-height: 100vh;
}

.carousel-header #carouselId .carousel-inner .carousel-item .carousel-caption {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0.4));
}

.carousel-indicators li.active {
    border: 5px solid var(--primary-color) !important;
    background: var(--primary-color);
}

/* --- Impact & Gallery Sections --- */
.section-title-border {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px 0;
    border-radius: 2px;
}

.gallery .gallery-item:hover .gallery-content {
    background: rgba(236, 64, 158, 0.85); /* Accent Pink Overlay */
}

/* --- Owl Carousel Navigation --- */
.owl-nav .owl-prev, .owl-nav .owl-next {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 8px !important;
    transition: var(--transition-smooth);
}

.owl-nav .owl-prev:hover, .owl-nav .owl-next:hover {
    background: var(--accent-color) !important;
    transform: scale(1.1);
}

/* --- Testimonials --- */
.testimonial-item .testimonial-img {
    border: 3px dotted var(--primary-color);
}

.owl-item.center .testimonial-comment {
    background: var(--primary-color) !important;
    color: white;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color) !important;
    color: white !important;
    border-radius: 50%;
    z-index: 99;
    transition: var(--transition-smooth);
    border: none;
    box-shadow: 0 4px 15px rgba(236, 64, 158, 0.3);
}

.back-to-top:hover {
    background: var(--primary-color) !important;
    transform: translateY(-5px) scale(1.1);
}

/* --- Footer --- */
.footer {
    background: var(--bs-dark);
    border-top: 3px dotted var(--primary-color);
}

.footer .footer-item a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}