/**
 * Enhanced Footer Styles for Nyalife HMS
 * Features a modern, textured design with crimson pink background and depth effects
 */


/* Main Footer Styling */

footer {
    margin-top: 3rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}


/* Footer Top Section */

.footer-top {
    background-color: #ff4384;
    /* Crimson Pink */
    position: relative;
    padding: 2rem 0 1.2rem;
    overflow: hidden;
    /* Ensures the pseudo-elements don't create scrollbars */
}


/* Blurred Texture Effect */

.footer-top:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.1 0"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.2;
    pointer-events: none;
    /* Make it non-interactive */
    z-index: 1;
}


/* Glass Effect for Footer Sections */

.footer-about,
.footer-links,
.footer-contact,
.footer-newsletter {
    background: rgba(225, 224, 224, 0.093);
    /*Subtlewhiteoverlay*/
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border: .7px solid rgba(255, 255, 255, 0.85);
    height: 100%;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.footer-about:hover,
.footer-links:hover,
.footer-contact:hover,
.footer-newsletter:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.footer-about {
    background-color: rgba(105, 178, 178, 0.822);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.523);
}


/* Logo Styling */

.footer-logo {
    display: inline-block;
    margin-bottom: 1.2rem;
}

.footer-logo img {
    filter: brightness(1.05);
    height: 110px;
    width: auto;
}


/* Section Headers */

footer h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    color: #fff;
}

footer h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background: #fff;
    border-radius: 3px;
}


/* Footer Text */

footer p {
    font-size: 0.8rem;
    letter-spacing: -0.25px;
    line-height: 1.2;
    font-weight: 400;
    text-shadow: 0 0 1px rgba(155, 152, 152, 0.15);
    margin-bottom: 1.5rem;
}


/* Footer Links List */

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    padding: 0.4rem 0;
    transition: all 0.3s ease;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    padding-left: 8px;
    font-weight: 500;
}

.footer-links a i {
    margin-right: 10px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(3px);
}


/* Contact Info */

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: .3rem;
    font-size: .9rem;
    line-height: 1.1;
    letter-spacing: -.5px;
    font-weight: 500;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-contact li i {
    margin-right: 12px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
    min-width: 16px;
}

.footer-contact li span {
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}


/* Newsletter Form */

.newsletter-form {
    position: relative;
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    background: #fff;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: calc(100% - 10px);
    width: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff4384 0%, #ff1a6c 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ff1a6c 0%, #ff4384 100%);
}


/* Social Links */

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fff;
    color: #ff4384;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* Footer Bottom */

.footer-bottom {
    background-color: rgba(42, 110, 110, 0.682);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: .5rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: -.5px;
    line-height: 1.2;
    text-shadow: 0 0 .6px rgba(0, 0, 0, 0.15);
}


/* Responsive Adjustments */

@media (max-width: 768px) {
    .footer-top {
        padding: 2rem 0 1rem;
    }
    .footer-about,
    .footer-links,
    .footer-contact,
    .footer-newsletter {
        margin-bottom: 1rem;
        padding: 1.25rem;
    }
    footer h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    footer h4:after {
        width: 40px;
        height: 2px;
    }
    footer p {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    .footer-logo img {
        height: 70px;
    }
    .footer-contact li {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    .footer-links li {
        padding: 0.3rem 0;
    }
    .newsletter-form {
        margin-bottom: 1rem;
    }
    .social-links {
        gap: 8px;
    }
    .social-links a {
        width: 32px;
        height: 32px;
    }
}

/* Mobile Optimizations (≤576px) */
@media (max-width: 576px) {
    .footer-top {
        padding: 1.5rem 0 0.75rem;
    }
    
    .footer-about,
    .footer-links,
    .footer-contact,
    .footer-newsletter {
        margin-bottom: 0.75rem;
        padding: 1rem;
        border-radius: 20px;
    }
    
    footer h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.4rem;
    }
    
    footer h4:after {
        width: 35px;
        height: 2px;
    }
    
    footer p {
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .footer-logo {
        margin-bottom: 0.75rem;
    }
    
    .footer-logo img {
        height: 50px;
    }
    
    .footer-links ul,
    .footer-contact ul {
        margin: 0;
    }
    
    .footer-links li {
        padding: 0.25rem 0;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-links a i {
        font-size: 0.7rem;
        margin-right: 8px;
    }
    
    .footer-contact li {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .footer-contact li i {
        margin-right: 8px;
        margin-top: 3px;
        font-size: 0.85rem;
        flex-shrink: 0;
        min-width: 14px;
    }
    
    .footer-contact li span {
        word-break: break-word;
        overflow-wrap: break-word;
        flex: 1;
        min-width: 0;
    }
    
    .newsletter-form {
        margin-bottom: 0.75rem;
    }
    
    .newsletter-form input {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .newsletter-form button {
        width: 35px;
        height: calc(100% - 8px);
        right: 4px;
        top: 4px;
    }
    
    .newsletter-form button i {
        font-size: 0.85rem;
    }
    
    .social-links {
        gap: 6px;
        margin-top: 0.75rem !important;
    }
    
    .social-links a {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 0.4rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
        padding: 0 0.5rem;
    }
    
    /* Reduce row gaps on mobile */
    .footer-top .row.g-4 {
        --bs-gutter-y: 0.75rem;
    }
}

/* Extra small mobile (≤400px) */
@media (max-width: 400px) {
    .footer-top {
        padding: 1.25rem 0 0.5rem;
    }
    
    .footer-about,
    .footer-links,
    .footer-contact,
    .footer-newsletter {
        padding: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    footer h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    footer p {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .footer-contact li {
        font-size: 0.7rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .footer-contact li i {
        min-width: 12px;
    }
    
    .footer-contact li span {
        font-size: 0.7rem;
        word-break: break-word;
        overflow-wrap: break-word;
        flex: 1;
        min-width: 0;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    /* Two column layout on very small screens */
    .footer-top .row > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}