/* ═══ 구조 설정 ═══
   Hero 타입: hero-split / 배치패턴: 3 (Hero → 포트폴리오+배너 → 서비스 → ...)
   그리드: grid-3 / 레이블: label-number / 버튼: btn-underline
   Primary: 그레이 #9CA3AF
   ═══════════════════════ */

:root {
  --primary: #9CA3AF;
  --primary-dark: #52525B;
  --text: #1f2530;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-soft: #f7f8fa;
  --card-radius: 0;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  color: var(--text);
  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; }
p { margin: 0; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-sub { color: var(--text-muted); font-weight: 300; margin-top: 0.75rem; }

/* 섹션 레이블: label-number */
.section-label {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-size: 0.75rem; font-weight: 700; color: var(--primary-dark);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); margin-left: 0.5rem; }

/* 버튼: btn-underline */
.btn-primary, .btn-outline {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: transparent; border: none; padding: 0.2rem 0;
  color: var(--primary-dark); font-weight: 700; font-size: 1rem;
  border-bottom: 2px solid var(--primary-dark);
  text-decoration: none; cursor: pointer; border-radius: 0;
  transition: opacity 0.2s ease;
}
.btn-primary::after, .btn-outline::after { content: "→"; }
.btn-primary:hover, .btn-outline:hover { opacity: 0.65; }
.btn-outline { color: var(--text); border-bottom-color: var(--text-muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header .logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); }
.site-header .logo img { width: auto; height: 36px; border-radius: 0; }
.site-nav { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--text); }
.site-nav a:hover { color: var(--primary-dark); }
.header-cta {
  background: var(--primary); color: #ffffff; font-weight: 700; font-size: 0.9rem;
  padding: 0.6rem 1.2rem; border-radius: 0; text-decoration: none;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }
.mobile-menu { display: none; flex-direction: column; gap: 0; border-top: 1px solid var(--border); background: #fff; }
.mobile-menu a { padding: 0.9rem 1.25rem; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-menu.open { display: flex; }
@media (max-width: 768px) {
  .site-nav, .header-cta { display: none; }
  .hamburger { display: block; }
}

/* Hero split */
.hero-split { padding: 4rem 0 5rem; background: var(--bg-soft); }
.hero-split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-left .eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--primary-dark); text-transform: uppercase; margin-bottom: 1rem;
}
.hero-left h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.25; margin-bottom: 1.25rem; }
.hero-left .desc { color: var(--text-muted); font-weight: 300; font-size: 1.05rem; margin-bottom: 2rem; }
.hero-service-list { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.hero-service-list li { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
.hero-service-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.hero-btn-row { display: flex; gap: 1.75rem; }
.hero-right { position: relative; }
.hero-slider { position: relative; border-radius: var(--card-radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.hero-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.hero-slider img.active { opacity: 1; }
.hero-slider-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
}
.hero-slider-caption .brand { font-weight: 800; }
.hero-slider-caption .line { font-weight: 300; font-size: 0.85rem; opacity: 0.9; }
@media (max-width: 900px) {
  .hero-split .wrap { grid-template-columns: 1fr; }
}

/* Portfolio grid-3 */
.portfolio-section { max-width: var(--max-width); margin: 0 auto; padding: 6.5rem 1.25rem 5rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.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.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.08em;
  background: var(--primary); color: #ffffff; display: inline-block;
  padding: 0.2rem 0.6rem; border-radius: 0; 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); }
.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); }

/* 중간 배너 */
.mid-banner {
  background: var(--primary); color: #ffffff;
  padding: 3rem 0; margin-top: 4rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 220px;
}
.mid-banner .wrap { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.mid-banner p { font-size: 1.25rem; font-weight: 700; }
.mid-banner .btn-primary, .mid-banner .btn-outline { color: #ffffff; border-bottom-color: #ffffff; }

/* Service cards (3:4 thumbnail) */
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
@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-radius: var(--card-radius); overflow: hidden; border: 1px solid var(--border); text-decoration: none; color: var(--text); display: block; transition: box-shadow 0.3s ease; }
.service-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.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 .label { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--primary-dark); font-weight: 700; text-transform: uppercase; }
.service-card h3 { font-size: 0.98rem; margin: 0.35rem 0; }
.service-card .desc { font-size: 0.82rem; color: var(--text-muted); font-weight: 300; margin-bottom: 0.6rem; }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr; } }
.process-step { text-align: center; padding: 1.5rem 1rem; }
.process-step .num { font-size: 1.75rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 0.75rem; }
.process-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; margin-top: 2.5rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { margin-bottom: 1rem; font-weight: 300; color: var(--text-muted); }
.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 .stat .n { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }
.about-stats .stat .l { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
@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; }
.review-card .stars { color: var(--primary-dark); font-size: 0.9rem; margin-bottom: 0.75rem; }
.review-card .text { font-size: 0.9rem; color: var(--text); margin-bottom: 1.25rem; font-weight: 300; }
.review-card .who { display: flex; align-items: center; gap: 0.6rem; }
.review-card .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.review-card .meta { font-size: 0.8rem; color: var(--text-muted); }

/* Areas */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
@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 { margin-bottom: 0.75rem; }
.area-card p { color: var(--text-muted); font-weight: 300; font-size: 0.9rem; }

/* FAQ */
.faq-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: 0; overflow: hidden; }
.faq-question {
  width: 100%; background: #fff; border: none; text-align: left; padding: 1.1rem 1.3rem;
  font-weight: 700; font-size: 0.98rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-question .icon { transition: transform 0.25s ease; font-weight: 400; color: var(--primary-dark); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.3rem; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.3rem 1.2rem; }
.faq-answer p { color: var(--text-muted); font-weight: 300; font-size: 0.9rem; }

/* CTA */
.cta-section { background: var(--bg-soft); padding: 5rem 0; text-align: center; }
.cta-badges { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 2rem 0; }
.cta-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.cta-badge svg { width: 18px; height: 18px; color: var(--primary-dark); }
.cta-btn-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  padding: 0.9rem 1.75rem; border-radius: 0; font-weight: 700; font-size: 0.95rem;
  border-bottom: 2px solid var(--text);
}
.cta-btn.primary { border-bottom-color: var(--primary-dark); color: var(--primary-dark); }
.cta-btn.outline { color: var(--text); }

/* Footer */
.site-footer { background: #1a2027; color: #cfd4da; 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; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.site-footer .brand { color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 0.75rem; }
.site-footer p { font-size: 0.85rem; line-height: 1.8; color: #9aa1a9; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { text-decoration: none; color: #cfd4da; font-size: 0.88rem; }
.footer-links a:hover { color: var(--primary); }
.footer-biz { border-top: 1px solid #333a42; margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.78rem; color: #7d848c; line-height: 1.9; }
.footer-biz a { color: #7d848c; text-decoration: underline; }
.footer-biz a:hover { color: var(--primary); }

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

/* 시공사례 상세 페이지 */
.detail-hero { position: relative; height: 380px; display: flex; align-items: flex-end; }
.detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.detail-hero .wrap { position: relative; z-index: 2; color: #fff; padding-bottom: 2.5rem; }
.detail-hero .back-link { color: #fff; opacity: 0.85; font-size: 0.85rem; text-decoration: none; display: inline-block; margin-bottom: 1rem; border-bottom-color: #fff; }
.detail-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.detail-hero .loc { margin-top: 0.5rem; font-weight: 300; opacity: 0.9; }
.info-bar { border-bottom: 1px solid var(--border); }
.info-bar .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .info-bar .wrap { grid-template-columns: 1fr; } }
.info-bar .info-item { padding: 1.5rem; text-align: center; border-right: 1px solid var(--border); }
.info-bar .info-item:last-child { border-right: none; }
.info-bar .info-item .label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.info-bar .info-item .value { font-weight: 700; }
.content-section { max-width: 820px; margin: 0 auto; padding: 4rem 1.25rem; }
.content-section h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.content-section p { margin-bottom: 1.1rem; font-weight: 300; color: var(--text-muted); }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
@media (max-width: 640px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-col { display: flex; flex-direction: column; gap: 0.75rem; }
.ba-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-dark); }
.ba-col img { border-radius: var(--card-radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ba-col p { 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; margin: 2rem 0; }
.summary-box ul { margin: 0; padding-left: 1.2rem; }
.summary-box li { margin-bottom: 0.5rem; font-weight: 500; }
.quote-block { border-left: 3px solid var(--primary); padding: 0.5rem 0 0.5rem 1.5rem; margin: 2rem 0; font-style: normal; }
.quote-block .quote-text { color: var(--text); font-weight: 500; margin-bottom: 0.5rem; }
.quote-block .quote-sign { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.related-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
@media (max-width: 640px) { .related-links { grid-template-columns: 1fr; } }
.related-links a { text-decoration: none; }

.seo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
@media (max-width: 640px) { .seo-gallery { grid-template-columns: 1fr; } }
.seo-gallery img { border-radius: var(--card-radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.content-section table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.content-section th, .content-section td { border: 1px solid var(--border); padding: 0.7rem 0.9rem; text-align: left; }
.content-section th { background: var(--bg-soft); font-weight: 700; }

/* NSEO 페이지 */
.nseo-hero { background: var(--bg-soft); padding: 4.5rem 0; text-align: center; }
.nseo-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.nseo-hero p { color: var(--text-muted); font-weight: 300; max-width: 640px; margin: 0 auto 2rem; }
.related-page-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 768px) { .related-page-links { grid-template-columns: 1fr; } }
.related-page-links a { display: block; border: 1px solid var(--border); border-radius: 0; padding: 1.25rem; text-decoration: none; color: var(--text); font-weight: 600; }
.related-page-links a:hover { border-color: var(--primary); }

/* 사이트맵 페이지 */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2rem; align-items: start; }
@media (max-width: 768px) { .sitemap-grid { grid-template-columns: 1fr; } }
.sitemap-group h2 { font-size: 1.05rem; padding-bottom: 0.75rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.sitemap-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.sitemap-grid a { display: block; border: 1px solid var(--border); border-radius: 0; padding: 1.1rem; text-decoration: none; color: var(--text); }
.sitemap-grid .cat { font-size: 0.7rem; color: var(--primary-dark); font-weight: 700; text-transform: uppercase; margin-bottom: 0.35rem; }
