/* 집수리팩토리 - 샤워부스설치비용 사이트 공통 스타일 */

:root {
  --white: #ffffff;
  --gray-light: #f4f5f7;
  --beige-light: #f8f2e7;
  --navy: #1c3a5e;
  --navy-dark: #10233a;
  --text: #2b2f33;
  --text-light: #5c6570;
  --border: #e4e7eb;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(28, 58, 94, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

.section { padding: 64px 0; }
.section-white { background: var(--white); }
.section-gray { background: var(--gray-light); }
.section-beige { background: var(--beige-light); }

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
  color: var(--text);
}

.section-desc {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--text-light);
  font-size: 16px;
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.brand svg { flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 2px;
}

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

.main-nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.88; }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-light { background: var(--white); color: var(--navy); }
.btn-small { padding: 9px 18px; font-size: 14px; }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.btn-back:hover { color: var(--navy); border-color: var(--navy); }

.back-wrap { padding: 18px 0 0; }

/* 히어로 */
.hero,
.final-cta {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.7) 45%, rgba(255,255,255,0.88) 100%),
    url('/assets/images/hero-bathroom-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* 메인페이지 히어로: 사진 없이 텍스트 중심, NSEO가 바로 이어짐 */
.hero.hero-plain {
  background-image: linear-gradient(180deg, #eaf1f6 0%, #f3f7fa 55%, #ffffff 100%);
}

.hero.hero-plain h1 {
  display: block;
  width: 100%;
  background: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 40px;
  color: var(--navy-dark);
  text-shadow: none;
}

.hero.hero-plain .hero-desc {
  display: block;
  width: 100%;
  background: none;
  padding: 0;
  color: var(--text-light);
  text-shadow: none;
}

.hero-plain.hero { min-height: 0; }

/* 비누방울 떠다니는 효과 */
.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.5) 20%, rgba(130, 180, 220, 0.28) 55%, rgba(130, 180, 220, 0.08) 100%);
  border: 2px solid rgba(28, 58, 94, 0.22);
  box-shadow: inset -5px -5px 10px rgba(28, 58, 94, 0.14), 0 6px 14px rgba(28, 58, 94, 0.1);
  animation: bubble-float linear infinite;
}

.bubble:nth-child(1)  { left: 3%;  width: 46px; height: 46px; animation-duration: 12s; animation-delay: 0s;   --sd: 0s; }
.bubble:nth-child(2)  { left: 15%; width: 66px; height: 66px; animation-duration: 15s; animation-delay: 1.5s; --sd: 0.4s; }
.bubble:nth-child(3)  { left: 27%; width: 30px; height: 30px; animation-duration: 10s; animation-delay: 3s;   --sd: 0.8s; }
.bubble:nth-child(4)  { left: 39%; width: 52px; height: 52px; animation-duration: 14s; animation-delay: 0.5s; --sd: 1.2s; }
.bubble:nth-child(5)  { left: 51%; width: 38px; height: 38px; animation-duration: 11s; animation-delay: 4s;   --sd: 0.2s; }
.bubble:nth-child(6)  { left: 62%; width: 70px; height: 70px; animation-duration: 16s; animation-delay: 2s;   --sd: 1.6s; }
.bubble:nth-child(7)  { left: 73%; width: 34px; height: 34px; animation-duration: 10.5s; animation-delay: 5s; --sd: 0.6s; }
.bubble:nth-child(8)  { left: 82%; width: 58px; height: 58px; animation-duration: 13s; animation-delay: 1s;   --sd: 1s; }
.bubble:nth-child(9)  { left: 91%; width: 40px; height: 40px; animation-duration: 12.5s; animation-delay: 3.5s; --sd: 1.8s; }
.bubble:nth-child(10) { left: 97%; width: 26px; height: 26px; animation-duration: 9.5s; animation-delay: 2.5s; --sd: 0.3s; }

.bubble::after {
  content: "";
  position: absolute;
  top: 16%;
  left: 20%;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: #ffffff;
  filter: blur(1px);
  animation: bubble-sparkle 2.2s ease-in-out infinite;
  animation-delay: var(--sd, 0s);
}

@keyframes bubble-float {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.8; }
  85%  { opacity: 0.6; }
  100% { transform: translate(14px, -220px); opacity: 0; }
}

@keyframes bubble-sparkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; opacity: 0.35; }
  .bubble::after { animation: none; opacity: 0.6; }
}

/* NSEO 아래 사진 배너: 양쪽 여백 없이 풀블리드 */
.hero-photo-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 5.5;
  overflow: hidden;
}

.hero-photo-banner img { width: 100%; height: 100%; object-fit: cover; }

.hero-photo-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 22, 38, 0.12) 0%, rgba(8, 22, 38, 0.48) 100%);
  padding: 20px;
}

.hero-photo-caption p {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-photo-caption .hero-photo-sub {
  margin: -8px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero {
  display: flex;
  align-items: center;
  min-height: 230px;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
}

.hero-tag {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 27px;
  font-weight: 800;
  color: var(--navy-dark);
  margin: 0 0 10px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 14px;
  border-radius: 8px;
}

.hero-desc {
  max-width: 560px;
  margin: 0 auto 14px;
  font-size: 14.5px;
  color: var(--text);
  display: inline-block;
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 16px;
  border-radius: 10px;
}

.hero-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-badge {
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* 카드 그리드 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: center;
}

.card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.card-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }

/* 시공 사례: flex 기반이라 마지막 줄도 가운데 정렬됨 */
.cases-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.cases-grid .card { flex: 1 1 300px; max-width: calc(33.333% - 16px); }

.card {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0 auto;
}

.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .card-img img,
.photo-grid figure:hover .card-img img { transform: scale(1.07); }

.card-body { padding: 20px; display: flex; flex-direction: column; align-items: center; flex: 1; }

.card-body h3 { font-size: 18px; margin: 0 0 8px; }

.card-body p {
  font-size: 14.5px;
  color: var(--text-light);
  margin: 0 0 16px;
  max-width: 34em;
}

.card-link {
  margin-top: auto;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 8px 18px;
  border-radius: 999px;
}

.card-link:hover { background: var(--navy); color: var(--white); }

/* 시공 사례 카드 */
.case-card { text-align: left; }
.case-card .card-img { aspect-ratio: 3 / 2; }
.case-label {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  background: var(--beige-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}
.case-card .card-body { align-items: flex-start; }

/* 사진 5장 그리드 (세부페이지) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-items: center;
  margin: 0 auto;
  max-width: 760px;
}

.photo-grid figure {
  margin: 0;
  width: 100%;
  text-align: center;
}

.photo-grid .card-img { aspect-ratio: 1 / 1; border-radius: var(--radius); box-shadow: var(--shadow); }

.photo-grid figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-light);
}

/* 안내 카드 (아이콘형) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.info-card .num {
  width: 34px;
  height: 34px;
  line-height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto 14px;
}

.info-card h3 { font-size: 16.5px; margin: 0 0 8px; }
.info-card p { font-size: 14px; color: var(--text-light); margin: 0; }

/* 상황 카드 */
.situation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.situation-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.situation-card svg { flex-shrink: 0; color: var(--navy); margin-top: 2px; }
.situation-card p { margin: 0; font-size: 15px; }

/* 진행 과정 */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
}

.process-card .step {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.process-card h3 { font-size: 15.5px; margin: 0 0 8px; }
.process-card p { font-size: 13.5px; color: var(--text-light); margin: 0; }

/* 관련 서비스 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.related-card:hover { border-color: var(--navy); color: var(--navy); }
.related-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* FAQ */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
}

.faq-item h3 {
  font-size: 16px;
  margin: 0 0 10px;
  display: flex;
  gap: 8px;
}

.faq-item h3 .q-mark { color: var(--navy); font-weight: 800; }

.faq-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-light);
  max-width: 62em;
}

/* FAQ 아코디언 */
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

details.faq-item summary .fold-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

details.faq-item[open] summary .fold-icon::before { content: "\2212"; }
details.faq-item:not([open]) summary .fold-icon::before { content: "+"; }

details.faq-item .faq-answer {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--text-light);
  max-width: 62em;
}

/* 마지막 CTA */
.final-cta {
  color: var(--navy-dark);
  text-align: center;
  padding: 56px 0;
}

.final-cta h2 { font-size: 26px; margin: 0 0 14px; }
.final-cta p {
  max-width: 600px;
  margin: 0 auto 26px;
  color: var(--text-light);
  font-size: 15.5px;
}

/* 상담문의 페이지 */
.contact-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  text-align: center;
}

.contact-box p { color: var(--text-light); font-size: 15.5px; }

.check-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  align-items: flex-start;
}

.check-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  margin-top: 8px;
  flex-shrink: 0;
}

/* 사이트맵 페이지 */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.sitemap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.sitemap-card h3 { margin: 0 0 8px; font-size: 17px; }
.sitemap-card p { margin: 0 0 14px; font-size: 14px; color: var(--text-light); }

/* 푸터 */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.82);
  padding: 40px 0 96px;
  font-size: 13.5px;
}

.footer-sitemap-link {
  display: inline-block;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}

.footer-biz { line-height: 1.9; }
.footer-biz strong { color: var(--white); }

/* 플로팅 / 모바일 고정 버튼 */
.float-call {
  position: fixed;
  right: 26px;
  bottom: 100px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(16, 35, 58, 0.35);
}

.float-call span { display: none; }

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

@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .situation-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .sitemap-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .main-nav { gap: 14px; }
  .main-nav a.nav-cta { padding: 8px 14px; }
  .hero { min-height: 190px; }
  .hero h1 { font-size: 22px; }
  .hero-photo-banner { aspect-ratio: 5 / 4; }
  .hero-photo-caption { gap: 10px; }
  .hero-photo-caption p { font-size: 17px; }
  .hero-photo-caption .hero-photo-sub { font-size: 12.5px; }
  .section { padding: 44px 0; }
  .section-title { font-size: 23px; }
  .card-grid, .card-grid.cols-5 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid, .situation-grid, .process-grid, .related-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 28px 20px; }

  .float-call { display: none; }

  .mobile-call-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--navy);
  }

  .mobile-call-bar a {
    flex: 1;
    text-align: center;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    padding: 16px 0;
  }

  body { padding-bottom: 62px; }
}
