:root {
  --cyan: #00E5FF;
  --cyan-2: #00C4CC;
  --navy: #0A192F;
  --text: #1E293B;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-alt2: #FAFAFA;
  --card-bg: #FFFFFF;
  --muted: #64748B;
  --border: #E2E8F0;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  word-break: keep-all;
}

@media (max-width: 860px) {
  body { padding-bottom: 76px; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
table { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.logo { font-size: 19px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 20px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--text); }
.main-nav a:hover { color: var(--cyan-2); }
.header-cta {
  background: var(--cyan);
  color: var(--navy);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--cyan-2); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(10,25,47,.08);
    padding: 4px 20px 12px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
}

/* ===== Section base ===== */
section { padding: 56px 0; }
.section-bg-alt { background: var(--bg-alt); }
.section-bg-alt2 { background: var(--bg-alt2); }
.section-title { font-size: 24px; font-weight: 800; margin: 0 0 20px; text-align: center; color: var(--navy); }
.section-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 28px; }

/* ===== Hero (2열/비대칭) ===== */
.hero { padding: 48px 0 56px; background: var(--bg-alt); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-copy h1 { font-size: 34px; font-weight: 800; margin: 0 0 14px; color: var(--navy); line-height: 1.3; }
.hero-copy .sub { font-size: 17px; color: var(--text); margin: 0 0 22px; line-height: 1.6; }
.hero-media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 32px rgba(10,25,47,.12); }
.hero-media img { width: 100%; height: 420px; object-fit: cover; }
.hero-ba { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; }
.hero-ba span { background: rgba(10,25,47,.75); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

.btn-cta {
  display: inline-block;
  background: var(--cyan);
  color: var(--navy);
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
}
.btn-cta:hover { background: var(--cyan-2); color: #fff; }
.btn-cta.outline-navy { background: var(--navy); color: var(--cyan); }
.btn-cta.outline-navy:hover { background: #132844; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media img { height: 280px; }
  .hero-copy h1 { font-size: 27px; }
}

/* ===== 빠른 상태 확인 ===== */
.quick-group { margin-bottom: 20px; }
.quick-group-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.quick-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.quick-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.quick-card:hover { border-color: var(--cyan); background: #F0FEFF; }
.quick-card .d { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 4px; }

@media (max-width: 860px) {
  .quick-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 5대 서비스 카드 (3+2) ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-grid .photo-card:nth-child(4),
.service-grid .photo-card:nth-child(5) { grid-column: span 1; }
.photo-card { display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--card-bg); }
.photo-card img { width: 100%; height: 260px; object-fit: cover; flex-shrink: 0; }
.photo-card .cap { display: flex; flex-direction: column; flex: 1; padding: 14px 16px; }
.photo-card .cap .name { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.photo-card .cap .desc {
  font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}
.photo-card .cap .more { display: inline-block; margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--cyan-2); }

@media (max-width: 860px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; padding: 26px 20px;
  background: #F0FEFF; border: 1px solid #C9F5FA; border-radius: 16px;
}
.contact-card .name { font-size: 16px; font-weight: 800; color: var(--navy); }
.contact-card .desc { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.contact-card-actions { display: flex; gap: 8px; width: 100%; }
.contact-card-actions .btn-cta { flex: 1; text-align: center; padding: 11px 14px; font-size: 14px; }

/* ===== 대표 상황 (line-icon 카드) ===== */
.situation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.situation-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px 18px; }
.situation-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #F0FEFF; color: var(--cyan-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.situation-card h3 { font-size: 15px; margin: 0 0 8px; color: var(--navy); }
.situation-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

@media (max-width: 860px) {
  .situation-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 시공사례 갤러리 ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; }
.gallery-item img { width: 100%; height: 330px; object-fit: cover; }
.gallery-item .tag {
  position: absolute; left: 10px; top: 10px;
  background: rgba(10,25,47,.72); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 작업 원칙 3카드 / 이유 3카드 ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
}
.reason-card.region { border-color: var(--cyan); background: #F0FEFF; }
.reason-card h3 { margin: 0 0 10px; font-size: 17px; color: var(--navy); }
.reason-card p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ===== 확인사항 표 / 진행과정 요약 표 ===== */
.compare-table-wrap { overflow-x: auto; margin: 24px 0; border-radius: 14px; border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card-bg); }
.compare-table thead { background: var(--navy); color: #fff; }
.compare-table th, .compare-table td { padding: 13px 18px; text-align: left; }
.compare-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.compare-table td.highlight { color: var(--cyan-2); font-weight: 700; }

/* ===== 진행 과정 5단계 ===== */
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.process-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px 14px; text-align: center; }
.process-item .num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--cyan); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 13px;
}
.process-item h4 { margin: 0 0 6px; font-size: 14px; color: var(--navy); }
.process-item p { margin: 0; font-size: 12px; color: var(--muted); }

@media (max-width: 860px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 서비스 상세설명 (지그재그) ===== */
.body-copy p { margin: 0 0 16px; font-size: 15px; color: var(--text); max-width: 68ch; }
.detail-block {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 32px;
}
.detail-block:nth-of-type(even) { flex-direction: row-reverse; }
.detail-block img { border-radius: 16px; flex: 1 1 45%; width: 100%; height: 340px; object-fit: cover; }
.detail-block .text { flex: 1 1 55%; }
.detail-block h3 { font-size: 19px; margin: 0 0 10px; color: var(--navy); }
.detail-block p { color: var(--muted); margin: 0 0 16px; }
.local-section { margin-bottom: 32px; max-width: 68ch; }
.local-section h3 { font-size: 19px; margin: 0 0 10px; color: var(--navy); }

/* ===== SEO 세부페이지 카드 (우->좌 자동 슬라이드) ===== */
.seo-marquee-wrap { overflow: hidden; }
.seo-marquee { display: flex; gap: 16px; width: max-content; animation: seo-marquee-scroll 28s linear infinite; }
.seo-marquee:hover { animation-play-state: paused; }
.seo-marquee .photo-card { flex: 0 0 240px; }
.seo-marquee .photo-card img { height: 180px; }
@keyframes seo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 860px) {
  .detail-block, .detail-block:nth-of-type(even) { flex-direction: column; }
}

/* ===== 시공사례(before/after) 2장 그리드 ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== 관련 서비스 (한 줄 슬라이더) ===== */
.related-slider {
  display: flex; gap: 16px;
  justify-content: safe center;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.related-slider::-webkit-scrollbar { display: none; }
.related-slider .photo-card { flex: 0 0 240px; scroll-snap-align: start; }
.related-slider .photo-card img { height: 180px; }

/* ===== FAQ 아코디언 ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--card-bg);
  padding: 4px 18px;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--cyan-2); font-size: 18px; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

/* ===== 중간 CTA ===== */
.mid-cta {
  background: #F0FEFF;
  border: 1px solid #C9F5FA;
  border-radius: 20px;
  text-align: center;
  padding: 40px 24px;
}
.mid-cta h2 { margin: 0 0 8px; font-size: 21px; color: var(--navy); }
.mid-cta p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

/* ===== 최종 대형 CTA ===== */
.final-cta { background: var(--bg-alt); padding: 56px 20px; }
.final-cta .inner {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--navy); border-radius: 24px; padding: 44px 28px;
}
.final-cta h2 { margin: 0 0 10px; font-size: 23px; color: #fff; }
.final-cta p { margin: 0 0 22px; color: #B9C4D3; font-size: 14px; }
.final-cta .btn-cta { background: var(--cyan); color: var(--navy); }
.final-cta .btn-cta:hover { background: var(--cyan-2); color: #fff; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-alt2); border-top: 1px solid var(--border); padding: 32px 0; }
.site-footer .biz-info { font-size: 13px; color: var(--muted); line-height: 1.9; }
.site-footer .biz-info strong { color: var(--text); }

/* ===== 플로팅(PC) / 모바일 하단 바 ===== */
.float-call {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,229,255,.35);
  z-index: 60;
}
.mobile-call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--navy);
  color: var(--cyan);
  text-align: center;
  padding: 16px;
  font-size: 17px;
  font-weight: 800;
  z-index: 60;
  display: none;
}

/* PC: 플로팅만 노출 / 모바일: 하단 고정 바만 노출 */
@media (max-width: 860px) {
  .float-call { display: none; }
  .mobile-call-bar { display: block; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
