/* ═══════════════════════════════════════════════════════════
   한국차수막 (floodbarrier.koreazibsuri.com) 공통 스타일시트
   ─────────────────────────────────────────────────────────
   Hero 타입: hero-split / 섹션순서: 패턴 C (스토리 우선형)
   그리드: grid-3 / 레이블: label-number / 버튼: btn-underline
   Primary 컬러: 파스텔 스틸블루 #A0C4D8 (10종 중 랜덤 선정)
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary: #A0C4D8;
  --primary-dark: #6E97AF;
  --primary-deep: #1E3A52;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FA;
  --card-radius: 1.25rem;
  --max-width: 1200px;
}

* { 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; line-height: 1.35; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4.5rem 0; }
@media (max-width: 640px) { section { padding: 3rem 0; } }

/* ── 섹션 레이블 (H-4: 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 { max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head p { color: var(--text-muted); font-weight: 300; margin-top: 0.6rem; }

/* ── 버튼 (H-5: btn-underline) ─────────────────────────── */
.btn-primary, .btn-outline {
  background: transparent; border: none; padding: 0; cursor: pointer;
  color: var(--primary-deep); border-bottom: 2px solid var(--primary);
  border-radius: 0; font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  text-decoration: none; transition: color 0.2s ease, border-color 0.2s ease;
  padding-bottom: 0.15rem;
}
.btn-primary::after, .btn-outline::after { content: "→"; transition: transform 0.2s ease; }
.btn-primary:hover, .btn-outline:hover { color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-outline { color: var(--text); border-color: var(--border); }
.btn-row { display: flex; gap: 1.75rem; flex-wrap: wrap; align-items: center; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.78); 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(--primary-dark); }
.nav-menu { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.nav-menu a:hover { color: var(--primary-dark); }
.header-cta {
  display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none;
  font-weight: 700; font-size: 0.9rem; color: #fff; background: var(--primary-deep);
  padding: 0.55rem 1.1rem; border-radius: 999px;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }
.mobile-nav { display: none; flex-direction: column; gap: 0; background: #fff; border-top: 1px solid var(--border); }
.mobile-nav a { padding: 0.9rem 1.25rem; text-decoration: none; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav.active { display: flex; }
@media (max-width: 768px) {
  .nav-menu, .header-cta { display: none; }
  .hamburger { display: block; }
}

/* ── Hero: hero-split ───────────────────────────────────── */
.hero-split { padding: 3.5rem 0 4rem; background: var(--bg-soft); }
.hero-split .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-left .hero-label { font-size: 0.8rem; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; display: block; }
.hero-left h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-style: normal; }
.hero-left .hero-desc { margin-top: 1.1rem; color: var(--text-muted); font-size: 1.02rem; font-weight: 300; max-width: 46ch; }
.hero-service-links { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.hero-service-links li a {
  display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--border); border-radius: 0.85rem; padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hero-service-links li a:hover { border-color: var(--primary); transform: translateX(3px); }
.hero-service-links .thumb { width: 46px; height: 46px; border-radius: 0.6rem; overflow: hidden; flex-shrink: 0; }
.hero-service-links .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-service-links .txt strong { display: block; font-size: 0.92rem; font-weight: 700; }
.hero-service-links .txt span { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; }
.hero-right { position: relative; }
.hero-slider { position: relative; border-radius: 1.5rem; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 20px 50px rgba(30,58,82,0.18); }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.hero-slider .slide.active { opacity: 1; }
.hero-slider img { width: 100%; height: 100%; object-fit: cover; }
.hero-brand-caption { margin-top: 1rem; text-align: center; }
.hero-brand-caption strong { display: block; font-weight: 800; }
.hero-brand-caption span { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }
.hero-right .btn-row { justify-content: center; margin-top: 1rem; }
@media (max-width: 900px) {
  .hero-split .container { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
}

/* ── 시공사례 / Portfolio (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; 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.06em; background: var(--primary);
  color: #17323f; 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-more { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); margin-top: 0.25rem; }
.portfolio-card:hover .card-more { color: var(--primary-dark); }

/* ── 서비스 소개 (5열) ──────────────────────────────────── */
.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 .2s ease, transform .2s ease; }
.service-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.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 .eng-label { font-size: 0.65rem; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; }
.service-card h3 { font-size: 0.98rem; margin-top: 0.3rem; }
.service-card p { font-size: 0.82rem; color: var(--text-muted); font-weight: 300; margin: 0.4rem 0 0.6rem; }

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

/* ── 회사 소개 ──────────────────────────────────────────── */
.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: 0 0 1rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.about-stats .stat { text-align: center; background: var(--bg-soft); border-radius: 1rem; padding: 1.5rem 0.5rem; }
.about-stats .stat b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }
.about-stats .stat span { font-size: 0.8rem; color: var(--text-muted); }
.about-facts { list-style: none; margin: 1.25rem 0 0; padding: 0; font-size: 0.88rem; color: var(--text-muted); }
.about-facts li { padding: 0.3rem 0; }

/* ── 서비스 지역 ────────────────────────────────────────── */
.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.75rem; }
.area-card h3 { font-size: 1.05rem; }
.area-card p { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; margin-top: 0.5rem; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: 0.9rem; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: #fff; border: none; padding: 1.1rem 1.25rem;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-q .icon { transition: transform 0.25s ease; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--bg-soft); }
.faq-a p { padding: 0 1.25rem 1.1rem; font-size: 0.88rem; color: var(--text-muted); font-weight: 300; margin: 0; }
.faq-item.open .faq-a { max-height: 300px; }

/* ── CTA 섹션 ───────────────────────────────────────────── */
.cta-section { background: var(--primary-deep); color: #fff; text-align: center; }
.cta-section h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-section p { color: #C9DCE6; font-weight: 300; margin-top: 0.6rem; }
.trust-badges { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 2rem 0; }
.trust-badges .badge { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: #C9DCE6; }
.cta-btn-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 700;
  padding: 0.85rem 1.9rem; border-radius: 999px; font-size: 0.95rem;
}
.cta-btn.solid { background: var(--primary); color: #17323f; }
.cta-btn.outline { border: 1px solid rgba(255,255,255,0.5); color: #fff; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: #16232C; color: #B7C4CB; padding: 3.5rem 0 2rem; }
.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-grid h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.9rem; }
.site-footer .brand { color: #fff; font-weight: 800; font-size: 1.1rem; }
.site-footer p { font-size: 0.85rem; line-height: 1.7; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { text-decoration: none; color: #B7C4CB; font-size: 0.85rem; }
.footer-links a:hover { color: var(--primary); }
.footer-biz { border-top: 1px solid #2A3A44; margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.78rem; color: #7E8E96; line-height: 1.8; }

/* ── Floating 버튼 ──────────────────────────────────────── */
.floating-btns { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200; display: flex; flex-direction: column; gap: 0.65rem; }
.floating-btns a {
  display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 700; font-size: 0.85rem;
  padding: 0.75rem 1.1rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.floating-btns .fb-call { background: var(--primary-deep); color: #fff; }
.floating-btns .fb-sms { background: #fff; color: var(--text); border: 1px solid var(--border); }

/* ── 상세페이지 공통 ────────────────────────────────────── */
.detail-hero { position: relative; 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(23,50,63,0.55); }
.detail-hero .container { position: relative; padding-bottom: 2.5rem; color: #fff; }
.back-link { display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; color: #fff; font-size: 0.85rem; margin-bottom: 1rem; opacity: 0.9; }
.detail-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.detail-hero .sub { margin-top: 0.5rem; font-size: 0.95rem; color: #E6EEF2; }
.info-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg-soft); border-bottom: 1px solid var(--border); }
@media (max-width: 640px) { .info-bar { grid-template-columns: repeat(2, 1fr); } }
.info-bar .item { padding: 1.25rem; border-right: 1px solid var(--border); }
.info-bar .item:last-child { border-right: none; }
.info-bar .item .label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.info-bar .item .value { font-weight: 700; margin-top: 0.3rem; font-size: 0.95rem; }
.detail-body p { color: var(--text-muted); font-weight: 300; margin: 0 0 1rem; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 700px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-card {
  border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden;
  background: #fff; transition: box-shadow 0.25s ease, transform 0.25s ease; height: 100%;
}
.ba-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,0.1); transform: translateY(-3px); }
.ba-media { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--border); }
.ba-media .ba-shot { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.ba-media .ba-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-media .ba-shot .ba-cap {
  position: absolute; left: 0; right: 0; bottom: 0; color: #fff; font-size: 0.7rem; font-weight: 500;
  padding: 1.4rem 0.7rem 0.45rem; background: linear-gradient(to top, rgba(15,28,36,0.72), transparent);
}
.ba-body { padding: 1.5rem 1.5rem 1.65rem; }
.ba-badge {
  display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.04em; padding: 0.28rem 0.7rem; border-radius: 999px; margin-bottom: 0.75rem;
}
.ba-badge.before { background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border); }
.ba-badge.after { background: var(--primary); color: #17323f; }
.ba-body h2 { font-size: 1.05rem; }
.ba-body p { color: var(--text-muted); font-weight: 300; font-size: 0.9rem; margin-top: 0.6rem; margin-bottom: 0; }

/* ── 추가 사진(서브 이미지) 스트립 — Before/After 그리드와 분리해 대표컷을 해치지 않도록 ── */
.ba-extra { margin-top: 1.5rem; }
.ba-extra-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.75rem; }
.ba-extra-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.ba-extra-item { width: 160px; }
.ba-extra-item .shot { aspect-ratio: 4/3; border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--border); }
.ba-extra-item .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-extra-item .cap { font-size: 0.75rem; color: var(--text-muted); font-weight: 300; margin-top: 0.4rem; text-align: center; }
@media (max-width: 480px) { .ba-extra-item { width: calc(50% - 0.45rem); } }
.summary-box { background: var(--bg-soft); border-radius: 1rem; padding: 1.75rem; }
.summary-box ul { margin: 0; padding-left: 1.2rem; color: var(--text-muted); font-weight: 300; }
.summary-box ul li { margin-bottom: 0.4rem; }
.quote-block { border-left: 3px solid var(--primary); padding: 0.5rem 0 0.5rem 1.5rem; font-style: normal; color: var(--text); }
.quote-block p { color: var(--text); font-weight: 400; }
.quote-block cite { display: block; margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); font-style: normal; }
.related-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.related-links a { text-decoration: none; }

/* ── 유틸 ───────────────────────────────────────────────── */
.badge-pin { display: inline-flex; align-items: center; gap: 0.3rem; }
.badge-pin svg { flex-shrink: 0; }
.bg-soft { background: var(--bg-soft); }
.text-center { text-align: center; }
