/* Custom Footer Styling - Matching Site Design */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@400;500;600&display=swap');

/* CSS Variables for Consistency */
:root {
    --primary-green: #A7B798;
    --secondary-green: #93b376;
    --accent-green: #A5C47E;
    --text-white: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

/* Footer Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Custom Footer Container */
.custom-footer {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 50%, #8FAE6B 100%);
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    animation: fadeInUp 1s ease-out;
}

/* Enhanced Background Effects */
.custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Geometric Pattern */
.custom-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.02) 50%, transparent 55%);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Footer Content Container */
.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 40px;
}

/* Footer Main Section */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    align-items: start;
}

/* Footer Logo Section */
.footer-logo-section {
    text-align: center;
    animation: fadeInUp 1.2s ease-out 0.2s both;
}

.footer-logo {
    max-width: 60% !important;
    width: auto;
    height: auto;
    min-height: 120px;
    border-radius: 0;
    margin: 0 auto 20px;
    display: block;
    box-shadow: none;
    border: none;
    transition: all 0.4s ease;
    animation: none;
    object-fit: cover;
    object-position: center;
}

.footer-logo-text {
    white-space: nowrap;
    overflow: visible;
    min-width: max-content;
    width: auto !important;
    height: auto !important;
}

.footer-logo:hover {
    transform: none;
    box-shadow: none;
    border: none;
    animation: none;
}

/* Logo Animation Keyframes */
@keyframes footer-logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes footer-logo-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes footer-logo-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer-site-name {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
}

.footer-site-name:hover {
    color: var(--accent-green);
    text-shadow: 3px 3px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

/* Footer Navigation Section */
.footer-navigation {
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.footer-nav-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 25px 0;
    text-align: center;
    text-shadow: 2px 2px 8px var(--shadow-color);
}

.footer-nav-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-nav-column h4 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-green);
    margin: 0 0 15px 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

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

.footer-nav-list li {
    margin-bottom: 10px;
}

.footer-nav-list a {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 5px 0;
}

.footer-nav-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.footer-nav-list a:hover::before {
    width: 100%;
}

.footer-nav-list a:hover {
    color: var(--text-white);
    transform: translateX(5px);
}

/* Footer Contact Section */
.footer-contact {
    text-align: center;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.footer-contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 8px var(--shadow-color);
}

.footer-contact-info {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-link:hover {
    background: var(--accent-green);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(165, 196, 126, 0.4);
}

/* Footer Bottom Section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
    animation: fadeInUp 1.2s ease-out 0.8s both;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #000000 !important;
    margin: 0;
    line-height: 1.5;
}

.footer-copyright a {
    color: #000000 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-copyright a:hover {
    color: #000000 !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-content {
        padding: 50px 30px 30px;
    }
    
    .footer-main {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-nav-columns {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-nav-list a:hover {
        transform: translateX(0);
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 40px 20px 25px;
    }
    
    .footer-main {
        gap: 30px;
    }
    
    .footer-logo {
        width: 100px;
        height: 100px;
    }
    
    .footer-site-name {
        font-size: 24px;
    }
    
    .footer-nav-title {
        font-size: 20px;
    }
    
    .footer-nav-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-social-links {
        gap: 12px;
    }
    
    .footer-social-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 30px 15px 20px;
    }
    
    .footer-main {
        gap: 25px;
    }
    
    .footer-logo {
        width: 80px;
        height: 80px;
    }
    
    .footer-site-name {
        font-size: 20px;
    }
    
    .footer-nav-title {
        font-size: 18px;
    }
    
    .footer-contact-title {
        font-size: 18px;
    }
    
    .footer-social-links {
        gap: 10px;
    }
    
    .footer-social-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Performance Optimizations */
.custom-footer * {
    will-change: transform, opacity;
}

/* Accessibility Improvements */
.footer-nav-list a:focus,
.footer-social-link:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .custom-footer {
        background: #A7B798 !important;
        color: #000 !important;
    }
    
    .custom-footer::before,
    .custom-footer::after {
        display: none;
    }
}
