/* 노블홈케어 공통 스타일 — 깔끔한 기업형 · 반응형
   레이아웃: 흰 바탕 + 연한 블루 섹션 교차, 코퍼레이트 블루 한 가지 포인트, 슬라이드 히어로. */

:root {
  --primary: #1b5fd1;
  --primary-dark: #1449a8;
  --primary-soft: #eaf1fd;
  --primary-light: #8fb8ff;
  --navy: #0f1f3d;
  --hero-navy: #0b2250;
  --ink: #1a2233;
  --muted: #5b6578;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --kakao: #fee500;
  --radius: 16px;
  --shadow: 0 18px 44px rgba(15, 31, 61, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

section { padding-block: 96px; }
.section-alt { background: var(--bg-soft); }

/* 섹션 머리 */
.sec-head { margin-bottom: 44px; max-width: 720px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-label {
  display: block; color: var(--primary); font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px;
}
.lead { color: var(--muted); margin-top: 14px; font-size: 1.04rem; max-width: 62ch; }
.sec-head.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block; color: var(--primary); background: var(--primary-soft);
  font-size: .85rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.small { font-size: .88rem; color: var(--muted); }

/* 아이콘 공통 */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 10px;
  font-family: inherit; font-size: 1rem; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-kakao { background: var(--kakao); color: #3a1d1d; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
:focus-visible { outline: 3px solid rgba(27, 95, 209, .45); outline-offset: 2px; }

/* 사진 자리 — 실제 사진은 style="--img:url('images/파일명.jpg')" 로 교체 */
.ph {
  --img: linear-gradient(135deg, #1d3f7a 0%, #0b2250 100%);
  position: relative; overflow: hidden; background: var(--hero-navy);
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: var(--img) var(--pos, center) / cover no-repeat;
}

/* 헤더 */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(15, 31, 61, .08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; transition: min-height .3s var(--ease); }
.site-header.scrolled .wrap { min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-mark { width: 42px; height: 42px; flex: none; border-radius: 10px; object-fit: contain; background: #fff; }
.site-footer .logo-mark { padding: 3px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.logo-text small { font-size: .62rem; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
.gnb { display: flex; align-items: center; gap: 30px; }
.gnb a { text-decoration: none; font-size: .98rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.gnb a:not(.btn):hover { color: var(--primary); }
.gnb .btn { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.gnb .btn-primary, .gnb .btn-primary:hover { color: #fff; }

/* 햄버거 버튼 */
.burger {
  display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: var(--navy); cursor: pointer;
}
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

/* 모바일 메뉴 (오른쪽 슬라이드) */
.mnav-dim {
  position: fixed; inset: 0; z-index: 65; background: rgba(15, 31, 61, .45);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.mnav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(86vw, 380px);
  background: #fff; display: flex; flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 24px;
  transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
}
body.menu-open .mnav { transform: none; visibility: visible; }
body.menu-open .mnav-dim { opacity: 1; visibility: visible; }
.mnav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mnav-close { width: 44px; height: 44px; border: 0; background: var(--bg-soft); border-radius: 10px; cursor: pointer; font-size: 1.4rem; color: var(--navy); }
.mnav-links { list-style: none; padding: 0; margin: 0; flex: 1; overflow-y: auto; }
.mnav-links a {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.1rem; font-weight: 700; color: var(--ink);
}
.mnav-links a::after { content: "›"; color: var(--primary); font-size: 1.3rem; }
.mnav-cta { display: grid; gap: 10px; margin-top: 20px; }
.mnav-tel { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* 히어로 슬라이드 */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--hero-navy);
  min-height: clamp(600px, 84svh, 820px); display: flex; align-items: center; padding-block: 72px 80px;
}
.slides { position: absolute; inset: 0; }
.slides::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 24, 52, .80) 0%, rgba(10, 24, 52, .52) 48%, rgba(10, 24, 52, .18) 100%),
    linear-gradient(0deg, rgba(10, 24, 52, .35) 0%, transparent 40%);
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.slide.active { opacity: 1; }
.slide .ph { position: absolute; inset: 0; }
.slide .ph::before { transform: scale(1.06); transition: transform 7s linear; }
.slide.active .ph::before { transform: scale(1); }
.hero > .wrap { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.caps { display: grid; }
.cap { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease), visibility .8s; }
.cap.active { opacity: 1; visibility: visible; transform: none; }
.hero-label { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-light); margin-bottom: 16px; }
.hero h1 strong { color: var(--primary-light); font-weight: 800; }
.hero .desc { color: rgba(255, 255, 255, .85); font-size: 1.1rem; margin-top: 20px; max-width: 46ch; }
.hero .cta-row { margin-top: 32px; }
.hero-facts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 500; color: #fff; }
.hero-facts .ico { width: 20px; height: 20px; color: var(--primary-light); }

.hero-ctrl { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.count { font-size: .95rem; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.count .tot { color: rgba(255,255,255,.55); font-weight: 500; }
.bars { display: flex; gap: 6px; }
.bars button { width: 44px; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.bars button::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); }
.bars button span { position: absolute; left: 0; top: 8px; height: 3px; width: 0; border-radius: 3px; background: #fff; }
.bars button.on span { animation: barfill var(--dur, 6s) linear forwards; }
.bars.paused button.on span { animation: none; width: 100%; }
@keyframes barfill { to { width: 100%; } }
.arrows { display: flex; gap: 6px; }
.arrows button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent;
  color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.arrows button:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.quick-card {
  background: #fff; color: var(--ink); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(4, 14, 36, .35); padding: 32px;
}
.quick-card h2 { font-size: 1.35rem; }
.quick-card > p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.quick-card form { display: grid; gap: 14px; margin-top: 22px; }

/* 폼 공통 */
.field label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27, 95, 209, .15); }
.form-msg { font-size: .9rem; color: var(--primary-dark); background: var(--primary-soft); border-radius: 8px; padding: 10px 12px; }

/* 문자 보내기 확인 상자 */
.sms-fallback { background: var(--primary-soft); border-radius: 14px; padding: 18px; display: grid; gap: 12px; }
.sf-lead { font-size: .92rem; font-weight: 500; color: var(--navy); }
.sf-text {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  padding: 12px 14px; font: inherit; font-size: .95rem; line-height: 1.6; resize: vertical; min-height: 150px;
}
.sf-text:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27, 95, 209, .15); }
.sf-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sf-actions .btn { width: 100%; min-height: 48px; }
.sf-status { font-size: .88rem; color: var(--primary-dark); min-height: 1em; }
.sf-status:empty { display: none; }
.sf-pc { font-size: .85rem; color: var(--muted); }
form.quote .sf-actions { grid-template-columns: 1fr 1fr; }
form.quote .sf-actions .sf-sms { grid-column: 1 / -1; }
@media (max-width: 600px) { form.quote .sf-actions { grid-template-columns: 1fr; } }

/* 서비스 카드 */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.svc-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card { overflow: hidden; }
.svc-thumb { margin: -30px -26px 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--primary-soft); }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.svc-card:hover .svc-thumb img { transform: scale(1.05); }
.svc-thumb-plain {
  display: grid; place-items: center; color: rgba(255,255,255,.9);
  background: linear-gradient(135deg, #2a6fe0 0%, #0f3f99 100%);
}
.svc-thumb-plain .ico { width: 64px; height: 64px; stroke-width: 1.2; }
.svc-thumb + .icon-box { margin-top: -28px; position: relative; background: #fff; box-shadow: 0 6px 16px rgba(15, 31, 61, .12); }
.icon-box {
  width: 56px; height: 56px; border-radius: 14px; background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 6px;
}
.icon-box .ico { width: 28px; height: 28px; }
.svc-card p { color: var(--muted); font-size: .95rem; }
.mini { list-style: none; padding: 14px 0 0; margin: 4px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.mini li { font-size: .9rem; color: var(--ink); padding-left: 14px; position: relative; }
.mini li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.svc-card .more { margin-top: auto; padding-top: 8px; color: var(--primary); font-weight: 700; font-size: .95rem; }

/* 패키지 밴드 */
.package {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: 24px; padding: 56px;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
}
.package .sec-label { color: #bcd2ff; }
.package h2 { color: #fff; }
.package p { color: #dbe6ff; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; }
.package .cta-row { display: grid; grid-template-columns: 1fr; gap: 10px; justify-self: end; width: 100%; max-width: 260px; }
.package .cta-row .btn { width: 100%; }

/* 원칙 */
.pr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pr { background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); }
.pr .icon-box { margin-bottom: 18px; }
.pr p { color: var(--muted); font-size: .95rem; margin-top: 8px; }

/* 진행 단계 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-soft); }
.step::before {
  counter-increment: step; content: "STEP 0" counter(step);
  display: block; color: var(--primary); font-weight: 800; font-size: .82rem; letter-spacing: .12em; margin-bottom: 12px;
}
.step p { color: var(--muted); font-size: .95rem; margin-top: 8px; }

/* 시공 기록 카드 */
.rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rec-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .2s, border-color .2s;
}
.rec-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.rec-thumb {
  aspect-ratio: 4 / 3; max-width: 100%; background: var(--primary-soft);
  position: relative; overflow: hidden;
}
.rec-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.rec-card:hover .rec-thumb img { transform: scale(1.05); }
.rec-region {
  position: absolute; left: 14px; top: 14px; background: #fff; color: var(--navy);
  font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 6px;
}
.rec-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

/* 작업 현장 사진 (서비스 상세) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.gallery-head { margin-bottom: 20px; }
.rec-tag { font-size: .8rem; font-weight: 700; color: var(--primary); }
.rec-body h3 { font-size: 1rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rec-date { margin-top: auto; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-foot { margin-top: 32px; display: flex; justify-content: center; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-weight: 800; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin-top: 12px; }

/* 문의 */
.quote-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .icon-box { width: 46px; height: 46px; margin: 0; }
.contact-list .icon-box .ico { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: 1.05rem; }
.contact-list span { color: var(--muted); font-size: .9rem; }
form.quote {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: 32px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr;
}
form.quote .full { grid-column: 1 / -1; }

/* 서비스 상세 페이지 */
.page-hero {
  background:
    radial-gradient(800px 360px at 90% 0%, rgba(27, 95, 209, .10), transparent 70%),
    linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
  padding-block: 64px 56px; border-bottom: 1px solid var(--line);
}
.page-hero .lead { margin-top: 18px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.info-box p { color: var(--muted); margin-top: 10px; font-size: .97rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b5fd1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: tl; }
.timeline li { position: relative; padding: 0 0 28px 48px; counter-increment: tl; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: counter(tl); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center;
}
.timeline strong { display: block; font-size: 1.05rem; }
.timeline span { color: var(--muted); font-size: .95rem; }
.band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: 24px; padding: 52px;
}
.band h2 { color: #fff; }
.band p { color: #dbe6ff; margin-top: 12px; }
.band .cta-row { margin-top: 26px; }

/* 푸터 */
.site-footer { background: var(--navy); color: #a9b5cb; padding: 64px 0 120px; font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 18px; }
.site-footer .logo-text small { color: #8d9bb5; }
.foot-info { line-height: 1.9; }
.copy { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: #7f8ca5; font-size: .85rem; }

/* 빠른 문의: PC 우측 플로팅 / 모바일 하단 바 */
.fixed-bar {
  position: fixed; z-index: 50; display: flex; gap: 10px;
  right: max(24px, env(safe-area-inset-right, 0px)); bottom: max(24px, env(safe-area-inset-bottom, 0px));
  flex-direction: column; align-items: flex-end;
}
.fixed-bar a, .fixed-bar button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 104px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .88rem;
  box-shadow: 0 8px 20px rgba(15, 31, 61, .16); border: 0; cursor: pointer;
}
.fixed-bar a:nth-child(1) { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.fixed-bar a:nth-child(2) { background: var(--kakao); color: #3a1d1d; }
.fixed-bar a:nth-child(3) { background: var(--primary); color: #fff; }
.fixed-bar .fb-top {
  width: 44px; min-width: 0; padding: 0; background: var(--navy); color: #fff; font-size: .72rem;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.fixed-bar .fb-top.show { opacity: 1; visibility: visible; }

/* 스크롤 등장 효과 (스크립트가 있을 때만) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }

/* 반응형 */
@media (max-width: 1080px) {
  .gnb { display: none; }
  .burger { display: block; }
  .svc-grid, .pr-grid, .rec-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  section { padding-block: 72px; }
  .hero { min-height: 0; padding-block: 56px 56px; }
  .hero-grid, .two-col, .faq-wrap, .quote-wrap, .package { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .package { padding: 40px 28px; }
  .package .cta-row { justify-self: stretch; max-width: none; grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .band { padding: 40px 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .site-header .wrap { min-height: 64px; }

  .fixed-bar {
    left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; align-items: stretch;
    background: #fff; border-top: 1px solid var(--line);
    padding: 0 max(0px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(0px, env(safe-area-inset-left, 0px));
  }
  .fixed-bar a { flex: 1; border-radius: 0; box-shadow: none; min-height: 58px; border: 0 !important; }
  .fixed-bar .fb-top { display: none; }
}

.swipe-hint { display: none; }

@media (max-width: 600px) {
  section { padding-block: 60px; }
  .sec-head { margin-bottom: 28px; }

  /* 서비스: 옆으로 넘기는 카드 */
  .svc-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -20px; padding: 4px 20px 12px; scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .svc-grid::-webkit-scrollbar { display: none; }
  .svc-card { flex: 0 0 84%; scroll-snap-align: start; padding: 24px 20px; }
  .svc-thumb { margin: -24px -20px 0; }
  .svc-card:hover { transform: none; }
  .swipe-hint { display: block; text-align: center; font-size: .85rem; color: var(--muted); margin-top: 4px; }

  /* 작업 원칙 · 진행 절차: 2열 */
  .pr-grid, .steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pr { padding: 20px 16px; }
  .pr .icon-box { width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px; }
  .pr .icon-box .ico { width: 22px; height: 22px; }
  .pr h3, .step h3 { font-size: 1rem; }
  .pr p, .step p { font-size: .86rem; }
  .step { padding: 20px 16px; }
  .step::before { margin-bottom: 8px; font-size: .75rem; }

  /* 시공 현장: 2열 */
  .rec-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rec-body { padding: 12px 12px 14px; gap: 4px; }
  .rec-body h3 { font-size: .9rem; }
  .rec-tag { font-size: .75rem; }
  .rec-region { left: 8px; top: 8px; font-size: .7rem; padding: 3px 7px; }

  .site-footer { padding-top: 48px; }
  form.quote { grid-template-columns: 1fr; padding: 24px; }
  .quick-card { padding: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .package .cta-row { grid-template-columns: 1fr; }
  .gallery {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -20px 40px; padding: 0 20px 8px; scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 78%; scroll-snap-align: start; }
  .band .cta-row .btn, .page-hero .cta-row .btn { flex: 1 1 100%; }
  .bars button { width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
