/* 테마C 세이지 #B4C7B0 — Paperlogy+Pretendard — btn-pill — radius 1.25rem */
@import url('https://cdn.jsdelivr.net/gh/webfontworld/paperlogy/paperlogy.css');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

:root {
  --primary: #B4C7B0;
  --primary-dark: #8FA98A;
  --primary-light: #D4E3D0;
  --primary-rgb: 180,199,176;
  --text: #1A1A1A;
  --text-muted: #5A6A56;
  --bg: #FAFAF8;
  --bg-alt: #F0F4EF;
  --bg-deep: #E6EEE4;
  --border: #D4E0D0;
  --card-radius: 1.25rem;
  --font-head: 'Paperlogy', 'Pretendard Variable', -apple-system, sans-serif;
  --font-body: 'Pretendard Variable', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); word-break: keep-all; line-height: 1.7; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.section-label {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 2rem; border-radius: 3rem; font-weight: 600; font-size: .95rem;
  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(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-sm { padding: .6rem 1.4rem; font-size: .85rem; }

/* ── Header ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,250,248,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--text); }
.logo span { color: var(--primary-dark); }
nav { display: flex; align-items: center; gap: 1.75rem; }
nav a { font-size: .9rem; font-weight: 500; color: var(--text-muted); transition: color .2s; }
nav a:hover { color: var(--primary-dark); }
.header-cta { padding: .55rem 1.4rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.mobile-nav { display: none; }

/* ── Hero Statement (Theme C) ── */
.hero-statement {
  padding: 9rem 0 5rem;
  background: var(--bg-alt);
}
.hero-statement .breadcrumb {
  font-size: .8rem; color: var(--text-muted); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .4rem;
}
.hero-statement .breadcrumb span { color: var(--primary-dark); font-weight: 600; }
.hero-statement h1 { margin-bottom: 1rem; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 500; }
.hero-desc { max-width: 640px; color: var(--text-muted); line-height: 1.9; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-tag {
  font-size: .8rem; padding: .3rem .9rem; border: 1px solid var(--border);
  border-radius: 2rem; color: var(--text-muted); background: #fff;
}

/* ── Portfolio Grid ── */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.portfolio-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;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.12); border-color: var(--primary); }
.portfolio-card .card-img { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.portfolio-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.portfolio-card:hover .card-img img { transform: scale(1.05); }
.portfolio-card .card-badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700;
  padding: .25rem .65rem; border-radius: 2rem;
}
.portfolio-card .card-body { padding: 1.2rem; }
.portfolio-card .card-loc { font-size: .8rem; color: var(--text-muted); margin-bottom: .35rem; }
.portfolio-card .card-title { font-size: 1rem; font-weight: 700; line-height: 1.5; }
.portfolio-card .card-meta { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; }

/* ── Middle Banner ── */
.mid-banner {
  background: var(--primary);
  padding: 3rem 0;
  text-align: center;
}
.mid-banner h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); color: #fff; margin-bottom: .75rem; }
.mid-banner p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }
.btn-white { background: #fff; color: var(--primary-dark); border-color: #fff; }
.btn-white:hover { background: var(--bg-alt); }

/* ── Services Section ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius);
  overflow: hidden;
}
.service-card .svc-img { aspect-ratio: 16/9; overflow: hidden; }
.service-card .svc-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card .svc-body { padding: 1.5rem; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.8; }

/* ── Gallery ── */
.gallery-section { background: var(--bg-alt); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.gallery-item { border-radius: var(--card-radius); overflow: hidden; }
.gallery-item figure { position: relative; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff; font-size: .82rem; font-weight: 600; padding: 1.5rem .8rem .8rem;
}

/* ── Process ── */
.process-section { background: var(--bg-deep); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.process-card { background: #fff; border-radius: var(--card-radius); padding: 2rem 1.5rem; position: relative; }
.process-card .step-num { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 1rem; }
.process-card h3 { margin-bottom: .5rem; }
.process-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.8; }
.process-card::after {
  content: '→'; position: absolute; right: -1rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; color: var(--primary);
}
.process-card:last-child::after { display: none; }

/* ── STATEMENT ── */
.statement-section { background: var(--text); color: #fff; padding: 6rem 0; }
.statement-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.statement-text h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.4; margin-bottom: 1.5rem; color: #fff; }
.statement-text p { color: rgba(255,255,255,.7); line-height: 1.9; }
.statement-img { border-radius: var(--card-radius); overflow: hidden; }
.statement-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── TRUST ── */
.trust-section { background: var(--bg-alt); }
.trust-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.trust-table th, .trust-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); text-align: left; }
.trust-table th { width: 160px; font-weight: 600; color: var(--text-muted); font-size: .9rem; background: var(--bg-deep); }
.trust-table td { font-size: .95rem; }

/* ── INDEX (NSEO list) ── */
.index-section {}
.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.index-card {
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid var(--border); border-radius: var(--card-radius);
  padding: 1.25rem; background: #fff; transition: all .25s; text-decoration: none;
}
.index-card:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(var(--primary-rgb),.25); }
.index-card .ic-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); flex-shrink: 0; width: 2.5rem; }
.index-card .ic-body .ic-label { font-size: .72rem; color: var(--text-muted); margin-bottom: .2rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.index-card .ic-body .ic-title { font-size: .95rem; font-weight: 700; }
.index-card .ic-thumb { margin-left: auto; width: 56px; height: 56px; border-radius: .75rem; overflow: hidden; flex-shrink: 0; }
.index-card .ic-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── About / Company ── */
.about-section {}
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--text-muted); line-height: 1.9; margin-bottom: 1rem; }
.about-facts { display: flex; flex-direction: column; gap: 1rem; }
.fact-item { display: flex; gap: 1rem; align-items: flex-start; }
.fact-icon { width: 2.5rem; height: 2.5rem; background: var(--primary-light); border-radius: .75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fact-icon svg { width: 1.25rem; height: 1.25rem; color: var(--primary-dark); }
.fact-text .ft-label { font-size: .8rem; color: var(--text-muted); }
.fact-text .ft-val { font-weight: 700; }

/* ── EXPERTISE ── */
.expertise-section { background: var(--bg-alt); }
.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.expertise-card { background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius); padding: 2rem; }
.expertise-card h3 { margin-bottom: 1rem; }
.expertise-card ul { display: flex; flex-direction: column; gap: .6rem; }
.expertise-card ul li { font-size: .9rem; color: var(--text-muted); display: flex; gap: .5rem; }
.expertise-card ul li::before { content: '✓'; color: var(--primary-dark); font-weight: 700; flex-shrink: 0; }

/* ── Reviews ── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.75rem; }
.review-stars { color: var(--primary-dark); font-size: 1rem; margin-bottom: .75rem; }
.review-text { font-size: .92rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.review-author { font-size: .82rem; font-weight: 700; color: var(--text); }
.review-date { font-size: .75rem; color: var(--text-muted); }

/* ── GUIDE ── */
.guide-section { background: var(--bg-alt); }
.guide-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2rem; }
.guide-link { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.5rem; background: #fff; display: flex; align-items: center; justify-content: space-between; transition: all .2s; }
.guide-link:hover { border-color: var(--primary); }
.guide-link span { font-size: .95rem; font-weight: 600; }
.guide-link .arrow { color: var(--primary-dark); font-size: 1.1rem; }

/* ── Service Areas ── */
.areas-section {}
.areas-grid { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.area-tag { padding: .5rem 1rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 2rem; font-size: .88rem; }

/* ── FAQ ── */
.faq-section { background: var(--bg-alt); }
.faq-list { margin-top: 2rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.5rem 0; font-size: 1rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  color: var(--text); font-family: var(--font-body);
}
.faq-q .icon { flex-shrink: 0; color: var(--primary-dark); font-size: 1.2rem; transition: transform .3s; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 1.5rem; color: var(--text-muted); line-height: 1.9; font-size: .95rem; }
.faq-item.open .faq-a { display: block; }

/* ── CTA ── */
.cta-section { background: var(--bg-deep); text-align: center; }
.cta-section h2 { margin-bottom: .75rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  background: var(--text); color: rgba(255,255,255,.75);
  padding: 4rem 0 2rem;
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .footer-logo { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.footer-brand p { font-size: .85rem; line-height: 1.8; }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a { font-size: .85rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { font-size: .8rem; line-height: 1.9; }

/* ── Floating ── */
.floating-btns {
  position: fixed; right: 1.25rem; bottom: 1.5rem; z-index: 900;
  display: flex; flex-direction: column; gap: .6rem;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: all .25s;
}
.float-btn:hover { background: var(--primary-dark); transform: scale(1.08); }
.float-btn svg { width: 22px; height: 22px; }
.float-label { font-size: .65rem; font-weight: 700; letter-spacing: .04em; }

/* ── Story (Detail) ── */
.story-body { max-width: 720px; margin: 0 auto; font-size: 1rem; line-height: 1.9; }
.story-body p { margin-bottom: 1.5rem; }
.story-body h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.story-body h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
.story-body figure { margin: 2rem 0; }
.story-body figure img { width: 100%; border-radius: var(--card-radius); }
.story-body figcaption { margin-top: .5rem; font-size: .85rem; color: var(--text-muted); text-align: center; }
.story-body mark {
  background: rgba(180,199,176,.35); padding: 0.05em 0.2em;
  border-radius: 2px; font-weight: 600;
}
.story-quote {
  border-left: 3px solid var(--primary); padding: 1rem 1.5rem;
  margin: 2rem 0; font-size: 1.05rem; font-style: italic;
  background: rgba(180,199,176,.1);
}
.story-quote .signature { display: block; margin-top: .75rem; font-size: .85rem; font-style: normal; color: var(--text-muted); text-align: right; }
.story-summary { background: var(--bg-alt); border-radius: var(--card-radius); padding: 2rem; margin: 2.5rem auto; max-width: 720px; }
.story-summary h3 { margin-bottom: 1rem; }
.story-summary ul { display: flex; flex-direction: column; gap: .6rem; }
.story-summary ul li { font-size: .92rem; color: var(--text-muted); display: flex; gap: .5rem; align-items: flex-start; }
.story-summary ul li::before { content: '✓'; color: var(--primary-dark); font-weight: 700; flex-shrink: 0; }

/* Detail hero */
.detail-hero {
  position: relative; height: 480px; display: flex; align-items: flex-end;
  padding: 0 0 3rem;
}
.detail-hero-bg { position: absolute; inset: 0; }
.detail-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.detail-hero-content { position: relative; z-index: 2; color: #fff; }
.detail-hero-content .back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; opacity: .85; margin-bottom: 1rem; }
.detail-hero-content h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: .5rem; }
.detail-hero-content p { opacity: .8; }

/* Info bar */
.info-bar { background: var(--bg-deep); padding: 2rem 0; }
.info-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.info-item .info-label { font-size: .78rem; color: var(--text-muted); margin-bottom: .25rem; font-weight: 600; }
.info-item .info-val { font-weight: 700; font-size: .95rem; }

/* Related cards */
.related-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 1.5rem; }

/* Breadcrumb */
.breadcrumb-nav { font-size: .82rem; color: var(--text-muted); padding: 1rem 0; display: flex; align-items: center; gap: .4rem; }
.breadcrumb-nav a:hover { color: var(--primary-dark); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .portfolio-grid, .services-grid, .reviews-grid { grid-template-columns: repeat(2,1fr); }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .process-card::after { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-inner, .statement-inner { grid-template-columns: 1fr; gap: 2rem; }
  .index-grid { grid-template-columns: repeat(2,1fr); }
  .guide-links { grid-template-columns: repeat(2,1fr); }
  .info-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .portfolio-grid, .services-grid, .gallery-grid, .expertise-grid, .reviews-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .index-grid { grid-template-columns: 1fr; }
  .guide-links { grid-template-columns: 1fr; }
  .related-cards { grid-template-columns: 1fr; }
  nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open { display: flex; flex-direction: column; gap: 0; background: #fff; border-top: 1px solid var(--border); position: fixed; top: 64px; left: 0; right: 0; z-index: 999; padding: 1rem 0; }
  .mobile-nav a { padding: 1rem 1.5rem; font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-statement { padding: 7rem 0 3rem; }
  .detail-hero { height: 360px; }
  .info-grid { grid-template-columns: repeat(2,1fr); }
  .areas-grid { }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .cta-btns { flex-direction: column; align-items: center; }
}

/* ── Related Section (pages 01-03) ── */
.related-section { background: var(--bg-alt); padding: 3rem 0; }
.related-title { margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.related-card { display: block; border-radius: var(--card-radius); overflow: hidden; background: #fff; border: 1px solid var(--border); text-decoration: none; color: inherit; transition: box-shadow .2s; }
.related-card:hover { box-shadow: var(--shadow-md); }
.related-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.related-card-body { padding: 1rem; }
.related-label { font-size: .8rem; font-weight: 600; color: var(--primary-dark); display: block; margin-bottom: .3rem; }
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }

/* ── Sitemap ── */
.sitemap-section {}
.sitemap-group { margin-bottom: 2.5rem; }
.sitemap-group h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary); }
.sitemap-group ul { display: flex; flex-direction: column; gap: .4rem; }
.sitemap-group ul li a { font-size: .9rem; color: var(--text-muted); transition: color .2s; }
.sitemap-group ul li a:hover { color: var(--primary-dark); }

/* ── Consultation ── */
.consult-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.consult-step { background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius); padding: 2rem; text-align: center; }
.consult-step .cs-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; margin: 0 auto 1rem; }
.consult-step h3 { margin-bottom: .5rem; }
.consult-step p { font-size: .88rem; color: var(--text-muted); }
@media (max-width: 768px) { .consult-steps { grid-template-columns: 1fr; } }
