/* ═══ 디자인 시스템
   Primary: #3d2e1e (차콜 브라운) — 목재·가구·인테리어
   Accent: #6b5040 / BG: #fff, #f8f6f4
   Font: Noto Sans KR / Pretendard
   ═══════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700;800;900&display=swap');
:root{
  --primary:#3d2e1e;--primary-light:#6b5040;--primary-dark:#261e13;
  --accent:#8b6a4f;--bg:#fff;--bg2:#f8f6f4;--bg3:#f2ede8;
  --text:#1a1a1a;--text-muted:#6b6660;--border:#e5e0da;
  --card-radius:.75rem;--btn-radius:.375rem;--section-py:5rem;
  --header-h:64px;--max-w:1200px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Noto Sans KR',sans-serif;color:var(--text);background:var(--bg);word-break:keep-all;overflow-wrap:break-word;line-height:1.7}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}

/* 레이아웃 */
.container{max-width:var(--max-w);margin:0 auto;padding:0 1.5rem}
.section{padding:var(--section-py) 0}
.section--alt{background:var(--bg2)}
.section--dark{background:var(--bg3)}
.section-label{display:inline-block;font-size:.7rem;font-weight:700;letter-spacing:.18em;color:var(--primary);border:1.5px solid var(--primary);padding:.25rem .75rem;border-radius:2rem;margin-bottom:1.25rem;text-transform:uppercase}
.section-title{font-size:clamp(1.75rem,4vw,2.5rem);font-weight:800;line-height:1.25;margin-bottom:.75rem}
.section-sub{color:var(--text-muted);font-weight:300;max-width:560px;line-height:1.8}

/* 버튼 */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.75rem;border-radius:var(--btn-radius);font-size:.95rem;font-weight:700;cursor:pointer;transition:all .25s;border:2px solid transparent;white-space:nowrap}
.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary)}
.btn-primary:hover{background:var(--primary-dark);border-color:var(--primary-dark)}
.btn-outline{background:transparent;color:var(--primary);border-color:var(--primary)}
.btn-outline:hover{background:var(--primary);color:#fff}

/* 애니메이션 */
.fade-in-up{opacity:0;transform:translateY(30px);transition:.8s cubic-bezier(.16,1,.3,1)}
.fade-in-up.is-visible{opacity:1;transform:translateY(0)}

/* ─── HEADER ─── */
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--border);height:var(--header-h)}
.site-header>.container{height:100%;display:flex;align-items:center}
.header-inner{display:flex;align-items:center;justify-content:space-between;width:100%}
.logo{display:flex;align-items:center;gap:0;text-decoration:none}
.logo-brand{font-size:1.05rem;font-weight:800;color:var(--primary)}
.logo-sub{font-size:1.05rem;font-weight:400;color:#888;margin-left:.35rem}

/* ─── SERVICE 섹션 ─── */
.service-section{background:var(--bg);padding:4rem 0 3rem}
.service-header{text-align:center;margin-bottom:2.5rem}
.service-intro{color:var(--text-muted);font-weight:300;max-width:640px;margin:.75rem auto 0;line-height:1.9}
.service-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem}
.service-card{border:1.5px solid var(--border);border-radius:var(--card-radius);overflow:hidden;transition:all .3s;cursor:pointer;text-decoration:none;display:block;background:#fff}
.service-card:hover{border-color:var(--primary);transform:translateY(-4px);box-shadow:0 12px 32px rgba(61,46,30,.12)}
.service-card .sc-thumb{aspect-ratio:3/4;overflow:hidden}
.service-card .sc-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.service-card:hover .sc-thumb img{transform:scale(1.04)}
.service-card .sc-body{padding:1rem .9rem}
.service-card .sc-name{font-weight:800;font-size:.9rem;line-height:1.4;margin-bottom:.3rem}
.service-card .sc-desc{font-weight:300;font-size:.78rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:.5rem}
.service-card .sc-more{font-size:.78rem;font-weight:600;color:var(--text-muted);transition:color .3s}
.service-card:hover .sc-more{color:var(--primary)}

/* ─── HERO 슬라이더 ─── */
.hero-section{background:var(--bg3);padding:0}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;min-height:520px;align-items:stretch}
.hero-text{display:flex;flex-direction:column;justify-content:center;padding:3rem 3rem 3rem 0;max-width:560px;margin-left:auto}
.hero-brand{font-size:.82rem;font-weight:700;color:var(--accent);letter-spacing:.1em;margin-bottom:1rem}
.hero-kw{font-size:clamp(1.4rem,3vw,2rem);font-weight:800;line-height:1.3;margin-bottom:.75rem}
.hero-desc{color:var(--text-muted);font-weight:300;line-height:1.9;margin-bottom:1.75rem}
.hero-btns{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:1.5rem}
.hero-tags{font-size:.78rem;color:var(--text-muted);font-weight:400}
/* 슬라이더: 그리드 셀 전체를 채우고 모든 슬라이드를 absolute로 고정 */
.hero-slider{position:relative;overflow:hidden;align-self:stretch;min-height:320px}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .8s}
.slide.active{opacity:1}
.slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center}
.slider-dots{position:absolute;bottom:1rem;left:50%;transform:translateX(-50%);display:flex;gap:.5rem;z-index:2}
.dot{width:.5rem;height:.5rem;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;border:none;transition:background .3s}
.dot.active{background:#fff}

/* ─── GALLERY ─── */
.gallery-section{max-width:var(--max-w);margin:0 auto;padding:0 1.5rem}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.gallery-card{border:1px solid var(--border);border-radius:var(--card-radius);overflow:hidden;transition:all .3s;cursor:pointer;text-decoration:none;display:block;background:#fff}
.gallery-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(0,0,0,.1)}
.gallery-card .card-thumb{position:relative;aspect-ratio:4/3;overflow:hidden}
.gallery-card .card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.gallery-card:hover .card-thumb img{transform:scale(1.03)}
.case-badge{position:absolute;top:.75rem;left:.75rem;font-size:.62rem;font-weight:700;letter-spacing:.1em;background:var(--primary);color:#fff;padding:.2rem .55rem;border-radius:.25rem}
.gallery-card .card-body{padding:1.25rem;display:flex;flex-direction:column;gap:.4rem}
.card-title{font-weight:800;font-size:1rem;line-height:1.4}
.card-sub{font-weight:300;font-size:.875rem;color:var(--text-muted)}
.card-more{font-size:.875rem;font-weight:600;color:var(--text-muted);transition:color .3s}
.gallery-card:hover .card-more{color:var(--primary)}

/* ─── WHY US ─── */
.why-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;margin-top:2rem}
.why-card{background:#fff;border:1px solid var(--border);border-radius:var(--card-radius);padding:2rem;transition:box-shadow .3s}
.why-card:hover{box-shadow:0 8px 24px rgba(61,46,30,.08)}
.why-card h3{font-size:1.05rem;font-weight:800;margin-bottom:.75rem;color:var(--primary)}
.why-card p{font-weight:300;font-size:.9rem;color:var(--text-muted);line-height:1.8}

/* ─── PROCESS ─── */
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;margin-top:2.5rem}
.process-card{text-align:center;padding:1.75rem 1.25rem;background:#fff;border-radius:var(--card-radius);border:1px solid var(--border)}
.step-badge{width:3rem;height:3rem;background:var(--primary);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1rem;margin:0 auto 1rem}
.process-card h3{font-size:.95rem;font-weight:800;margin-bottom:.6rem}
.process-card p{font-size:.83rem;color:var(--text-muted);font-weight:300;line-height:1.7}

/* ─── FAQ ─── */
.faq-list{margin-top:2rem;border-top:1px solid var(--border)}
.faq-item{border-bottom:1px solid var(--border)}
.faq-q{width:100%;text-align:left;background:none;border:none;padding:1.25rem 0;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:.95rem;font-weight:700;gap:1rem}
.faq-icon{width:1.25rem;height:1.25rem;flex-shrink:0;transition:transform .3s}
.faq-item.open .faq-icon{transform:rotate(45deg)}
.faq-a{display:none;padding:.25rem 0 1.25rem;color:var(--text-muted);font-weight:300;line-height:1.85;font-size:.9rem}
.faq-item.open .faq-a{display:block}

/* ─── CTA ─── */
.cta-section{background:var(--bg3);text-align:center;padding:5rem 0}
.cta-title{font-size:clamp(1.5rem,3.5vw,2.25rem);font-weight:800;line-height:1.35;margin-bottom:.75rem}
.cta-sub{color:var(--text-muted);font-weight:300;margin-bottom:2rem}
.cta-btns{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap;margin-bottom:2.5rem}
.trust-badges{display:flex;justify-content:center;gap:2.5rem;flex-wrap:wrap}
.trust-badge{display:flex;align-items:center;gap:.5rem;font-size:.85rem;font-weight:600;color:var(--text-muted)}
.trust-badge svg{color:var(--primary)}

/* ─── FOOTER ─── */
.site-footer{background:#1a1511;color:#c8bfb5;padding:3rem 0 2rem}
.footer-inner{display:grid;grid-template-columns:1fr auto;gap:3rem;margin-bottom:2rem}
.footer-brand{display:flex;align-items:center;gap:0;margin-bottom:.75rem}
.footer-brand-name{font-weight:800;color:#fff;font-size:.95rem}
.footer-brand-sub{font-weight:400;color:#8a8078;font-size:.95rem;margin-left:.35rem}
.footer-desc{font-size:.82rem;line-height:1.85;color:#a89f95;margin-bottom:1rem}
.footer-contact a{font-size:.85rem;font-weight:600;color:#fff;border:1px solid #4a3d33;border-radius:var(--btn-radius);padding:.5rem 1rem;display:inline-block;transition:border-color .3s}
.footer-contact a:hover{border-color:var(--accent)}
.footer-nav h4{font-size:.82rem;font-weight:700;color:#fff;letter-spacing:.1em;margin-bottom.75rem}
.footer-nav ul{display:flex;flex-direction:column;gap:.5rem}
.footer-nav a{font-size:.82rem;color:#a89f95;transition:color .3s}
.footer-nav a:hover{color:#fff}
.footer-bottom{border-top:1px solid #2a211a;padding-top:1.25rem;font-size:.75rem;color:#6b5f55;display:flex;gap:1.5rem;flex-wrap:wrap}

/* ─── FLOATING ─── */
.floating-btn{position:fixed;bottom:1.75rem;right:1.75rem;z-index:50;background:var(--primary);color:#fff;border:none;border-radius:3rem;padding:.75rem 1.25rem;display:flex;align-items:center;gap:.5rem;font-size:.88rem;font-weight:700;cursor:pointer;box-shadow:0 4px 20px rgba(61,46,30,.35);text-decoration:none}
.floating-btn::before{content:'';position:absolute;inset:-4px;border-radius:3rem;border:2px solid var(--primary);animation:pulse-ring 3s infinite;opacity:0}
@keyframes pulse-ring{0%{transform:scale(1);opacity:.6}100%{transform:scale(1.3);opacity:0}}

/* ─── DETAIL PAGE ─── */
.detail-hero{position:relative;height:380px;overflow:hidden}
.detail-hero img{width:100%;height:100%;object-fit:cover}
.detail-hero-overlay{position:absolute;inset:0;background:rgba(26,17,9,.55);display:flex;align-items:flex-end;padding:2rem}
.detail-hero-content{color:#fff}
.detail-hero-back{font-size:.82rem;color:rgba(255,255,255,.7);display:inline-flex;align-items:center;gap:.3rem;margin-bottom:.75rem;transition:color .3s}
.detail-hero-back:hover{color:#fff}
.detail-hero h1{font-size:clamp(1.4rem,3vw,2rem);font-weight:800}

.detail-info-bar{background:var(--bg3);border-bottom:1px solid var(--border)}
.detail-info-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.info-cell{padding:1.25rem;border-right:1px solid var(--border);text-align:center}
.info-cell:last-child{border-right:none}
.info-label{font-size:.7rem;font-weight:700;letter-spacing:.1em;color:var(--accent);margin-bottom:.3rem;text-transform:uppercase}
.info-value{font-size:.9rem;font-weight:700}

.detail-section{padding:3rem 0}
.detail-section h2{font-size:1.4rem;font-weight:800;margin-bottom:1rem;color:var(--primary)}
.detail-photo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-top:1.25rem}
.detail-photo-grid img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:.5rem}

.step-item{display:flex;gap:1.25rem;margin-bottom:1.75rem}
.step-num{width:2.5rem;height:2.5rem;background:var(--primary);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.85rem;flex-shrink:0}
.step-content h3{font-weight:800;margin-bottom:.35rem}
.step-content p{font-weight:300;color:var(--text-muted);font-size:.9rem;line-height:1.75}

.summary-box{border-left:3px solid var(--primary);padding:1.25rem 1.5rem;background:var(--bg2);border-radius:0 .5rem .5rem 0;margin-top:1.5rem}
.summary-box ul{display:flex;flex-direction:column;gap:.5rem}
.summary-box li{font-size:.9rem;font-weight:400;color:var(--text-muted)}
.summary-box li::before{content:'·';color:var(--primary);font-weight:900;margin-right:.5rem}

/* ─── CONTACT ─── */
.contact-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:2rem}
.contact-step{background:#fff;border:1px solid var(--border);border-radius:var(--card-radius);padding:2rem;text-align:center}
.contact-step .step-n{width:3rem;height:3rem;background:var(--primary);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1rem;margin:0 auto .75rem}
.contact-step h3{font-weight:800;margin-bottom:.5rem}
.contact-step p{font-size:.88rem;color:var(--text-muted);font-weight:300;line-height:1.75}
.contact-btns{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap;margin-top:2rem}
.contact-info-box{background:var(--bg3);border-radius:var(--card-radius);padding:1.75rem;margin-top:2.5rem}
.contact-info-box h3{font-weight:800;margin-bottom:1rem}
.contact-info-box ul{display:flex;flex-direction:column;gap:.6rem}
.contact-info-box li{font-size:.9rem;color:var(--text-muted);font-weight:300;padding-left:1rem;position:relative}
.contact-info-box li::before{content:'—';position:absolute;left:0;color:var(--primary);font-weight:700}

/* ─── NSEO 서브 히어로 ─── */
.sub-hero{position:relative;height:420px;overflow:hidden;display:flex;align-items:center}
.sub-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sub-hero-overlay{position:absolute;inset:0;background:rgba(26,17,9,.6)}
.sub-hero-content{position:relative;color:#fff;z-index:1}
.sub-hero-content .section-label{border-color:rgba(255,255,255,.5);color:#fff}
.sub-hero h1{font-size:clamp(1.5rem,4vw,2.5rem);font-weight:800;line-height:1.25;margin:1rem 0}
.sub-hero p{font-weight:300;opacity:.85;max-width:480px;line-height:1.85;margin-bottom:1.75rem}
.sub-hero-btns{display:flex;gap:.75rem;flex-wrap:wrap}

/* ─── NSEO CASE 섹션 ─── */
.case-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin-top:1.5rem}
.case-grid figure{position:relative}
.case-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:.5rem}
.case-grid figcaption{font-size:.8rem;color:var(--text-muted);font-weight:300;padding:.5rem .25rem;text-align:center}

/* ─── 관련 서비스 카드 ─── */
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.5rem}
.related-card{border:1px solid var(--border);border-radius:var(--card-radius);padding:1.5rem;transition:all .3s}
.related-card:not(.current):hover{border-color:var(--primary);box-shadow:0 4px 16px rgba(61,46,30,.1);transform:translateY(-2px)}
.related-card.current{background:var(--bg3);border-color:var(--primary)}
.related-label{font-size:.68rem;font-weight:700;letter-spacing:.12em;color:var(--accent);margin-bottom:.5rem;text-transform:uppercase}
.related-card h3{font-size:.92rem;font-weight:800;margin-bottom:.4rem}
.related-card p{font-size:.8rem;color:var(--text-muted);font-weight:300;line-height:1.65;margin-bottom:.75rem}
.related-card .now{font-size:.75rem;color:var(--accent);font-weight:700}
.related-card .go{font-size:.8rem;color:var(--primary);font-weight:600;transition:color .3s}

/* ─── SITEMAP ─── */
.sitemap-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.sitemap-group h2{font-size:1rem;font-weight:800;border-bottom:2px solid var(--primary);padding-bottom:.5rem;margin-bottom:.75rem}
.sitemap-group ul{display:flex;flex-direction:column;gap:.4rem}
.sitemap-group a{font-size:.88rem;color:var(--text-muted);transition:color .3s}
.sitemap-group a:hover{color:var(--primary)}

/* ─── 반응형 ─── */
@media(max-width:1024px){
  .service-grid{grid-template-columns:repeat(3,1fr)}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  .process-grid{grid-template-columns:repeat(2,1fr)}
  .related-grid{grid-template-columns:repeat(2,1fr)}
  .sitemap-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  :root{--section-py:3.5rem}
  .hero-inner{grid-template-columns:1fr}
  .hero-text{padding:2.5rem 0 0;max-width:100%;margin-left:0;order:1}
  .hero-slider{order:2;height:280px}
  .footer-inner{grid-template-columns:1fr}
  .detail-info-grid{grid-template-columns:repeat(2,1fr)}
  .contact-steps{grid-template-columns:1fr}
  .why-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .service-grid{grid-template-columns:repeat(2,1fr)}
  .gallery-grid{grid-template-columns:1fr}
  .process-grid{grid-template-columns:1fr}
  .related-grid{grid-template-columns:1fr}
  .sitemap-grid{grid-template-columns:1fr}
  .trust-badges{gap:1.5rem}
  .footer-nav{display:none}
}
