/* ==========================================================================
   (주)천성 CHEONSEONG - Design System
   Trust Navy #1A2B48 | Nature Green #4CAF50 | Premium Gold #C5A059
   ========================================================================== */

:root {
    --color-navy: #1A2B48;
    --color-navy-dark: #0F1B30;
    --color-navy-light: #2C3E5E;
    --color-green: #4CAF50;
    --color-green-dark: #388E3C;
    --color-green-light: #81C784;
    --color-gold: #C5A059;
    --color-gold-light: #D4B574;
    --color-bg: #FAFBFC;
    --color-bg-alt: #F4F6F9;
    --color-text: #1A2B48;
    --color-text-sub: #5A6478;
    --color-text-muted: #8A93A6;
    --color-border: #E5E8ED;
    --color-white: #FFFFFF;

    --font-sans: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Pretendard', 'Noto Sans KR', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 8px rgba(26, 43, 72, 0.06);
    --shadow-md: 0 8px 24px rgba(26, 43, 72, 0.08);
    --shadow-lg: 0 20px 50px rgba(26, 43, 72, 0.12);
    --shadow-xl: 0 30px 80px rgba(26, 43, 72, 0.18);

    --container: 1240px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pretendard Font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-navy);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-sub);
    max-width: 720px;
    line-height: 1.75;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-navy);
    color: var(--color-white);
    box-shadow: 0 6px 20px rgba(26, 43, 72, 0.25);
}

.btn-primary:hover {
    background: var(--color-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(26, 43, 72, 0.35);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.btn-secondary:hover {
    background: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--color-gold);
    color: var(--color-white);
}

.btn-gold:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

/* btn-light-outline: 평상시 흰색 톤(가독성 우수) + 호버 시 골드 보더 + 그림자로 부각 */
.btn-light-outline {
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-navy);
    border-color: var(--color-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn-light-outline:hover {
    background: var(--color-white);
    color: var(--color-navy-dark);
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(212, 175, 55, 0.45), 0 0 0 4px rgba(212, 175, 55, 0.18);
}

/* btn-solid-light: 평상시 흰색 솔리드(강조) → 호버 시 ghost 스타일로 반전 */
.btn-solid-light {
    background: var(--color-white);
    color: var(--color-navy);
    border-color: var(--color-white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-solid-light:hover {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-2px);
    box-shadow: none;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i.fa-arrow-right {
    transform: translateX(4px);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.6rem; /* v2026.05.19: 1.25rem → 1.6rem 확대 */
    color: var(--color-navy);
    letter-spacing: -0.02em;
}

/*
 * .logo-mark : 임시 한자(天) 마크 — 추후 천성 공식 이미지 로고로 교체 예정
 * 교체 시 HTML에서 <span class="logo-mark">天</span> 부분을
 * <img src="images/logo-cheonseong.png" alt="천성 로고" class="logo-mark logo-mark-img">
 * 형태로 변경하고, .logo-mark-img { object-fit: contain; padding: 4px; } 추가
 */
.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(26, 43, 72, 0.2);
    flex-shrink: 0;
}

/* 이미지 로고 (천성 공식 빌딩 로고)
   - 모든 영역에서 흰색 배경 + 살짝 라운드된 사각 테두리로 통일 (브랜드 일관성)
   - 라이트 배경에서는 자연스럽게 녹아들고, 다크 배경(푸터/사이드바)에서는 로고 가독성 ↑
*/
.logo-mark-img {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    object-fit: contain;
    padding: 4px;
}

/* 다크 배경(푸터/관리자 사이드바)에서는 그림자를 약간 강하게 — 떠보이는 효과 */
.site-footer .logo-mark-img,
.admin-sidebar .logo-mark-img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-navy);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--color-bg-alt);
    color: var(--color-navy);
    font-size: 1.2rem;
}

@media (max-width: 960px) {
    .nav-menu, .nav-cta { display: none; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; }

    .nav-menu.open {
        display: flex;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-white);
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--color-border);
    }
}

/* ==========================================================================
   Hero - Fullscreen Background Slider
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--color-white);
    background: var(--color-navy-dark);
}

.hero-fullscreen {
    padding: 140px 0 200px;
}

/* Slides */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s ease-in-out, transform 7s ease-out;
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Overlay - 가독성을 위한 그라디언트 마스크 */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(15, 27, 48, 0.88) 0%, rgba(26, 43, 72, 0.65) 50%, rgba(15, 27, 48, 0.55) 100%),
        radial-gradient(circle at 80% 30%, rgba(197, 160, 89, 0.18), transparent 50%);
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 820px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.35);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gold-light);
    letter-spacing: 0.05em;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 12px var(--color-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Single H1 with multi-line spans */
.hero h1 {
    color: var(--color-white);
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 28px;
    letter-spacing: -0.025em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero h1 .line-1,
.hero h1 .line-2,
.hero h1 .line-3 {
    display: block;
}

.hero h1 .accent {
    color: var(--color-gold);
    position: relative;
    display: inline-block;
}

.hero h1 .accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 10px;
    background: rgba(197, 160, 89, 0.3);
    z-index: -1;
}

.hero p.lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Hero Highlight Cards : 외벽 청소 / 옥상 도장방수 */
.hero-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 720px;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.highlight-card:hover::before {
    opacity: 1;
}

.highlight-card.primary {
    background: rgba(197, 160, 89, 0.18);
    border-color: rgba(197, 160, 89, 0.45);
}

.highlight-card.primary:hover {
    background: rgba(197, 160, 89, 0.28);
}

.highlight-card .hc-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.highlight-card.primary .hc-icon {
    background: var(--color-gold);
    color: var(--color-navy);
}

.highlight-card .hc-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.highlight-card .hc-text small {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-gold-light);
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.highlight-card .hc-text strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.highlight-card .hc-text span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.highlight-card .hc-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.highlight-card:hover .hc-arrow {
    color: var(--color-gold);
    transform: translateX(4px);
}

/* ========================================
 * Hero Signature (6 cards: 건물 3 + 아파트 3)
 * v2026.05.21
 * ======================================== */
.hero-signature {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 900px;
    margin-top: 8px;
}

.signature-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signature-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.signature-group-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent);
}

.sg-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: var(--color-white);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sg-label i {
    color: var(--color-gold-light);
    font-size: 0.9rem;
}

/* 아파트 그룹은 골드 톤으로 차별화 */
.sg-label-apt {
    background: rgba(197, 160, 89, 0.18);
    border-color: rgba(197, 160, 89, 0.4);
}

.sg-label-apt i {
    color: var(--color-gold);
}

/* v2026.05.28c: 그룹 내 2×2 그리드로 재설계
   - 데스크탑에서 한 그룹(건물/아파트)당 4카드를 2행 배치 → 카드 폭 넉넉 → 상세 카피 수용 가능
   - 이전 4열은 카드가 좁아 단어 절단·불균등 padding 문제 발생 → 2×2로 근본 해결
   - 카드 내부는 아이콘·텍스트 세로 중앙 정렬 유지 */
.signature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-items: stretch;
}

/* v2026.05.28c: 2×2 배치에 맞춘 카드 사이즈
   - 카드 폭이 넓어져 서브카피 2줄까지 자연스럽게 노출 가능
   - 높이 130px 통일 (서브카피 2줄 수용 + 상하 padding 균등)
   - 한글 단어 절단 방지 (word-break: keep-all) 유지 */
.hero-signature .highlight-card {
    padding: 20px 22px;
    gap: 16px;
    height: 130px; /* 8장 모두 고정 — 그룹 4카드 완전 균일 */
    min-height: 130px;
    box-sizing: border-box;
    align-items: center; /* 아이콘·텍스트 세로 중앙 정렬 */
}

.hero-signature .highlight-card .hc-icon {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    border-radius: 12px;
    margin-top: 0;
    flex-shrink: 0;
}

.hero-signature .highlight-card .hc-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0; /* flex overflow 방지 */
    /* 한글 타이포 표준: 단어 중간 절단 금지, 공백/구분자에서만 줄바꿈 */
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hero-signature .highlight-card .hc-text small {
    font-size: 0.7rem;
    margin-bottom: 5px;
    letter-spacing: 0.08em;
}

.hero-signature .highlight-card .hc-text strong {
    font-size: 1.02rem;
    line-height: 1.3;
    margin-bottom: 4px;
    /* 타이틀은 자연스러운 wrap 허용 — word-break: keep-all 덕에 단어 중간 안 잘림 */
}

.hero-signature .highlight-card .hc-text span {
    font-size: 0.8rem;
    line-height: 1.5;
    /* 서브카피 최대 2줄로 제한 (초과 시 ellipsis) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 화살표: 컴팩트 + hover 시 우측 슬라이드 */
.hero-signature .highlight-card .hc-arrow {
    font-size: 0.85rem;
    opacity: 0.4;
    align-self: center;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.hero-signature .highlight-card:hover .hc-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* 태블릿: 2×2 유지, 카드만 살짝 컴팩트
   v2026.05.28c: 기본이 이미 2×2이므로 breakpoint 단순화 (카드 사이즈만 반응형) */
@media (max-width: 900px) {
    .hero-signature .highlight-card {
        height: 120px;
        min-height: 120px;
        padding: 18px 18px;
        gap: 14px;
    }
    .hero-signature .highlight-card .hc-icon {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
    }
    .hero-signature .highlight-card .hc-text strong { font-size: 0.98rem; }
    .hero-signature .highlight-card .hc-text span { font-size: 0.76rem; }
}

/* 모바일: 1열 */
@media (max-width: 640px) {
    .hero-signature {
        gap: 18px;
    }
    .signature-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .hero-signature .highlight-card {
        padding: 16px 16px;
        height: auto; /* 모바일에서는 콘텐츠 높이 자동 */
        min-height: 90px;
    }
    /* 모바일에선 서브카피 2줄 제한 해제 (콘텐츠 전체 노출) */
    .hero-signature .highlight-card .hc-text span {
        -webkit-line-clamp: unset;
        display: block;
        overflow: visible;
    }
}

/* Slide Indicator */
.hero-indicator {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.indicator-dot.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.2);
}

/* Stats Bar (Bottom) */
.hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(15, 27, 48, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* DB 비동기 로드 중 폴백 숫자(120/450/98/24) 깜빡임 방지
   → JS가 DB 로드 완료 후 .ready 클래스를 토글하여 즉시 노출 (transition은 의도적으로 없음 — 자연스럽게 바로 표시)
   → 안전망: DB 로드 실패 시(or 2초 타임아웃) 폴백 그대로 노출 */
.hero-stats[data-dynamic-stats]:not(.ready) {
    visibility: hidden;
}

/* Hero lead 카피 안의 숫자(1,719/72,982)도 동일 원리:
   → 초기엔 숫자 자리만 invisible (글자 폭은 유지되어 레이아웃 시프트 0)
   → JS의 syncHeroLeadNumbers()가 DB 값 주입 후 .ready 토글
   → 2초 타임아웃 안전망: 응답 없으면 data-fallback 값으로 노출 */
.hero-lead-num:not(.ready) {
    visibility: hidden;
}

.hero-stats > div {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats > div:last-child { border-right: none; }

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-num span {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-left: 6px;
    font-weight: 700;
}

.stat-label {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Scroll Hint */
.hero-scroll-hint {
    position: absolute;
    left: 40px;
    bottom: 130px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    font-weight: 500;
}

.hero-scroll-hint .scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    position: relative;
    overflow: hidden;
}

.hero-scroll-hint .scroll-line::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--color-gold);
    animation: scrollDown 2.2s infinite;
}

@keyframes scrollDown {
    0% { top: -20px; }
    100% { top: 50px; }
}

@media (max-width: 960px) {
    .hero-fullscreen { padding: 120px 0 220px; }
    .hero-highlight { grid-template-columns: 1fr; }
    .hero-indicator { right: 20px; }
    .hero-scroll-hint { display: none; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .hero-stats > div:nth-child(2) { border-right: none; }
    .stat-num { font-size: 2.2rem; }
    .stat-num span { font-size: 1.1rem; }
    .stat-label { font-size: 0.95rem; margin-top: 10px; }
    .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
}

@media (max-width: 480px) {
    .hero-indicator { display: none; }
    .hero-stats-bar { padding: 18px 0; }
    .stat-label { font-size: 0.75rem; }
}

/* ==========================================================================
   Section: Core Value
   ========================================================================== */
.section {
    padding: 120px 0;
}

.section-tight {
    padding: 80px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.core-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.value-card {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    display: block;
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.value-card p {
    color: var(--color-text-sub);
    line-height: 1.75;
    font-size: 0.98rem;
}

.value-card .icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--color-bg-alt);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.value-card:hover .icon-wrap {
    background: var(--color-navy);
    color: var(--color-gold);
}

@media (max-width: 860px) {
    .core-value-grid { grid-template-columns: 1fr; }
    .section { padding: 80px 0; }
}

/* ==========================================================================
   Service Showcase Sections (SM / Apartment)
   ========================================================================== */
.service-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.service-showcase.reverse {
    direction: rtl;
}

.service-showcase.reverse > * {
    direction: ltr;
}

.showcase-visual {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.showcase-visual.sm-visual {
    background:
        linear-gradient(135deg, rgba(26, 43, 72, 0.85), rgba(26, 43, 72, 0.6)),
        linear-gradient(180deg, #2C3E5E 0%, #1A2B48 100%);
}

.showcase-visual.apt-visual {
    background:
        linear-gradient(135deg, rgba(76, 175, 80, 0.7), rgba(26, 43, 72, 0.7)),
        linear-gradient(180deg, #4CAF50 0%, #2C3E5E 100%);
}

.showcase-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(197,160,89,0.2), transparent 50%);
}

.showcase-visual .visual-label {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    padding: 10px 18px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 600;
}

.showcase-visual .visual-headline {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    z-index: 2;
    color: var(--color-white);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
}

.showcase-visual .visual-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 36px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-light);
    font-size: 3.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.showcase-content .keyword-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(197, 160, 89, 0.12);
    color: var(--color-gold);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

.showcase-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 20px 0 16px;
}

.showcase-content .tagline {
    color: var(--color-text-sub);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.service-list {
    display: grid;
    gap: 16px;
    margin-bottom: 36px;
}

.service-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.service-item:hover {
    border-color: var(--color-navy);
    transform: translateX(4px);
}

.service-item .si-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-bg-alt);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.service-item:hover .si-icon {
    background: var(--color-navy);
    color: var(--color-gold);
}

.service-item .si-text strong {
    display: block;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
    font-size: 0.98rem;
}

.service-item .si-text span {
    font-size: 0.9rem;
    color: var(--color-text-sub);
}

@media (max-width: 860px) {
    .service-showcase { grid-template-columns: 1fr; gap: 40px; }
    .service-showcase.reverse { direction: ltr; }
    .showcase-visual { aspect-ratio: 16/10; }
}

/* ==========================================================================
   MRO Section
   ========================================================================== */
.mro-section {
    background: var(--color-navy);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.mro-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--color-gold);
    opacity: 0.1;
    filter: blur(100px);
}

.mro-section .section-title { color: var(--color-white); }
.mro-section .section-eyebrow { color: var(--color-gold); }
.mro-section .section-subtitle { color: rgba(255,255,255,0.7); }

.mro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.mro-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
}

.mro-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--color-gold);
    transform: translateY(-4px);
}

.mro-card .mc-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(197, 160, 89, 0.15);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 22px;
}

.mro-card h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.mro-card p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 860px) {
    .mro-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .mro-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reference / Portfolio
   ========================================================================== */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ref-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    cursor: pointer;
}

.ref-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.ref-thumb {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
}

.ref-thumb.t-navy { background: linear-gradient(135deg, #1A2B48, #2C3E5E); }
.ref-thumb.t-green { background: linear-gradient(135deg, #4CAF50, #388E3C); }
.ref-thumb.t-gold { background: linear-gradient(135deg, #C5A059, #8B7340); }
.ref-thumb.t-mixed { background: linear-gradient(135deg, #1A2B48, #4CAF50); }
.ref-thumb.t-mixed2 { background: linear-gradient(135deg, #2C3E5E, #C5A059); }
.ref-thumb.t-deep { background: linear-gradient(135deg, #0F1B30, #1A2B48); }
.ref-thumb.t-coral { background: linear-gradient(135deg, #E07856, #B85B3F); }

.ref-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 50%),
        linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
}

.ref-thumb i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.3);
    font-size: 4rem;
    z-index: 1;
}

.ref-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 12px;
    background: rgba(255,255,255,0.95);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-navy);
}

.ref-body {
    padding: 24px;
}

.ref-body h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-navy);
    transition: color 0.3s ease;
}

.ref-card:hover .ref-body h4 {
    color: var(--color-gold);
}

.ref-body p {
    color: var(--color-text-sub);
    font-size: 0.9rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

.ref-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* (이전) .ref-meta .arrow hover 효과 → 클라이언트 필드 제거로 더이상 사용 안 함.
   대신 .ref-card:hover .ref-body h4가 골드로 전환됨 (위 정의 참조) */

@media (max-width: 860px) {
    .ref-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(197, 160, 89, 0.15), transparent 50%);
}

.cta-section .container { position: relative; z-index: 2; }

.cta-section h2 {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--color-navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

.footer-col h5 {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.footer-col ul a:hover { color: var(--color-gold); }

.footer-info {
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer-info strong {
    color: var(--color-white);
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Sub Page - Page Hero
   ========================================================================== */
.page-hero {
    padding: 160px 0 80px;
    background: var(--color-navy);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.page-hero .container { position: relative; z-index: 2; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.breadcrumb a:hover { color: var(--color-gold); }

.page-hero h1 {
    color: var(--color-white);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 18px;
}

.page-hero .lead {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    max-width: 720px;
    line-height: 1.7;
}

.page-hero .tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-hero .tag {
    padding: 6px 14px;
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--color-gold-light);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
}

/* ==========================================================================
   Category Block (Sub Pages)
   ========================================================================== */
.category-block {
    padding: 80px 0;
    border-bottom: 1px solid var(--color-border);
}

.category-block:last-child { border-bottom: none; }

.category-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 48px;
    align-items: start;
}

.category-label {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-navy);
    color: var(--color-gold);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.category-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
}

.category-head p {
    color: var(--color-text-sub);
    font-size: 1.05rem;
    line-height: 1.75;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.detail-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.detail-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
}

.detail-card:hover::after { transform: scaleX(1); }

.detail-card .dc-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--color-bg-alt);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 22px;
}

.detail-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.detail-card p {
    color: var(--color-text-sub);
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.detail-card ul {
    display: grid;
    gap: 8px;
}

.detail-card ul li {
    font-size: 0.88rem;
    color: var(--color-text);
    padding-left: 22px;
    position: relative;
}

.detail-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-green);
    font-size: 0.78rem;
}

@media (max-width: 860px) {
    .category-head { grid-template-columns: 1fr; gap: 24px; }
    .detail-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Process Steps
   ========================================================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    position: relative;
}

.process-step {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
}

.process-step .step-num {
    position: absolute;
    top: -16px;
    left: 28px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.process-step h5 {
    font-size: 1.05rem;
    margin: 14px 0 10px;
}

.process-step p {
    color: var(--color-text-sub);
    font-size: 0.88rem;
    line-height: 1.6;
}

@media (max-width: 860px) {
    .process-steps { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Filter / Portfolio Page
   ========================================================================== */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 100px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text-sub);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--color-navy);
    color: var(--color-navy);
}

.filter-btn.active {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}

/* ==========================================================================
   Contact Form (CTA on subpages)
   ========================================================================== */
.contact-block {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 56px;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.contact-block h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.contact-block p {
    color: var(--color-text-sub);
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact-list {
    display: grid;
    gap: 18px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-item .ci-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-bg-alt);
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item .ci-text small {
    display: block;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.contact-item .ci-text strong {
    font-size: 1rem;
    color: var(--color-navy);
    font-weight: 600;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-navy);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(26, 43, 72, 0.08);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 16px;
    margin-top: 4px;
}

@media (max-width: 860px) {
    .contact-block { grid-template-columns: 1fr; padding: 36px 28px; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reveal Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Sticky Floating CTA (전 페이지 공통)
   ========================================================================== */
.sticky-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.sticky-cta-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 26px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #B68940 100%);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 100px;
    box-shadow: 0 12px 32px rgba(197, 160, 89, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.sticky-cta-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.sticky-cta-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 40px rgba(197, 160, 89, 0.55), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.sticky-cta-main:hover::before {
    transform: translateX(100%);
}

.sticky-cta-main .pulse-ring {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-white);
    position: relative;
    flex-shrink: 0;
}

.sticky-cta-main .pulse-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    animation: pulseRing 1.8s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.7); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.sticky-cta-secondary {
    display: flex;
    gap: 8px;
}

.sticky-cta-mini {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 8px 20px rgba(26, 43, 72, 0.3);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.sticky-cta-mini:hover {
    background: var(--color-gold);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .sticky-cta { bottom: 20px; right: 20px; }
    .sticky-cta-main { padding: 14px 20px; font-size: 0.88rem; }
    .sticky-cta-main .label-full { display: none; }
}

/* ==========================================================================
   Unified Inquiry Modal (통합 문의 모달)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 48, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    max-width: 640px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 32px 36px 20px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.modal-header .eyebrow {
    color: var(--color-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.modal-header p {
    color: var(--color-text-sub);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-navy);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--color-navy);
    color: var(--color-white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px 36px 36px;
}

.modal-body .form-group {
    margin-bottom: 14px;
}

.modal-body .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.modal-body .form-group label .req {
    color: #E74C3C;
    margin-left: 3px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.88rem;
}

.checkbox-item:hover {
    border-color: var(--color-navy);
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    accent-color: var(--color-gold);
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: var(--color-navy);
    font-weight: 600;
}

.checkbox-item:has(input:checked) {
    background: rgba(197, 160, 89, 0.08);
    border-color: var(--color-gold);
}

.modal-footer-note {
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

.modal-footer-note i {
    color: var(--color-gold);
    margin-right: 6px;
}

@media (max-width: 600px) {
    .modal-header, .modal-body { padding-left: 24px; padding-right: 24px; }
    .checkbox-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   3x3 Reference Grid (메인 페이지 실적)
   ========================================================================== */
.ref-3x3-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ref-category-row {
    display: contents;
}

.ref-category-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    margin-bottom: 4px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-navy);
}

.ref-category-header:first-child {
    margin-top: 0;
}

.ref-category-header .cat-label {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ref-category-header .cat-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-navy);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;  /* 아이콘이 잘 보이도록 살짝 키움 */
}

.ref-category-header h3 {
    font-size: 1.15rem;
    margin: 0;
    color: var(--color-navy);
    letter-spacing: -0.01em;
}

.ref-category-header .cat-count {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

@media (max-width: 860px) {
    .ref-3x3-wrap { grid-template-columns: 1fr; }
}

@media (min-width: 861px) and (max-width: 1100px) {
    .ref-3x3-wrap { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Partners Infinite Slider (협력사 무한 슬라이더)
   ========================================================================== */
.partners-section {
    padding: 80px 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.partners-section .section-header {
    margin-bottom: 48px;
}

.partners-section .section-eyebrow {
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
}

.partners-section .dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.partners-section .dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-text-muted);
    opacity: 0.5;
}

.partners-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-align: center;
    color: var(--color-navy);
    font-weight: 700;
    margin-bottom: 0;
}

.partners-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.partners-track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: partnersScroll 40s linear infinite;
}

.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

@keyframes partnersScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-item {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

/* 호버 시 스케일 + 골드 보더 링 + 깊은 그림자로 부각 (톤 변경 없음) */
.partner-item:hover {
    border-color: var(--color-gold);
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 18px 36px rgba(26, 43, 72, 0.18), 0 0 0 3px rgba(212, 175, 55, 0.25);
    z-index: 2;
}

.partner-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    /* 평상시에도 선명 — grayscale/opacity 제거 */
    filter: none;
    opacity: 1;
    transition: transform 0.35s ease;
}

.partner-item:hover img {
    transform: scale(1.02);
}

.partner-item .partner-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-sub);
    text-align: center;
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.partner-item:hover .partner-text {
    color: var(--color-navy);
}

@media (max-width: 600px) {
    .partner-item { width: 140px; height: 80px; padding: 16px; }
    .partners-track { gap: 18px; }
}

/* ==========================================================================
   Admin Panel
   ========================================================================== */
.admin-body {
    background: #F4F6F9;
    min-height: 100vh;
    padding-top: 0;
}

.admin-header {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header .logo { color: var(--color-white); }
.admin-header .logo-text small { color: rgba(255, 255, 255, 0.5); }

.admin-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-header-actions .admin-user {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 8px;
}

.admin-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    background: var(--color-white);
    border-right: 1px solid var(--color-border);
    padding: 32px 16px;
}

.admin-nav {
    display: grid;
    gap: 4px;
}

.admin-nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-sub);
    font-weight: 500;
    font-size: 0.93rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    font-family: inherit;
}

.admin-nav button i {
    width: 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.admin-nav button:hover {
    background: var(--color-bg-alt);
    color: var(--color-navy);
}

.admin-nav button.active {
    background: var(--color-navy);
    color: var(--color-white);
}

.admin-nav button.active i {
    color: var(--color-gold);
}

.admin-main {
    padding: 32px 40px;
    overflow-x: auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-section-head h2 {
    font-size: 1.6rem;
    margin: 0;
}

.admin-section-head .head-meta {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.admin-table-wrap {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead {
    background: var(--color-bg-alt);
}

.admin-table th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 600;
    color: var(--color-navy);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 16px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(197, 160, 89, 0.04);
}

.admin-table .row-thumb {
    width: 60px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--color-bg-alt);
}

.admin-table .row-actions {
    display: flex;
    gap: 6px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-icon.edit {
    background: var(--color-bg-alt);
    color: var(--color-navy);
}

.btn-icon.edit:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.btn-icon.delete {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

.btn-icon.delete:hover {
    background: #E74C3C;
    color: var(--color-white);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-corporate { background: rgba(26, 43, 72, 0.1); color: var(--color-navy); }
.badge-residential { background: rgba(76, 175, 80, 0.12); color: var(--color-green-dark); }
.badge-public { background: rgba(197, 160, 89, 0.15); color: #8B6F30; }
.badge-new { background: rgba(231, 76, 60, 0.1); color: #E74C3C; }
.badge-contacted { background: rgba(76, 175, 80, 0.12); color: var(--color-green-dark); }
.badge-completed { background: rgba(26, 43, 72, 0.1); color: var(--color-navy); }
.badge-active { background: rgba(76, 175, 80, 0.12); color: var(--color-green-dark); }
.badge-inactive { background: var(--color-bg-alt); color: var(--color-text-muted); }

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card-admin {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-navy);
}

.stat-card-admin:nth-child(2) { border-left-color: var(--color-green); }
.stat-card-admin:nth-child(3) { border-left-color: var(--color-gold); }
.stat-card-admin:nth-child(4) { border-left-color: #E74C3C; }

.stat-card-admin .label {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.stat-card-admin .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1;
}

.admin-login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    padding: 20px;
}

.login-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.login-card .logo {
    justify-content: center;
    margin-bottom: 24px;
}

.login-card h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.login-card p {
    color: var(--color-text-sub);
    margin-bottom: 32px;
    font-size: 0.92rem;
}

.login-card .form-group {
    margin-bottom: 14px;
    text-align: left;
}

.login-card .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-navy);
}

.login-card .login-hint {
    margin-top: 18px;
    padding: 12px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

@media (max-width: 860px) {
    .admin-container { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .admin-main { padding: 24px 20px; }
}

/* ==========================================================================
   Admin CMS (admin.html) — Login Gate, Dashboard, Forms, Detail
   ========================================================================== */
.login-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A2B48 0%, #2C4373 100%);
    padding: 20px;
}
.login-gate .login-card {
    background: #fff;
    border-radius: 20px;
    padding: 44px 36px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
.login-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
    text-align: left;
}
.login-logo .logo-mark {
    width: 44px; height: 44px;
    background: var(--color-navy, #1A2B48);
    color: var(--color-gold, #C5A059);
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.login-logo strong { display:block; color: var(--color-navy, #1A2B48); font-size: 1rem; }
.login-logo small { color: var(--color-text-sub, #6B7280); font-size: 0.78rem; letter-spacing: 0.05em; }

.login-gate h2 {
    font-size: 1.4rem;
    margin: 0 0 6px;
    text-align: center;
    color: var(--color-navy, #1A2B48);
}
.login-desc {
    text-align: center;
    color: var(--color-text-sub, #6B7280);
    margin-bottom: 28px;
    font-size: 0.9rem;
}
.login-form .form-group { margin-bottom: 14px; text-align: left; }
.login-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-navy, #1A2B48);
}
.login-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border, #E5E7EB);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.login-form input:focus {
    outline: none;
    border-color: var(--color-navy, #1A2B48);
}
.login-error {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.btn-block { width: 100%; justify-content: center; }
.login-hint {
    margin-top: 18px;
    padding: 12px;
    background: var(--color-bg-alt, #F4F6F9);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--color-text-sub, #6B7280);
    line-height: 1.6;
}
.login-back {
    margin-top: 22px;
    text-align: center;
}
.login-back a {
    color: var(--color-text-muted, #9CA3AF);
    font-size: 0.85rem;
    text-decoration: none;
}
.login-back a:hover { color: var(--color-navy, #1A2B48); }

/* Admin Sidebar (full layout) */
.admin-container { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px;
    background: var(--color-navy, #1A2B48);
    color: #fff;
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    border-right: none;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}
.admin-brand .logo-mark {
    width: 38px; height: 38px;
    background: rgba(197, 160, 89, 0.18);
    color: var(--color-gold, #C5A059);
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.admin-brand strong { display:block; font-size: 0.95rem; }
.admin-brand small { display:block; color: rgba(255,255,255,0.5); font-size: 0.74rem; letter-spacing: 0.05em; }

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
    font-family: inherit;
}
.admin-nav-item i { width: 18px; text-align: center; }
.admin-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.admin-nav-item.active {
    background: rgba(197, 160, 89, 0.18);
    color: var(--color-gold, #C5A059);
}

.admin-foot {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    text-align: left;
}
.admin-link:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Admin Main */
.admin-main {
    flex: 1;
    padding: 36px 40px;
    background: #F4F6F9;
    overflow-x: auto;
}
.admin-view-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.admin-view-head h1 {
    font-size: 1.6rem;
    margin: 0 0 6px;
    color: var(--color-navy, #1A2B48);
}
.admin-view-head p {
    margin: 0;
    color: var(--color-text-sub, #6B7280);
    font-size: 0.9rem;
}

/* Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-card small {
    display: block;
    font-size: 0.82rem;
    color: var(--color-text-muted, #9CA3AF);
    margin-bottom: 4px;
}
.stat-card strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-navy, #1A2B48);
    line-height: 1;
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}
.stat-blue { background: linear-gradient(135deg, #1A2B48, #2C4373); }
.stat-green { background: linear-gradient(135deg, #4CAF50, #6FBC73); }
.stat-gold { background: linear-gradient(135deg, #C5A059, #D8B670); }
.stat-red { background: linear-gradient(135deg, #E74C3C, #F26E5E); }

/* Admin Card */
.admin-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 20px;
}
.admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border, #E5E7EB);
}
.admin-card-head h3 { margin: 0; font-size: 1.05rem; color: var(--color-navy, #1A2B48); }
.admin-card-head .muted { font-size: 13px; color: #6b7280; }

/* Backup / Restore status boxes (v28h) */
.backup-status {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    line-height: 1.6;
    font-size: 14px;
    word-break: keep-all;
}
.backup-status--info    { background: #eef4ff; border: 1px solid #b8ccf0; color: #1e3a76; }
.backup-status--success { background: #eafaf1; border: 1px solid #a5d9b8; color: #1e5a35; }
.backup-status--error   { background: #fdecec; border: 1px solid #f0b8b8; color: #8a1e1e; }

.recent-list { padding: 8px 0; }
.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-border, #E5E7EB);
    gap: 12px;
    flex-wrap: wrap;
}
.recent-item:last-child { border-bottom: none; }
.recent-item small { color: var(--color-text-muted, #9CA3AF); margin-left: 8px; font-size: 0.82rem; }

/* Admin Table refinement */
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table thead { background: var(--color-bg-alt, #F4F6F9); }
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--color-navy, #1A2B48);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.admin-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--color-border, #E5E7EB);
    color: var(--color-text, #1F2937);
    vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(197, 160, 89, 0.04); }
.admin-table .thumb {
    width: 60px; height: 44px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--color-bg-alt, #F4F6F9);
}
.admin-table .thumb-logo { object-fit: contain; padding: 4px; background: #fff; border: 1px solid var(--color-border, #E5E7EB); }
.admin-table .actions { display: flex; gap: 6px; white-space: nowrap; }

/* Icon buttons */
.btn-icon {
    width: 32px; height: 32px;
    border-radius: 6px;
    border: 1px solid var(--color-border, #E5E7EB);
    background: #fff;
    color: var(--color-text-sub, #6B7280);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.btn-icon:hover { background: var(--color-navy, #1A2B48); color: #fff; border-color: var(--color-navy, #1A2B48); }
.btn-icon-danger:hover { background: #E74C3C; border-color: #E74C3C; }

/* Status select inline */
.status-select {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid var(--color-border, #E5E7EB);
    font-size: 0.82rem;
    background: #fff;
    font-family: inherit;
}
.admin-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--color-border, #E5E7EB);
    font-size: 0.88rem;
    background: #fff;
    font-family: inherit;
}
.filter-row { display: flex; gap: 8px; }

/* Badge additions */
.badge-archived { background: rgba(107, 114, 128, 0.15); color: #6B7280; }

/* Modal form layout (admin) */
.modal-form { padding: 24px 28px; }
.modal-form .form-group { margin-bottom: 14px; }
.modal-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-navy, #1A2B48);
}
.modal-form .form-group input,
.modal-form .form-group select,
.modal-form .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border, #E5E7EB);
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
}
.modal-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid var(--color-border, #E5E7EB);
}
.modal-head h3 { margin: 0; color: var(--color-navy, #1A2B48); }
.modal-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--color-text-muted, #9CA3AF);
    cursor: pointer;
}
.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border, #E5E7EB);
    margin-top: 18px;
}
.btn-ghost {
    background: transparent;
    border: 1px solid var(--color-border, #E5E7EB);
    color: var(--color-text-sub, #6B7280);
}
.btn-ghost:hover { background: var(--color-bg-alt, #F4F6F9); }
.btn-link {
    background: transparent;
    border: none;
    color: var(--color-navy, #1A2B48);
    cursor: pointer;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: 600;
}

/* Detail definition list */
.detail-dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 18px;
    margin: 0 0 20px;
}
.detail-dl dt {
    font-size: 0.82rem;
    color: var(--color-text-muted, #9CA3AF);
    font-weight: 600;
}
.detail-dl dd {
    margin: 0;
    color: var(--color-text, #1F2937);
    font-size: 0.92rem;
}
.detail-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border, #E5E7EB);
    flex-wrap: wrap;
}

/* ==========================================================================
   Admin — Image URL Guide & Preview (실적/협력사 등록 폼)
   ========================================================================== */
.image-url-group label {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.info-toggle {
    background: rgba(26, 43, 72, 0.08);
    border: none;
    color: var(--color-navy, #1A2B48);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 100px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    font-family: inherit;
}
.info-toggle:hover {
    background: var(--color-navy, #1A2B48);
    color: #fff;
}
.info-toggle.open {
    background: var(--color-gold, #C5A059);
    color: #fff;
}

.img-guide {
    margin: 10px 0 14px;
    background: #FFFBEF;
    border: 1px solid #F5E5B8;
    border-radius: 10px;
    padding: 16px 18px;
    animation: guideSlide 0.25s ease;
}
@keyframes guideSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.img-guide .guide-title {
    margin: 0 0 12px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #8B6F30;
    display: flex;
    align-items: center;
    gap: 6px;
}
.img-guide .guide-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.img-guide .guide-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    border-left: 3px solid var(--color-border, #E5E7EB);
}
.img-guide .guide-row.ok { border-left-color: #4CAF50; }
.img-guide .guide-row.ng { border-left-color: #E74C3C; }
.img-guide .guide-row > i {
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.img-guide .guide-row.ok > i { color: #4CAF50; }
.img-guide .guide-row.ng > i { color: #E74C3C; }
.img-guide .guide-row strong {
    display: block;
    font-size: 0.88rem;
    color: var(--color-navy, #1A2B48);
    margin-bottom: 3px;
}
.img-guide .guide-row small {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-sub, #6B7280);
    line-height: 1.55;
}
.img-guide .guide-row code {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.75rem;
    padding: 2px 8px;
    background: #F4F6F9;
    border-radius: 4px;
    color: #4B5563;
    font-family: 'Menlo', 'Consolas', monospace;
    word-break: break-all;
}
.img-guide .guide-foot {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px dashed #F5E5B8;
    font-size: 0.78rem;
    color: #8B6F30;
}

/* Preview Box */
.img-preview-box {
    margin-top: 10px;
    min-height: 140px;
    border-radius: 10px;
    border: 1.5px dashed var(--color-border, #E5E7EB);
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.25s ease;
}
.img-preview-box.success {
    border-color: #4CAF50;
    border-style: solid;
    background: rgba(76, 175, 80, 0.04);
}
.img-preview-box.error {
    border-color: #E74C3C;
    border-style: solid;
    background: rgba(231, 76, 60, 0.04);
}
.img-preview-box.loading {
    border-color: var(--color-gold, #C5A059);
    border-style: dashed;
}
.img-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted, #9CA3AF);
    padding: 24px;
    text-align: center;
}
.img-preview-placeholder i {
    font-size: 1.8rem;
    opacity: 0.5;
}
.img-preview-placeholder span {
    font-size: 0.85rem;
}

.preview-success {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.preview-success img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}
.preview-success .preview-meta {
    padding: 10px 14px;
    background: #4CAF50;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 로고 미리보기는 contain 비율 유지 */
.img-preview-logo.success .preview-success img {
    max-height: 140px;
    object-fit: contain;
    background: #fff;
    padding: 14px;
}

.preview-warn {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    align-items: flex-start;
}
.preview-warn > i {
    color: #E74C3C;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.preview-warn strong {
    display: block;
    color: #C0392B;
    font-size: 0.92rem;
    margin-bottom: 6px;
}
.preview-warn p {
    margin: 0;
    color: var(--color-text-sub, #6B7280);
    font-size: 0.82rem;
    line-height: 1.6;
}
.preview-warn p b {
    color: var(--color-navy, #1A2B48);
}

@media (max-width: 600px) {
    .image-url-group label { flex-direction: column; align-items: flex-start; }
    .img-guide .guide-row { flex-direction: row; }
}

/* ==========================================================================
   문의 접수 완료 안내 토스트 (Inquiry Success Toast)
   ========================================================================== */
.inquiry-success-toast {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.inquiry-success-toast.open {
    display: flex;
    opacity: 1;
    animation: toastFadeIn 0.3s ease;
}
.inquiry-success-toast .toast-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.inquiry-success-toast .toast-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #6FBC73);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: 0 12px 32px rgba(76, 175, 80, 0.3);
}
.inquiry-success-toast h4 {
    font-size: 1.25rem;
    margin: 0 0 12px;
    color: var(--color-navy, #1A2B48);
    font-weight: 700;
}
.inquiry-success-toast p {
    margin: 0 0 24px;
    color: var(--color-text-sub, #6B7280);
    font-size: 0.92rem;
    line-height: 1.7;
}
.inquiry-success-toast p strong {
    color: var(--color-navy, #1A2B48);
    font-weight: 600;
}
.inquiry-success-toast .btn {
    min-width: 120px;
}
@keyframes toastFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes toastSlideUp {
    from { transform: translateY(30px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Admin Modal (독립 네임스페이스, 메인 .modal-overlay와 충돌 방지) */
.admin-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 99999;
    padding: 20px;
    /* 기본: 완전히 숨김 (DOM 흐름에서 제외) */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    overflow-y: auto;
}
.admin-modal-overlay.open {
    display: flex;
    opacity: 1;
}
.admin-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s ease;
    overflow: hidden;
}
.admin-modal-overlay.open .admin-modal {
    transform: translateY(0) scale(1);
}
.admin-modal .modal-head {
    flex-shrink: 0;
}
.admin-modal .modal-form {
    overflow-y: auto;
    flex: 1;
}
.admin-modal .modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-text-muted, #9CA3AF);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}
.admin-modal .modal-close:hover {
    background: var(--color-bg-alt, #F4F6F9);
    color: var(--color-navy, #1A2B48);
}

/* Admin responsive */
@media (max-width: 860px) {
    .admin-container { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        padding: 12px;
        overflow-x: auto;
    }
    .admin-brand { padding: 0 8px; border-bottom: none; margin-bottom: 0; border-right: 1px solid rgba(255,255,255,0.1); padding-right: 12px; }
    .admin-nav { flex-direction: row; }
    .admin-foot { flex-direction: row; border-top: none; padding-top: 0; }
    .admin-main { padding: 24px 16px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .modal-form .form-row { grid-template-columns: 1fr; }
    .detail-dl { grid-template-columns: 1fr; gap: 4px 0; }
    .detail-dl dt { margin-top: 8px; }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.hide { display: none !important; }
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}
