@charset "UTF-8";

/* ==========================================================================
   화천(HWACHEON) 메인 페이지 - 전역 비례 유지 & 하이엔드 정밀 반응형 아키텍처
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: clip;
    background-color: #ffffff !important;
    color: #111111;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.main-container {
    width: 100%;
    overflow-x: hidden;
    padding-top: 4.5rem;
    box-sizing: border-box;
}

.max-layout-width {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.max-layout-width-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.main-section-padding {
    padding: 6.5rem 0;
}

.bg-light {
    background-color: #fafafa;
}

.sub-title {
    font-family: 'Jost', sans-serif !important;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: #888888;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.8rem;
}

.section-header-center {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header-center h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #111111;
    margin: 0;
    letter-spacing: -0.02em;
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 1. HERO BANNER
   ────────────────────────────────────────────────────────────────────────── */
.section-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 4.5rem);
    min-height: 560px;
    background-color: #111111;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateZ(0);
}

.hero-overlay-content {
    position: absolute;
    bottom: 12%;
    left: 8%;
    right: 8%;
    z-index: 10;
    color: #ffffff;
    pointer-events: none;
}

.hero-badge {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    opacity: 0.9;
    display: block;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-slogan {
    font-size: clamp(1.4rem, 3.2vw, 2.5rem);
    font-weight: 400;
    line-height: 1.45;
    margin: 0;
    letter-spacing: -0.03em;
    word-break: keep-all;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.hero-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ffffff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 4px;
    background: #ffffff;
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 2. 화천 시그니처 라인업 (3:4 보틀 세로 정비율 적용)
   ────────────────────────────────────────────────────────────────────────── */
.shop-swiper {
    width: 100%;
    padding-bottom: 2rem;
    overflow: hidden;
}

.product-item-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.prod-thumb-link {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f4f4f4;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 1.2rem;
    border-radius: 6px;
    position: relative;
}

.prod-img-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    overflow: hidden;
}

.prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-item-card:hover .prod-img-box img {
    transform: scale(1.06);
}

.prod-info-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.prod-text {
    flex: 1;
    min-width: 0;
}

.prod-name {
    font-size: 1.12rem;
    font-weight: 600;
    margin: 0 0 0.35rem 0;
    line-height: 1.35;
}

.prod-name a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.prod-name a:hover {
    color: #666666;
}

.prod-sub {
    font-size: 0.88rem;
    color: #777777;
    margin: 0;
    line-height: 1.45;
    word-break: keep-all;
}

.prod-price-badge span {
    display: inline-block;
    background: #111111;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 2px;
    white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 3. 경쟁력 (3열 카드 비례 최적화)
   ────────────────────────────────────────────────────────────────────────── */
.section-brand-value-full {
    width: 100%;
    padding: 0;
    margin: 0;
}

.value-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    min-height: 540px;
}

.value-full-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    min-height: 460px;
    overflow: hidden;
}

.value-full-card .bg-img-holder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: brightness(0.72);
}

.value-full-card:hover .bg-img-holder {
    transform: scale(1.06);
    filter: brightness(0.6);
}

.card-overlay-text {
    position: absolute;
    bottom: 12%;
    left: 10%;
    right: 10%;
    z-index: 10;
    color: #ffffff;
    pointer-events: none;
}

.card-overlay-text .value-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.8rem;
}

.card-overlay-text .value-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.8rem 0;
    letter-spacing: -0.01em;
}

.card-overlay-text .value-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 4. BRAND STORY
   ────────────────────────────────────────────────────────────────────────── */
.story-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.story-left-text .main-head {
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    font-weight: 500;
    line-height: 1.25;
    color: #111111;
    margin: 0 0 2rem 0;
    letter-spacing: -0.01em;
}

.story-desc {
    font-size: 0.98rem;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    word-break: keep-all;
}

.btn-more-link {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #111111;
    text-decoration: none;
    border-bottom: 1.5px solid #111111;
    padding-bottom: 0.3rem;
    transition: opacity 0.25s ease;
}

.btn-more-link:hover {
    opacity: 0.5;
}

.story-right-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.story-right-images .img-frame {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
}

.story-right-images img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-right-images .img-frame:hover img {
    transform: scale(1.05);
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 5. ARCHIVING GALLERY
   ────────────────────────────────────────────────────────────────────────── */
.main-archiving-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.main-archive-item {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
}

.archive-thumb-holder {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
    border-radius: 8px;
}

.archive-thumb-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-archive-item:hover .archive-thumb-holder img {
    transform: scale(1.08);
}

.thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0.1) 60%);
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.main-archive-item:hover .thumb-overlay {
    opacity: 1;
}

.overlay-tag {
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.75);
    display: block;
    margin-bottom: 0.4rem;
}

.overlay-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
}

.archive-bottom-btn-box {
    text-align: center;
}

.btn-archive-more {
    display: inline-block;
    padding: 0.9rem 2.8rem;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: background 0.25s ease;
}

.btn-archive-more:hover {
    background: #333333;
}

/* ──────────────────────────────────────────────────────────────────────────
   SECTION 6. 아카이빙 상세 모달 (archiving.css와 완벽 일치 규격)
   ────────────────────────────────────────────────────────────────────────── */
.archive-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
    box-sizing: border-box;
}

.archive-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.archive-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.archive-modal-overlay.is-open .archive-modal-container {
    transform: translateY(0);
}

.btn-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    cursor: pointer;
    z-index: 20;
    line-height: 1;
    transition: color 0.2s ease;
}

.btn-modal-close:hover {
    color: #dddddd;
}

.archive-modal-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 520px;
}

.modal-img-holder {
    width: 100%;
    height: 100%;
    background: #111111;
}

.modal-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info-holder {
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.modal-category {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #888888;
    display: block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #111111;
    margin: 0 0 1.2rem 0;
    line-height: 1.3;
}

.modal-divider {
    width: 40px;
    height: 2px;
    background: #111111;
    margin-bottom: 1.8rem;
}

.modal-desc {
    font-size: 0.98rem;
    color: #444444;
    line-height: 1.85;
    margin: 0;
    word-break: keep-all;
    white-space: pre-line;
}

/* ──────────────────────────────────────────────────────────────────────────
   스크롤 감지 모션 애니메이션
   ────────────────────────────────────────────────────────────────────────── */
.reveal-element {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   화천(HWACHEON) 메인 반응형 아키텍처 (정밀 5단계 규격)
   ========================================================================== */

/* ── STAGE 1. 초고해상도 노트북 및 일반 데스크톱 (Max 1440px) ── */
@media (max-width: 1440px) {
    .max-layout-width,
    .max-layout-width-wide {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    .main-section-padding {
        padding: 5.5rem 0;
    }
    .value-full-card {
        min-height: 420px;
    }
    .story-grid {
        gap: 4rem;
    }
}

/* ── STAGE 2. 일반 랩톱 및 중형 모니터 (Max 1200px) ── */
@media (max-width: 1200px) {
    .max-layout-width,
    .max-layout-width-wide {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    .section-header-center {
        margin-bottom: 2.8rem;
    }
    .section-header-center h2 {
        font-size: 1.95rem;
    }
    .hero-overlay-content {
        bottom: 10%;
        left: 6%;
        right: 6%;
    }

    .value-full-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .value-full-card {
        aspect-ratio: 16 / 9;
        min-height: 320px;
    }
    .card-overlay-text {
        bottom: 10%;
        left: 6%;
        right: 6%;
    }

    .story-grid {
        gap: 3rem;
    }

    .main-archiving-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .archive-modal-container {
        max-width: 880px;
    }
}

/* ── STAGE 3. 태블릿 디바이스 (Max 1024px) ── */
@media (max-width: 1024px) {
    .main-container {
        padding-top: 4.2rem;
    }
    .main-section-padding {
        padding: 4.8rem 0;
    }
    .max-layout-width,
    .max-layout-width-wide {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .section-hero {
        height: 65vh;
        min-height: 460px;
    }

    .prod-thumb-link {
        aspect-ratio: 3 / 4;
    }

    .value-full-card {
        aspect-ratio: 16 / 9;
        min-height: 280px;
    }
    .card-overlay-text .value-title {
        font-size: 1.45rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .story-left-text .main-head {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }
    .story-desc {
        margin-bottom: 1.8rem;
    }
    .story-right-images .img-frame {
        aspect-ratio: 4 / 5;
    }

    /* 모달 상하 분기 */
    .archive-modal-container {
        max-width: 680px;
        max-height: 90vh;
        max-height: 90dvh;
        overflow-y: auto;
    }
    .archive-modal-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .modal-img-holder {
        height: 300px;
    }
    .modal-info-holder {
        padding: 2.2rem 2rem;
    }
    .modal-title {
        font-size: 1.5rem;
    }
}

/* ── STAGE 4. 대형 모바일 & 미니 태블릿 (Max 768px) ── */
@media (max-width: 768px) {
    .main-container {
        padding-top: 3.9rem;
    }
    .main-section-padding {
        padding: 4rem 0;
    }
    .section-header-center {
        margin-bottom: 2.2rem;
    }
    .section-header-center h2 {
        font-size: 1.6rem;
    }
    .sub-title {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }

    .section-hero {
        height: 55vh;
        min-height: 380px;
    }
    .hero-overlay-content {
        bottom: 8%;
        left: 1.5rem;
        right: 1.5rem;
    }
    .hero-badge {
        font-size: 0.72rem;
        margin-bottom: 0.5rem;
    }

    .prod-thumb-link {
        aspect-ratio: 3 / 4;
        margin-bottom: 0.8rem;
    }
    .prod-name {
        font-size: 1.02rem;
    }
    .prod-sub {
        font-size: 0.82rem;
    }
    .prod-price-badge span {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }

    .value-full-card {
        aspect-ratio: 16 / 9;
        min-height: 240px;
    }
    .card-overlay-text {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 8%;
    }
    .card-overlay-text .value-tag {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }
    .card-overlay-text .value-title {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
    }
    .card-overlay-text .value-desc {
        font-size: 0.85rem;
    }

    .story-left-text .main-head {
        font-size: 1.65rem;
        line-height: 1.3;
    }
    .story-desc {
        font-size: 0.9rem;
        line-height: 1.65;
    }
    .story-right-images {
        gap: 1rem;
    }
    .story-right-images .img-frame {
        aspect-ratio: 4 / 5;
    }

    .main-archiving-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    .archive-thumb-holder {
        aspect-ratio: 1 / 1;
    }
    .thumb-overlay {
        padding: 1.2rem;
    }
    .overlay-title {
        font-size: 1.05rem;
    }
    .btn-archive-more {
        padding: 0.75rem 2rem;
        font-size: 0.86rem;
    }

    /* 모달 */
    .archive-modal-container {
        width: 92%;
    }
    .modal-img-holder {
        height: 220px;
    }
    .modal-info-holder {
        padding: 1.8rem 1.4rem;
    }
    .btn-modal-close {
        top: 0.8rem;
        right: 1rem;
        font-size: 1.8rem;
    }
}

/* ── STAGE 5. 스마트폰 세로 모드 최하단 레이어 (Max 479px) ── */
@media (max-width: 479px) {
    .main-container {
        padding-top: 3.8rem;
    }
    .main-section-padding {
        padding: 3.2rem 0;
    }
    .max-layout-width,
    .max-layout-width-wide {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .section-hero {
        height: 48vh;
        min-height: 340px;
    }
    .hero-overlay-content {
        left: 1.25rem;
        right: 1.25rem;
        bottom: 8%;
    }
    .hero-badge {
        font-size: 0.68rem;
        letter-spacing: 0.15em;
        margin-bottom: 0.4rem;
    }
    .hero-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
    .hero-pagination .swiper-pagination-bullet-active {
        width: 18px;
    }

    .prod-thumb-link {
        aspect-ratio: 3 / 4 !important;
        margin-bottom: 0.6rem;
    }
    .prod-name {
        font-size: 0.95rem;
    }
    .prod-sub {
        font-size: 0.78rem;
    }

    .value-full-card {
        aspect-ratio: 16 / 10;
        min-height: 200px;
    }
    .card-overlay-text {
        left: 1.25rem;
        right: 1.25rem;
    }
    .card-overlay-text .value-tag {
        font-size: 0.68rem;
    }
    .card-overlay-text .value-title {
        font-size: 1.12rem;
    }
    .card-overlay-text .value-desc {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .story-left-text .main-head {
        font-size: 1.35rem;
        line-height: 1.3;
    }
    .story-desc {
        font-size: 0.84rem;
        line-height: 1.6;
    }
    .btn-more-link {
        font-size: 0.82rem;
    }
    .story-right-images {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .story-right-images .img-frame {
        aspect-ratio: 16 / 10;
    }

    .main-archiving-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    .archive-thumb-holder {
        aspect-ratio: 1 / 1 !important;
    }
    .thumb-overlay {
        padding: 0.8rem;
    }
    .overlay-tag {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }
    .overlay-title {
        font-size: 0.92rem;
        line-height: 1.25;
    }
    .btn-archive-more {
        width: 100%;
        box-sizing: border-box;
        padding: 0.75rem 1.2rem;
        font-size: 0.82rem;
    }

    /* 모달 */
    .archive-modal-overlay {
        padding: 0.8rem;
    }
    .archive-modal-container {
        width: 100%;
        max-height: 88dvh;
    }
    .modal-img-holder {
        height: 180px;
    }
    .modal-info-holder {
        padding: 1.4rem 1.1rem;
    }
    .modal-category {
        font-size: 0.72rem;
        margin-bottom: 0.4rem;
    }
    .modal-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    .modal-divider {
        margin-bottom: 1.2rem;
    }
    .modal-desc {
        font-size: 0.84rem;
        line-height: 1.6;
    }
}