/* ============================================
   청아 배관케어 - Dark Emerald Theme
   베란다 천장 누수 전문
   ============================================ */

:root {
    --de-bg-primary: #0a1a14;
    --de-bg-secondary: #0f2920;
    --de-bg-card: #12332a;
    --de-bg-card-hover: #1a4538;
    --de-emerald: #00a878;
    --de-emerald-light: #50dcaa;
    --de-emerald-glow: rgba(0, 168, 120, 0.3);
    --de-emerald-soft: rgba(0, 168, 120, 0.1);
    --de-text-white: #f0f8f4;
    --de-text-gray: #8aaa9c;
    --de-text-muted: #5c7a6e;
    --de-gold: #c8b464;
    --de-border: rgba(0, 168, 120, 0.2);
    --de-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --de-radius: 12px;
    --de-transition: all 0.3s ease;
}

/* === Global === */
.de-page {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--de-bg-primary);
    color: var(--de-text-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

.de-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.de-header {
    background: linear-gradient(180deg, var(--de-bg-primary) 0%, transparent 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--de-border);
}

.de-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.de-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.de-logo img { height: 45px; }
.de-logo-text { font-size: 1.3rem; font-weight: 700; color: var(--de-text-white); }
.de-logo-sub { font-size: 0.75rem; color: var(--de-emerald-light); }

.de-nav { display: flex; gap: 30px; list-style: none; }
.de-nav a {
    color: var(--de-text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--de-transition);
    position: relative;
}
.de-nav a:hover, .de-nav a.active { color: var(--de-emerald-light); }
.de-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--de-emerald);
    transition: var(--de-transition);
}
.de-nav a:hover::after { width: 100%; }

.de-cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--de-emerald);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--de-transition);
    box-shadow: 0 0 20px var(--de-emerald-glow);
}
.de-cta-phone:hover {
    background: var(--de-emerald-light);
    color: var(--de-bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--de-emerald-glow);
}

/* === Hero === */
.de-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 50%, rgba(0,168,120,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(0,168,120,0.05) 0%, transparent 50%),
                var(--de-bg-primary);
    padding-top: 80px;
}

.de-hero::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='%2300a878' 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;
}

.de-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.de-hero-badge {
    display: inline-block;
    background: var(--de-emerald-soft);
    border: 1px solid var(--de-border);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--de-emerald-light);
    margin-bottom: 20px;
}

.de-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--de-text-white);
}

.de-hero h1 .highlight { color: var(--de-emerald-light); }

.de-hero-desc {
    font-size: 1.1rem;
    color: var(--de-text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.de-hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.de-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--de-emerald), #008a5e);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--de-transition);
    box-shadow: 0 4px 15px var(--de-emerald-glow);
}
.de-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--de-emerald-glow); }

.de-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--de-emerald-light);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--de-border);
    transition: var(--de-transition);
}
.de-btn-outline:hover { background: var(--de-emerald-soft); border-color: var(--de-emerald); }

.de-hero-image {
    position: relative;
    border-radius: var(--de-radius);
    overflow: hidden;
}
.de-hero-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--de-radius);
    border: 1px solid var(--de-border);
}
.de-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,168,120,0.15), transparent);
    border-radius: var(--de-radius);
}

/* === Stats Bar === */
.de-stats {
    background: var(--de-bg-secondary);
    border-top: 1px solid var(--de-border);
    border-bottom: 1px solid var(--de-border);
    padding: 40px 0;
}

.de-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.de-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--de-emerald-light);
    line-height: 1;
    margin-bottom: 8px;
}

.de-stat-label {
    font-size: 0.9rem;
    color: var(--de-text-gray);
}

/* === Sections === */
.de-section {
    padding: 80px 0;
}

.de-section-dark { background: var(--de-bg-primary); }
.de-section-darker { background: var(--de-bg-secondary); }

.de-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.de-section-title h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--de-text-white);
    margin-bottom: 15px;
}

.de-section-title p {
    font-size: 1rem;
    color: var(--de-text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* === Service Cards === */
.de-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.de-service-card {
    background: var(--de-bg-card);
    border: 1px solid var(--de-border);
    border-radius: var(--de-radius);
    padding: 35px 25px;
    text-align: center;
    transition: var(--de-transition);
}
.de-service-card:hover {
    transform: translateY(-5px);
    background: var(--de-bg-card-hover);
    box-shadow: var(--de-shadow), 0 0 30px var(--de-emerald-glow);
    border-color: var(--de-emerald);
}

.de-service-icon {
    width: 70px;
    height: 70px;
    background: var(--de-emerald-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.de-service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--de-text-white);
    margin-bottom: 12px;
}

.de-service-card p {
    font-size: 0.9rem;
    color: var(--de-text-gray);
    line-height: 1.7;
}

/* === Gallery === */
.de-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.de-gallery-item {
    position: relative;
    border-radius: var(--de-radius);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.de-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--de-transition);
}

.de-gallery-item:hover img { transform: scale(1.05); }

.de-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,168,120,0.4) 100%);
    opacity: 0;
    transition: var(--de-transition);
}
.de-gallery-item:hover::after { opacity: 1; }

/* === Process Steps === */
.de-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.de-process-step {
    text-align: center;
    position: relative;
}

.de-step-number {
    width: 50px;
    height: 50px;
    background: var(--de-emerald);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px var(--de-emerald-glow);
}

.de-process-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--de-text-white);
    margin-bottom: 8px;
}

.de-process-step p {
    font-size: 0.85rem;
    color: var(--de-text-gray);
}

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

.de-faq-item {
    background: var(--de-bg-card);
    border: 1px solid var(--de-border);
    border-radius: var(--de-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.de-faq-q {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--de-text-white);
    transition: var(--de-transition);
}

.de-faq-q:hover { color: var(--de-emerald-light); }

.de-faq-q .arrow {
    transition: var(--de-transition);
    color: var(--de-emerald);
    font-size: 1.2rem;
}

.de-faq-item.active .de-faq-q .arrow { transform: rotate(180deg); }

.de-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.de-faq-item.active .de-faq-a { max-height: 500px; }

.de-faq-a-inner {
    padding: 0 25px 20px;
    color: var(--de-text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* === Blog Preview === */
.de-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.de-blog-card {
    background: var(--de-bg-card);
    border: 1px solid var(--de-border);
    border-radius: var(--de-radius);
    overflow: hidden;
    transition: var(--de-transition);
    text-decoration: none;
    display: block;
}

.de-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--de-shadow);
    border-color: var(--de-emerald);
}

.de-blog-thumb {
    height: 200px;
    overflow: hidden;
}

.de-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--de-transition);
}

.de-blog-card:hover .de-blog-thumb img { transform: scale(1.05); }

.de-blog-info {
    padding: 20px;
}

.de-blog-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--de-text-white);
    margin-bottom: 8px;
    line-height: 1.5;
}

.de-blog-info p {
    font-size: 0.85rem;
    color: var(--de-text-gray);
    line-height: 1.6;
}

/* === CTA === */
.de-cta-section {
    background: linear-gradient(135deg, var(--de-bg-secondary), var(--de-bg-primary));
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.de-cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--de-emerald-glow), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.de-cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
}

.de-cta-section p {
    color: var(--de-text-gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
    position: relative;
}

.de-cta-phone-big {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--de-emerald-light);
    text-decoration: none;
    position: relative;
    transition: var(--de-transition);
}

.de-cta-phone-big:hover { color: #fff; text-shadow: 0 0 20px var(--de-emerald-glow); }

/* === Footer === */
.de-footer {
    background: var(--de-bg-primary);
    border-top: 1px solid var(--de-border);
    padding: 50px 0 30px;
}

.de-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.de-footer-info h3 { font-size: 1.2rem; color: var(--de-text-white); margin-bottom: 15px; }
.de-footer-info p { color: var(--de-text-gray); font-size: 0.9rem; line-height: 1.8; }

.de-footer-links h4 { font-size: 1rem; color: var(--de-text-white); margin-bottom: 15px; }
.de-footer-links ul { list-style: none; }
.de-footer-links li { margin-bottom: 8px; }
.de-footer-links a { color: var(--de-text-gray); text-decoration: none; font-size: 0.9rem; transition: var(--de-transition); }
.de-footer-links a:hover { color: var(--de-emerald-light); }

.de-footer-bottom {
    border-top: 1px solid var(--de-border);
    padding-top: 20px;
    text-align: center;
    color: var(--de-text-muted);
    font-size: 0.8rem;
}

/* === WP Post/Page Custom Styles === */
.de-wp-content {
    background: var(--de-bg-primary);
    color: var(--de-text-white);
    min-height: 100vh;
}

.de-wp-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.de-wp-content h1, .de-wp-content h2, .de-wp-content h3 { color: var(--de-text-white); }
.de-wp-content h2 { border-left: 4px solid var(--de-emerald); padding-left: 15px; margin: 30px 0 15px; }
.de-wp-content p { color: var(--de-text-gray); line-height: 1.9; margin-bottom: 15px; }
.de-wp-content img { border-radius: var(--de-radius); border: 1px solid var(--de-border); margin: 20px 0; }
.de-wp-content a { color: var(--de-emerald-light); }
.de-wp-content blockquote {
    background: var(--de-bg-card);
    border-left: 4px solid var(--de-emerald);
    padding: 20px;
    border-radius: 0 var(--de-radius) var(--de-radius) 0;
    margin: 20px 0;
}
.de-wp-content ul, .de-wp-content ol { color: var(--de-text-gray); padding-left: 25px; margin-bottom: 15px; }
.de-wp-content li { margin-bottom: 8px; }
.de-wp-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.de-wp-content th { background: var(--de-emerald); color: #fff; padding: 12px; text-align: left; }
.de-wp-content td { padding: 12px; border-bottom: 1px solid var(--de-border); color: var(--de-text-gray); }

/* === Mobile Menu === */
.de-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--de-text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .de-hero-content { grid-template-columns: 1fr; text-align: center; }
    .de-hero-image { max-width: 500px; margin: 0 auto; }
    .de-hero-buttons { justify-content: center; }
    .de-services-grid { grid-template-columns: repeat(2, 1fr); }
    .de-gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .de-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .de-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .de-nav { display: none; }
    .de-menu-toggle { display: block; }
    .de-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .de-services-grid { grid-template-columns: 1fr; }
    .de-process-grid { grid-template-columns: repeat(2, 1fr); }
    .de-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .de-blog-grid { grid-template-columns: 1fr; }
    .de-hero h1 { font-size: 2rem; }
    .de-cta-phone-big { font-size: 1.5rem; }
    .de-section { padding: 50px 0; }
}

@media (max-width: 480px) {
    .de-stats-grid { grid-template-columns: 1fr; }
    .de-process-grid { grid-template-columns: 1fr; }
    .de-gallery-grid { grid-template-columns: 1fr; }
}
