/* ============================================
   Magazine-Warm Design Pattern
   청아 배관케어 - 인천 누수 탐지
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;900&family=Noto+Serif+KR:wght@400;600;700&display=swap');

:root {
    --mag-primary: #0077B6;
    --mag-primary-dark: #005A8C;
    --mag-primary-light: #48CAE4;
    --mag-accent: #FF6B35;
    --mag-accent-soft: #FF8C61;
    --mag-warm-bg: #FDFAF6;
    --mag-warm-card: #FFFFFF;
    --mag-warm-border: #E8DDD0;
    --mag-warm-highlight: #FFF8F0;
    --mag-text-dark: #1A1A2E;
    --mag-text-body: #3D3D5C;
    --mag-text-muted: #7A7A9E;
    --mag-text-light: #FFFFFF;
    --mag-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --mag-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --mag-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --mag-radius: 12px;
    --mag-radius-lg: 20px;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--mag-warm-bg);
    color: var(--mag-text-body);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ===== PREMIUM CONTENT WRAPPER (글/페이지 공통) ===== */
.premium-content-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px;
    background: var(--mag-warm-card);
    border-radius: var(--mag-radius-lg);
    box-shadow: var(--mag-shadow-md);
}

.premium-content-wrapper h1,
.premium-content-wrapper .premium-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--mag-text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
    border-bottom: 3px solid var(--mag-primary);
    padding-bottom: 12px;
}

.premium-content-wrapper h2 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--mag-primary-dark);
    margin: 36px 0 16px;
    padding-left: 16px;
    border-left: 4px solid var(--mag-primary);
}

.premium-content-wrapper h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--mag-text-dark);
    margin: 28px 0 12px;
}

.premium-content-wrapper p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--mag-text-body);
}

.premium-content-wrapper ul,
.premium-content-wrapper ol {
    margin: 16px 0;
    padding-left: 24px;
}

.premium-content-wrapper li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.premium-content-wrapper strong {
    color: var(--mag-primary-dark);
    font-weight: 600;
}

/* ===== 이미지 스타일 ===== */
.premium-image-wrapper {
    margin: 28px 0;
}

.premium-image-wrapper .image-container {
    position: relative;
    border-radius: var(--mag-radius);
    overflow: hidden;
    box-shadow: var(--mag-shadow-md);
}

.premium-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.premium-image-wrapper .image-container:hover img {
    transform: scale(1.02);
}

.premium-image-wrapper .ai-disclaimer {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ===== 정보 하이라이트 ===== */
.info-highlight {
    background: var(--mag-warm-highlight);
    border-left: 4px solid var(--mag-accent);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 var(--mag-radius) var(--mag-radius) 0;
}

.info-highlight p {
    margin: 0;
    color: var(--mag-text-dark);
    font-style: italic;
}

/* ===== CTA / 구매 섹션 ===== */
.premium-purchase-section {
    margin: 36px 0;
    background: linear-gradient(135deg, var(--mag-primary), var(--mag-primary-dark));
    border-radius: var(--mag-radius-lg);
    overflow: hidden;
}

.premium-purchase-section .purchase-content {
    padding: 40px 32px;
    text-align: center;
}

.premium-purchase-section h3 {
    color: var(--mag-text-light);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.premium-purchase-button {
    display: inline-block;
    background: var(--mag-accent);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,53,0.4);
}

.premium-purchase-button:hover {
    background: var(--mag-accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.5);
}

/* ===== 매거진 메인 헤더 ===== */
.mag-header {
    background: linear-gradient(135deg, #0A2342 0%, #0077B6 50%, #48CAE4 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.mag-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.mag-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.mag-logo {
    max-width: 320px;
    margin: 0 auto 24px;
}

.mag-logo img {
    width: 100%;
    height: auto;
}

.mag-header h1 {
    font-family: 'Noto Serif KR', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.mag-header .mag-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 28px;
    font-weight: 300;
}

.mag-header .mag-cta-phone {
    display: inline-block;
    background: var(--mag-accent);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255,107,53,0.5);
    transition: all 0.3s ease;
}

.mag-header .mag-cta-phone:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,107,53,0.6);
}

/* ===== 네비게이션 ===== */
.mag-nav {
    background: white;
    box-shadow: var(--mag-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mag-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.mag-nav-brand {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--mag-primary);
    text-decoration: none;
}

.mag-nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.mag-nav-links a {
    text-decoration: none;
    color: var(--mag-text-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ===== 섹션 공통 ===== */
.mag-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.mag-section-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--mag-text-dark);
    text-align: center;
    margin-bottom: 12px;
}

.mag-section-desc {
    text-align: center;
    color: var(--mag-text-muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* ===== 서비스 카드 그리드 ===== */
.mag-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.mag-service-card {
    background: white;
    border-radius: var(--mag-radius-lg);
    overflow: hidden;
    box-shadow: var(--mag-shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.mag-service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mag-service-card-body {
    padding: 24px;
}

.mag-service-card-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--mag-text-dark);
    margin-bottom: 8px;
}

.mag-service-card-body p {
    color: var(--mag-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== 특징/장점 ===== */
.mag-features {
    background: white;
    border-radius: var(--mag-radius-lg);
    padding: 48px 36px;
    box-shadow: var(--mag-shadow-md);
}

.mag-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--mag-warm-border);
}

.mag-feature-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mag-feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--mag-primary-light), var(--mag-primary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.mag-feature-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mag-text-dark);
    margin-bottom: 6px;
}

.mag-feature-content p {
    color: var(--mag-text-muted);
    font-size: 0.95rem;
}

/* ===== 갤러리 ===== */
.mag-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.mag-gallery-item {
    border-radius: var(--mag-radius);
    overflow: hidden;
    box-shadow: var(--mag-shadow-sm);
    aspect-ratio: 4/3;
}

.mag-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mag-gallery-item:hover img {
    transform: scale(1.08);
}

/* ===== FAQ ===== */
.mag-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.mag-faq-item {
    background: white;
    border-radius: var(--mag-radius);
    margin-bottom: 12px;
    box-shadow: var(--mag-shadow-sm);
    overflow: hidden;
}

.mag-faq-q {
    padding: 20px 24px;
    font-weight: 600;
    color: var(--mag-text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.mag-faq-q:hover {
    background: var(--mag-warm-highlight);
}

.mag-faq-q::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--mag-primary);
    font-weight: 700;
    transition: transform 0.3s;
}

.mag-faq-item.active .mag-faq-q::after {
    transform: rotate(45deg);
}

.mag-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
    color: var(--mag-text-body);
    line-height: 1.7;
}

.mag-faq-item.active .mag-faq-a {
    max-height: 500px;
    padding: 0 24px 20px;
}

/* ===== CTA 배너 ===== */
.mag-cta-banner {
    background: linear-gradient(135deg, var(--mag-primary-dark), var(--mag-primary), var(--mag-primary-light));
    border-radius: var(--mag-radius-lg);
    padding: 48px 36px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.mag-cta-banner h2 {
    font-family: 'Noto Serif KR', serif;
    font-size: 2rem;
    margin-bottom: 16px;
    color: white;
    border: none;
    padding: 0;
}

.mag-cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
    color: white;
}

.mag-cta-btn {
    display: inline-block;
    background: var(--mag-accent);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255,107,53,0.5);
    transition: all 0.3s ease;
}

.mag-cta-btn:hover {
    background: white;
    color: var(--mag-primary);
    transform: translateY(-3px);
}

/* ===== 푸터 ===== */
.mag-footer {
    background: #0A2342;
    color: rgba(255,255,255,0.7);
    padding: 48px 24px 24px;
    margin-top: 60px;
}

.mag-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 36px;
}

.mag-footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.mag-footer p, .mag-footer a {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
}

.mag-footer a {
    text-decoration: none;
    transition: color 0.2s;
}

.mag-footer a:hover {
    color: var(--mag-primary-light);
}

.mag-footer-bottom {
    max-width: 1200px;
    margin: 36px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ===== 블로그 카드 그리드 ===== */
.mag-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.mag-blog-card {
    background: white;
    border-radius: var(--mag-radius-lg);
    overflow: hidden;
    box-shadow: var(--mag-shadow-md);
    transition: transform 0.3s ease;
}

.mag-blog-card:hover {
    transform: translateY(-4px);
}

.mag-blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.mag-blog-card-body {
    padding: 24px;
}

.mag-blog-card-body .mag-blog-tag {
    display: inline-block;
    background: var(--mag-primary-light);
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

.mag-blog-card-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--mag-text-dark);
    margin-bottom: 8px;
    line-height: 1.5;
}

.mag-blog-card-body h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.mag-blog-card-body h3 a:hover {
    color: var(--mag-primary);
}

.mag-blog-card-body p {
    color: var(--mag-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== 테이블 스타일 ===== */
.mag-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: var(--mag-radius);
    overflow: hidden;
    box-shadow: var(--mag-shadow-sm);
}

.mag-table th {
    background: var(--mag-primary);
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

.mag-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--mag-warm-border);
}

.mag-table tr:last-child td {
    border-bottom: none;
}

.mag-table tr:nth-child(even) {
    background: var(--mag-warm-highlight);
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .mag-header h1 { font-size: 2rem; }
    .mag-header .mag-subtitle { font-size: 1rem; }
    .mag-header .mag-cta-phone { font-size: 1.1rem; padding: 14px 28px; }
    .mag-header-inner { padding: 40px 20px; }
    .mag-section { padding: 40px 16px; }
    .mag-section-title { font-size: 1.5rem; }
    .mag-services-grid { grid-template-columns: 1fr; }
    .mag-blog-grid { grid-template-columns: 1fr; }
    .mag-gallery { grid-template-columns: repeat(2, 1fr); }
    .mag-nav-links { display: none; }
    .mag-footer-inner { grid-template-columns: 1fr; }
    .mag-features { padding: 32px 20px; }
    .mag-feature-item { flex-direction: column; }
    .mag-cta-banner { padding: 32px 20px; }
    .mag-cta-banner h2 { font-size: 1.5rem; }
    .premium-content-wrapper { padding: 24px 16px; }
    .premium-content-wrapper h1,
    .premium-content-wrapper .premium-title { font-size: 1.5rem; }
    .premium-content-wrapper h2 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .mag-header h1 { font-size: 1.6rem; }
    .mag-gallery { grid-template-columns: 1fr; }
}
