/* ═══ 수리터 벽장리폼 · 디자인 시스템 ═══
   Hero 타입: hero-grid / 섹션순서: 패턴C(스토리 우선형) / 그리드: grid-3 / 레이블: label-number / 버튼: btn-underline
   Primary: 파스텔 그린 #B8D8B0 (H-1~H-5, 컬러 【9】 규칙에 따라 랜덤 선정)
   ═══════════════════════════════════════════════════ */

:root {
  --primary: #B8D8B0;
  --primary-dark: #8FB88A;
  --accent: #6B8F6E;
  --text: #2B2F2C;
  --text-muted: #6B716C;
  --bg: #ffffff;
  --bg-soft: #F6F8F5;
  --border: #E3E7E1;
  --card-radius: 1.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 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; }
h1, h2, h3 { font-weight: 800; margin: 0; word-break: keep-all; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 5rem 0; }
@media (max-width: 640px) { section { padding: 3.5rem 0; } }

/* ── 섹션 레이블: label-number ── */
.section-label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  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-head h2 { font-size: 1.75rem; }
.section-head .desc { margin-top: 0.6rem; color: var(--text-muted); font-size: 0.95rem; font-weight: 300; }

/* ── 버튼: btn-underline ── */
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0.4rem 0;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.btn-primary::after, .btn-outline::after, .card-more::after, .link-arrow::after { content: " \2192"; }
.btn-primary:hover, .btn-outline:hover { opacity: 0.65; }
.btn-outline { color: var(--text); border-bottom-color: var(--text); }
.btn-row { display: flex; gap: 1.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ── 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);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.logo span { color: var(--accent); }
.nav-menu { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.header-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--primary); color: var(--text);
  padding: 0.55rem 1.1rem; border-radius: 9999px;
  font-weight: 700; font-size: 0.88rem; text-decoration: none;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.3rem; }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 768px) {
  .nav-menu { position: fixed; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 0.5rem 0; border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform 0.25s ease; }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { display: block; padding: 0.9rem 1.25rem; border-top: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .header-cta span { display: none; }
}

/* ── Hero (공통) ── */
.hero { padding-top: 128px; padding-bottom: 4rem; background: var(--bg-soft); }
.hero-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; color: var(--text); background: #fff; border: 1px solid var(--border); padding: 0.4rem 0.85rem; border-radius: 9999px; }
.hero-badge svg { width: 14px; height: 14px; color: var(--accent); }
.hero h1 { font-size: 2.4rem; line-height: 1.3; }
.hero .sub { margin-top: 1rem; font-size: 1.05rem; color: var(--text-muted); font-weight: 300; max-width: 34rem; }
@media (max-width: 640px) { .hero h1 { font-size: 1.85rem; } }

/* hero-grid 타입 전용 */
.hero-grid-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.hero-photo-grid img { border-radius: var(--card-radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-photo-grid .tall { grid-row: span 2; aspect-ratio: 3/4; }
@media (max-width: 900px) { .hero-grid-wrap { grid-template-columns: 1fr; } }

/* 상세페이지 서브 히어로 (오버레이형) */
.detail-hero { position: relative; padding-top: 148px; padding-bottom: 3.5rem; background-size: cover; background-position: center; color: #fff; }
.detail-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.detail-hero .container { position: relative; }
.detail-hero h1 { font-size: 2rem; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.detail-hero .loc { margin-top: 0.6rem; display: flex; align-items: center; gap: 0.4rem; font-weight: 300; }
.back-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; margin-bottom: 1.25rem; text-decoration: none; color: #fff; opacity: 0.9; }

/* ── 회사소개 ── */
.about-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.about-stats .stat { background: var(--bg-soft); border-radius: var(--card-radius); padding: 1.5rem 1rem; text-align: center; }
.about-stats .num { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.about-stats .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.about-facts { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 900px) { .about-wrap { grid-template-columns: 1fr; } }

/* ── 시공사례 포트폴리오 ── */
.portfolio-section { background: var(--bg-soft); }
.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 {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.10); 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.08em;
  background: var(--primary); color: var(--text); display: inline-block;
  padding: 0.2rem 0.6rem; border-radius: 0.25rem; align-self: flex-start;
}
.card-title { font-weight: 800; font-size: 1rem; line-height: 1.4; color: var(--text); }
.card-sub { font-weight: 300; font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.card-sub svg { width: 13px; height: 13px; }
.card-more { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); margin-top: 0.25rem; transition: color 0.3s ease; }
.portfolio-card:hover .card-more { color: var(--accent); }

/* ── 프로세스 ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { text-align: left; }
.process-num { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }
.process-step h3 { font-size: 1.02rem; margin-top: 0.5rem; }
.process-step p { margin-top: 0.4rem; font-size: 0.88rem; color: var(--text-muted); font-weight: 300; }

/* ── 서비스 소개 ── */
.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; text-decoration: none; color: var(--text); background: #fff; }
.service-card .thumb { aspect-ratio: 3/4; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 1rem; }
.service-card .eyebrow { font-size: 0.65rem; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.service-card h3 { font-size: 0.95rem; margin-top: 0.3rem; }
.service-card .desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; font-weight: 300; }
.service-card .more { margin-top: 0.6rem; display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }

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

/* ── 서비스 지역 ── */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 700px) { .areas-grid { grid-template-columns: 1fr; } }
.area-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.75rem; background: var(--bg-soft); }
.area-card h3 { font-size: 1.05rem; }
.area-card p { margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }

/* ── CTA 섹션 ── */
.cta-section { background: var(--text); color: #fff; }
.cta-section h2 { font-size: 1.7rem; color: #fff; }
.cta-section .desc { color: rgba(255,255,255,0.65); margin-top: 0.7rem; }
.trust-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.trust-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.85); }
.trust-badge svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.cta-section .btn-row .btn-outline, .cta-section .btn-row .btn-primary { color: #fff; border-bottom-color: #fff; }
.cta-section .btn-row .btn-primary { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Footer ── */
.site-footer { background: #20241f; color: rgba(255,255,255,0.7); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-grid h4 { color: #fff; font-size: 0.9rem; margin-bottom: 1rem; }
.footer-brand { font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer-grid p { font-size: 0.85rem; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.85rem; text-decoration: none; color: rgba(255,255,255,0.7); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.8; }

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

/* ── 상담/사이트맵/기타 공용 ── */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card { border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; background: #fff; }
.guide-card img { aspect-ratio: 4/3; object-fit: cover; }
.guide-card .body { padding: 1.25rem; }
.guide-card h3 { font-size: 0.98rem; }
.guide-card p { margin-top: 0.4rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }

.summary-box { background: var(--bg-soft); border-radius: var(--card-radius); padding: 1.75rem; }
.summary-box li { display: flex; gap: 0.6rem; font-size: 0.92rem; padding: 0.5rem 0; }
.summary-box li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 0.2rem; }

.quote-block { border-left: 3px solid var(--primary); padding: 0.5rem 0 0.5rem 1.5rem; font-size: 1rem; font-style: normal; color: var(--text); }
.quote-block .sign { display: block; margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-col img { border-radius: var(--card-radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ba-col h3 { margin-top: 1rem; font-size: 1.05rem; }
.ba-col p { margin-top: 0.6rem; font-size: 0.9rem; color: var(--text-muted); font-weight: 300; line-height: 1.75; }

.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; }
.info-bar .cell { background: #fff; padding: 1.25rem 1rem; text-align: center; }
.info-bar .cell .k { font-size: 0.75rem; color: var(--text-muted); }
.info-bar .cell .v { margin-top: 0.35rem; font-size: 0.95rem; font-weight: 700; }
@media (max-width: 700px) { .info-bar { grid-template-columns: repeat(2, 1fr); } }

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

.breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { text-decoration: none; color: var(--text-muted); }

.mainpage-banner { background: var(--primary); border-radius: var(--card-radius); padding: 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.mainpage-banner h2 { font-size: 1.3rem; }

.filter-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-bar input { flex: 1; min-width: 200px; padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: 9999px; font-size: 0.9rem; }
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 800px) { .sitemap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sitemap-grid { grid-template-columns: 1fr; } }
.sitemap-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.25rem; text-decoration: none; color: var(--text); }
.sitemap-card .cat { font-size: 0.72rem; color: var(--accent); font-weight: 700; }
.sitemap-card h3 { font-size: 0.95rem; margin-top: 0.4rem; }
