/**
 * CF Teknologi footer — konsultan IT look
 * Primary #03532c · Hover/deep #024526
 */

.footer-area-bg {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 10% -10%, rgba(255, 255, 255, 0.08), transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 100%, rgba(0, 0, 0, 0.22), transparent 50%),
        linear-gradient(165deg, #046338 0%, #03532c 42%, #024526 100%);
    color: #fff;
}

.cf-footer {
    position: relative;
    z-index: 1;
}

.cf-footer__glow {
    position: absolute;
    inset: auto auto -20% -10%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
    animation: cf-footer-pulse 8s ease-in-out infinite;
}

.cf-footer__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
}

@keyframes cf-footer-pulse {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(24px, -18px) scale(1.08); opacity: 1; }
}

/* Trust strip */
.cf-footer__trust {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
}

.cf-footer__trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
}

.cf-footer__trust-list li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.cf-footer__trust-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    transition: transform 0.25s ease, background 0.25s ease;
}

.cf-footer__trust-list li:hover .cf-footer__trust-icon {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

/* Main */
.cf-footer__main {
    position: relative;
    padding: 64px 0 48px;
}

.cf-footer__brand {
    max-width: 360px;
}

.cf-footer__logo {
    display: inline-block;
    margin-bottom: 18px;
}

.cf-footer__tagline {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0 0 22px;
}

.cf-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.cf-footer__social {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.cf-footer__social:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff !important;
}

/* Newsletter */
.cf-footer__newsletter-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.cf-footer__newsletter-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 6px;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cf-footer__newsletter-row:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.14);
}

.cf-footer__newsletter-row .form-control {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    padding: 0 12px;
    font-size: 0.92rem;
}

.cf-footer__newsletter-row .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.cf-footer__newsletter-row .subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #fff !important;
    color: #03532c !important;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}

.cf-footer__newsletter-row .subscribe-btn:hover {
    background: #f0fdf4 !important;
    color: #024526 !important;
    transform: translateX(2px);
}

.cf-footer__form-msg {
    margin: 8px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
}

.cf-footer__form-msg--ok {
    color: #d1fae5;
}

.cf-footer__form-msg--error {
    color: #fecaca;
}

/* Columns */
.cf-footer__heading {
    position: relative;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff !important;
    margin: 0 0 22px;
    padding-bottom: 12px;
}

.cf-footer__heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.3s ease;
}

.cf-footer__col:hover .cf-footer__heading::after {
    width: 56px;
}

.cf-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cf-footer__links li + li {
    margin-top: 4px;
}

.cf-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cf-footer__links a iconify-icon {
    opacity: 0.7;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cf-footer__links a:hover {
    color: #fff !important;
    transform: translateX(4px);
}

.cf-footer__links a:hover iconify-icon {
    opacity: 1;
    transform: translateX(2px);
}

/* Contact */
.cf-footer__contact-lead {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: -6px 0 18px;
}

.cf-footer__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cf-footer__contact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff !important;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

a.cf-footer__contact:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    color: #fff !important;
}

.cf-footer__contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cf-footer__contact small {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.cf-footer__contact strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
}

/* Bottom bar */
.cf-footer__bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
    padding: 18px 0;
}

.cf-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.cf-footer__copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.88rem;
}

.cf-footer__legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.cf-footer__legal a {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cf-footer__legal a:hover {
    color: #fff !important;
}

/* Override legacy footer styles that leak in */
.footer-area-bg .footer-list ul li a:hover,
.footer-area-bg .footer-list ul li a:hover::before {
    color: #fff !important;
    background-color: transparent;
}

.footer-area-bg .footer-bottom {
    display: none;
}

@media (max-width: 991px) {
    .cf-footer__main {
        padding: 48px 0 36px;
    }

    .cf-footer__brand {
        max-width: none;
    }
}

@media (max-width: 575px) {
    .cf-footer__trust-list {
        gap: 10px 16px;
        justify-content: flex-start;
    }

    .cf-footer__trust-list li {
        font-size: 0.72rem;
    }

    .cf-footer__newsletter-row {
        flex-direction: column;
    }

    .cf-footer__newsletter-row .subscribe-btn {
        justify-content: center;
        width: 100%;
    }

    .cf-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cf-footer__glow {
        animation: none;
    }

    .cf-footer__social,
    .cf-footer__contact,
    .cf-footer__links a,
    .cf-footer__trust-icon {
        transition: none;
    }
}
