/*
Theme Name: 보일러 교체 비용 전문 테마
Theme URI: https://boiler-cost.kr
Author: UASSUK
Author URI: https://uassuk.com
Description: 2025년 보일러 교체 비용 정보 제공 전문 홈페이지 테마 - 모바일 반응형, SEO 최적화
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boiler-cost-theme
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ============================================
   CSS 변수 정의 (색상 팔레트)
   ============================================ */
:root {
    /* 주요 색상 */
    --primary-color: #1a5f7a;
    --primary-dark: #134b61;
    --primary-light: #2980b9;
    --secondary-color: #e74c3c;
    --secondary-dark: #c0392b;
    --accent-color: #f39c12;
    --accent-light: #f1c40f;

    /* 중립 색상 */
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #95a5a6;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #ecf0f1;
    --border-color: #e0e0e0;

    /* 기능 색상 */
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --info-color: #3498db;

    /* 그림자 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);

    /* 둥근 모서리 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* 애니메이션 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* 타이포그래피 */
    --font-primary: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Pretendard', 'Noto Sans KR', sans-serif;

    /* 레이아웃 */
    --container-max: 1200px;
    --container-wide: 1400px;
    --header-height: 80px;
    --header-height-mobile: 60px;
    --sidebar-width: 60px;
}

/* ============================================
   리셋 및 기본 스타일
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ============================================
   타이포그래피
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    word-break: keep-all;
}

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

a:hover {
    color: var(--primary-dark);
}

strong, b {
    font-weight: 700;
}

/* ============================================
   컨테이너
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: var(--container-wide);
}

.container-fluid {
    max-width: 100%;
}

/* ============================================
   헤더
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 45px;
    width: auto;
}

.site-logo .logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.site-logo .logo-text span {
    color: var(--secondary-color);
}

/* 메인 네비게이션 */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.main-nav a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.main-nav a.active {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* 헤더 CTA 버튼 */
.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: var(--bg-white);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.header-phone:hover {
    background: var(--secondary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-phone svg {
    width: 18px;
    height: 18px;
    animation: phone-ring 1.5s ease-in-out infinite;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

/* 모바일 메뉴 토글 */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 6px 0;
    transition: all var(--transition-fast);
}

/* ============================================
   히어로 슬라이더 섹션
   ============================================ */
.hero-section {
    position: relative;
    margin-top: var(--header-height);
    height: 65vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 배경 이미지는 워드프레스 관리자에서 슬라이더 포스트에 특성 이미지로 등록하세요 */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 95, 122, 0.65) 0%,
        rgba(44, 62, 80, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px 20px;
    text-align: center;
    color: var(--bg-white);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

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

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-feature svg {
    width: 20px;
    height: 20px;
    color: var(--accent-light);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* 슬라이더 컨트롤 */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

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

.slider-dot.active {
    background: var(--bg-white);
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
    pointer-events: none;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: var(--bg-white);
    cursor: pointer;
    pointer-events: all;
    transition: all var(--transition-fast);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ============================================
   섹션 공통 스타일
   ============================================ */
.section {
    padding: 80px 0;
}

.section-lg {
    padding: 100px 0;
}

.section-sm {
    padding: 60px 0;
}

.section-dark {
    background: var(--text-primary);
    color: var(--bg-white);
}

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

.section-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
}

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

.section-header .section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-dark .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-light);
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   정보 카드 그리드 (6개 정보글)
   ============================================ */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

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

.info-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.info-card:hover .info-card-image img {
    transform: scale(1.1);
}

.info-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: var(--primary-color);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.info-card-content {
    padding: 25px;
}

.info-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-card-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.info-card-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.info-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.info-card:hover .info-card-link svg {
    transform: translateX(4px);
}

/* ============================================
   가격 계산기 섹션
   ============================================ */
.calculator-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.calculator-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.calculator-form h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--bg-white);
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.1);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checkbox-item:hover {
    background: var(--bg-gray);
}

.checkbox-item input {
    width: auto;
}

.checkbox-item.checked {
    background: rgba(26, 95, 122, 0.1);
    border: 2px solid var(--primary-color);
}

.calculator-result {
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    color: var(--bg-white);
    text-align: center;
}

.result-price {
    margin-bottom: 30px;
}

.result-price .label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.result-price .price {
    font-size: 3.5rem;
    font-weight: 800;
}

.result-price .price .unit {
    font-size: 1.5rem;
    font-weight: 400;
}

.result-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
}

.result-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.result-breakdown-item:last-child {
    border-bottom: none;
}

.result-benefits {
    margin-bottom: 30px;
}

.result-benefits .benefit-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-color);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin: 5px;
}

/* ============================================
   브랜드 비교 섹션
   ============================================ */
.brand-comparison {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table tr:hover td {
    background: var(--bg-light);
}

.comparison-table .brand-logo {
    height: 40px;
    width: auto;
}

.comparison-table .check-icon {
    color: var(--success-color);
}

.comparison-table .cross-icon {
    color: var(--text-light);
}

/* ============================================
   보조금 안내 섹션
   ============================================ */
.subsidy-section {
    position: relative;
    overflow: hidden;
}

.subsidy-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(241, 196, 15, 0.05) 100%);
    border-radius: 50%;
    z-index: 0;
}

.subsidy-content {
    position: relative;
    z-index: 1;
}

.subsidy-highlight {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 50px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: 50px;
}

.subsidy-amount {
    flex-shrink: 0;
    text-align: center;
    padding: 30px 40px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.subsidy-amount .amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

.subsidy-amount .unit {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.subsidy-amount .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.subsidy-info h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.subsidy-info p {
    color: var(--text-primary);
    opacity: 0.9;
}

.eligibility-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.eligibility-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.eligibility-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 95, 122, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    flex-shrink: 0;
}

.eligibility-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.eligibility-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ============================================
   고정 사이드 버튼 (전화/블로그/유튜브)
   ============================================ */
.fixed-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.fixed-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    color: var(--bg-white);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.fixed-btn svg {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
}

.fixed-btn-phone {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    animation: pulse-phone 2s infinite;
}

@keyframes pulse-phone {
    0%, 100% { transform: scale(1); box-shadow: var(--shadow-md); }
    50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(231, 76, 60, 0.5); }
}

.fixed-btn-blog {
    background: linear-gradient(135deg, #03C75A 0%, #02a84e 100%);
}

.fixed-btn-youtube {
    background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
}

.fixed-btn:hover {
    transform: translateX(-5px) scale(1.05);
    color: var(--bg-white);
}

.fixed-btn-phone:hover {
    animation: none;
}

/* 모바일 하단 고정 버튼 */
.fixed-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.fixed-bottom-bar .btn-row {
    display: flex;
    gap: 10px;
}

.fixed-bottom-bar .btn-call {
    flex: 2;
    padding: 16px;
    background: var(--secondary-color);
    color: var(--bg-white);
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fixed-bottom-bar .btn-social {
    flex: 1;
    padding: 16px;
    background: var(--bg-light);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   푸터
   ============================================ */
.site-footer {
    background: var(--text-primary);
    color: var(--bg-white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-brand .logo-text span {
    color: var(--accent-color);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.footer-menu h4 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-menu ul {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================
   페이지 템플릿 스타일
   ============================================ */
.page-hero {
    margin-top: var(--header-height);
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--bg-white);
}

.page-hero h1 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.page-hero .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.page-hero .breadcrumb a:hover {
    color: var(--bg-white);
}

.page-content {
    padding: 80px 0;
}

.page-content-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* 글 상세 페이지 */
.article-content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.article-content h2 {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.article-content h3 {
    margin-top: 35px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

.article-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
}

.article-content table th,
.article-content table td {
    padding: 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.article-content table th {
    background: var(--bg-light);
    font-weight: 600;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 30px 0;
}

/* 정보 박스 */
.info-box {
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: var(--radius-lg);
}

.info-box.tip {
    background: rgba(39, 174, 96, 0.1);
    border-left: 4px solid var(--success-color);
}

.info-box.warning {
    background: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--warning-color);
}

.info-box.important {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--error-color);
}

.info-box-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ============================================
   CTA 섹션
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--bg-white);
}

.cta-section h2 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-phone-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cta-phone-number a {
    color: var(--accent-light);
}

/* ============================================
   반응형 디자인
   ============================================ */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .calculator-container {
        grid-template-columns: 1fr;
    }

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

    .eligibility-list {
        grid-template-columns: 1fr;
    }

    .fixed-sidebar {
        display: none;
    }

    .fixed-bottom-bar {
        display: block;
    }

    .site-footer {
        padding-bottom: 100px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
    }

    .section {
        padding: 60px 0;
    }

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

    .hero-section {
        min-height: 350px;
        max-height: 450px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .subsidy-highlight {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .subsidy-amount .amount {
        font-size: 3rem;
    }

    .calculator-form {
        padding: 25px;
    }

    .calculator-result {
        padding: 30px;
    }

    .result-price .price {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .page-hero {
        padding: 60px 0;
    }

    .page-content {
        padding: 50px 0;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-feature {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .info-card-content {
        padding: 20px;
    }

    .cta-phone-number {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   애니메이션
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease forwards;
}

/* 스크롤 애니메이션용 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ============================================
   유틸리티 클래스
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-muted { color: var(--text-secondary); }

.bg-primary { background-color: var(--primary-color); }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none; }
.visible { display: block; }

/* 모바일 메뉴 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--bg-white);
    z-index: 1002;
    padding: 80px 20px 30px;
    transition: right var(--transition-normal);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:hover {
    color: var(--primary-color);
}

.mobile-nav-cta {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.mobile-nav-cta .btn {
    width: 100%;
    margin-bottom: 10px;
}
