/* ═══════════ 365 이사·청소 전용 테마 (skin=tidy, catalog_category) ═══════════ */
/* 맑은 물·산뜻한 청소 컨셉: 화이트 베이스 + 흐르는 블루 물결. */
/* body.catalog.tidy 스코프 → car.css(body.catalog) 및 타 사이트 무영향. */

body.catalog.tidy {
  --blue: #2563eb; --blue-d: #1d4ed8; --sky: #38bdf8; --aqua: #06b6d4;
  --wash: #eff6ff; --wash2: #e0f2fe; --ink: #0f172a; --muted: #5b6b82;
  --line: #e3eefb; --bg: #ffffff;
  --disp: "Gothic A1", "Pretendard", system-ui, sans-serif;
  --latin: "Outfit", "Gothic A1", sans-serif;
  background: var(--bg); color: var(--ink);
  font-family: "Gothic A1", "Pretendard", system-ui, sans-serif;
  /* 가이드 글 페이지 base 컴포넌트 토큰을 라이트 블루로 정렬 */
  --c-accent: var(--blue); --c-accent-soft: var(--wash);
  --c-text: var(--ink); --c-muted: var(--muted); --c-line: var(--line);
  --c-bg: #ffffff; --c-bg-alt: var(--wash);
}
body.catalog.tidy main { padding-bottom: 0; }

/* ── 공유 헤더/푸터 톤 ── */
body.catalog.tidy .site-header {
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body.catalog.tidy .site-header a,
body.catalog.tidy .brand { color: var(--ink); }
body.catalog.tidy .brand { font-family: var(--disp); font-weight: 900; letter-spacing: -.02em; }
body.catalog.tidy .site-footer,
body.catalog.tidy footer {
  position: relative; background: var(--wash); border-top: 1px solid var(--line); color: var(--muted);
}

.tidy { line-height: 1.7; }
.tidy em {
  font-style: normal;
  background: linear-gradient(100deg, var(--aqua), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── 히어로 ── */
.tidy-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 104px 22px 150px;
  background:
    radial-gradient(60% 70% at 50% -8%, rgba(56,189,248,.22) 0%, transparent 60%),
    radial-gradient(48% 56% at 86% 14%, rgba(6,182,212,.14) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--wash) 58%, var(--wash2) 100%);
}
.tidy-hero--sub { padding-top: 84px; padding-bottom: 116px; }
.tidy-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }

.tidy-eyebrow {
  display: inline-block; font-family: var(--latin); font-weight: 700;
  letter-spacing: .18em; font-size: .8rem; color: var(--blue);
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(37,99,235,.22); background: rgba(255,255,255,.7);
  margin-bottom: 22px;
}
.tidy-fresh {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: fit-content; margin: 0 auto 22px;
  font-family: var(--latin); font-weight: 600; font-size: .82rem;
  letter-spacing: .04em; color: var(--blue);
  padding: 5px 14px; border-radius: 999px;
  background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.32);
}
.tidy-fresh i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sky);
  animation: tidy-pulse 2s infinite;
}
@keyframes tidy-pulse {
  0% { box-shadow: 0 0 0 0 rgba(56,189,248,.6); }
  70% { box-shadow: 0 0 0 8px rgba(56,189,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
}
.tidy-h1 {
  font-family: var(--disp); font-weight: 900;
  font-size: clamp(2.1rem, 6.4vw, 3.5rem); line-height: 1.24;
  letter-spacing: -.03em; margin: 0 auto 18px; max-width: 18ch;
  text-wrap: balance; word-break: keep-all; color: var(--ink);
}
.tidy-sub {
  font-size: 1.05rem; color: var(--muted); line-height: 1.85;
  max-width: 30rem; margin: 0 auto; text-wrap: balance; word-break: keep-all;
}
.tidy-hero-meta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 28px; font-size: .85rem; color: var(--muted); font-weight: 600;
}
.tidy-hero-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--sky); }

/* ── 떠오르는 거품(클린 디테일) ── */
.tidy-bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.tidy-bubbles span {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.9), rgba(56,189,248,.35));
  border: 1px solid rgba(56,189,248,.35); opacity: .5;
  animation: tidy-float linear infinite;
}
.tidy-bubbles span:nth-child(1) { left: 8%;  width: 16px; height: 16px; animation-duration: 13s; }
.tidy-bubbles span:nth-child(2) { left: 26%; width: 10px; height: 10px; animation-duration: 17s; animation-delay: 3s; }
.tidy-bubbles span:nth-child(3) { left: 62%; width: 22px; height: 22px; animation-duration: 15s; animation-delay: 1.5s; }
.tidy-bubbles span:nth-child(4) { left: 80%; width: 12px; height: 12px; animation-duration: 19s; animation-delay: 5s; }
.tidy-bubbles span:nth-child(5) { left: 46%; width: 8px;  height: 8px;  animation-duration: 12s; animation-delay: 2.5s; }
@keyframes tidy-float {
  0% { transform: translateY(0) scale(.7); opacity: 0; }
  18% { opacity: .55; }
  100% { transform: translateY(-76vh) scale(1.1); opacity: 0; }
}

/* ── 흐르는 물결 3겹 ── */
.tidy-waves { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; height: 150px; pointer-events: none; }
.tidy-wave {
  position: absolute; left: 0; bottom: 0; width: 200%; height: 100%;
  animation: tidy-flow linear infinite;
}
.tidy-wave--1 { fill: #ffffff;            animation-duration: 11s; }
.tidy-wave--2 { fill: rgba(56,189,248,.45); animation-duration: 17s; animation-direction: reverse; }
.tidy-wave--3 { fill: rgba(37,99,235,.28);  animation-duration: 23s; }
@keyframes tidy-flow { to { transform: translateX(-50%); } }

/* ── 섹션 ── */
.tidy-section { max-width: 1040px; margin: 0 auto; padding: 60px 20px 76px; }
.tidy-section--guide { background: var(--wash); max-width: none; }
.tidy-section--guide > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.tidy-sec-head { text-align: center; margin-bottom: 36px; }
.tidy-kicker {
  display: block; font-family: var(--latin); font-weight: 700;
  letter-spacing: .24em; font-size: .78rem; color: var(--sky); margin-bottom: 8px;
}
.tidy-h2 { font-family: var(--disp); font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.05rem); margin: 0; letter-spacing: -.02em; }
.tidy-h2::after {
  content: ""; display: block; width: 46px; height: 4px; margin: 14px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--sky), var(--blue));
}

/* ── 카드 ── */
.tidy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 22px; }
.tidy-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 30px -16px rgba(37,99,235,.28);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: tidy-rise .55s both; animation-delay: calc(var(--i, 0) * 42ms);
}
.tidy-card:hover {
  transform: translateY(-5px); border-color: rgba(56,189,248,.6);
  box-shadow: 0 26px 46px -22px rgba(37,99,235,.45);
}
.tidy-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.tidy-card-media {
  position: relative; aspect-ratio: 16 / 10;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  background-color: var(--wash);
}
.tidy-card-media--blank {
  background-image:
    radial-gradient(120% 90% at 18% 0%, rgba(56,189,248,.5), transparent 60%),
    linear-gradient(135deg, var(--wash2), #f4faff);
}
.tidy-badge {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--latin); font-weight: 700; font-size: .68rem; letter-spacing: .06em;
  color: #fff; background: linear-gradient(100deg, var(--sky), var(--blue));
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(37,99,235,.6);
}
.tidy-badge svg { display: block; }
.tidy-badge--guide { background: linear-gradient(100deg, var(--aqua), var(--blue)); letter-spacing: .12em; }
.tidy-card-title {
  margin: 0 0 12px; color: var(--ink); font-weight: 700;
  font-size: 1.1rem; line-height: 1.42; word-break: keep-all;
}
.tidy-card-body { padding: 15px 17px 17px; border-top: 1px solid var(--line); }
.tidy-cta {
  display: block; text-align: center; text-decoration: none; font-weight: 800; font-size: .96rem;
  padding: 13px 18px; border-radius: 12px; color: #fff;
  background: linear-gradient(100deg, var(--sky), var(--blue));
  box-shadow: 0 12px 24px -12px rgba(37,99,235,.7);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.tidy-cta:hover { transform: translateY(-2px); filter: brightness(1.05);
  box-shadow: 0 16px 30px -12px rgba(37,99,235,.85); }

.tidy-foot { text-align: center; font-size: .8rem; color: var(--muted); max-width: 640px; margin: 36px auto 0; line-height: 1.6; }
.tidy-more { text-align: center; margin-top: 26px; }
.tidy-more a { color: var(--blue); text-decoration: none; font-weight: 800; }
.tidy-more a:hover { text-decoration: underline; }

@keyframes tidy-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .tidy-hero { padding: 78px 20px 120px; }
  .tidy-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tidy-wave, .tidy-bubbles span, .tidy-card, .tidy-fresh i { animation: none !important; }
  .tidy-bubbles { display: none; }
}
