.footer {
    position: relative;
    width: 100%;
    background-image: url("../img/Hutan.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 60px 0 30px;
    font-family: 'Spectral', serif;
    overflow: hidden;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 30, 20, 0.78);
    z-index: 0;
}

/* LOGO */
.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
}

/* PETANI – DEPAN */
.footer::before {
    content: "";
    position: absolute;
    bottom: -4px;
    right: 4%;
    width: 130px;
    height: 200px;
    background-image: url("../img/Petani.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.95;
    z-index: 2;
    animation: farmerFloatMain 5.5s ease-in-out infinite alternate;
}

/* PETANI – BAYANGAN */
.footer::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 2%;
    width: 155px;
    height: 225px;
    background-image: url("../img/Petani.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.22;
    filter: blur(1px);
    z-index: 1;
    animation: farmerFloatShadow 8s ease-in-out infinite alternate;
}

@keyframes farmerFloatMain {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); }
    40%  { transform: translateY(-6px) translateX(-3px) rotate(-0.4deg); }
    100% { transform: translateY(-3px) translateX(2px) rotate(0.3deg); }
}

@keyframes farmerFloatShadow {
    0%   { transform: translateY(0) translateX(0) scale(1.03); }
    50%  { transform: translateY(-8px) translateX(-4px) scale(1.04); }
    100% { transform: translateY(-4px) translateX(3px) scale(1.02); }
}

/* DAUN */
.footer-leaves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.leaf {
    position: absolute;
    width: 14px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #e3ffe5 0%, #9be7b6 40%, #1f6c3b 100%);
    opacity: 0.6;
    filter: blur(0.3px);
}

.leaf-1 { left: 12%; bottom: -20px; animation: leafFloat 14s linear infinite; }
.leaf-2 { left: 28%; bottom: -40px; animation: leafFloat 17s linear infinite 2s; }
.leaf-3 { left: 45%; bottom: -30px; animation: leafFloat 16s linear infinite 1s; }
.leaf-4 { left: 65%; bottom: -50px; animation: leafFloat 19s linear infinite 3s; }
.leaf-5 { left: 80%; bottom: -25px; animation: leafFloat 15s linear infinite 4s; }

@keyframes leafFloat {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.7; }
    50%  { transform: translate3d(25px, -160px, 0) rotate(18deg); }
    100% { transform: translate3d(-10px, -260px, 0) rotate(-12deg); opacity: 0; }
}

/* LAYOUT UMUM */
.footer-inner {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOP: LOGO + TAGLINE */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-subtitle {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
}

.footer-main h3 {
    font-size: 20px;
    font-weight: 500;
    max-width: 600px;
    line-height: 1.5;
}

/* INFO + MAP */
.footer-info {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.footer-block {
    flex: 1;
    min-width: 280px;
}

.footer-block h4 {
    font-size: 16px;
    margin: 18px 0 6px;
    color: #A7E4C2;
    font-weight: 600;
}

.footer-block p {
    font-size: 14px;
    line-height: 1.7;
}

/* SOSMED */
.social-icons {
    margin-top: 8px;
}

.social-icons a {
    color: #ffffff;
    font-size: 22px;
    margin-right: 14px;
    transition: 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #A7E4C2;
}

/* MAP */
.footer-map {
    flex: 1;
    min-width: 280px;
}

.map-box {
    width: 100%;
    padding: 3px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0b6b3a, #a7e4c2);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

.map-inner {
    width: 100%;
    height: 360px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.map-inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* BOTTOM */
.footer-bottom {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    opacity: 0.85;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-main h3 {
        font-size: 18px;
        max-width: 100%;
    }

    .footer-info {
        flex-direction: column;
    }

    .map-inner {
        height: 280px;
    }

    .footer::before,
    .footer::after,
    .footer-leaves {
        display: none;
    }
}
