/**
 * 주식회사 옌 (YEN Corp) 웹사이트
 * 홈페이지 전용 스타일시트
 * 
 * @version 1.0.0
 * @author YEN Corp Development Team
 */

/* ===== 섹션 헤더 공통 스타일 ===== */
.section-header, .section-title, h2.section-title {
    text-align: center;
    
    margin-left: auto;
    margin-right: auto;
    
}

.section-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

/* ===== 히어로 섹션 ===== */
.hero-section {
    position: relative;
    height: 100vh; /* 화면 높이 100%로 설정 */
    min-height: 600px;
    max-height: none; /* 최대 높이 제한 제거 */
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(133, 78, 122, 0.7), rgba(119, 49, 61, 0.7));
    z-index: 1;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ===== 브랜드 접근법 섹션 ===== */
.approach-section {
    padding: 100px 0;
}

.approach-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
}

.approach-step {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 20px;
    text-align: center;
    position: relative;
}

.approach-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 70px;
    right: 0;
    width: 1px;
    height: 100px;
    background-color: #e9e0ea;
}

.approach-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #854E7A;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.approach-step-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #854E7A;
}

.approach-step-text {
    color: #666666;
}

/* ===== 서비스 섹션 ===== */
.services-section {
    padding: 100px 0;
    background-color: #f9fafc;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.service-card {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 15px;
}

.service-card-inner {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card-img {
    height: 200px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card-inner:hover .service-card-img img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 25px;
    text-align: center;
}

.service-card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #854E7A;
}

.service-card-text {
    color: #666666;
    margin-bottom: 20px;
}

.service-card-link {
    display: inline-block;
    color: #854E7A;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-card-link:hover {
    color: #F9BF53;
}

/* ===== 제작파트너 섹션 ===== */
.partners-section {
    padding: 5rem 0;
    background-color: #e6f0fa;
    background-image: linear-gradient(to bottom, #e6f0fa, #f0f7ff);
    border-top: 1px solid #d9e9f7;
    border-bottom: 1px solid #d9e9f7;
}

.partnership-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 0 auto;
    max-width: 1000px;
}

.partnership-info {
    flex: 1;
    margin: 0 auto;
}

.partnership-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #854E7A;
}

.partnership-info p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

.partnership-logo {
    flex: 1;
    border-radius: 8px;
    min-height: 200px;
    position: relative;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
}

.partner-card {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 20px;
    margin-bottom: 40px;
    text-align: center;
}

.partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-card:hover .partner-logo img {
    opacity: 1;
}

.partner-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #854E7A;
}

.partner-text {
    color: #666666;
}

/* ===== 고객사 섹션 ===== */
.clients-section {
    padding: 5rem 0;
    background-color: #ffffff;
    position: relative;
}

.clients-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.client-logo {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 20px;
    text-align: center;
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.client-logo:hover img {
    opacity: 1;
}

.testimonial-slider {
    margin-bottom: 3rem;
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

.testimonials {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #666666;
    margin-bottom: 20px;
    position: relative;
    line-height: 1.6;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 2.5rem;
    color: #F9BF53;
}

.testimonial-author {
    font-weight: 700;
    color: #854E7A;
}

.testimonial-company {
    color: #666666;
    font-size: 0.9rem;
}

/* ===== 인사이트 섹션 ===== */
.insights-section {
    padding: 100px 0;
    position: relative;
}

.insights-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.insight-card {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 15px;
}

.insight-card-inner {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.insight-card-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.insight-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.insight-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.insight-card-inner:hover .insight-card-img img {
    transform: scale(1.05);
}

.insight-card-img .card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #854E7A;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.insight-card-img .card-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #854E7A;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.insight-card-img .card-date span {
    font-size: 0.7rem;
    font-weight: 400;
}

.insight-card-content {
    padding: 25px;
}

.insight-card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333333;
}

.insight-card-title a {
    color: #333333;
    transition: color 0.3s ease;
}

.insight-card-title a:hover {
    color: #854E7A;
}

.insight-card-text {
    color: #666666;
    margin-bottom: 20px;
}

.insight-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999999;
    font-size: 0.9rem;
}

.insight-card-meta i {
    color: #F9BF53;
    margin-right: 5px;
}

.insights-cta {
    text-align: center;
    margin-top: 50px;
}

/* ===== 문의하기 CTA 섹션 ===== */
.contact-cta-section {
    padding: 80px 0;
    background-color: #854E7A;
    color: white;
    text-align: center;
}

.contact-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.contact-cta-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-cta-primary {
    background-color: #F9BF53;
    color: #333333;
}

.btn-cta-primary:hover {
    background-color: #F5D823;
}

.btn-cta-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-cta-secondary:hover {
    background-color: white;
    color: #854E7A;
}

/* ===== 반응형 스타일 ===== */
@media (max-width: 1199px) {
    .service-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .insight-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .client-logo {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .partnership-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .partnership-info,
    .partnership-logo {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 100vh;
        min-height: 500px;
        padding: 100px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .approach-step {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .approach-step:not(:last-child)::after {
        display: none;
    }
    
    .service-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .partner-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .client-logo {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .insight-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .contact-cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .client-logo {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
