/* ========================================
 * Sneat 푸터 커스텀 스타일
 * 계층: components (공통 컴포넌트 — head.jsp 전역 로드)
 * ======================================== */

/* ----------------------------------------
 * 랜딩 푸터 (landing-footer)
 * ---------------------------------------- */
.landing-footer {
    --bs-footer-text: var(--bs-white);
    --bs-footer-bottom-text: #d3d4dc;
    --bs-footer-bottom-bg: #282c3e;
    --bs-footer-top-bg: #241d31;
    /* use dark variables as front footer having dark background */
}
.landing-footer .footer-link,
.landing-footer .footer-text {
    color: var(--bs-footer-text);
    opacity: 0.78;
}
.landing-footer .footer-title {
    color: var(--bs-footer-text);
    opacity: 0.92;
}
.landing-footer .footer-bottom-text {
    color: var(--bs-footer-bottom-text);
}
.landing-footer .footer-bottom {
    background-color: var(--bs-footer-bottom-bg);
}
.landing-footer .footer-link {
    transition: all 0.2s ease-in-out;
}
.landing-footer .footer-link:hover {
    opacity: 1;
}
.landing-footer .footer-top {
    padding-block: 3.3rem 2.3rem;
    border-top-left-radius: 3.75rem;
    border-top-right-radius: 3.75rem;
}
@media (max-width: 767.98px) {
    .landing-footer .footer-top {
        padding-block: 3rem;
        padding-inline: 0;
    }
}
.landing-footer .footer-top .footer-bg {
    object-position: center;
}
@media (min-width: 992px) {
    .landing-footer .footer-logo-description {
        max-inline-size: 385px;
    }
}
.landing-footer .footer-form {
    max-inline-size: 22.25rem;
}
.landing-footer .footer-form input {
    background-color: transparent;
    color: var(--bs-footer-text);
}
.landing-footer .footer-form input, .landing-footer .footer-form input:hover:not(:focus):not(:disabled) {
    border-color: color-mix(in srgb, #e6e6f1 22%, #2b2c40);
}
.landing-footer .footer-form input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0.125rem 0.25rem color-mix(in srgb, var(--bs-primary) 0.1, #2b2c40);
}
.landing-footer .footer-form input::placeholder {
    color: rgba(var(--bs-white-rgb), 0.5);
}
.landing-footer .footer-form label {
    color: #d5d5e2;
}

.footer-social-icons img {
    filter: brightness(0) invert(1);
}

/* ----------------------------------------
 * 사이트 푸터 (bg-light 푸터)
 * ---------------------------------------- */
.sfn-footer .footer-link {
    color: #000000 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}
.sfn-footer .footer-link:hover {
    color: #007bff !important;
}

/* 푸터 링크 행 */
.sfn-footer-links-row {
    text-align: left !important;
    margin-bottom: 10px;
}
.sfn-footer-links-col {
    text-align: left !important;
    display: block !important;
}

/* 모바일 로고 이미지 */
.sfn-footer-logo-img {
    height: 35px;
    margin-right: 15px;
}

/* 푸터 중앙 정렬 개선 */
.sfn-footer {
    min-height: 200px;
    display: flex;
    align-items: center;
    padding: 3rem 0 !important;
}

/* 모바일 반응형 최적화 */
@media (max-width: 768px) {
    .sfn-footer .footer-mobile-stack {
        text-align: left;
    }

    .sfn-footer .footer-company-info {
        font-size: 1rem;
        line-height: 1.4;
        max-width: 100%;
        overflow: visible;
    }

    .sfn-footer .footer-company-info div {
        margin-bottom: 3px;
        max-width: 100%;
        overflow: visible;
    }

    /* 주소 줄바꿈 처리 (Galaxy S25 대응) */
    .sfn-footer .footer-address {
        white-space: normal !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        line-height: 1.6 !important;
        max-width: 100% !important;
        overflow: visible !important;
        display: block !important;
    }

    /* 모바일에서 컨테이너 패딩 제거 */
    .sfn-footer .footer-mobile-stack {
        padding-right: 0 !important;
        padding-left: 15px !important;
    }

    /* 푸터 전체 컨테이너 오버플로우 방지 */
    .sfn-footer .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: visible !important;
    }

    .sfn-footer .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .sfn-footer .col-12,
    .sfn-footer .col-md-7,
    .sfn-footer .col-md-5,
    .sfn-footer .col-md-10 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .sfn-footer .footer-logo-mobile {
        text-align: left;
        margin-top: 15px;
    }

    .sfn-footer .footer-logo-mobile img {
        height: 35px !important;
    }

    .sfn-footer .footer-links-mobile {
        text-align: left;
        font-size: 1rem;
    }

    /* 개인정보처리방침 | 이용약관 링크 여백 (상단 링크 영역만) */
    .sfn-footer-links-row .footer-link {
        margin: 0 4px !important;
    }

    .sfn-footer-links-row .footer-link + .mx-2 {
        margin-left: 4px !important;
        margin-right: 4px !important;
    }

    /* 모바일에서 푸터 영역 확장 */
    .sfn-footer {
        padding: 100px 0 120px 0 !important;
        min-height: auto !important;
        margin-bottom: 0 !important;
    }

    /* 모바일에서 숨길 항목들 */
    .sfn-footer .mobile-hide {
        display: none !important;
    }

    /* 모바일에서만 상단 여백 - row 자체 마진 제거 */
    .sfn-footer .footer-mobile-top-margin {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 576px) {
    .sfn-footer .footer-company-info {
        font-size: 1rem;
    }

    .sfn-footer .footer-company-info strong {
        font-size: 1rem;
    }

    .sfn-footer .footer-logo-mobile img {
        height: 30px !important;
    }

    .sfn-footer .footer-links-mobile {
        text-align: left;
        font-size: 1rem;
    }
}
