/*
기본 설정
- 헤더
- 푸터
*/

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* 전역 box-sizing 리셋: width:100% + padding 조합에서 가로 넘침 방지 */
/**, *::before, *::after {*/
/*    box-sizing: border-box;*/
/*}*/

/* 푸터 아래 흰색 공간 방지: html 배경을 푸터 색상과 동일하게 */
html {
    background-color: #111827;
}

:root {
    font-size: 16px;

    --primary-color: #ea580c; /* 오렌지 */
    --primary-hover: #c2410c;
    --text-dark: #111827;
    --text-gray: #4b5563;
    --bg-light: #f9fafb;
}

body {
    font-family: Pretendard, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh; /* 모바일 브라우저 주소창 고려한 동적 뷰포트 높이 */
    justify-content: space-between;
    overscroll-behavior-y: none; /* iOS 고무줄 스크롤로 인한 푸터 아래 흰 공간 방지 */
}

/* 헤더 스타일 */
.header-inner {
    width: 100%;
    height: 100px;
    max-width: 1280px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    box-sizing: border-box;
    font-size: 24px;
    font-weight: 500;
}
.logo {
    height: 100%;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    object-fit: contain;
}

.logo img { height: 64px; }

.nav-menu {
    display: flex;
    gap: 50px;
}
.mobile-menu-icon { display: none; color: white;  }
.mobile-menu-icon svg { width: 30px; height: 30px }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999;
}

.mobile-menu-header {
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-header .close-icon { cursor: pointer; }
.mobile-menu-header .close-icon svg { width: 30px; height: 30px }

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0 20px;
    margin-top: 30px;
}

.mobile-nav-link {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.active, .nav-link-white:hover, .nav-link-white:active{
    color: var(--primary-color);
}

.nav-link-white {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.main-wrapper {
    position: relative;
    flex-grow: 1;
    width: 100%;
    max-width: 1280px;
    margin: 50px auto;
    padding: 0 50px;
    box-sizing: border-box;
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

#kakao-float-btn {
    position: fixed;
    bottom: 5%;
    right: 3%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #FEE500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 990;
    text-decoration: none;
}

/* 푸터 스타일 */
.footer { background: #111827; color: #9ca3af; padding: 2.5rem 0 1.5rem; margin-top: auto; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.footer-top {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.footer-logo-col {
    flex-shrink: 0;
}
.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}
.footer-logo-underline {
    border-bottom: 3px solid #EA580C;
    padding-bottom: 2px;
}
.footer-info-col {
    font-size: 0.8rem;
    line-height: 1.9;
    color: #9ca3af;
}
.footer-divider {
    border-top: 1px solid #374151;
    margin-bottom: 1rem;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    font-size: 0.78rem;
    color: #9ca3af;
    text-decoration: none;
}
.footer-links a:hover {
    color: #fff;
}
.footer-copy {
    font-size: 0.75rem;
    color: #6b7280;
}

/* 헤더 모바일 반응형 */
@media (max-width: 768px) {
    :root { font-size: 14px; }

    .header-inner { height: 64px; font-size: 18px; font-weight: 500; padding: 0 40px; }

    .logo img { height: 58px; }

    .nav-menu { gap: 30px; }

    .main-wrapper { margin: 3px auto; padding: 25px; }
    .main-title { font-size: 20px; }

    .footer { padding: 2rem 0 1.5rem; }
    .footer-top { flex-direction: column; gap: 1.2rem;}
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .footer-info-col { line-height: 1.5; }

    #kakao-float-btn { width: 50px;height: 50px; }
}

@media (max-width: 480px) {
    .header-inner { height: 56px; padding: 0 10px; }

    .logo img { height: 48px; }

    .nav-menu { display: none; }
    .mobile-menu-icon { display: block; }

    .main-wrapper { max-width: 480px; margin: 40px auto; padding: 10px 20px; }

    .footer-inner { padding: 0 20px; }
}

