/*
Theme Name: DrainCleaning
Theme URI: https://draincleaning.koreahasugu.com
Author: Daegu MH Geon-eop
Description: 하수구청소 전문 업체 사이트 테마
Version: 1.0
*/

:root {
    --primary: #1d4ed8;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #0ea5e9;
    --text: #1a1a1a;
    --text-muted: #5b6472;
    --bg: #ffffff;
    --bg-soft: #f4f7fb;
    --border: #e2e8f0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 12px; }
section { padding: 72px 0; }

/* Header */
.dc-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.dc-header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.dc-logo { font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); }
.dc-nav { display: flex; gap: 28px; align-items: center; }
.dc-nav a { font-weight: 600; color: var(--text); font-size: .95rem; }
.dc-nav a:hover { color: var(--primary); }
.dc-header-cta {
    background: var(--primary); color: #fff; padding: 10px 20px; border-radius: 8px;
    font-weight: 700; font-size: .92rem;
}
.dc-header-cta:hover { background: var(--primary-dark); }
.dc-burger { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }
.dc-mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--border); }
.dc-mobile-menu.open { display: flex; }
.dc-mobile-menu a { padding: 10px 0; font-weight: 600; border-bottom: 1px solid var(--border); }

/* Hero */
.dc-hero {
    margin-top: 68px;
    position: relative;
    min-height: 560px;
    display: flex; align-items: center;
    overflow: hidden;
}
.dc-hero-video-only { min-height: 100vh; }
@media (max-width: 768px) { .dc-hero-video-only { min-height: 90vh; } }
.dc-hero-bg {
    position: absolute; inset: 0; z-index: 1;
    background-size: cover; background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.dc-hero-bg.active { opacity: 1; z-index: 2; }
.dc-hero-video { width: 100%; height: 100%; object-fit: cover; }
.dc-hero-overlay {
    position: absolute; inset: 0; z-index: 3;
    background: linear-gradient(100deg, rgba(15,23,42,.62) 0%, rgba(15,23,42,.4) 42%, rgba(15,23,42,.12) 78%);
}
.dc-hero-content { position: relative; z-index: 4; color: #fff; max-width: 640px; padding: 60px 20px; }
.dc-badge {
    display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35);
    padding: 6px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 18px;
}
.dc-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; }
.dc-hero p { font-size: 1.08rem; color: rgba(255,255,255,.9); margin-bottom: 28px; }
.dc-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.dc-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 10px;
    font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
}
.dc-btn-primary { background: var(--primary); color: #fff; }
.dc-btn-primary:hover { background: var(--primary-dark); }
.dc-btn-outline { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.dc-btn-outline:hover { background: rgba(255,255,255,.2); }
.dc-hero-controls { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 16px; }
.dc-hero-arrow { background: rgba(255,255,255,.2); color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.dc-hero-dots { display: flex; gap: 8px; }
.dc-hero-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; border: none; padding: 0; }
.dc-hero-dot.active { background: #fff; width: 24px; border-radius: 5px; }

/* Section heading */
.dc-section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.dc-eyebrow { color: var(--primary); font-weight: 700; font-size: .88rem; letter-spacing: .04em; margin-bottom: 8px; display: block; }
.dc-section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.dc-section-head p { color: var(--text-muted); }

/* A. 시공사례 */
.dc-cases { background: var(--bg-soft); }
.dc-case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dc-case-grid-5 { grid-template-columns: repeat(5, 1fr); }
.dc-case-card {
    display: block; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
    transition: transform .25s ease, box-shadow .25s ease;
}
.dc-case-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(15,23,42,.12); }
.dc-case-card img { aspect-ratio: 4/3; object-fit: cover; }
.dc-case-grid-sm { max-width: 860px; margin: 0 auto; }
.dc-case-grid-sm .dc-case-card img { aspect-ratio: 4/2.4; }
.dc-case-body { padding: 18px 20px; }
.dc-case-tag { display: inline-block; background: #eaf1ff; color: var(--primary-dark); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; }
.dc-case-body h3 { font-size: 1.08rem; }
.dc-case-body p { color: var(--text-muted); font-size: .92rem; margin: 0; }
.dc-case-more { display: inline-block; color: var(--primary); font-weight: 700; white-space: nowrap; }

/* 시공사례 하단 - 영상 2x2 그리드 */
.dc-video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.dc-video-card { position: relative; border-radius: 14px; overflow: hidden; background: #0f172a; aspect-ratio: 16/10; }
.dc-video-el { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-video-play {
    position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,.92); border: none; color: var(--primary); font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(15,23,42,.3);
    transition: transform .2s ease;
}
.dc-video-play:hover { transform: scale(1.08); }
.dc-video-card.playing .dc-video-play { display: none; }
@media (max-width: 640px) { .dc-video-grid { grid-template-columns: 1fr; } }

/* 시공사례 상세 - 사진 그리드 (겹침 없이 나열) */
.dc-case-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dc-case-photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
@media (max-width: 768px) { .dc-case-photo-grid { grid-template-columns: 1fr; } }

/* B. 서비스소개 */
.dc-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dc-service-card { text-align: center; padding: 30px 18px; border: 1px solid var(--border); border-radius: 14px; }
.dc-service-icon { font-size: 2.1rem; margin-bottom: 12px; }
.dc-service-card h3 { font-size: 1rem; }
.dc-service-card p { color: var(--text-muted); font-size: .88rem; margin: 0; }

/* C. 신뢰 배지 */
.dc-trust { background: var(--bg-soft); }
.dc-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dc-trust-card { background: #fff; border-radius: 14px; padding: 26px 18px; text-align: center; border: 1px solid var(--border); }
.dc-trust-icon { font-size: 1.8rem; margin-bottom: 10px; }
.dc-trust-card h3 { font-size: .98rem; }
.dc-trust-card p { color: var(--text-muted); font-size: .85rem; margin: 0; }

/* D. 프로세스 */
.dc-process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.dc-process-card { text-align: center; position: relative; padding: 24px 12px; }
.dc-process-num {
    width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 14px;
}
.dc-process-card h3 { font-size: .95rem; }
.dc-process-card p { color: var(--text-muted); font-size: .82rem; margin: 0; }

/* FAQ */
.dc-faq { max-width: 760px; margin: 0 auto; }
.dc-faq-item { border-bottom: 1px solid var(--border); }
.dc-faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 4px; font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; justify-content: space-between; }
.dc-faq-a { max-height: 0; overflow: hidden; color: var(--text-muted); font-size: .92rem; transition: max-height .25s ease; }
.dc-faq-item.open .dc-faq-a { max-height: 240px; padding-bottom: 18px; }

/* CTA */
.dc-cta {
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 60%), linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff; text-align: center;
}
.dc-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.dc-cta p { color: rgba(255,255,255,.88); margin-bottom: 26px; }
.dc-cta-badges { display: flex; justify-content: center; gap: 26px; margin-top: 32px; flex-wrap: wrap; }
.dc-cta-badge { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.9); }

/* Footer */
.dc-footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 26px; }
.dc-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 36px; }
.dc-footer h4 a { color: #fff; }
.dc-footer h4 a:hover { color: var(--primary-light); }
.dc-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.dc-footer ul { list-style: none; margin: 0; padding: 0; }
.dc-footer li { margin-bottom: 8px; font-size: .9rem; }
.dc-footer a { color: #cbd5e1; }
.dc-footer a:hover { color: #fff; }
.dc-footer-bottom { border-top: 1px solid #1e293b; padding-top: 22px; font-size: .8rem; color: #64748b; text-align: center; }
.dc-footer-bottom p { margin: 4px 0; }

/* Floating */
.dc-floating { position: fixed; right: 20px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.dc-fab { border: none; cursor: pointer; }
.dc-fab-consult {
    position: relative; display: flex; align-items: center; gap: 8px; background: var(--primary); color: #fff;
    padding: 14px 20px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 24px rgba(29,78,216,.4);
}
.dc-fab-ring { position: absolute; inset: -6px; border-radius: 999px; border: 2px solid var(--primary); animation: dc-pulse 3s infinite; }
@keyframes dc-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.dc-fab-top { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--border); box-shadow: 0 6px 16px rgba(15,23,42,.15); font-size: 1.1rem; }

/* Breadcrumb */
.dc-breadcrumb { margin-top: 68px; padding: 16px 0; font-size: .85rem; color: var(--text-muted); background: var(--bg-soft); }
.dc-breadcrumb a { color: var(--primary); }

@media (max-width: 900px) {
    .dc-services-grid, .dc-trust-grid, .dc-case-grid { grid-template-columns: repeat(2, 1fr); }
    .dc-process-grid { grid-template-columns: repeat(3, 1fr); }
    .dc-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .dc-nav, .dc-header-cta.desktop-only { display: none; }
    .dc-burger { display: block; }
    .dc-case-grid { grid-template-columns: 1fr; }
    .dc-process-grid { grid-template-columns: repeat(2, 1fr); }
    .dc-fab-label { display: none; }
    .dc-fab-consult { padding: 14px; }
}
@media (max-width: 480px) {
    .dc-footer-grid { grid-template-columns: 1fr; }
    .dc-trust-grid { grid-template-columns: 1fr; }
}
