/* filepath: /Users/m.shaaban/Local Sites/neohpl/app/public/wp-content/themes/NEOHPL_Theme/assets/css/footer.css */
/**
 * NeoHpl MedTech - Footer Styles
 * ================================
 */

/* ========================================
   FOOTER CTA BANNER (Matching footer.php)
======================================== */

.footer-cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0088BC 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.footer-cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.footer-cta-banner .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.cta-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-text {
    max-width: 600px;
}

.cta-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
    line-height: 1.3;
}

.cta-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-phone:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-phone i {
    font-size: 18px;
}

.cta-actions .btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-actions .btn-white:hover {
    background: var(--color-gray-100);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-actions .btn-white i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.cta-actions .btn-white:hover i {
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .cta-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text {
        max-width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-phone,
    .cta-actions .btn-white {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   MAIN FOOTER
======================================== */

.site-footer {
    background: var(--color-dark);
    color: var(--color-gray-300);
}

/* ========================================
   FOOTER WIDGETS SECTION
======================================== */

.footer-widgets {
    padding: 80px 0 60px;
}

.footer-widgets .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
}

@media (max-width: 1024px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-widgets {
        padding: 60px 0 40px;
    }
}

/* Footer Column */
.footer-column {
    min-width: 0;
}

/* Footer About / Logo Column */
.footer-about {
    padding-right: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo a {
    display: inline-block;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
}

.footer-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-gray-400);
    margin-bottom: 25px;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-social li a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--color-gray-400);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social li a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Footer Widget Title */
.footer-widget-title {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 12px;
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
}

/* Footer Links List */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: var(--color-gray-400);
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links li a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
    position: absolute;
    left: 0;
}

.footer-links li a:hover {
    color: var(--color-white);
    padding-left: 15px;
}

.footer-links li a:hover::before {
    width: 10px;
}

/* Footer Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-gray-400);
    font-size: 15px;
}

.footer-contact-list li i {
    color: var(--color-primary);
    font-size: 16px;
    margin-top: 3px;
    width: 20px;
    flex-shrink: 0;
}

.footer-contact-list li a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-list li a:hover {
    color: var(--color-primary);
}

.footer-contact-list li span {
    line-height: 1.5;
}

/* ========================================
   FOOTER BOTTOM
======================================== */

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 14px;
    color: var(--color-gray-500);
}

.copyright p {
    margin: 0;
}

.copyright a {
    color: var(--color-primary);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    font-size: 14px;
    color: var(--color-gray-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

@media (max-width: 640px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        gap: 20px;
    }
}

/* ========================================
   BACK TO TOP BUTTON
======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 20px rgba(0, 164, 224, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
}

/* ========================================
   OLD CLASS ALIASES (for compatibility)
======================================== */

.footer-main {
    padding: 80px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-brand {
    padding-right: 30px;
}

.footer-widget h4 {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-gray-400);
}

.footer-contact li i {
    color: var(--color-primary);
    font-size: 16px;
    margin-top: 3px;
    width: 20px;
    flex-shrink: 0;
}

.footer-contact li a {
    color: var(--color-gray-400);
    text-decoration: none;
}

.footer-contact li a:hover {
    color: var(--color-primary);
}

.footer-copyright {
    font-size: 14px;
    color: var(--color-gray-500);
}

.footer-copyright a {
    color: var(--color-primary);
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    font-size: 14px;
    color: var(--color-gray-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* Footer CTA (old class) */
.footer-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0088BC 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.footer-cta .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-cta-content {
    max-width: 600px;
}

.footer-cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.footer-cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.footer-cta-actions {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

/* Newsletter Form */
.footer-newsletter {
    margin-top: 25px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--color-white);
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--color-gray-500);
}

.newsletter-form input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--color-primary-dark);
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}
