/* Modern Footer Design - 균형잡힌 레이아웃 */

/* 푸터 전체 컨테이너 */
#footer {
    background: linear-gradient(to bottom, #2C5F7C, #1A4E4A);
    color: #B8E6E1;
    padding: 80px 0 0;
    margin-top: 100px;
    position: relative;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 메인 푸터 컨텐츠 */
.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 푸터 상단 - 3열 그리드 */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 브랜드 섹션 (첫 번째 컬럼) */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 10px;
}

.footer-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 1;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #888;
    max-width: 300px;
}

/* 푸터 컬럼 */
.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: -0.3px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: #888;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-column ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* 연락처 정보 스타일 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #888;
}

.contact-item i {
    color: #DB1419;
    font-size: 16px;
    margin-top: 2px;
    min-width: 20px;
    text-align: center;
}

.contact-item strong {
    color: #bbb;
    font-weight: 500;
}

/* 뉴스레터 섹션 */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 25px;
}

.footer-newsletter h4 {
    margin-bottom: 15px !important;
}

.footer-newsletter p {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #DB1419;
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
    background: #DB1419;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #c91015;
    transform: translateY(-2px);
}

/* 푸터 중간 섹션 - 회사 정보와 지도 */
#footer .footer-info-map {
    padding: 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .company-info-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#footer .company-details {
    flex-shrink: 0;
    max-width: 280px;
}

#footer .company-details p {
    font-size: 14px;
    color: #888;
    margin: 0 0 8px 0;
    line-height: 1.6;
}

#footer .company-details p strong {
    color: #ccc;
    font-weight: 500;
    margin-right: 8px;
}

#footer .company-details p:first-child {
    font-size: 16px;
    color: #fff;
    margin-bottom: 16px;
}

/* 지도 섹션 - 단순하게 */
#footer .footer-map {
    flex: 1;
    max-width: 600px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#footer .footer-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 푸터 하단 */
.footer-bottom {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-links a {
    color: #888;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links .divider {
    color: #444;
}

.copyright {
    font-size: 13px;
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.copyright .admin-link {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid rgba(78, 205, 196, 0.3);
    order: 1;
}

.copyright .admin-link:hover {
    background: #4ECDC4;
    color: white;
    border-color: #4ECDC4;
}

.copyright .hjj-credit {
    order: 2;
}

.copyright .hjj-link {
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.copyright .hjj-link:hover {
    color: #4ECDC4;
    text-decoration: underline;
}

.copyright .company-copyright {
    order: 3;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .copyright {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .copyright .admin-link {
        order: 1;
    }

    .copyright .hjj-credit {
        order: 2;
    }

    .copyright .company-copyright {
        order: 3;
    }
}

.footer-bottom-right {
    display: flex;
    align-items: center;
}

.admin-link {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.admin-link:hover {
    color: #ccc;
}

/* 플로팅 버튼 */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.btn-top {
    width: 50px;
    height: 50px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-top:hover {
    background: #DB1419;
    transform: translateY(-3px);
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* 전체 푸터 그리드 모바일 설정 */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    /* 브랜드 섹션 중앙 정렬 */
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    
    /* 모든 푸터 컬럼 중앙 정렬 */
    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .footer-column h4 {
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* 서비스 링크 중앙 정렬 */
    .footer-column ul {
        text-align: center;
        width: 100%;
        max-width: 300px;
    }
    
    /* Contact Us 섹션 완전 중앙 정렬 */
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 350px;
    }
    
    .contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 6px 0;
    }
    
    .contact-item i {
        color: #DB1419;
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .contact-item div {
        text-align: center;
        width: 100%;
        line-height: 1.4;
    }
    
    .contact-item div strong {
        display: block;
        margin-bottom: 2px;
        color: #bbb;
        font-weight: 500;
    }
    
    /* 회사 정보 섹션 중앙 정렬 */
    #footer .company-info-wrapper {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        justify-content: center;
        align-items: center;
        padding: 0 20px;
    }
    
    #footer .company-details {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    #footer .company-details p {
        text-align: center;
        width: 100%;
    }
    
    /* 모바일에서 지도 숨기기 */
    #footer .footer-map {
        display: none;
    }
    
    /* 회사 정보 섹션 간격 조정 */
    #footer .footer-info-map {
        padding: 30px 0;
    }
    
    /* 푸터 하단 중앙 정렬 */
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom-left {
        align-items: center;
        width: 100%;
    }
    
    .footer-bottom-right {
        width: 100%;
        justify-content: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links .divider {
        display: none;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-grid > * {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.footer-grid > *:nth-child(1) { animation-delay: 0.1s; }
.footer-grid > *:nth-child(2) { animation-delay: 0.2s; }
.footer-grid > *:nth-child(3) { animation-delay: 0.3s; }
.footer-grid > *:nth-child(4) { animation-delay: 0.4s; }
