/* ═══ 구조 설정 기록 ═══
   Primary 컬러: 파스텔 스틸블루 #A0C4D8 (10종 중 랜덤 선정)
   Hero 타입: hero-split (좌우분할형)
   섹션순서: 패턴 B — 서비스 우선형
   그리드: grid-3 (PC 3열 / 태블릿 2열 / 모바일 1열)
   레이블: label-number (숫자라인형)
   버튼: btn-square (border-radius 6px)
   ═══════════════════════ */

:root {
  --primary: #A0C4D8;
  --primary-dark: #6FA0BE;
  --text: #232323;
  --text-muted: #6b6b6b;
  --border: #e7e5e0;
  --bg: #ffffff;
  --bg-soft: #F7F8F6;
  --card-radius: 1.25rem;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  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;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-soft { background: var(--bg-soft); }

/* 섹션 레이블 : label-number */
.section-label {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 700; color: var(--primary-dark);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); margin-left: 0.5rem; }
.section-head { margin-bottom: 2.5rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-sub { color: var(--text-muted); font-weight: 300; margin-top: 0.6rem; font-size: 0.98rem; }

/* 버튼 : btn-square */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 6px; padding: 0.9rem 1.85rem; font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: all 0.25s ease; }
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-primary:hover { background: #5c8ba9; }
.btn-outline { background: transparent; border-color: #ffffffaa; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-line { background: transparent; border-color: var(--border); color: var(--text); }
.btn-line:hover { border-color: var(--primary-dark); color: var(--primary-dark); }
.btn-sm { padding: 0.6rem 1.2rem; 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(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.1rem; color: var(--text); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); flex: none; }
.nav-desktop { display: flex; align-items: center; gap: 2rem; }
.nav-desktop a { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.nav-desktop a:hover { color: var(--primary-dark); }
.header-cta { display: flex; align-items: center; gap: 0.9rem; }
.header-tel { font-weight: 700; font-size: 0.95rem; }
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); display: block; }
.nav-mobile { display: none; position: fixed; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; flex-direction: column; gap: 1rem; z-index: 99; }
.nav-mobile.open { display: flex; }
@media (max-width: 768px) {
  .nav-desktop, .header-tel { display: none; }
  .hamburger { display: flex; }
}

/* Hero split */
.hero-split { padding: 130px 0 4rem; }
.hero-grid-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-left h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.35; }
.hero-desc { margin-top: 1.2rem; color: var(--text-muted); font-weight: 300; font-size: 1.02rem; line-height: 1.75; }
.hero-badges { display: flex; gap: 1.5rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.hero-badge svg { width: 18px; height: 18px; color: var(--primary-dark); flex: none; }
.hero-links { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.hero-link-card { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--border); border-radius: 0.9rem; transition: border-color 0.25s ease; }
.hero-link-card:hover { border-color: var(--primary-dark); }
.hero-link-thumb { width: 56px; height: 56px; border-radius: 0.6rem; overflow: hidden; flex: none; }
.hero-link-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-link-name { font-weight: 700; font-size: 0.95rem; }
.hero-link-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; }
.hero-link-more { margin-left: auto; font-size: 0.8rem; color: var(--primary-dark); font-weight: 700; white-space: nowrap; }
.hero-right { position: relative; }
.hero-slider { position: relative; border-radius: 1.4rem; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 24px 60px rgba(0,0,0,0.12); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; background: linear-gradient(transparent, rgba(0,0,0,0.55)); color: #fff; }
.hero-caption strong { font-size: 1rem; }
.hero-caption p { font-size: 0.85rem; opacity: 0.9; margin-top: 0.3rem; }
.hero-cta-row { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
@media (max-width: 900px) {
  .hero-grid-layout { grid-template-columns: 1fr; }
  .hero-split { padding: 110px 0 3rem; }
  .hero-right { order: -1; }
}

/* Hero overlay / grid variants kept for detail pages */
.hero-detail { position: relative; padding: 160px 0 4rem; color: #fff; background-size: cover; background-position: center; }
.hero-detail::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.hero-detail .container { position: relative; z-index: 1; }
.hero-detail h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.hero-detail .hero-sub { margin-top: 0.7rem; font-weight: 300; opacity: 0.92; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.2rem; font-size: 0.88rem; font-weight: 600; opacity: 0.9; }
.back-link:hover { opacity: 1; }

/* 시공사례 카드 그리드 (grid-3) */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@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; cursor: pointer; text-decoration: none; display: block; background: #fff; }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.14); border-color: var(--primary-dark); }
.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.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card-badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; background: var(--primary-dark); color: #fff; display: inline-block; padding: 0.25rem 0.65rem; border-radius: 0.3rem; align-self: flex-start; }
.card-title { font-weight: 800; font-size: 1rem; 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.3rem; }
.card-sub svg { width: 14px; height: 14px; flex: none; }
.card-more { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-top: 0.25rem; transition: color 0.3s ease; }
.portfolio-card:hover .card-more { color: var(--primary-dark); }

/* 서비스 소개 */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@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 { border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; background: #fff; transition: border-color 0.25s ease, transform 0.25s ease; }
.service-card:hover { border-color: var(--primary-dark); transform: translateY(-4px); }
.service-thumb { aspect-ratio: 4/3; overflow: hidden; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 1rem; }
.service-label { font-size: 0.68rem; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.05em; }
.service-name { font-size: 0.98rem; margin-top: 0.35rem; }
.service-desc { font-size: 0.83rem; color: var(--text-muted); margin-top: 0.4rem; }
.service-more { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-top: 0.6rem; }

/* 프로세스 */
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .process-row { grid-template-columns: 1fr; } }
.process-step { text-align: left; padding: 1.5rem; border-radius: 1rem; background: var(--bg-soft); }
.process-num { font-size: 0.85rem; font-weight: 800; color: var(--primary-dark); letter-spacing: 0.05em; }
.process-title { font-size: 1.05rem; margin-top: 0.6rem; }
.process-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

/* 회사소개 */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { color: var(--text-muted); font-weight: 300; margin-top: 1rem; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-box { text-align: center; padding: 1.6rem 0.8rem; border-radius: 1rem; background: var(--bg-soft); }
.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--primary-dark); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; }

/* 서비스 지역 */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 768px) { .areas-grid { grid-template-columns: 1fr; } }
.area-card { border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; }
.area-title { font-size: 1.05rem; font-weight: 800; }
.area-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.6rem; line-height: 1.7; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; background: none; border: none; text-align: left; font-size: 1rem; font-weight: 700; cursor: pointer; color: var(--text); }
.faq-q .plus { flex: none; width: 20px; height: 20px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--text); transition: transform 0.25s ease; }
.faq-q .plus::before { width: 20px; height: 2px; top: 9px; left: 0; }
.faq-q .plus::after { width: 2px; height: 20px; left: 9px; top: 0; }
.faq-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 0 1.3rem; color: var(--text-muted); font-weight: 300; font-size: 0.92rem; line-height: 1.75; }

/* CTA */
.cta-section { background: #1c2b33; color: #fff; padding: 4.5rem 0; text-align: center; }
.cta-badges { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 2rem 0; }
.cta-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; opacity: 0.92; }
.cta-badge svg { width: 18px; height: 18px; color: var(--primary); }
.cta-btn-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--bg-soft); padding: 3.5rem 0 2rem; border-top: 1px solid var(--border); }
.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 { font-weight: 800; font-size: 1.1rem; }
.footer-desc { margin-top: 0.8rem; font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.footer-col-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--primary-dark); }
.footer-biz { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-muted); line-height: 1.8; }

/* Floating buttons */
.floating-btns { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: flex; flex-direction: column; gap: 0.7rem; }
.floating-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem; border-radius: 6px; font-size: 0.85rem; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.floating-btn.call { background: var(--primary-dark); color: #fff; }
.floating-btn.sms { background: #fff; color: var(--text); border: 1px solid var(--border); }
.floating-btn svg { width: 18px; height: 18px; }

/* BEFORE/AFTER */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-card img { border-radius: 1rem; aspect-ratio: 4/3; object-fit: cover; }
.ba-tag { display: inline-block; font-size: 0.75rem; font-weight: 800; padding: 0.3rem 0.8rem; border-radius: 0.4rem; margin-bottom: 0.8rem; }
.ba-tag.before { background: #eee; color: #555; }
.ba-tag.after { background: var(--primary-dark); color: #fff; }
.ba-card p { margin-top: 0.9rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.75; }

/* 요약박스 / 인용구 */
.summary-box { background: var(--bg-soft); border-radius: 1rem; padding: 1.8rem 2rem; }
.summary-box li { position: relative; padding-left: 1.2rem; color: var(--text); font-size: 0.95rem; margin-top: 0.7rem; }
.summary-box li:first-child { margin-top: 0; }
.summary-box li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-dark); }
.quote-block { border-left: 3px solid var(--primary-dark); padding-left: 1.5rem; font-size: 1rem; color: var(--text); line-height: 1.8; }
.quote-sign { margin-top: 1rem; font-weight: 700; font-size: 0.88rem; color: var(--text-muted); }

/* 정보 문단 */
.prose p { color: var(--text-muted); font-weight: 300; line-height: 1.85; margin-top: 1.1rem; font-size: 0.98rem; }
.prose p:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 2rem; }

/* 관련페이지 링크 */
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; transition: border-color 0.25s ease; }
.related-card:hover { border-color: var(--primary-dark); }
.related-thumb { width: 70px; height: 70px; border-radius: 0.7rem; overflow: hidden; flex: none; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-name { font-weight: 700; font-size: 0.92rem; }
.related-loc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* 정보 요약 바 (상세페이지) */
.info-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; }
@media (max-width: 640px) { .info-bar { grid-template-columns: repeat(2, 1fr); } }
.info-cell { background: #fff; padding: 1.3rem 1rem; text-align: center; }
.info-cell .k { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; }
.info-cell .v { font-size: 0.98rem; font-weight: 800; margin-top: 0.4rem; }

/* 신뢰수치 배지 (Hero) 아이콘 컬러 */
.trust-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 3rem; }
