/* =============================================
   근영방수 - 푸터 CSS
   완전 수정본
   ============================================= */

/* ========== Floating CTA ========== */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0047AB 0%, #003580 100%);
    z-index: 900;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.floating-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-cta.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.floating-cta-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    position: relative;
}

.floating-cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #FFFFFF;
}

.floating-cta-text strong {
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.floating-cta-text span {
    font-size: 0.9rem;
    opacity: 0.85;
}

.floating-cta-buttons {
    display: flex;
    gap: 0.75rem;
}

.floating-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-cta-btn-primary {
    background: #FFD100;
    color: #1a1a1a;
}

.floating-cta-btn-primary:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-cta-btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.floating-cta-btn-secondary:hover {
    background: #FFFFFF;
    color: #0047AB;
    border-color: #FFFFFF;
}

.floating-cta-close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cta-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

/* ========== Footer ========== */
.footer {
    background: #111111;
    color: #FFFFFF;
    padding-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== Footer Main ========== */
.footer-main {
    display: flex;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Company Info */
.footer-company {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content:flex-start;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-logo-text {
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFFFFF;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.footer-phone-icon {
    font-size: 1.25rem;
}

.footer-phone-number {
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD100;
}

.footer-hours {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: #FFD100;
    transform: translateY(-2px);
}

/* Footer Links */
.footer-links-wrap {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links-title {
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FFD100;
    display: inline-block;
}

.footer-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: #FFD100;
    padding-left: 0.5rem;
}

/* ========== Footer Bottom ========== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1rem;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-info .divider {
    color: rgba(255, 255, 255, 0.2);
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ========== Powered By ========== */
.footer-powered-by {
    color: rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
}

.footer-powered-by a {
    color: rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-powered-by a:hover {
    color: rgba(255, 255, 255, 0.35);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .footer-main {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-company {
        flex: none;
        max-width: 100%;
    }
    
    .footer-links-wrap {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .floating-cta-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-right: 3rem;
    }
    
    .floating-cta-text {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding-top: 3rem;
    }
    
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-links-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-info {
        justify-content: center;
    }

    .footer-info .divider {
        display: none;
    }

    .footer-powered-by {
        display: none;
    }

    .footer-info span {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .floating-cta-text strong {
        font-size: 1rem;
    }
    
    .floating-cta-text span {
        font-size: 0.8rem;
    }
    
    .floating-cta-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .floating-cta-close {
        right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer-links-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
    }
    
    .footer-logo-text {
        font-size: 1.25rem;
    }
    
    .footer-phone-number {
        font-size: 1.25rem;
    }
    
    .floating-cta-inner {
        padding: 1rem;
        padding-right: 2.5rem;
    }
    
    .floating-cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .floating-cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .floating-cta-close {
        right: 0.5rem;
        top: 0.5rem;
        transform: none;
    }
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    vertical-align: middle;
}

.floating-cta-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}