/**
 * 외벽방수 페이지 스타일
 * 근영방수 - wall.css
 */

/* ========================================
   CSS Variables
======================================== */
:root {
    /* Colors */
    --color-primary: #0047AB;
    --color-primary-dark: #003580;
    --color-primary-light: #E8F0FE;
    --color-accent: #FFD100;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-bg: #ffffff;
    --color-bg-gray: #f8f9fa;
    --color-border: #e0e0e0;
    
    /* Target Colors */
    --color-direct: #0047AB;
    --color-business: #6B46C1;
    
    /* Typography */
    --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Target-specific theming */
[data-target="direct"] {
    --color-theme: var(--color-direct);
}

[data-target="business"] {
    --color-theme: var(--color-business);
}

/* ========================================
   Reset & Base
======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

ul, ol {
    list-style: none;
}

/* ========================================
   Layout
======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ========================================
   Section Header
======================================== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
}

/* ========================================
   SECTION 1: HERO
======================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    background: var(--color-text);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: calc(100% - 100px);
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 100%
    );
}

.slide-content {
    position: absolute;
    bottom: 120px;
    left: 0;
    width: 100%;
    padding: 0 40px;
    color: #fff;
    z-index: 2;
}

.hero-title {
	color:white;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 10;
}

.hero-prev,
.hero-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255,255,255,0.3);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Hero Stats */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    border-top: 1px solid var(--color-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-theme, var(--color-primary));
}

.stat-suffix {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-theme, var(--color-primary));
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ========================================
   SECTION 2: PROBLEM
======================================== */
.problem-section {
    padding: var(--section-padding);
    background: var(--color-bg-gray);
}

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

.problem-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.problem-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.problem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.problem-card:hover .problem-image img {
    transform: scale(1.05);
}

.problem-text {
    padding: 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
}

/* ========================================
   SECTION 3: SOLUTION
======================================== */
.solution-section {
    padding: var(--section-padding);
}

.solution-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-bg-gray);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--color-theme, var(--color-primary));
    background: var(--color-primary-light);
}

.tab-btn.active {
    color: #fff;
    background: var(--color-theme, var(--color-primary));
}

.tab-icon {
    width: 20px;
    height: 20px;
}

/* Solution Content */
.solution-content {
    display: none;
}

.solution-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.solution-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.solution-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.solution-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.solution-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

.solution-desc {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.solution-fits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.solution-fits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--color-text);
}

.solution-fits li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--color-theme, var(--color-primary));
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* ========================================
   SECTION 4: PROCESS
======================================== */
.process-section {
    padding: var(--section-padding);
    background: var(--color-bg-gray);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.process-step {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

.process-step:hover {
    transform: translateY(-4px);
}

.process-step.highlight {
    box-shadow: 0 0 0 3px var(--color-theme, var(--color-primary)), var(--shadow-md);
}

.step-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-info {
    padding: 24px;
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-theme, var(--color-primary));
    margin-bottom: 8px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--color-text-light);
}

.step-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--color-theme, var(--color-primary));
    border-radius: 20px;
}

/* Process Keypoint */
.process-keypoint {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--color-bg);
    border-left: 4px solid var(--color-theme, var(--color-primary));
}

.keypoint-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.keypoint-icon svg {
    width: 100%;
    height: 100%;
    color: var(--color-theme, var(--color-primary));
}

.keypoint-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
}

.keypoint-text strong {
    font-size: 18px;
    color: var(--color-theme, var(--color-primary));
}

/* ========================================
   SECTION 5: PORTFOLIO
======================================== */
.portfolio-section {
    padding: var(--section-padding);
}

.portfolio-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-slides {
    overflow: hidden;
}

.portfolio-slide {
    display: none;
}

.portfolio-slide.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.ba-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.ba-before,
.ba-after {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ba-before img,
.ba-after img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.ba-label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
}

.ba-after .ba-label {
    background: var(--color-theme, var(--color-primary));
}

.portfolio-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.portfolio-location {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.portfolio-work {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Portfolio Controls */
.portfolio-prev,
.portfolio-next {
    position: absolute;
    top: 50%;
    transform: translateY(-100%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all var(--transition-fast);
    z-index: 10;
}

.portfolio-prev {
    left: -24px;
}

.portfolio-next {
    right: -24px;
}

.portfolio-prev:hover,
.portfolio-next:hover {
    background: var(--color-theme, var(--color-primary));
    color: #fff;
}

.portfolio-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.portfolio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.portfolio-dot.active {
    background: var(--color-theme, var(--color-primary));
    transform: scale(1.2);
}

/* ========================================
   SECTION 6: CTA
======================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-theme, var(--color-primary)) 0%, var(--color-primary-dark) 100%);
}

.cta-content {
    text-align: center;
    color: #fff;
}

.cta-title {
	color:white;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.cta-btn-primary {
    background: #fff;
    color: var(--color-theme, var(--color-primary));
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.cta-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

.cta-icon {
    width: 22px;
    height: 22px;
}

.cta-notice {
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   Responsive Design
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-stats {
        gap: 48px;
    }
    
    .stat-number {
        font-size: 30px;
    }
    
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solution-layout {
        gap: 32px;
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-prev {
        left: 16px;
    }
    
    .portfolio-next {
        right: 16px;
    }
}
/* ========================================
   Responsive Design - REFACTORED
   PC 버전 유지, 모바일만 개선
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-stats {
        gap: 48px;
    }
    
    .stat-number {
        font-size: 30px;
    }
    
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solution-layout {
        gap: 32px;
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-prev {
        left: 16px;
    }
    
    .portfolio-next {
        right: 16px;
    }
}

/* ========================================
   MOBILE (768px 이하) - 완전 리팩토링
======================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 48px 0;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Section Header */
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: 24px;
        line-height: 1.35;
        word-break: keep-all;
    }
    
    .section-subtitle {
        font-size: 15px;
        margin-top: 8px;
    }
    
    /* ========================================
       HERO SECTION - Mobile
    ======================================== */
    .hero-section {
        height: auto;
        min-height: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
    }
    
    .hero-slider {
        height: 55vh;
        min-height: 320px;
        max-height: 450px;
    }
    
    .slide-content {
        bottom: 60px;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.35;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Hero Controls - 터치 영역 확대 */
    .hero-controls {
        bottom: 16px;
        gap: 16px;
    }
    
    .hero-prev,
    .hero-next {
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.25);
    }
    
    .hero-prev svg,
    .hero-next svg {
        width: 20px;
        height: 20px;
    }
    
    .hero-dot {
        width: 8px;
        height: 8px;
        /* 터치 영역 확보 */
        padding: 8px;
        margin: -8px;
        background-clip: content-box;
    }
    
    /* Hero Stats - 모바일 최적화 */
    .hero-stats {
        position: relative;
        height: auto;
        padding: 20px 16px;
        gap: 0;
        justify-content: space-around;
        flex-wrap: nowrap;
    }
    
    .stat-item {
        flex: 1;
        text-align: center;
        padding: 0 8px;
        position: relative;
    }
    
    /* 구분선 추가 */
    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 40px;
        background: var(--color-border);
    }
    
    .stat-number {
        font-size: 26px;
        display: inline;
    }
    
    .stat-suffix {
        font-size: 14px;
        display: inline;
    }
    
    .stat-label {
        font-size: 11px;
        margin-top: 2px;
        color: var(--color-text-muted);
    }
    
    /* ========================================
       PROBLEM SECTION - Mobile
    ======================================== */
    .problem-section {
        padding: 48px 0;
    }
    
    /* 2열 그리드 유지 - 스크롤 줄이기 */
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .problem-card {
        border-radius: 10px;
    }
    
    .problem-image {
        aspect-ratio: 1/1;
    }
    
    .problem-text {
        padding: 12px 10px;
        font-size: 13px;
        line-height: 1.4;
        word-break: keep-all;
    }
    
    /* ========================================
       SOLUTION SECTION - Mobile
    ======================================== */
    .solution-section {
        padding: 48px 0;
    }
    
    /* 탭 - 가로 스크롤 방식 */
    .solution-tabs {
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin-bottom: 24px;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .solution-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex-shrink: 0;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 24px;
        min-height: 44px;
    }
    
    .tab-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Solution Content */
    .solution-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .solution-image {
        border-radius: 12px;
    }
    
    .solution-image img {
        aspect-ratio: 16/10;
    }
    
    .solution-info {
        padding: 0 4px;
    }
    
    .solution-name {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .solution-desc {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.7;
    }
    
    .solution-fits {
        gap: 10px;
    }
    
    .solution-fits li {
        font-size: 14px;
        gap: 10px;
    }
    
    .solution-fits li::before {
        width: 18px;
        height: 18px;
        background-size: 10px;
    }
    
    /* ========================================
       PROCESS SECTION - Mobile
       카드형 → 타임라인 스타일로 변경
    ======================================== */
    .process-section {
        padding: 48px 0;
    }
    
    .process-timeline {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 32px;
        position: relative;
        padding-left: 24px;
    }
    
    /* 좌측 연결선 */
    .process-timeline::before {
        content: '';
        position: absolute;
        left: 6px;
        top: 24px;
        bottom: 24px;
        width: 2px;
        background: var(--color-border);
    }
    
    .process-step {
        display: flex;
        gap: 16px;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 12px 0;
        position: relative;
    }
    
    .process-step:hover {
        transform: none;
    }
    
    /* 타임라인 dot */
    .process-step::before {
        content: '';
        position: absolute;
        left: -24px;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 14px;
        height: 14px;
        background: var(--color-bg);
        border: 3px solid var(--color-theme, var(--color-primary));
        border-radius: 50%;
        z-index: 1;
    }
    
    .process-step.highlight::before {
        width: 18px;
        height: 18px;
        background: var(--color-theme, var(--color-primary));
        border-color: var(--color-theme, var(--color-primary));
    }
    
    .process-step.highlight {
        box-shadow: none;
    }
    
    .step-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        border-radius: 10px;
        overflow: hidden;
        aspect-ratio: 1/1;
    }
    
    .step-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .step-info {
        flex: 1;
        padding: 0;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .step-number {
        font-size: 11px;
        margin-bottom: 2px;
        opacity: 0.8;
    }
    
    .step-title {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .step-desc {
        font-size: 13px;
        color: var(--color-text-light);
    }
    
    .step-badge {
        display: inline-block;
        margin-top: 6px;
        padding: 4px 10px;
        font-size: 10px;
        align-self: flex-start;
    }
    
    /* Process Keypoint */
    .process-keypoint {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 24px 20px;
        border-left: none;
        border-top: 3px solid var(--color-theme, var(--color-primary));
        background: var(--color-bg);
    }
    
    .keypoint-icon {
        width: 48px;
        height: 48px;
    }
    
    .keypoint-text {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .keypoint-text strong {
        font-size: 15px;
        display: block;
        margin-bottom: 8px;
    }
    
    /* ========================================
       PORTFOLIO SECTION - Mobile
    ======================================== */
    .portfolio-section {
        padding: 48px 0;
    }
    
    .portfolio-slider {
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .ba-comparison {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .ba-before,
    .ba-after {
        border-radius: 8px;
    }
    
    .ba-before img,
    .ba-after img {
        aspect-ratio: 3/4;
    }
    
    .ba-label {
        top: 8px;
        left: 8px;
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .portfolio-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 4px;
    }
    
    .portfolio-location {
        font-size: 14px;
    }
    
    .portfolio-work {
        font-size: 13px;
    }
    
    /* 모바일에서 화살표 숨기고 dots로 대체 */
    .portfolio-prev,
    .portfolio-next {
        display: none;
    }
    
    .portfolio-dots {
        margin-top: 16px;
    }
    
    .portfolio-dot {
        width: 8px;
        height: 8px;
        /* 터치 영역 */
        padding: 10px;
        margin: -10px;
        background-clip: content-box;
    }
    
    /* ========================================
       CTA SECTION - Mobile
    ======================================== */
    .cta-section {
        padding: 56px 0;
    }
    
    .cta-title {
        font-size: 24px;
        line-height: 1.4;
        word-break: keep-all;
        margin-bottom: 8px;
    }
    
    .cta-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 8px;
    }
    
    .cta-btn {
        justify-content: center;
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 10px;
        min-height: 52px;
    }
    
    .cta-icon {
        width: 20px;
        height: 20px;
    }
    
    .cta-notice {
        font-size: 12px;
        margin-top: 20px;
    }
}

/* ========================================
   SMALL MOBILE (480px 이하)
======================================== */
@media (max-width: 480px) {
    :root {
        --section-padding: 40px 0;
    }
    
    .container {
        padding: 0 14px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    /* Hero */
    .hero-slider {
        height: 50vh;
        min-height: 280px;
        max-height: 380px;
    }
    
    .slide-content {
        bottom: 50px;
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .hero-stats {
        padding: 16px 12px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .stat-suffix {
        font-size: 12px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    /* Problem */
    .problem-grid {
        gap: 10px;
    }
    
    .problem-text {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    /* Solution */
    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .solution-name {
        font-size: 20px;
    }
    
    .solution-desc {
        font-size: 14px;
    }
    
    .solution-fits li {
        font-size: 13px;
    }
    
    /* Process */
    .process-timeline {
        padding-left: 20px;
    }
    
    .process-step::before {
        left: -20px;
    }
    
    .step-image {
        width: 70px;
        height: 70px;
    }
    
    .step-title {
        font-size: 15px;
    }
    
    .step-desc {
        font-size: 12px;
    }
    
    /* Portfolio */
    .ba-comparison {
        gap: 6px;
    }
    
    .portfolio-location {
        font-size: 13px;
    }
    
    /* CTA */
    .cta-title {
        font-size: 22px;
    }
    
    .cta-btn {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
    }
}

/* ========================================
   LANDSCAPE MODE (가로 모드 대응)
======================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-slider {
        height: 70vh;
        min-height: 260px;
    }
    
    .hero-stats {
        padding: 16px;
    }
    
    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-timeline {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding-left: 0;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-step::before {
        display: none;
    }
    
    .process-step {
        flex-direction: column;
        background: var(--color-bg);
        padding: 12px;
        border-radius: 10px;
        box-shadow: var(--shadow-sm);
    }
    
    .step-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .step-info {
        text-align: center;
        padding-top: 12px;
    }
}

/* ========================================
   SAFE AREA (노치 대응)
======================================== */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .cta-section {
            padding-bottom: max(56px, calc(56px + env(safe-area-inset-bottom)));
        }
    }
}

/* ========================================
   Utilities & Animations (변경 없음)
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}


/* ========================================
   SECTION 5: PORTFOLIO (시공 사례)
======================================== */
.wall-portfolio {
    padding: var(--section-padding);
    background: var(--color-bg-gray);
}

.wall-portfolio .section-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wall-portfolio .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.wall-portfolio .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.wall-portfolio .section-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
}

.portfolio-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.portfolio-case-card {
    display: block;
    background: #fff;
    border: 2px solid var(--color-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.portfolio-case-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.portfolio-case-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.portfolio-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-case-card:hover .portfolio-case-image img {
    transform: scale(1.05);
}

.portfolio-case-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.portfolio-case-card:hover .portfolio-case-overlay {
    opacity: 1;
}

.portfolio-case-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text);
    backdrop-filter: blur(8px);
}

.portfolio-case-info {
    padding: 1.5rem;
}

.portfolio-case-location {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.portfolio-case-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.625rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.portfolio-case-card:hover .portfolio-case-title {
    color: var(--color-primary);
}

.portfolio-case-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-case-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: gap 0.2s ease;
}

.portfolio-case-card:hover .portfolio-case-more {
    gap: 0.625rem;
}

.portfolio-case-all {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: #fff;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-view-all svg {
    transition: transform 0.2s ease;
}

.btn-view-all:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .wall-portfolio {
        padding: 3.5rem 0;
    }

    .portfolio-case-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .portfolio-case-info {
        padding: 1.25rem;
    }

    .portfolio-case-title {
        font-size: 1.1rem;
    }

    .portfolio-case-desc {
        font-size: 0.85rem;
    }

    .portfolio-case-all {
        margin-top: 2rem;
    }

    .btn-view-all {
        width: 100%;
        justify-content: center;
        padding: 0.95rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .portfolio-case-image {
        aspect-ratio: 16 / 9;
    }

    .portfolio-case-info {
        padding: 1rem;
    }

    .portfolio-case-title {
        font-size: 1rem;
    }
}

/* ========================================
   Utilities & Animations
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
