/* 홈픽스브라더 - 테마C(신뢰형 인덱스구조) / Hero: hero-statement(고정) / 패턴6 / grid-3 / label-number / btn-square / 스틸블루 #A0C4D8 */

@import url("https://cdn.jsdelivr.net/gh/webfontworld/paperlogy/paperlogy.css");

:root {
  --primary: #A0C4D8;
  --primary-dark: #3E7A98;
  --text: #23282B;
  --text-muted: #69737A;
  --bg: #FBFCFD;
  --border: #E2E7EA;
  --card-radius: 1.25rem;
  --btn-radius: .5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  line-height: 1.6;
  counter-reset: sec;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { line-height: 1.35; margin: 0; font-family: "Paperlogy", "Pretendard Variable", sans-serif; font-weight: 700; }
section { padding: 5rem 0; }

/* 숫자라인형 섹션 레이블 (label-number) */
.section-label {
  counter-increment: sec;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.section-label::before {
  content: counter(sec, decimal-leading-zero);
  font-family: "Paperlogy", sans-serif;
  font-size: .82rem;
}
.section-label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--primary-dark);
}
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head .section-label { justify-content: center; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head p { color: var(--text-muted); margin-top: .8rem; }

/* 버튼 (btn-square) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.8rem;
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-primary:hover { background: #2E5F78; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary-dark); color: var(--primary-dark); }

/* Header */
.site-header { position: sticky; top: 0; background: rgba(251,252,253,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 1.15rem; font-family: "Paperlogy", sans-serif; }
.logo span { color: var(--primary-dark); }
.main-nav { display: flex; gap: 1.8rem; font-weight: 600; font-size: .92rem; }
.main-nav a:hover { color: var(--primary-dark); }
.header-cta { padding: .6rem 1.3rem; font-size: .88rem; }
@media (max-width: 768px) { .main-nav { display: none; } }

/* Hero: 선언문형 (hero-statement) */
.hero-statement { padding: 5rem 0 4rem; border-bottom: 1px solid var(--border); }
.hero-statement .crumb { color: var(--text-muted); font-size: .82rem; margin-bottom: 1.2rem; display: block; }
.hero-statement .crumb a:hover { color: var(--primary-dark); }
.hero-statement h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.hero-statement .sub { color: var(--primary-dark); font-weight: 700; font-size: 1.05rem; margin: 1rem 0; }
.hero-statement .lead { color: var(--text-muted); max-width: 640px; font-size: 1.02rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.tag-list span { border: 1px solid var(--border); border-radius: var(--btn-radius); padding: .45rem 1rem; font-size: .82rem; color: var(--text-muted); background: #fff; }

/* 서비스 */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; background: #fff; }
.service-card img { aspect-ratio: 4/3; object-fit: cover; }
.service-card-body { padding: 1.5rem; }
.service-card-body h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.service-card-body p { color: var(--text-muted); font-size: .92rem; }
@media (max-width: 860px) { .service-grid { grid-template-columns: 1fr; } }

/* 중간 배너 */
.mid-banner {
  margin-top: 3rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 55%, white), color-mix(in srgb, var(--primary) 20%, white));
  border-radius: var(--card-radius);
  padding: 2.2rem 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem;
}
.mid-banner h3 { font-size: 1.25rem; }
.mid-banner p { color: var(--text); opacity: .8; margin-top: .4rem; }

/* 포트폴리오 (grid-3) */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .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 .3s; cursor: pointer; text-decoration: none; display: block;
  background: #fff;
}
.portfolio-card img { aspect-ratio: 4/3; object-fit: cover; }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.1); border-color: var(--primary-dark); }
.portfolio-card-body { padding: 1.3rem 1.4rem; }
.portfolio-badge { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--primary-dark); background: color-mix(in srgb, var(--primary) 30%, white); padding: .2rem .7rem; border-radius: var(--btn-radius); margin-bottom: .6rem; }
.portfolio-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.portfolio-card .loc { color: var(--text-muted); font-size: .85rem; }
.portfolio-more { text-align: center; margin-top: 2.2rem; }

/* 프로세스 */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.process-step { text-align: center; padding: 1.5rem 1rem; }
.process-step .num { width: 44px; height: 44px; border-radius: var(--btn-radius); background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 1rem; }
.process-step h3 { font-size: 1rem; margin-bottom: .5rem; }
.process-step p { color: var(--text-muted); font-size: .85rem; }
@media (max-width: 860px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }

/* STATEMENT 섹션 */
.statement-section { background: color-mix(in srgb, var(--primary) 10%, white); }
.statement-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.statement-wrap img { border-radius: var(--card-radius); aspect-ratio: 4/3; object-fit: cover; }
.statement-wrap .img-caption { margin-top: .6rem; font-size: .82rem; color: var(--text-muted); }
.statement-text p { font-size: 1.4rem; font-weight: 700; line-height: 1.6; white-space: pre-line; font-family: "Paperlogy", sans-serif; }
.statement-text .signer { margin-top: 1.5rem; color: var(--text-muted); font-size: .92rem; font-weight: 600; }
@media (max-width: 860px) { .statement-wrap { grid-template-columns: 1fr; } }

/* TRUST 섹션 */
.trust-table { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border); }
.trust-table dl { display: grid; grid-template-columns: 140px 1fr; padding: 1.1rem 0; border-bottom: 1px solid var(--border); margin: 0; gap: .5rem; }
.trust-table dt { color: var(--text-muted); font-size: .88rem; font-weight: 700; }
.trust-table dd { margin: 0; font-size: .95rem; }
@media (max-width: 640px) { .trust-table dl { grid-template-columns: 1fr; } }

/* INDEX 섹션 */
.index-list { display: grid; gap: 1rem; max-width: 820px; margin: 0 auto; }
.index-item { display: flex; align-items: center; gap: 1.4rem; border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1rem; background: #fff; }
.index-item:hover { border-color: var(--primary-dark); }
.index-item img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--btn-radius); flex-shrink: 0; }
.index-item .num { font-family: "Paperlogy", sans-serif; font-weight: 800; color: var(--primary-dark); font-size: 1.1rem; width: 2ch; }
.index-item .index-label { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--primary-dark); background: color-mix(in srgb, var(--primary) 30%, white); padding: .15rem .6rem; border-radius: var(--btn-radius); margin-bottom: .3rem; }
.index-item h3 { font-size: 1rem; }
.index-item .arrow { margin-left: auto; color: var(--text-muted); }

/* 회사소개 */
.company-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.company-wrap img { border-radius: var(--card-radius); aspect-ratio: 4/3; object-fit: cover; }
.company-facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.company-facts li { display: flex; gap: .6rem; font-size: .93rem; }
.company-facts b { color: var(--primary-dark); }
@media (max-width: 860px) { .company-wrap { grid-template-columns: 1fr; } }

/* EXPERTISE 섹션 */
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.expertise-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.6rem 1.4rem; background: #fff; }
.expertise-card h3 { font-size: 1rem; margin-bottom: .7rem; }
.expertise-card ul { margin: 0; padding-left: 1.1rem; color: var(--text-muted); font-size: .87rem; }
.expertise-card li { margin-bottom: .4rem; }
@media (max-width: 960px) { .expertise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .expertise-grid { grid-template-columns: 1fr; } }

/* 고객후기 */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.6rem; }
.review-card .stars { color: #F2B84B; margin-bottom: .7rem; }
.review-card p { font-size: .92rem; }
.review-card .who { margin-top: 1rem; font-size: .82rem; color: var(--text-muted); }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }

/* GUIDE 섹션 */
.guide-links { text-align: center; color: var(--text-muted); font-size: .95rem; max-width: 720px; margin: 0 auto; }
.guide-links a { color: var(--primary-dark); font-weight: 700; }
.guide-links a:hover { text-decoration: underline; }

/* 서비스지역 */
.area-list { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.area-list span { border: 1px solid var(--border); border-radius: var(--btn-radius); padding: .5rem 1.1rem; font-size: .88rem; background: #fff; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--btn-radius); padding: 1.2rem 1.4rem; background: #fff; }
.faq-item summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--primary-dark); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: .8rem; color: var(--text-muted); font-size: .92rem; }

/* CTA (미니멀) */
.cta-section-wrap { padding: 2rem 0 6rem; }
.cta-section { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-section .section-label { justify-content: center; }
.cta-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-style: italic; }
.cta-section p { color: var(--text-muted); margin-top: 1rem; }
.cta-actions { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }

/* Footer */
.site-footer { background: #1B2830; color: #C7D2D8; margin-top: 0; padding-top: 3.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer .logo { color: #fff; }
.footer-desc { font-size: .88rem; margin-top: .8rem; color: #8A9AA2; }
.footer-col h4 { color: #fff; font-size: .85rem; margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; font-size: .88rem; margin-bottom: .6rem; color: #C7D2D8; }
.footer-tel { font-size: 1.2rem !important; font-weight: 800; color: #fff !important; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0 2rem; font-size: .78rem; color: #728088; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }

/* Floating (테마 C: consultation 우회) */
.floating-bar { position: fixed; right: 1.2rem; bottom: 1.2rem; display: flex; flex-direction: column; gap: .6rem; z-index: 60; }
.floating-btn { display: flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem; border-radius: var(--btn-radius); font-weight: 700; font-size: .85rem; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.floating-call { background: var(--primary-dark); color: #fff; }
.floating-sms { background: #fff; color: var(--text); border: 1px solid var(--border); }

/* 갤러리 (E-1) */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-grid figure { margin: 0; border-radius: var(--card-radius); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; }
.gallery-grid figcaption { padding: .8rem 1rem; font-size: .85rem; color: var(--text-muted); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* 상세 Hero */
.detail-hero { position: relative; padding: 6rem 0 3.5rem; color: #fff; background-size: cover; background-position: center; }
.detail-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.detail-hero .container { position: relative; }
.detail-hero .back-link { color: #E6F0F5; font-size: .85rem; }
.detail-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-top: 1rem; }
.detail-hero .loc { margin-top: .6rem; color: #E6F0F5; }

.info-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--border); }
.info-bar div b { display: block; font-size: .78rem; color: var(--text-muted); margin-bottom: .3rem; }
@media (max-width: 640px) { .info-bar { grid-template-columns: repeat(2, 1fr); } }

/* 블로그형 본문 */
.story-body { max-width: 720px; margin: 0 auto; font-size: 1rem; line-height: 1.9; }
.story-body h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; }
.story-body h3 { font-size: 1.15rem; margin: 2rem 0 .8rem; color: var(--primary-dark); }
.story-body p { margin-bottom: 1.5rem; }
.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(160, 196, 216, 0.45);
  padding: 0.05em 0.3em;
  border-radius: 2px;
  font-weight: 600;
}
.story-quote {
  border-left: 3px solid var(--primary-dark);
  padding: 1rem 1.5rem;
  margin: 2.5rem auto;
  max-width: 720px;
  font-size: 1.05rem;
  font-style: italic;
  background: color-mix(in srgb, var(--primary) 12%, white);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
}
.story-quote .signature { display: block; margin-top: .75rem; font-size: .85rem; font-style: normal; color: var(--text-muted); text-align: right; }

.summary-box { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.8rem 2rem; }
.summary-box h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.summary-box ul { margin: 0; padding-left: 1.2rem; color: var(--text-muted); }
.summary-box li { margin-bottom: .5rem; }

.compare-table { max-width: 720px; margin: 0 auto 2.5rem; width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: .9rem 1.1rem; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--border); }
.compare-table th { background: var(--primary); color: #fff; font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }

.related-links { max-width: 720px; margin: 2.5rem auto 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.related-links a { border: 1px solid var(--border); border-radius: var(--btn-radius); padding: .6rem 1.2rem; font-size: .85rem; background: #fff; }

/* NSEO 페이지 */
.nseo-hero { padding: 4.5rem 0 3rem; text-align: center; }
.nseo-hero .eyebrow { color: var(--primary-dark); font-weight: 700; font-size: .9rem; }
.nseo-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: .8rem 0; }
.nseo-hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto; }
.related-page-list { display: grid; gap: .8rem; max-width: 640px; margin: 0 auto; }
.related-page-list a { border: 1px solid var(--border); border-radius: var(--btn-radius); padding: 1rem 1.4rem; background: #fff; display: flex; justify-content: space-between; }
.related-page-list a:hover { border-color: var(--primary-dark); }
