/* ===== 어반픽스 실링팬설치 공통 스타일 ===== */
:root {
  --navy: #223a5c;
  --navy-soft: #3a5678;
  --sky: #6cb6e6;
  --sky-light: #e7f4fb;
  --beige: #f6efe2;
  --wood: #b98a55;
  --wood-light: #e6cfa7;
  --white: #ffffff;
  --gray-light: #f4f5f7;
  --gray: #6b7280;
  --gray-border: #e3e6ea;
  --text: #263042;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(34, 58, 92, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: break-word;
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; }
li { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 헤더 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-border);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-link-header {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gray);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--gray-border);
  white-space: nowrap;
}
.back-link-header:hover { color: var(--navy); border-color: var(--sky); background: var(--sky-light); }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover { color: var(--navy); border-color: var(--sky); }

.main-nav .nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  border-bottom: none;
}

.main-nav .nav-cta:hover { background: var(--navy-soft); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
}

/* ===== 히어로 ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.62) 40%, rgba(255,255,255,0.25) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 60px 20px;
}

.hero-eyebrow {
  display: inline-flex;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--sky-light);
  border: 1px solid var(--sky);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(255,255,255,0.7);
}

.hero p.lead {
  font-size: 1.1rem;
  color: #33455e;
  margin: 0 0 30px;
}

.hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-tags span {
  background: #fff;
  border: 1px solid var(--gray-border);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 24px rgba(34,58,92,0.25);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(34,58,92,0.32); }

.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover { background: var(--sky-light); }

/* ===== 섹션 공통 ===== */
section { padding: 80px 0; }
.section-tight { padding: 60px 0; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-soft);
  background: var(--sky-light);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--gray); font-size: 1.02rem; margin: 0; }

.bg-light { background: var(--gray-light); }
.bg-beige { background: var(--beige); }
.bg-navy { background: var(--navy); color: #fff; }

/* ===== 시공전/시공후 ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
}

.case-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.case-compare figure { margin: 0; position: relative; }
.case-compare img { width: 100%; height: 320px; object-fit: cover; }

.case-compare figcaption {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(34,58,92,0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.case-compare .after-fig figcaption { background: rgba(108, 182, 230, 0.95); color: var(--navy); }

.case-card-body { padding: 18px 22px 22px; }
.case-card-body h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--navy); }
.case-card-body p { margin: 0; color: var(--gray); font-size: 0.95rem; }

/* ===== 시공전/후 대형 쇼케이스 (여백을 살린 단독 배치) ===== */
.case-showcase {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.case-showcase figure {
  margin: 0;
  width: 420px;
  max-width: 100%;
  text-align: center;
}

.case-showcase .shot-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--sky-light);
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.case-showcase img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
}

.case-showcase figcaption.shot-caption {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--gray);
}

@media (max-width: 960px) {
  .case-showcase { gap: 40px; }
  .case-showcase img { height: 340px; }
}

@media (max-width: 720px) {
  .case-showcase { flex-direction: column; align-items: center; gap: 32px; }
  .case-showcase figure { width: 100%; max-width: 420px; }
  .case-showcase img { height: 300px; }
}

/* ===== NSEO 서비스 카드 ===== */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  flex: 0 1 calc(33.333% - 18px);
  min-width: 260px;
}

.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(34,58,92,0.16); }

.service-card figure { margin: 0; overflow: hidden; height: 240px; position: relative; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.service-card:hover img { transform: scale(1.05); }

/* 실링팬조명 카드 전용 - 조명 글로우 효과 */
.service-card.glow-card figure { background: #2a2f36; }
.service-card.glow-card img { filter: brightness(1.06) saturate(1.05); }
.service-card.glow-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(160px 120px at 50% 38%, rgba(255,224,150,0.55) 0%, rgba(255,224,150,0.22) 40%, rgba(255,224,150,0) 72%);
  mix-blend-mode: screen;
}
.service-card.glow-card figure::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 60px 10px rgba(255,214,120,0.18);
}

.service-card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { margin: 0 0 10px; font-size: 1.2rem; color: var(--navy); }
.service-card-body p { margin: 0 0 20px; color: var(--gray); font-size: 0.95rem; flex: 1; }

/* ===== 다른 시공 사례 보기 (한 줄, 더 큰 세로 사진) ===== */
.related-grid { flex-wrap: nowrap; }
.related-grid .related-card { flex: 1 1 0; min-width: 0; }
.related-card figure { height: 320px; }

@media (max-width: 960px) {
  .related-grid { flex-wrap: wrap; }
  .related-grid .related-card { flex: 0 1 calc(50% - 13px); }
  .related-card figure { height: 260px; }
}

@media (max-width: 720px) {
  .related-grid .related-card { flex: 1 1 100%; }
  .related-card figure { height: 240px; }
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  padding: 10px 0;
}

.card-link::after { content: "\2192"; }

/* ===== 왜 실링팬인가 ===== */
.why-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.why-block p { font-size: 1.1rem; color: #33455e; margin: 0 0 14px; }

/* ===== 체크리스트 ===== */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.checklist-grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.98rem;
}

.checklist-grid li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--sky-light);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ===== 시공 과정 ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.process-step {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.process-step .num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 16px;
}

.process-step h3 { margin: 0 0 8px; font-size: 1.02rem; color: var(--navy); }
.process-step p { margin: 0; font-size: 0.88rem; color: var(--gray); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "Q";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--sky-light);
  color: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  color: var(--gray);
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item .faq-answer {
  padding: 0 24px 22px 66px;
  color: var(--gray);
  font-size: 0.96rem;
}

/* ===== 사진 갤러리 5장 ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
}

.gallery-grid img { width: 100%; height: 200px; object-fit: cover; }

.gallery-grid figcaption {
  padding: 10px 14px;
  font-size: 0.86rem;
  color: var(--gray);
  background: #fff;
}

.gallery-grid figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-grid figure:first-child img { height: 100%; min-height: 424px; }

/* ===== CTA ===== */
.cta-final {
  background: linear-gradient(135deg, var(--navy) 0%, #2c4d78 100%);
  color: #fff;
  text-align: center;
}

.cta-final h2 { font-size: 2rem; font-weight: 800; margin: 0 0 18px; }
.cta-final p { color: #d7e4f2; max-width: 640px; margin: 0 auto 12px; font-size: 1.02rem; }
.cta-final .btn-primary { background: #fff; color: var(--navy); margin-top: 24px; box-shadow: 0 14px 28px rgba(0,0,0,0.2); }
.cta-final .btn-primary:hover { background: var(--sky-light); }

/* ===== 페이지 인트로(세부페이지 공용) ===== */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.6) 45%, rgba(255,255,255,0.25) 100%);
}
.page-hero .hero-inner { padding: 50px 20px; }
.page-hero h1 { font-size: 2.2rem; }

.content-block { max-width: 780px; margin: 0 auto; }
.content-block p { font-size: 1.02rem; color: #33455e; margin: 0 0 18px; }
.content-block h2 { color: var(--navy); font-size: 1.5rem; margin: 40px 0 16px; }

/* ===== 상담문의 페이지 ===== */
.contact-box {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 36px;
  text-align: center;
}
.contact-phone {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin: 14px 0 26px;
  letter-spacing: -0.01em;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 40px auto 0;
  text-align: left;
}
.contact-info-grid li {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
}
.contact-info-grid li span.n {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--sky-light);
  color: var(--navy);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ===== 사이트맵 페이지 ===== */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sitemap-card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.sitemap-card h3 { color: var(--navy); margin: 0 0 10px; font-size: 1.12rem; }
.sitemap-card p { color: var(--gray); font-size: 0.94rem; margin: 0 0 18px; flex: 1; }

/* ===== 푸터 ===== */
.site-footer {
  background: var(--navy);
  color: #cfdcec;
  padding: 50px 0 34px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand h3 { color: #fff; font-size: 1.2rem; margin: 0 0 10px; }
.footer-brand p { margin: 3px 0; font-size: 0.9rem; color: #b7c6da; }
.footer-nav ul { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.92rem; color: #dbe6f2; font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; font-size: 0.82rem; color: #90a3bc; }

/* ===== 플로팅 전화 버튼 (PC) ===== */
.float-call {
  position: fixed;
  right: 26px;
  bottom: 100px;
  z-index: 900;
  background: var(--navy);
  color: #fff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 26px rgba(34,58,92,0.3);
  font-size: 1.6rem;
}
.float-call:hover { background: var(--navy-soft); }

/* ===== 모바일 하단 고정 버튼 ===== */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: var(--navy);
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 0;
}

/* ===== 반응형 ===== */
@media (max-width: 960px) {
  .service-card { flex: 0 1 calc(50% - 13px); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .checklist-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid figure:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery-grid figure:first-child img { min-height: 200px; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .site-header .header-inner { height: 62px; }
  .hero { min-height: 460px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-inner { padding: 40px 20px; }
  section { padding: 56px 0; }
  .section-head h2 { font-size: 1.5rem; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-compare { grid-template-columns: 1fr 1fr; }
  .service-card { flex: 1 1 100%; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure:first-child { grid-column: span 1; }
  .gallery-grid figure:first-child img { min-height: 220px; }
  .footer-top { flex-direction: column; }
  .footer-nav ul { gap: 16px; }
  .float-call { display: none; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 58px; }
  .faq-item .faq-answer { padding-left: 24px; }
}
