/* pages/index-hero.css — Index — hero slider · notice */
/* Hero slider — fluid copy & CTA (viewport 연동) */
#hero-slider {
    --hero-copy-label: clamp(0.6875rem, 0.35vw + 0.6rem, 0.9375rem);
    --hero-copy-title: clamp(2rem, 4.8vw + 0.5rem, 5rem);
    --hero-copy-body: clamp(0.875rem, 0.85vw + 0.65rem, 1.25rem);
    --hero-copy-gap: clamp(1rem, 1.8vw + 0.35rem, 1.5rem);
    --hero-stack-gap: clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
    --hero-cta-font: clamp(0.6875rem, 0.4vw + 0.52rem, 0.875rem);
    --hero-cta-py: clamp(0.75rem, 1.1vw + 0.4rem, 1.25rem);
    --hero-cta-px: clamp(1.25rem, 2.2vw + 0.45rem, 2.5rem);
    --hero-cta-gap: clamp(0.5rem, 0.9vw + 0.2rem, 1rem);
    --hero-cta-icon: clamp(1rem, 1vw + 0.6rem, 1.25rem);
}

#hero-slider .hero-slide-stack {
    gap: var(--hero-stack-gap);
}

#hero-slider .hero-slide-copy {
    gap: var(--hero-copy-gap);
}

#hero-slider .hero-slide-copy .hero-slide-label {
    display: inline-block;
    font-size: var(--hero-copy-label);
    font-weight: 700;
    letter-spacing: clamp(0.14em, 0.08em + 0.12vw, 0.2em);
    text-transform: uppercase;
}

#hero-slider .hero-slide-copy .type-hero {
    font-size: var(--hero-copy-title);
    line-height: 1.1;
}

#hero-slider .hero-slide-copy .type-body-lg {
    font-size: var(--hero-copy-body);
    line-height: 1.65;
}

#hero-slider .hero-cta {
    background-color: var(--white);
    color: var(--gray-900);
    border: none;
    border-radius: var(--btn-radius-pill);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: var(--btn-shadow-lg);
    font-size: var(--hero-cta-font);
    padding: var(--hero-cta-py) var(--hero-cta-px);
    gap: var(--hero-cta-gap);
    line-height: 1;
    align-items: center;
    transition: transform var(--btn-fill-duration), box-shadow var(--btn-fill-duration);
}

#hero-slider .hero-cta::before {
    inset: 0;
}

#hero-slider .hero-cta::after {
    inset: 0;
    border-color: var(--btn-fill-border, var(--brand-gold));
}

#hero-slider .hero-cta:hover,
#hero-slider .hero-cta:focus-visible {
    transform: translateX(0.375rem);
    border: none;
}

#hero-slider .hero-cta__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--hero-cta-icon);
    height: var(--hero-cta-icon);
}

#hero-slider .hero-cta__icon .hero-cta__hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#hero-slider .hero-cta__icon svg {
    display: block;
    width: var(--hero-cta-icon);
    height: var(--hero-cta-icon);
    flex-shrink: 0;
}

/* Hero slider — layout */
@media (max-width: 1023px) {
    #hero-slider .hero-slide-inner {
        justify-content: flex-start;
    }

    #hero-slider .hero-slide-stack {
        width: 100%;
        max-width: 34rem;
    }
}

@media (min-width: 1024px) {
    #hero-slider .hero-slide-inner {
        justify-content: flex-end;
    }

    #hero-slider .hero-slide-stack {
        width: 50%;
    }
}

/* 공지사항 목록 */
.notice-cs-section__title {
    font-size: clamp(1.375rem, 3vw + 0.75rem, 1.875rem);
}

.notice-cs-section .notice-row__title {
    font-size: clamp(0.9375rem, 1.5vw + 0.75rem, 1.125rem);
}

.notice-row__inner {
    transition: transform 0.3s ease;
}

.notice-row:hover .notice-row__inner {
    transform: translateX(0.5rem);
}

@media (min-width: 768px) {
    .notice-cs-section__title {
        font-size: 1.875rem;
    }

    .notice-cs-section .notice-row__title {
        font-size: 1.125rem;
    }
}

@media (max-width: 767px) {
    .notice-cs-section .product-badge {
        padding: 0.1875rem 0.4375rem;
    }
}

@media (max-width: 360px) {
    .notice-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .notice-row:hover .notice-row__inner {
        transform: none !important;
    }

    .notice-row__inner {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .notice-row__title {
        font-size: 1rem !important;
        white-space: normal !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* 히어로 슬라이더 */
.slide-item {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.hero-slider-dot {
    position: relative;
    display: block;
    width: 28px;
    height: 1.5px;
    padding: 0;
    border: none;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    overflow: hidden;
    opacity: 0.45;
    transition: opacity 0.4s ease, width 0.3s ease;
}

.hero-slider-dot__fill {
    position: absolute;
    inset: 0;
    background-color: var(--white);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}

.hero-slider-dot.active {
    opacity: 1;
}

.hero-slider-dot.active .hero-slider-dot__fill {
    animation: hero-slider-dot-progress var(--hero-slide-duration, 5s) linear forwards;
}

@keyframes hero-slider-dot-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider-dot.active .hero-slider-dot__fill {
        animation: none;
        transform: scaleX(1);
    }
}

@media (min-width: 768px) {
    .hero-slider-dot {
        width: 40px;
        height: 2px;
    }
}

.hero-slider-controls #slider-dots {
    gap: 0.375rem;
}

@media (min-width: 768px) {
    .hero-slider-controls #slider-dots {
        gap: 0.5rem;
    }
}

.hero-slider-pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    font-size: clamp(0.6875rem, 2vw, 0.875rem);
    letter-spacing: 0.05em;
    line-height: 1;
}

@media (min-width: 768px) {
    .hero-slider-pagination {
        gap: 0.35rem;
    }
}

.hero-slider-pagination-current {
    min-width: 1rem;
    font-weight: 700;
    color: var(--white);
}

@media (min-width: 768px) {
    .hero-slider-pagination-current {
        min-width: 1.25rem;
    }
}

.hero-slider-pagination-sep,
.hero-slider-pagination-total {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
}

.hero-top-gradient {
    height: 10rem;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.34) 0%,
        rgba(0, 0, 0, 0.2) 22%,
        rgba(0, 0, 0, 0.1) 45%,
        rgba(0, 0, 0, 0.04) 68%,
        transparent 88%
    );
}

@media (min-width: 768px) {
    .hero-top-gradient {
        height: 11.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-top-gradient {
        height: 12.5rem;
    }
}
