/**
 * Fokawood Compact Luxury Footer Stylesheet
 * Distinguished Soft Pearl Slate Background (No Orange Top Border) & Polished Quick Links
 */

:root {
    --foka-ft-primary: #ff7a00;
    --foka-ft-primary-hover: #ea580c;
    --foka-ft-primary-gradient: linear-gradient(135deg, #ff7a00 0%, #ea580c 100%);
    --foka-ft-bg: #f8fafc;
    --foka-ft-card-bg: #ffffff;
    --foka-ft-bottom-bg: #f1f5f9;
    --foka-ft-dark: #0f172a;
    --foka-ft-slate: #334155;
    --foka-ft-muted: #64748b;
    --foka-ft-border: #e2e8f0;
    --foka-ft-border-hover: #fed7aa;
}

/* ==========================================================================
   1. Master Footer Container (Distinct Soft Slate-Pearl Background)
   ========================================================================== */

footer.foka-master-footer,
.foka-master-footer {
    width: 100% !important;
    background-color: var(--foka-ft-bg) !important;
    background: var(--foka-ft-bg) !important;
    color: var(--foka-ft-slate) !important;
    position: relative !important;
    margin-top: 40px !important;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-sizing: border-box !important;
    border-top: 1px solid var(--foka-ft-border) !important;
    box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.02) !important;
    overflow: hidden !important;
}

/* Clear any legacy orange lines or pseudo-elements */
footer.foka-master-footer::before,
.foka-master-footer::before {
    display: none !important;
}

.foka-footer-container {
    max-width: var(--foka-site-max-width, 1240px) !important;
    margin: 0 auto !important;
    padding: 0 var(--foka-site-padding, 20px) !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   2. Main Footer Body (3-Column Layout)
   ========================================================================== */

.foka-footer-main {
    padding: 36px 0 26px 0 !important;
    background: transparent !important;
}

.foka-footer-grid-compact {
    display: grid !important;
    grid-template-columns: 1.4fr 1.1fr 1.2fr !important;
    gap: 32px !important;
    align-items: start !important;
}

.foka-footer-col {
    display: flex !important;
    flex-direction: column !important;
}

.foka-footer-col-title {
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--foka-ft-dark) !important;
    margin: 0 0 14px 0 !important;
    padding-bottom: 6px !important;
    position: relative !important;
    display: inline-block !important;
}

.foka-footer-col-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 28px !important;
    height: 2px !important;
    background: var(--foka-ft-primary-gradient) !important;
    border-radius: 4px !important;
}

/* ==========================================================================
   3. Brand Column (User's Favorite Section)
   ========================================================================== */

.foka-footer-brand {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    margin-bottom: 10px !important;
}

.foka-footer-logo-title {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: var(--foka-ft-dark) !important;
    letter-spacing: 0 !important;
}

.foka-footer-logo-title .foka-highlight {
    color: var(--foka-ft-primary) !important;
    background: linear-gradient(135deg, #ff7a00, #ea580c) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.foka-footer-logo-tagline {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: var(--foka-ft-muted) !important;
}

.foka-footer-about-text {
    font-size: 12.5px !important;
    line-height: 1.8 !important;
    color: var(--foka-ft-slate) !important;
    text-align: justify !important;
    margin: 0 0 14px 0 !important;
}

/* Social Buttons */
.foka-footer-socials {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.foka-social-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 12px !important;
    background: #ffffff !important;
    border: 1px solid var(--foka-ft-border) !important;
    border-radius: 8px !important;
    color: var(--foka-ft-slate) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.2s var(--foka-ease) !important;
}

.foka-social-btn:hover {
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

.foka-social-wa:hover {
    background: #25D366 !important;
    border-color: #25D366 !important;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3) !important;
}

.foka-social-tg:hover {
    background: #229ED9 !important;
    border-color: #229ED9 !important;
    box-shadow: 0 3px 10px rgba(34, 158, 217, 0.3) !important;
}

.foka-social-ig:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: #dc2743 !important;
    box-shadow: 0 3px 10px rgba(220, 39, 67, 0.3) !important;
}

/* ==========================================================================
   4. Quick Links List (Minimal, Clean & Textual)
   ========================================================================== */

.foka-compact-links-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.foka-compact-links-list a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 3px 0 !important;
    background: transparent !important;
    border: none !important;
    color: var(--foka-ft-slate) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.foka-link-dot {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: var(--foka-ft-primary) !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.foka-compact-links-list a:hover {
    background: transparent !important;
    color: var(--foka-ft-primary) !important;
    transform: translateX(-4px) !important;
}

.foka-compact-links-list a:hover .foka-link-dot {
    transform: scale(1.4) !important;
    background: var(--foka-ft-primary-hover) !important;
}

/* ==========================================================================
   5. Compact Contact Box (Column 3)
   ========================================================================== */

.foka-compact-contact-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.foka-compact-contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.foka-compact-contact-item:hover {
    background: transparent !important;
    transform: translateX(-2px) !important;
}

.foka-compact-contact-item .foka-contact-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: var(--foka-ft-primary) !important;
    border: 1px solid var(--foka-ft-border) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    margin-top: 1px !important;
}

.foka-compact-contact-item .foka-contact-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    text-align: right !important;
}

.foka-compact-contact-item .foka-contact-text small {
    font-size: 10.5px !important;
    color: var(--foka-ft-muted) !important;
    font-weight: 500 !important;
}

.foka-compact-contact-item .foka-contact-text strong {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: var(--foka-ft-primary) !important;
    direction: ltr !important;
    text-align: right !important;
}

.foka-compact-contact-item .foka-contact-text span {
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: var(--foka-ft-slate) !important;
    line-height: 1.5 !important;
}

/* ==========================================================================
   6. Compact Bottom Bar
   ========================================================================== */

.foka-footer-bottom-bar {
    background: var(--foka-ft-bottom-bg) !important;
    border-top: 1px solid var(--foka-ft-border) !important;
    padding: 10px 0 !important;
}

.foka-bottom-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.foka-copyright-text {
    font-size: 11.5px !important;
    color: var(--foka-ft-muted) !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

.foka-copyright-text strong {
    color: var(--foka-ft-dark) !important;
    font-weight: 700 !important;
}

.foka-back-to-top {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px 10px !important;
    background: #ffffff !important;
    border: 1px solid var(--foka-ft-border) !important;
    border-radius: 999px !important;
    color: var(--foka-ft-slate) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.2s ease !important;
}

.foka-back-to-top:hover {
    background: var(--foka-ft-primary) !important;
    color: #ffffff !important;
    border-color: var(--foka-ft-primary) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   7. Mobile Responsive (Ultra-Clean & Minimal)
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .foka-footer-grid-compact {
        grid-template-columns: 1.2fr 1fr !important;
        gap: 20px !important;
    }

    .foka-footer-brand-col {
        grid-column: span 2 !important;
    }
}

@media screen and (max-width: 768px) {
    footer.foka-master-footer {
        margin-top: 24px !important;
        background: #f8fafc !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
    }

    .foka-footer-main {
        padding: 18px 0 6px 0 !important;
    }

    .foka-footer-container {
        padding: 0 14px !important;
    }

    .foka-footer-grid-compact {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* ALL columns become seamless sections inside ONE unified footer */
    .foka-footer-col {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 0 14px 0 !important;
        margin-bottom: 14px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
    }

    .foka-footer-col:last-child {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding-bottom: 6px !important;
    }

    /* Section 1: Brand & Socials */
    .foka-footer-brand {
        margin-bottom: 8px !important;
    }

    .foka-footer-logo-title {
        font-size: 16px !important;
        font-weight: 900 !important;
        color: #0f172a !important;
        margin-bottom: 2px !important;
    }

    .foka-footer-logo-tagline {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #64748b !important;
        margin-bottom: 0 !important;
        display: block !important;
    }

    /* Hide redundant long description on mobile */
    .foka-footer-about-text {
        display: none !important;
    }

    .foka-footer-socials {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        padding-top: 0 !important;
        border-top: none !important;
        width: 100% !important;
    }

    .foka-social-btn {
        flex: 1 1 0 !important;
        height: 36px !important;
        justify-content: center !important;
        padding: 0 8px !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        border-radius: 9px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    }

    .foka-social-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Section 2: Quick Links (2-Column Clean Text Grid) */
    .foka-footer-links-col {
        padding: 0 0 14px 0 !important;
    }

    .foka-footer-col-title {
        font-size: 13px !important;
        font-weight: 900 !important;
        color: #0f172a !important;
        margin-bottom: 10px !important;
        padding-bottom: 4px !important;
        position: relative !important;
        display: inline-block !important;
    }

    .foka-footer-col-title::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 20px !important;
        height: 2px !important;
        background: linear-gradient(135deg, #ff7a00, #ea580c) !important;
        border-radius: 2px !important;
    }

    .foka-compact-links-list {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }

    .foka-compact-links-list::-webkit-scrollbar {
        display: none !important;
    }

    .foka-compact-links-list a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 4px 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #334155 !important;
        text-decoration: none !important;
        box-shadow: none !important;
        gap: 4px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease !important;
    }

    .foka-compact-links-list a:hover,
    .foka-compact-links-list a:active {
        color: #ea580c !important;
        transform: translateY(-1px) !important;
    }

    .foka-compact-links-list a .foka-link-dot {
        width: 4.5px !important;
        height: 4.5px !important;
        background: #ff7a00 !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }

    /* Section 3: Contact Info (Integrated Clean Canvas) */
    .foka-footer-contact-col {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .foka-compact-contact-box {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .foka-compact-contact-item {
        padding: 8px 12px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        text-decoration: none !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    }

    .foka-contact-phone-highlight {
        background: #fff7ed !important;
        border-color: #fed7aa !important;
    }

    .foka-compact-contact-item .foka-contact-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        border-radius: 8px !important;
        background: #ffedd5 !important;
        color: #ea580c !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .foka-compact-contact-item .foka-contact-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    .foka-compact-contact-item .foka-contact-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: right !important;
        gap: 1px !important;
    }

    .foka-compact-contact-item .foka-contact-text small {
        font-size: 9.5px !important;
        color: #64748b !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
    }

    .foka-compact-contact-item .foka-contact-text strong {
        font-size: 13.5px !important;
        font-weight: 900 !important;
        color: #0f172a !important;
        letter-spacing: 0.5px !important;
        line-height: 1.1 !important;
    }

    .foka-contact-phone-highlight .foka-contact-text strong {
        color: #ea580c !important;
    }

    .foka-compact-contact-item .foka-contact-text span {
        font-size: 11px !important;
        color: #334155 !important;
        line-height: 1.4 !important;
    }

    /* Section 4: Copyright */
    .foka-footer-bottom-bar {
        background: #f1f5f9 !important;
        border-top: 1px solid #e2e8f0 !important;
        padding: 10px 14px calc(var(--foka-bottom-bar-height, 62px) + env(safe-area-inset-bottom, 0px) + 6px) 14px !important;
    }

    .foka-bottom-flex {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .foka-copyright-text {
        font-size: 10.5px !important;
        color: #64748b !important;
        margin: 0 !important;
        line-height: 1.4 !important;
    }

    .foka-back-to-top {
        display: none !important;
    }
}

/* ==========================================================================
   8. Dark Mode
   ========================================================================== */

html[data-theme="dark"] footer.foka-master-footer,
body.dark-theme footer.foka-master-footer {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

html[data-theme="dark"] .foka-footer-logo-title,
body.dark-theme .foka-footer-logo-title,
html[data-theme="dark"] .foka-footer-col-title,
body.dark-theme .foka-footer-col-title {
    color: #ffffff !important;
}

html[data-theme="dark"] .foka-footer-about-text,
body.dark-theme .foka-footer-about-text {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .foka-compact-links-list a,
body.dark-theme .foka-compact-links-list a,
html[data-theme="dark"] .foka-social-btn,
body.dark-theme .foka-social-btn,
html[data-theme="dark"] .foka-compact-contact-item,
body.dark-theme .foka-compact-contact-item {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .foka-footer-bottom-bar,
body.dark-theme .foka-footer-bottom-bar {
    background: #0b1120 !important;
    border-color: #1e293b !important;
}

/* ==========================================================================
   9. Master Bulletproof Scroll-to-Top Button (#goto-top)
   ========================================================================== */

div#goto-top,
#goto-top.right,
#goto-top.left,
#goto-top.with-shadow,
#goto-top {
    position: fixed !important;
    bottom: 28px !important;
    left: 28px !important;
    right: auto !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1.5px solid #fed7aa !important;
    box-shadow: 0 8px 24px -4px rgba(234, 88, 12, 0.22), 0 2px 8px rgba(15, 23, 42, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    direction: ltr !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-sizing: border-box !important;
}

/* SVG Vector Arrow - Always Dead Center */
div#goto-top svg,
#goto-top svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    display: block !important;
    margin: 0 auto !important;
    stroke: #ea580c !important;
    color: #ea580c !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.25s ease !important;
}

/* Strip Fokawood internal spans and center glyphs */
div#goto-top span,
#goto-top.right span,
#goto-top.left span,
#goto-top.with-shadow span,
#goto-top span.fa,
#goto-top span.fa-arrow-up {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: #ea580c !important;
    font-size: 16px !important;
    line-height: 1 !important;
    direction: ltr !important;
    transition: transform 0.25s ease, color 0.25s ease !important;
}

#goto-top span::before {
    color: #ea580c !important;
    font-size: 16px !important;
    display: inline-block !important;
    line-height: 1 !important;
    margin: 0 auto !important;
    text-align: center !important;
    float: none !important;
}

/* Hover & Active States (Vibrant Brand Gradient & Elevated Glow) */
div#goto-top:hover,
#goto-top.right:hover,
#goto-top.left:hover,
#goto-top.with-shadow:hover {
    background: linear-gradient(135deg, #ff7a00 0%, #ea580c 100%) !important;
    background-color: #ff7a00 !important;
    border-color: #ff7a00 !important;
    transform: translateY(-5px) scale(1.08) !important;
    box-shadow: 0 12px 28px rgba(255, 122, 0, 0.45), 0 0 0 3px rgba(255, 122, 0, 0.15) !important;
}

div#goto-top:hover svg,
div#goto-top:hover span,
div#goto-top:hover span::before {
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
}

div#goto-top:active,
#goto-top:active {
    transform: scale(0.9) !important;
}

/* Mobile Screen: Position Elegantly Above Bottom Bar */
@media screen and (max-width: 768px) {
    div#goto-top,
    #goto-top.right,
    #goto-top.left,
    #goto-top.with-shadow {
        bottom: calc(var(--foka-bottom-bar-height, 60px) + env(safe-area-inset-bottom, 0px) + 14px) !important;
        left: 14px !important;
        right: auto !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        border-radius: 50% !important;
        box-shadow: 0 6px 18px rgba(234, 88, 12, 0.25), 0 2px 6px rgba(15, 23, 42, 0.08) !important;
        z-index: 99998 !important;
    }

    div#goto-top svg,
    #goto-top svg {
        width: 17px !important;
        height: 17px !important;
    }

    div#goto-top span,
    #goto-top span::before {
        font-size: 14px !important;
    }
}

/* ==========================================================================
   10. Large Monitor Footer Typography Scaling (1440px+ & 1700px+)
   ========================================================================== */
@media screen and (min-width: 1440px) {
    .foka-footer-logo-title {
        font-size: 21px !important;
    }
    .foka-footer-logo-tagline {
        font-size: 13px !important;
    }
    .foka-footer-about-text {
        font-size: 14.5px !important;
        line-height: 1.9 !important;
    }
    .foka-footer-col-title {
        font-size: 16.5px !important;
    }
    .foka-compact-links-list a {
        font-size: 14px !important;
    }
    .foka-compact-contact-item .foka-contact-text strong {
        font-size: 16px !important;
    }
    .foka-compact-contact-item .foka-contact-text span {
        font-size: 13.5px !important;
    }
    .foka-copyright-text {
        font-size: 13px !important;
    }
}

@media screen and (min-width: 1700px) {
    .foka-footer-logo-title {
        font-size: 23px !important;
    }
    .foka-footer-logo-tagline {
        font-size: 14px !important;
    }
    .foka-footer-about-text {
        font-size: 15.5px !important;
        line-height: 2 !important;
    }
    .foka-footer-col-title {
        font-size: 18px !important;
    }
    .foka-compact-links-list a {
        font-size: 15px !important;
    }
    .foka-compact-contact-item .foka-contact-text strong {
        font-size: 17.5px !important;
    }
    .foka-compact-contact-item .foka-contact-text span {
        font-size: 14.5px !important;
    }
    .foka-copyright-text {
        font-size: 14px !important;
    }
}
