/* 집수리팩토리 - 화장실거울장교체 */
:root {
  --white: #ffffff;
  --gray-light: #f3f4f6;
  --beige: #f7f1e7;
  --navy: #1b3358;
  --navy-dark: #12233d;
  --text: #333333;
  --text-soft: #5a5f66;
  --border: #e3e6ea;
  --radius: 14px;
}

* { 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", 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: 72px 0; }

h1, h2, h3 { line-height: 1.4; margin: 0 0 16px; color: var(--navy-dark); }

p { margin: 0 0 12px; }

.section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 12px;
}

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

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

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

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

.brand svg { color: var(--navy); flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.main-nav a:hover { background: var(--gray-light); }

.main-nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
}

.main-nav a.nav-cta:hover { background: var(--navy-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 32%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.15) 75%, rgba(255, 255, 255, 0) 100%),
    url("../images/hero-bathroom.jpg") right center/cover no-repeat;
  padding: 96px 0 88px;
}

.hero-inner {
  max-width: 560px;
}

@media (max-width: 860px) {
  .hero {
    background:
      linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)),
      url("../images/hero-bathroom.jpg") 70% center/cover no-repeat;
  }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: rgba(27, 51, 88, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 44ch;
  margin-bottom: 28px;
}

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

.hero-tags span {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-dark);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: rgba(27, 51, 88, 0.06); }

.btn-block { width: 100%; }

/* ---------- Cases (before/after) ---------- */
.section-gray { background: var(--gray-light); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(20, 30, 50, 0.06);
}

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

.case-compare figure { margin: 0; position: relative; }

.case-compare img { height: 190px; width: 100%; object-fit: cover; }

.case-compare figcaption {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 35, 61, 0.72);
  color: var(--white);
}

.case-card .case-desc { padding: 16px 18px 20px; color: var(--text-soft); font-size: 14.5px; }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(20, 30, 50, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(20, 30, 50, 0.1);
}

.service-card img { height: 170px; width: 100%; object-fit: cover; }

.service-body { padding: 18px 20px 22px; }

.service-body h3 { font-size: 18px; margin-bottom: 8px; }

.service-body p { font-size: 14.5px; color: var(--text-soft); min-height: 66px; }

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 6px;
}

/* ---------- Beige info section ---------- */
.section-beige { background: var(--beige); }

.info-block { max-width: 700px; margin: 0 auto; text-align: center; }

.info-block p { color: var(--text-soft); font-size: 16px; }

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

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

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

.step-card h3 { font-size: 16px; margin-bottom: 8px; }

.step-card p { font-size: 13.5px; color: var(--text-soft); margin: 0; }

/* ---------- FAQ summary (main) ---------- */
.faq-cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.faq-summary h2 { font-size: 24px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}

.faq-item .q { font-weight: 700; margin-bottom: 6px; }
.faq-item .q::before { content: "Q. "; color: var(--navy); }
.faq-item .a { color: var(--text-soft); font-size: 14.5px; margin: 0; }
.faq-item .a::before { content: "A. "; color: var(--text-soft); font-weight: 700; }

.cta-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  position: sticky;
  top: 90px;
}

.cta-box h3 { font-size: 20px; }
.cta-box p { color: var(--text-soft); font-size: 14.5px; margin-bottom: 20px; }

/* ---------- Final CTA ---------- */
.section-final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
}

.section-final-cta h2 { color: var(--white); font-size: 28px; }
.section-final-cta p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin: 0 auto 28px;
}
.section-final-cta .btn-primary { background: var(--white); color: var(--navy-dark); }
.section-final-cta .btn-primary:hover { background: #eef1f5; }

/* ---------- Gallery grid (NSEO detail pages) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.gallery-grid figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--gray-light); }
.gallery-grid img { height: 130px; width: 100%; object-fit: cover; }

/* ---------- Generic content blocks ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { color: var(--text-soft); font-size: 16px; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.check-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--text-soft);
  position: relative;
  padding-left: 40px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}

.callout {
  background: var(--beige);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 24px 0;
}
.callout p { color: var(--navy-dark); font-size: 15px; margin: 0 0 6px; font-weight: 600; }
.callout p:last-child { margin-bottom: 0; }

.page-hero {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.82)), url("../images/hero-bathroom.jpg") center/cover no-repeat;
  padding: 70px 0 56px;
  text-align: center;
}
.page-hero h1 { font-size: 34px; margin-bottom: 12px; }
.page-hero p { color: var(--text-soft); max-width: 46ch; margin: 0 auto; }

.detail-cta {
  text-align: center;
  margin-top: 20px;
}

/* ---------- Sitemap page ---------- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sitemap-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 4px 14px rgba(20, 30, 50, 0.05);
}
.sitemap-card h3 { font-size: 17px; margin-bottom: 8px; }
.sitemap-card p { color: var(--text-soft); font-size: 14.5px; margin: 0 0 10px; }
.sitemap-card .service-more { margin-top: 0; }

/* ---------- Contact page ---------- */
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(20, 30, 50, 0.06);
}
.contact-card p { color: var(--text-soft); }

.prep-list {
  max-width: 560px;
  margin: 32px auto 0;
  list-style: none;
  padding: 0;
}
.prep-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-soft);
}
.prep-list li:first-child { border-top: none; }
.prep-list .num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
}

/* ---------- FAQ page ---------- */
.faq-page-list { max-width: 760px; margin: 0 auto; }
.faq-page-list .faq-item { padding: 22px 26px; }
.faq-page-list .q { font-size: 16.5px; }
.faq-page-list .a { font-size: 15px; line-height: 1.8; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.86);
  padding: 44px 0 100px;
}

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

.footer-biz {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 2;
}
.footer-biz strong { color: rgba(255, 255, 255, 0.85); }

/* ---------- Floating call button (PC) ---------- */
.float-call {
  position: fixed;
  right: 26px;
  bottom: 90px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(18, 35, 61, 0.3);
  font-weight: 700;
  font-size: 14.5px;
}
.float-call:hover { background: var(--navy-dark); }

/* ---------- Mobile fixed bottom bar ---------- */
.mobile-call-bar { display: none; }

@media (max-width: 860px) {
  .site-header .container { height: 58px; }
  .brand { font-size: 16px; }
  .main-nav a { padding: 7px 9px; font-size: 13.5px; }

  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15.5px; }

  section { padding: 52px 0; }
  .section-title { font-size: 22px; }

  .cases-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .check-list { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }

  .faq-cta-grid { grid-template-columns: 1fr; }
  .cta-box { position: static; }

  .float-call { display: none; }

  .mobile-call-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    background: var(--navy);
  }
  .mobile-call-bar a {
    flex: 1;
    text-align: center;
    color: var(--white);
    font-weight: 700;
    font-size: 15.5px;
    padding: 16px 0;
  }
  .site-footer { padding-bottom: 90px; }
}

@media (max-width: 560px) {
  .case-compare img { height: 140px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 110px; }
}
