/* 바스미디아 — 테마D(자격증명 상업형) / 소프트 웜 오프화이트 배경 + 브라스 포인트컬러 / Noto Serif KR 헤드라인 + Pretendard 본문 / radius 0.6rem / grid-3 / btn-pill */
:root {
  --primary: #C08A4E;
  --primary-light: #D9AA76;
  --primary-dark: #96683A;
  --bg: #FBF7F1;
  --surface: #FFFFFF;
  --text: #2B2620;
  --text-muted: #8A8073;
  --border: #EAE2D3;
  --card-radius: 0.6rem;
  --primary-rgb: 192, 138, 78;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  word-break: keep-all;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-family: "Noto Serif KR", serif; font-weight: 800; }
p { margin: 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } .container { padding: 0 20px; } }

.section-label { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--primary-dark); letter-spacing: 0.03em; margin-bottom: 14px; display: block; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: 2rem; }
.section-head .sub { margin-top: 10px; color: var(--text-muted); font-size: 1rem; font-family: "Pretendard Variable", Pretendard, sans-serif; }
@media (max-width: 640px) { .section-head h2 { font-size: 1.5rem; } }

/* 버튼 — btn-pill */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; transition: all .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: 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(251,247,241,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo .kr { font-family: "Noto Serif KR", serif; font-weight: 800; font-size: 1.2rem; }
.logo .en { font-size: 0.65rem; letter-spacing: 0.12em; color: var(--text-muted); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 0.92rem; font-weight: 600; color: var(--text-muted); }
.main-nav a:hover { color: var(--primary-dark); }
.header-call { display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px) { .main-nav { display: none; } }

/* Hero (테마D) — 사진 위 오버레이는 항상 어둡게 유지(가독성) */
.hero-d { position: relative; color: #fff; padding: 150px 0 90px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-d .overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,26,20,.78) 0%, rgba(30,26,20,.55) 45%, rgba(30,26,20,.2) 100%); }
.hero-d .inner { position: relative; z-index: 2; }
.hero-label { font-family: "Pretendard Variable", Pretendard, sans-serif; display: inline-block; font-size: 0.85rem; font-weight: 700; padding: 6px 14px; border: 1px solid rgba(217,170,118,.6); color: var(--primary-light); border-radius: 999px; margin-bottom: 20px; }
.hero-tagline { font-size: 0.95rem; letter-spacing: 0.06em; color: rgba(255,255,255,.8); margin-bottom: 16px; font-style: italic; font-family: "Noto Serif KR", serif; }
.hero-d h1 { font-size: 2.7rem; margin-bottom: 10px; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.92); margin-bottom: 18px; font-family: "Noto Serif KR", serif; font-weight: 700; }
.hero-desc { max-width: 620px; color: rgba(255,255,255,.8); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-scope { font-size: 0.85rem; color: rgba(255,255,255,.65); border-top: 1px solid rgba(255,255,255,.2); padding-top: 20px; }
@media (max-width: 640px) { .hero-d h1 { font-size: 1.9rem; } .hero-d { padding: 120px 0 60px; } }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 32px 28px; }
.why-card .num { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 0.85rem; color: var(--primary-dark); font-weight: 800; }
.why-card h3 { font-size: 1.2rem; margin: 10px 0 4px; }
.why-card .title-en { display: block; font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.why-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Grid — grid-3 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

/* Sector cards */
.sector-card { position: relative; border-radius: var(--card-radius); overflow: hidden; display: block; aspect-ratio: 4/3; }
.sector-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sector-card:hover img { transform: scale(1.05); }
.sector-card .badge { font-family: "Pretendard Variable", Pretendard, sans-serif; position: absolute; top: 14px; left: 14px; background: var(--primary); color: #fff; padding: .3rem .7rem; font-size: .72rem; font-weight: 700; border-radius: 999px; }
.sector-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent); color: #fff; }
.sector-card .info h3 { font-size: 1.05rem; font-weight: 700; }
.sector-card .title-en { display: block; font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: .78rem; font-style: italic; color: rgba(255,255,255,.85); margin-top: 2px; }

/* Portfolio */
.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 .3s; cursor: pointer; text-decoration: none; display: block; background: var(--surface); }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(43,38,32,.16); border-color: var(--primary); }
.portfolio-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card .body { padding: 18px 20px; }
.portfolio-card .cat { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: .78rem; color: var(--primary-dark); font-weight: 700; }
.portfolio-card h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.portfolio-card .loc { font-size: .85rem; color: var(--text-muted); }

/* Process */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .process-list { grid-template-columns: 1fr; } }
.process-step { padding: 26px 22px; border: 1px solid var(--border); border-radius: var(--card-radius); background: var(--surface); }
.process-step .num { font-family: "Noto Serif KR", serif; font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }
.process-step h3 { font-size: 1.1rem; margin: 8px 0 2px; }
.process-step .title-en { display: block; font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.process-step p { font-size: .9rem; color: var(--text-muted); }

/* Credentials */
.credential-card { border: 1px solid var(--border); border-radius: var(--card-radius); padding: 28px 26px; background: var(--surface); }
.credential-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.credential-card p { font-size: .92rem; color: var(--text-muted); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
figure.gallery-item { margin: 0; border-radius: var(--card-radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
figure.gallery-item img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
figure.gallery-item figcaption { padding: 10px 12px; font-size: .82rem; color: var(--text-muted); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { padding: 20px 4px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary-dark); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .a { padding: 0 4px 20px; color: var(--text-muted); font-size: .95rem; }

/* CTA — 부드러운 페이지 톤 안에서 그라운딩 역할을 하는 다크 밴드 */
.cta-section { background: var(--text); color: var(--bg); border-radius: 0; text-align: center; }
.cta-section .section-label { color: var(--primary-light); }
.cta-section h2 { font-size: 1.9rem; margin-bottom: 14px; color: var(--bg); }
.cta-section p { color: rgba(251,247,241,.7); margin-bottom: 30px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.cta-hours { font-size: .85rem; color: rgba(251,247,241,.55); }
.cta-section .btn-outline { border-color: rgba(251,247,241,.3); color: var(--bg); }
.cta-section .btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* Footer — 다크 밴드로 페이지 하단을 정리 */
.site-footer { background: #201B14; color: rgba(251,247,241,.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h4 { font-family: "Pretendard Variable", Pretendard, sans-serif; color: var(--primary-light); font-size: .9rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.footer-brand .kr { font-family: "Noto Serif KR", serif; color: #fff; font-weight: 800; font-size: 1.15rem; }
.footer-brand .en { font-size: .75rem; letter-spacing: .1em; color: rgba(251,247,241,.45); }
.footer-brand p { margin-top: 12px; font-size: .88rem; color: rgba(251,247,241,.55); }
.footer-biz { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: .78rem; color: rgba(251,247,241,.4); line-height: 1.8; }
.footer-biz a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 2px; }
.footer-biz a:hover { color: var(--primary); }

/* Floating */
.floating-btns { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.floating-btns a { width: 54px; height: 54px; border-radius: 999px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(43,38,32,.22); }
.floating-btns .fb-call { background: var(--primary); color: #fff; }
.floating-btns .fb-sms { background: var(--surface); color: var(--text); border: 1px solid var(--border); }

/* 상세페이지: 히어로 */
.detail-hero { position: relative; color: #fff; padding: 130px 0 60px; background-size: cover; background-position: center; }
.detail-hero .overlay { position: absolute; inset: 0; background: rgba(30,26,20,.55); }
.detail-hero .inner { position: relative; z-index: 2; }
.detail-hero .back-link { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: .85rem; color: rgba(255,255,255,.8); margin-bottom: 16px; display: inline-block; }
.detail-hero .back-link:hover { color: var(--primary-light); }
.detail-hero h1 { font-size: 2.1rem; }
.detail-hero .loc { margin-top: 8px; color: rgba(255,255,255,.85); font-family: "Pretendard Variable", Pretendard, sans-serif; }

.info-bar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; margin-top: -40px; position: relative; z-index: 3; background: var(--surface); }
@media (max-width: 640px) { .info-bar { grid-template-columns: repeat(2, 1fr); } }
.info-bar .cell { padding: 20px; border-right: 1px solid var(--border); }
.info-bar .cell:last-child { border-right: none; }
.info-bar .cell .k { font-size: .78rem; color: var(--text-muted); margin-bottom: 4px; }
.info-bar .cell .v { font-weight: 700; font-size: .95rem; }

/* 블로그형 스토리 */
.story-body { max-width: 720px; margin: 60px auto 0; font-size: 1rem; line-height: 1.9; }
.story-body p { margin-bottom: 1.5rem; }
.story-body h2 { font-size: 1.5rem; margin: 2.4rem 0 1rem; }
.story-body h3 { font-size: 1.2rem; margin: 2rem 0 .8rem; }
.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(var(--primary-rgb), 0.3); color: var(--text); padding: 0.05em 0.2em; border-radius: 2px; font-weight: 700; }

.story-quote { max-width: 720px; margin: 2rem auto; border-left: 3px solid var(--primary); padding: 1rem 1.5rem; font-size: 1.05rem; font-style: italic; font-family: "Noto Serif KR", serif; background: rgba(var(--primary-rgb), 0.08); }
.story-quote .signature { display: block; margin-top: .75rem; font-size: .85rem; font-style: normal; font-family: "Pretendard Variable", Pretendard, sans-serif; color: var(--text-muted); text-align: right; }

.summary-box { max-width: 720px; margin: 2.5rem auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 28px 32px; }
.summary-box h3 { margin-bottom: 14px; font-size: 1.05rem; }
.summary-box ul { margin: 0; padding-left: 1.2rem; color: var(--text-muted); }
.summary-box li { margin-bottom: 8px; }

.related-cases { max-width: 720px; margin: 2.5rem auto 0; display: flex; gap: 14px; flex-wrap: wrap; }
.related-cases a { flex: 1 1 200px; border: 1px solid var(--border); border-radius: var(--card-radius); padding: 16px 18px; font-size: .9rem; font-weight: 600; }
.related-cases a:hover { border-color: var(--primary); color: var(--primary-dark); }

/* 세부페이지 공통: 비교표 / 체크리스트 */
.compare-table { width: 100%; max-width: 720px; margin: 0 auto 2rem; border-collapse: collapse; font-size: .92rem; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; }
.compare-table th { background: var(--surface); font-weight: 700; }
.compare-table td.hl { background: rgba(var(--primary-rgb), .08); font-weight: 600; }

.checklist { max-width: 720px; margin: 0 auto 2rem; list-style: none; padding: 0; }
.checklist li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.checklist li::before { content: "\2713"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .75rem; display: flex; align-items: center; justify-content: center; }

.stat-row { display: flex; gap: 28px; flex-wrap: wrap; max-width: 720px; margin: 0 auto 2rem; }
.stat-row .stat { flex: 1 1 140px; }
.stat-row .stat .v { font-family: "Noto Serif KR", serif; font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }
.stat-row .stat .l { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }

/* NSEO 페이지 */
.nseo-hero { padding: 150px 0 60px; background: linear-gradient(180deg, #F1E7D6, var(--bg)); }
.nseo-hero h1 { font-size: 2.2rem; }
.nseo-hero .sub { margin-top: 12px; font-size: 1.05rem; color: var(--text-muted); max-width: 640px; font-family: "Pretendard Variable", Pretendard, sans-serif; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a { padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; font-weight: 600; }
.related-links a:hover { border-color: var(--primary); color: var(--primary-dark); }
