/* =====================================================================
   공통 푸터 스타일. style.css 에서 분리해 footer.jsp 를 쓰는 모든 페이지가
   공유한다. 회사소개(/about)는 style.css 를 로드하지 않으므로(전역 선택자가
   about.css 와 충돌) 이 파일만 따로 읽어간다.
   호스트 페이지의 body 폰트에 영향받지 않도록 .footer 에 폰트를 고정한다.
   ===================================================================== */

/* style.css 의 전역 리셋(*{margin:0;padding:0}) 에 기대던 규칙들이라,
   그 리셋이 없는 페이지에서도 동일하게 보이도록 푸터 안에서 다시 적용한다.
   (쇼핑몰 페이지에서는 이미 같은 값이므로 영향 없음) */
.footer,
.footer * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.footer {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    word-break: normal;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary, #23545B);
    color: white;
    margin-top: 60px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-contact {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-contact strong {
    display: block;
    font-size: 24px;
    color: white;
    margin: 8px 0;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-company {
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.9;
}

.footer-company p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.footer-company .sep {
    margin: 0 8px;
    color: rgba(255,255,255,0.25);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

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