/* 한결시공 — 명함형 1p 샘플 · 생활 시공·수리 */
: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;
  --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; }
.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 ease, box-shadow .12s ease, background .12s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(245, 119, 44, 0.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-kakao:hover { filter: brightness(0.96); }

/* ── Header ── */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 24px; 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); letter-spacing: 0; }
.head-nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.head-nav a:hover { color: var(--brand); }

/* ── Hero ── */
.hero { background: linear-gradient(180deg, #f2f7fd 0%, #ffffff 100%); padding: 60px 0 70px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 0.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: 28px; flex-wrap: wrap; }
.trust { list-style: none; display: flex; gap: 30px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.trust li { display: flex; flex-direction: column; }
.trust b { font-size: 24px; font-weight: 800; color: var(--brand); }
.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, 0.92); color: #fff; }
.ba-tag-b { left: 14px; background: rgba(0, 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, 0.28); }
.ba-handle::before { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; font-size: 15px; color: var(--brand); letter-spacing: 2px; }
.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, 0.5); }

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

/* ── Service 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 ease, box-shadow .14s ease, 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; }
.card-cta { background: linear-gradient(150deg, var(--brand), var(--brand-2)); color: #fff; border: none; display: flex; flex-direction: column; justify-content: center; }
.card-cta h3, .card-cta p { color: #fff; }
.card-cta p { opacity: .9; }
.link-arrow { margin-top: 14px; font-weight: 700; color: #fff; align-self: flex-start; border-bottom: 2px solid rgba(255,255,255,.6); padding-bottom: 2px; }

/* ── Gallery (before/after pairs) ── */
.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); }
.ga-pair { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 10; }
.ga-b, .ga-a { display: flex; align-items: flex-start; justify-content: 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); }

/* ── Steps ── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 28px; }
.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; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }

/* ── Reviews ── */
.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; color: var(--ink); font-size: 15px; }
.review cite { display: block; margin-top: 14px; font-style: normal; font-size: 13px; color: var(--muted); }

/* ── CTA band ── */
.cta-band { background: linear-gradient(135deg, var(--brand), #0d3a68); color: #fff; padding: 56px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: 27px; font-weight: 800; }
.cta-band p { margin-top: 10px; opacity: .9; font-size: 16px; }

/* ── Footer ── */
.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; }

/* ── Mobile sticky CTA bar ── */
.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 { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .head-nav { display: none; }
  .section { padding: 52px 0; }
  .sec-title { font-size: 25px; }
  .hero { padding: 40px 0 52px; }
  .hero h1 { font-size: 28px; }
  .cards, .gallery, .steps, .reviews { 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; }
  .btn-call { display: none; }
}
