/* 한결시공 — 매출형 5p 샘플 · 생활 시공·수리 (공유 스타일) */
:root {
  --ink: #0f1b2d; --ink-2: #33445c; --muted: #6b7a90; --line: #e5e9f0;
  --bg: #ffffff; --bg-alt: #f5f8fc; --brand: #14508c; --brand-2: #1d6fbf;
  --accent: #f5772c; --accent-dk: #e0631a; --kakao: #fee500; --kakao-ink: #191600;
  --ok: #16a34a; --radius: 16px; --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 12px; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; border: none; cursor: pointer; font-family: var(--font); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(245,119,44,.32); }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand-2); }
.btn-call { background: var(--brand); color: #fff; padding: 10px 18px; font-size: 14px; }
.btn-call:hover { background: var(--brand-2); }
.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-block { width: 100%; }

/* Header + nav */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { font-size: 21px; font-weight: 800; color: var(--brand); display: flex; flex-direction: column; line-height: 1.1; }
.brand span { font-size: 11px; font-weight: 600; color: var(--muted); }
.head-nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.head-nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.head-nav a:hover { color: var(--brand); }
.head-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.nav-toggle { display: none; margin-left: auto; font-size: 26px; line-height: 1; background: none; border: none; color: var(--ink); cursor: pointer; padding: 4px 8px; }

/* Sub-page hero */
.subhero { background: linear-gradient(135deg, var(--brand), #0d3a68); color: #fff; padding: 46px 0; }
.subhero h1 { font-size: 32px; font-weight: 800; }
.subhero p { margin-top: 10px; opacity: .9; font-size: 16px; max-width: 40em; }
.crumb { font-size: 13px; opacity: .8; margin-bottom: 12px; }
.crumb a:hover { text-decoration: underline; }

/* Home hero */
.hero { background: linear-gradient(180deg, #f2f7fd, #fff); padding: 58px 0 66px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand-2); background: #e3eefb; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 40px; font-weight: 800; }
.lead { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 30em; }
.hero-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.trust { list-style: none; display: flex; gap: 30px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.trust b { font-size: 24px; font-weight: 800; color: var(--brand); display: block; }
.trust span { font-size: 13px; color: var(--muted); }

/* Before/after slider */
.ba { position: relative; aspect-ratio: 4/3.2; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); user-select: none; }
.ba-after, .ba-before { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ph-after { background: linear-gradient(135deg,#dcefff,#f4faff); background-image: linear-gradient(135deg,#dcefff,#f4faff), repeating-linear-gradient(0deg, rgba(20,80,140,.06) 0 1px, transparent 1px 34px), repeating-linear-gradient(90deg, rgba(20,80,140,.06) 0 1px, transparent 1px 34px); }
.ph-before { background: linear-gradient(135deg,#55606e,#39424f); background-image: radial-gradient(circle at 24% 30%, rgba(20,25,30,.55), transparent 26%), radial-gradient(circle at 70% 66%, rgba(15,20,25,.5), transparent 30%), radial-gradient(circle at 46% 82%, rgba(30,35,25,.45), transparent 24%), linear-gradient(135deg,#55606e,#39424f); }
.ba-tag { position: absolute; top: 14px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.ba-tag-a { right: 14px; background: rgba(20,80,140,.92); color: #fff; }
.ba-tag-b { left: 14px; background: rgba(0,0,0,.55); color: #fff; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; z-index: 3; }
.ba-handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; border-radius: 999px; background: #fff; transform: translate(-50%,-50%); box-shadow: 0 3px 10px rgba(0,0,0,.28); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.ba figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 3; font-size: 13px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* Sections */
.section { padding: 70px 0; }
.section.alt { background: var(--bg-alt); }
.sec-title { font-size: 29px; font-weight: 800; text-align: center; }
.sec-sub { text-align: center; color: var(--muted); margin-top: 10px; margin-bottom: 38px; font-size: 16px; }
.note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }
.center { text-align: center; }
.mt { margin-top: 30px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .14s, box-shadow .14s, border-color .14s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic { width: 40px; height: 40px; fill: none; stroke: var(--brand-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }

/* Service detail rows */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; padding: 42px 0; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: none; }
.svc-row:nth-child(even) .svc-media { order: -1; }
.svc-media { aspect-ratio: 4/3; border-radius: var(--radius); box-shadow: var(--shadow); }
.svc-body h3 { font-size: 23px; font-weight: 800; }
.svc-body .tagline { color: var(--brand-2); font-weight: 700; margin-top: 4px; }
.svc-body p { margin-top: 12px; color: var(--ink-2); }
.svc-list { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-list li { font-size: 13px; font-weight: 600; color: var(--brand); background: #e9f1fb; padding: 6px 12px; border-radius: 999px; }

/* Filter + gallery + lightbox */
.filter { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.chip { font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; font-family: var(--font); transition: all .14s; }
.chip:hover { border-color: var(--brand-2); }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.ga { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(15,27,45,.05); cursor: pointer; transition: transform .14s; }
.ga:hover { transform: translateY(-3px); }
.ga-pair { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 16/10; }
.ga-b, .ga-a { display: flex; align-items: flex-start; padding: 10px; font-size: 11.5px; font-weight: 700; color: #fff; }
.ga-b { text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ga-a { text-shadow: 0 1px 3px rgba(20,80,140,.5); border-left: 2px solid #fff; }
.ga figcaption { padding: 13px 15px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(9,16,26,.82); padding: 20px; }
.lightbox.open { display: flex; }
.lb-inner { background: #fff; border-radius: var(--radius); max-width: 720px; width: 100%; overflow: hidden; }
.lb-pair { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 16/9; }
.lb-cap { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.lb-close { position: absolute; top: 18px; right: 22px; font-size: 30px; color: #fff; background: none; border: none; cursor: pointer; }

/* Cost table + timeline + AS (quote) */
.cost-table { width: 100%; border-collapse: collapse; margin: 0 auto; max-width: 760px; }
.cost-table th, .cost-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.cost-table th { background: var(--bg-alt); font-weight: 700; color: var(--ink); }
.cost-table td:last-child { font-weight: 700; color: var(--brand); text-align: right; white-space: nowrap; }
.timeline { max-width: 700px; margin: 0 auto; list-style: none; }
.timeline li { position: relative; padding: 0 0 30px 54px; }
.timeline li::before { content: ''; position: absolute; left: 17px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.tl-n { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; z-index: 1; }
.timeline h3 { font-size: 18px; }
.timeline p { color: var(--ink-2); margin-top: 4px; font-size: 14.5px; }
.asbadge { display: flex; align-items: center; gap: 16px; max-width: 640px; margin: 0 auto; background: #edf7ef; border: 1px solid #cfe9d6; border-radius: var(--radius); padding: 22px 26px; }
.asbadge .seal { width: 54px; height: 54px; border-radius: 999px; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; text-align: center; line-height: 1.1; }
.asbadge h3 { font-size: 18px; color: #14532d; }
.asbadge p { color: #276b3c; font-size: 14.5px; margin-top: 3px; }

/* Quote form */
.qform { max-width: 620px; margin: 0 auto; display: grid; gap: 16px; }
.qform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; font-family: var(--font); font-size: 15px; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); }
.field textarea { min-height: 110px; resize: vertical; }
.file-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-ok { display: none; background: #edf7ef; border: 1px solid #cfe9d6; color: #276b3c; border-radius: 12px; padding: 14px 16px; text-align: center; font-weight: 600; }

/* Steps / reviews / cta / about */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.step-n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e3eefb; color: var(--brand); font-size: 19px; font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 19px; } .steps p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stars { color: #f5a623; font-size: 16px; letter-spacing: 2px; }
.review p { margin-top: 12px; font-size: 15px; } .review cite { display: block; margin-top: 14px; font-style: normal; font-size: 13px; color: var(--muted); }
.cta-band { background: linear-gradient(135deg, var(--brand), #0d3a68); color: #fff; padding: 54px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: 26px; font-weight: 800; } .cta-band p { margin-top: 10px; opacity: .9; }
.info-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }
.map-ph { aspect-ratio: 16/10; border-radius: var(--radius); background: linear-gradient(135deg,#e8eef6,#f4f8fc); background-image: repeating-linear-gradient(0deg, rgba(20,80,140,.05) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, rgba(20,80,140,.05) 0 1px, transparent 1px 40px); display: grid; place-items: center; color: var(--muted); font-size: 14px; border: 1px solid var(--line); }
.info-list { list-style: none; } .info-list li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.info-list li:last-child { border-bottom: none; } .info-list .k { color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: center; }
.stat-row .n { font-size: 30px; font-weight: 800; color: var(--brand); } .stat-row .l { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* Footer + mobile bar */
.site-foot { background: #0d1826; color: #aebbcc; padding: 46px 0 30px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-brand strong { color: #fff; font-size: 18px; } .foot-in p { margin-top: 6px; } .foot-in h4 { color: #fff; font-size: 14px; margin-bottom: 8px; }
.foot-copy { text-align: center; margin-top: 22px; font-size: 12.5px; color: #6b7a90; }
.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); gap: 8px; box-shadow: 0 -6px 20px rgba(15,27,45,.08); }
.mbar-item { flex: 1; text-align: center; padding: 13px 0; border-radius: 11px; font-weight: 700; font-size: 15px; background: #eef2f8; color: var(--ink); }
.mbar-kakao { background: var(--kakao); color: var(--kakao-ink); } .mbar-quote { background: var(--accent); color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .cards, .gallery, .steps, .reviews, .stat-row { grid-template-columns: repeat(2,1fr); }
  .svc-row { grid-template-columns: 1fr; gap: 20px; } .svc-row:nth-child(even) .svc-media { order: 0; }
  .info-grid { grid-template-columns: 1fr; } .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .head-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 0; box-shadow: var(--shadow); }
  .head-nav.open { display: flex; }
  .head-nav a { padding: 13px 22px; border-bottom: none; }
  .head-in .btn-call { display: none; }
  .section { padding: 50px 0; } .sec-title { font-size: 24px; } .subhero h1 { font-size: 26px; }
  .hero { padding: 38px 0 50px; } .hero h1 { font-size: 27px; }
  .cards, .gallery, .steps, .reviews, .qform .row2, .stat-row { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 22px; } .cta-in { flex-direction: column; align-items: flex-start; }
  .mbar { display: flex; } body { padding-bottom: 74px; }
}
