/*=========================================================
MASALAKRAFT FOOTER.CSS (FINAL RESPONSIVE FIX)
=========================================================*/
footer {
    background: #8B3A12 !important; 
    border-top: 4px solid #D17E25 !important; 
    padding: 70px 5% 20px !important;
    color: #FFFFFF !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevents any horizontal scrolling */
}

/*=========================================
1. FOOTER GRID LAYOUT (DESKTOP: 4 COLUMNS)
=========================================*/
.footer-container {
    display: grid !important; 
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px !important;
    margin-bottom: 50px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.footer-col {
    width: 100% !important;
    box-sizing: border-box !important;
}

/*=========================================
2. TYPOGRAPHY & COLORS
=========================================*/
.footer-col h4, .footer-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 20px !important;
    color: #D17E25 !important; 
    margin-bottom: 22px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-col p {
    color: #F8F8F8 !important; 
    font-size: 15px !important;
    line-height: 1.8 !important;
    margin-bottom: 8px !important;
}

/* Subheadings (Phone, Email, Follow Us) */
.footer-col span, 
.footer-col strong {
    display: block !important;
    width: 100% !important;
    color: #D17E25 !important; 
    font-weight: 600 !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
    clear: both !important;
}

/* Footer Links */
.footer-col ul { 
    list-style: none !important; 
    margin: 0 !important; 
    padding: 0 !important; 
}

.footer-col ul li { 
    margin-bottom: 12px !important; 
    list-style-type: none !important; 
}

.footer-col ul li a {
    color: #F8F8F8 !important; 
    text-decoration: none !important;
    transition: .30s ease;
    display: inline-block;
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: #D17E25 !important; 
    transform: translateX(5px);
}

.footer-col ul li a::before {
    content: "› ";
    color: #D17E25 !important; 
    font-weight: bold;
}

/*=========================================
3. SOCIAL MEDIA ICONS
=========================================*/
/* Horizontal Footer Layouts */
.footer-social-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 15px;
}
.footer-social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: 0.3s;
}
.footer-social-row img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-partners-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
}
.footer-partners-row img {
    height: 30px;
    width: auto;
    max-width: 85px;
    object-fit: contain;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/*=========================================
5. FOOTER BOTTOM
=========================================*/
.footer-bottom {
    margin-top: 35px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
    width: 100% !important;
}

.footer-bottom p {
    color: #E0E0E0 !important;
    font-size: 14px !important;
    margin: 0 !important;
}

/*=========================================================
6. WHATSAPP CHAT WIDGET
=========================================================*/
/* --- MATCHING BRAND WHATSAPP WIDGET STYLING --- */
.whatsapp-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.whatsapp-chat-box {
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    margin-bottom: 15px;
}

/* Header matched to exact main header dark brown + reduced height */
.whatsapp-chat-header {
    background: #8B3808 !important; /* Exact main header dark brown */
    color: #ffffff !important;
    padding: 8px 14px !important;    /* Reduced padding to decrease height */
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 48px !important;         /* Fixed compact header height */
    box-sizing: border-box !important;
}

.whatsapp-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.whatsapp-header-left img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
}

.whatsapp-header-title {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.whatsapp-close-btn {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 18px !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.whatsapp-chat-body {
    padding: 12px 14px;
    background: #fdfbf7;
}

.whatsapp-message-bubble {
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Footer & Send Button fix (prevents overflow) */
.whatsapp-chat-footer {
    padding: 12px 14px !important;   /* Extra bottom padding to keep button safely inside */
    background: #fff;
    border-top: 1px solid #eee;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

.whatsapp-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
}

/* Send button matched to main brown theme & fully contained */
.whatsapp-send-btn {
    background: #8B3808 !important;  /* Exact main header dark brown */
    color: #fff !important;
    border: none !important;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: 0.2s;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.whatsapp-send-btn:hover {
    background: #6a2805 !important;
}

/*=========================================
7. RESPONSIVE MEDIA QUERIES (THE FIX)
=========================================*/
/* TABLET VIEW: 2 Columns */
@media (max-width: 992px) {
    .footer-container { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 40px !important;
    }
}

/* MOBILE VIEW: 1 Column Stacking */
@media (max-width: 768px) {
    footer {
        padding: 50px 5% 20px !important; 
    }
    
    .footer-container { 
        display: flex !important; /* Switch to flexbox for guaranteed stacking */
        flex-direction: column !important; /* Stacks items vertically */
        gap: 40px !important; 
        width: 100% !important;
    }
    
    .footer-col {
        width: 100% !important;
    }
}

/* SMALL MOBILE (Widgets) */
@media (max-width: 480px) {
    #mk-chat { 
        width: 90vw !important; 
        left: 5vw !important; 
        right: 5vw !important; 
        bottom: 15px !important; 
    }
}