/* ═══ 디자인 시스템 ═══
   Primary: 파스텔 스틸블루 #A0C4D8
   Hero: hero-split / 섹션순서: 패턴B / 그리드: grid-3 / 레이블: label-number / 버튼: btn-square
   ═══════════════════════ */

:root {
  --primary: #A0C4D8;
  --primary-dark: #6F97AE;
  --primary-tint: #EAF2F6;
  --text: #202832;
  --text-muted: #6B7580;
  --border: #E3E7EA;
  --bg: #FFFFFF;
  --bg-soft: #F6F8F9;
  --card-radius: 1.1rem;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Noto Sans KR', Roboto, 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; }
body h1, body h2, body h3, body h4 { font-weight: 800; margin: 0; word-break: keep-all; }
body h2 { font-size: 1.6rem; }
body h3 { font-size: 1.1rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }
@media (max-width: 640px) {
  .section { padding: 3rem 0; }
}

/* ===== 섹션 레이블: label-number (숫자라인형) ===== */
.section-label {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 0.5rem;
  max-width: 120px;
}
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { font-size: 1.9rem; }
.section-head .section-sub { margin-top: 0.6rem; color: var(--text-muted); font-weight: 400; }
@media (max-width: 640px) {
  .section-head h2 { font-size: 1.5rem; }
}

/* ===== 버튼: btn-square (사각형) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.9rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-primary:hover { background: #5c8098; }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary-dark); color: var(--primary-dark); }
.btn-light { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,0.28); }
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.link-more { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); transition: color 0.2s ease; }
.link-more:hover { color: var(--primary-dark); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.site-header .logo img { height: 30px; width: auto; }
.site-nav { display: flex; gap: 2rem; align-items: center; }
.site-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.site-nav a:hover { color: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.header-phone-btn { display: flex; align-items: center; gap: 0.4rem; }
.hamburger { display: none; background: none; border: none; padding: 0.4rem; }
.hamburger svg { width: 26px; height: 26px; }
.mobile-menu {
  display: none; position: fixed; inset: 72px 0 0 0; background: #fff; z-index: 49;
  padding: 1.5rem; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.9rem 0; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
@media (max-width: 768px) {
  .site-nav, .header-actions .btn { display: none; }
  .hamburger { display: block; }
}

/* ===== Hero: hero-split (좌우분할형) ===== */
.hero-split { padding: 3.5rem 0 4rem; background: linear-gradient(180deg, var(--primary-tint) 0%, #fff 65%); }
.hero-split .container {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center;
}
.hero-left .hero-label { font-weight: 700; color: var(--primary-dark); letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 1rem; text-transform: uppercase; }
.hero-left h1 {
  font-size: 2.6rem; line-height: 1.3; margin-bottom: 1.2rem;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, sans-serif; font-weight: 800;
}
.hero-left .hero-desc { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.8rem; }
.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-dark); font-weight: 800; }
.hero-badge span { font-size: 0.82rem; color: var(--text-muted); }
.hero-service-links { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 2rem; }
.hero-service-links a {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0.9rem; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; font-weight: 700; font-size: 0.92rem;
  transition: all 0.2s ease;
}
.hero-service-links a:hover { border-color: var(--primary-dark); }
.hero-service-links img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.hero-right { position: relative; }
.hero-slider { position: relative; border-radius: 1.3rem; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 24px 48px rgba(30,50,60,0.16); }
.hero-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero-slider img.active { opacity: 1; }
.hero-slider-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
  color: #fff;
}
.hero-slider-caption strong { display: block; font-size: 1.05rem; margin-bottom: 0.2rem; }
.hero-slider-caption span { font-size: 0.85rem; opacity: 0.85; }
@media (max-width: 900px) {
  .hero-split .container { grid-template-columns: 1fr; }
  .hero-left h1 { font-size: 2rem; }
}

/* ===== 서비스 소개 섹션 ===== */
.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 { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; transition: all 0.25s ease; text-decoration: none; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(30,50,60,0.10); border-color: var(--primary); }
.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 1.1rem 1.3rem; }
.service-card .eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--primary-dark); text-transform: uppercase; }
.service-card h3 { font-size: 1rem; margin: 0.35rem 0 0.45rem; }
.service-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.7rem; }

/* ===== 시공사례 포트폴리오 (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.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.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: #fff;
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px; 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-shrink: 0; }
.card-more { font-size: 0.875rem; 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); }

/* ===== 회사 소개 ===== */
.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-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.about-fact { background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.4rem; }
.about-fact strong { display: block; font-size: 1.7rem; color: var(--primary-dark); }
.about-fact span { font-size: 0.85rem; color: var(--text-muted); }
.about-body p { margin-bottom: 1rem; color: var(--text-muted); }
.about-body .eeat { font-size: 0.85rem; color: var(--text); background: var(--bg-soft); border-radius: 10px; padding: 1rem 1.2rem; margin-top: 1.2rem; }

/* ===== 프로세스 ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.6rem 1.4rem; }
.process-num { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 0.8rem; }
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ===== 시공 전/후 사진 비교 (텍스트와 분리, 항상 동일한 칸 크기) ===== */
.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (max-width: 640px) { .compare-wrap { grid-template-columns: 1fr; } }
.compare-side h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ===== 서비스 지역 ===== */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 768px) { .areas-grid { grid-template-columns: 1fr; } }
.areas-grid-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2rem; }
@media (max-width: 768px) { .areas-grid-main { grid-template-columns: 1fr; } }
.area-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.6rem; background: #fff; }
.area-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.area-card p { font-size: 0.88rem; color: var(--text-muted); }
.area-card.area-primary { border-color: var(--primary); background: var(--primary-tint); }
.area-card.area-inquire { display: flex; flex-direction: column; }
.area-card.area-inquire .btn { align-self: flex-start; margin-top: 1rem; }

/* ===== 서비스 소개 페이지 (service-detail) ===== */
.svc-hero { position: relative; overflow: hidden; }
.svc-hero .svc-hero-bg { position: absolute; inset: 0; }
.svc-hero .svc-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero .svc-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,30,36,0.72) 0%, rgba(20,30,36,0.40) 60%, rgba(20,30,36,0.20) 100%); }
.svc-hero .container { position: relative; padding: 4.5rem 1.25rem; color: #fff; }
.svc-hero h1 { font-size: 2.3rem; margin-bottom: 0.9rem; max-width: 640px; }
.svc-hero p { max-width: 560px; opacity: 0.92; margin-bottom: 1.6rem; }
@media (max-width: 640px) { .svc-hero .container { padding: 3rem 1.25rem; } .svc-hero h1 { font-size: 1.7rem; } }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.gallery-grid a, .gallery-grid .gallery-item { display: block; border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 1/1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid .gallery-item:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.checklist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 640px) { .checklist-grid { grid-template-columns: 1fr; } }
.checklist-item { display: flex; gap: 0.8rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.2rem 1.3rem; }
.checklist-item svg { flex-shrink: 0; margin-top: 0.15rem; }
.checklist-item span { font-size: 0.95rem; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 1.15rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 0.98rem;
}
.faq-q .plus { 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.4rem 1.3rem; color: var(--text-muted); font-size: 0.92rem; }
.faq-item.open .faq-a { max-height: 400px; }

/* ===== CTA ===== */
.cta-section { background: var(--primary-dark); color: #fff; text-align: center; }
.cta-section h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.cta-section .cta-sub { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.cta-badges { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.cta-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 600; }
.cta-badge svg { width: 18px; height: 18px; }
.cta-section .btn-row { justify-content: center; }
.cta-section .btn-primary { background: #fff; color: var(--primary-dark); }
.cta-section .btn-primary:hover { background: var(--bg-soft); }

/* ===== Footer ===== */
.site-footer { background: #1B242C; color: #B8C2CA; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.15rem; margin-bottom: 0.7rem; }
.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 0.9rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-biz { border-top: 1px solid #333d45; padding-top: 1.5rem; font-size: 0.8rem; line-height: 1.9; color: #8992A0; }

/* ===== Floating buttons ===== */
.floating-btns { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; 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: 8px;
  font-weight: 700; font-size: 0.88rem; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.floating-btn.call { background: var(--primary-dark); }
.floating-btn.sms { background: #384652; }
.floating-btn svg { width: 18px; height: 18px; }

/* ===== 공통 유틸 ===== */
.eyebrow-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 4px; letter-spacing: 0.05em; }
.text-shadow { text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.skip-link { position: absolute; left: -999px; }
