/* ═══ 구조·디자인 참고 출처 ═══
   참고 사이트: https://storeinterior.jibsarepair.com/
   정보구조(IA): Header/Nav → Hero(H1+2CTA+배경사진) → STATEMENT(태그라인+사진) → TRUST(사업자정보표)
     → INDEX(궁금한 점 찾기 10개 링크 그리드) → EXPERIENCE(시공사례 카드) → PROCESS(4단계)
     → GUIDE(정보 링크 2개) → EXPERTISE(원인별 4단 비교) → 브랜드·서비스 정의 섹션(G-6)
     → FAQ(아코디언) → CTA → Footer(사업자정보/퀵링크/카테고리링크/저작권/사이트맵)
   레이아웃: 1200px 컨테이너, 카드형 그리드(auto-fill), 라운드형 카드·버튼(모서리 둥긂), 넉넉한 섹션 여백
   타이포: Hero H1 큰 사이즈 굵게, 섹션 제목 중간 굵기, 좁은 자간
   폰트: 참고 사이트 실제 font-family는 개발자도구 Computed 탭 확인이 필요해 미확인 —
     G-1(c) 기본 폴백 적용: Paperlogy(제목) + Pretendard Variable(본문)
   컬러: 참고 사이트 컬러 미반영(G-2 규칙) — 문틀·원목 소재를 연상시키는 신규 파스텔 클레이톤 채택
   ═══════════════════════ */

@import url("https://cdn.jsdelivr.net/gh/webfontworld/paperlogy/paperlogy.css");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css");

:root {
  --primary: #b8734a;
  --primary-dark: #95592f;
  --primary-light: #f3e4d8;
  --bg: #fbf8f5;
  --card: #ffffff;
  --ink: #2b2521;
  --muted: #7a7168;
  --border: #e9ddd2;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(43, 37, 33, 0.08);
  --font-title: "Paperlogy", "Pretendard Variable", -apple-system, sans-serif;
  --font-body: "Pretendard Variable", -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: -0.01em;
}
h1, h2, h3, h4 { font-family: var(--font-title); margin: 0 0 12px; line-height: 1.35; letter-spacing: -0.02em; }
p { margin: 0 0 14px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head p { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,245,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--font-title); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand span { color: var(--primary); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.main-nav a:hover { color: var(--primary); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* Hero */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,37,33,0.55), rgba(43,37,33,0.72)); }
.hero-inner { position: relative; z-index: 1; color: #fff; max-width: 680px; }
.hero-inner .eyebrow { color: #f3d9c2; font-weight: 700; letter-spacing: 0.08em; font-size: 0.85rem; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 10px 0 16px; }
.hero p { color: #f2ece5; font-size: 1.05rem; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow); }

/* STATEMENT */
.statement { background: var(--card); }
.statement-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.statement-inner img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); }
.statement .tag { color: var(--primary); font-weight: 800; font-size: 1.3rem; margin-bottom: 10px; }

/* INDEX */
.index-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 14px; counter-reset: idx; }
.index-item { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; }
.index-item .num { counter-increment: idx; font-family: var(--font-title); font-weight: 800; color: var(--primary-light); -webkit-text-stroke: 1px var(--primary); font-size: 1.6rem; width: 34px; flex-shrink: 0; }
.index-item .thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.index-item .txt { font-weight: 700; font-size: 0.95rem; }

/* EXPERIENCE / case cards */
.case-card { overflow: hidden; padding: 0; }
.case-card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; height: auto; }
.case-card .body { padding: 16px 18px; }
.case-card .body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.case-card .meta { color: var(--muted); font-size: 0.82rem; }
.case-more { text-align: center; margin-top: 32px; }

/* PROCESS */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.process-step { text-align: center; }
.process-step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-weight: 800; margin: 0 auto 14px; }
.process-step h4 { font-size: 1rem; }
.process-step p { color: var(--muted); font-size: 0.88rem; }

/* GUIDE */
.guide-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.guide-link { display: block; padding: 24px; background: var(--primary-light); border-radius: var(--radius-md); }
.guide-link h4 { color: var(--primary-dark); }
.guide-link p { color: var(--muted); margin: 0; font-size: 0.9rem; }

/* EXPERTISE */
.expertise-col h4 { color: var(--primary-dark); font-size: 1rem; border-bottom: 2px solid var(--primary-light); padding-bottom: 10px; }
.expertise-col p { color: var(--muted); font-size: 0.88rem; }

/* Brand/service definition (G-6) */
.brand-def { background: var(--ink); color: #f2ece5; }
.brand-def .section-head p { color: #c9beb3; }
.brand-def h2 { color: #fff; }
.brand-def .lead { font-size: 1.15rem; color: #f3d9c2; font-weight: 700; }
.def-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; margin-top: 28px; }
.def-types .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); box-shadow: none; }
.def-types .card h3 { color: #f3d9c2; font-size: 1rem; }
.def-types .card p { color: #d8cfc6; font-size: 0.88rem; margin: 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 0; font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); color: var(--ink); }
.faq-q .icon { color: var(--primary); font-size: 1.2rem; transition: transform 0.2s; }
.faq-item.open .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; color: var(--muted); font-size: 0.92rem; }
.faq-item.open .faq-a { padding-bottom: 18px; }

/* Final CTA */
.final-cta { background: var(--primary-light); text-align: center; border-radius: var(--radius-lg); margin: 0 20px; padding: 56px 20px; }
.final-cta h2 { font-size: clamp(1.4rem,3vw,2rem); }

/* Footer */
.site-footer { background: #211c19; color: #cfc5ba; padding: 56px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-top h5 { color: #fff; font-size: 0.9rem; margin-bottom: 14px; }
.footer-top a { display: block; color: #b6ab9e; font-size: 0.88rem; padding: 4px 0; }
.footer-top a:hover { color: var(--primary-light); }
.footer-biz { font-size: 0.84rem; color: #a89d90; line-height: 1.9; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 20px 0; font-size: 0.78rem; color: #8a8074; }
.footer-bottom a { color: #8a8074; }
.footer-bottom a:hover { color: var(--primary-light); }

/* Floating CTA bar (mobile) */
.floating-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0,0,0,0.08); }
.floating-bar .row { display: flex; }
.floating-bar a { flex: 1; text-align: center; padding: 14px 0; font-weight: 700; font-size: 0.92rem; }
.floating-bar a.tel { background: var(--ink); color: #fff; }
.floating-bar a.sms { background: var(--primary); color: #fff; }

/* Detail / NSEO article */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.article-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.article-meta span { background: var(--primary-light); color: var(--primary-dark); font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.article-wrap h1 { font-size: clamp(1.6rem,4vw,2.1rem); }
.article-wrap h2 { font-size: 1.25rem; margin-top: 36px; }
.article-wrap h3 { font-size: 1.05rem; margin-top: 24px; }
.story-photo { margin: 22px 0; }
.story-photo img { width: 100%; height: auto; border-radius: var(--radius-md); }
.story-photo figcaption { font-size: 0.84rem; color: var(--muted); margin-top: 8px; }
.summary-list { background: var(--primary-light); border-radius: var(--radius-md); padding: 22px 26px; margin: 26px 0; }
.summary-list li { margin-bottom: 6px; }
.quote-box { border-left: 4px solid var(--primary); padding: 16px 20px; background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--ink); }
.quote-box .sig { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.related-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.article-wrap table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.92rem; }
.article-wrap th, .article-wrap td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article-wrap th { background: var(--primary-light); color: var(--primary-dark); }

/* Gallery caption grid (E-1) */
.caption-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; }
.caption-gallery figure { margin: 0; background: var(--card); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.caption-gallery img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.caption-gallery figcaption { padding: 12px 14px; font-size: 0.85rem; font-weight: 600; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .statement-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .floating-bar { display: block; }
  body { padding-bottom: 56px; }
}

/* 섹션 구분 / 제목 위계 */
.article-wrap > p, .article-wrap > ul { line-height: 1.85; }
.article-wrap > p { margin: 0 0 1.15em; }
.article-wrap h2 { margin: 64px 0 22px; padding: 34px 0 0; border-top: 1px solid var(--border); position: relative; font-size: 1.4rem; line-height: 1.4; }
.article-wrap h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; background: var(--primary); }
.article-wrap h3 { margin: 34px 0 12px; padding-left: 12px; border-left: 3px solid var(--primary-light); font-size: 1.1rem; line-height: 1.45; }
.article-wrap .story-photo { margin: 30px 0; }
.article-wrap .quote-box, .article-wrap .summary-list { margin: 34px 0; }

/* 관련 페이지 사진카드 */
.related-links.related-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--border); }
.rel-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.rel-img { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--primary-light); }
.rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel-title { padding: 14px 16px 4px; font-weight: 700; font-size: 0.95rem; line-height: 1.4; color: var(--ink); }
.rel-go { padding: 0 16px 16px; font-size: 0.82rem; font-weight: 600; color: var(--primary); }
@media (max-width: 640px) { .related-links.related-cards { grid-template-columns: 1fr 1fr; gap: 12px; } .article-wrap h2 { margin-top: 52px; font-size: 1.28rem; } }
