/* =========================================================
   수정본 파일명 : business_overview.css
   다운로드용 TXT : business_overview.css.txt
   ---------------------------------------------------------
   적용 프로젝트 : 하우징개봉 청년안심주택 웹사이트
   원본 기준     : 사용자가 업로드한 business_overview.css
   수정일        : 2026-05-03
   ---------------------------------------------------------
   [기존 대화 반영 사항]
   1. 사이트 대표 컬러는 #006655 기준으로 유지합니다.
   2. 이미지 및 정적 리소스 경로는 /hgaebong/assets/... 기준을 유지합니다.
   3. PC / 태블릿 / 모바일 반응형 구조를 유지합니다.
   4. 상단 서브 비주얼 영역은 과도하게 높아지지 않도록 기존 compact 높이 기준을 유지합니다.
   5. 유지보수자가 CSS 역할을 쉽게 파악할 수 있도록 한글 주석을 보강했습니다.
   6. 애니메이션을 지원하지 않거나 모션 최소화를 설정한 사용자 환경을 고려했습니다.
   ========================================================= */

/* =========================================================하나하우징개봉
   business_overview.css
   ---------------------------------------------------------
   사업안내 > 사업개요 페이지 전용 스타일
   ---------------------------------------------------------
   저장 경로 : /hgaebong/assets/css/business_overview.css
   ========================================================= */

/* =========================================================
   1. 공통 변수
   ========================================================= */
:root {
    --bo-primary: #006655;
    --bo-primary-dark: #01483c;
    --bo-primary-deep: #003d33;
    --bo-primary-soft: #edf5f3;
    --bo-primary-soft-2: #f5faf8;

    --bo-text-main: #1b2624;
    --bo-text-sub: #61706c;
    --bo-text-white: #ffffff;

    --bo-border: #d8e5e1;
    --bo-line: rgba(0, 0, 0, 0.06);

    --bo-bg: #ffffff;
    --bo-bg-soft: #f7fbfa;

    --bo-shadow: 0 14px 34px rgba(0, 102, 85, 0.08);
    --bo-shadow-hover: 0 18px 42px rgba(0, 102, 85, 0.12);

    --bo-radius-md: 20px;
    --bo-radius-lg: 28px;

    --bo-width: 1280px;
}

/* =========================================================
   2. 기본 초기화
   ========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /*
       사이트 전체 기본 글꼴입니다.
       header.css 또는 공통 CSS에서 이미 지정되어 있더라도,
       개별 페이지 CSS만 단독으로 로딩되는 경우를 대비해 동일한 폰트 스택을 명시합니다.
    */
    font-family:
        "Pretendard",
        "Noto Sans KR",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    margin: 0;
    padding: 0;
    background: #ffffff;
    color: var(--bo-text-main);
    word-break: keep-all;
    overflow-x: hidden;
}


/* =========================================================
   공통 이미지 안전 처리
   ---------------------------------------------------------
   - 이미지가 부모 영역보다 커져서 가로 스크롤을 만드는 문제를 방지합니다.
   - 각 페이지의 개별 이미지 클래스에서 object-fit을 별도로 지정하므로,
     여기서는 기본 안전값만 제공합니다.
   ========================================================= */
img {
    max-width: 100%;
}

/* =========================================================
   3. 페이지 전체 배경
   ========================================================= */
.business-overview-page {
    width: 100%;
    background: 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("/assets/images/index/slide1.webp") center center / cover no-repeat;
    overflow: hidden;
}

.sub-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.10), transparent 28%),
        radial-gradient(circle at 80% 30%, 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(--bo-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(--bo-width);
    margin: 0 auto;
    padding: 85px 20px 110px;
}

/* =========================================================
   6. 섹션 제목 공통
   ========================================================= */
.business-overview-main-section {
    width: 100%;
}

.section-title-wrap {
    margin-bottom: 34px;
}

.section-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--bo-primary);
}

.section-title {
    margin: 0 0 16px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.03em;
    color: var(--bo-text-main);
}

.section-description {
    max-width: 860px;
    margin: 0;
    font-size: 17px;
    line-height: 1.85;
    color: var(--bo-text-sub);
}

/* =========================================================
   7. 좌우 레이아웃
   - 좌측 조감도 / 우측 사업기본정보
   ========================================================= */
.overview-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: stretch;
}

/* =========================================================
   8. 공통 카드 박스
   ========================================================= */
.overview-image-card,
.overview-table-card {
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius-lg);
    box-shadow: var(--bo-shadow);
    overflow: hidden;
}

.overview-image-card {
    display: flex;
    flex-direction: column;
}

.overview-table-card {
    display: flex;
    flex-direction: column;
}

/* =========================================================
   9. 카드 상단 제목 영역
   ========================================================= */
.content-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 28px 0;
}

.content-box-header-icon {
    font-size: 24px;
    color: var(--bo-primary);
}

.content-box-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--bo-text-main);
}

.content-box-description {
    margin: 12px 0 22px;
    padding: 0 28px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--bo-text-sub);
}

.content-box-caption {
    margin: 14px 0 0;
    padding: 0 28px 24px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--bo-text-sub);
}

/* =========================================================
   10. 조감도 영역
   ========================================================= */
.overview-image-box {
    width: calc(100% - 56px);
    margin: 22px 28px 0;
    border-radius: 22px;
    overflow: hidden;
    background: #f3f7f6;
    border: 1px solid var(--bo-border);
}

.overview-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.overview-image-card:hover .overview-image {
    transform: scale(1.02);
}

/* =========================================================
   11. 사업기본정보 표
   - 사용자가 기존에 만든 표 구조 느낌을 유지
   - 좌측 라벨 박스 + 우측 값 박스
   ========================================================= */
.info-table-box {
    margin: 0 28px 28px;
    background: #ffffff;
    border: 1px solid var(--bo-border);
    border-radius: 22px;
    overflow: hidden;
}

.info-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 86px;
    border-bottom: 1px solid var(--bo-border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: #cfdcda;
    border-right: 1px solid var(--bo-border);
    color: var(--bo-primary-deep);
}

.info-label-icon {
    flex: 0 0 auto;
    font-size: 24px;
    color: var(--bo-primary);
}

.info-label-text {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.info-value {
    display: flex;
    align-items: center;
    padding: 20px 28px;
    background: #ffffff;
    font-size: 16px;
    line-height: 1.9;
    color: var(--bo-text-main);
}

/* =========================================================
   12. 등장 애니메이션
   ---------------------------------------------------------
   - HTML에서 .reveal 클래스를 가진 요소는 처음에는 투명하고
     좌/우/아래 방향으로 살짝 밀린 상태로 대기합니다.
   - 각 페이지 전용 JS가 화면 진입 여부를 감지하여 .active 클래스를 붙이면
     opacity / transform / filter가 동시에 변하면서 자연스럽게 나타납니다.
   - --reveal-delay 값은 JS에서 순차적으로 부여하여 카드들이 한꺼번에
     튀어나오지 않고 부드럽게 차례로 등장하도록 합니다.
   ========================================================= */
.reveal {
    opacity: 0;
    filter: blur(6px);
    transition:
        opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
    backface-visibility: hidden;
}

.reveal-up {
    transform: translate3d(0, 56px, 0);
}

.reveal-left {
    transform: translate3d(-72px, 0, 0);
}

.reveal-right {
    transform: translate3d(72px, 0, 0);
}

.reveal.active {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
}

/* =========================================================
   13. hover 효과
   ========================================================= */
.overview-image-card:hover,
.overview-table-card:hover {
    box-shadow: var(--bo-shadow-hover);
    transition: box-shadow 0.3s ease;
}

/* =========================================================
   14. 태블릿 대응
   ========================================================= */
@media (max-width: 1180px) {
    .overview-split-layout {
        grid-template-columns: 1fr;
    }

    .overview-image-area,
    .overview-table-area {
        width: 100%;
    }
}

@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;
    }

    .info-row {
        grid-template-columns: 220px 1fr;
    }
}

/* =========================================================
   15. 모바일 대응
   ========================================================= */
@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;
    }

    .content-box-header {
        padding: 20px 18px 0;
    }

    .content-box-title {
        font-size: 21px;
    }

    .content-box-description {
        padding: 0 18px;
        margin-bottom: 18px;
        font-size: 14px;
    }

    .overview-image-box {
        width: calc(100% - 36px);
        margin: 18px 18px 0;
        border-radius: 18px;
    }

    .content-box-caption {
        padding: 0 18px 18px;
        font-size: 13px;
    }

    .info-table-box {
        margin: 0 18px 18px;
        border-radius: 18px;
    }

    .info-row {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .info-label {
        border-right: none;
        border-bottom: 1px solid var(--bo-border);
        padding: 16px 18px;
    }

    .info-label-text {
        font-size: 15px;
    }

    .info-label-icon {
        font-size: 22px;
    }

    .info-value {
        padding: 16px 18px;
        font-size: 15px;
        line-height: 1.8;
    }
}


/* =========================================================
   접근성 보완 : 모션 최소화 설정 대응
   ---------------------------------------------------------
   사용자의 브라우저 또는 OS에서 '동작 줄이기'가 설정되어 있으면
   스크롤 등장 애니메이션과 hover 이동 효과를 최소화합니다.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal.active {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .overview-image,
    .community-card,
    .community-card-image,
    .directions-map-link-btn,
    .transport-guide-card,
    .finance-link-btn,
    .floor-plan-card {
        transition: none;
    }
}
