﻿/*!
 * \file site.css
 * \brief 전역 통합 스타일(네비/히어로/어바웃/푸터/유틸, 반응형 포함).
 * \details
 *  - 전역은 이 파일 하나로 관리. app.css/*.razor.css는 사용하지 않음.
 *  - 모바일 폰 기준 깨짐 방지를 위해 clamp()/미디어쿼리 적용.
 *  - 고정 헤더 충돌 방지를 위한 여백/z-index 포함.
 * \author CodeMaru
 * \date 2025-10-07
 */
.cm-layout-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 본문: 상단 메뉴 높이만큼 여백 */
.cm-layout-body {
    flex: 1;
    padding-top: 70px; /* NavMenu 높이에 맞춰 조정 */
}
/* ========== 베이스 / 리셋 ========== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: 'Pretendard','Noto Sans KR','Segoe UI',Arial,sans-serif;
    color: #111827;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 링크 */
a {
    color: #2563eb;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* 텍스트 그라데이션 */
.text-gradient {
    background: linear-gradient(90deg, #6D28D9, #1E3A8A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========== 고정 헤더/Nav ========== */
.cm-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 .9rem;
    background: rgba(255,255,255,.35);
    border-bottom: 1px solid rgba(0,0,0,.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .18s ease, border-color .18s ease;
    z-index: 10000;
}

    .cm-topbar.scrolled {
        background: rgba(255,255,255,.95);
        border-bottom-color: rgba(0,0,0,.06);
    }

.cm-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.cm-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.cm-brand-text {
    font-weight: 800;
    color: #111;
    font-size: 1.05rem;
}

.cm-right {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.cm-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

    .cm-nav a {
        color: #111;
        font-weight: 700;
        font-size: .95rem;
        text-decoration: none;
    }

        .cm-nav a:hover, .cm-nav a.active {
            color: #3B82F6;
        }

.cm-nav-burger {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

    .cm-nav-burger span {
        display: block;
        width: 24px;
        height: 3px;
        background: #111;
        border-radius: 2px;
        margin: 4px auto;
    }

/* 모바일 슬라이드 메뉴 */
@media (max-width: 820px) {
    .cm-nav {
        position: fixed;
        top: 60px;
        right: 0;
        width: min(78vw, 260px);
        height: calc(100vh - 60px);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background: #fff;
        border-left: 1px solid rgba(0,0,0,.06);
        transform: translateX(100%);
        transition: transform .28s ease;
        z-index: 10100;
    }

        .cm-nav.open {
            transform: translateX(0);
        }

    .cm-nav-burger {
        display: block;
    }

    .cm-nav a {
        padding: .25rem 0;
        font-size: 1rem;
    }
}

/* 본문(헤더 여백) — 안전 장치 2중 */
.cm-body {
    margin-top: 60px;
}

body {
    padding-top: 60px;
}
/* 페이지에 .cm-body가 없을 때 백업 */
.cm-body {
    padding-top: 0;
}

/* ========== 버튼(부트스트랩 오버라이드 최소화) ========== */
.btn-primary {
    background: #3B82F6;
    border: none;
}

    .btn-primary:hover, .btn-primary:focus {
        filter: brightness(0.95);
    }

.btn-outline-primary {
    border-color: #3B82F6;
    color: #3B82F6;
}

    .btn-outline-primary:hover {
        background: #3B82F6;
        color: #fff;
    }

/* ========== Hero ========== */
.hero-section {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
}

    .hero-section > .container {
        display: flex;
        flex-direction: column;
        align-items: center; /* ← 수평 가운데 */
        justify-content: center; /* ← 수직 가운데 (여백 내에서) */
    }

    .hero-section h5 {
        font-size: clamp(1rem, 1.8vw, 1.15rem);
        letter-spacing: .045rem;
    }

    .hero-section h1 {
        font-size: clamp(2.1rem, 5vw, 3rem);
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .hero-section .lead {
        color: #6b7280;
        font-size: clamp(1rem, 2.4vw, 1.2rem);
        max-width: 720px; /* 긴 문장 정렬 안정용 */
    }

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

.hero-photo {
    display: block;
    width: clamp(300px, 38vw, 560px); /* PC 기준 더 큼 */
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    background: radial-gradient(circle at top, #6D28D9, #1E3A8A);
}

/* 모바일에서 축소 */
@media (max-width: 576px) {
    .hero-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-photo {
        width: 280px; /* 20px 정도 키움 */
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.5rem 1.25rem;
    }
}

/* ========== About ========== */
.about-section {
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

    .about-section h2 {
        font-size: clamp(1.3rem, 3.2vw, 1.8rem);
    }

    .about-section .lead {
        color: #6b7280;
        font-size: clamp(.95rem, 2.2vw, 1.125rem);
    }

/* ========== Footer ========== */
.cm-footer, footer {
    background: #f9fafb;
    color: #6b7280;
    font-size: .875rem;
    text-align: center;
    padding: 2rem 1rem;
}

/* ========== 유틸 ========== */
.text-muted {
    color: #6b7280 !important;
}

.text-primary {
    color: #3B82F6 !important;
}

.bg-light {
    background: #f8fafc !important;
}
/*!
 * \file site.css (excerpt)
 * \brief 정책 링크 및 공통 스타일
 * \author Dreamine / CodeMaru
 * \date 2025-10-15
 */
.policy-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color .2s;
}

    .policy-links a:hover {
        color: #0d6efd;
        text-decoration: underline;
    }

/* 끝 */
