/* Premium Footer */
.site-footer {
    background: linear-gradient(180deg, #1a2332 0%, var(--text-main) 100%);
    color: var(--bg-white);
    padding: clamp(3rem, 6vw, 5rem) 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--fresh-green), var(--primary-orange), var(--warm-yellow));
}

.site-footer::after {
    content: '';
    position: absolute;
    bottom: -120px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
}

.footer-col {
    position: relative;
}

.footer-logo {
    height: 72px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-normal), filter var(--transition-normal);
}

.footer-about:hover .footer-logo {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(34, 197, 94, 0.4));
}

.footer-col h3 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 700;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, var(--fresh-green), var(--primary-orange));
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.footer-col:hover h3::after {
    width: 56px;
}

.footer-about p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 320px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--bg-white);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--fresh-green));
    border-color: transparent;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    transition: all var(--transition-fast);
    position: relative;
}

.footer-links a::before {
    content: '\f105';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--fresh-green);
    transition: transform var(--transition-fast), color var(--transition-fast);
    width: 14px;
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 4px;
}

.footer-links a:hover::before {
    transform: translateX(4px);
    color: var(--primary-orange);
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.1rem;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.footer-contact li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.footer-contact i {
    color: var(--warm-yellow);
    font-size: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.footer-contact li:hover i {
    transform: scale(1.15);
    color: var(--primary-orange);
}

.footer-contact strong {
    display: block;
    color: var(--bg-white);
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.footer-contact a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--fresh-green);
}

.footer-bottom {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.32) 100%);
    padding: 1.15rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
}

.footer-copyright,
.footer-credits {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.6rem;
    color: var(--text-light);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
}

.footer-copy-icon {
    font-size: 0.8rem;
    color: var(--fresh-green);
    opacity: 0.9;
}

.footer-brand-name {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.footer-staff-link {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.footer-staff-link:hover {
    color: rgba(255, 255, 255, 0.72);
}

.footer-bottom-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fresh-green), var(--primary-orange));
    flex-shrink: 0;
    opacity: 0.75;
}

.footer-credits-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
}

.footer-credits-tag i {
    font-size: 0.65rem;
    color: var(--primary-orange);
}

.footer-credits-name {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-credits:hover .footer-credits-name {
    color: var(--warm-yellow);
}

.footer-bottom p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
}

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

    .footer-about {
        grid-column: auto;
    }

    .footer-about p {
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding-top: 2.75rem;
    }

    .footer-top {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .footer-col {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 1.35rem 1.25rem;
    }

    .footer-about {
        text-align: center;
        padding: 1.5rem 1.25rem;
    }

    .footer-about p {
        margin: 0 auto;
        font-size: 0.92rem;
    }

    .footer-logo {
        height: 58px;
        margin: 0 auto 1rem;
    }

    .footer-col h3 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        text-align: left;
    }

    .footer-about h3 {
        text-align: center;
    }

    .footer-col h3::after {
        left: 0;
        transform: none;
    }

    .footer-about h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
        gap: 0.75rem;
    }

    .social-links a {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    /* Quick links — 2-column touch grid */
    .footer-links ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.7rem 0.85rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        font-size: 0.88rem;
        min-height: 44px;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-links a:hover,
    .footer-links a:active {
        padding-left: 0.85rem;
        background: rgba(22, 163, 74, 0.15);
    }

    /* Contact — stacked cards */
    .footer-contact li {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 0.85rem;
        padding: 1rem;
        margin-bottom: 0.65rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    .footer-contact li:last-child {
        margin-bottom: 0;
    }

    .footer-contact li:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.08);
    }

    .footer-contact i {
        margin-top: 0.1rem;
    }

    .footer-contact strong {
        font-size: 0.8rem;
    }

    .footer-contact a {
        word-break: break-word;
    }

    /* Footer bottom */
    .footer-bottom {
        padding: 1rem 0;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.65rem;
        padding: 0 0.25rem;
    }

    .footer-copyright,
    .footer-credits {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 0.35rem;
    }

    .footer-copyright span,
    .footer-credits-name {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .footer-credits-tag {
        font-size: 0.68rem;
    }

    .footer-bottom-sep {
        display: none;
    }
}

@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }

    .footer-col h3::after {
        left: 0;
        transform: none;
    }

    .footer-about h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding-top: 2.25rem;
    }

    .footer-links ul {
        grid-template-columns: 1fr;
    }

    .footer-links a {
        justify-content: center;
        text-align: center;
    }
}
