:root {
  --navy: #16233d;
  --navy-light: #223357;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --max-width: 1120px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', 'NanumSquare', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; font-weight: 800; letter-spacing: -0.01em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }
.section { padding: 88px 0; }
.section.bg-soft { background: var(--bg-soft); }
.section-title { font-size: 1.8rem; margin: 0 0 36px; text-align: center; }
.section-lead { text-align: center; color: var(--text-muted); margin: -22px 0 36px; }

/* ===== Header (GNB 양쪽 끝 정렬) ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: 100%;
  margin: 0;
  height: 100%;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--navy); flex-shrink: 0; }
.brand img { border-radius: 7px; }
.gnb { display: flex; gap: 24px; margin: 0 auto; }
.gnb a { font-weight: 600; color: var(--text-muted); padding: 8px 4px; border-bottom: 2px solid transparent; }
.gnb a.active, .gnb a:hover { color: var(--navy); border-bottom-color: var(--amber); }
.header-cta { flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-cta { background: var(--amber); color: #fff; }
.btn-cta:hover { background: var(--amber-dark); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(245,158,11,.28); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); }

/* ===== Hero ===== */
.hero { padding: 56px 0 40px; }
.hero .kicker { color: var(--amber-dark); font-weight: 700; font-size: .92rem; margin-bottom: 10px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--navy); margin: 0 0 20px; }
.hero .summary {
  font-size: 1.08rem; color: var(--text); background: var(--bg-soft);
  border-left: 4px solid var(--amber); border-radius: 10px;
  padding: 18px 22px; margin: 0 0 32px; font-weight: 500;
}
.hero-cta-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 40px; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 40px 0; }
.photo-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.photo-grid img { width: 100%; height: 280px; object-fit: cover; transition: transform .3s ease; }
.photo-grid a:hover img { transform: scale(1.04); }
.photo-grid figcaption { font-size: .8rem; color: var(--text-muted); padding: 8px 10px; }

.photo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.photo-duo figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.photo-duo img { width: 100%; height: 320px; object-fit: cover; }
.photo-duo figcaption { font-size: .8rem; color: var(--text-muted); padding: 8px 10px; }

/* ===== Before/After ===== */
.ba-label { font-weight: 700; font-size: .9rem; color: var(--navy); margin: 8px 0 0; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 12px 0 28px; }
.before-after figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.before-after img { width: 100%; height: 320px; object-fit: cover; }
.before-after .ba-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 6px 16px; border-radius: 999px; font-weight: 800; font-size: .8rem; color: #fff;
}
.before-after .ba-badge.before { background: #64748b; }
.before-after .ba-badge.after { background: var(--amber-dark); }
.before-after figcaption { font-size: .82rem; color: var(--text-muted); padding: 10px 10px 0; }

/* ===== Article body ===== */
.article-body { max-width: 780px; margin: 0 auto; }
.article-body h2 { font-size: 1.45rem; color: var(--navy); margin: 44px 0 16px; }
.article-body h3 { font-size: 1.15rem; color: var(--navy); margin: 28px 0 12px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 18px; }
.article-body li { margin-bottom: 8px; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  position: relative; padding: 4px 0 4px 46px; margin-bottom: 18px; counter-increment: step;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
}

.table-scroll { overflow-x: auto; margin: 20px 0 8px; border-radius: var(--radius); border: 1px solid var(--border); }
table.cost-table { width: 100%; border-collapse: collapse; min-width: 480px; }
table.cost-table caption { text-align: left; padding: 12px 16px; font-size: .85rem; color: var(--text-muted); background: var(--bg-soft); }
table.cost-table th, table.cost-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: .95rem; }
table.cost-table thead th { background: var(--navy); color: #fff; font-weight: 700; }
table.cost-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.table-note { font-size: .85rem; color: var(--text-muted); margin-top: 8px; }

.notice-box { background: #fff7ed; border: 1px solid #fde3b8; border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; font-size: .95rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-item summary {
  cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--amber-dark); flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 20px 20px; color: var(--text); }

/* ===== Value props (3단 카드) ===== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.value-card .value-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); color: var(--amber-dark); font-weight: 800; margin-bottom: 16px; }
.value-card h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--navy); }
.value-card p { margin: 0; font-size: .9rem; color: var(--text-muted); }

/* ===== Card grid (관련 서비스) ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.service-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(22,35,61,.12); }
.service-card img { width: 100%; height: 160px; object-fit: cover; }
.service-card-body { padding: 16px 18px; }
.service-card-body h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }
.service-card-body p { margin: 0; font-size: .88rem; color: var(--text-muted); }
.service-card-cta { justify-content: center; align-items: center; text-align: center; background: var(--navy); color: #fff; }
.service-card-cta .service-card-body h3 { color: #fff; }
.service-card-cta .service-card-body p { color: #cbd5e1; }

/* ===== CTA section ===== */
.cta-section { background: var(--navy); color: #fff; }
.cta-inner { text-align: center; }
.cta-inner h2 { color: #fff; margin: 0 0 12px; font-size: 1.6rem; }
.cta-inner p { color: #cbd5e1; margin: 0 0 26px; }

/* ===== Footer (3열 구조) ===== */
.site-footer { background: #0f1a2e; color: #94a3b8; padding: 64px 0 100px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; text-align: left; padding-bottom: 32px; border-bottom: 1px solid #1e2c47; }
.footer-col-title { color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .04em; margin: 0 0 14px; text-transform: uppercase; opacity: .7; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; }
.footer-tagline { font-size: .85rem; line-height: 1.6; margin: 0; }
.footer-info { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.footer-info a { color: #cbd5e1; }
.footer-bottom { padding-top: 20px; text-align: center; }
.footer-modified, .footer-copy { font-size: .8rem; margin: 4px 0; color: #64748b; }

/* ===== Mobile fixed CTA bar ===== */
.mobile-cta-bar { display: none; }

/* ===== Floating home button ===== */
.floating-home {
  position: fixed; right: 18px; bottom: 24px; z-index: 90;
  display: flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-weight: 700; font-size: .88rem; box-shadow: 0 10px 24px rgba(22,35,61,.35);
}
.fh-icon { font-size: 1.05rem; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Breadcrumb text ===== */
.breadcrumb-bar { font-size: .82rem; color: var(--text-muted); padding: 14px 0 0; }
.breadcrumb-bar a { color: var(--text-muted); }
.breadcrumb-bar a:hover { color: var(--navy); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .container, .header-inner, .footer-inner { padding-left: 18px; padding-right: 18px; }
  .section { padding: 44px 0; }
  .gnb { display: none; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-info { align-items: center; }
  .hero { padding: 32px 0 12px; }
  .hero h1 { font-size: 1.6rem; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid img { height: 150px; }
  .photo-duo { grid-template-columns: 1fr; }
  .photo-duo img { height: 220px; }
  .before-after { grid-template-columns: 1fr; }
  .before-after img { height: 240px; }
  body { padding-bottom: 0; }
  .mobile-cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    box-shadow: 0 -6px 18px rgba(0,0,0,.12);
  }
  .mobile-cta-btn {
    flex: 1; text-align: center; padding: 15px 0; font-weight: 800; font-size: .95rem;
  }
  .mobile-cta-btn.call { background: var(--navy); color: #fff; }
  .mobile-cta-btn.sms { background: var(--amber); color: #fff; }
  .site-footer { padding-bottom: 84px; }
  .floating-home { bottom: 76px; padding: 10px 14px; font-size: .8rem; }
  .header-cta { padding: 10px 16px; font-size: .85rem; }
  .article-body h2 { font-size: 1.25rem; }
  table.cost-table th, table.cost-table td { padding: 10px 12px; font-size: .86rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}
