/**
 * Enhanced Footer CSS - Expert Level Redesign
 * Professional, responsive footer with modern UI/UX best practices
 * Version: 3.1
 */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    --primary-maroon: #7c3848;
    --maroon-dark: #5a2a34;
    --accent-gold: #ffc107;
    --accent-gold-dark: #f9a825;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --transition-base: 0.3s ease;
    --radius-md: 8px;
    --z-fixed: 1000;
    --font-primary: 'Montserrat', sans-serif;
}

/* ==========================================
   MODERN FOOTER ENHANCED
   ========================================== */
.modern-footer-enhanced {
    background: linear-gradient(135deg, #6d2f3d 0%, #4a1f28 100%);
    color: var(--white);
    margin-top: 0;
    /* Removed excessive top margin */
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

/* Subtle decorative background pattern */
.modern-footer-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Footer Main Content - Compact */
.footer-main {
    position: relative;
    z-index: 1;
    padding: 3rem 0 2rem;
    /* Balanced padding */
}

.footer-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-main .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns */
    gap: 2rem;
    align-items: start;
}

/* Footer Column */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h5 {
    color: var(--accent-gold);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.small-text {
    font-size: 0.8rem !important;
    opacity: 0.9;
}

/* Footer Contact Info (Compact Version) */
.footer-contact-info {
    margin-top: 0.5rem;
}

.footer-contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.footer-contact-info i {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.footer-contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-contact-info a:hover {
    color: var(--accent-gold);
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    /* Circle looks better */
    color: var(--white);
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--white);
    color: var(--primary-maroon);
    border-color: var(--white);
}

.social-icon.facebook:hover {
    color: #1877f2;
}

.social-icon.instagram:hover {
    color: #c32aa3;
}

.social-icon.whatsapp:hover {
    color: #25d366;
}

.social-icon.youtube:hover {
    color: #ff0000;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-base);
    position: relative;
    padding-left: 0;
}

.footer-links li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

/* Footer Newsletter - Compact */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    /* More rectangular */
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 0.85rem;
    min-width: 0;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    padding: 0.5rem 1rem;
    background: var(--accent-gold);
    color: var(--maroon-dark);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.newsletter-btn:hover {
    background: var(--white);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    color: var(--maroon-dark);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    border: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--white);
    transform: translateY(-3px);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
    .footer-main .row {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 Grid */
        gap: 2rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
        /* Increased to ensure footer visibility */
    }

    .footer-main {
        padding: 2.5rem 0;
    }

    .footer-main .row {
        grid-template-columns: 1fr;
        /* Stacked */
        gap: 2rem;
    }

    .footer-column h5 {
        margin-bottom: 1rem;
    }

    .footer-bottom {
        padding-bottom: 80px;
        /* Space for mobile navigation/social bar */
    }

    .footer-bottom .d-flex {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}