/* ===== 클린하우스 공통 스타일 ===== */
:root {
  --ch-ink: #102332;
  --ch-muted: #526573;
  --ch-line: #dce6eb;
  --ch-surface: #f4f8fa;
  --ch-brand: #102332;
  --ch-accent: #166453;
  --ch-accent-dark: #0f4a3c;
  --ch-paper: #ffffff;
  --ch-font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --ch-gutter: 32px;
  --ch-max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ch-paper);
  color: var(--ch-ink);
  font-family: var(--ch-font);
  font-size: 16px;
  line-height: 1.7;
  -wetext-size-adjust: 100%;
}

body * {
  box-sizing: border-box;
}

:is(h1, h2, h3, h4) {
  color: var(--ch-ink);
  font-family: var(--ch-font);
  font-weight: 800;
  word-break: keep-all;
  overflow-wrap: anywhere;
  margin: 0 0 0.5em;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ch-accent);
  text-decoration: none;
}

a:hover {
  color: var(--ch-accent-dark);
}

:is(button, input, select, textarea) {
  font: inherit;
}

/* focus 가시성 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ch-accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--ch-max), calc(100% - var(--ch-gutter) * 2));
  margin-inline: auto;
}

/* ===== Header / Nav ===== */
.ch-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ch-paper);
  border-bottom: 1px solid var(--ch-line);
}

.ch-header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  width: 100%;
  min-height: 72px;
  padding: 0 clamp(20px, 2.4vw, 36px);
}

.ch-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ch-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  min-width: 0;
}

.ch-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ch-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex: 0 0 auto;
}

.ch-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin-left: auto;
}

.ch-nav a {
  color: var(--ch-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.ch-nav a:hover,
.ch-nav a.active {
  color: var(--ch-ink);
  border-bottom-color: var(--ch-accent);
}

.ch-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ch-accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease;
}

.ch-cta:hover {
  background: var(--ch-accent-dark);
  color: #fff;
}

.ch-mobile-toggle {
  display: none;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--ch-line);
  background: var(--ch-paper);
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  color: var(--ch-ink);
}

/* ===== Hero ===== */
.ch-hero {
  padding: 56px 0 40px;
  background: var(--ch-paper);
}

.ch-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.ch-hero-copy h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 16px;
  line-height: 1.15;
}

.ch-hero-eyebrow {
  display: inline-block;
  color: var(--ch-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.ch-hero-lead {
  color: var(--ch-muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 48ch;
  margin: 0 0 24px;
}

.ch-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ch-cta-secondary {
  background: transparent;
  color: var(--ch-ink);
  border: 1.5px solid var(--ch-ink);
}

.ch-cta-secondary:hover {
  background: var(--ch-ink);
  color: #fff;
}

.ch-hero-photo {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ch-surface), #eaf2f6);
  min-height: 260px;
  max-height: min(340px, 56vw);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-muted);
  font-size: 14px;
  border: 1px dashed var(--ch-line);
}

/* ===== 섹션 공통 ===== */
.ch-section {
  padding: 56px 0;
}

.ch-section.alt {
  background: var(--ch-surface);
}

.ch-section-head {
  margin: 0 0 32px;
}

.ch-section-head .ch-eyebrow {
  color: var(--ch-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.ch-section-title {
  font-size: clamp(24px, 3.4vw, 36px);
  margin: 0;
}

.ch-section-lead {
  color: var(--ch-muted);
  max-width: 60ch;
  margin: 10px 0 0;
}

/* ===== 서비스 카드 그리드 ===== */
.ch-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ch-card {
  background: var(--ch-paper);
  border: 1px solid var(--ch-line);
  border-radius: 14px;
  padding: 22px;
}

.ch-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ch-surface), #eaf2f6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-muted);
  font-size: 13px;
  overflow: hidden;
  border: 1px dashed var(--ch-line);
}

.ch-card h3 {
  font-size: 20px;
  margin: 0 0 6px;
}

.ch-card p {
  color: var(--ch-muted);
  margin: 0 0 14px;
  font-size: 14.5px;
}

.ch-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ch-accent);
  font-weight: 700;
  font-size: 14px;
}

.ch-card-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.ch-card-link:hover {
  color: var(--ch-accent-dark);
}

.ch-card-link:hover::after {
  transform: translateX(3px);
}

/* ===== 신뢰/특징 ===== */
.ch-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ch-feature {
  border-top: 3px solid var(--ch-accent);
  padding-top: 14px;
}

.ch-feature h4 {
  font-size: 17px;
  margin: 0 0 4px;
}

.ch-feature p {
  color: var(--ch-muted);
  margin: 0;
  font-size: 14.5px;
}

/* ===== 문의/CTA 섹션 ===== */
.ch-cta-section {
  background: var(--ch-brand);
  color: #fff;
  padding: 48px 0;
  border-radius: 18px;
  margin-top: 20px;
}

.ch-cta-section .ch-cta-head {
  margin-bottom: 18px;
}

.ch-cta-section h2 {
  color: #fff;
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 0 0 8px;
}

.ch-cta-section p {
  color: #d7e4ec;
  margin: 0 0 22px;
  max-width: 55ch;
}

.ch-cta-white {
  background: #fff;
  color: var(--ch-accent);
  border-radius: 10px;
  padding: 0 18px;
  min-height: 48px;
}

.ch-cta-white:hover {
  background: var(--ch-paper);
}

/* ===== Footer ===== */
.ch-footer {
  border-top: 1px solid var(--ch-line);
  background: var(--ch-paper);
  padding: 36px 0 40px;
  color: var(--ch-muted);
  font-size: 14px;
}

.ch-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.ch-footer h4 {
  color: var(--ch-ink);
  font-size: 14px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ch-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ch-footer li {
  margin: 0 0 6px;
}

.ch-footer a {
  color: var(--ch-muted);
}

.ch-footer a:hover {
  color: var(--ch-ink);
}

.ch-footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--ch-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
}

/* 모바일 */
@media (max-width: 880px) {
  .ch-nav {
    display: none;
  }

  .ch-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ch-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ch-hero-photo {
    min-height: 220px;
    max-height: 300px;
    order: -1;
  }

  .ch-card-grid {
    grid-template-columns: 1fr;
  }

  .ch-feature-list {
    grid-template-columns: 1fr;
  }

  .ch-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ch-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --ch-gutter: 20px;
  }

  .ch-footer-grid {
    grid-template-columns: 1fr;
  }

  .ch-cta-section {
    padding: 34px 22px;
  }
}
