/* 상생집수리 · 강화도어수리 — 강화유리 + 금속 프레임 컨셉 디자인 시스템 */

:root {
  --base: #F3F4F2;
  --base-2: #E8EAE7;
  --dark: #202529;
  --dark-soft: #3A4045;
  --metal: #8D969B;
  --metal-soft: #C6CBCE;
  --cobalt: #2457D6;
  --white: #FFFFFF;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --header-h: 76px;
  --header-h-compact: 58px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--base);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.28;
  margin: 0 0 14px;
  color: var(--dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 12px; color: var(--dark-soft); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--dark); color: var(--white);
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.icon { width: 22px; height: 22px; flex: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--metal); margin-bottom: 10px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--cobalt); display: inline-block;
}
.section-head { margin-bottom: 40px; }
.section-head-center { text-align: center; }

/* ── 버튼 ─────────────────────────────────────────── */
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: 1.4px solid var(--dark); border-radius: 2px;
  font-weight: 700; font-size: 0.92rem; background: transparent; color: var(--dark);
  transition: border-color .15s, color .15s;
}
.btn-outline:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: 1.4px solid var(--cobalt); border-radius: 2px;
  font-weight: 700; font-size: 0.92rem; color: var(--dark); background: transparent;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn-call:hover { background: var(--cobalt); color: var(--white); }
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; background: var(--dark); color: var(--white); border: none; border-radius: 2px;
  font-weight: 700; font-size: 0.98rem;
}
.btn-solid:hover { background: var(--dark-soft); }

/* ── 헤더 (좌우 비대칭) ───────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243,244,242,0.94); backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--metal-soft);
  transition: padding .18s ease;
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h); transition: height .18s ease;
}
.site-header.is-compact .header-inner { height: var(--header-h-compact); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.brand-service { font-size: 0.74rem; color: var(--metal); font-weight: 600; letter-spacing: 0.03em; }

.header-menu {
  display: flex; align-items: center; gap: 22px; margin-left: auto; margin-right: 8px;
  font-size: 0.84rem; font-weight: 600; color: var(--dark-soft);
}
.header-menu a { padding: 4px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.header-menu a:hover { color: var(--dark); border-bottom-color: var(--cobalt); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
.btn-call-header {
  padding: 10px 22px; font-size: 0.92rem; font-weight: 800;
  border-width: 2px; border-color: var(--cobalt); color: var(--dark);
  background: rgba(36,87,214,0.07); box-shadow: 0 2px 8px rgba(36,87,214,0.14);
}
.btn-call-header:hover { background: var(--cobalt); color: var(--white); box-shadow: 0 4px 12px rgba(36,87,214,0.28); }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 34px; height: 34px; background: none; border: 1px solid var(--metal-soft); border-radius: 2px; cursor: pointer;
}
.menu-toggle span { width: 16px; height: 1.6px; background: var(--dark); margin: 0 auto; }
.mobile-menu-panel {
  position: fixed; top: 0; right: 0; width: 280px; max-width: 84vw; height: 100vh;
  background: var(--white); border-left: 1px solid var(--metal-soft); z-index: 200;
  transform: translateX(100%); transition: transform .2s ease; padding: 90px 24px 24px;
}
.mobile-menu-panel.is-open { transform: translateX(0); }
.mobile-menu { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { padding: 13px 4px; border-bottom: 1px solid var(--base-2); font-weight: 600; }
.menu-backdrop {
  position: fixed; inset: 0; background: rgba(32,37,41,0.4); z-index: 190;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ── 03. HERO ─────────────────────────────────────── */
.hero-section { background: var(--white); padding: 96px 0 88px; border-bottom: 1px solid var(--base-2); }
.hero-grid-simple { display: flex; gap: 20px; }
.hero-rule { width: 3px; background: var(--cobalt); flex: none; margin-top: 14px; }
.hero-title-row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.hero-section h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); margin: 0; }
.hero-subtitle { font-size: 1.05rem; font-weight: 600; color: var(--metal); white-space: nowrap; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-cta .btn-call-hero {
  border-width: 2px; padding: 15px 34px; font-size: 1.05rem; font-weight: 800;
  background: rgba(36,87,214,0.06); box-shadow: 0 2px 10px rgba(36,87,214,0.12);
}
.hero-cta .btn-call-hero:hover { background: var(--cobalt); box-shadow: 0 4px 14px rgba(36,87,214,0.25); }

/* ── 04. 시공사례 editorial ───────────────────────── */
.case-section { padding: 100px 0 96px; background: var(--base); }
.case-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-item { border: 1px solid var(--base-2); background: var(--white); }
.case-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.case-item.role-detail img { filter: grayscale(0.08); }
.case-cap { padding: 10px 12px 12px; }
.case-cap-title { display: block; font-weight: 700; font-size: 0.9rem; }
.case-cap-note { display: block; font-size: 0.78rem; color: var(--metal); margin-top: 2px; }

/* ── 05. 증상별 판단 영역 ─────────────────────────── */
.diagnostic-section { padding: 68px 0; background: var(--white); border-top: 1px solid var(--base-2); border-bottom: 1px solid var(--base-2); }
.diagnostic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--base-2); border: 1px solid var(--base-2); }
.diagnostic-item { background: var(--white); padding: 26px 22px; scroll-margin-top: 100px; }
.diagnostic-item .icon { color: var(--dark); margin-bottom: 12px; }
.diagnostic-item h3 { margin-bottom: 8px; }
.diagnostic-item p { font-size: 0.9rem; margin: 0; }
.diagnostic-note { margin-top: 22px; font-size: 0.86rem; color: var(--metal); border-left: 2px solid var(--cobalt); padding-left: 14px; }

/* ── 서비스 카드 밴드 (404 페이지 등에서 사용) ─────── */
.svc-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(141,150,155,0.3); margin-top: 26px; }
.svc-card { background: var(--dark); display: flex; flex-direction: column; position: relative; }
.svc-card-num {
  position: absolute; top: 10px; left: 10px; font-size: 0.78rem; font-weight: 700; color: var(--white);
  border: 1px solid var(--cobalt); padding: 2px 7px; background: rgba(32,37,41,0.7); z-index: 2;
}
.svc-card-photo { display: block; aspect-ratio: 4/3; overflow: hidden; }
.svc-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.svc-card:hover .svc-card-photo img { transform: scale(1.03); }
.svc-card-body { padding: 16px 14px 20px; }
.svc-card-title { display: block; font-weight: 700; font-size: 0.98rem; margin-bottom: 6px; color: var(--white); }
.svc-card-summary { display: block; font-size: 0.78rem; color: var(--metal-soft); line-height: 1.5; }

/* ── 관련 서비스 bento 그리드 (2x2 정사각 + 우측 1개 세로 카드) ── */
.related-bento {
  display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto;
  gap: 1px; background: rgba(141,150,155,0.3); margin-top: 26px;
}
.related-bento .svc-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.related-bento .svc-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.related-bento .svc-card:nth-child(3) { grid-column: 1; grid-row: 2; }
.related-bento .svc-card:nth-child(4) { grid-column: 2; grid-row: 2; }
.related-bento .svc-card:nth-child(5) { grid-column: 3; grid-row: 1 / span 2; }
.related-bento .svc-card-photo { flex: none; height: 130px; }
.related-bento .svc-card:nth-child(5) .svc-card-photo { flex: 1; height: auto; }
.related-bento .svc-card-photo img { object-fit: contain; background: var(--dark); }
.related-bento .svc-card-summary { display: none; }

/* ── 07. 회사소개 ─────────────────────────────────── */
.about-section { padding: 68px 0; background: var(--base); }
.about-wrap-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.about-wrap-narrow p { font-size: 0.98rem; }
.about-biz { margin-top: 20px; border-top: 1px solid var(--base-2); padding-top: 16px; font-size: 0.88rem; color: var(--dark-soft); }
.about-biz span { display: inline-block; margin-right: 16px; }

/* ── 관련 서비스 카드 그리드 (NSEO/예약페이지 하단 공용) ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); justify-content: center; gap: 16px; margin-top: 24px; }
.related-card { border: 1px solid var(--base-2); display: block; }
.related-card img { width: 100%; height: 256px; object-fit: contain; background: var(--base); }
.related-card-title { display: block; padding: 12px 14px; font-weight: 700; font-size: 0.88rem; }
.related-card:hover { border-color: var(--cobalt); }

/* ── 09. CTA ──────────────────────────────────────── */
.final-cta { padding: 88px 0; background: var(--dark); color: var(--white); text-align: center; border-bottom: 1px solid rgba(141,150,155,0.35); }
.final-cta h2 { color: var(--white); margin-bottom: 20px; }
.final-cta .btn-outline, .final-cta .btn-call {
  border-width: 2px; border-color: var(--cobalt); color: var(--white); padding: 15px 34px; font-size: 1.05rem; font-weight: 800;
  background: rgba(255,255,255,0.06); box-shadow: 0 2px 10px rgba(36,87,214,0.2);
}
.final-cta .btn-outline:hover, .final-cta .btn-call:hover { background: var(--cobalt); color: var(--white); box-shadow: 0 4px 16px rgba(36,87,214,0.35); }

/* ── 페이지 공용(NSEO/예약페이지) ─────────────────── */
.page-hero { padding: 76px 0 68px; background: var(--white); border-bottom: 1px solid var(--base-2); }
.page-hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.page-hero-copy { flex: 1 1 480px; min-width: 0; }
.page-hero-cta { flex: none; }
.page-hero-cta .btn-call {
  border-width: 2px; padding: 15px 32px; font-size: 1rem; font-weight: 800;
  background: rgba(36,87,214,0.06); box-shadow: 0 2px 10px rgba(36,87,214,0.12);
}
.page-hero-cta .btn-call:hover { background: var(--cobalt); box-shadow: 0 4px 14px rgba(36,87,214,0.25); }
.breadcrumb { font-size: 0.82rem; color: var(--metal); margin-bottom: 10px; }
.breadcrumb a { color: var(--metal); }
.page-lead { font-size: 1.02rem; max-width: 62ch; }
.point-row { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 18px 0 0; }
.point-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--dark-soft); }
.point-item .icon { width: 18px; height: 18px; color: var(--cobalt); }

.detail-photos-top { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--dark); margin: 56px 0; }
.photo-box img { width: 100%; height: 360px; object-fit: cover; display: block; }
.detail-photos-top.is-tall .photo-box img { height: auto; aspect-ratio: 3/4; }

.detail-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; padding: 72px 20px 80px; }
.article-body { max-width: 640px; }
.article-section { margin-bottom: 36px; }
.article-section h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.article-section h2 .icon { color: var(--cobalt); }
.checkpoint-list li { display: flex; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--base-2); font-size: 0.92rem; }
.checkpoint-list .icon { width: 18px; height: 18px; color: var(--cobalt); flex: none; }
.faq-col { border-left: 1px solid var(--base-2); padding-left: 32px; }
#faq h2::after, .faq-col h2::after { content: "?"; display: inline-block; margin-left: 10px; color: var(--cobalt); font-weight: 800; }
.faq-list { border-top: 1px solid var(--base-2); }
.faq-item { border-bottom: 1px solid var(--base-2); padding: 24px 4px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 0.96rem; list-style: none; position: relative; padding-right: 28px; line-height: 1.5; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--cobalt); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-a p { font-size: 0.92rem; margin: 14px 0 0; line-height: 1.7; }

.section-soft { background: var(--base); padding: 72px 0; }
.faq-section { border-top: 1px solid var(--base-2); }
.other-wrap-lg .related-grid { grid-template-columns: repeat(4, 1fr); }

.error-page { padding: 90px 0; text-align: center; }

/* ── 푸터 ─────────────────────────────────────────── */
.site-footer { background: var(--dark); color: var(--metal-soft); padding: 54px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(141,150,155,0.25); }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-col p { font-size: 0.86rem; color: var(--metal-soft); }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; }
.footer-links a:hover { color: var(--cobalt); }
.footer-biz { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; }
.footer-bottom { padding: 18px 20px 28px; font-size: 0.78rem; color: var(--metal); }

.float-call {
  position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--dark); color: var(--white); display: flex; align-items: center; justify-content: center;
  border: 1.4px solid var(--cobalt); z-index: 150; box-shadow: 0 4px 14px rgba(32,37,41,0.25);
}
.float-call .icon { width: 22px; height: 22px; }

/* ── 반응형 ───────────────────────────────────────── */
@media (max-width: 980px) {
  .header-menu { display: none; }
  .menu-toggle { display: flex; }
  .page-hero-cta { margin-top: 4px; }
  .detail-split { grid-template-columns: 1fr; }
  .faq-col { border-left: none; padding-left: 0; border-top: 1px solid var(--base-2); padding-top: 24px; margin-top: 8px; }
  .related-grid, .other-wrap-lg .related-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-band { grid-template-columns: repeat(2, 1fr); }
  .related-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr auto; }
  .related-bento .svc-card:nth-child(5) { grid-column: 1 / span 2; grid-row: 3; }
  .related-bento .svc-card-photo { aspect-ratio: 4/3; flex: none; }
  .diagnostic-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .case-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .case-columns { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .detail-photos-top { grid-template-columns: 1fr; }
  .photo-box img { height: 260px; }
  .diagnostic-grid { grid-template-columns: 1fr; }
  .svc-band { grid-template-columns: 1fr; }
  .related-grid, .other-wrap-lg .related-grid { grid-template-columns: 1fr; }
  .related-bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .related-bento .svc-card:nth-child(1),
  .related-bento .svc-card:nth-child(2),
  .related-bento .svc-card:nth-child(3),
  .related-bento .svc-card:nth-child(4),
  .related-bento .svc-card:nth-child(5) { grid-column: 1; grid-row: auto; }
  .site-footer { padding: 36px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; padding-bottom: 24px; }
  .footer-links, .footer-biz { flex-direction: row; flex-wrap: wrap; column-gap: 14px; row-gap: 6px; }
  .footer-col h4 { margin-bottom: 8px; }
  .footer-bottom { padding: 12px 20px 20px; }
  h1 { font-size: 2rem; }
}

/* ── PILOT v2: 세부페이지 섹션 구분 (그라데이션 페이드 + 얇은 선), 강화도어손잡이 페이지 시범 적용 ── */
.pilot-sections .detail-split {
  position: relative;
}
.pilot-sections .detail-split::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--metal-soft) 20%, var(--metal-soft) 80%, transparent);
}
.pilot-sections .section-soft {
  background: linear-gradient(var(--white), var(--base) 60px);
  position: relative;
}
.pilot-sections .section-soft::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--metal-soft) 20%, var(--metal-soft) 80%, transparent);
}
.pilot-sections .final-cta {
  background: linear-gradient(var(--dark-soft), var(--dark) 70px);
}
