/* ====================================================
   style.css — 메인 페이지 + 일반 페이지 스타일
   ==================================================== */

/* ============== 메인 비주얼 (Hero) ============== */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1600 / 540;
    background: #000;
    color: white;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity 1s ease;
    text-decoration: none;
    pointer-events: none;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero-eyebrow {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-cta {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.hero-cta:hover {
    background: #cc8800;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero 인디케이터 */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.hero-indicator {
    width: 30px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.hero-indicator.active {
    background: white;
    width: 50px;
}

/* 재생/일시정지 버튼 */
.hero-playpause {
    width: 28px;
    height: 28px;
    margin-left: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.hero-playpause:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
    transform: scale(1.1);
}

.hero-playpause [hidden] {
    display: none;
}

/* ============== 섹션 공통 ============== */
.section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 40px;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-description {
    font-size: 17px;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ============== 제품 섹션 배경 ============== */
.products-section {
    background-image: url('/images/main/productbg.jpg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.products-section .section-eyebrow,
.products-section .section-title,
.products-section .section-description {
    color: #ffffff;
}

/* ============== 제품 카테고리 그리드 ============== */
/* 배경 이미지의 7개 스트라이프 중 가운데 5개에 카드 정렬 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    width: 71.4286%;  /* 5/7 = 약 71.43% */
    margin: 0 auto;
}

.product-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition);
    text-align: center;
    color: #ffffff;
}

.product-card .product-card-title {
    color: #ffffff;
}

.product-card .product-card-title::before {
    content: '+ ';
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: transparent;
}

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

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

.product-card-body {
    padding: 20px 16px;
}

.product-card-title {
    font-size: 17px;
    color: var(--color-text);
    margin-bottom: 8px;
    font-weight: 600;
}

.product-card-count {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ============== 회사 강점 섹션 ============== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #c2570c, #f59e0b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
}

.feature-icon svg {
    width: 38px;
    height: 38px;
    display: block;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.feature-description {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============== 고객사 로고 ============== */
.clients-marquee {
    overflow: hidden;
    padding: 20px 0;
}

.clients-list {
    display: flex;
    align-items: center;
    gap: 40px 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.clients-list li {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.clients-list li img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

/* ============== 모바일 반응형 ============== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 480px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
        margin-bottom: 16px;
    }

    .feature-icon svg {
        width: 30px;
        height: 30px;
    }

    .feature-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .feature-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .feature-description br {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}
