/* ============================================
   FOOTER STYLES
   Site footer, contact links, FAQ accordion,
   app store badge
   ============================================ */

.site-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
    color: #f5f5f5;
    padding: 50px 0 30px;
    margin-top: 80px;
    min-height: 200px;
    position: relative;
    margin-bottom: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

/* ---- Footer Content Grid ---- */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ffffff, #d4af37, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-brand 4s ease-in-out infinite;
}

@keyframes shimmer-brand {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.footer-brand p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

/* ---- Footer Links ---- */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 6px 0;
}

.footer-link svg {
    flex-shrink: 0;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: #d4af37;
    transform: translateX(4px);
}

.footer-link:hover svg {
    transform: scale(1.1);
}

.footer-address {
    cursor: default;
}

.footer-address:hover {
    color: #ccc;
}

/* Ensure phone numbers stay LTR in RTL mode */
.footer-link span[dir="ltr"] {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Icon hover colors */
.footer-link:hover svg:has(rect) {
    stroke: #E4405F;
}

.footer-link:hover svg:has(polyline) {
    stroke: #EA4335;
}

/* ---- App Store Badge ---- */
.app-store-wrapper {
    display: flex;
    justify-content: center;
    padding: 25px 0;
    margin-top: 20px;
}

body.native-app .app-store-wrapper {
    display: none;
}

.app-store-badge {
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-store-badge:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.app-store-badge svg {
    width: 180px;
    height: 60px;
}

/* ---- Footer Bottom ---- */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 13px;
}

.footer-bottom .privacy-link {
    display: block;
    margin-top: 10px;
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.footer-bottom .privacy-link:hover {
    color: #8B0000;
    text-decoration: underline;
}

/* ---- FAQ Accordion ---- */
.footer-faq {
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 30px;
}

.footer-faq h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.faq-item {
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.05);
}

.faq-question h5 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.faq-icon {
    color: #d4af37;
    font-size: 20px;
    font-weight: 400;
    margin-left: 15px;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer.open {
    max-height: 200px;
}

.faq-answer p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ---- Mobile Responsive ---- */
@media (max-width: 768px) {
    .site-footer {
        margin-top: 60px;
        padding: 30px 0 15px;
        padding-bottom: 120px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-link {
        justify-content: center;
    }

    .footer-faq {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .faq-grid {
        gap: 12px;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-question h5 {
        font-size: 14px;
    }
    
    .faq-answer p {
        font-size: 13px;
        padding: 15px;
    }
    
    .faq-answer.open {
        max-height: 300px;
    }
}

/* ---- RTL Footer ---- */
body.rtl .site-footer,
body.rtl .footer-content,
body.rtl .footer-brand,
body.rtl .footer-contact,
body.rtl .footer-faq,
body.rtl .footer-brand h3,
body.rtl .footer-contact h4,
body.rtl .footer-faq h4 {
    text-align: right;
    direction: rtl;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-brand {
    text-align: right;
}

body.rtl .footer-contact {
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}

body.rtl .footer-contact h4 {
    text-align: right !important;
    width: 100% !important;
    margin-bottom: 1rem;
}

body.rtl .footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0.75rem !important;
    text-align: right;
}

body.rtl .footer-link {
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-end !important;
    text-align: right !important;
}

body.rtl .footer-link svg {
    margin-left: 8px !important;
    margin-right: 0 !important;
}

body.rtl .footer-brand,
body.rtl .footer-contact {
    align-self: flex-start;
    vertical-align: top;
}

body.rtl .faq-question {
    text-align: right;
    flex-direction: row-reverse;
}

body.rtl .faq-question h5 {
    text-align: right;
}

body.rtl .faq-icon {
    margin-left: 0;
    margin-right: auto;
}

body.rtl .footer-bottom {
    text-align: right;
}
