/* ==========================================================================
   SPARC BRAND INVERTED PURPLE 5-COLUMN FOOTER MODULE
   ========================================================================== */
.sparc-dark-footer {
    /* UPDATED: Injected navbar brand blue background */
    background-color: var(--physio-brand-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    width: 100%;
}

.sparc-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* 5 Column Grid Split Configuration (Desktop) */
.sparc-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 0.8fr 1.2fr;
    gap: 30px;
}

.sparc-footer-col {
    display: flex;
    flex-direction: column;
}

.sparc-footer-col p {
    /* UPDATED: Shifted from purple-tinted hex code to clean slate white */
    color: #e2e8f0;
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.sparc-footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
}

/* --- BRAND LOGO + TEXT ALIGNMENT --- */
.sparc-footer-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    margin-top: -20px; /* Isse heading baki headings ke bilkul barabar seedh mein aa jayegi */
	
}

.sparc-brand-logo-top {
    height: 60px;                /* Professional Compact Height */
    width: auto;
    object-fit: contain;
}

.sparc-brand-title {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.3px;
}

.sparc-tagline {
    margin-top: 2px;
}

.sparc-footer-contact-block {
    margin-top: 10px;
}

.sparc-footer-contact-block h4 {
    font-size: 14.5px;
    margin-bottom: 12px;
}

.sparc-footer-contact-details p {
    /* UPDATED: Shifted to slate white */
    color: #e2e8f0;
    font-size: 13.5px;
    margin-bottom: 8px;
}

.sparc-footer-highlight-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

/* Vertical Navigation Lists */
.sparc-footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sparc-footer-links-list li {
    margin-bottom: 12px;
}

.sparc-footer-links-list li a {
    /* UPDATED: Shifted text to readable off-white */
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.sparc-footer-links-list li a:hover {
    /* UPDATED: Matches navbar soft active light blue tab variant tint */
    color: var(--physio-nav-active);
    transform: translateX(3px);
}

/* Social Icon Row */
.sparc-footer-social-icons {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: flex;
    gap: 10px;
}

.sparc-footer-social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sparc-footer-social-icons a:hover {
    background-color: #ffffff;
    /* UPDATED: Swapped hover color fill to brand blue */
    color: var(--physio-brand-blue);
    transform: translateY(-3px);
}

/* Map & Action Buttons */
.sparc-footer-map-placeholder {
    width: 100%;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    height: 110px;
}

.sparc-footer-direction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #ffffff;
    /* UPDATED: Swapped text color to brand blue */
    color: var(--physio-brand-blue);
    padding: 11px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.sparc-footer-direction-btn:hover {
    /* UPDATED: Changes overlay color to light blue on hover states */
    background: var(--physio-nav-active);
    transform: translateY(-1px);
}

/* FIXED: Forces the location map/direction section to ALWAYS center-align across ALL desktop, tablet, and mobile breakpoints */
.sparc-footer-grid .sparc-footer-col:last-child {
    align-items: center;
    text-align: center;
}

.sparc-footer-grid .sparc-footer-col:last-child .sparc-footer-map-placeholder,
.sparc-footer-grid .sparc-footer-col:last-child .sparc-footer-direction-btn {
    max-width: 450px;
    width: 100%;
}

/* Bottom Strip Settings */
.sparc-footer-copyright-strip {
    /* UPDATED: Modified copyright background to deep navy shading */
    background-color: #001253;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 24px;
}

.sparc-footer-copyright-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
    font-size: 13px;
}

.sparc-xl-logo-container { margin: 0; }

.sparc-xl-logo-link {
    color: #e2e8f0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sparc-xl-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

/* ==========================================================================
   🚀 FULLY RESPONSIVE MEDIA ENGINE (Laptop, Tablet, Mobile)
   ========================================================================== */

/* 1. LAPTOP & SMALL DESKTOP SCREENS */
@media (max-width: 1200px) {
    .sparc-footer-container {
        padding: 50px 20px;
    }
    .sparc-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr; /* Map section automatic next row shift handle karega */
        gap: 25px;
    }
    /* Map column ko niche adjust karne ke liye wide block */
    .sparc-footer-grid .sparc-footer-col:last-child {
        grid-column: span 4;
        margin-top: 10px;
    }
}

/* 2. TABLET SCREENS */
@media (max-width: 992px) {
    .sparc-footer-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet par simple clean 2 columns grid */
        gap: 35px;
    }
    .sparc-footer-grid .sparc-footer-col:last-child {
        grid-column: span 2;
    }
}

/* 3. MOBILE SCREENS */
@media (max-width: 650px) {
	.sparc-footer-col h4 {
        margin-bottom: 14px; /* Reduced from 22px to bring links closer */
    }

    /* FIXED: Slightly reduces the gap between 'Our Location' header and the map block */
    .sparc-footer-grid .sparc-footer-col:last-child h4 {
        margin-bottom: 14px; /* Matches the heading gap of the other columns */
    }

    /* OPTIONAL: Tightens the map's bottom margin if you want the button closer too */
    .sparc-footer-map-placeholder {
        margin-bottom: 10px; 
    }
    .sparc-footer-container {
        padding: 40px 16px;
    }
    .sparc-footer-grid {
        grid-template-columns: 1fr; /* Mobile par sab ek ke niche ek single column */
        gap: 30px;
    }
    .sparc-footer-grid .sparc-footer-col:last-child {
        grid-column: span 1;
    }
    
    /* Mobile view par properly readable blocks, h4, buttons and links completely center align rahenge */
    .sparc-footer-col {
        align-items: center;
        text-align: center;
    }
    
    .sparc-footer-brand-header {
        justify-content: center;
        width: 100%;
    }

    .sparc-footer-social-icons {
        justify-content: center;
        width: 100%;
    }

    .sparc-footer-links-list li a:hover {
        transform: translateY(-2px); /* Centered text vertical transformation axis handle configuration */
    }

    /* Strip adjustments for Mobile */
    .sparc-footer-copyright-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .sparc-xl-logo-link {
        flex-direction: column;
        gap: 6px;
    }
}

/* Force XL logo and text to stay side-by-side on mobile */
@media (max-width: 650px) {
    .sparc-xl-logo-link {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .sparc-xl-logo-img {
        height: 24px !important;
        width: auto !important;
    }
}