/* 시스템난방 — 클린 틸 디자인 시스템 (청소업 특성 반영: 위생·정갈함)
   프라이머리: 딥 틸(#0b3d40) / 포인트: 클린 시안(#14b8c4, 맑은 물 연상) / 보조배경: 라이트 민트그레이(#eef7f7)
   라운드 완전 배제 — 전 요소 각진 형태(radius:0), 정갈하고 위생적인 인상 강조
   폰트: SUIT Variable (가독성 높은 산세리프, 40대 이상 고객 타겟) */

@font-face {
  font-family: 'SUIT Variable';
  font-weight: 100 900;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/variable/woff2/SUIT-Variable.woff2') format('woff2-variations');
}

:root {
  --color-primary: #0b3d40;
  --color-primary-2: #124f53;
  --color-accent: #14b8c4;
  --color-accent-hover: #38cddb;
  --color-accent-rgb: 20, 184, 196;

  --text-on-light: #10282a;
  --text-on-light-muted: #55706f;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #bfe0e0;

  --color-bg: #ffffff;
  --color-bg-alt: #eef7f7;
  --color-border: #d9e9e9;

  --radius: 0;
  --radius-lg: 0;
  --container-max: 1180px;
  --section-pad: 88px 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'SUIT Variable', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  color: var(--text-on-light);
  background: var(--color-bg);
  overflow-x: hidden;
}

body, p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4 { font-family: 'SUIT Variable', sans-serif; margin: 0; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

.section { padding: var(--section-pad); }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-primary); color: var(--text-on-dark); }
.section-dark .sec-sub { color: var(--text-on-dark-muted); }

.sec-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.sec-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}
.sec-sub {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-on-light-muted);
  margin: 0 0 40px;
  max-width: 640px;
}

p { font-size: 0.95rem; line-height: 1.8; }

/* ===== grid utilities ===== */
.dp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dp-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dp-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; align-items: center; }
@media (max-width: 768px) {
  .dp-g2, .dp-g3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dp-stat3 { grid-template-columns: 1fr; gap: 16px; }
}

/* ===== badges ===== */
.card-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(var(--color-accent-rgb), 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(var(--color-accent-rgb), 0.25);
}
@media (max-width: 768px) {
  .card-badges { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-dark { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--color-accent-hover); }
  .btn-outline-light:hover { border-color: var(--color-accent); color: var(--color-accent); }
  .btn-outline-dark:hover { border-color: var(--color-accent); color: var(--color-accent); }
  .card:hover { border-color: rgba(var(--color-accent-rgb), 0.5); transform: translateY(-4px); }
  .link-card:hover img { transform: scale(1.06); }
  .ftr a:hover { color: var(--color-accent); }
}

/* ===== header ===== */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-primary);
  height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.22);
}
.hdr-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.hdr-logo {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}
.hdr-logo-icon { width: 30px; height: 30px; flex-shrink: 0; }
.hdr-logo-text { display: flex; flex-direction: column; }
.hdr-logo-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  font-variant: small-caps;
  letter-spacing: 1px;
}
.hdr-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.85rem;
}
.hdr-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hdr-burger span { width: 22px; height: 2px; background: #fff; display: block; }

#mob-nav {
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: var(--color-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 49;
  display: flex;
  flex-direction: column;
}
#mob-nav.open { max-height: 420px; }
#mob-nav a {
  color: var(--text-on-dark-muted);
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .hdr-cta { display: none; }
  .hdr-burger { display: flex; }
  body { padding-bottom: 64px; }
  #mob-bar { display: flex; }
  #float-cta { display: none; }
}

/* ===== hero (비대칭 분할 + 사선 clip-path) ===== */
.hero {
  position: relative;
  min-height: min(88vh, 700px);
  max-width: 1760px;
  margin: 0 auto;
  background: var(--color-primary);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.hero-text {
  flex: 0 0 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(24px, 5vw, 72px);
  position: relative;
  z-index: 2;
}
.hero-media {
  flex: 1;
  position: relative;
  overflow: hidden;
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; animation: hero-drift 16s ease-in-out infinite; }
@keyframes hero-drift {
  0%, 100% { transform: scale(1.02) translateY(0); }
  50% { transform: scale(1.07) translateY(-1.2%); }
}
.hero-badge {
  display: inline-flex;
  padding: 7px 16px;
  border-radius: 0;
  background: rgba(var(--color-accent-rgb), 0.22);
  border: 1px solid rgba(var(--color-accent-rgb), 0.45);
  color: #f2a877;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
  align-self: flex-start;
}
.hero-h1 {
  font-size: clamp(2.8rem, 6.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: #fff;
  margin: 0 0 18px;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: h1-emphasis-in 0.9s cubic-bezier(.16,1,.3,1) 0.1s forwards;
}
@keyframes h1-emphasis-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-sub {
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  margin: 0 0 28px;
  max-width: 460px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero-h1 br.br-desktop { display: none; }
}
@media (min-width: 769px) {
  .hero-h1 br.br-mobile { display: none; }
}
@media (max-width: 860px) {
  .hero { flex-direction: column; min-height: auto; }
  .hero-text { flex: none; order: 2; padding: 32px 24px 44px; }
  .hero-media { flex: 0 0 46vh; order: 1; height: 46vh; clip-path: none; }
}

/* ===== cards ===== */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 0;
  background: rgba(var(--color-accent-rgb), 0.12);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
  font-weight: 800;
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--text-on-light-muted); margin: 0; }

.section-dark .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
}
.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: var(--text-on-dark-muted); }
.section-dark .card-icon { background: rgba(var(--color-accent-rgb), 0.28); color: #f0b784; }

.link-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
  display: block;
}
.link-card figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.link-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.link-card figcaption { padding: 18px 20px; }
.link-card figcaption h3 { font-size: 1rem; margin-bottom: 4px; }
.link-card figcaption p { font-size: 0.84rem; margin: 0; color: var(--text-on-light-muted); }

/* ===== 5-image offset grid (홈 대표서비스, 3+2 오프셋) ===== */
.link-grid-offset { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.link-grid-offset .link-card:nth-child(1),
.link-grid-offset .link-card:nth-child(2),
.link-grid-offset .link-card:nth-child(3) { grid-column: span 2; }
.link-grid-offset .link-card:nth-child(4),
.link-grid-offset .link-card:nth-child(5) { grid-column: span 3; }
@media (max-width: 900px) {
  .link-grid-offset { grid-template-columns: 1fr 1fr; }
  .link-grid-offset .link-card:nth-child(n) { grid-column: span 1; }
}
@media (max-width: 560px) {
  .link-grid-offset { grid-template-columns: 1fr; }
}

/* ===== reveal / stagger ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.show { opacity: 1; transform: translateY(0); }
.stagger.show > * { transition-delay: calc(var(--i, 0) * 0.08s); }

/* ===== before/after ===== */
.ba-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--radius-lg); overflow: hidden; }
.ba-item { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.ba-item img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(22,35,47,0.75);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 0;
}
@media (max-width: 600px) { .ba-wrap { grid-template-columns: 1fr; } }

/* ===== process (카드형 타임라인, 스크롤 트리거 스태거) ===== */
.proc-cards { display: grid; gap: 16px; }
.proc-cards.cols-5 { grid-template-columns: repeat(5, 1fr); }
.proc-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.proc-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  padding: 28px 22px;
}
.section-dark .proc-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); }
.section-alt .proc-card { background: #fff; }
.proc-card-num {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(var(--color-accent-rgb), 0.28);
  margin-bottom: 16px;
}
.proc-card h4 { font-size: 0.98rem; margin-bottom: 8px; }
.proc-card p { font-size: 0.85rem; color: var(--text-on-light-muted); margin: 0; }
.section-dark .proc-card p { color: var(--text-on-dark-muted); }

@media (max-width: 768px) {
  .proc-cards.cols-5, .proc-cards.cols-3 { grid-template-columns: 1fr; }
}

/* ===== faq (좌우 분할, 해외 SaaS 트렌드형 풀섹션) ===== */
.faq-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.faq-intro { position: sticky; top: 100px; }
.faq-intro .sec-sub { margin-bottom: 28px; }
.faq-list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 28px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-on-light);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  cursor: pointer;
}
.faq-q-num { color: var(--color-accent); font-weight: 800; font-size: 0.85rem; padding-top: 3px; flex-shrink: 0; }
.faq-q-text { flex: 1; }
.faq-q-icon {
  font-size: 1.3rem;
  color: var(--color-accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 0 28px 42px; margin: 0; font-size: 0.92rem; color: var(--text-on-light-muted); }
.section-dark .faq-q { color: #fff; }
.section-dark .faq-a p { color: var(--text-on-dark-muted); }
.section-dark .faq-list, .section-dark .faq-item { border-color: rgba(255,255,255,0.14); }

@media (max-width: 900px) {
  .faq-section { grid-template-columns: 1fr; gap: 28px; }
  .faq-intro { position: static; }
}

/* ===== cta band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: var(--text-on-dark-muted); margin-bottom: 28px; }

/* ===== cta split (세부페이지 — 사진 재사용한 설득형 CTA) ===== */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  overflow: hidden;
}
.cta-split-media { position: relative; min-height: 340px; }
.cta-split-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-split-content {
  padding: 52px clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-split-content h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 14px 0 14px; }
.cta-split-content p { color: var(--text-on-dark-muted); margin-bottom: 28px; }
@media (max-width: 768px) {
  .cta-split { grid-template-columns: 1fr; }
  .cta-split-media { min-height: 240px; order: -1; }
}

/* ===== checklist / timeline (detail pages) ===== */
.check-list li {
  display: flex; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.92rem;
}
.check-list li::before { content: '\2713'; color: var(--color-accent); font-weight: 800; }

.tl { position: relative; padding-left: 28px; }
.tl::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--color-border); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before { content: ''; position: absolute; left: -28px; top: 4px; width: 12px; height: 12px; border-radius: 0; background: var(--color-accent); }
.tl-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.tl-item p { font-size: 0.86rem; color: var(--text-on-light-muted); margin: 0; }

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table th, table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--color-border); }
table th { background: var(--color-bg-alt); font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); }

/* ===== detail page hero (풀블리드) ===== */
.dp-hero-section {
  position: relative;
  width: 100%;
  min-height: min(74vh, 620px);
  overflow: hidden;
}
.dp-hero-media { position: absolute; inset: 0; }
.dp-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.dp-hero-overlay {
  position: relative;
  z-index: 2;
  min-height: min(74vh, 620px);
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(11,61,64,0.9) 0%, rgba(11,61,64,0.55) 32%, rgba(11,61,64,0.05) 62%, transparent 78%);
  padding-bottom: 56px;
}
.dp-hero-overlay .hero-h1 { max-width: 720px; }
.dp-hero-overlay .hero-sub { max-width: 560px; }
@media (max-width: 768px) {
  .dp-hero-section, .dp-hero-overlay { min-height: 60vh; }
  .dp-hero-overlay { padding-bottom: 36px; }
}

/* ===== footer ===== */
.ftr { background: var(--color-primary); color: var(--text-on-dark-muted); padding: 68px 24px 28px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ftr-col h4 {
  color: var(--color-accent);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ftr-col p { font-size: 0.84rem; margin: 0 0 6px; color: var(--text-on-dark-muted); }
.ftr-col ul { display: flex; flex-direction: column; gap: 10px; }
.ftr-col a { font-size: 0.84rem; color: var(--text-on-dark-muted); transition: color 0.2s ease; }
.ftr-services { flex-direction: row !important; flex-wrap: wrap; gap: 14px !important; }
.ftr-bottom {
  max-width: var(--container-max);
  margin: 44px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.74rem;
  text-align: center;
  color: #8a92a0;
}
@media (max-width: 768px) { .ftr-grid { grid-template-columns: 1fr; } }

/* ===== mobile bar / float cta ===== */
#mob-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  z-index: 60;
  padding: 10px 14px;
  gap: 10px;
}
.mob-bar-btn { flex: 1; text-align: center; padding: 13px; border-radius: var(--radius); font-weight: 700; font-size: 0.88rem; }
.mob-bar-btn-primary { background: var(--color-accent); color: #fff; }
.mob-bar-btn-alt { background: var(--color-bg-alt); color: var(--text-on-light); }

#float-cta {
  position: fixed; right: 24px; bottom: 28px;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 26px;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(var(--color-accent-rgb), 0.4);
  z-index: 55;
}

/* ===== contact page ===== */
.contact-hero { padding: 76px 24px 60px; text-align: center; background: var(--color-primary); color: #fff; }
.contact-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; margin: 0 auto; }
@media (max-width: 480px) { .contact-btns { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
}
.contact-card .card-icon { margin: 0 auto 18px; }
.contact-card .phone-display {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 10px 0 20px;
  border-left: 3px solid var(--color-accent);
  padding-left: 14px;
  display: inline-block;
}

/* ===== 404 ===== */
.nf-section { text-align: center; padding: 120px 24px; }
.nf-h1 { font-size: 2rem; font-weight: 800; margin-bottom: 14px; }
.nf-text { color: var(--text-on-light-muted); margin-bottom: 28px; }
.nf-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== responsive breakpoints ===== */
@media (max-width: 1024px) {
  .section { padding: 64px 20px; }
}
@media (max-width: 768px) {
  .section { padding: 52px 18px; }
}
@media (max-width: 480px) {
  .sec-title { font-size: 1.5rem; }
}

/* ===== related services grid (세부페이지 공통 — 실제 발행 페이지 5개 + 상담카드) ===== */
.link-card-consult-figure {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-card-consult-icon { color: var(--color-accent); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.link-card-consult figcaption h3 { color: var(--color-primary); }
