/* ============================================
   JOCRA FOOTER - MOBILE FIRST RESPONSIVE
   ============================================ */

:root {
    --jocra-green: #2D5A3D;
    --jocra-green-light: #4A7C59;
    --jocra-red: #E63946;
    --jocra-red-dark: #C1121F;
    --jocra-dark: #0F1419;
    --jocra-charcoal: #1A1F2E;
    --jocra-slate: #2A3441;
    --jocra-gray: #6B7280;
    --jocra-light: #F0F2F5;
    --jocra-white: #FFFFFF;

    --touch-target: 44px;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.jocra-footer {
    background: #0a0d12;
    padding: 48px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container-xl {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

/* Brand Column */
.footer-brand {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--jocra-white);
    margin-bottom: 16px;
    min-height: var(--touch-target);
    transition: opacity 0.3s ease;
}

.footer-logo:active {
    opacity: 0.8;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.logo-text {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    line-height: 1;
    color: var(--jocra-white);
}

.logo-sub {
    font-size: 10px;
    color: var(--jocra-gray);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    margin-top: 2px;
    line-height: 1.3;
    max-width: 200px;
}

.brand-description {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    width: var(--touch-target);
    height: var(--touch-target);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.social-link:active {
    background: var(--jocra-red);
    color: var(--jocra-white);
    border-color: var(--jocra-red);
    transform: scale(0.95);
}

/* Footer Links Sections */
.footer-links {
    padding: 0 8px;
}

.footer-links h4 {
    color: var(--jocra-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--jocra-red);
    display: inline-block;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 0;
    min-height: var(--touch-target);
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.footer-link:active {
    color: var(--jocra-red);
    background: rgba(230, 57, 70, 0.05);
}

.footer-link i {
    color: var(--jocra-red);
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.footer-text-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    padding: 12px 0;
    min-height: var(--touch-target);
}

.footer-text-item i {
    color: var(--jocra-green-light);
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-info .footer-link {
    color: rgba(255,255,255,0.7);
}

.contact-info .footer-link:active {
    color: var(--jocra-red);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-legal p {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.trust-badges {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: var(--touch-target);
    -webkit-tap-highlight-color: transparent;
}

.back-to-top:active {
    background: var(--jocra-red);
    color: var(--jocra-white);
    border-color: var(--jocra-red);
    transform: translateY(-2px);
}

.back-to-top i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.back-to-top:active i {
    transform: translateY(-2px);
}

/* ============================================
   TABLET BREAKPOINT (577px+)
   ============================================ */

@media (min-width: 577px) {
    .container-xl {
        padding: 0 24px;
    }

    .jocra-footer {
        padding: 64px 0 32px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
        margin-bottom: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: left;
        padding-bottom: 32px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .brand-description {
        max-width: 500px;
        margin-left: 0;
        margin-right: 0;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-links h4 {
        margin-bottom: 20px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding-top: 32px;
    }
}

/* ============================================
   DESKTOP BREAKPOINT (1025px+)
   ============================================ */

@media (min-width: 1025px) {
    .container-xl {
        padding: 0 32px;
    }

    .jocra-footer {
        padding: 80px 0 40px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 48px;
        margin-bottom: 48px;
    }

    .footer-brand {
        grid-column: auto;
        border-bottom: none;
        padding-bottom: 0;
    }

    .brand-description {
        font-size: 15px;
        line-height: 1.7;
        max-width: none;
    }

    .footer-links {
        padding: 0;
    }

    .footer-links h4 {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .footer-link {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        font-size: 14px;
    }

    .footer-text-item {
        font-size: 14px;
    }

    .footer-bottom {
        padding-top: 40px;
    }

    .footer-legal p {
        font-size: 14px;
    }

    .trust-badges {
        font-size: 13px;
    }
}

/* ============================================
   LARGE DESKTOP BREAKPOINT (1440px+)
   ============================================ */

@media (min-width: 1440px) {
    .container-xl {
        max-width: 1320px;
        padding: 0 48px;
    }

    .footer-grid {
        gap: 64px;
    }
}

/* ============================================
   HOVER EFFECTS - POINTER FINE ONLY
   ============================================ */

@media (pointer: fine) {
    .footer-logo:hover {
        opacity: 0.9;
    }

    .social-link:hover {
        background: var(--jocra-red);
        color: var(--jocra-white);
        border-color: var(--jocra-red);
        transform: translateY(-2px);
    }

    .footer-link:hover {
        color: var(--jocra-red);
        padding-left: 4px;
    }

    .back-to-top:hover {
        background: var(--jocra-red);
        color: var(--jocra-white);
        border-color: var(--jocra-red);
        transform: translateY(-2px);
    }

    .back-to-top:hover i {
        transform: translateY(-2px);
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    .social-link:active {
        transform: scale(0.95);
    }

    .footer-link:active {
        background: rgba(230, 57, 70, 0.08);
    }

    .back-to-top:active {
        transform: translateY(-2px);
    }
}

/* ============================================
   REDUCED MOTION PREFERENCES
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .back-to-top i {
        transition: none;
    }
}

/* ============================================
   HIGH CONTRAST MODE SUPPORT
   ============================================ */

@media (prefers-contrast: high) {
    .jocra-footer {
        border-top-width: 2px;
    }

    .footer-links h4 {
        border-bottom-width: 3px;
    }

    .footer-link,
    .social-link,
    .back-to-top {
        border: 2px solid currentColor;
    }

    .footer-brand {
        border-bottom-width: 2px;
    }
}

/* ============================================
   FOCUS VISIBLE FOR ACCESSIBILITY
   ============================================ */

:focus-visible {
    outline: 3px solid var(--jocra-red);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--jocra-red);
    color: var(--jocra-white);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 100000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}