@charset "UTF-8";

/* ===== MAIN PAGE STYLES ===== */

/* Popup Section */
.custom-popup {
	position: fixed;
	top: 200px;
	right: 210px;
	width: 520px;
	/* max-width: 95vw; */
	heigth: 355px;
	border: 3px solid var(--primary-color);
	border-radius: 8px;
	overflow: hidden;
	z-index: 9999;
	background: white;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.popup-img-wrap {
	position: relative;
	display: block;
}

.popup-img {
	width: 100%;
	display: block;
}

.popup-title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	font-size: 1rem;
	padding: 0.5rem 1rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-sizing: border-box;
}

.popup-controls {
	background: #222;
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
	align-content: center;
}

.popup-controls input[type="checkbox"] {
	/* accent-color: #fff; */
	width: 1rem;
	height: 1rem;
}

.popup-controls .popup-check {
	display: flex;
	align-items: center;
	font-size: 1rem;
	margin-left: 5px;
}

.popup-close-btn {
	background: none;
	border: none;
	color: white;
	font-size: 1.2rem;
	font-weight: bold;
	cursor: pointer;
}

@media (max-width: 768px) {
    .custom-popup {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 100px); /* navbar 높이 제외 */
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    padding: 60px 0;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    color: #f8f9fa;
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: bold;
    line-height: 1.3;
    color: #f8f9fa;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    margin-bottom: 2.5rem;
}

/* Button Styles */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 3.8rem;
    font-size: 1.25rem;
    font-weight: 800;
    /* padding: 0 2rem; */
    padding: 0 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

@media (hover: hover) {
	.btn-hover-effect:hover {
	    transform: translateY(-2px);
	    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
	    text-decoration: none;
	}
}

.bg-gradient-main {
    background: linear-gradient(135deg, var(--primary-color), var(--main-color2));
}

.bg-secondary {
    background-color: var(--secondary-color);
}

/* Section Styles */
.section-padding-lg {
    padding: 8rem 0;
}

.section-title {
    font-size: clamp(1.25rem, 2.5vw, 2.0rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-color);
}

.section-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* Info Section */
.info-section {
    background-color: #F5F1EB;
}

/* Core Values Section */
.core-values-section {
    background-color: #E9DDCC;
    padding: 150px 0 8rem;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
	.hover-lift:hover {
	    transform: translateY(-8px);
	    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
	}
}

.value-card {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 1rem;
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.value-icon {
    width: 160px;
    height: 160px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

.value-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.value-description {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--subtext-color);
    word-break: keep-all;
    margin: 0;
}

.values-bottom-text {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0;
}

/* Services Section */
.services-section {
    background-color: #EFF2F5;
    padding: 150px 0 8rem;
}

.service-card {
    position: relative;
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 540px;
    aspect-ratio: 9/10;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Service Card Toggle Styles */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card .service-category,
.service-card .service-title {
    font-weight: 600;
    color: #fefefe;
}

.service-card.active .service-category,
.service-card.active .service-title  {
    font-size: 0;
}

.service-icon {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 아이콘 전환 애니메이션 */
.toggle-icon .close-icon {
    display: none;
}

.service-card.active .toggle-icon {
    top: 1.5rem;
    right: 1.5rem;
    bottom: auto;
    /*background-color: rgba(0,0,0,0.6);*/
    background-color: rgba(255,255,255,0.4);
    transform: rotate(180deg);
}

.service-card.active .toggle-icon .plus-icon {
    display: none;
}

.service-card.active .toggle-icon .close-icon {
    display: block;
    color: #fff;
}

/* 설명 오버레이 */
.service-desc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0,0,0,0.85);*/
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 4;
    border-radius: 1rem;
}

.service-card.active .service-desc-overlay {
    opacity: 1;
    visibility: visible;
}

/* 설명 헤더 스타일 */
.desc-header {
    margin-bottom: 1.5rem;
}

.desc-category {
    font-size: 1rem;
    font-weight: 600;
    color: var(--main-color2);
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.1s;
}

.desc-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.2s;
}

/* 설명 내용 스타일 */
.desc-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    margin-top: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.3s;
}

/* 활성화된 상태의 애니메이션 */
.service-card.active .desc-category,
.service-card.active .desc-title,
.service-card.active .desc-content {
    opacity: 1;
    transform: translateY(0);
}

/* Consultation Section */
.consultation-section {
    background-color: #FEFDFA;
    padding: 150px 0 8rem;
}

.consultation-card {
    background: white;
    border: 2px solid #405099;
    border-radius: 1rem;
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.consultation-icon {
    width: 160px;
    height: 160px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

.consultation-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: var(--text-color);
}

.mascot-btn {
    position: relative;
    overflow: visible !important;
}

.mascot-btn .material-symbols-rounded {
    transition: all 0.3s ease;
}

/* 
.mascot-btn .material-symbols-rounded {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.mascot-btn:hover .material-symbols-rounded {
    opacity: 1;
    transform: translateX(0);
} */

.mascot-img {
    position: absolute;
    width: 130px;
    left: 20px;
    transform: translateX(-100%) translateY(-50%);
    pointer-events: none;
    top: 50%;
    transition: none; /* 마스코트는 움직이지 않음 */
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 40px;
        /* min-height: 80vh; */
    }
    
    .core-values-section,
    .services-section,
    .consultation-section {
        padding: 80px 0 4rem;
    }
    
    .value-card, 
    .consultation-card {
        flex-direction: row;
        text-align: left;
        padding: 2rem 1.5rem;
    }
    
    .value-icon, 
    .consultation-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 0;
        margin-right: 1.5rem;
        flex-shrink: 0;
    }
    
    .value-title,
    .consultation-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .value-description {
        font-size: 0.95rem;
        margin: 0;
    }
    
    .service-card {
        aspect-ratio: auto;
        min-height: 300px;
        max-width: 100%;
    }
    
    .mascot-img {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 992px) {
    .value-card, 
    .consultation-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 2.5rem 2rem;
    }
    
    .value-icon, 
    .consultation-icon {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
    
    .value-title,
    .consultation-title {
        font-size: 1.5rem;
    }
    
    .value-description {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .value-card, 
    .consultation-card {
        flex-direction: column;
        text-align: center;
    }
    
    .value-icon, 
    .consultation-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

/* 애니메이션 기본 상태 */
.animate-fade-right, .animate-fade-up {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1.2s cubic-bezier(.4,0,.2,1), transform 1.2s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}
.animate-fade-right {
    transform: translateX(-40px) scale(0.92);
}
.animate-fade-up {
    transform: translateY(40px) scale(0.92);
}
.animated {
    opacity: 1 !important;
    transform: none !important;
}