/* ═══ 디자인 시스템 ═══
   Primary: #A0C4D8 (파스텔 스틸블루) / 폰트: Pretendard
   카드 radius: 1.25rem / 버튼: btn-square (radius 6px)
   레이블: label-number (숫자라인형)
   ═══════════════════════ */

:root {
  --primary: #A0C4D8;
  --primary-dark: #7CA8C2;
  --text: #22303c;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-soft: #f7fafc;
  --card-radius: 1.25rem;
}

* { 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;
}
h1, h2, h3 { font-weight: 800; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-soft); }

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

/* 버튼: btn-square */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 6px; padding: 0.85rem 1.85rem; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: none; transition: all 0.25s ease; }
.btn-primary { background: var(--primary); color: #10202c; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-light { background: #fff; color: var(--text); }

/* 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);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.25rem; max-width: 1200px; margin: 0 auto; }
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo span { color: var(--primary-dark); }
.nav-menu { display: flex; gap: 2rem; font-weight: 600; font-size: 0.92rem; }
.nav-menu a:hover { color: var(--primary-dark); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.hamburger span { width: 22px; height: 2px; background: var(--text); }
.mobile-menu { display: none; flex-direction: column; padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--border); background: #fff; }
.mobile-menu a { padding: 0.6rem 0; font-weight: 600; border-bottom: 1px solid var(--border); }
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .header-cta .btn-outline { display: none; }
  .mobile-menu.open { display: flex; }
}

/* Hero split */
.hero-split { padding: 3.5rem 0 4.5rem; }
.hero-split-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-eyebrow { font-size: 0.8rem; font-weight: 700; color: var(--primary-dark); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.hero-split h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.45; margin-bottom: 1.25rem; }
.hero-desc { color: var(--text-muted); font-weight: 300; font-size: 1rem; margin-bottom: 1.75rem; }
.hero-service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 2rem; }
.hero-service-card { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: 10px; font-size: 0.85rem; font-weight: 700; }
.hero-service-card img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.hero-btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-visual { position: relative; border-radius: var(--card-radius); overflow: hidden; aspect-ratio: 4/3; }
.hero-visual img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-visual img.slide { position: absolute; inset: 0; opacity: 0; animation: heroFade 9s infinite; }
.hero-visual img.slide:nth-child(1) { animation-delay: 0s; }
.hero-visual img.slide:nth-child(2) { animation-delay: 3s; }
.hero-visual img.slide:nth-child(3) { animation-delay: 6s; }
@keyframes heroFade { 0% { opacity: 0; } 8% { opacity: 1; } 30% { opacity: 1; } 38% { opacity: 0; } 100% { opacity: 0; } }
.hero-visual-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem; background: linear-gradient(0deg, rgba(16,32,44,0.75), transparent); color: #fff; }
.hero-visual-caption strong { display: block; font-size: 1rem; }
.hero-visual-caption span { font-size: 0.8rem; opacity: 0.85; }
@media (max-width: 900px) {
  .hero-split-inner { grid-template-columns: 1fr; }
  .hero-service-list { grid-template-columns: 1fr 1fr; }
}

/* 신뢰 배지 */
.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; font-weight: 700; color: var(--text-muted); }
.trust-badge svg { width: 18px; height: 18px; color: var(--primary-dark); flex-shrink: 0; }

/* 서비스 카드 */
.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; border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; transition: all 0.25s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); border-color: var(--primary); }
.service-thumb { aspect-ratio: 3/4; overflow: hidden; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 1rem; }
.service-en { font-size: 0.65rem; font-weight: 700; color: var(--primary-dark); letter-spacing: 0.08em; }
.service-name { font-size: 1rem; font-weight: 800; margin: 0.3rem 0; }
.service-desc { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; margin-bottom: 0.6rem; }
.service-more { font-size: 0.8rem; font-weight: 700; color: var(--primary-dark); }

/* 이미지 캡션 갤러리 */
.gallery-section { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .gallery-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.75rem; }
  .gallery-card { flex: 0 0 42%; scroll-snap-align: start; }
}
.gallery-card { display: block; }
.gallery-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--card-radius); border: 1px solid var(--border); }
.gallery-card figcaption { margin-top: 0.5rem; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--text); }

/* 포트폴리오 카드 (grid-3) */
.portfolio-section { max-width: 1200px; 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; }
.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: #10202c;
  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: 14px; height: 14px; flex-shrink: 0; }
.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(--primary-dark); }

/* 중간 배너 */
.mid-banner { background: var(--primary); padding: 2.75rem 0; }
.mid-banner-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.mid-banner p { font-size: 1.1rem; font-weight: 700; color: #10202c; }

/* 프로세스 */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { text-align: center; padding: 1.5rem 1rem; }
.process-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-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { margin-bottom: 1rem; color: var(--text-muted); font-weight: 300; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.about-stat { text-align: center; padding: 1.5rem 1rem; border: 1px solid var(--border); border-radius: var(--card-radius); }
.about-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }
.about-stat span { font-size: 0.8rem; color: var(--text-muted); }

/* 서비스 지역 */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 768px) { .area-grid { grid-template-columns: 1fr; } }
.area-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.75rem; }
.area-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.area-card p { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; }

/* FAQ */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0; background: none; border: none; text-align: left; font-size: 0.98rem; font-weight: 700; cursor: pointer; color: var(--text); }
.faq-q .plus { font-size: 1.3rem; color: var(--primary-dark); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding-bottom: 1.35rem; color: var(--text-muted); font-weight: 300; font-size: 0.92rem; }

/* CTA 섹션 */
.cta-section { background: #10202c; color: #fff; padding: 4.5rem 0; text-align: center; }
.cta-section h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1rem; }
.cta-section .section-sub { color: rgba(255,255,255,0.65); }
.cta-badges { display: flex; justify-content: center; gap: 1.75rem; flex-wrap: wrap; margin: 2rem 0; }
.cta-badges .trust-badge { color: rgba(255,255,255,0.85); }
.cta-badges .trust-badge svg { color: var(--primary); }
.cta-btn-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-section .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand strong { font-size: 1.1rem; font-weight: 800; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; margin-top: 0.6rem; }
.footer-col h4 { font-size: 0.85rem; margin-bottom: 0.9rem; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col a { font-size: 0.85rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--primary-dark); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; font-size: 0.78rem; color: var(--text-muted); line-height: 1.9; }

/* Floating 버튼 */
.floating-wrap { 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; padding: 0.8rem 1.1rem; border-radius: 6px;
  font-weight: 700; font-size: 0.85rem; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.floating-btn svg { width: 18px; height: 18px; }
.floating-btn.call { background: var(--primary); color: #10202c; }
.floating-btn.sms { background: #10202c; color: #fff; }

/* 상세페이지 공통 */
.detail-hero { position: relative; padding: 6rem 0 3rem; background-size: cover; background-position: center; color: #fff; }
.detail-hero::before { content: ""; position: absolute; inset: 0; background: rgba(16,32,44,0.55); }
.detail-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.detail-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.detail-hero .card-sub { color: rgba(255,255,255,0.85); margin-top: 0.6rem; }
.back-link { display: inline-block; margin-bottom: 1.25rem; font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.info-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 1200px; margin: -2.25rem auto 3rem; padding: 0 1.25rem; position: relative; z-index: 5; }
@media (max-width: 768px) { .info-bar { grid-template-columns: 1fr 1fr; } }
.info-item { background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.25rem; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.info-item span { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.info-item strong { font-size: 0.95rem; }
.detail-body { max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }
.detail-body p { margin-bottom: 1.1rem; color: var(--text-muted); font-weight: 300; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
@media (max-width: 768px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-col img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--card-radius); border: 1px solid var(--border); margin-bottom: 0.75rem; }
.ba-col h4 { margin-bottom: 0.5rem; }
.summary-box { background: var(--bg-soft); border-radius: var(--card-radius); padding: 1.75rem; margin: 2rem 0; }
.summary-box li { position: relative; padding-left: 1.25rem; margin-bottom: 0.6rem; font-size: 0.92rem; }
.summary-box li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-dark); }
.quote-box { border-left: 3px solid var(--primary); padding: 1.25rem 1.5rem; background: var(--bg-soft); border-radius: 0 var(--card-radius) var(--card-radius) 0; margin: 2rem 0; }
.quote-box p { font-style: normal; color: var(--text); margin-bottom: 0.75rem; }
.quote-box span { font-size: 0.82rem; color: var(--text-muted); font-weight: 700; }
.related-links { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }
.related-links a { font-size: 0.88rem; font-weight: 700; color: var(--primary-dark); border: 1px solid var(--border); padding: 0.6rem 1rem; border-radius: 6px; }

/* NSEO 랜딩 히어로 */
.nseo-hero { padding: 4.5rem 0 3.5rem; text-align: center; background: var(--bg-soft); }
.nseo-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 1rem; }
.nseo-hero p { max-width: 600px; margin: 0 auto; color: var(--text-muted); font-weight: 300; }
.nseo-hero .hero-btn-row { justify-content: center; margin-top: 1.75rem; }

/* 유틸 */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
