/* --- Footer --- */
#footer {
    width: 100%;
    background: #000;
    padding: 100px 0 60px; /* height 615px를 유지하기 위한 여백 조절 */
    display: flex;
    justify-content: center;
    position: relative;
}

.footer-container {
    display: flex;
    width: 1560px;
    flex-direction: column;
    align-items: flex-start;
    gap: 120px; /* padding1-16 */
}

/* 상단 영역 레이아웃 */
.footer-top {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 80px; /* padding1-14 */
}

.footer-brand {
    width: 554px;
}

.footer-slogan {
    color: #FFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 42px;
    letter-spacing: -0.8px;
}

.footer-info-wrap {
    display: flex;
    align-items: flex-start;
    gap: 80px; /* 6-4 오른쪽 간격 */
    flex: 1;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-title {
    color: #FFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -0.45px;
}

.info-desc {
    color: rgba(255, 255, 255, 0.60);
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.35px;
}

/* 리스트 스타일 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-list li {
    display: flex;
    gap: 20px;
}

.info-list .label {
    width: 74px;
    color: rgba(255, 255, 255, 0.60);
    font-size: 14px;
}

.info-list .value {
    color: #FFF;
    font-size: 14px;
}

.sitemap-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sitemap-list a {
    color: rgba(255, 255, 255, 0.60);
    font-size: 16px;
    line-height: 26px;
    letter-spacing: -0.4px;
    transition: color 0.3s;
}

.sitemap-list a:hover {
    color: #FFF;
}

/* 하단 영역 레이아웃 */
.footer-bottom {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
}

.footer-logo img {
    height: 40px; /* 로고 크기에 맞게 조정 */
    opacity: 0.6;
}

.copyright {
    color: rgba(255, 255, 255, 0.60);
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.35px;
}

/* Top 버튼 */
.btn-top {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: 56px;
    height: 56px;
    background: #2C3D5B;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.btn-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-top:hover {
    transform: translateY(-5px);
    background: #1D212C;
}

/* ==========================================================
   푸터 반응형 대응
   ========================================================== */

/* 1. 태블릿 대응 (max-width: 1024px) */
@media (max-width: 1024px) {
    #footer {
        padding: 80px 0 40px;
    }

    .footer-container {
        gap: 80px; /* 간격 축소 */
    }

    /* 상단 영역: 가로 정렬에서 세로 정렬로 변경 가능성 고려 */
    .footer-top {
        flex-direction: column;
        gap: 60px;
    }

    .footer-brand {
        width: 100%; /* 슬로건 너비 전체로 */
    }

    .footer-brand .footer-slogan {
        font-size: 28px;
        line-height: 38px;
    }

    /* 정보 그룹들(Location, Info, Sitemap) 가로로 펼치기 */
    .footer-info-wrap {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2열 배치 */
        gap: 40px;
    }

    /* 사이트맵은 오른쪽 끝에 배치하거나 아래로 */
    .info-group:last-child {
        grid-column: span 1;
    }
}

/* 2. 모바일 대응 (max-width: 767px) */
@media (max-width: 767px) {
    #footer {
        padding: 60px 0 30px;
    }

    .footer-container {
        gap: 60px;
    }

    /* 슬로건 크기 더 축소 */
    .footer-brand .footer-slogan {
        font-size: 24px;
        line-height: 32px;
    }

    /* 정보 그룹 1열로 나열 */
    .footer-info-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-list li {
        gap: 10px; /* 라벨과 밸류 사이 간격 축소 */
    }

    .info-list .label {
        width: 65px; /* 모바일 폭에 맞춰 라벨 너비 조정 */
    }

    /* 하단 로고 및 카피라이트 영역 */
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start; /* 시안에 따라 중앙 정렬 원할 시 center */
        gap: 20px;
    }

    .footer-logo img {
        height: 32px; /* 로고 크기 축소 */
    }

    .copyright {
        font-size: 12px;
    }

    /* Top 버튼 모바일 크기 조정 */
    .btn-top {
        right: 20px;
        bottom: 20px;
        width: 48px;
        height: 48px;
    }
}

/* 3. 초소형 모바일 대응 (max-width: 400px) */
@media (max-width: 400px) {
    .footer-brand .footer-slogan {
        font-size: 20px;
        line-height: 28px;
    }
    
    .info-list .value {
        font-size: 13px; /* 텍스트가 넘치지 않게 미세 조정 */
    }
}