/* =====================================================================
   커튼나라 효과 레이어 (site.css 다음에 로드)
   움직임 줄이기 설정을 켠 기기에서는 모두 꺼집니다.
   ===================================================================== */

/* 스크롤 진행 막대 */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--signal), #ffb497, var(--blue-soft)); }

/* 헤더: 스크롤하면 얇아지고 그림자 */
.site-header { transition: background-color .3s, box-shadow .3s; }
.site-header__inner { transition: min-height .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.site-header.is-scrolled .site-header__inner { min-height: 54px; }
.header-call { display: inline-flex; align-items: center; gap: 8px; }
.header-call__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: dot-ping 1.8s infinite; }
@keyframes dot-ping { 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

/* 히어로: 커튼이 양옆으로 걷히며 시작 */
.hero-bg { animation: ken-burns 18s ease-out both; }
@keyframes ken-burns { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero-curtain {
  position: absolute; top: 0; bottom: 0; width: 51%; z-index: 5; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .35)),
    repeating-linear-gradient(90deg, #6d1a25 0, #a4303f 14px, #c4485a 22px, #8c2633 34px, #6d1a25 46px);
}
.hero-curtain::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24px; background: linear-gradient(#d8b46a, #8a6a2c); box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.hero-curtain--l { left: 0; transform-origin: 0 0; animation: curtain-open-l 1.7s cubic-bezier(.7, 0, .2, 1) .3s forwards; }
.hero-curtain--r { right: 0; transform-origin: 100% 0; animation: curtain-open-r 1.7s cubic-bezier(.7, 0, .2, 1) .3s forwards; }
@keyframes curtain-open-l { 70% { opacity: 1; } to { transform: translateX(-92%) scaleX(.3); opacity: 0; } }
@keyframes curtain-open-r { 70% { opacity: 1; } to { transform: translateX(92%) scaleX(.3); opacity: 0; } }
.hero-glow { position: absolute; z-index: 1; width: 620px; height: 620px; left: 50%; top: 42%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 92, .22), transparent 65%); animation: glow-drift 9s ease-in-out infinite alternate; pointer-events: none; transform: translate(-50%, -50%); }
@keyframes glow-drift { from { transform: translate(-62%, -52%) scale(.9); } to { transform: translate(-38%, -46%) scale(1.1); } }
.hero-inner > * { animation: rise-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-inner > :nth-child(1) { animation-delay: 1.1s; } .hero-inner > :nth-child(2) { animation-delay: 1.2s; }
.hero-inner > :nth-child(3) { animation-delay: 1.3s; } .hero-inner > :nth-child(4) { animation-delay: 1.4s; }
.hero-inner > :nth-child(5) { animation-delay: 1.5s; } .hero-inner > :nth-child(6) { animation-delay: 1.6s; }
.hero-inner > :nth-child(7) { animation-delay: 1.7s; } .hero-inner > :nth-child(8) { animation-delay: 1.8s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero h1 { font-size: 56px; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.shine-text { background: linear-gradient(100deg, #8ec8ff 20%, #ffffff 40%, #ffb497 55%, #8ec8ff 75%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine-move 5s linear infinite; }
@keyframes shine-move { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.eyebrow::before { display: none; }
.eyebrow__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255, 107, 53, .7); animation: dot-ping-o 1.8s infinite; }
@keyframes dot-ping-o { 70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); } }
.proof-chip { backdrop-filter: blur(6px); transition: transform .25s, border-color .25s, background-color .25s; }
.proof-chip:hover { transform: translateY(-3px); border-color: #ff8a5c; background: rgba(255, 107, 53, .16); }
.hero-stats { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-stats > div { min-width: 132px; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.hero-stats b { display: block; font-size: 30px; line-height: 1.1; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats small { font-size: 12.5px; color: #b9c9da; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; z-index: 3; fill: #fff; }
.hero-inner { padding-bottom: 84px; }
.consult-card { position: relative; z-index: 4; }

/* 반짝 지나가는 버튼 */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after { content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: rotate(18deg); animation: btn-sweep 3.2s ease-in-out infinite; z-index: -1; pointer-events: none; }
@keyframes btn-sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* 스크롤하면 나타나기 (JS 가 있을 때만 숨김) */
html.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--rv, 0) * 90ms); }
html.js .rv.rv--left { transform: translateX(-40px); }
html.js .rv.rv--zoom { transform: scale(.94); }
html.js .rv.is-in { opacity: 1; transform: none; }

/* 섹션 제목 밑줄 */
.section-head h2, .center-title, .featured-cases__head h2 { position: relative; padding-bottom: 14px; }
.section-head h2::after, .center-title::after, .featured-cases__head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; margin-left: -28px; border-radius: 4px; background: linear-gradient(90deg, var(--signal), #ffb497); transform: scaleX(0); transition: transform .8s .2s cubic-bezier(.2, .8, .2, 1); }
.section-head.is-in h2::after, .center-title.is-in::after, .featured-cases__head.is-in h2::after, html:not(.js) .section-head h2::after { transform: scaleX(1); }

/* 상황 카드 */
.situation-card { transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, opacity .8s; box-shadow: 0 10px 30px rgba(16, 40, 58, .14); }
.situation-card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: 0 26px 50px rgba(16, 40, 58, .28), 0 0 0 2px rgba(255, 138, 92, .7); }
.situation-card__num { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(11, 31, 51, .7); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #ffd7c8; }
.situation-card h3 { transition: transform .4s; }
.situation-card:hover h3 { transform: translateY(-4px); }

/* 가이드 카드 */
.guide-item { overflow: hidden; transition: transform .35s, box-shadow .35s, border-color .35s, opacity .8s; }
.guide-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--signal), #ffb497); transform: scaleY(0); transform-origin: top; transition: transform .5s; }
.guide-item:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(16, 40, 58, .12); border-color: #ffc9b2; }
.guide-item:hover::before { transform: scaleY(1); }
.guide-num { transition: color .35s; }
.guide-item:hover .guide-num { color: #ffd7c8; }

/* 사례 카드 */
.featured-case { transition: transform .4s, box-shadow .4s, opacity .8s; }
.featured-case:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(16, 40, 58, .16); }
.featured-case__img { position: relative; overflow: hidden; }
.featured-case__img img { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.featured-case:hover .featured-case__img img { transform: scale(1.07); }
.featured-case__badge { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--signal-dark); font-size: 12px; font-weight: 700; }

/* 전화 띠: 빛이 움직이고 게이지가 차오름 */
.callnow { position: relative; overflow: hidden; }
.callnow::before { content: ""; position: absolute; inset: -40% -10%; background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, .2), transparent 40%), radial-gradient(circle at 85% 40%, rgba(142, 200, 255, .15), transparent 40%); animation: glow-drift2 10s ease-in-out infinite alternate; }
@keyframes glow-drift2 { to { transform: translateX(6%); } }
.callnow__in { position: relative; }
.callnow__meter { height: 6px; margin-top: 16px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.callnow__meter i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--green), #ffd34d, var(--signal)); transition: width 2.2s cubic-bezier(.2, .8, .2, 1) .3s; }
.callnow.is-in .callnow__meter i, html:not(.js) .callnow__meter i { width: 100%; }
html.js .callnow__steps li { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; transition-delay: calc(var(--i) * 220ms + .2s); }
html.js .callnow.is-in .callnow__steps li { opacity: 1; transform: none; }

/* 방문 지역: 읍면동 칩 + 동네 이야기 */
.eyebrow--dark { font-size: 14px; }
.coverage-chips { list-style: none; padding: 0; margin: 0 auto 26px; max-width: 980px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.coverage-chips li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(171, 216, 244, .3); background: rgba(255, 255, 255, .05); font-size: 14px; color: #d6e2ec; transition: transform .25s, background-color .25s, opacity .4s; }
.coverage-chips li:hover { transform: translateY(-3px); background: rgba(142, 200, 255, .14); }
.coverage-chips li.is-spot { border-color: rgba(255, 107, 53, .7); background: rgba(255, 107, 53, .16); color: #fff; }
html.js .coverage-chips.rv { opacity: 1; transform: none; }
html.js .coverage-chips.rv li { opacity: 0; transform: scale(.8); }
html.js .coverage-chips.rv.is-in li { opacity: 1; transform: none; }
.coverage-spot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.coverage-spot article { padding: 18px; border-radius: 16px; border: 1px solid rgba(171, 216, 244, .26); background: rgba(4, 20, 34, .4); transition: transform .3s, border-color .3s, opacity .8s; }
.coverage-spot article:hover { transform: translateY(-4px); border-color: rgba(255, 138, 92, .6); }
.coverage-spot b { display: block; margin-bottom: 6px; color: #ffb497; font-size: 16px; }
.coverage-spot p { margin: 0; color: #b9c9da; font-size: 14px; }
.coverage-near a { color: #ffb497; text-decoration: none; margin-left: 6px; }
@media (max-width: 900px) { .coverage-spot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .coverage-spot { grid-template-columns: 1fr; } }

/* 견적·체크·고민 카드 hover */
.price-factors > div, .arrival-card, .review-card { transition: transform .35s, box-shadow .35s, border-color .35s, opacity .8s; }
.price-factors > div:hover { transform: translateY(-5px); border-color: rgba(120, 185, 245, .6); background: rgba(255, 255, 255, .1); }
.arrival-card:hover, .review-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(16, 40, 58, .12); }
.worry-card { position: relative; padding-top: 30px; overflow: hidden; }
.worry-card::before { content: "\201C"; position: absolute; top: -6px; right: 18px; font-size: 80px; line-height: 1; color: #ffe1d2; font-family: Georgia, serif; }
.phone-flow li { transition: transform .35s, background-color .35s, opacity .8s; }
.phone-flow li:hover { transform: translateX(8px); background: rgba(255, 255, 255, .1); }

/* FAQ */
.faq-list details { transition: box-shadow .3s, border-color .3s, opacity .8s, transform .8s; }
.faq-list details[open] { border-color: #b9d3e3; box-shadow: 0 10px 24px rgba(31, 111, 156, .08); }
.faq-list summary::after { transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-a p { margin: 0 0 18px; color: #3b4d5b; font-size: 15px; }
html.js .faq-list details[open] .faq-a { animation: faq-open .4s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 관련 페이지 */
.gl-list a { display: flex; flex-direction: column; gap: 4px; height: 100%; transition: border-color .15s, box-shadow .15s, transform .25s; }
.gl-list a::after { display: none; }
.gl-list b::after { content: " \2192"; color: var(--blue); }
.gl-list span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.gl-list a:hover { transform: translateY(-3px); }
.gl-cities { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 0; }
.gl-cities a { padding: 10px 20px; border-radius: 999px; border: 1px solid #b9d3e3; background: #fff; color: #1f6f9c; text-decoration: none; font-weight: 600; transition: background-color .2s, color .2s; }
.gl-cities a:hover { background: #1f6f9c; color: #fff; }

/* 허브·메인: 키워드/지역 카드 */
.kw-section { padding: 72px 0; background: var(--sky); }
.kw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kw-grid--4 { margin-top: 34px; }
.kw-card { position: relative; display: block; min-height: 260px; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; box-shadow: 0 10px 28px rgba(16, 40, 58, .16); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, opacity .8s; }
.kw-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s; }
.kw-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 26, 42, .05) 20%, rgba(8, 26, 42, .9) 85%); }
.kw-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(16, 40, 58, .3), 0 0 0 2px rgba(255, 138, 92, .8); }
.kw-card:hover img { transform: scale(1.08); }
.kw-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; }
.kw-card__body b { display: block; font-size: 19px; }
.kw-card__body small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: #d6e2ec; }
.kw-card__body i { position: absolute; right: 16px; top: -18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--signal); font-style: normal; transform: scale(0); transition: transform .35s cubic-bezier(.2, .8, .2, 1.4); }
.kw-card:hover .kw-card__body i { transform: scale(1); }
.kw-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kw-list li { padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, opacity .8s; }
.kw-list li:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16, 40, 58, .1); }
.kw-list b { font-size: 18px; }
.kw-list span { display: block; color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.kw-list p { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.kw-list a { padding: 5px 14px; border-radius: 999px; background: #f1f6fa; color: #1f6f9c; text-decoration: none; font-size: 13.5px; transition: background-color .2s, color .2s; }
.kw-list a:hover { background: var(--signal); color: #fff; }
@media (max-width: 1000px) { .kw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kw-list { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .kw-grid { grid-template-columns: 1fr; } }

/* 맨 위로 버튼 (진행률 고리) */
.to-top { position: fixed; right: 20px; bottom: 100px; z-index: 35; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: radial-gradient(120% 120% at 50% 0%, rgba(20, 60, 96, .95), rgba(7, 26, 44, .97)); box-shadow: 0 12px 26px rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.9); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__track { fill: none; stroke: rgba(142, 190, 234, .2); stroke-width: 2.5; }
.to-top__bar { fill: none; stroke: #ffb497; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 131.9; stroke-dashoffset: 131.9; }
.to-top__arrow { position: relative; width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.to-top:hover .to-top__arrow { transform: translateY(-3px); }

/* 퀵바 등장 */
.quickbar { animation: quick-up .6s 2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes quick-up { from { transform: translate(-50%, 140%); } to { transform: translate(-50%, 0); } }

@media (max-width: 720px) {
  .hero h1 { font-size: 38px; }
  .hero-stats { gap: 8px; }
  .hero-stats > div { min-width: 0; flex: 1; padding: 10px 6px; }
  .hero-stats b { font-size: 23px; }
  .hero-wave { height: 34px; }
  .hero-inner { padding-bottom: 60px; }
  .to-top { right: 14px; bottom: 96px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-curtain { display: none; }
  html.js .rv, html.js .callnow__steps li, html.js .coverage-chips.rv li { opacity: 1; transform: none; }
  .callnow__meter i { width: 100%; }
}
