/* ========================================
   헤더 & 푸터 통합 스타일 (header-footer.css)
   ======================================== */

/* ----------------------------------------
   1. 헤더 (Header)
   ---------------------------------------- */
.header { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height, 64px); background: var(--bg-primary); 
   border-bottom: 1px solid var(--border-light); padding: 12px 0; z-index: 1000; transition: none !important; transform: none !important; }

.header-content { display: flex; justify-content: space-between; align-items: center; }

/* 로고 그룹 */
.logo-group { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; transition: transform 0.3s ease; }
.logo-group a { text-decoration: none; display: flex; align-items: center; gap: 0.75rem; }
.logo-group:hover { transform: scale(1.05); }
.logo-icon { width: 40px; height: 40px; transition: transform 0.3s ease; }
.logo-group:hover .logo-icon { transform: rotate(3deg); }
.logo-text { height: 40px; object-fit: contain; }

/* 데스크탑 네비게이션 */
.desktop-nav { display: none; align-items: center; gap: 0; }
.nav-item { display: inline-flex; align-items: center; font-weight: 400; color: var(--text-primary); text-decoration: none; transition: color 0.2s ease; margin-right: 24px; }
.nav-item:hover { color: var(--primary); }
.nav-item.nav-signup { margin-right: 0; }

/* Navigation Badge (업체용) */
.badge-expert { display: inline-block; padding: 4px 8px; margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--color-primary-500); background-color: var(--color-primary-50); border-radius: 6px; vertical-align: middle; line-height: 1.4; }

/* Signup Button (Ghost Style) */
.nav-signup { background-color: var(--color-primary-50); color: var(--color-primary-500); font-weight: 600; border-radius: 6px; padding: 8px 16px; margin-left: -4px; transition: all 0.2s ease; text-decoration: none; display: inline-flex; align-items: center; }
.nav-signup:hover { background-color: var(--color-primary-100); color: var(--color-primary-500); }

/* CTA Button (Primary Solid) */
.cta-button { background-color: var(--color-primary-500); color: #fff; font-weight: 600; border-radius: 6px; padding: 8px 20px; margin-left: 16px; transition: background-color 0.2s ease; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.cta-button:hover { background-color: #0052cc; color: #fff; }

/* 모바일 메뉴 토글 버튼 */
.mobile-menu-toggle { display: block; background: none; border: none; cursor: pointer; padding: 0.5rem; transition: transform 0.3s ease; }
.mobile-menu-toggle:hover { transform: scale(1.1); }
.hamburger-icon { width: 28px; height: 28px; transition: all 0.3s ease; }
.hamburger-icon:hover { opacity: 0.7; }

/* ----------------------------------------
   2. 모바일 메뉴 (Mobile Menu Overlay)
   ---------------------------------------- */
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(2px); display: none; opacity: 0; transition: opacity 0.3s ease; }
.mobile-menu.active { display: block; opacity: 1; }
.mobile-nav { position: absolute; top: 0; right: 0; width: 85%; max-width: 400px; height: 100%; background: #fff; display: flex; flex-direction: column; min-height: 100%; box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1); transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.mobile-menu.active .mobile-nav { transform: translateX(0); }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border-light); }
.mobile-close { background: none; border: none; font-size: 24px; color: var(--text-primary); cursor: pointer; padding: 4px; transition: transform 0.2s; }
.mobile-close:hover { transform: rotate(90deg); }
.mobile-nav-content { padding: 20px 20px 0 20px; display: flex; flex-direction: column; flex: 1; gap: 20px; overflow-y: auto; }

/* Auth Section */
.mobile-auth-section .auth-greeting { font-size: 22px; font-weight: 700; line-height: 1.35; margin-bottom: 20px; color: var(--text-primary); letter-spacing: -0.5px; }
.mobile-auth-section .auth-greeting strong { color: var(--primary); }
.mobile-auth-section .auth-buttons { display: flex; gap: 12px; }
.btn-mobile-auth { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 12px; border-radius: 8px; font-weight: 500; 
  font-size: 16px; text-decoration: none; transition: all 0.2s ease; }
.btn-mobile-auth.btn-gray { background-color: #F3F4F6; color: var(--text-primary); }
.btn-mobile-auth.btn-gray:hover { background-color: #E5E7EB; }
.btn-mobile-auth.btn-primary-soft { background-color: var(--primary-10); color: var(--primary); }
.btn-mobile-auth.btn-primary-soft:hover { background-color: var(--color-primary-100); }
.btn-mobile-auth.btn-outline { border: 1px solid var(--border-semilight); color: var(--text-secondary); background: #fff; }
.btn-mobile-auth.btn-outline:hover { border-color: var(--text-secondary); background: #F9FAFB; }

/* Main CTA */
.btn-mobile-cta { width: 100%; display: inline-flex; align-items: center; justify-content: center; padding: 16px; background-color: var(--primary); 
  color: #fff; border-radius: 12px; font-size: 16px; font-weight: 500; text-decoration: none; gap: 10px; transition: background-color 0.2s ease; }
.btn-mobile-cta:hover { background-color: #0052cc; }

/* Menu List */
.mobile-menu-list { display: flex; flex-direction: column; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.mobile-menu-list .menu-item { display: flex; align-items: center; padding: 18px 0; font-size: 16px; font-weight: 500; color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--border-light); }
.mobile-menu-list .menu-item:last-child { border-bottom: none; }
.mobile-menu-list .menu-item i.pi-info-circle,
.mobile-menu-list .menu-item i.pi-question-circle,
.mobile-menu-list .menu-item i.pi-briefcase { margin-right: 12px; font-size: 20px; color: var(--text-tertiary); width: 24px; text-align: center; }
.mobile-menu-list .menu-item .ml-auto { margin-left: auto; font-size: 14px; color: var(--text-tertiary); }

/* Footer Links */
.mobile-footer-links { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 24px; padding-bottom: 10px; }
.mobile-footer-links .footer-link-item { flex: 1; display: block; padding: 12px 0; font-size: 14px; color: var(--text-secondary); text-decoration: none; text-align: center; transition: color 0.2s ease; }
.mobile-footer-links .footer-link-item:first-child { position: relative; padding-right: 12px; }
.mobile-footer-links .footer-link-item:first-child::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 14px; background-color: var(--border-semilight); }
.mobile-footer-links .footer-link-item:last-child { padding-left: 12px; }
.mobile-footer-links .footer-link-item:hover { color: var(--text-primary); }

/* ----------------------------------------
   3. 푸터 (Footer)
   ---------------------------------------- */
.footer { background: #f6f7f9; padding: 60px 0 80px; margin-top: 0; }
.footer .container { max-width: 1024px; margin: 0 auto; padding: 0 24px; }
.footer-content { display: flex; gap: 60px; align-items: flex-start; }
.footer-right { order: 2; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.footer-left { order: 1; flex: 1; display: flex; flex-direction: column; gap: 20px; padding-left: 40px; }
.footer-section-title { font-size: 20px; font-weight: 700; color: #666666; margin: 0; line-height: 1.4; }

/* 고객센터 섹션 상세 */
.kakao-info { display: flex; align-items: center; gap: 14px; }
.kakao-logo { width: 80px; height: auto; display: block; flex-shrink: 0; }
.kakao-text { display: flex; flex-direction: column; line-height: 1.25; }
.kakao-text-light { font-size: var(--fs-14-18); font-weight: 300; color: #666666; }
.kakao-text-bold { font-size: var(--fs-14-18); font-weight: 700; color: #666666; }
.operating-hours { display: flex; flex-direction: column; gap: 3px; }
.operating-item { font-size: var(--fs-12-16); color: rgba(106, 106, 106, 0.8); line-height: 1.4; }
.operating-label { display: inline-block; margin-right: 4px; }
.operating-value { font-weight: 500; color: rgba(26, 30, 39, 0.8); }

/* 회사 정보 섹션 상세 */
.footer-logo { margin: 0; }
.footer-logo-img { width: 90px; height: auto; display: block; }
.company-info { display: flex; flex-direction: column; gap: var(--space-4-8); margin: 0; }
.company-item { font-size: var(--fs-12-16); color: #1a1e27; line-height: normal; }
.company-label { color: #6a6a6a; margin-right: 4px; }
.company-separator { color: #6a6a6a; margin: 0 4px; }
.company-value { color: #1a1e27; }
.company-value a { color: #1a1e27; text-decoration: none; }
.company-value a:hover { text-decoration: underline; }
.footer-links { display: flex; align-items: center; gap: 11px; font-size: var(--fs-12-16); margin: 0; }
.footer-link { color: #666666; text-decoration: none; transition: color 0.2s ease; }
.footer-link:hover { color: var(--primary); }
.footer-link-separator { color: #6a6a6a; }

/* ----------------------------------------
   4. 반응형 (Responsive)
   ---------------------------------------- */
@media (min-width: 800px) {
    .desktop-nav { display: flex; }
    .mobile-menu-toggle { display: none; }
}

@media (max-width: 768px) {
    .footer { padding: 30px 0 120px; }
    .footer .container { max-width: 100%; padding: 0 24px; }
    .footer-content { flex-direction: column; gap: 32px; }
    .footer-right { margin-left: 0; width: 100%; order: 1; padding-bottom: 32px; border-bottom: 1px solid var(--border-medium); }
    .footer-left { width: 100%; order: 2; gap: 24px; padding-left: 0; }
    .footer-section-title { font-size: 18px; }
    .kakao-info { gap: 12px; }
    .kakao-logo { width: 72px; height: auto; }
    .kakao-text-light, .kakao-text-bold { font-size: 16px; }
    .operating-hours { gap: 2px; padding-left: 4px; }
    .operating-item { font-size: var(--fs-12-16); }
    .company-info { gap: 12px; }
    .company-item { line-height: 1.5; word-break: keep-all; }
    .company-separator { display: inline-block; margin: 0 2px; }
    .company-label { display: inline-block; min-width: 50px; }
    .footer-links { flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
    .footer-link { font-size: 13px; }
    .footer-link-separator { display: none; }
    .footer-link:nth-child(2n)::after { content: ""; display: none; }
}
