/* footer.css - Footer Section Styles - Dark Blue with Beige Theme */

.main-footer {
    padding: 60px 0 30px;
    /* Solid dark blue background matching testimonials exactly */
    background: #111827 !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    border-top: 1px solid rgba(30, 41, 59, 0.6) !important;
    margin-top: 100px;
    position: relative;
    box-shadow: 0 -4px 32px rgba(17, 24, 39, 0.3) !important;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    /* Changed from gold to beige */
    background: linear-gradient(90deg, transparent, #F5F0E8, transparent) !important;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo-icon-placeholder {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Changed from gold to beige */
    color: #F5F0E8 !important;
    font-size: 22px;
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    /* Back to original beige gradient */
    background: linear-gradient(135deg, #ffffff, #F5F0E8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    /* Changed to beige text */
    color: rgba(245, 240, 232, 0.8) !important;
    max-width: 300px;
    margin-bottom: 15px; /* Add margin for social links */
}

/* Social Media Icons in Footer Brand Section */
.footer-brand-social {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(120%) !important;
    border: 1px solid rgba(245, 240, 232, 0.2) !important;
    border-radius: 12px; /* Match footer design language */
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 240, 232, 0.7) !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative;

    /* Add subtle noise texture like testimonial cards */
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 30px 30px, 25px 25px, 35px 35px;
    background-position: 0 0, 15px 15px, 10px 20px;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(245, 240, 232, 0.08),
        rgba(245, 240, 232, 0.06),
        rgba(245, 240, 232, 0.04)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.footer-social-link:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(245, 240, 232, 0.4) !important;
    backdrop-filter: blur(25px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(140%) !important;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(245, 240, 232, 0.2) !important;
    color: #F5F0E8 !important;

    /* Enhanced noise on hover */
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

.footer-social-link:hover::before {
    opacity: 1;
}

.footer-social-link i {
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-link:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(245, 240, 232, 0.4) !important;
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Changed from 3 to 2 columns */
    gap: 40px;
}

.link-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    /* Changed from gold to beige */
    color: #F5F0E8 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-column a {
    /* Changed to beige text */
    color: rgba(245, 240, 232, 0.7) !important;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
    position: relative;
    padding-left: 0;
}

.link-column a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    /* Changed from gold to beige */
    color: #F5F0E8 !important;
    transition: var(--transition-smooth);
}

.link-column a:hover {
    /* Changed to bright beige on hover */
    color: #F5F0E8 !important;
    padding-left: 20px;
}

.link-column a:hover::before {
    left: 0;
    opacity: 1;
}

/* Newsletter */
.footer-newsletter h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    /* Changed from gold to beige */
    color: #F5F0E8 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    margin-top: 15px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-right: none !important;
    border-radius: 25px 0 0 25px !important;
    color: #ffffff !important;
    font-size: 14px;
    transition: var(--transition-smooth);
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    /* Changed from gold to beige focus border */
    border-color: #F5F0E8 !important;
}

.newsletter-form button {
    padding: 12px 20px;
    /* Changed from gold to beige background */
    background: #F5F0E8 !important;
    border: 1px solid #F5F0E8 !important;
    border-radius: 0 25px 25px 0 !important;
    color: #1e293b !important;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    /* Changed from gold to darker beige on hover */
    background: #E8DDD4 !important;
    border-color: #E8DDD4 !important;
    transform: translateX(3px);
}

.newsletter-form button i {
    font-size: 14px;
    color: #1e293b !important;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 14px;
    /* Changed to beige text */
    color: rgba(245, 240, 232, 0.6) !important;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    /* Changed to beige text */
    color: rgba(245, 240, 232, 0.6) !important;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
    position: relative;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    /* Changed from gold to beige */
    background: #F5F0E8 !important;
    transition: width 0.3s ease;
}

.footer-legal a:hover {
    /* Changed from gold to beige hover */
    color: #F5F0E8 !important;
}

.footer-legal a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center; /* Center align everything on mobile */
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        text-align: center; /* Center align link columns */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Center align footer brand section */
    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .footer-brand .logo-wrapper {
        justify-content: center;
    }

    .footer-brand p {
        text-align: center;
        margin: 0 auto 15px auto;
    }

    /* Center align social links */
    .footer-brand-social {
        justify-content: center;
        gap: 12px;
    }

    .footer-social-link {
        width: 40px;
        height: 40px;
    }

    .footer-social-link i {
        font-size: 16px;
    }

    /* Center align newsletter section */
    .footer-newsletter {
        text-align: center;
    }

    .footer-newsletter h4 {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .main-footer {
        padding: 40px 0 20px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr); /* Keep horizontal layout on mobile */
        gap: 20px; /* Reduced gap for mobile */
        text-align: center; /* Center align link columns */
    }

    /* Fix newsletter form for mobile - keep horizontal layout */
    .newsletter-form {
        flex-direction: row; /* Keep horizontal layout like desktop */
        gap: 0;
        border-radius: 20px; /* Smaller radius for mobile */
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        max-width: 300px; /* Constrain width on mobile */
        margin: 0 auto; /* Center the form */
    }

    .newsletter-form input {
        flex: 1;
        border-radius: 20px 0 0 20px !important; /* Left side rounded */
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-right: none !important;
        padding: 12px 16px; /* Slightly smaller padding for mobile */
        text-align: left; /* Left align text in input */
        font-size: 13px; /* Smaller font for mobile */
    }

    .newsletter-form input:focus {
        /* Ensure beige focus border on mobile */
        border-color: #F5F0E8 !important;
        background: rgba(255, 255, 255, 0.15) !important;
    }

    .newsletter-form button {
        border-radius: 0 20px 20px 0 !important; /* Right side rounded */
        padding: 12px 16px; /* Match input padding */
        /* Ensure beige button on mobile */
        background: #F5F0E8 !important;
        border: 1px solid #F5F0E8 !important;
        color: #1e293b !important;
        font-size: 12px; /* Smaller font for mobile */
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        flex-shrink: 0; /* Prevent button from shrinking */
    }

    .newsletter-form button:hover,
    .newsletter-form button:active,
    .newsletter-form button:focus {
        /* Ensure darker beige hover on mobile */
        background: #E8DDD4 !important;
        border-color: #E8DDD4 !important;
        transform: translateX(2px); /* Smaller movement on mobile */
    }

    .newsletter-form button i {
        font-size: 12px; /* Smaller icon for mobile */
        color: #1e293b !important;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }

    /* Mobile social links */
    .footer-brand-social {
        justify-content: center;
        gap: 10px;
    }

    .footer-social-link {
        width: 38px;
        height: 38px;
    }

    .footer-social-link i {
        font-size: 15px;
    }

    /* Center align all text on mobile */
    .footer-brand,
    .footer-brand p,
    .footer-newsletter,
    .footer-newsletter h4,
    .link-column,
    .link-column h4 {
        text-align: center;
    }

    .footer-brand .logo-wrapper {
        justify-content: center;
    }

    .footer-brand p {
        margin: 0 auto 15px auto;
        max-width: none; /* Remove max-width constraint on mobile */
    }
}

/* Force override any global styles that might interfere */
.main-footer .footer-brand .logo-text {
    background: linear-gradient(135deg, #ffffff, #F5F0E8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.main-footer .footer-brand .logo-icon-placeholder {
    color: #F5F0E8 !important;
}

.main-footer .link-column h4,
.main-footer .footer-newsletter h4 {
    color: #F5F0E8 !important;
}

.main-footer .footer-brand p,
.main-footer .link-column a,
.main-footer .footer-bottom p,
.main-footer .footer-legal a {
    color: rgba(245, 240, 232, 0.7) !important;
}

.main-footer .link-column a:hover,
.main-footer .footer-legal a:hover {
    color: #F5F0E8 !important;
}

.main-footer .link-column a::before {
    color: #F5F0E8 !important;
}

.main-footer .newsletter-form button {
    background: #F5F0E8 !important;
    border-color: #F5F0E8 !important;
}

.main-footer .newsletter-form button:hover {
    background: #E8DDD4 !important;
    border-color: #E8DDD4 !important;
}

.main-footer .newsletter-form input:focus {
    border-color: #F5F0E8 !important;
}

.main-footer .footer-legal a::after {
    background: #F5F0E8 !important;
}

.main-footer::before {
    background: linear-gradient(90deg, transparent, #F5F0E8, transparent) !important;
}

/* Footer social links specific overrides */
.main-footer .footer-social-link {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(245, 240, 232, 0.2) !important;
    color: rgba(245, 240, 232, 0.7) !important;
}

.main-footer .footer-social-link:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(245, 240, 232, 0.4) !important;
    color: #F5F0E8 !important;
}