/* =========================================================
   수정본 파일명 : strength.css
   다운로드용 TXT : strength.css.txt
   ---------------------------------------------------------
   적용 프로젝트 : 하우징개봉 청년안심주택 웹사이트
   원본 기준     : 사용자가 업로드한 strength.css
   수정일        : 2026-05-03
   ---------------------------------------------------------
   [기존 대화 반영 사항]
   1. 사이트 대표 컬러는 #006655 기준으로 유지합니다.
   2. 정적 리소스 경로는 /hgaebong/assets/... 기준을 유지합니다.
   3. PC / 태블릿 / 모바일 반응형 구조를 유지합니다.
   4. 서브페이지 상단 비주얼은 과도하게 높아지지 않도록 compact 기준을 유지합니다.
   5. header.css와 함께 사용해도 기본 폰트와 이미지 처리 기준이 어긋나지 않도록 보강했습니다.
   6. 유지보수자가 각 CSS 역할을 쉽게 파악할 수 있도록 한글 주석을 보강했습니다.
   7. 사용자의 브라우저 모션 최소화 설정을 고려했습니다.
   ========================================================= */

/* =========================================================
   strength.css
   ---------------------------------------------------------
   사업안내 > 특장점 안내 페이지 전용 스타일
   ---------------------------------------------------------
   저장 경로 : /hgaebong/assets/css/strength.css

   [설명]
   - 입지환경 페이지와 동일한 전체 톤 유지
   - 상단 서브 비주얼 / 본문 공통 폭 / 제목 구성 동일 유지
   - 본문은 이미지 + 설명 형태의 특장점 박스 4개 구성
   - PC :
     1번째 왼쪽 / 2번째 오른쪽 / 3번째 왼쪽 / 4번째 오른쪽
   - 태블릿 / 모바일 :
     1열 세로 구성
   ========================================================= */

/* =========================================================
   1. 공통 변수
   ========================================================= */
:root {
    --st-primary: #006655;
    --st-primary-dark: #01483c;
    --st-primary-deep: #003d33;
    --st-primary-soft: #edf5f3;
    --st-primary-soft-2: #f5faf8;

    --st-text-main: #1b2624;
    --st-text-sub: #61706c;
    --st-text-white: #ffffff;

    --st-border: #d8e5e1;
    --st-line: rgba(0, 0, 0, 0.06);

    --st-bg: #ffffff;
    --st-bg-soft: #f7fbfa;

    --st-shadow: 0 14px 34px rgba(0, 102, 85, 0.08);
    --st-shadow-hover: 0 18px 42px rgba(0, 102, 85, 0.12);

    --st-radius-md: 20px;
    --st-radius-lg: 28px;

    --st-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(--st-text-main);
    word-break: keep-all;
    overflow-x: hidden;
}


/* =========================================================
   공통 이미지 안전 처리
   ---------------------------------------------------------
   이미지가 부모 영역보다 커져 가로 스크롤이 생기는 문제를 방지합니다.
   각 페이지의 개별 이미지 클래스에서 object-fit을 별도로 지정하므로,
   여기서는 기본 안전값만 제공합니다.
   ========================================================= */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================================================
   3. 페이지 전체 배경
   ========================================================= */
.strength-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("/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 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(--st-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(--st-width);
    margin: 0 auto;
    padding: 85px 20px 110px;
}

/* =========================================================
   6. 섹션 제목 공통
   ========================================================= */
.strength-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(--st-primary);
}

.section-title {
    margin: 0 0 16px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.03em;
    color: var(--st-text-main);
}

.section-description {
    max-width: 860px;
    margin: 0;
    font-size: 17px;
    line-height: 1.85;
    color: var(--st-text-sub);
}

/* =========================================================
   7. 특장점 카드 목록
   ========================================================= */
.strength-card-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

/* =========================================================
   8. 특장점 카드 공통
   - PC에서는 좌우 번갈아 정렬
   ========================================================= */
.strength-feature-card {
    width: 76%;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    box-shadow: var(--st-shadow);
    overflow: hidden;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.strength-feature-card:hover {
    box-shadow: var(--st-shadow-hover);
    transform: translateY(-4px);
}

/* ---------------------------------------------------------
   왼쪽 정렬 카드
   --------------------------------------------------------- */
.strength-feature-card-left {
    align-self: flex-start;
}

/* ---------------------------------------------------------
   오른쪽 정렬 카드
   --------------------------------------------------------- */
.strength-feature-card-right {
    align-self: flex-end;
}

/* =========================================================
   9. 카드 이미지 영역
   ========================================================= */
.strength-feature-image-wrap {
    position: relative;
    min-height: 300px;
    background: #dfe9e6;
    overflow: hidden;
}

.strength-feature-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================================================
   10. 카드 설명 영역
   ========================================================= */
.strength-feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 34px 36px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcfb 100%);
}

.strength-feature-point {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--st-primary);
}

.strength-feature-title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--st-text-main);
}

.strength-feature-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: var(--st-text-sub);
}

/* =========================================================
   11. 등장 애니메이션
   - 입지환경 페이지와 동일한 방식 적용
   ========================================================= */
.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);
}

/* =========================================================
   12. 태블릿 대응
   - 요청사항에 따라 세로 1열 구성
   ========================================================= */
@media (max-width: 1180px) {
    .strength-feature-card {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .strength-feature-card-left,
    .strength-feature-card-right {
        align-self: stretch;
    }
}

@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;
    }

    .strength-feature-image-wrap {
        min-height: 260px;
    }

    .strength-feature-title {
        font-size: 24px;
    }

    .strength-feature-text {
        font-size: 16px;
    }
}

/* =========================================================
   13. 모바일 대응
   ========================================================= */
@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;
    }

    .strength-card-list {
        gap: 22px;
    }

    .strength-feature-image-wrap {
        min-height: 210px;
    }

    .strength-feature-content {
        padding: 24px 20px 26px;
    }

    .strength-feature-title {
        font-size: 21px;
    }

    .strength-feature-text {
        font-size: 15px;
        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;
    }
}
