:root {
  --font-body: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --font-kr: "Noto Sans KR", "Pretendard Variable", Pretendard, sans-serif;
  --ink: #191E27;
  --desc: #525968;
  --muted: #8D93A1;
  --line: #E6E9EF;
  --bg: #ffffff;
  --bg-soft: #F2F4F9;
  --footer-bg: #13223D;
  --header-bg: rgba(255, 255, 255, 0.92);
  --max: 1040px;
  --title-display: 700 clamp(38px, 4.8vw, 50px)/1.08 var(--font-body);
  --mid-bold: 700 clamp(25px, 2.1vw, 31px)/1.25 var(--font-body);
  --mid-regular: 400 clamp(19px, 1.7vw, 23px)/1.4 var(--font-body);
  --foot-info: 500 clamp(17px, 1.4vw, 20px)/1.6 var(--font-kr);
  --body-4: 400 14.5px/1.7 var(--font-body);
  --accent: #2C5AA0;
  --accent-hover: #1F4278;
  --accent-warm: #D98A4E;
  --radius: 10px;
  --hdr-tel-bg: var(--accent);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font: var(--mid-regular); letter-spacing: -0.02em; color: var(--ink); background: var(--bg); word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ── 헤더 ── */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(20,30,28,0.02); }
.hdr-inner { display: flex; align-items: flex-end; justify-content: space-between; height: 64px; padding-bottom: 10px; }
.header-logo { text-decoration: none; color: inherit; }
.logo-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.logo-company { font: 500 12px/1.3 var(--font-kr); color: var(--muted); letter-spacing: -0.01em; }
.logo-keyword { font: 700 28px/1 var(--font-body); color: var(--ink); letter-spacing: -0.02em; }
nav { display: flex; gap: 30px; }
nav a { font: 700 17px/1.25 var(--font-body); color: var(--desc); }
nav a:hover { color: var(--accent); }
.hdr-right { display: flex; align-items: flex-end; gap: 24px; }
.hdr-tel { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.25 var(--font-body); color: #fff; background: var(--hdr-tel-bg); padding: 10px 22px; border-radius: var(--radius); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.hdr-tel svg { width: 16px; height: 16px; flex-shrink: 0; }
.hdr-tel:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(44,90,160,0.4); }

/* ── 히어로 (메인) ── */
.hero { position: relative; min-height: 90vh; display: flex; align-items: flex-end; padding: 120px 0 80px; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; animation: heatdrift 24s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,32,0.18) 0%, rgba(11,17,28,0.78) 100%); }
@keyframes heatdrift { from { transform: scale(1) translateX(0); } to { transform: scale(1.07) translateX(-1%); } }
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-eyebrow { font: 700 14px/1.4 var(--font-body); color: var(--accent-warm); letter-spacing: 0.02em; margin-bottom: 14px; }
.hero h1 { font: 700 clamp(44px, 7.4vw, 68px)/1.06 var(--font-body); letter-spacing: -0.02em; margin-bottom: 22px; color: #fff; }
.hero-lead { font: 700 clamp(19px, 1.7vw, 23px)/1.4 var(--font-body); color: rgba(255,255,255,0.86); max-width: 30em; margin-bottom: 34px; }
.hero-lead-oneline { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(15px, 4.4vw, 23px); }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.btn-fill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 30px; background: var(--accent); color: #fff; font: var(--mid-bold); font-size: 17px; border-radius: var(--radius); transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.btn-fill svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-fill:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(44,90,160,0.35); }
.btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 1.5px solid rgba(255,255,255,0.4); color: #fff; font: 600 17px/1.25 var(--font-body); border-radius: var(--radius); transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; font: 500 14.5px/1.3 var(--font-body); color: rgba(255,255,255,0.72); }
.hero-badge::before { content: "+"; font-weight: 700; color: var(--accent-warm); }

/* ── 서브페이지 상단 풀블리드 히어로 (밝은 오버레이, 다크 오버레이 금지) ── */
.page-hero { position: relative; min-height: 40vh; display: flex; align-items: flex-end; padding: 148px 0 52px; overflow: hidden; background: var(--bg-soft); }
.page-hero-plain { border-bottom: 1px solid var(--line); }
.page-hero-plain .hero-bg { inset: 0; }
.page-hero-plain .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 1; filter: none; transform: scale(1.02); animation: none; }
.page-hero-plain .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.4) 100%); }
.page-hero-plain h1 { color: var(--ink); text-shadow: 0 2px 18px rgba(255,255,255,0.85), 0 1px 3px rgba(255,255,255,0.9); }
.page-hero-plain .hero-eyebrow { color: var(--accent); text-shadow: 0 1px 10px rgba(255,255,255,0.9), 0 1px 2px rgba(255,255,255,0.9); }
.page-hero-plain .hero-lead { color: var(--desc); text-shadow: 0 1px 10px rgba(255,255,255,0.85); }

/* ── 공통 섹션 ── */
section[id] { scroll-margin-top: 64px; }
.sec-head { margin-bottom: 46px; }
.sec-label { font: 700 15px/1 var(--font-body); letter-spacing: 0.06em; color: var(--accent); margin-bottom: 12px; }
.sec-title { font: var(--title-display); letter-spacing: -0.02em; color: var(--ink); }
.sec-intro { font: var(--mid-regular); color: var(--desc); max-width: 32em; margin-top: 14px; }

/* ── 시공 사례 ── */
#cases { padding: 92px 0; background: var(--bg-soft); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: box-shadow 0.2s; }
.case-card:hover { box-shadow: 0 8px 32px rgba(14,26,24,0.1); }
.case-img { aspect-ratio: 4/3; position: relative; overflow: hidden; background: #dfe4e3; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.case-card:hover .case-img img { transform: scale(1.04); }
.case-body { padding: 20px 22px; }
.case-num { font: 500 12px/1 var(--font-body); letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.case-title { font: 700 clamp(18px, 1.8vw, 21px)/1.3 var(--font-body); color: var(--ink); margin-bottom: 6px; }
.case-cap { font: var(--body-4); color: var(--desc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 서비스 ── */
#service { padding: 92px 0; background: #fff; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 52px; }
.svc-card { background: #fff; padding: 34px 26px; }
a.svc-card { transition: background 0.2s; }
a.svc-card:hover { background: var(--bg-soft); }
.svc-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 16px; }
.svc-card-num { font: 700 30px/1 var(--font-body); color: var(--muted); margin-bottom: 18px; letter-spacing: -0.02em; }
.svc-card-name { font: 700 clamp(18px,1.8vw,21px)/1.3 var(--font-body); color: var(--ink); margin-bottom: 10px; }
.svc-card-desc { font: var(--body-4); color: var(--desc); }
.process-wrap { border-top: 1px solid var(--line); padding-top: 38px; }
.process-label { font: 500 13px/1 var(--font-body); letter-spacing: 0.08em; color: var(--muted); margin-bottom: 24px; }
.process-steps { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.process-step-item { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 116px; text-align: center; }
.process-step-badge { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--font-body); flex-shrink: 0; }
.process-step-name { font: 600 15px/1.3 var(--font-body); color: var(--ink); }
.process-arrow { flex-shrink: 0; width: 28px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step-card { border-top: 2px solid var(--ink); padding-top: 18px; }
.process-step-card .num { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 15px/1 var(--font-body); margin-bottom: 14px; }
.process-step-card .name { font: 700 18px/1.3 var(--font-body); margin-bottom: 6px; display: block; }
.process-step-card .desc { font: var(--body-4); color: var(--desc); }

/* ── 가이드/정보 카드 (서비스와 동일 그리드 재사용) ── */
#guide { padding: 92px 0; background: var(--bg-soft); }

/* ── FAQ ── */
#faq { padding: 92px 0; background: #fff; }
#faq.on-soft { background: var(--bg-soft); }
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); background: inherit; }
.faq-q { width: 100%; text-align: left; background: none; border: none; font: 700 clamp(17px,1.7vw,20px)/1.3 var(--font-body); cursor: pointer; padding: 26px 26px 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.faq-q-inner { display: flex; align-items: flex-start; gap: 18px; }
.faq-q-num { font: 500 14px/1.8 var(--font-body); color: var(--accent); flex-shrink: 0; padding-top: 3px; }
.faq-mark { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 300; color: var(--muted); transition: all 0.2s; flex-shrink: 0; }
.faq-item.open .faq-mark { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 26px 26px 50px; font: var(--mid-regular); font-size: 16.5px; color: var(--desc); max-width: 680px; line-height: 1.7; }

/* ── 지역 페이지 전용 ── */
.dong-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dong-chip { font: 500 14.5px/1 var(--font-body); color: var(--desc); background: var(--bg-soft); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; }
.nearby-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.nearby-list a { font: 600 15px/1 var(--font-body); color: var(--accent); border: 1px solid var(--line); padding: 10px 18px; border-radius: var(--radius); transition: background 0.2s, color 0.2s; }
.nearby-list a:hover { background: var(--accent); color: #fff; }

/* ── 갤러리 케이스 상세 (이미지↔텍스트 교차 레이아웃) ── */
.detail-row { display: flex; align-items: center; gap: 56px; padding: 56px 0; max-width: var(--max); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.detail-row.reverse { flex-direction: row-reverse; }
.detail-img-wrap { flex: 0 0 44%; }
.detail-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.detail-text { flex: 1 1 auto; }
.detail-eyebrow { font: 700 11px/1 var(--font-body); letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; }
.detail-eyebrow b { color: var(--accent); font-weight: 700; }
.detail-text h2 { font: 700 clamp(20px, 2.2vw, 26px)/1.35 var(--font-body); color: var(--ink); letter-spacing: -0.01em; margin-bottom: 16px; }
.detail-text p { font: 400 15px/1.9 var(--font-body); color: #4B5563; }
.detail-text p + p { margin-top: 14px; }

.case-points-section { max-width: var(--max); margin: 0 auto; padding: 8px 28px 64px; }
.case-points-section h3 { font: 700 18px/1.3 var(--font-body); color: var(--ink); margin-bottom: 20px; }
.case-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.case-points li { display: flex; gap: 12px; font-size: 15.5px; color: #4B5563; line-height: 1.7; }
.case-points li::before { content: "+"; font-weight: 700; color: var(--accent); flex-shrink: 0; }

.case-cta-wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px 72px; }
.case-nav { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; padding: 28px 28px 72px; border-top: 1px solid var(--line); font: 600 15px/1.3 var(--font-body); }
.case-nav a { color: var(--accent); }
.case-nav a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .detail-row, .detail-row.reverse { flex-direction: column; gap: 24px; padding: 32px 28px; }
  .detail-img-wrap { flex: none; width: 100%; }
}

/* ── portfolio ── */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ── 사이트맵 ── */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.sitemap-col h2 { font: 700 16px/1 var(--font-body); color: var(--accent); margin-bottom: 18px; letter-spacing: 0.02em; }
.sitemap-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.sitemap-col a { font: 500 15.5px/1.4 var(--font-body); color: var(--desc); }
.sitemap-col a:hover { color: var(--ink); text-decoration: underline; }

/* ── 상담/회사소개 페이지 ── */
.contact-card { max-width: 560px; padding: 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-soft); }
.contact-tel { display: block; font: 700 clamp(34px,5vw,46px)/1.1 var(--font-body); color: var(--ink); margin: 18px 0 8px; }
.contact-tel span { color: var(--accent); }
.contact-note { font: var(--body-4); color: var(--desc); margin-bottom: 26px; }
.contact-info-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-info-list li { font: var(--body-4); color: var(--desc); }
.contact-info-list b { color: var(--ink); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-img { border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; background: #dfe4e3; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text { font: var(--mid-regular); font-size: 17px; color: var(--desc); line-height: 1.85; }
.about-text p { margin-bottom: 18px; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.info-list li { font: var(--body-4); color: var(--desc); display: flex; gap: 10px; }
.info-list li b { color: var(--ink); min-width: 92px; flex-shrink: 0; }

/* ── 관련 링크(서비스/가이드 상세 하단) ── */
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-links a { display: inline-flex; align-items: center; gap: 8px; font: 600 15.5px/1 var(--font-body); color: var(--ink); border: 1px solid var(--line); padding: 14px 20px; border-radius: var(--radius); transition: border-color 0.2s, background 0.2s; }
.related-links a:hover { border-color: var(--accent); background: var(--bg-soft); }
.related-links a b { color: var(--accent); font-weight: 700; }

/* ── 가이드 상세 페이지 ── */
.guide-body { max-width: 700px; font: var(--mid-regular); font-size: 17px; color: var(--desc); line-height: 1.85; }
.guide-body h2 { font: 700 24px/1.3 var(--font-body); color: var(--ink); margin: 40px 0 16px; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body p { margin-bottom: 18px; }
.guide-body ul { margin: 0 0 18px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.guide-body li { display: flex; gap: 10px; }
.guide-body li::before { content: "#"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.guide-note { margin-top: 40px; padding: 22px 24px; background: var(--bg-soft); border-radius: 4px; font: var(--body-4); color: var(--desc); }

/* ── 푸터 ── */
footer { background: var(--footer-bg); color: #fff; }
.foot-cta { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.foot-cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 48px; }
.foot-cta-text h2 { font: 700 clamp(23px, 2.4vw, 30px)/1.2 var(--font-body); color: #fff; margin-bottom: 8px; letter-spacing: -0.02em; }
.foot-cta-text p { font: var(--body-4); color: rgba(255,255,255,0.68); }
.foot-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
footer .btn-fill:hover { box-shadow: 0 10px 24px rgba(44,90,160,0.4); }
footer .btn-line { border-color: rgba(255,255,255,0.4); color: #fff; }
footer .btn-line:hover { border-color: #fff; }
.foot-body { padding: 20px 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.foot-brand { font: 700 21px/1 var(--font-body); color: #fff; letter-spacing: -0.02em; margin-bottom: 16px; }
.foot-tagline { font: var(--body-4); color: rgba(255,255,255,0.62); }
.foot-info-list { display: flex; flex-direction: column; gap: 8px; justify-self: end; }
.foot-info-list dt { font: 500 13px/1 var(--font-body); letter-spacing: 0.05em; color: rgba(255,255,255,0.52); margin-bottom: 4px; margin-top: 16px; }
.foot-info-list dt:first-child { margin-top: 0; }
.foot-info-list dd { font: var(--foot-info); color: rgba(255,255,255,0.82); }
.foot-info-list dd a { color: #fff; font-weight: 700; font-size: clamp(19px,1.9vw,25px); }
.foot-copy { padding: 12px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-copy p { font: 400 12.5px/1.5 var(--font-body); color: rgba(255,255,255,0.4); }
.foot-copy a.sitemap-link { font: 400 12.5px/1.5 var(--font-body); color: rgba(255,255,255,0.4); }
.foot-copy a.sitemap-link:hover { color: rgba(255,255,255,0.62); }

@media (max-width: 860px) {
  .about-grid, .cases-grid, .svc-grid, .process-grid, .sitemap-grid, .portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --title-display: 700 30px/1.15 var(--font-body); --mid-bold: 700 21px/1.25 var(--font-body); --mid-regular: 400 17px/1.4 var(--font-body); --foot-info: 500 16px/1.65 var(--font-kr); }
  nav { display: none; }
  .logo-keyword { font: 700 21px/1 var(--font-body); }
  .hdr-tel { padding: 8px 14px; font-size: 13px; gap: 6px; }
  .hdr-tel svg { width: 14px; height: 14px; }
}
@media (max-width: 400px) {
  .logo-keyword { font: 700 18px/1 var(--font-body); }
  .logo-company { font-size: 10.5px; }
  .hdr-tel-phone { padding: 0; width: 38px; height: 38px; justify-content: center; border-radius: 50%; }
  .hdr-tel-phone .hdr-tel-text { display: none; }
  .case-cap { white-space: normal; }
  .hero-bg img { animation: none; }
  .foot-body { grid-template-columns: 1fr; gap: 30px; }
  .foot-cta-inner { grid-template-columns: 1fr; }
  .foot-cta-btns { justify-content: flex-start; }
  .foot-copy { flex-direction: column; align-items: flex-start; }
  .faq-a-inner { padding-left: 26px; }
}

/* ── 플로팅 퀵메뉴 (좌측) ── */
.float-quick { position: fixed; top: 50%; left: 26px; transform: translateY(-50%); z-index: 200; list-style: none; margin: 0; padding: 0; width: 58px; }
.float-quick li { position: relative; height: 58px; }
.float-quick li + li { margin-top: 8px; }
.float-quick a { position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: 2px 2px 10px rgba(14,26,24,.18); transition: width .35s ease, background .2s; overflow: hidden; text-decoration: none; }
.float-quick .fq-call { background: var(--accent); }
.float-quick .fq-call:hover, .float-quick .fq-call:focus-visible { width: 210px; background: var(--accent-hover); }
.float-quick .fq-top { background: var(--ink); }
.float-quick .fq-top:hover { background: #000; }
.float-quick .fq-label { display: none; font: 700 15px/1 "Noto Sans KR", sans-serif; white-space: nowrap; padding-left: 18px; }
.float-quick .fq-call:hover .fq-label, .float-quick .fq-call:focus-visible .fq-label { display: block; }
.float-quick svg { flex-shrink: 0; width: 22px; height: 22px; }
@media (max-width: 768px) {
  .float-quick { top: auto; bottom: 16px; left: 14px; transform: none; width: 50px; }
  .float-quick li { height: 50px; }
  .float-quick a { width: 50px; height: 50px; }
}
