/* ═══════════════════════════════════════════════════════════
   월풀마켓 SPA — 정적 사이트 디자인 시스템
   Primary 컬러: 파스텔 스틸블루 #A0C4D8 (자동 선정 팔레트 10종 중 랜덤 선택)
   Hero 타입: hero-split (좌우분할형)
   섹션순서 패턴: A — 신뢰 우선형 (고객 후기 섹션은 실제 후기 데이터 없어 보류)
   카드 그리드: grid-3 (PC 3열 / 태블릿 2열 / 모바일 1열)
   섹션 레이블 스타일: label-number (숫자라인형)
   버튼 형태: btn-square (radius 6~8px)
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary: #A0C4D8;
  --primary-dark: #7FA8C2;
  --primary-darker: #5D8AA8;
  --primary-light: #E3EEF4;
  --text: #1E2933;
  --text-muted: #667180;
  --border: #E2E6EA;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FB;
  --card-radius: 1.25rem;
  --btn-radius: 7px;
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.35; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* ─── 섹션 공통 ─── */
section { padding: 5rem 0; }
@media (max-width: 640px) { section { padding: 3.25rem 0; } }
.section-head { margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); margin-top: 0.5rem; }
.section-head p { color: var(--text-muted); font-weight: 300; margin-top: 0.75rem; }

/* 섹션 레이블: label-number (숫자라인형) */
.section-label {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 700; color: var(--primary-darker);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); margin-left: 0.5rem; }

/* ─── 버튼: btn-square ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--btn-radius);
  padding: 0.9rem 1.85rem;
  font-weight: 700; font-size: 0.95rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary-darker); color: #fff; }
.btn-primary:hover { background: #4B7590; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(93,138,168,0.3); }
.btn-outline { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary-darker); color: var(--primary-darker); }
.btn-light { background: rgba(255,255,255,0.16); color: #fff; border: 1.5px solid rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,0.28); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* ─── Header ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226,230,234,0.7);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header .logo img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text); transition: color 0.2s; }
.site-nav a:hover { color: var(--primary-darker); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-tel { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--primary-darker); }
.hamburger { display: none; flex-direction: column; gap: 5px; width: 28px; }
.hamburger span { height: 2px; background: var(--text); border-radius: 2px; }
.mobile-nav { display: none; position: fixed; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); z-index: 99; box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; }
.mobile-nav a { font-weight: 600; font-size: 1rem; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .header-tel span.tel-text { display: none; }
}

body { padding-top: 76px; }

/* ─── Hero: hero-split (좌우분할형) ─── */
.hero-split { padding: 3.5rem 0 4.5rem; background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%); }
.hero-split .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.hero-left .section-label { margin-bottom: 1.25rem; }
.hero-left h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -0.02em; }
.hero-left .hero-desc { margin-top: 1.25rem; font-weight: 300; color: var(--text-muted); font-size: 1.05rem; max-width: 46ch; }
.hero-service-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.hero-service-item {
  display: flex; align-items: center; gap: 0.9rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius);
  padding: 0.85rem 1.1rem; transition: all 0.25s ease;
}
.hero-service-item:hover { border-color: var(--primary); box-shadow: 0 8px 22px rgba(93,138,168,0.14); transform: translateX(4px); }
.hero-service-item .thumb { width: 52px; height: 52px; border-radius: 0.75rem; overflow: hidden; flex-shrink: 0; }
.hero-service-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-service-item .info strong { display: block; font-size: 0.95rem; }
.hero-service-item .info span { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; }
.hero-service-item .arrow { margin-left: auto; color: var(--text-muted); font-size: 0.85rem; }

.hero-right { position: relative; }
.hero-slider { position: relative; border-radius: 1.5rem; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 60px rgba(30,41,51,0.16); }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slider .slide.active { opacity: 1; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(0deg, rgba(20,28,36,0.72) 0%, transparent 100%);
  color: #fff;
}
.hero-slider-caption strong { display: block; font-size: 1.1rem; }
.hero-slider-caption span { font-size: 0.85rem; opacity: 0.85; font-weight: 300; }
.hero-cta-row { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.trust-badges { margin-top: 2rem; display: flex; gap: 1.75rem; flex-wrap: wrap; }
.trust-badges .badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.trust-badges .badge svg { width: 18px; height: 18px; color: var(--primary-darker); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero-split .container { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
  .hero-slider { aspect-ratio: 16/10; }
}

/* ─── 시공사례 포트폴리오 (grid-3) ─── */
.portfolio-section { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.75rem; }
@media (max-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  background: #fff;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); border-color: var(--primary); }
.portfolio-card .card-thumb { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-card:hover .card-thumb img { transform: scale(1.05); }
.portfolio-card .card-body { padding: 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  background: var(--primary-darker); color: #fff; display: inline-block;
  padding: 0.25rem 0.65rem; border-radius: 4px; align-self: flex-start;
}
.card-title { font-weight: 800; font-size: 1.05rem; line-height: 1.4; color: var(--text); }
.card-sub { font-weight: 400; font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.card-sub svg { width: 14px; height: 14px; flex-shrink: 0; }
.card-more { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-top: 0.35rem; transition: color 0.3s ease; }
.portfolio-card:hover .card-more { color: var(--primary-darker); }

/* ─── 서비스 소개 (5열) ─── */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2.75rem; }
@media (max-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card { display: block; border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; background: #fff; transition: all 0.25s ease; text-decoration: none; }
.service-card:hover { border-color: var(--primary); box-shadow: 0 14px 30px rgba(0,0,0,0.08); transform: translateY(-4px); }
.service-card:hover .more-link { color: var(--primary-darker); }
.service-card .thumb { aspect-ratio: 3/4; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 1.1rem 1rem 1.35rem; }
.service-card .eng-label { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--primary-darker); letter-spacing: 0.08em; text-transform: uppercase; }
.service-card h3 { font-size: 0.98rem; margin-top: 0.35rem; }
.service-card p { font-size: 0.82rem; color: var(--text-muted); font-weight: 300; margin-top: 0.4rem; }
.service-card .more-link { display: inline-block; margin-top: 0.65rem; font-size: 0.8rem; font-weight: 700; color: var(--primary-darker); }

/* ─── 프로세스 ─── */
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.75rem; counter-reset: step; }
@media (max-width: 900px) { .process-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-row { grid-template-columns: 1fr; } }
.process-step { position: relative; padding: 1.75rem 1.25rem; background: var(--bg-alt); border-radius: var(--card-radius); border: 1px solid var(--border); }
.process-step .num { font-family: 'JetBrains Mono', monospace; font-size: 1.9rem; font-weight: 800; color: var(--primary-darker); opacity: 0.5; }
.process-step h3 { font-size: 1rem; margin-top: 0.5rem; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; font-weight: 300; }

/* ─── 회사 소개 ─── */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; margin-top: 2.75rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy p { color: var(--text-muted); font-weight: 300; margin-bottom: 1rem; }
.about-copy .eeat { margin-top: 1.5rem; padding: 1.25rem; background: var(--bg-alt); border-radius: var(--card-radius); border: 1px solid var(--border); font-size: 0.88rem; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.stat-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.75rem 1.25rem; text-align: center; }
.stat-box strong { display: block; font-size: 2rem; color: var(--primary-darker); font-weight: 800; }
.stat-box span { font-size: 0.85rem; color: var(--text-muted); }

/* ─── 서비스 지역 ─── */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.75rem; }
@media (max-width: 768px) { .areas-grid { grid-template-columns: 1fr; } }
.area-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.75rem; background: #fff; }
.area-card h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; }
.area-card h3 svg { width: 20px; height: 20px; color: var(--primary-darker); }
.area-card ul { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.area-card li { font-size: 0.82rem; color: var(--text-muted); background: var(--bg-alt); padding: 0.3rem 0.7rem; border-radius: 5px; }

/* ─── FAQ ─── */
.faq-list { margin-top: 2.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; background: #fff; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; font-weight: 700; }
.faq-q .plus { font-size: 1.3rem; color: var(--primary-darker); transition: transform 0.25s ease; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 1.5rem 1.25rem; color: var(--text-muted); font-weight: 300; font-size: 0.92rem; }
.faq-item.open .faq-a { max-height: 320px; }

/* ─── CTA ─── */
.cta-section { background: var(--primary-darker); color: #fff; text-align: center; }
.cta-section h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: #fff; }
.cta-section p { color: rgba(255,255,255,0.82); margin-top: 0.75rem; font-weight: 300; }
.cta-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; margin: 2.25rem 0; }
.cta-badges .badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; }
.cta-badges .badge svg { width: 18px; height: 18px; }
.cta-btn-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ─── Footer ─── */
.site-footer { background: #182027; color: rgba(255,255,255,0.72); padding: 3.5rem 0 1.75rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand img { height: 34px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { color: rgba(255,255,255,0.55); font-weight: 300; font-size: 0.85rem; max-width: 40ch; }
.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.6); font-weight: 300; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-biz { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.75rem; padding-top: 1.75rem; font-size: 0.78rem; color: rgba(255,255,255,0.42); line-height: 1.9; }

/* ─── Floating buttons ─── */
.floating-btns { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: flex; flex-direction: column; gap: 0.7rem; }
.floating-btns a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 66px; height: 66px; border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
  font-size: 0.65rem; font-weight: 700;
}
.floating-btns a svg { width: 22px; height: 22px; }
.floating-btns .fb-call { background: var(--primary-darker); color: #fff; }
.floating-btns .fb-sms { background: #fff; color: var(--primary-darker); border: 1.5px solid var(--primary); }
.floating-btns a:hover { transform: scale(1.08); }

/* ─── 유틸 ─── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.badge-pill { display: inline-block; background: var(--primary-light); color: var(--primary-darker); font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; }

/* NSEO 축약 히어로 */
.hero-simple { padding: 7.5rem 0 4rem; background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%); text-align: center; }
.hero-simple h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.hero-simple .hero-desc { max-width: 56ch; margin: 1.1rem auto 0; color: var(--text-muted); font-weight: 300; }
.hero-simple .hero-cta-row { justify-content: center; margin-top: 1.75rem; }

/* 상세페이지 히어로 */
.detail-hero { position: relative; padding: 9rem 0 4.5rem; color: #fff; background-size: cover; background-position: center; }
.detail-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20,28,36,0.5); }
.detail-hero .container { position: relative; z-index: 2; }
.detail-hero .back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.detail-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.detail-hero .loc { margin-top: 0.6rem; font-size: 1rem; opacity: 0.92; }

.info-bar { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; margin-top: -3rem; position: relative; z-index: 3; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
@media (max-width: 640px) { .info-bar { grid-template-columns: repeat(2,1fr); } }
.info-bar .info-cell { padding: 1.5rem 1.25rem; border-right: 1px solid var(--border); }
.info-bar .info-cell:last-child { border-right: none; }
.info-bar .info-cell span { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.info-bar .info-cell strong { font-size: 0.98rem; }

.content-block { max-width: 840px; margin: 0 auto; padding: 4.5rem 1.25rem; }
.content-block h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.content-block p { color: var(--text-muted); margin-bottom: 1.1rem; font-weight: 300; }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
@media (max-width: 768px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-grid figure img { border-radius: var(--card-radius); aspect-ratio: 4/3; object-fit: cover; }
.ba-grid figcaption { text-align: center; margin-top: 0.75rem; font-weight: 700; font-size: 0.9rem; color: var(--text-muted); }

.summary-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 2rem; margin-top: 2rem; }
.summary-box li { position: relative; padding-left: 1.4rem; margin-bottom: 0.6rem; font-weight: 400; }
.summary-box li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-darker); }

.tech-quote { border-left: 4px solid var(--primary); background: var(--bg-alt); padding: 1.75rem 2rem; border-radius: 0 var(--card-radius) var(--card-radius) 0; margin-top: 2.5rem; }
.tech-quote p { font-size: 1.02rem; font-style: italic; color: var(--text); margin-bottom: 1rem; }
.tech-quote cite { font-size: 0.85rem; color: var(--text-muted); font-style: normal; font-weight: 700; }

.related-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
@media (max-width: 640px) { .related-row { grid-template-columns: 1fr; } }

/* 사이트맵 페이지 */
.sitemap-search { max-width: 480px; margin: 2rem auto 0; }
.sitemap-search input { width: 100%; padding: 0.9rem 1.1rem; border-radius: var(--btn-radius); border: 1px solid var(--border); font-size: 0.95rem; }
.sitemap-cats { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 1.25rem; }
.sitemap-cats button { padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; }
.sitemap-cats button.active { background: var(--primary-darker); color: #fff; border-color: var(--primary-darker); }
.sitemap-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2.5rem; }
@media (max-width: 768px) { .sitemap-grid { grid-template-columns: 1fr; } }
.sitemap-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.5rem; }
.sitemap-card h3 { font-size: 1rem; }
.sitemap-card p { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; }

/* 상담 페이지 */
.consult-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.75rem; }
@media (max-width: 768px) { .consult-steps { grid-template-columns: 1fr; } }
.photo-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
@media (max-width: 640px) { .photo-guide { grid-template-columns: 1fr; } }
.photo-guide figure img { border-radius: var(--card-radius); aspect-ratio: 4/3; object-fit: cover; }
.photo-guide figcaption { margin-top: 0.6rem; font-size: 0.88rem; color: var(--text-muted); text-align: center; }

/* 404 */
.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8rem 1.25rem 4rem; }
.error-page .code { font-family: 'JetBrains Mono', monospace; font-size: 5rem; color: var(--primary); font-weight: 800; }
