/* =========================================================
   수정본 파일명 : unit_plan.css
   다운로드용 TXT : unit_plan.css.txt
   ---------------------------------------------------------
   적용 프로젝트 : 하우징개봉 청년안심주택 웹사이트
   원본 기준     : 사용자가 업로드한 unit_plan.css
   수정일        : 2026-05-03
   ---------------------------------------------------------
   [기존 대화 반영 사항]
   1. 사이트 대표 컬러는 #006655 기준으로 유지합니다.
   2. 정적 리소스 경로는 /hgaebong/assets/... 기준을 유지합니다.
   3. PC / 태블릿 / 모바일 반응형 구조를 유지합니다.
   4. 서브페이지 상단 비주얼은 과도하게 높아지지 않도록 compact 기준을 유지합니다.
   5. header.css와 함께 사용해도 기본 폰트와 이미지 처리 기준이 어긋나지 않도록 보강했습니다.
   6. 유지보수자가 각 CSS 역할을 쉽게 파악할 수 있도록 한글 주석을 보강했습니다.
   7. 사용자의 브라우저 모션 최소화 설정을 고려했습니다.
   ========================================================= */

/* =========================================================
   unit_plan.css
   ---------------------------------------------------------
   단지안내 > 단위세대 평면안내 페이지 전용 스타일
   ---------------------------------------------------------
   저장 경로 : /hgaebong/assets/css/unit_plan.css

   [설명]
   - 기존 하위 페이지와 동일한 상단 서브 비주얼 구조 유지
   - 본문은 젊고 세련된 카드형 평면 갤러리 구조로 구성
   - 총 5개 타입을 리듬감 있게 배치하여 단순 반복 느낌 최소화
   - PC : 2열 + 강조형 카드 구조
   - 태블릿 / 모바일 : 세로 1열 구조로 자연스럽게 전환
   - 유지보수 시 이미지 경로 및 문구 교체가 쉽도록 클래스 구조 단순화
   ========================================================= */

/* =========================================================
   1. 공통 변수
   ========================================================= */
:root {
    --up-primary: #006655;
    --up-primary-dark: #01483c;
    --up-primary-deep: #003d33;
    --up-primary-soft: #edf5f3;
    --up-primary-soft-2: #f5faf8;

    --up-text-main: #1b2624;
    --up-text-sub: #61706c;
    --up-text-white: #ffffff;

    --up-border: #d8e5e1;
    --up-line: rgba(0, 0, 0, 0.06);

    --up-bg: #ffffff;
    --up-bg-soft: #f7fbfa;

    --up-shadow: 0 14px 34px rgba(0, 102, 85, 0.08);
    --up-shadow-hover: 0 18px 44px rgba(0, 102, 85, 0.14);

    --up-radius-md: 18px;
    --up-radius-lg: 28px;
    --up-radius-xl: 34px;

    --up-width: 1280px;
}

/* =========================================================
   2. 기본 초기화
   ========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /*
       개별 CSS 파일이 단독 로딩되는 경우에도
       사이트 전체와 유사한 한글 폰트 기준을 유지하기 위한 안전 장치입니다.
    */
    font-family:
        "Pretendard",
        "Noto Sans KR",
        "Malgun Gothic",
        "Apple SD Gothic Neo",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    margin: 0;
    padding: 0;
    background: #ffffff;
    color: var(--up-text-main);
    word-break: keep-all;
    overflow-x: hidden;
}


/* =========================================================
   공통 이미지 안전 처리
   ---------------------------------------------------------
   이미지가 부모 영역보다 커져 가로 스크롤이 생기는 문제를 방지합니다.
   각 페이지의 개별 이미지 클래스에서 object-fit을 별도로 지정하므로,
   여기서는 기본 안전값만 제공합니다.
   ========================================================= */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================================================
   3. 페이지 전체 배경
   ========================================================= */
.unit-plan-page {
    width: 100%;
    background:
        radial-gradient(circle at top left, rgba(99, 199, 178, 0.11), transparent 24%),
        radial-gradient(circle at top right, rgba(124, 184, 255, 0.09), transparent 20%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

/* =========================================================
   4. 상단 서브 비주얼
   ========================================================= */
.sub-hero-section {
    position: relative;
    width: 100%;
    min-height: 140px; /* 기존 대화 반영: 서브페이지 상단 배경 높이를 compact 기준으로 유지 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 20px;
    background:
        linear-gradient(135deg, rgba(0, 102, 85, 0.92), rgba(1, 72, 60, 0.88)),
        url("/hgaebong/assets/images/index/slide1.webp") center center / cover no-repeat;
    overflow: hidden;
}

.sub-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.10), transparent 28%),
        radial-gradient(circle at 80% 24%, rgba(255, 255, 255, 0.08), transparent 24%),
        rgba(0, 0, 0, 0.08);
}

.sub-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--up-width);
    margin: 0 auto;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.84);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.breadcrumb a:hover {
    opacity: 0.78;
}

.breadcrumb-separator {
    opacity: 0.7;
}

.breadcrumb-current {
    font-weight: 700;
    color: #ffffff;
}

.sub-hero-title {
    margin: 0 0 10px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.sub-hero-description {
    margin: 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

/* =========================================================
   5. 본문 공통 폭
   ========================================================= */
.page-content-wrap {
    width: 100%;
    max-width: var(--up-width);
    margin: 0 auto;
    padding: 85px 20px 110px;
}

/* =========================================================
   6. 상단 소개 영역
   ========================================================= */
.unit-plan-intro-section {
    width: 100%;
    margin-bottom: 48px;
}

.section-title-wrap {
    margin-bottom: 30px;
}

.section-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--up-primary);
}

.section-title {
    margin: 0 0 16px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.03em;
    color: var(--up-text-main);
}

.section-description {
    max-width: 920px;
    margin: 0;
    font-size: 17px;
    line-height: 1.85;
    color: var(--up-text-sub);
}

/* =========================================================
   7. 상단 요약 카드
   ========================================================= */
.unit-plan-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.summary-card {
    padding: 24px 24px 22px;
    border-radius: var(--up-radius-lg);
    background: linear-gradient(145deg, #ffffff 0%, #f7fbfa 100%);
    border: 1px solid var(--up-border);
    box-shadow: var(--up-shadow);
}

.summary-card-label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--up-primary);
}

.summary-card-value {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--up-text-main);
}

.summary-card-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--up-text-sub);
}

/* =========================================================
   8. 태그 라인
   ========================================================= */
.unit-plan-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.unit-plan-tag {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(0, 102, 85, 0.10);
    color: var(--up-primary-dark);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 102, 85, 0.05);
}

/* =========================================================
   9. 갤러리 영역
   ========================================================= */
.unit-plan-gallery-section {
    width: 100%;
}

.unit-plan-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

/* =========================================================
   10. 평면 카드 공통
   ========================================================= */
.unit-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    border: 1px solid var(--up-border);
    border-radius: var(--up-radius-xl);
    box-shadow: var(--up-shadow);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.unit-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--up-shadow-hover);
}

/* ---------------------------------------------------------
   큰 카드
   - 첫 번째 타입을 대표형으로 강조
   --------------------------------------------------------- */
.unit-plan-card-large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: stretch;
}

/* ---------------------------------------------------------
   넓은 카드
   - 마지막 타입도 시각적으로 강조
   --------------------------------------------------------- */
.unit-plan-card-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    align-items: stretch;
}

.unit-plan-card-image-area {
    position: relative;
    padding: 22px 22px 0 22px;
}

.unit-plan-card-image-wrap {
    position: relative;
    min-height: 320px;
    border-radius: var(--up-radius-lg);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(99, 199, 178, 0.10), rgba(124, 184, 255, 0.10)),
        #eef5f3;
    border: 1px solid rgba(0, 102, 85, 0.10);
}

.unit-plan-card-large .unit-plan-card-image-wrap,
.unit-plan-card-wide .unit-plan-card-image-wrap {
    min-height: 420px;
}

.unit-plan-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #ffffff;
}

.unit-plan-floating-badge {
    position: absolute;
    top: 36px;
    left: 36px;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 102, 85, 0.92);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 24px rgba(0, 102, 85, 0.18);
}

.unit-plan-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 24px 28px;
}

.unit-plan-card-large .unit-plan-card-content,
.unit-plan-card-wide .unit-plan-card-content {
    padding: 30px 30px 32px;
}

.unit-plan-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 14px;
}

.unit-plan-card-title-group {
    min-width: 0;
}

.unit-plan-card-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--up-primary);
}

.unit-plan-card-title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--up-text-main);
}

.unit-plan-chip-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.unit-plan-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--up-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.unit-plan-chip-soft {
    background: var(--up-primary-soft);
    color: var(--up-primary-dark);
}

.unit-plan-card-description {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--up-text-sub);
}

.unit-plan-feature-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.unit-plan-feature-list li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--up-text-main);
}

.unit-plan-feature-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--up-primary);
}

.unit-plan-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.unit-plan-meta-item {
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 102, 85, 0.05), rgba(1, 72, 60, 0.03));
    border: 1px solid rgba(0, 102, 85, 0.10);
}

.unit-plan-meta-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--up-text-sub);
}

.unit-plan-meta-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--up-text-main);
}


/* =========================================================
   10-1. 평면 이미지 표시 보완
   ---------------------------------------------------------
   평면 이미지는 사진과 달리 도면 비율이 중요하므로 object-fit: contain을 유지합니다.
   hover 시 과한 확대는 적용하지 않고, 도면 가독성을 유지합니다.
   ========================================================= */
.unit-plan-card-image {
    transition: filter 0.25s ease;
}

.unit-plan-card:hover .unit-plan-card-image {
    filter: contrast(1.01);
}

/* =========================================================
   11. 하단 안내 박스
   ========================================================= */
.unit-plan-note-section {
    margin-top: 36px;
}

.unit-plan-note-box {
    width: 100%;
    padding: 28px 30px;
    border-radius: var(--up-radius-lg);
    background: linear-gradient(135deg, rgba(0, 102, 85, 0.06), rgba(1, 72, 60, 0.04));
    border: 1px solid rgba(0, 102, 85, 0.10);
}

.unit-plan-note-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--up-text-main);
}

.unit-plan-note-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: var(--up-text-sub);
}

/* =========================================================
   12. 등장 애니메이션
   ========================================================= */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal-up {
    transform: translateY(44px);
}

.reveal-left {
    transform: translateX(-44px);
}

.reveal-right {
    transform: translateX(44px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* =========================================================
   13. 태블릿 대응
   ========================================================= */
@media (max-width: 1180px) {
    .unit-plan-summary-grid {
        grid-template-columns: 1fr;
    }

    .unit-plan-gallery {
        grid-template-columns: 1fr;
    }

    .unit-plan-card-large,
    .unit-plan-card-wide {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
    }

    .unit-plan-card-large .unit-plan-card-image-wrap,
    .unit-plan-card-wide .unit-plan-card-image-wrap {
        min-height: 360px;
    }
}

@media (max-width: 900px) {
    .sub-hero-section {
        min-height: 200px;
        padding: 50px 20px 30px;
    }

    .sub-hero-title {
        font-size: 42px;
    }

    .sub-hero-description {
        font-size: 17px;
    }

    .page-content-wrap {
        padding: 70px 20px 90px;
    }

    .section-title {
        font-size: 34px;
    }

    .section-description {
        font-size: 16px;
    }

    .unit-plan-card-image-wrap {
        min-height: 300px;
    }

    .unit-plan-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .unit-plan-chip-group {
        justify-content: flex-start;
    }

    .unit-plan-card-title {
        font-size: 26px;
    }

    .unit-plan-card-large .unit-plan-card-content,
    .unit-plan-card-wide .unit-plan-card-content,
    .unit-plan-card-content {
        padding: 24px 24px 26px;
    }
}

/* =========================================================
   14. 모바일 대응
   ========================================================= */
@media (max-width: 640px) {
    .sub-hero-section {
        min-height: 180px;
        padding: 42px 16px 24px;
    }

    .sub-hero-title {
        font-size: 28px;
    }

    .sub-hero-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .page-content-wrap {
        padding: 55px 16px 80px;
    }

    .section-title-wrap {
        margin-bottom: 24px;
    }

    .section-kicker {
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .summary-card {
        padding: 20px 18px;
    }

    .summary-card-value {
        font-size: 24px;
    }

    .unit-plan-tag-row {
        gap: 8px;
    }

    .unit-plan-tag {
        font-size: 13px;
        min-height: 34px;
        padding: 7px 12px;
    }

    .unit-plan-gallery {
        gap: 22px;
    }

    .unit-plan-card-image-area {
        padding: 18px 18px 0 18px;
    }

    .unit-plan-card-image-wrap,
    .unit-plan-card-large .unit-plan-card-image-wrap,
    .unit-plan-card-wide .unit-plan-card-image-wrap {
        min-height: 220px;
    }

    .unit-plan-floating-badge {
        top: 30px;
        left: 30px;
        min-height: 36px;
        font-size: 12px;
        padding: 7px 12px;
    }

    .unit-plan-card-title {
        font-size: 22px;
    }

    .unit-plan-card-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .unit-plan-feature-list li {
        font-size: 14px;
        line-height: 1.75;
    }

    .unit-plan-meta-item {
        width: 100%;
        min-width: 0;
    }

    .unit-plan-note-box {
        padding: 22px 18px;
    }

    .unit-plan-note-title {
        font-size: 19px;
    }

    .unit-plan-note-text {
        font-size: 14px;
        line-height: 1.8;
    }
}


/* =========================================================
   접근성 보완 : 모션 최소화 설정 대응
   ---------------------------------------------------------
   사용자의 브라우저 또는 OS에서 '동작 줄이기'가 설정되어 있으면
   스크롤 등장 애니메이션, hover 이동 효과, 버튼 이동 효과를 최소화합니다.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal,
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal.show,
    .reveal.active {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
