/* =========================================
   홍천군 선관위 옥상 폴리우레아 방수 시공사례
   hongcheon_rooftop.css
   
   원본 Tailwind 디자인을 순수 CSS로 1:1 변환
   .hc 스코프로 기존 페이지 충돌 방지
   ========================================= */

/* --- 변수 --- */
.hc {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --bg-base: #FFFFFF;
    --bg-sub: #F8FAFC;
    --text-main: #1E293B;
    --text-sub: #64748B;
    --border-color: #E2E8F0;
    --red-50: #FEF2F2;
    --red-500: #EF4444;
    --red-600: #DC2626;
    --yellow-50: #FEFCE8;
    --yellow-300: #FDE047;
    --yellow-400: #FACC15;
    --yellow-500: #EAB308;
    --yellow-700: #A16207;
    --blue-50: #EFF6FF;
    --blue-600: #2563EB;
    --indigo-50: #EEF2FF;
    --indigo-700: #4338CA;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-800: #1F2937;
}

.hc {
    font-family: 'Pretendard', sans-serif;
    color: var(--text-main);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
}

.hc *, .hc *::before, .hc *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* --- 유틸리티 --- */
.hc-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.hc-section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.hc-py-24 {
    padding-top: 96px;
    padding-bottom: 96px;
}

.hc-py-20 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.hc-center { text-align: center; }
.hc-mb-6 { margin-bottom: 24px; }
.hc-mb-10 { margin-bottom: 40px; }
.hc-mb-12 { margin-bottom: 48px; }
.hc-mb-16 { margin-bottom: 64px; }

.hc-section-gray {
    background: var(--bg-sub);
    padding-top: 80px;
    padding-bottom: 80px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.hc-text-primary { color: var(--primary); }
.hc-primary-bold { color: var(--primary); font-weight: 700; }

/* =========================================
   Header
   ========================================= */
.hc-header {
    padding-top: 80px;
    padding-bottom: 120px;
    text-align: center;
}

.hc-case-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-sub);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    color: var(--text-sub);
    font-size: 14px;
    margin-bottom: 24px;
}

.hc-page-title {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 48px;
    word-break: keep-all;
}

.hc-tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hc-tag {
    padding: 8px 16px;
    background: var(--bg-sub);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 500;
}

/* =========================================
   인트로 인용
   ========================================= */
.hc-intro-quote {
    background: var(--blue-50);
    border-left: 4px solid var(--primary);
    padding: 32px;
    border-radius: 0 16px 16px 0;
    margin-bottom: 80px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.hc-intro-quote-text {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.6;
    font-style: italic;
}

.hc-intro-quote-author {
    color: var(--text-sub);
    font-size: 14px;
}

.hc-intro-image {
    text-align: center;
    margin-bottom: 32px;
}

.hc-hero-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
}

.hc-caption {
    text-align: center;
    font-size: 14px;
    color: var(--text-sub);
    margin-top: 12px;
}

/* =========================================
   현장 정보
   ========================================= */
.hc-heading-2 {
    font-size: 28px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
}

.hc-heading-3 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.hc-heading-4 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.hc-info-flex {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.hc-info-half {
    width: 100%;
}

.hc-info-table {
    width: 100%;
    font-size: 14px;
    text-align: left;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
}

.hc-info-table th,
.hc-info-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.hc-info-table tr:last-child th,
.hc-info-table tr:last-child td {
    border-bottom: none;
}

.hc-info-table th {
    background: rgba(37, 99, 235, 0.05);
    font-weight: 600;
    color: var(--text-main);
    width: 30%;
}

.hc-info-table td {
    color: var(--text-sub);
}

.hc-info-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.hc-table-wrap {
    overflow-x: auto;
}

/* =========================================
   2칼럼 그리드
   ========================================= */
.hc-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.hc-grid-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

/* =========================================
   경고 박스
   ========================================= */
.hc-warning-box {
    background: var(--red-50);
    border-left: 4px solid var(--red-500);
    padding: 24px;
    border-radius: 0 8px 8px 0;
}

.hc-warning-title {
    font-weight: 700;
    color: var(--red-600);
    margin-bottom: 12px;
    font-size: 18px;
}

.hc-warning-list {
    list-style: disc;
    list-style-position: inside;
    color: var(--text-main);
}

.hc-warning-list li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.hc-warning-list strong {
    color: var(--text-main);
}

/* =========================================
   공법 선택
   ========================================= */
.hc-method-highlight {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}

.hc-method-desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-sub);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    word-break: keep-all;
}

.hc-method-desc strong {
    color: var(--text-main);
    font-weight: 600;
}

.hc-diagram-img {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
}

/* =========================================
   시공 과정
   ========================================= */
.hc-process-list {
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.hc-step-row {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
}

.hc-step-text {
    width: 100%;
    padding-top: 16px;
}

.hc-step-number {
    display: block;
    font-size: 60px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 8px;
    line-height: 1;
    transition: opacity 0.3s;
}

.hc-step.group:hover .hc-step-number {
    opacity: 1;
}

.hc-step-desc {
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 16px;
}

.hc-step-desc strong {
    color: var(--text-main);
    font-weight: 600;
}

.hc-step-images {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =========================================
   돌발 상황 (우천)
   ========================================= */
.hc-rain-box {
    background: var(--yellow-50);
    border-left: 4px solid var(--yellow-500);
    padding: 32px;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.hc-rain-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--yellow-700);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hc-rain-icon {
    font-size: 30px;
}

.hc-rain-desc {
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 16px;
}

.hc-rain-desc strong {
    color: var(--text-main);
    font-weight: 700;
}

.hc-rain-tip {
    margin-top: 24px;
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 2px solid var(--yellow-300);
}

.hc-rain-tip-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 8px;
}

.hc-rain-tip-text {
    color: var(--text-sub);
    line-height: 1.7;
    font-size: 15px;
}

/* =========================================
   왜 저희였나?
   ========================================= */
.hc-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.hc-why-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.hc-why-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
    border-color: rgba(37, 99, 235, 0.4);
}

.hc-why-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.hc-why-desc {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================
   Before & After
   ========================================= */
.hc-ba-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hc-ba-frame {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.hc-ba-frame-before {
    border: 2px solid var(--gray-300);
}

.hc-ba-frame-after {
    border: 2px solid var(--primary);
}

.hc-ba-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.hc-grayscale {
    filter: grayscale(100%);
}

.hc-ba-label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.hc-ba-label-before {
    background: rgba(31, 41, 55, 0.9);
}

.hc-ba-label-after {
    background: var(--primary);
}

.hc-ba-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.hc-ba-tag-before {
    background: var(--gray-200);
    color: var(--text-main);
}

.hc-ba-tag-after {
    background: var(--primary);
    color: white;
}

.hc-final-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
}

.hc-final-caption {
    text-align: center;
    font-size: 18px;
    color: var(--text-main);
    margin-top: 16px;
    font-weight: 700;
}

/* =========================================
   핵심 변화 요약
   ========================================= */
.hc-summary-box {
    background: linear-gradient(to right, var(--blue-50), var(--indigo-50));
    padding: 32px;
    border-radius: 16px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.hc-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.hc-summary-item {
    text-align: center;
}

.hc-summary-emoji {
    font-size: 40px;
    margin-bottom: 12px;
}

.hc-summary-desc {
    color: var(--text-sub);
    font-size: 14px;
}

/* =========================================
   FAQ
   ========================================= */
.hc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hc-faq-item {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.hc-faq-q {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 16px;
}

.hc-faq-a {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================
   관련 사례
   ========================================= */
.hc-related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hc-related-link {
    display: block;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-sub);
    font-weight: 500;
    transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.hc-related-link:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: var(--primary);
}

/* =========================================
   CTA
   ========================================= */
.hc-cta {
    padding: 96px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--blue-600) 50%, var(--indigo-700) 100%);
    position: relative;
    overflow: hidden;
}

.hc-cta-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
}

.hc-cta-glow-1 {
    position: absolute;
    top: 0;
    left: 25%;
    width: 384px;
    height: 384px;
    background: white;
    border-radius: 50%;
    filter: blur(64px);
    animation: hc-pulse 4s ease-in-out infinite;
}

.hc-cta-glow-2 {
    position: absolute;
    bottom: 0;
    right: 25%;
    width: 320px;
    height: 320px;
    background: var(--yellow-300);
    border-radius: 50%;
    filter: blur(64px);
    animation: hc-pulse 4s ease-in-out infinite 2s;
}

@keyframes hc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hc-cta-inner {
    position: relative;
    z-index: 10;
}

.hc-cta-emoji {
    font-size: 60px;
    margin-bottom: 16px;
    animation: hc-bounce 1s ease infinite;
}

@keyframes hc-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hc-cta-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 1.4;
}

.hc-cta-yellow {
    color: var(--yellow-300);
}

.hc-cta-desc {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hc-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.hc-cta-phone {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    background: white;
    padding: 20px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
    border: 4px solid rgba(255,255,255,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hc-cta-phone:hover {
    transform: scale(1.1);
    box-shadow: 0 25px 50px -10px rgba(0,0,0,0.3);
}

.hc-cta-kakao {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    background: var(--yellow-400);
    padding: 20px 56px;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
    border: 4px solid rgba(234, 179, 8, 0.3);
    transition: transform 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.hc-cta-kakao:hover {
    transform: translateY(-8px);
    background: var(--yellow-300);
}

.hc-cta-note {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-top: 32px;
}

/* =========================================
   반응형 — 768px+
   ========================================= */
@media (min-width: 768px) {
    .hc-page-title {
        font-size: 42px;
    }

    .hc-intro-quote-text {
        font-size: 24px;
    }

    .hc-info-flex {
        flex-direction: row;
    }

    .hc-info-half {
        width: 50%;
    }

    .hc-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hc-step-row {
        flex-direction: row;
    }

    .hc-step-text {
        width: 33.333%;
    }

    .hc-step-images {
        width: 66.666%;
    }

    .hc-step-images-3 {
        /* 3열 이미지 */
    }

    .hc-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hc-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hc-cta-title {
        font-size: 36px;
    }

    .hc-cta-buttons {
        flex-direction: row;
    }
}

/* =========================================
   반응형 — 1024px+
   ========================================= */
@media (min-width: 1024px) {
    .hc-content-wrapper {
        padding: 0;
    }
}
