/* ==========================================================================
   언바운드(UNBOUND) 계단파손수리 — 공통 디자인 시스템
   파스텔 라벤더 · 코랄핑크 · 민트 톤 / 형제사이트(오렌지·네이비·베이지) 미사용
   헤딩 폰트: Gowun Dodum(라운드고딕) / 본문: Pretendard
   ========================================================================== */

:root {
  --primary: #8B7FD1;
  --primary-dark: #6B5FB5;
  --primary-light: #D9D3F5;
  --accent: #F6A6B2;
  --accent-dark: #E8798A;
  --accent-light: #FDE7EA;
  --mint: #7FD1C3;
  --mint-light: #E3F7F1;
  --bg: #FBFAFF;
  --bg-soft: #F2EEFC;
  --surface: #FFFFFF;
  --text: #332F4B;
  --text-soft: #6E6A8A;
  --border: #E7E2F5;
  --shadow: 0 10px 30px rgba(107, 95, 181, 0.12);
  --shadow-sm: 0 4px 14px rgba(107, 95, 181, 0.09);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 76px;
  --font-head: "Gowun Dodum", "Pretendard", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.2em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 16px; font-weight: 700; font-family: var(--font-head); }
.break-mobile { display: none; }
@media (max-width: 600px) { .break-mobile { display: inline; } }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 14px; }
.lead { font-size: 1.06rem; color: var(--text-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary-dark); background: var(--bg-soft);
  border: 1px solid var(--primary-light); font-weight: 700; font-size: 0.82rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-outline { background: #fff; color: var(--primary-dark); border-color: var(--primary-light); }
.btn-outline:hover { background: var(--bg-soft); transform: translateY(-3px); }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.btn-accent:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-lg { padding: 17px 32px; font-size: 1.08rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; height: var(--header-h);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251,250,255,0.88); backdrop-filter: blur(8px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); font-family: var(--font-head); min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand small { display: block; font-size: 0.66rem; font-weight: 500; color: var(--text-soft); letter-spacing: 0.02em; font-family: "Pretendard", sans-serif; }
.brand > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-weight: 600; color: var(--text-soft); padding: 8px 2px; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--primary); transform: scaleX(0); transition: transform .2s ease; transform-origin: left;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary-dark); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text); flex-shrink: 0; }

@media (max-width: 600px) {
  .brand small { display: none; }
  .brand { font-size: 1rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-primary { padding: 10px 14px; font-size: 0.85rem; }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px 24px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
}

/* ---------- 브레드크럼 ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--text-soft); padding: 16px 0 0; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--primary-dark); }

/* ---------- 히어로 (형제사이트와 다른 비대칭 레이아웃, 사진 대신 파스텔 그라디언트+블롭) ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 620px;
  display: flex; align-items: center;
  background: linear-gradient(150deg, #F3EEFF 0%, #FBFAFF 45%, #FFF1F4 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(6px); opacity: .55; z-index: 0;
}
.hero::before { width: 420px; height: 420px; background: radial-gradient(circle, var(--primary-light), transparent 70%); top: -120px; right: -80px; }
.hero::after { width: 320px; height: 320px; background: radial-gradient(circle, var(--mint-light), transparent 70%); bottom: -100px; right: 22%; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 70px 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; padding: 46px 0 30px; } }
.hero-copy { text-align: left; }
.hero h1 { color: var(--text); margin-bottom: 18px; }
.hero h1 .accent-word { color: var(--primary-dark); }
.hero .lead { color: var(--text-soft); max-width: 560px; font-size: 1.12rem; }
.hero-stats { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.35rem; color: var(--primary-dark); font-family: var(--font-head); }
.hero-stats div span { font-size: 0.8rem; color: var(--text-soft); }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy > .eyebrow { animation: heroFadeUp .7s ease both; }
.hero-copy > h1 { animation: heroFadeUp .7s ease .12s both; }
.hero-copy > .lead { animation: heroFadeUp .7s ease .24s both; }
.hero-copy > .btn-row { animation: heroFadeUp .7s ease .36s both; }
.hero-copy > .hero-stats { animation: heroFadeUp .7s ease .48s both; }

.hero-visual { position: relative; z-index: 2; }
.hero-photo-card {
  position: relative; border-radius: 32px 32px 32px 8px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/3; border: 6px solid #fff; animation: heroFadeUp .8s ease .2s both;
}
.hero-photo-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge-float {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.86rem; z-index: 3;
  animation: heroFadeUp .8s ease .5s both;
}
.hero-badge-float.b1 { top: -18px; left: -14px; color: var(--primary-dark); }
.hero-badge-float.b2 { bottom: -18px; right: -10px; color: var(--accent-dark); }
@media (max-width: 900px) { .hero-badge-float { display: none; } }
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero .eyebrow { font-size: 0.76rem; padding: 5px 12px; }
  .hero .lead { font-size: 0.9rem; }
  .hero-stats { flex-wrap: nowrap; gap: 10px; }
  .hero-stats div { min-width: 0; flex: 1 1 0; }
  .hero-stats div strong { font-size: 1.05rem; }
  .hero-stats div span { font-size: 0.6rem; white-space: normal; }
  .hero .btn-row .btn-lg { padding: 12px 20px; font-size: 0.9rem; }
}

.page-hero { min-height: 300px; background: linear-gradient(150deg, #F3EEFF 0%, #FBFAFF 60%, #FFF1F4 100%); }
.page-hero .hero-grid { padding: 54px 0 40px; grid-template-columns: 1fr; }
.page-hero h1 { margin-bottom: 12px; }

/* ---------- 섹션 헤더 ---------- */
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 36px; text-align: left; }

/* ---------- 카드 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--primary); font-size: 1.5rem; margin-bottom: 16px;
}
.card.accent .icon-badge { background: var(--mint-light); color: var(--mint); }

.service-card { overflow: hidden; padding: 0; }
.service-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .thumb img { transform: scale(1.08); }
.service-card .body { padding: 22px; }
.service-card .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--mint); background: var(--mint-light); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

.service-detail-photo { aspect-ratio: 4/3; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow); }
.service-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .service-detail-photo { aspect-ratio: 16/10; border-radius: 18px; } }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 480px; }
@media (max-width: 600px) { table { min-width: 0; } thead th, tbody td { font-size: 0.82rem; padding: 10px 12px; } }
thead th { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 700; text-align: left; padding: 14px 18px; font-size: 0.92rem; }
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-soft); }
.table-note { font-size: 0.82rem; color: var(--text-soft); margin-top: 10px; }

/* ---------- 프로세스 스텝 ---------- */
.steps { display: flex; gap: 18px; flex-wrap: wrap; counter-reset: step; }
.step { flex: 1 1 180px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; font-family: var(--font-head);
}
.steps-arrow { display:flex; align-items:center; justify-content:center; color: var(--primary-light); font-size:1.4rem; }
@media (max-width: 900px) { .steps-arrow { display: none; } }

@media (max-width: 600px) {
  section { padding: 40px 0; }
  .section-head { margin-bottom: 26px; }
}

/* ---------- 전후 비교 ---------- */
.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .compare-wrap { grid-template-columns: 1fr; } }
.compare-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 3/4; border: 1px solid var(--border); }
.compare-photo img { width: 100%; height: 100%; object-fit: cover; }
.compare-photo .compare-tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; color: #fff;
}
.compare-photo.before .compare-tag { background: rgba(110, 106, 138, 0.85); }
.compare-photo.after .compare-tag { background: var(--accent-dark); }

/* ---------- 갤러리 그리드 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  border-radius: 14px; overflow: hidden; cursor: zoom-in; position: relative; aspect-ratio: 1/1;
  border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .num {
  position: absolute; top: 8px; left: 8px; background: rgba(51,47,75,0.6); color: #fff;
  font-size: 0.72rem; padding: 2px 8px; border-radius: 999px;
}
.lightbox {
  position: fixed; inset: 0; background: rgba(51,47,75,0.92); z-index: 999;
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 10px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.14); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 1rem; color: var(--text);
}
.faq-q .mark { color: var(--primary); font-size: 1.3rem; transition: transform .25s ease; flex-shrink: 0; }
.faq-item.open .faq-q .mark { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 22px; color: var(--text-soft); }
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 20px; }
.faq-extra { max-height: 0; overflow: hidden; transition: max-height .5s ease; }
.faq-extra.expanded { max-height: 3000px; }
.faq-more-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 4px;
  padding: 14px; border-radius: var(--radius-sm); border: 1px dashed var(--primary-light); background: var(--bg-soft);
  color: var(--primary-dark); font-weight: 700; cursor: pointer; font-size: 0.95rem;
}
.faq-more-btn:hover { background: var(--primary-light); }
.faq-more-btn .arrow { transition: transform .25s ease; }
.faq-more-btn.expanded .arrow { transform: rotate(180deg); }

/* ---------- CTA 밴드 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  color: #fff; border-radius: 28px; padding: 46px; text-align: center; margin: 0 24px;
}
.cta-band h2 { color: #fff; word-break: keep-all; overflow-wrap: break-word; }
.cta-band p { color: rgba(255,255,255,0.92); word-break: keep-all; overflow-wrap: break-word; }
.cta-band .btn-white { color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.cta-band .btn-outline { background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.65); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.22); }
@media (max-width: 480px) {
  .cta-band { padding: 32px 22px; margin: 0 16px; }
  .cta-band h2 { font-size: 1.3rem; }
  .cta-band p { font-size: 0.9rem; }
}

/* ---------- 지도/연락처 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid > div { display: flex; flex-direction: column; }
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-info-list .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); flex: 1; min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 900px) { .map-embed { min-height: 280px; } .map-embed iframe { min-height: 280px; } }
.quote-phone-card { padding: 40px 28px; }
@media (max-width: 600px) {
  .map-embed { min-height: 220px; }
  .map-embed iframe { min-height: 220px; }
  .contact-info-list li { padding: 12px 0; gap: 10px; }
  .contact-info-list .ic { width: 34px; height: 34px; font-size: 0.9rem; }
  .contact-info-list strong { font-size: 0.92rem; }
  #call .card, .quote-phone-card { padding: 24px 18px; }
}

/* ---------- 사업자정보 배지 ---------- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge-row span { background: var(--bg-soft); color: var(--primary-dark); font-size: 0.78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--primary-light); }

/* ---------- 푸터 ---------- */
.site-footer { background: #F5F2FC; border-top: 1px solid var(--border); padding: 52px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; font-family: var(--font-head); }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-footer h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; color: var(--text-soft); font-size: 0.92rem; }
.site-footer a.footer-link { color: var(--text-soft); }
.site-footer a.footer-link:hover { color: var(--primary-dark); }
.footer-biz { margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--border); font-size: 0.82rem; color: var(--text-soft); line-height: 1.9; }
.footer-bottom { margin-top: 18px; font-size: 0.78rem; color: var(--text-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- 스크롤 리빌 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* ---------- 플로팅 상담 버튼(모바일) ---------- */
.float-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 10px 24px rgba(107,95,181,0.35);
  animation: pulse-ring 2.4s infinite;
  opacity: 1; transform: scale(1); transition: opacity .25s ease, transform .25s ease;
}
.float-call.is-hidden { opacity: 0; transform: scale(0.6); pointer-events: none; }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(139,127,209,0.45), 0 10px 24px rgba(107,95,181,0.35); }
  70% { box-shadow: 0 0 0 16px rgba(139,127,209,0), 0 10px 24px rgba(107,95,181,0.35); }
  100% { box-shadow: 0 0 0 0 rgba(139,127,209,0), 0 10px 24px rgba(107,95,181,0.35); }
}

.bg-soft { background: var(--bg-soft); }
.bg-mint { background: var(--mint-light); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
