/* Enhanced Footer Styles - YOUGU Inspired with SPA Template Theming */
/* Professional footer with advanced styling and responsive design */

/* Sticky Footer Layout */
html { 
    height: 100%; 
}

body.spa-template-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.body-inner {
    flex: 1;
    min-height: auto;
    display: flex;
    flex-direction: column;
}

/* Modern Professional Footer */
.modern-professional-footer {
    position: relative;
    background: #18241c !important;
    background-color: #18241c !important;
    color: #ffffff;
    overflow: hidden;
    margin-top: auto;
    min-height: fit-content;
    width: 100%;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Additional specificity for footer background */
footer.modern-professional-footer,
section.modern-professional-footer,
div.modern-professional-footer,
body .modern-professional-footer {
    background: #18241c !important;
    background-color: #18241c !important;
}

/* Enhanced background effects with dark green gradient */
.modern-professional-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, #18241c 0%, #1a2920 25%, #1c2f22 50%, #1e3426 75%, #20382a 100%),
        radial-gradient(circle at 20% 30%, rgba(32, 140, 100, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(32, 140, 100, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Wave Divider */
.wave-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 75px;
}

/* Content wrapper */
.footer-content-wrapper {
    position: relative;
    z-index: 2;
}

/* Container with proper padding and width constraints */
.footer-content-wrapper .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 60px;
    padding-bottom: 30px;
    box-sizing: border-box !important;
}

.footer-main-section {
    margin-bottom: 40px;
}

/* Grid system using flexbox */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.align-items-start {
    align-items: flex-start;
}

.align-items-center {
    align-items: center;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Footer specific column classes to avoid conflicts */
.footer-col-left {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.footer-col-right {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.footer-col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Legacy support for old classes */
.col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Brand Section */
.footer-brand-section {
    /* Styling handled by container padding */
}

.brand-header {
    margin-bottom: 20px;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin: 0;
    display: block;
    transition: all 0.3s ease;
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #ffffff, #208c64);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.brand-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.brand-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 300;
    transition: color 0.3s ease;
}

/* Social Links */
.social-links-container {
    margin-top: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(32, 140, 100, 0.15);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(32, 140, 100, 0.3);
    text-decoration: none;
    text-align: center;
}

.social-link svg {
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.social-link:hover {
    background: #53eeae;
    color: #051810;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(83, 238, 174, 0.4);
}

/* Navigation Sections */
.footer-nav-section {
    margin-bottom: 30px;
}

.footer-nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.title-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list .nav-item {
    margin-bottom: 4px;
}

.footer-nav-list .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 10px 18px;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px;
    background: rgba(32, 140, 100, 0.1);
    border: 1px solid rgba(32, 140, 100, 0.2);
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.footer-nav-list .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(32, 140, 100, 0.2), transparent);
    transition: left 0.5s ease;
}

.footer-nav-list .nav-link:hover {
    color: #53eeae;
    background: rgba(83, 238, 174, 0.25);
    border-color: rgba(83, 238, 174, 0.5);
    box-shadow: 0 4px 15px rgba(83, 238, 174, 0.3);
    transform: scale(1.02);
}

.footer-nav-list .nav-link:hover::before {
    left: 100%;
}

/* Contact info CSS - Clean email styling */
.contact-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* OVERRIDE: Remove any possible white box styling from contact elements */
.footer .contact-info,
footer .contact-info,
.modern-professional-footer .contact-info {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 20px !important;
}

/* Bottom Section with Dark Theme */
.footer-bottom-section {
    padding-top: 30px;
    border-top: 1px solid rgba(32, 140, 100, 0.3);
}

.copyright-section {
    text-align: left;
}

.copyright-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    transition: color 0.3s ease;
}

.copyright-text strong {
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-legal-links {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.legal-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #53eeae;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop (1025px and above) */
@media (min-width: 1025px) {
    .footer-content-wrapper .container {
        padding-top: 60px;
        padding-bottom: 30px;
    }
    
    .footer-brand-section {
        text-align: left;
        margin-bottom: 0;
    }
    
    .footer-nav-section {
        text-align: left;
        margin-bottom: 30px;
    }
    
    .footer-nav-list .nav-link {
        justify-content: flex-start;
        text-align: left;
        padding: 10px 18px;
        margin: 0 0 8px 0;
        max-width: none;
    }
    
    .copyright-section {
        text-align: left;
        padding: 0;
    }
    
    .footer-legal-links {
        text-align: right;
        justify-content: flex-end;
        padding: 0;
        flex-wrap: nowrap;
    }
    
    .brand-title {
        font-size: 2.2rem;
    }
    
    .social-links {
        justify-content: flex-start;
    }
}

/* Tablet (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content-wrapper .container {
        padding-top: 50px;
        padding-bottom: 25px;
    }
    
    .footer-brand-section {
        text-align: left;
        margin-bottom: 30px;
    }
    
    .footer-nav-section {
        text-align: left;
        margin-bottom: 25px;
    }
    
    .footer-nav-list .nav-link {
        justify-content: flex-start;
        text-align: left;
        padding: 10px 16px;
        margin: 0 0 6px 0;
        max-width: none;
    }
    
    .copyright-section {
        text-align: left;
        padding: 0;
    }
    
    .footer-legal-links {
        text-align: right;
        justify-content: flex-end;
        padding: 0;
        flex-wrap: wrap;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Consistent wave divider height with global standard */
    .wave-divider-bottom svg {
        height: 37.5px;
    }
    
    .footer-content-wrapper .container {
        padding-top: 30px;
        padding-bottom: 20px;
        text-align: center;
    }
    
    .row {
        flex-direction: column;
    }
    
    [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-brand-section,
    .footer-nav-section,
    .copyright-section {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-nav-title {
        text-align: center;
        justify-content: center;
    }
    
    .footer-nav-list .nav-link {
        justify-content: center;
        text-align: center;
        margin: 0 auto 8px auto;
        max-width: 200px;
    }
    
    .contact-info {
        text-align: center;
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center !important;
        text-align: center;
        flex-direction: column;
        gap: 4px !important;
    }
    
    .footer-legal-links {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .footer-logo,
    .footer-logo-image,
    .brand-logo-footer {
        margin: 0 auto;
        display: block;
        text-align: center;
    }
    
    .brand-logo-footer {
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .footer-logo-image {
        margin: 0 auto !important;
        display: block !important;
    }
    
    .copyright-logo-image {
        margin: 0 auto !important;
        display: inline-block !important;
        vertical-align: middle;
    }
    
    .copyright-text {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .footer-bottom-section .row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Legacy footer compatibility with dark theme */
.spa-footer {
    position: relative;
    background: #18241c !important;
    background-color: #18241c !important;
    color: #ffffff;
    padding: 0; /* Handled by new footer structure */
    margin-top: auto;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Additional specificity for legacy footer */
footer.spa-footer,
section.spa-footer,
div.spa-footer,
body .spa-footer {
    background: #18241c !important;
    background-color: #18241c !important;
}

/* ULTIMATE SPECIFICITY - Override any possible conflicts */
html body footer.modern-professional-footer,
html body .modern-professional-footer,
body footer.modern-professional-footer,
body section.modern-professional-footer,
#spa-content .modern-professional-footer,
main#spa-content .modern-professional-footer,
.spa-content-wrapper .modern-professional-footer,
.body-inner .modern-professional-footer {
    background: #18241c !important;
    background-color: #18241c !important;
    background-image: linear-gradient(45deg, #18241c 0%, #1e2f22 25%, #243a28 50%, #1e2f22 75%, #18241c 100%), 
                      radial-gradient(circle at 20% 50%, rgba(32, 140, 100, 0.1) 0%, transparent 50%), 
                      radial-gradient(circle at 80% 50%, rgba(32, 140, 100, 0.05) 0%, transparent 50%) !important;
}

/* EMERGENCY FOOTER PROTECTION - Max specificity for all possible selectors */
html body main#spa-content footer,
html body .spa-content-wrapper footer,
html body .body-inner footer,
html body #spa-content footer.modern-professional-footer,
html body main#spa-content footer.spa-footer,
html body div.body-inner footer#footer {
    background: #18241c !important;
    background-color: #18241c !important;
    background-image: none !important;
    color: #ffffff !important;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
