/* ══════════════════════════════════════════════════════════
   보일러마트 (change.boilermaket.com) 디자인 시스템
   Hero 타입: hero-split / 섹션순서: 패턴 A(신뢰 우선형)
   그리드: grid-3 / 레이블: label-number / 버튼: btn-square
   Primary: 파스텔 스틸블루 #A0C4D8 (랜덤 선정)
   ══════════════════════════════════════════════════════════ */

:root {
  --primary: #A0C4D8;
  --primary-dark: #7FA9C2;
  --primary-deep: #3D5A6C;
  --text: #1E2A2F;
  --text-muted: #5B6B72;
  --border: #E2E8EC;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FB;
  --card-radius: 1.1rem;
  --btn-radius: 6px;
  --max-width: 1200px;
}

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

/* ── 섹션 레이블 (label-number 타입) ───────────────────── */
.section-label {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 700; color: var(--primary-deep);
  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-heading { font-size: 1.9rem; line-height: 1.35; margin-bottom: 0.6rem; }
.section-sub { color: var(--text-muted); font-weight: 300; font-size: 1rem; margin-bottom: 2.5rem; }
section { padding: 5rem 0; }
@media (max-width: 640px) {
  section { padding: 3.25rem 0; }
  .section-heading { font-size: 1.5rem; }
}

/* ── 버튼 (btn-square 타입) ───────────────────────────── */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--btn-radius);
  padding: 0.85rem 1.75rem;
  font-weight: 700; font-size: 0.95rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary-deep); color: #fff; }
.btn-primary:hover { background: #2C4451; }
.btn-secondary { background: var(--primary); color: var(--primary-deep); }
.btn-secondary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 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 {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 1.35rem; font-weight: 800; color: var(--primary-deep); }
.main-nav { display: flex; gap: 2.25rem; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.main-nav a:hover { color: var(--primary-deep); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.btn-header-call {
  background: var(--primary-deep); color: #fff; border-radius: var(--btn-radius);
  padding: 0.6rem 1.25rem; font-weight: 700; font-size: 0.9rem;
}
.btn-header-call:hover { background: #2C4451; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.hamburger span { width: 22px; height: 2px; background: var(--text); display: block; }
.mobile-nav {
  display: none; flex-direction: column;
  border-top: 1px solid var(--border); background: #fff;
}
.mobile-nav a { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); font-weight: 600; }
.mobile-nav.open { display: flex; }
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

/* ── Hero (hero-split 타입) ───────────────────────────── */
.hero-split { background: var(--bg-soft); padding: 3.5rem 0 4.5rem; }
.hero-split-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
}
.hero-left .section-label { margin-bottom: 1rem; }
.hero-left h1 {
  font-size: 2.6rem; line-height: 1.3; margin-bottom: 1.1rem; color: var(--text);
}
.hero-left .hero-desc { font-size: 1.05rem; color: var(--text-muted); font-weight: 300; margin-bottom: 1.75rem; }
.hero-badges { display: flex; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.hero-badge { display: flex; flex-direction: column; }
.hero-badge strong { font-size: 1.5rem; color: var(--primary-deep); font-weight: 800; }
.hero-badge span { font-size: 0.82rem; color: var(--text-muted); }
.hero-service-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.hero-service-item {
  display: flex; align-items: center; gap: 0.7rem; background: #fff;
  border: 1px solid var(--border); border-radius: var(--btn-radius);
  padding: 0.75rem 1rem; font-size: 0.9rem; font-weight: 600;
}
.hero-service-item svg { flex-shrink: 0; color: var(--primary-deep); }

.hero-right { position: relative; }
.hero-slider {
  position: relative; border-radius: var(--card-radius); overflow: hidden;
  aspect-ratio: 4/5; box-shadow: 0 24px 60px rgba(30,42,47,0.16);
}
.hero-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.9s ease;
}
.hero-slider img.active { opacity: 1; }
.hero-slider-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem;
  background: linear-gradient(transparent, rgba(20,30,35,0.78));
  color: #fff;
}
.hero-slider-caption strong { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.hero-slider-caption span { font-size: 0.85rem; opacity: 0.85; }
.hero-dots { position: absolute; top: 1rem; right: 1rem; display: flex; gap: 6px; z-index: 2; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.hero-dots button.active { background: #fff; width: 20px; border-radius: 4px; }

@media (max-width: 900px) {
  .hero-split-inner { grid-template-columns: 1fr; }
  .hero-left h1 { font-size: 2rem; }
}

/* ── 상세 페이지 Hero (오버레이형) ────────────────────── */
.detail-hero {
  position: relative; height: 46vh; min-height: 320px;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.detail-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20,30,35,0.5); }
.detail-hero-inner { position: relative; z-index: 1; padding: 2.5rem 1.25rem; max-width: var(--max-width); margin: 0 auto; width: 100%; color: #fff; }
.detail-back { display: inline-block; margin-bottom: 1rem; font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.detail-hero-inner h1 { font-size: 2rem; text-shadow: 0 2px 12px rgba(0,0,0,0.35); margin-bottom: 0.5rem; }
.detail-hero-inner .detail-sub { font-size: 1rem; opacity: 0.9; }

/* NSEO / 상담 페이지용 오버레이 Hero */
.hero-overlay {
  position: relative; padding: 6rem 0; text-align: center;
  background-size: cover; background-position: center;
}
.hero-overlay::before { content: ""; position: absolute; inset: 0; background: rgba(20,30,35,0.55); }
.hero-overlay-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 1.25rem; color: #fff; }
.hero-overlay h1 { font-size: 2.3rem; text-shadow: 0 2px 12px rgba(0,0,0,0.3); margin-bottom: 1rem; }
.hero-overlay .hero-desc { font-size: 1.05rem; opacity: 0.92; margin-bottom: 2rem; }
.hero-overlay .btn-row { justify-content: center; }

/* ── 시공 정보 요약 바 ─────────────────────────────────── */
.info-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--card-radius);
  overflow: hidden; margin: -2.5rem auto 3rem; max-width: var(--max-width); position: relative; z-index: 2;
}
.info-bar-item { background: #fff; padding: 1.5rem 1rem; text-align: center; }
.info-bar-item .label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.info-bar-item .value { font-weight: 800; font-size: 1.05rem; }
@media (max-width: 640px) { .info-bar { grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; } }

/* ── 시공사례 포트폴리오 그리드 (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; }
@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; display: block; background: #fff;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(30,42,47,0.14); 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.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
  background: var(--primary-deep); 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; color: var(--text); }
.card-sub { font-weight: 400; font-size: 0.85rem; color: var(--text-muted); }
.card-more { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-top: 0.25rem; }
.portfolio-card:hover .card-more { color: var(--primary-deep); }

/* ── 서비스 소개 카드 ─────────────────────────────────── */
.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: var(--card-radius); overflow: hidden;
  background: #fff; transition: all 0.25s ease;
}
.service-card:hover { border-color: var(--primary); box-shadow: 0 10px 28px rgba(30,42,47,0.1); }
.service-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 1.1rem; }
.service-label { font-size: 0.7rem; color: var(--primary-deep); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.service-name { font-size: 1rem; font-weight: 800; margin: 0.3rem 0 0.4rem; }
.service-desc { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.service-more { font-size: 0.82rem; font-weight: 700; color: var(--primary-deep); }

/* ── 프로세스 ─────────────────────────────────────────── */
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .process-row { grid-template-columns: 1fr; } }
.process-step { text-align: left; }
.process-num {
  font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 0.8rem;
  border-bottom: 2px solid var(--border); padding-bottom: 0.8rem;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.88rem; color: var(--text-muted); }

/* ── 회사소개 ─────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { margin-bottom: 1rem; color: var(--text-muted); font-weight: 300; }
.about-fact { font-weight: 600; color: var(--text); }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.about-stat { background: var(--bg-soft); border-radius: var(--card-radius); padding: 1.5rem; text-align: center; }
.about-stat strong { display: block; font-size: 1.9rem; color: var(--primary-deep); font-weight: 800; }
.about-stat span { font-size: 0.85rem; color: var(--text-muted); }

/* ── 고객 후기 ─────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.5rem; background: #fff; }
.review-stars { color: var(--primary-deep); margin-bottom: 0.75rem; letter-spacing: 2px; }
.review-text { font-size: 0.92rem; color: var(--text); margin-bottom: 1.1rem; }
.review-meta { display: flex; align-items: center; gap: 0.7rem; }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
  color: var(--primary-deep); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}
.review-name { font-size: 0.85rem; font-weight: 700; }
.review-loc { font-size: 0.78rem; color: var(--text-muted); }

/* ── 서비스 지역 ───────────────────────────────────────── */
.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: var(--card-radius); padding: 1.75rem; }
.area-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--primary-deep); }
.area-card ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.area-card li { font-size: 0.85rem; background: var(--bg-soft); padding: 0.35rem 0.7rem; border-radius: 4px; color: var(--text-muted); }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; padding: 1.35rem 0; display: flex;
  justify-content: space-between; align-items: center; font-weight: 700; font-size: 1rem;
}
.faq-q .plus { font-size: 1.3rem; color: var(--primary-deep); transition: transform 0.25s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); font-size: 0.92rem; }
.faq-item.open .faq-a { max-height: 240px; padding-bottom: 1.35rem; }

/* ── CTA 섹션 ─────────────────────────────────────────── */
.cta-section { background: var(--primary-deep); color: #fff; text-align: center; }
.cta-section h2 { font-size: 1.9rem; margin-bottom: 0.75rem; }
.cta-section .section-sub-cta { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-weight: 300; }
.cta-badges { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.cta-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: rgba(255,255,255,0.9); }
.cta-badge svg { flex-shrink: 0; }
.cta-section .btn-row { justify-content: center; }
.cta-section .btn-primary { background: #fff; color: var(--primary-deep); }
.cta-section .btn-primary:hover { background: var(--bg-soft); }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: #1B262C; color: #C9D3D7; padding: 3.5rem 0 0; }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem 2.5rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.footer-col h4 { font-size: 0.85rem; color: #fff; margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; font-size: 0.85rem; margin-bottom: 0.6rem; color: #9FB0B6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 1.25rem;
  text-align: center; font-size: 0.78rem; color: #7C8B91;
}
.footer-bottom p { margin-bottom: 0.35rem; }

/* ── Floating 버튼 ────────────────────────────────────── */
.floating-buttons { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200; display: flex; flex-direction: column; gap: 0.7rem; }
.float-btn {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem;
  border-radius: var(--btn-radius); font-weight: 700; font-size: 0.88rem; color: #fff;
  box-shadow: 0 10px 24px rgba(30,42,47,0.25);
}
.float-call { background: var(--primary-deep); }
.float-sms { background: #4A6270; }

/* ── BEFORE/AFTER 비교 ────────────────────────────────── */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col img { border-radius: var(--card-radius); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.compare-col h3 { margin: 0.9rem 0 0.5rem; font-size: 1.05rem; }
.compare-col p { color: var(--text-muted); font-size: 0.9rem; }

/* ── 기술자 한마디 ────────────────────────────────────── */
.quote-block {
  border-left: 3px solid var(--primary); padding: 1.5rem 1.75rem; background: var(--bg-soft);
  border-radius: 0 var(--card-radius) var(--card-radius) 0; margin: 2rem 0;
}
.quote-block p { font-size: 1rem; margin-bottom: 0.5rem; }
.quote-block .quote-sign { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }

/* ── 요약 박스 ────────────────────────────────────────── */
.summary-box { background: var(--bg-soft); border-radius: var(--card-radius); padding: 1.75rem 2rem; }
.summary-box li { position: relative; padding-left: 1.3rem; margin-bottom: 0.6rem; font-size: 0.92rem; }
.summary-box li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-deep); }

/* ── 상담 페이지 ──────────────────────────────────────── */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .steps-row { grid-template-columns: 1fr; } }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 720px; margin: 0 auto; }
@media (max-width: 640px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card { text-align: center; }
.guide-card img { border-radius: var(--card-radius); aspect-ratio: 4/3; object-fit: cover; margin-bottom: 0.75rem; }

/* ── 관련 페이지 링크 ─────────────────────────────────── */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.25rem; }
.related-card .r-label { font-size: 0.75rem; color: var(--primary-deep); font-weight: 700; margin-bottom: 0.4rem; }
.related-card .r-title { font-weight: 700; font-size: 0.95rem; }

/* ── 사이트맵 페이지 ──────────────────────────────────── */
.sitemap-search { max-width: 480px; margin: 0 auto 2.5rem; }
.sitemap-search input {
  width: 100%; padding: 0.85rem 1.1rem; border: 1px solid var(--border); border-radius: var(--btn-radius);
  font-size: 0.95rem;
}
.sitemap-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 768px) { .sitemap-cat-grid { grid-template-columns: 1fr; } }
.sitemap-cat { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.5rem; }
.sitemap-cat h3 { font-size: 1rem; margin-bottom: 0.9rem; }
.sitemap-cat li { margin-bottom: 0.55rem; }
.sitemap-cat a { font-size: 0.88rem; color: var(--text-muted); }
.sitemap-cat a:hover { color: var(--primary-deep); }
.sitemap-hidden { display: none !important; }
