/* ============================================
   Footer Styles - GitHub Exact Style
   Clean, Minimal, No Gradients
   ============================================ */

/* ===== Footer Base ===== */
.gh-footer {
    width: 100%;
    margin-top: auto;
}

/* ===== Pre-footer CTA Banner ===== */
.gh-footer-cta {
    background-color: var(--color-success-emphasis);
    padding: var(--space-10) var(--space-4);
}

.gh-footer-cta-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.gh-footer-cta-content {
    flex: 1;
    min-width: 280px;
}

.gh-footer-cta-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: white;
    margin: 0 0 var(--space-2);
}

.gh-footer-cta-desc {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.gh-footer-cta-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.gh-footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-success-emphasis);
    background-color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background-color 80ms;
}

.gh-footer-cta-btn:hover {
    background-color: #f6f8fa;
    text-decoration: none;
}

.gh-footer-cta-btn svg {
    width: 18px;
    height: 18px;
}

.gh-footer-cta-btn--primary {
    background-color: white;
}

/* ===== Main Footer Content ===== */
.gh-footer-main {
    background-color: var(--color-canvas-subtle);
    padding: var(--space-12) var(--space-4);
    border-top: 1px solid var(--color-border-default);
}

.gh-footer-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ===== Brand Column ===== */
.gh-footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.gh-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.gh-footer-logo:hover {
    text-decoration: none;
}

.gh-footer-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--color-success-emphasis);
    border-radius: var(--radius-md);
    color: white;
}

.gh-footer-logo-icon svg {
    width: 24px;
    height: 24px;
}

.gh-footer-logo-text {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-fg-default);
}

.gh-footer-about {
    font-size: var(--text-sm);
    color: var(--color-fg-muted);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.gh-footer-social {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.gh-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-fg-muted);
    background-color: var(--color-canvas-default);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
    transition: color 80ms, border-color 80ms;
}

.gh-footer-social-link:hover {
    color: var(--color-accent-fg);
    border-color: var(--color-accent-muted);
}

.gh-footer-social-link svg {
    width: 18px;
    height: 18px;
}

/* ===== Links Grid ===== */
.gh-footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.gh-footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.gh-footer-title {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-fg-default);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gh-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.gh-footer-link {
    font-size: var(--text-sm);
    color: var(--color-fg-muted);
    text-decoration: none;
    transition: color 80ms;
}

.gh-footer-link:hover {
    color: var(--color-accent-fg);
    text-decoration: underline;
}

/* Info List */
.gh-footer-list--info li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gh-footer-label {
    font-size: var(--text-xs);
    color: var(--color-fg-subtle);
}

.gh-footer-value {
    font-size: var(--text-sm);
    color: var(--color-fg-default);
    font-weight: var(--font-medium);
}

/* Contact Column */
.gh-footer-col--contact {
    gap: var(--space-3);
}

.gh-footer-phone {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-accent-fg);
    text-decoration: none;
    transition: color 80ms;
}

.gh-footer-phone:hover {
    color: var(--color-accent-emphasis);
    text-decoration: underline;
}

.gh-footer-hours {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3);
    background-color: var(--color-canvas-default);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
}

.gh-footer-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
}

.gh-footer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-success-fg);
    background-color: var(--color-success-subtle);
    border-radius: var(--radius-full);
    margin-top: var(--space-1);
}

/* ===== Footer Bottom ===== */
.gh-footer-bottom {
    background-color: var(--color-canvas-default);
    border-top: 1px solid var(--color-border-default);
    padding: var(--space-5) var(--space-4);
}

.gh-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    max-width: var(--container-max);
    margin: 0 auto;
    flex-wrap: wrap;
}

.gh-footer-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.gh-footer-nav-link {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-fg-muted);
    text-decoration: none;
    transition: color 80ms;
}

.gh-footer-nav-link:hover {
    color: var(--color-accent-fg);
    text-decoration: underline;
}

.gh-footer-nav-link:first-child {
    font-weight: var(--font-semibold);
    color: var(--color-fg-default);
}

.gh-footer-copy {
    font-size: var(--text-sm);
    color: var(--color-fg-subtle);
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .gh-footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .gh-footer-brand {
        text-align: center;
        align-items: center;
    }

    .gh-footer-about {
        max-width: 320px;
    }

    .gh-footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .gh-footer-cta {
        padding: var(--space-8) var(--space-4);
    }

    .gh-footer-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .gh-footer-cta-content {
        min-width: auto;
    }

    .gh-footer-cta-title {
        font-size: var(--text-xl);
    }

    .gh-footer-cta-actions {
        justify-content: center;
        width: 100%;
    }

    .gh-footer-cta-btn {
        flex: 1;
        justify-content: center;
        max-width: 200px;
    }

    .gh-footer-main {
        padding: var(--space-8) var(--space-4);
    }

    .gh-footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .gh-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .gh-footer-nav {
        order: 2;
    }

    .gh-footer-copy {
        order: 1;
    }
}

@media (max-width: 480px) {
    /* Mobile: 핵심 정보만 표시 */
    .gh-footer-main {
        padding: var(--space-6) var(--space-4);
    }

    .gh-footer-inner {
        gap: var(--space-6);
    }

    /* 브랜드 영역 간소화 */
    .gh-footer-brand {
        gap: var(--space-3);
    }

    .gh-footer-about {
        display: none;
    }

    .gh-footer-social {
        display: none;
    }

    /* 링크 영역: 서비스 + 고객센터만 표시 */
    .gh-footer-links {
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: var(--space-4);
    }

    /* 고객지원, 회사정보 숨김 */
    .gh-footer-col:nth-child(2),
    .gh-footer-col:nth-child(3) {
        display: none;
    }

    /* 고객센터 표시 */
    .gh-footer-col--contact {
        display: flex;
    }

    .gh-footer-col {
        align-items: center;
    }

    .gh-footer-list {
        align-items: center;
    }

    .gh-footer-hours {
        width: 100%;
        max-width: 200px;
        padding: var(--space-2);
    }

    .gh-footer-hours-row {
        font-size: var(--text-xs);
    }

    .gh-footer-phone {
        font-size: var(--text-lg);
    }

    .gh-footer-cta-actions {
        flex-direction: column;
    }

    .gh-footer-cta-btn {
        max-width: none;
        width: 100%;
    }

    /* 하단 정보 간소화 */
    .gh-footer-bottom {
        padding: var(--space-4);
    }

    .gh-footer-nav {
        gap: var(--space-4);
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .gh-footer-cta-btn,
    .gh-footer-social-link,
    .gh-footer-logo,
    .gh-footer-link,
    .gh-footer-phone,
    .gh-footer-nav-link {
        transition: none;
    }
}
