/* 집수리팩토리 - 싱크대장 원상복구 : 공통 스타일 */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f2;
  --bg-accent: #f8f1e6;
  --navy: #1c3d5a;
  --navy-dark: #122a3f;
  --navy-soft: #3a5e7d;
  --text: #2b2b2b;
  --text-light: #666666;
  --border: #e6e2da;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(28, 61, 90, 0.08);
  --max-width: 1160px;
  --header-h: 68px;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding-bottom: 64px; /* mobile fixed call bar clearance */
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}
.section-white { background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-accent { background: var(--bg-accent); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-head h2 {
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--navy-dark);
}
.section-head p {
  color: var(--text-light);
  margin: 0;
  font-size: 15px;
}

p, .lead {
  max-width: 68ch;
}
.section-head p, .lead-center {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(28, 61, 90, 0.25);
}
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light {
  background: var(--navy);
  color: var(--white);
}
.btn-light:hover { background: var(--navy-dark); }
.btn-block { width: 100%; }

/* 뒤로가기 */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}
.back-btn:hover { background: var(--border); color: var(--text); }
.back-wrap { padding: 18px 0 0; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-dark);
  flex-shrink: 0;
}
.logo-icon { color: var(--navy); width: 26px; height: 26px; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.main-nav a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--navy); }
.main-nav .nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
}
.main-nav .nav-cta:hover { background: var(--navy-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: left bottom;
  background-color: var(--bg-accent);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero .hero-inner {
  margin-left: auto;
  margin-right: 0;
}
.hero-tag {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.35;
  margin: 0 0 18px;
  color: var(--navy-dark);
  text-shadow: 0 1px 3px rgba(255,255,255,0.9), 0 2px 16px rgba(255,255,255,0.85), 0 0 30px rgba(255,255,255,0.7);
}
.hero .hero-desc {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 14px;
  max-width: 52ch;
  text-shadow: 0 1px 3px rgba(255,255,255,0.9), 0 2px 14px rgba(255,255,255,0.8), 0 0 24px rgba(255,255,255,0.65);
}
.hero-highlight {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 0 28px;
  text-shadow: 0 1px 3px rgba(255,255,255,0.9), 0 2px 14px rgba(255,255,255,0.8), 0 0 24px rgba(255,255,255,0.65);
}
.hero-highlight span { display: inline-block; }

/* NSEO 세부페이지 hero (메인 히어로와 동일한 사진 사용) */
.hero-sub {
  min-height: 320px;
  background-image: url('/assets/images/hero-kitchen.jpg');
  background-size: cover;
  background-position: left bottom;
}
.hero-sub h1 { font-size: 32px; }

/* ---------- 카드 그리드 (NSEO 5개) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid.grid-5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.card-grid.grid-5 .service-card { flex: 0 1 calc((100% - 48px) / 3); }

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(28,61,90,0.14); }
.service-card .card-img-wrap {
  width: 100%;
  aspect-ratio: 8 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
}
.service-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.service-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.service-card h3 { margin: 0; font-size: 18px; color: var(--navy-dark); }
.service-card p { margin: 0; font-size: 14px; color: var(--text-light); flex: 1; }
.service-card .btn { align-self: flex-start; margin-top: 6px; padding: 10px 20px; font-size: 13px; }

/* 사진 5장 그리드 (세부페이지) */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.photo-grid figure {
  margin: 0;
  flex: 0 1 calc((100% - 54px) / 4);
  text-align: center;
}
.photo-grid .photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---------- 시공전/시공후 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.case-pair {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.case-pair .case-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.case-imgs .case-img-box {
  position: relative;
  aspect-ratio: 8 / 9;
  overflow: hidden;
}
.case-imgs img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.case-img-box .case-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.case-pair .case-caption { padding: 16px 18px; text-align: center; color: var(--text-light); font-size: 14px; }

/* ---------- 상황/체크리스트/단계 카드 ---------- */
.icon-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.icon-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.icon-card .icon-dot {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-accent);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.icon-card p { margin: 0; font-size: 14.5px; color: var(--text); }

.step-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.step-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.step-card .step-num {
  width: 34px;
  height: 34px;
  line-height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  margin: 0 auto 14px;
}
.step-card h3 { font-size: 15px; margin: 0 0 8px; color: var(--navy-dark); }
.step-card p { font-size: 13px; color: var(--text-light); margin: 0; }

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.checklist-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.checklist-card .check-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  position: relative;
}
.checklist-card .check-mark::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 6px; height: 10px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(40deg);
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.faq-item .q { font-weight: 700; color: var(--navy-dark); margin: 0 0 8px; font-size: 15.5px; }
.faq-item .a { margin: 0; color: var(--text-light); font-size: 14.5px; }

/* FAQ 아코디언 (홈 요약 목록 + FAQ 페이지 전체 리스트) */
.faq-full { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin: 0 auto; }
.faq-full .faq-item, .faq-list .faq-item {
  list-style: none;
  cursor: pointer;
}
.faq-full .faq-item summary.q, .faq-list .faq-item summary.q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}
.faq-full .faq-item summary.q::-webkit-details-marker, .faq-list .faq-item summary.q::-webkit-details-marker { display: none; }
.faq-full .faq-item summary.q::after, .faq-list .faq-item summary.q::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
}
.faq-full .faq-item[open] summary.q, .faq-list .faq-item[open] summary.q { margin-bottom: 10px; }
.faq-full .faq-item[open] summary.q::after, .faq-list .faq-item[open] summary.q::after { content: "\2212"; }
.faq-full .faq-item .a, .faq-list .faq-item .a { margin: 0; }

/* ---------- 마지막 CTA ---------- */
.cta-final {
  background: var(--bg-accent);
  color: var(--text);
  text-align: center;
}
.cta-final h2 { font-size: 28px; margin: 0 0 16px; color: var(--navy-dark); }
.cta-final p { margin: 0 auto 28px; color: var(--text-light); max-width: 56ch; }

.cta-final-photo {
  background-size: cover;
  background-position: right 70%;
  min-height: 360px;
  display: flex;
  align-items: center;
}
.cta-final-photo .cta-final-text {
  max-width: 480px;
  margin-left: auto;
  margin-right: 0;
  text-align: left;
}
.cta-final-photo .cta-final-text h2 {
  text-shadow: 0 1px 3px rgba(255,255,255,0.9), 0 2px 16px rgba(255,255,255,0.85), 0 0 30px rgba(255,255,255,0.7);
}
.cta-final-photo .cta-final-text p {
  text-shadow: 0 1px 3px rgba(255,255,255,0.9), 0 2px 14px rgba(255,255,255,0.8), 0 0 24px rgba(255,255,255,0.65);
}
.cta-final-photo .cta-final-text p { margin: 0 0 24px; }

/* ---------- 사이트맵 페이지 ---------- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.sitemap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.sitemap-card h3 { margin: 0 0 10px; color: var(--navy-dark); font-size: 17px; }
.sitemap-card p { margin: 0 0 16px; font-size: 14px; color: var(--text-light); }

/* ---------- 상담문의 페이지 ---------- */
.contact-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-checklist {
  text-align: left;
  margin: 30px auto 0;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-checklist li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  align-items: flex-start;
}
.contact-checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy);
  margin-top: 8px;
}

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.82);
  padding: 40px 0 88px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-sitemap a {
  font-weight: 700;
  color: var(--white);
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}
.footer-business p {
  margin: 3px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
}

/* ---------- 전화상담 플로팅 / 모바일 고정 ---------- */
.float-call {
  position: fixed;
  right: 26px;
  bottom: 40px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  padding: 16px 22px;
  box-shadow: 0 10px 28px rgba(28,61,90,0.35);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.float-call:hover { background: var(--navy-dark); }

.mobile-call-bar {
  display: none;
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.grid-5 .service-card { flex: 0 1 calc((100% - 24px) / 2); }
  .photo-grid figure { flex: 0 1 calc((100% - 18px) / 2); }
  .icon-card-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .cta-final-photo .cta-final-text { margin: 0 auto; text-align: center; }
  .sitemap-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { padding-bottom: 76px; }
  .section { padding: 48px 0; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 20px; }
  .site-header { height: auto; position: sticky; }
  .main-nav { width: 100%; justify-content: space-between; gap: 2px; }
  .main-nav a { padding: 7px 8px; font-size: 12.5px; }
  .hero { min-height: 340px; }
  .hero h1 { font-size: 28px; }
  .hero-sub h1 { font-size: 24px; }
  .card-grid, .icon-card-grid, .step-grid, .checklist-grid {
    grid-template-columns: 1fr;
  }
  .photo-grid figure { flex: 0 1 100%; }
  .card-grid.grid-5 .service-card { flex: 0 1 100%; }
  .float-call { display: none; }
  .mobile-call-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: var(--navy);
    padding: 12px 20px;
    justify-content: center;
  }
  .mobile-call-bar a {
    color: var(--white);
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .contact-panel { padding: 28px 20px; }
  .sitemap-grid { grid-template-columns: 1fr; }
}

@media (min-width: 601px) {
  .float-call { display: flex; }
}
