/**
 * Footer styles - Modern & Professional Design
 */

/* Default footer styles (no parallax) */
html {
    height: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    max-height: 630px;
    background-color: var(--cj-secondary-color);
    margin: 0;
}

#content {
    position: relative;
    background-color: #fff;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cj-footer {
    position: relative;
    background-color: #1a2a3a; /* Deeper blue for better contrast */
    color: #e6e9ed!important; /* Lighter text for better readability */
    padding: 4rem 0 2rem;
    z-index: 1;
    width: 100%;
}

/* Kept for backwards compatibility */
.cj-footer.no-parallax {
    position: relative;
    bottom: auto;
    left: auto;
}

.cj-footer p {
    color: #333333 !important; /* Lighter text for better readability */
}

.cj-footer .container {
    padding: 0 1.5rem;
}

/* Footer logo */
.cj-footer-logo {
    max-width: 200px;
}

.cj-footer-logo img {
    max-width: 100%;
    height: auto;
}

.cj-footer-text {
    margin: 1.25rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #333333!important; /* Lighter text for better readability */
    opacity: 0.9; /* Increased opacity for better readability */
    padding-right: 1rem;
}

/* Social buttons */
.cj-footer-social-buttons {
    display: flex;
    gap: 12px;
    margin-top: 1.75rem;
    padding-left: 0.2rem;
}

.cj-footer-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly more visible */
    color: #ffffff;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cj-footer-social-button:hover {
    background-color: #ff6b35; /* Vibrant orange for interactive elements */
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Section titles */
.cj-footer-title {
    color: #ffffff!important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 0.5rem;
}

.cj-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    width: 40px;
    height: 3px;
    background-color: #ff6b35; /* Matching orange accent */
    border-radius: 2px;
}

/* Footer links */
.cj-footer-links {
    list-style: none;
    padding: 0 0.5rem 0 1rem;
    margin: 0;
}

.cj-footer-links li {
    margin-bottom: 0.85rem;
}

.cj-footer-links a {
    color: #d0d6e0; /* Softer color that's still readable */
    transition: all 0.2s ease;
    position: relative;
    padding-left: 17px;
    font-size: 0.95rem;
    opacity: 0.95; /* Increased for better visibility */
}

.cj-footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
    color: #ff6b35; /* Matching orange accent */
}

.cj-footer-links a:hover {
    color: #ffffff;
    padding-left: 22px;
    opacity: 1;
}

.cj-footer-links a:hover::before {
    transform: translateX(5px);
}

/* Contact info */
.cj-footer-contact-info {
    line-height: 1.9;
    color: #e6e9ed!important; /* Lighter text for better readability */
    font-size: 0.95rem;
    opacity: 0.95; /* Increased for better visibility */
    padding-left: 0.5rem;
    padding-right: 1rem;
}

.cj-footer-contact-info i {
    color: #ff6b35; /* Matching orange accent */
    width: 22px;
    margin-right: 10px;
}

.cj-footer-contact-info a {
    color: #d0d6e0;
    transition: all 0.2s ease;
}

.cj-footer-contact-info a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Copyright section */
.cj-footer-copyright {
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12); /* Slightly more visible */
    font-size: 0.9rem;
    opacity: 0.8; /* Increased for better visibility */
    padding: 1.75rem 1rem 0;
}

.cj-footer-copyright p {
    letter-spacing: 0.3px;
}

/* Tablet and mobile styles */
@media screen and (max-width: 1023px) {
    .cj-footer .container {
        padding: 0 2rem;
    }
    
    .cj-footer-title {
        margin-bottom: 1.25rem;
    }
    
    .cj-footer-contact-info {
        font-size: 0.9rem;
    }
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    /* Disable parallax effect on mobile */
    #content {
        margin-bottom: 0 !important; /* Override any JS-added margin */
        min-height: auto;
        box-shadow: none;
    }
    
    .cj-footer {
        position: relative; /* Change from fixed to relative */
        bottom: auto;
        left: auto;
        z-index: 1;
        transition: none;
        padding: 3rem 0 1.5rem;
    }
    
    .cj-footer .container {
        padding: 0 1.5rem;
    }
    
    .cj-footer-logo {
        max-width: 160px;
        margin-bottom: 1rem !important;
    }
    
    .cj-footer-title {
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .cj-footer-links li {
        margin-bottom: 0.7rem;
    }
    
    .cj-footer-links a, 
    .cj-footer-text,
    .cj-footer-contact-info {
        font-size: 0.9rem;
    }
    
    .cj-footer-social-buttons {
        margin-top: 1.25rem;
    }
    
    .cj-footer-social-button {
        width: 34px;
        height: 34px;
    }
    
    .column {
        padding: 0.5rem 0.75rem;
    }
    
    .cj-footer-copyright {
        margin-top: 2rem;
        padding-top: 1.25rem;
        text-align: center;
    }
} 