/* 수석종합설비 — 싱크대누수수리 공통 디자인 시스템 */
:root{
  --navy:#0b2545;
  --navy-2:#123a6b;
  --navy-dark:#06162c;
  --blue:#2563eb;
  --blue-light:#eaf1fd;
  --ink:#16213a;
  --gray:#5b6472;
  --gray-light:#8891a0;
  --border:#e2e6ed;
  --bg:#ffffff;
  --bg-soft:#f6f8fb;
  --radius:10px;
  --radius-sm:6px;
  --radius-pill:999px;
  --shadow:0 2px 14px rgba(11,37,69,.08);
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Pretendard',-apple-system,BlinkMacSystemFont,'Noto Sans KR','Malgun Gothic',sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  font-size:16px;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
h1,h2,h3{margin:0;font-weight:700;color:var(--navy)}
h1{font-size:clamp(28px,5vw,44px);line-height:1.25;letter-spacing:-.01em}
h2{font-size:18px;line-height:1.4}
h3{font-size:16px;line-height:1.4}
p{margin:0;font-size:15px;color:var(--gray)}
section{padding:56px 0}
section.soft{background:var(--bg-soft)}
.eyebrow{font-size:13px;font-weight:700;color:var(--blue);letter-spacing:.04em;margin-bottom:10px;display:block}
.section-head{max-width:640px;margin-bottom:32px}
.section-head p{margin-top:10px}

/* 버튼 — 레퍼런스처럼 필(pill) 형태 + 끝단 아이콘 배지 */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 22px;border-radius:var(--radius-pill);font-size:15px;font-weight:700;border:1px solid transparent;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{background:var(--navy-2)}
.btn-accent{background:var(--blue);color:#fff}
.btn-accent:hover{background:#1d4fc4}
.btn-outline{background:#fff;color:var(--navy);border-color:var(--border)}
.btn-outline:hover{border-color:var(--navy)}
.btn-ghost-light{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.5)}
.btn-ghost-light:hover{background:rgba(255,255,255,.22)}
.btn-lg{padding:15px 16px 15px 26px;font-size:16px}
.btn-badge{width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.22);display:inline-flex;align-items:center;justify-content:center;flex:none}
.btn-outline .btn-badge,.btn-ghost-light .btn-badge{background:var(--blue-light);color:var(--blue)}
.btn-primary .btn-badge,.btn-accent .btn-badge{background:rgba(255,255,255,.22);color:#fff}

/* 헤더 */
.header-strip{background:var(--navy);color:#cfdcf2;font-size:12px;font-weight:600;letter-spacing:.03em;text-align:center;padding:7px 0}
.site-header{position:sticky;top:0;z-index:50;background:var(--navy-2);padding:10px 0;box-shadow:0 2px 14px rgba(0,0,0,.18)}
.site-header .inner{display:flex;align-items:center;justify-content:space-between;height:64px;background:#fff;border-radius:var(--radius-pill);padding:0 10px 0 22px;box-shadow:0 6px 20px rgba(0,0,0,.12)}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--navy);font-size:17px}
.brand img{width:32px;height:32px}
.nav-desktop{display:flex;align-items:center;gap:26px}
.nav-desktop a{font-size:14px;font-weight:700;color:var(--ink);padding:8px 2px;border-bottom:2px solid transparent}
.nav-desktop a:hover,.nav-desktop a.active{color:var(--navy);border-color:var(--blue)}
.header-cta{display:flex;align-items:center;gap:18px}
.header-phone{display:flex;flex-direction:column;align-items:flex-end;line-height:1.3}
.header-phone .label{font-size:10px;font-weight:700;color:var(--navy-2);letter-spacing:.03em}
.header-phone .num{font-size:15px;font-weight:800;color:var(--navy)}
.header-cta .btn{padding:10px 8px 10px 18px}
.hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;padding:8px;cursor:pointer}
.hamburger span{width:24px;height:2px;background:var(--navy);display:block}
.mobile-menu{display:none;position:fixed;inset:98px 0 0 0;background:#fff;z-index:49;padding:24px 20px;overflow-y:auto}
.mobile-menu.open{display:block}
.mobile-menu a{display:block;font-size:17px;font-weight:700;color:var(--navy);padding:16px 0;border-bottom:1px solid var(--border)}
.mobile-menu a.btn{width:100%;margin-top:20px;justify-content:center;color:#fff}

/* 브레드크럼 */
.breadcrumb{font-size:13px;color:var(--gray-light);padding:16px 0}
.breadcrumb a{color:var(--gray-light)}
.breadcrumb a:hover{color:var(--blue)}

/* 서브페이지 인트로(사진 우선) — 레퍼런스 서비스 상세 히어로처럼 비중 있게 */
.page-top-photo img{width:100%;height:440px;object-fit:cover}
.page-intro{padding:36px 0 8px}
.page-intro h1{margin-bottom:12px}
.page-intro p{font-size:16px;max-width:680px}

/* 히어로 (홈) — 레퍼런스처럼 그라데이션 배경 + 풀블리드 대형 사진 */
.hero{position:relative;background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 55%,#1b4f8a 100%);color:#fff;overflow:hidden}
.hero .inner{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:stretch;min-height:520px}
.hero .hero-text{display:flex;flex-direction:column;justify-content:center;padding:56px 28px 56px 0}
.hero h1{color:#fff;font-size:clamp(34px,5.6vw,54px)}
.hero h1 .accent{color:#8fb8ff}
.hero p{color:#cfdcf2;font-size:17px;margin-top:16px;max-width:460px}
.hero .cta-row{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap;align-items:center}
.hero .cta-note{color:#9db6dc;font-size:13px;font-weight:600}
.hero-photo{position:relative;align-self:stretch;min-height:320px}
.hero-photo img{width:100%;height:100%;object-fit:cover;display:block}

/* 카드 공통 */
.grid{display:grid;gap:20px}
.grid-5{grid-template-columns:repeat(5,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}

.type-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:22px}
.type-card .icon{width:40px;height:40px;border-radius:50%;background:var(--blue-light);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.type-card h3{margin-bottom:8px}
.type-card p{font-size:14px}

/* 서비스 리스트 패널 — 레퍼런스 "Plumbing Services" 박스 구조: 좌측 아이콘 리스트 + 우측 대형 사진 */
.svc-panel{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.svc-panel .inner-grid{display:grid;grid-template-columns:1.1fr 1fr}
.svc-panel .list-col{padding:26px 28px}
.svc-panel .list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.svc-panel .list-head h2{font-size:20px}
.svc-rows{display:grid;grid-template-columns:1fr 1fr}
.svc-row{display:flex;align-items:center;gap:14px;padding:16px 10px;border-top:1px solid var(--border)}
.svc-row:nth-child(-n+2){border-top:none}
.svc-row .icon{width:40px;height:40px;border-radius:50%;background:var(--blue-light);display:flex;align-items:center;justify-content:center;flex:none}
.svc-row .label{font-size:14px;font-weight:700;color:var(--ink)}
.svc-panel .photo-col img{width:100%;height:100%;object-fit:cover;display:block;min-height:320px}

.service-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.service-card img{width:100%;height:190px;object-fit:cover}
.service-card .body{padding:18px}
.service-card h3{margin-bottom:6px}
.service-card p{font-size:14px}

/* 이미지-텍스트 교차 블록 */
.feature-row{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;padding:40px 0}
.feature-row.rev .img-col{order:2}
.feature-row .img-col img{width:100%;height:340px;object-fit:cover;border-radius:var(--radius)}
.feature-row .text-col .eyebrow{margin-bottom:8px}
.feature-row .text-col h2{font-size:22px;margin-bottom:14px}
.feature-row .text-col p{font-size:15px;margin-bottom:10px}

/* 원인/점검 2단 사진 */
.cause-block{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.cause-photo{border-radius:var(--radius);overflow:hidden;border:1px solid var(--border)}
.cause-photo img{width:100%;height:220px;object-fit:cover}
.cause-photo figcaption{padding:12px 14px;font-size:13px;color:var(--gray)}

/* 시공사례 */
.case-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:block}
.case-card .thumb{position:relative}
.case-card img{width:100%;height:230px;object-fit:cover}
.case-card .tag{position:absolute;top:12px;left:12px;background:var(--navy);color:#fff;font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px}
.case-card .body{padding:18px}
.case-card h3{margin-bottom:6px}
.case-card p{font-size:14px}
.case-card .more{margin-top:12px;font-size:13px;font-weight:700;color:var(--blue)}

.ba-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}
.ba-compare figure{margin:0;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border)}
.ba-compare img{width:100%;height:280px;object-fit:cover}
.ba-compare figcaption{padding:10px 14px;font-size:13px;font-weight:700;color:var(--navy);background:var(--bg-soft)}

/* 체크리스트 */
.check-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.check-list li{display:flex;gap:12px;font-size:15px;color:var(--ink);background:#fff;border:1px solid var(--border);border-radius:var(--radius-sm);padding:16px}
.check-list li .dot{flex:none;width:22px;height:22px;border-radius:50%;background:var(--blue);color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}

/* 정보 표 */
.info-table-wrap{overflow-x:auto;margin:20px 0;border:1px solid var(--border);border-radius:var(--radius)}
table.info-table{width:100%;border-collapse:collapse;font-size:14px;background:#fff}
table.info-table caption{text-align:left;font-size:15px;font-weight:700;color:var(--navy);padding:14px 16px;border-bottom:1px solid var(--border)}
table.info-table th{background:var(--bg-soft);color:var(--navy);font-weight:700;text-align:left;padding:12px 16px;border-bottom:1px solid var(--border);white-space:nowrap}
table.info-table td{padding:12px 16px;border-bottom:1px solid var(--border);color:var(--gray)}
table.info-table tr:last-child td{border-bottom:none}

/* FAQ 아코디언 */
.faq-item{border-bottom:1px solid var(--border)}
.faq-q{width:100%;text-align:left;background:none;border:none;padding:18px 4px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:15px;font-weight:700;color:var(--ink)}
.faq-q .plus{font-size:20px;color:var(--blue);transition:transform .2s;flex:none;margin-left:16px}
.faq-item.open .plus{transform:rotate(45deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .22s ease}
.faq-a p{padding:0 4px 18px;font-size:14px;color:var(--gray)}

/* CTA 배너 — 레퍼런스의 Emergency CTA 블록(버튼 + 전화번호 병기) 구조 참고 */
.cta-banner{background:linear-gradient(120deg,var(--navy) 0%,var(--navy-2) 60%,#1b4f8a 100%);color:#fff;border-radius:var(--radius);padding:44px 36px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.cta-banner h2{color:#fff;font-size:22px}
.cta-banner p{color:#cfdcf2;margin-top:6px}
.cta-banner .cta-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.cta-banner .or-call{font-size:13px;color:#aebcd6;display:flex;flex-direction:column;line-height:1.3}
.cta-banner .or-call .num{font-size:16px;font-weight:800;color:#fff}

/* 상담 페이지 */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.contact-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:30px;text-align:center}
.contact-card .icon{width:56px;height:56px;border-radius:50%;background:var(--blue-light);display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.contact-card h3{font-size:18px;margin-bottom:8px}
.contact-card p{margin-bottom:20px}
.biz-info{background:var(--bg-soft);border-radius:var(--radius);padding:24px;margin-top:32px;font-size:14px;color:var(--gray)}
.biz-info div{margin-bottom:6px}

/* 푸터 — 레퍼런스처럼 짙은 배경으로 명도 대비를 높임(네이비 계열 유지, 더 어둡게) */
.site-footer{background:var(--navy-dark);color:#cfdcf2;padding:44px 0 20px}
.site-footer .inner{display:flex;justify-content:space-between;align-items:flex-start;gap:40px;flex-wrap:wrap}
.footer-brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:800;font-size:16px;margin-bottom:14px}
.footer-brand img{width:28px;height:28px}
.footer-info div{font-size:13px;color:#aebcd6;margin-bottom:5px}
.footer-links{display:flex;flex-direction:column;gap:10px}
.footer-links a{font-size:14px;color:#dbe6f8}
.footer-links a:hover{color:#fff}
.footer-cta{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.footer-cta .label{font-size:12px;color:#8ba0c4}
.footer-cta .phone{font-size:18px;font-weight:800;color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:30px;padding-top:16px;font-size:12px;color:#8ba0c4}

/* ===== 반응형 ===== */
@media (max-width:1024px){
  .grid-5{grid-template-columns:repeat(3,1fr)}
  .svc-panel .inner-grid{grid-template-columns:1fr}
  .svc-panel .photo-col{display:none}
  .svc-rows{grid-template-columns:1fr 1fr}
}
@media (max-width:820px){
  .site-header .inner{padding:0 8px 0 16px}
  .header-phone{display:none}
  .hero .inner{grid-template-columns:1fr;min-height:0}
  .hero .hero-text{order:1;padding:44px 20px 36px}
  .hero-photo{order:2;min-height:260px}
  .feature-row{grid-template-columns:1fr;gap:20px}
  .feature-row.rev .img-col{order:0}
  .cause-block{grid-template-columns:1fr}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .grid-2{grid-template-columns:1fr}
  .svc-rows{grid-template-columns:1fr}
  .svc-row:nth-child(-n+2){border-top:1px solid var(--border)}
  .svc-row:first-child{border-top:none}
}
@media (max-width:768px){
  .nav-desktop,.header-cta .btn-accent{display:none}
  .hamburger{display:flex}
  .header-cta .btn-primary{padding:10px 8px 10px 16px;font-size:14px}
}
@media (max-width:600px){
  .grid-5{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:1fr}
  .page-top-photo img{height:220px}
  .ba-compare{grid-template-columns:1fr}
  .ba-compare img{height:220px}
  .contact-grid{grid-template-columns:1fr}
  .cta-banner{flex-direction:column;text-align:center}
  .cta-banner .cta-actions{flex-direction:column;width:100%}
  .cta-banner .cta-actions .btn{width:100%}
  .site-footer .inner{flex-direction:column}
  .footer-cta{align-items:flex-start}
  section{padding:40px 0}
  .hero-photo{min-height:200px}
  .hero .hero-text{padding:36px 18px 28px}
}
@media (max-width:420px){
  .wrap{padding:0 16px}
}
