/* ==========================================================
   춘천청소비치움 — style.css
   색상은 :root 변수만 바꾸면 사이트 전체에 반영됩니다.
   ========================================================== */
:root {
  --ink: #0b2a3c;          /* 진한 남색 (본문/다크 섹션) */
  --ink-2: #33536a;
  --muted: #6b8597;
  --line: #e2ebf0;
  --bg: #ffffff;
  --tint: #f2f8f9;
  --brand: #0fb5a6;        /* 메인 민트 */
  --brand-2: #4fd1c5;
  --brand-ink: #087a70;
  --sun: #ffd166;          /* 반짝임 포인트 */
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(11, 42, 60, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -10px rgba(15, 181, 166, .7); }
.btn--primary:hover { background: var(--brand-ink); }
.btn--ghost { background: rgba(255,255,255,.7); border-color: var(--line); backdrop-filter: blur(8px); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- 헤더 ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: 100%; width: min(1200px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.brand b { color: var(--brand); font-weight: 800; }
.brand__mark { width: 24px; height: 24px; fill: var(--brand); animation: twinkle 3.5s ease-in-out infinite; }
.brand--light { color: #fff; }
@keyframes twinkle { 0%,100% { transform: rotate(0) scale(1); } 50% { transform: rotate(45deg) scale(.85); } }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__toggle { display: none; }

/* ---------- 공통 섹션 ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #fff; }
.section__head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 680px; }
.section__head h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; }
.section__lead { margin-top: 16px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); }
.section--dark .section__lead { color: #a9c1cf; }
.section__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--brand-ink); margin-bottom: 14px; }
.eyebrow--light { color: var(--brand-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(15,181,166,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(15,181,166,0); } 100% { box-shadow: 0 0 0 0 rgba(15,181,166,0); } }

/* ---------- 히어로 ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 7vw, 90px)) 0 0; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(79,209,197,.28), transparent 70%),
    radial-gradient(40% 50% at 10% 80%, rgba(255,209,102,.22), transparent 70%),
    linear-gradient(180deg, #f4fbfb 0%, #fff 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(36px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.hero__title em { font-style: normal; color: var(--brand); }
.hero__title .shine {
  background: linear-gradient(100deg, var(--brand) 20%, var(--sun) 45%, var(--brand) 70%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s ease-in-out infinite;
}
@keyframes shine { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero__lead { margin-top: 24px; font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-2); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; }
.hero__stats li { display: grid; padding-left: 14px; border-left: 2px solid var(--brand-2); }
.hero__stats strong { font-size: 17px; }
.hero__stats span { font-size: 14px; color: var(--muted); }

.hero__media { position: relative; justify-self: center; width: min(100%, 440px); }
.clip { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: #dfe9ec; box-shadow: var(--shadow); }
.clip__video { width: 100%; height: 100%; object-fit: cover; }
.chip {
  position: absolute; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(11,42,60,.72); color: #fff; backdrop-filter: blur(8px);
}
.chip--tl { top: 16px; left: 16px; }
.chip--br { bottom: 16px; right: 16px; background: rgba(255,255,255,.88); color: var(--ink); }
.float-card {
  position: absolute; left: -48px; bottom: 32px; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); max-width: 290px; animation: bob 5s ease-in-out infinite;
}
.float-card img { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; }
.float-card b { display: block; font-size: 14px; }
.float-card span { font-size: 12.5px; color: var(--muted); }
@keyframes bob { 50% { transform: translateY(-10px); } }

.marquee { margin-top: clamp(60px, 9vw, 110px); border-block: 1px solid var(--line); background: #fff; overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 38s linear infinite; font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; white-space: nowrap; }
.marquee__track span:nth-child(even) { color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 서비스 벤토 ---------- */
/* 데스크톱 3열: 큰 타일(2×2) + 오른쪽 2개 + 아래 3개 = 3×3 */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 18px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.tile--xl { grid-column: span 2; grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,42,60,0) 30%, rgba(11,42,60,.88) 100%); }
.tile:hover img { transform: scale(1.06); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.tile--xl .tile__body { padding: 32px; }
.tile h3 { font-size: 21px; margin: 10px 0 6px; }
.tile--xl h3 { font-size: clamp(24px, 3vw, 32px); }
.tile p { font-size: 14.5px; color: rgba(255,255,255,.82); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .14em; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); }

/* ---------- 비포 & 애프터 ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.ba { margin: 0; }
.ba__frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #123; --pos: 50%; user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink); font-weight: 800; font-size: 17px; letter-spacing: 2px; box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.ba__label { position: absolute; top: 14px; font-size: 11px; font-weight: 800; letter-spacing: .12em; padding: 6px 10px; border-radius: 999px; background: rgba(11,42,60,.7); color: #fff; z-index: 2; }
.ba__label--l { left: 14px; }
.ba__label--r { right: 14px; background: var(--brand); }
.ba figcaption { margin-top: 14px; font-size: 15px; color: #a9c1cf; }
.ba figcaption b { color: #fff; }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; aspect-ratio: 4 / 3; }
.ba__pair > div { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.ba__pair > div:first-child { border-radius: var(--radius) var(--radius-sm) var(--radius-sm) var(--radius); }
.ba__pair > div:last-child { border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius-sm); }
.ba__pair > div:last-child .ba__label { background: var(--brand); }
.ba__pair img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 갤러리 ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .25s; }
.filter:hover { border-color: var(--brand); color: var(--brand-ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { columns: 4 240px; column-gap: 16px; }
.shot { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--tint); display: block; width: 100%; padding: 0; border: 0; text-align: left; }
.shot img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot__cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 9px 12px; border-radius: 12px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px); font-size: 13.5px; font-weight: 600;
  transform: translateY(8px); opacity: 0; transition: all .35s var(--ease);
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { transform: none; opacity: 1; }
.shot.is-hidden { display: none; }
.more-link { display: inline-block; margin-top: 28px; font-weight: 700; color: var(--brand-ink); border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* ---------- 진행 과정 ---------- */
.process { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.process__media { position: sticky; top: calc(var(--nav-h) + 30px); }
.clip--tall { max-width: 460px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 20px; padding: 22px 24px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.steps li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.steps__no { font-size: 15px; font-weight: 800; color: var(--brand); padding-top: 3px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- 선택 이유 ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why__card { padding: 30px 26px; border-radius: var(--radius); background: var(--tint); transition: background .3s, transform .3s var(--ease); }
.why__card:hover { background: #e4f5f3; transform: translateY(-4px); }
.why__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--brand); font-size: 22px; margin-bottom: 22px; box-shadow: 0 6px 16px -8px rgba(11,42,60,.3); }
.why__card h3 { font-size: 19px; margin-bottom: 10px; }
.why__card p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--brand); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--ink-2); }

/* ---------- 문의 ---------- */
.contact { padding-top: 0; }
#faq + .contact { padding-top: clamp(60px, 8vw, 100px); }
.contact__box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(36px, 6vw, 72px); border-radius: 32px; color: #fff;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(79,209,197,.45), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(255,209,102,.18), transparent 60%),
    var(--ink);
}
.contact__copy h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.contact__copy p { margin-top: 16px; color: #b8ccd8; }
.contact__actions { display: grid; gap: 12px; }
.contact__btn {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  transition: background .25s, transform .25s var(--ease);
}
.contact__btn:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.contact__btn small { display: block; font-size: 13px; color: #a9c1cf; }
.contact__btn b { font-size: 18px; word-break: break-all; }
.contact__ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.12); font-weight: 900; font-size: 18px; }
.contact__btn--naver .contact__ico { background: #03c75a; }
.contact__btn--phone .contact__ico { background: var(--brand); font-size: 20px; }

/* ---------- 푸터 ---------- */
.footer { background: #07202e; color: #8fa9b8; padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.footer__info { margin-top: 14px; }
.footer__info span { display: block; }

/* ---------- 모바일 하단 버튼 ---------- */
.dock { display: none; }

/* ---------- 라이트박스 ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(4, 18, 26, .92); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 14px; }
.lightbox figcaption { text-align: center; color: #d6e4ec; margin-top: 14px; font-weight: 600; }
.lightbox__close, .lightbox__nav { position: fixed; background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 50%; width: 52px; height: 52px; font-size: 26px; display: grid; place-items: center; }
.lightbox__close { top: 18px; right: 18px; font-size: 20px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.24); }

/* ---------- 스크롤 등장 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================
   반응형
   ========================================================== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .tile--kitchen { grid-column: span 2; }
  .why { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 0; margin: 0;
    background: #fff; padding: 8px 20px 20px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    transform: translateY(-120%); transition: transform .35s var(--ease); z-index: -1;
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav.is-open { background: #fff; }
  .nav.is-open .nav__links { transform: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: grid; gap: 6px; margin-left: auto; background: none; border: 0; padding: 10px; }
  .nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { width: min(100%, 380px); }
  .float-card { left: -12px; bottom: 18px; }
  .process { grid-template-columns: 1fr; }
  .process__media { position: static; justify-self: center; width: min(100%, 380px); }
  .contact__box { grid-template-columns: 1fr; }

  .dock {
    display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    padding: 8px; border-radius: 20px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -10px rgba(11,42,60,.4);
  }
  .dock__btn { flex: 1; height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 14px; font-weight: 700; background: var(--tint); }
  .dock__btn--primary { background: #03c75a; color: #fff; flex: 2; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .container, .container--narrow, .nav__inner { width: calc(100% - 32px); }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile--kitchen { height: 250px; grid-column: auto; }
  .tile--xl { grid-column: auto; grid-row: auto; height: 340px; }
  .ba-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 10px; }
  .shot { margin-bottom: 10px; }
  .shot__cap { display: none; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px; }
  .hero__stats li { padding-left: 9px; }
  .hero__stats strong { font-size: 15px; }
  .hero__stats span { font-size: 12px; }
  .btn { height: 50px; padding: 0 22px; }
  .hero__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 전화 아이콘 (직접 그린 SVG) ---------- */
.ico-phone { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.contact__ico .ico-phone { width: 22px; height: 22px; color: #fff; }
.dock__btn .ico-phone { color: var(--brand-ink); }
