/**
 * CHANGJOPLAN 서브페이지 - 프리미엄 풀스크린 탭 디자인
 * PANTONE 7693C (#1D5C8B) + PANTONE 465C (#B3995D)
 */

/* ===== 애니메이션 ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes lineExpand { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes blurIn { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }

/* ===== 순차 로딩 애니메이션 ===== */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.anim-fade-left {
    opacity: 0;
    transform: translateX(40px);
    animation: slideLeft 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.anim-fade-right {
    opacity: 0;
    transform: translateX(-40px);
    animation: slideRight 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.anim-scale {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.anim-blur {
    opacity: 0;
    filter: blur(10px);
    animation: blurIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 딜레이 클래스 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }
.delay-10 { animation-delay: 1.0s; }

/* 순차 자식 요소 애니메이션 */
.stagger-children > * {
    opacity: 0;
    transform: translateY(15px);
    animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.5s; }

/* 헤더 네비게이션 전용 (가로 방향) */
.nav.stagger-children > * {
    transform: translateY(-10px);
}

/* ===== 기본 풀스크린 ===== */
html, body { height: 100%; overflow: hidden; }
main { height: calc(100vh - 80px); overflow: hidden; }

.fullscreen-page {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    background: #fff;
}

/* ===== 좌측 히어로 영역 ===== */
.hero-panel {
    background: linear-gradient(160deg, #1D5C8B 0%, #12405f 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(179, 153, 93, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.hero-panel::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B3995D, transparent);
}

.hero-title {
    font-family: 'Century Gothic', sans-serif;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 12px;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
}

.hero-title span {
    color: #B3995D;
}

.hero-subtitle {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-line {
    width: 80px;
    height: 2px;
    background: #B3995D;
    margin: 30px 0;
    transform-origin: left;
    animation: lineExpand 0.8s ease-out 0.4s both;
}

.hero-en {
    font-family: 'Century Gothic', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    animation: slideUp 0.8s ease-out 0.6s both;
}

/* ===== 우측 컨텐츠 영역 ===== */
.content-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fafafa;
}

/* ===== 탭 네비게이션 ===== */
.tab-nav {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0 40px;
}

.tab-btn {
    padding: 25px 35px;
    font-family: 'Century Gothic', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: #B3995D;
    transition: all 0.3s;
}

.tab-btn:hover { color: #1D5C8B; }
.tab-btn.active { color: #1D5C8B; }
.tab-btn.active::after { left: 0; right: 0; }

/* ===== 탭 컨텐츠 ===== */
.tab-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.tab-pane {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 50px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.tab-pane.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.tab-pane::-webkit-scrollbar { width: 4px; }
.tab-pane::-webkit-scrollbar-track { background: transparent; }
.tab-pane::-webkit-scrollbar-thumb { background: #B3995D; border-radius: 2px; }

/* ===== 섹션 스타일 ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.section-header h3 {
    font-family: 'Century Gothic', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #B3995D;
    white-space: nowrap;
}

.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #e0e0e0, transparent);
}

/* ===== 5P 그리드 ===== */
.five-p-showcase {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    background: #e5e5e5;
    margin-bottom: 40px;
}

.p-card {
    background: #fff;
    padding: 35px 20px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
}

.p-card:hover {
    background: #1D5C8B;
}

.p-card:hover .p-letter,
.p-card:hover .p-word,
.p-card:hover .p-desc { color: #fff; }

.p-card:hover .p-letter { color: #B3995D; }

.p-letter {
    font-family: 'Century Gothic', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #1D5C8B;
    line-height: 1;
    margin-bottom: 12px;
    transition: color 0.4s;
}

.p-word {
    font-family: 'Century Gothic', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #B3995D;
    margin-bottom: 15px;
    transition: color 0.4s;
}

.p-desc {
    font-size: 11px;
    color: #888;
    line-height: 1.6;
    transition: color 0.4s;
}

/* ===== 컬러 블록 ===== */
.color-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.color-card {
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.color-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 100%; bottom: 0;
    background: rgba(255,255,255,0.1);
    transition: all 0.5s;
}

.color-card:hover::before { left: 100%; right: -100%; }

.color-card.blue { background: #1D5C8B; }
.color-card.gold { background: #B3995D; }

.color-card .name {
    font-family: 'Century Gothic', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 8px;
}

.color-card .code {
    font-family: 'Century Gothic', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
}

/* ===== 정보 그리드 ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    background: #fff;
    padding: 25px 30px;
    border-left: 3px solid #B3995D;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.info-card .label {
    font-family: 'Century Gothic', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #1D5C8B;
    margin-bottom: 8px;
}

.info-card .value {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* ===== 비즈니스 그리드 ===== */
.business-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.business-block {
    background: #fff;
    padding: 35px;
}

.business-block .category {
    font-family: 'Century Gothic', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #B3995D;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1D5C8B;
}

.business-item {
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.business-item:last-child { border-bottom: none; }
.business-item:hover { padding-left: 15px; }

.business-item .name {
    font-family: 'Century Gothic', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #1D5C8B;
    margin-bottom: 8px;
}

.business-item .desc {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
}

/* ===== 조직도 ===== */
.org-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 30px 0;
}

.org-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.org-box {
    padding: 20px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: all 0.4s;
    min-width: 110px;
}

.org-box:hover {
    border-color: #B3995D;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(179, 153, 93, 0.15);
}

.org-box.ceo {
    background: linear-gradient(135deg, #1D5C8B, #12405f);
    border: none;
    padding: 25px 45px;
}

.org-box.ceo .title,
.org-box.ceo .name { color: #fff; }

.org-box .title {
    font-family: 'Century Gothic', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    color: #B3995D;
    margin-bottom: 5px;
}

.org-box .name {
    font-family: 'Century Gothic', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #333;
}

/* ===== 파트너 그리드 ===== */
.partner-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.partner-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1D5C8B, #B3995D);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.partner-card:hover::before { transform: scaleX(1); }

.partner-card .name {
    font-family: 'Century Gothic', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1D5C8B;
    margin-bottom: 12px;
}

.partner-card .brands {
    font-size: 11px;
    color: #999;
    line-height: 1.7;
}

/* ===== 연락처 레이아웃 ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    height: 100%;
    align-items: center;
    padding: 50px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child { border-bottom: none; padding-bottom: 0; }

.contact-item .label {
    font-family: 'Century Gothic', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #B3995D;
    margin-bottom: 8px;
}

.contact-item .value {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.contact-form-box {
    background: #fff;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-family: 'Century Gothic', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 10px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1D5C8B;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 92, 139, 0.1);
}

.form-textarea { height: 100px; resize: none; }

.btn-submit {
    width: 100%;
    padding: 18px;
    font-family: 'Century Gothic', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #fff;
    background: linear-gradient(135deg, #1D5C8B, #12405f);
    border: none;
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(29, 92, 139, 0.3);
}

/* ===== 단일 컬럼 레이아웃 (PEOPLE, PASSION 등) ===== */
.single-column {
    grid-template-columns: 1fr 2.5fr;
}

/* ===== 반응형 ===== */
@media (max-width: 1400px) {
    .five-p-showcase { grid-template-columns: repeat(3, 1fr); }
    .partner-showcase { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1200px) {
    .fullscreen-page { grid-template-columns: 1fr; }
    .hero-panel { padding: 50px; }
    .hero-title { font-size: 42px; }
    .content-panel { height: auto; min-height: 60vh; }
    main { overflow-y: auto; height: auto; min-height: calc(100vh - 80px); }
    html, body { overflow-y: auto; }
}

@media (max-width: 992px) {
    .hero-panel { padding: 40px; }
    .hero-title { font-size: 36px; letter-spacing: 6px; }
    .five-p-showcase { grid-template-columns: repeat(2, 1fr); }
    .info-cards { grid-template-columns: 1fr; }
    .business-showcase { grid-template-columns: 1fr; }
    .partner-showcase { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .org-row { flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .hero-panel { padding: 30px; }
    .hero-title { font-size: 28px; letter-spacing: 4px; }
    .tab-btn { padding: 15px 20px; font-size: 10px; }
    .tab-pane { padding: 30px; }
    .five-p-showcase { grid-template-columns: 1fr; }
    .color-showcase { grid-template-columns: 1fr; }
    .partner-showcase { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
