/* ═══ 코리아차수판 (floodgate.koreazibsuri.com) 디자인 시스템 ═══
   Primary 컬러: 파스텔 세이지 #B4C7B0 (10종 중 랜덤 선정)
   Hero 타입: hero-grid / 배치패턴: 2 (포트폴리오+배너 → Hero → 서비스)
   포트폴리오 그리드: grid-4 / 섹션 레이블: label-badge / 버튼: btn-square
   폰트: Pretendard, 제목 800 / 본문 300~400
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #B4C7B0;
  --primary-dark: #8CA486;
  --primary-darker: #6F8768;
  --primary-tint: #EDF2EB;
  --text: #23281f;
  --text-muted: #6b7566;
  --border: #e2e6dd;
  --bg: #ffffff;
  --bg-alt: #f6f7f3;
  --card-radius: 1.25rem;
  --radius-btn: 6px;
  --max-width: 1200px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 800; margin: 0; line-height: 1.35; }
p { margin: 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 5rem 0; }
@media (max-width: 640px) { section { padding: 3.25rem 0; } }

/* ===== 섹션 레이블 (H-4: label-badge) ===== */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.9rem;
}
.section-head { max-width: 640px; margin: 0 0 2.75rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0.5rem; }
.section-desc { color: var(--text-muted); font-weight: 300; margin-top: 0.75rem; font-size: 0.98rem; }

/* ===== 버튼 (H-5: btn-square) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-btn);
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary-darker); color: #fff; }
.btn-primary:hover { background: #5c7156; }
.btn-outline { background: transparent; border-color: var(--primary-darker); color: var(--primary-darker); }
.btn-outline:hover { background: var(--primary-tint); }
.btn-light { background: #fff; color: var(--primary-darker); }
.btn-light:hover { background: var(--primary-tint); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.site-header .logo img { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text); transition: color 0.2s; }
.site-nav a:hover { color: var(--primary-darker); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 99; padding: 2rem 1.25rem; flex-direction: column; gap: 1.5rem;
}
.mobile-nav.active { display: flex; }
.mobile-nav a { font-size: 1.15rem; font-weight: 700; }
body.nav-open { overflow: hidden; }

@media (max-width: 900px) {
  .site-nav, .header-actions .btn-primary.pc-only { display: none; }
  .hamburger { display: flex; }
}

/* ===== Hero (hero-grid) ===== */
.hero { padding-top: calc(var(--header-h) + 3.5rem); padding-bottom: 3.5rem; background: var(--bg-alt); }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero-copy h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  color: var(--text);
}
.hero-copy .hero-sub { margin-top: 1.1rem; font-size: 1.05rem; color: var(--text-muted); font-weight: 300; max-width: 34rem; }
.hero-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-badge {
  display: flex; align-items: center; gap: 0.4rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-btn);
  padding: 0.55rem 0.9rem; font-size: 0.82rem; font-weight: 600; color: var(--text);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--primary-darker); flex-shrink: 0; }
.hero-btn-row { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.hero-photo-grid img { border-radius: var(--card-radius); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.hero-photo-grid a:first-child { grid-column: 1 / -1; }
.hero-photo-grid a:first-child img { aspect-ratio: 16/10; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo-grid { order: -1; }
}

/* ===== 시공사례 포트폴리오 (grid-4) ===== */
.portfolio-section { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@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.1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.card-badge {
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.06em;
  background: var(--primary); color: #fff; display: inline-block;
  padding: 0.2rem 0.55rem; border-radius: var(--radius-btn); align-self: flex-start;
}
.card-title { font-weight: 800; font-size: 0.95rem; line-height: 1.4; color: var(--text); }
.card-sub { font-weight: 400; font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.card-sub svg { width: 13px; height: 13px; flex-shrink: 0; }
.card-more { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-top: 0.2rem; transition: color 0.3s ease; }
.portfolio-card:hover .card-more { color: var(--primary-darker); }

/* ===== 중간 배너 ===== */
.mid-banner {
  background: linear-gradient(120deg, var(--primary-darker), var(--primary));
  color: #fff; padding: 2.75rem 0; margin-top: 4rem;
}
.mid-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.mid-banner p { font-size: 1.15rem; font-weight: 700; }
@media (max-width: 640px) { .mid-banner .container { flex-direction: column; text-align: center; } }

/* ===== 서비스 소개 (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: var(--card-radius); overflow: hidden; background: #fff;
  transition: all 0.25s ease; display: flex; flex-direction: column;
}
.service-card:hover { border-color: var(--primary); box-shadow: 0 12px 28px rgba(0,0,0,0.08); 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; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.service-card .label-en { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; color: var(--primary-darker); text-transform: uppercase; }
.service-card h3 { font-size: 0.95rem; }
.service-card .desc { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; flex: 1; }
.service-card .more { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-top: 0.4rem; }

/* ===== 프로세스 ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }
.process-item { text-align: center; padding: 1.75rem 1.25rem; background: var(--bg-alt); border-radius: var(--card-radius); }
.process-num {
  width: 46px; height: 46px; margin: 0 auto 1rem; border-radius: var(--radius-btn);
  background: var(--primary-darker); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.process-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.process-item p { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }

/* ===== 회사소개 ===== */
.about-copy p { color: var(--text-muted); font-weight: 300; margin-top: 1rem; max-width: 680px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; max-width: 680px; }
.about-stat { background: var(--bg-alt); border-radius: var(--card-radius); padding: 1.5rem 1rem; text-align: center; }
.about-stat .num { font-size: 1.7rem; font-weight: 800; color: var(--primary-darker); }
.about-stat .lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
.about-fact-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.about-fact { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--text); }
.about-fact svg { width: 18px; height: 18px; color: var(--primary-darker); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 640px) { .about-stats { grid-template-columns: repeat(3, 1fr); } }

/* ===== 고객 후기 ===== */
.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 { display: flex; gap: 2px; margin-bottom: 0.9rem; }
.review-stars svg { width: 16px; height: 16px; color: var(--primary-darker); }
.review-text { font-size: 0.88rem; color: var(--text); font-weight: 400; margin-bottom: 1.25rem; }
.review-who { display: flex; align-items: center; gap: 0.6rem; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-darker);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.review-who .name { font-size: 0.85rem; font-weight: 700; }
.review-who .loc { font-size: 0.75rem; color: var(--text-muted); }

/* ===== 서비스 지역 ===== */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 720px) { .areas-grid { grid-template-columns: 1fr; } }
.area-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.75rem; text-align: center; background: var(--bg-alt); }
.area-card svg { width: 30px; height: 30px; color: var(--primary-darker); margin: 0 auto 0.75rem; }
.area-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.area-card p { font-size: 0.82rem; color: var(--text-muted); font-weight: 300; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; background: #fff; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 700; font-size: 0.95rem; background: none; border: none;
  width: 100%; text-align: left; color: var(--text); font-family: inherit;
}
.faq-q .icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-q .icon::before, .faq-q .icon::after { content: ''; position: absolute; background: var(--primary-darker); border-radius: 2px; transition: transform 0.25s ease; }
.faq-q .icon::before { width: 100%; height: 2px; top: 9px; left: 0; }
.faq-q .icon::after { width: 2px; height: 100%; top: 0; left: 9px; }
.faq-item.active .faq-q .icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 1.5rem 1.25rem; font-size: 0.88rem; color: var(--text-muted); font-weight: 300; }
.faq-item.active .faq-a { max-height: 400px; }

/* ===== CTA ===== */
.cta-section { background: var(--primary-darker); color: #fff; text-align: center; }
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; }
.cta-section .section-desc { color: rgba(255,255,255,0.85); }
.cta-trust { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin: 2rem 0; }
.cta-trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; }
.cta-trust-item svg { width: 18px; height: 18px; }
.cta-btn-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-section .btn-outline { border-color: #fff; color: #fff; }
.cta-section .btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ===== Footer ===== */
.site-footer { background: #1f2620; color: #cdd4c9; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand img { height: 34px; margin-bottom: 0.9rem; filter: brightness(0) invert(1) opacity(0.92); }
.footer-brand p { font-size: 0.82rem; color: #9aa596; line-height: 1.7; }
.footer-col h4 { font-size: 0.85rem; color: #fff; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.85rem; color: #9aa596; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333d31; margin-top: 2.75rem; padding-top: 1.75rem; font-size: 0.78rem; color: #7c8878; }
.footer-bottom p { margin-bottom: 0.3rem; }

/* ===== 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.85rem 1.1rem;
  border-radius: var(--radius-btn); font-weight: 700; font-size: 0.85rem; box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.floating-btn.call { background: var(--primary-darker); color: #fff; }
.floating-btn.sms { background: #fff; color: var(--primary-darker); border: 2px solid var(--primary-darker); }
.floating-btn svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .floating-btn span { display: none; }
  .floating-btn { padding: 0.85rem; border-radius: 50%; }
}

/* ===== 상세페이지 공통 ===== */
.detail-hero {
  position: relative; padding-top: calc(var(--header-h) + 4.5rem); padding-bottom: 3rem;
  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; z-index: 1; }
.detail-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.detail-hero .loc { margin-top: 0.6rem; font-size: 0.95rem; opacity: 0.92; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.25rem; opacity: 0.9; }

.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-top: -2.75rem; position: relative; z-index: 2; }
@media (max-width: 720px) { .info-bar { grid-template-columns: repeat(2, 1fr); } }
.info-bar .cell { background: #fff; padding: 1.25rem 1.1rem; }
.info-bar .cell .k { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.info-bar .cell .v { font-size: 0.92rem; font-weight: 700; }

.detail-body { padding: 3.5rem 0; }
.detail-body .prose { max-width: 780px; margin: 0 auto; }
.detail-body .prose h2 { font-size: 1.35rem; margin: 2.5rem 0 1rem; }
.detail-body .prose h2:first-child { margin-top: 0; }
.detail-body .prose p { color: var(--text); font-weight: 300; margin-bottom: 1rem; font-size: 0.95rem; }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 780px; margin: 2rem auto; }
@media (max-width: 640px) { .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 .tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: var(--radius-btn); margin-bottom: 0.6rem; }
.ba-col.before .tag { background: #eee; color: #666; }
.ba-col.after .tag { background: var(--primary); color: #fff; }

.summary-box { max-width: 780px; margin: 2rem auto; background: var(--bg-alt); border-radius: var(--card-radius); padding: 1.75rem 2rem; }
.summary-box h3 { font-size: 1rem; margin-bottom: 1rem; }
.summary-box li { display: flex; gap: 0.6rem; font-size: 0.9rem; padding: 0.4rem 0; }
.summary-box li svg { width: 16px; height: 16px; color: var(--primary-darker); flex-shrink: 0; margin-top: 3px; }

.quote-box {
  max-width: 780px; margin: 2.5rem auto; padding: 1.75rem 2rem; border-left: 4px solid var(--primary);
  background: var(--bg-alt); border-radius: 0 var(--card-radius) var(--card-radius) 0;
}
.quote-box p { font-size: 0.95rem; font-style: normal; color: var(--text); margin-bottom: 1rem; }
.quote-box .sig { font-size: 0.82rem; color: var(--text-muted); font-weight: 700; }

.related-links { max-width: 780px; margin: 2.5rem auto; display: flex; gap: 1rem; flex-wrap: wrap; }
.related-links a {
  flex: 1; min-width: 220px; border: 1px solid var(--border); border-radius: var(--card-radius);
  padding: 1rem 1.25rem; font-size: 0.85rem; font-weight: 700; transition: all 0.2s;
}
.related-links a:hover { border-color: var(--primary); background: var(--bg-alt); }

/* ===== NSEO / 상담 페이지 공통 ===== */
.page-hero {
  padding-top: calc(var(--header-h) + 3.5rem); padding-bottom: 3rem; background: var(--bg-alt); text-align: center;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.page-hero .hero-sub { max-width: 600px; margin: 1rem auto 0; color: var(--text-muted); font-weight: 300; }
.page-hero .hero-btn-row { justify-content: center; }

.banner-cta { background: var(--bg-alt); border-radius: var(--card-radius); padding: 2.5rem; text-align: center; max-width: var(--max-width); margin: 0 auto; }
.banner-cta h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.banner-cta p { color: var(--text-muted); font-weight: 300; margin-bottom: 1.5rem; }

/* utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
