/*
 * Shared site footer (home + catalog pages). Selectors are scoped to
 * footer.site-footer so they win over the older generic `footer` rules.
 */

footer.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 5rem;
    padding: 3.5rem 1.5rem 1.25rem;
    text-align: start;
    color: var(--text-light);
    background: rgba(18, 10, 30, 0.92);
    background-image:
        radial-gradient(circle at 12% 0%, rgba(192, 132, 252, 0.16), transparent 45%),
        radial-gradient(circle at 88% 100%, rgba(236, 72, 153, 0.14), transparent 45%),
        linear-gradient(rgba(18, 10, 30, 0.92), rgba(18, 10, 30, 0.92)),
        linear-gradient(90deg, var(--accent-purple), var(--accent-pink), var(--accent-purple));
    background-origin: border-box;
    background-clip: padding-box, padding-box, padding-box, border-box;
    border-top: 2px solid transparent;
    backdrop-filter: blur(20px) saturate(180%);
}

html[data-theme="light"] footer.site-footer {
    color: #4a3d5c;
    background-image:
        radial-gradient(circle at 12% 0%, rgba(192, 132, 252, 0.14), transparent 45%),
        radial-gradient(circle at 88% 100%, rgba(236, 72, 153, 0.1), transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)),
        linear-gradient(90deg, var(--accent-purple), var(--accent-pink), var(--accent-purple));
}

.site-footer[lang="ar"] { direction: rtl; font-family: 'Tajawal', 'Amiri', sans-serif; }

.site-footer .footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) 1fr 1fr minmax(240px, 1.3fr);
    gap: 2.5rem;
}

.site-footer a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--accent-purple); }

/* Brand column */

.site-footer .footer-brand-logo { display: inline-block; }

.site-footer .footer-logo {
    height: 52px;
    width: auto;
    margin: 0 0 1rem;
    filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.3));
}

.site-footer .footer-logo--light { display: none; }
html[data-theme="light"] .site-footer .footer-logo--dark { display: none; }
html[data-theme="light"] .site-footer .footer-logo--light { display: block; }

.site-footer .footer-tagline { line-height: 1.7; opacity: 0.92; margin-bottom: 0.6rem; max-width: 34ch; }
.site-footer .footer-heritage { font-size: 0.85rem; opacity: 0.75; margin-bottom: 1.25rem; }

.site-footer .footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #25d366, #128c7e);
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer .footer-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4); }

.site-footer .footer-social { display: flex; gap: 0.6rem; margin-top: 1.4rem; }

.site-footer .footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(192, 132, 252, 0.3);
    background: rgba(192, 132, 252, 0.1);
    font-size: 1.05rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-footer .footer-social a:hover {
    color: #fff;
    transform: translateY(-3px);
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

/* Link columns (reset the header's generic `nav` flex rules) */

.site-footer nav.footer-col {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
    position: static;
}

.site-footer h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--silver-light);
    margin-bottom: 1.1rem;
    position: relative;
    padding-bottom: 0.6rem;
}

html[data-theme="light"] .site-footer h3 { color: #4a3d5c; }
.site-footer[lang="ar"] h3 { font-family: 'Amiri', 'Tajawal', serif; font-size: 1.2rem; }

.site-footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 36px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-col li { margin-bottom: 0.6rem; }
.site-footer .footer-col a { font-size: 0.93rem; opacity: 0.88; }
.site-footer .footer-col a:hover { opacity: 1; }
.site-footer .footer-ext { font-size: 0.65rem; opacity: 0.6; margin-inline-start: 0.2rem; }

/* Visit column */

.site-footer .footer-contact li { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.1rem; }

.site-footer .footer-contact > li > i {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(192, 132, 252, 0.14);
    color: var(--accent-purple);
    font-size: 0.95rem;
}

.site-footer .footer-contact div { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.92rem; line-height: 1.55; }
.site-footer .footer-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.65; }
.site-footer[lang="ar"] .footer-label { text-transform: none; letter-spacing: 0; }
.site-footer .footer-contact a[dir="ltr"] { font-weight: 600; unicode-bidi: isolate; text-align: start; }
.site-footer .footer-mini-link { font-size: 0.82rem; font-weight: 600; color: var(--accent-purple); }
.site-footer .footer-mini-link:hover { color: var(--accent-pink); }
.site-footer[lang="ar"] .flip-rtl { transform: scaleX(-1); }

.site-footer .footer-status {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.site-footer .footer-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.site-footer .footer-status.is-open { color: #34d399; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); }
html[data-theme="light"] .site-footer .footer-status { color: #dc2626; }
html[data-theme="light"] .site-footer .footer-status.is-open { color: #059669; }
.site-footer .footer-status[hidden] { display: none; }

/* Bottom bar */

.site-footer .footer-bottom {
    max-width: 1200px;
    margin: 2.75rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(192, 132, 252, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.site-footer .footer-bottom p { opacity: 0.75; margin: 0; }
.site-footer .footer-dot { margin: 0 0.35rem; }
.site-footer .footer-bottom-actions { display: flex; align-items: center; gap: 0.6rem; }

.site-footer .footer-lang,
.site-footer .footer-top {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(192, 132, 252, 0.35);
    background: rgba(192, 132, 252, 0.1);
    color: inherit;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.site-footer .footer-lang:hover,
.site-footer .footer-top:hover { border-color: var(--accent-pink); background: rgba(236, 72, 153, 0.12); color: inherit; }

/* Responsive */

/* Leave room for the floating WhatsApp button where it overlaps the bottom bar. */
@media (max-width: 1340px) {
    footer.site-footer { padding-bottom: 5.5rem; }
}

@media (max-width: 1024px) {
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem 2rem; }
}

@media (max-width: 640px) {
    footer.site-footer { padding: 2.75rem 1.25rem 6rem; margin-top: 3.5rem; }
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
    .site-footer .footer-brand, .site-footer .footer-visit { grid-column: 1 / -1; }
    .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
    .site-footer .footer-top span { display: none; }
}
