/* dtcbiz.co.kr 서비스 페이지 공용 스타일 — 색·글꼴·반경은 메인 index.html 변수와 동일 */
:root {
  --red: #c4000f; --red-light: #e5263e; --black: #1a1a1a; --white: #ffffff;
  --bg: #F2F3F7; --g1: #f8f8f8; --g3: #ddd; --g5: #666; --g7: #999;
  --radius: 14px; --ease: cubic-bezier(.25,.46,.45,.94);
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }
body { font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--white); color: var(--black); font-weight: 400; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 상단 바 */
.site-head { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.96); backdrop-filter: blur(16px); box-shadow: 0 1px 12px rgba(0,0,0,.06); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.logo-text { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--black); white-space: nowrap; }
.logo-text span { color: var(--red); }
.head-links { display: flex; gap: 28px; list-style: none; }
.head-links a { font-size: 14px; font-weight: 500; color: var(--g5); letter-spacing: -.01em; white-space: nowrap; transition: color .3s; }
.head-links a:hover, .head-links a[aria-current="page"] { color: var(--red); }

/* 빵가루 */
.crumbs { background: var(--bg); padding: 12px 0; font-size: 13px; color: var(--g5); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '>'; margin-right: 6px; color: var(--g7); }
.crumbs a:hover { color: var(--red); }

/* 상단 소개 */
.page-hero { position: relative; background: var(--black); color: #fff; padding: 72px 24px 64px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 40%, rgba(196,0,15,.12) 0%, transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(196,0,15,.06) 0%, transparent 50%); }
.page-hero .wrap { position: relative; }
.hero-tag { font-family: 'Anton', sans-serif; font-size: 13px; letter-spacing: .3em; color: var(--g7); margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 18px; }
.page-hero h1 em { font-style: normal; color: var(--red-light); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,.6); line-height: 1.9; max-width: 720px; margin-bottom: 32px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: var(--red); color: #fff; font-size: 15px; font-weight: 600; border-radius: 8px; transition: all .3s var(--ease); }
.btn-primary:hover { background: #a5000c; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,0,15,.3); }
.btn-outline { display: inline-flex; align-items: center; padding: 14px 32px; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 15px; font-weight: 600; border-radius: 8px; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.05); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* 섹션 */
.sec { padding: 72px 24px; }
.sec--gray { background: var(--bg); }
.sec-tag { font-family: 'Anton', sans-serif; font-size: 12px; letter-spacing: .25em; color: var(--red); font-weight: 400; margin-bottom: 12px; }
.sec h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.3; margin-bottom: 12px; letter-spacing: -.02em; }
.sec-line { width: 40px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 32px; }
.sec-sub { font-size: 15px; color: var(--g5); margin-bottom: 32px; line-height: 1.8; max-width: 760px; }
.sec p.note { font-size: 14px; color: var(--g5); margin-top: 20px; max-width: 760px; }

/* 작업 범위 카드 */
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scope-card { background: var(--white); border: 1px solid #eee; border-radius: var(--radius); padding: 22px 20px; }
.scope-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.scope-card p { font-size: 13px; color: var(--g5); line-height: 1.7; }

/* 가격 카드 (메인 견적 안내와 같은 모양) */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { background: var(--white); border-radius: var(--radius); padding: 30px 26px; border: 1px solid #eee; display: flex; flex-direction: column; }
.price-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.price-amount { font-size: 24px; font-weight: 800; color: var(--red); margin-bottom: 4px; }
.price-period { font-size: 13px; color: var(--g7); margin-bottom: 18px; }
.price-list { list-style: none; flex: 1; }
.price-list li { font-size: 13px; color: var(--g5); padding: 8px 0; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; gap: 8px; }
.price-list li::before { content: '✓'; color: var(--red); font-weight: 700; font-size: 12px; }

/* 납기 표 */
.tbl-wrap { overflow-x: auto; border: 1px solid #eee; border-radius: var(--radius); background: var(--white); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.tbl th { background: var(--g1); font-size: 12px; color: var(--g5); font-weight: 600; letter-spacing: .02em; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:last-child { color: var(--red); font-weight: 600; }
.tbl td.ask { color: var(--g5); font-weight: 400; }

/* 진행 순서 */
.flow-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.flow-step { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid #eee; border-radius: 40px; padding: 10px 20px 10px 12px; }
.flow-num { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow-label { font-size: 14px; font-weight: 600; }
.flow-arrow { color: var(--g7); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { background: var(--white); border: 1px solid #eee; border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-size: 15px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 20px 18px; font-size: 14px; color: var(--g5); line-height: 1.8; }

/* 지역 */
.area-box { background: var(--white); border: 1px solid #eee; border-radius: var(--radius); padding: 24px; max-width: 860px; }
.area-box dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 20px; font-size: 14px; }
.area-box dt { font-weight: 700; color: var(--black); }
.area-box dd { color: var(--g5); }
.area-box p { font-size: 13px; color: var(--g5); margin-top: 16px; }
.area-box a, .sec p a, .linkline a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

/* 포트폴리오 빈 자리 */
.pf-empty { background: var(--white); border: 1px dashed var(--g3); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--g5); font-size: 14px; }

/* 포트폴리오 갤러리(/home-portfolio.js) 보조 */
.pf-links { text-align: center; font-size: 14px; margin-top: 12px; }
.pf-links a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.pfh-root > .pf-empty { display: none; }
.wrap:has(.pfh-grid) .pf-static, .wrap:has(.pfh-grid) > .pf-empty { display: none; }

/* 자체 개발 서비스 */
.own-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.own-card { background: var(--white); border: 1px solid #eee; border-radius: var(--radius); padding: 22px 20px; }
.own-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.own-card p { font-size: 13px; color: var(--g5); }
.own-card a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.status { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--g5); background: var(--bg); border-radius: 20px; padding: 3px 10px; }

/* 문의 */
.contact-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; max-width: 760px; }
.ci-item label { font-family: 'Anton', sans-serif; font-size: 11px; letter-spacing: .2em; color: var(--g7); display: block; margin-bottom: 6px; }
.ci-item p { font-size: 15px; font-weight: 500; }
.ci-item a { color: var(--red); }

/* 푸터 (메인과 동일) */
footer { background: var(--black); color: var(--g7); padding: 48px 24px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer p { font-size: 12px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; transition: color .3s; }
.footer-links a:hover { color: var(--red); }

@media (max-width: 900px) {
  .scope-grid, .price-grid, .own-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .site-head .wrap { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .site-head nav { width: 100%; min-width: 0; }
  .head-links { gap: 18px; overflow-x: auto; width: 100%; max-width: 100%; padding: 8px 0 10px; -webkit-overflow-scrolling: touch; }
  .head-links li { flex: none; }
  .page-hero { padding: 48px 24px 44px; }
  .sec { padding: 48px 24px; }
  .contact-info { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .area-box dl { grid-template-columns: 1fr; gap: 2px; }
  .area-box dd { margin-bottom: 10px; }
}
@media (max-width: 560px) {
  .scope-grid, .price-grid, .own-grid { grid-template-columns: 1fr; }
  .flow-arrow { display: none; }
}
