/* ===========================================
   FOOTER STYLES - Aghosh Website
   Extracted from landing page for single-source usage
   =========================================== */

/* CSS Variables (fallbacks for pages that don't define them) */
:root {
    --primary: #E6B89C;
    --primary-dark: #cd8c66;
    --accent: #4A6C6F;
    --accent-dark: #3a5a5d;
    --accent-light: #6d979b;
    --white: #ffffff;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
}

/* FOOTER */
footer {
    background-color: var(--accent-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
    margin-top: 4rem;
}

.footer-main {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.footer-brand {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-logo img {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

.footer-brand h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
}

.footer-brand .footer-tagline {
    color: var(--primary);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-column {
    min-width: 0;
    overflow: hidden;
}

.footer-column h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0 0 1.25rem 0;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.25rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--primary);
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-text a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-legal {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.footer-legal-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.footer-copyright a:hover {
    color: var(--primary);
}

.footer-copyright a:first-child {
    margin-left: 0.5rem;
}

/* RTL Support for Footer */
html[dir="rtl"] footer {
    direction: rtl;
}

html[dir="rtl"] .footer-logo {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-links {
    text-align: right;
}

html[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 0.25rem;
}

html[dir="rtl"] .footer-contact {
    text-align: right;
}

html[dir="rtl"] .footer-contact li {
    flex-direction: row-reverse;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-social {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 1rem;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-column {
        text-align: left;
    }

    .footer-column h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a,
    .footer-contact-text {
        font-size: 0.9rem;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
        grid-column: 1 / -1;
    }

    .footer-legal-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-legal {
        padding: 1rem 0;
    }

    .footer-copyright,
    .footer-legal-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-column {
        text-align: center;
    }

    .footer-legal {
        padding: 1.25rem 0;
    }

    .footer-legal-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}
