/* ===============================
   FONT IMPORT
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --main-green: #1b6331;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ============ 공통 ============ */
.compost-page {
    font-family: 'Pretendard', 'Jost', sans-serif;
    background: #fff;
    color: #111;
    letter-spacing: -0.02em;
    overflow-x: hidden;
    text-align: center;
}

/* ============ 1. 상단 헤더 ============ */
.compost-header {
    text-align: center;
    padding: 0 0.5rem;
}

.top-title {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-weight: 400;
    color: #222;
    margin-bottom: 0.6rem;
}

.top-sub {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    color: #777;
    margin-bottom: 1.2rem;
}

.main-title {
    font-family: 'Jost', sans-serif;
    color: var(--main-green);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

.desc {
    max-width: 900px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.9;
}

.since {
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    color: #000;
}

/* ===============================
   2. 비주얼 배너
=============================== */
.compost-vision {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center center;
    color: #fff;
    text-align: center;
    padding: 5rem 1rem 5rem;
    box-sizing: border-box;
}

.compost-vision .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.vision-inner {
    position: relative;
    z-index: 2;
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}

.vision-inner h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.subtext {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    line-height: 1.9;
    margin-bottom: 6rem;
    opacity: 0.95;
}

.vision-inner h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
}

.section2-desc {
    max-width: 1000px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.9;
    opacity: 0.95;
}

/* ===============================
   2-1. STEP 카드 (7개)
=============================== */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    max-width: 1700px;
    margin: 3rem auto 0;
    align-items: stretch;
    box-sizing: border-box;
    justify-items: center;
}

.vision-item {
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    width: 100%;
}

.vision-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
}

.vision-item .step-num {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: #ddd;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.vision-item h4 {
    font-family: 'Pretendard', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #fff;
}

.vision-item p {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    color: #f5f5f5;
    margin-bottom: 0.4rem;
    opacity: 0.9;
}

.vision-item img {
    width: 3.5rem;
    height: 3.5rem;
    opacity: 0.9;
    margin-top: 0.3rem;
    transition: 0.3s ease;
}

.vision-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.en-bottom {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    opacity: 0.9;
    letter-spacing: 0.08em;
    margin-top: 3rem;
}

/* ===============================
   3. 하단 슬로건
=============================== */
.compost-slogan {
    text-align: center;
    background: #fff;
    color: #111;
    padding: 6rem 1rem 0;
}

.compost-slogan h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 3rem;
}

.compost-slogan p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.bottom-logo img {
    width: 90px;
    margin-top: 1rem;
    opacity: 0.9;
    transition: 0.3s ease;
}

.bottom-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ===============================
   반응형
=============================== */

/* --- 1600px 이하 --- */
@media (max-width: 1600px) {
    .vision-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
        gap: 1rem;
    }
}

/* --- 1200px 이하 --- */
@media (max-width: 1200px) {

    .vision-item {
        padding: 0.8rem;
    }

    .vision-item h4 {
        font-size: 0.9rem;
    }

    .vision-item p {
        font-size: 0.7rem;
    }

    .compost-slogan {
        padding: 4rem 1rem 0;
    }
}

/* --- 900px 이하 --- */
@media (max-width: 900px) {
    .vision-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .vision-item h4 {
        font-size: 0.85rem;
    }

    .vision-item p {
        font-size: 0.65rem;
    }

    .vision-item img {
        width: 2.8rem;
        height: 2.8rem;
    }
}

/* --- 768px 이하 --- */
@media (max-width: 768px) {
    .vision-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .vision-item {
        width: 100%;
        aspect-ratio: 4 / 3;
        padding: 0.5rem;
    }

    .vision-item h4 {
        font-size: 0.8rem;
    }

    .vision-item p {
        font-size: 0.6rem;
    }

    .vision-item img {
        width: 2.6rem;
        height: 2.6rem;
    }
}

/* --- 600px 이하 --- */
@media (max-width: 600px) {
    .vision-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0 0.5rem;
    }

    .vision-item {
        padding: 0.5rem;
    }

    .vision-item h4 {
        font-size: 0.8rem;
    }

    .vision-item p {
        font-size: 0.6rem;
    }

    .vision-item img {
        width: 2.4rem;
        height: 2.4rem;
    }
}

@media (max-width: 480px) {
    .vision-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        padding: 0 0.5rem;
        max-width: 100%;
        justify-content: center;
        align-items: center;
    }

    .vision-item {
        width: 100%;
        max-width: clamp(140px, 45vw, 200px);
        aspect-ratio: 4 / 3;
        margin: 0 auto;
        padding: 0.5rem;
        transition: all 0.3s ease;
    }

    .vision-item h4 {
        font-size: clamp(0.68rem, 2vw, 0.75rem);
    }

    .vision-item p {
        font-size: clamp(0.48rem, 1.8vw, 0.55rem);
    }

    .vision-item img {
        width: clamp(1.8rem, 8vw, 2.2rem);
        height: clamp(1.8rem, 8vw, 2.2rem);
    }

    .compost-slogan h4 {
        font-size: clamp(1rem, 3vw, 1.1rem);
    }

    .compost-slogan p {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }
}
