:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f5;
  --bg-accent: #f7f1e6;
  --text: #2b2f33;
  --text-soft: #5b6167;
  --primary: #22303c;
  --primary-dark: #17222b;
  --border: #e4e2dd;
  --radius: 14px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; word-break: keep-all; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.center { text-align: center; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.brand-icon { color: var(--primary); flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); flex-wrap: wrap; font-size: .92rem; font-weight: 500; }
.main-nav a { color: var(--text-soft); white-space: nowrap; }
.main-nav a:hover { color: var(--primary); }

/* buttons */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; transition: opacity .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid var(--border); color: var(--primary); font-size: .85rem; padding: 9px 18px; }
.btn-outline:hover { border-color: var(--primary); }

.back-btn {
  font: inherit; background: transparent; border: 1px solid var(--border);
  color: var(--text-soft); font-size: .82rem; padding: 7px 16px; border-radius: 999px;
  cursor: pointer;
}
.back-btn:hover { border-color: var(--primary); color: var(--primary); }
.back-wrap { padding-top: 18px; }

/* media: photo box with graceful fallback when the real file is missing.
   the <img src> keeps the intended file path/name, so dropping a real photo
   into assets/images with the same name replaces the placeholder automatically. */
.media {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-accent), var(--bg-soft));
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-fallback { position: relative; color: var(--primary); opacity: .3; }
.media-fallback svg { width: 40px; height: 40px; }

/* hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-sub-page { min-height: 44vh; }
.hero-media { position: absolute; inset: 0; }
.hero-media .media-fallback svg { width: 68px; height: 68px; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,48,60,.35), rgba(34,48,60,.55));
}
.hero-box {
  position: relative; z-index: 2; text-align: center; color: #fff;
  max-width: 620px; margin: 0 24px; padding: 36px 32px;
  background: rgba(23,34,43,.32); border-radius: var(--radius);
  backdrop-filter: blur(2px);
}
.hero-tag { font-size: .85rem; letter-spacing: .04em; opacity: .92; margin-bottom: 10px; font-weight: 600; }
.hero-box h1 { font-size: clamp(2rem, 5vw, 2.6rem); color: #fff; }
.hero-sub { font-size: 1rem; opacity: .95; max-width: 480px; margin: 0 auto 22px; }

/* sections */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-accent { background: var(--bg-accent); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--text-soft); margin-bottom: 8px; }
.section h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); text-align: center; }
.section-desc { color: var(--text-soft); max-width: 640px; margin: 0 auto 32px; text-align: center; }
.section > .container > h2 { text-align: center; }

/* grid cards */
.grid-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px; justify-items: stretch; margin-top: 8px;
}
.grid-cards-plain { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-align: center; display: flex; flex-direction: column;
}
.card-media { width: 100%; aspect-ratio: 4/3; }
.card-body { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.05rem; }
.card-body p { color: var(--text-soft); font-size: .9rem; }

.case-card { padding-bottom: 4px; }
.case-caption { padding: 12px 14px 16px; color: var(--text-soft); font-size: .88rem; }

.text-card { justify-content: center; padding: 26px 20px; background: var(--bg-accent); border: none; font-weight: 600; }

.reveal-item { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.reveal-item:nth-child(1) { transition-delay: .05s; }
.reveal-item:nth-child(2) { transition-delay: .11s; }
.reveal-item:nth-child(3) { transition-delay: .17s; }
.reveal-item:nth-child(4) { transition-delay: .23s; }
.reveal-item:nth-child(5) { transition-delay: .29s; }
.reveal-item:nth-child(6) { transition-delay: .35s; }
.reveal-item:nth-child(7) { transition-delay: .41s; }
.reveal-item:nth-child(8) { transition-delay: .47s; }

.sitemap-card { padding: 24px; text-align: left; align-items: flex-start; transition: border-color .15s ease; }
.sitemap-card:hover { border-color: var(--primary); }
.sitemap-card p { color: var(--text-soft); font-size: .9rem; margin: 0; }

/* mid cta */
.mid-cta { text-align: center; margin-top: 44px; }
.mid-cta p { font-weight: 600; font-size: 1.1rem; margin-bottom: 16px; }

/* about */
.about-body { max-width: 560px; margin: 0 auto 32px; color: var(--text-soft); }
.point-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 620px; margin: 0 auto; }
.point-card {
  background: #fff; border-radius: var(--radius); padding: 26px 14px;
  font-weight: 700; font-size: 1.05rem; border: 1px solid var(--border);
}

/* steps */
.step-grid { text-align: center; grid-template-columns: repeat(5, 1fr); }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
  font-weight: 700; margin-bottom: 12px; font-size: .95rem;
}
.step-card h3 { font-size: 1rem; }
.step-card p { color: var(--text-soft); font-size: .88rem; margin: 0; }

/* check list */
.check-list { display: grid; gap: 10px; margin: 20px 0; }
.check-list li {
  position: relative; padding-left: 22px; color: var(--text-soft);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--primary);
}
.check-list.two-col { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 24px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; margin-top: 24px; }
.aftercare-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; }
.aftercare-panel h3 { font-size: 1.1rem; }
.aftercare-desc { color: var(--text-soft); font-size: .9rem; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; }
.faq-item summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; display: flex;
  align-items: center; justify-content: space-between; gap: 12px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.3rem; color: var(--text-soft); flex-shrink: 0; transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 18px; color: var(--text-soft); }
.faq-cta { text-align: center; margin-top: 28px; }

/* final cta */
.final-cta { background: var(--bg-accent); }
.final-cta h2 { margin-bottom: 12px; }
.final-cta p { color: var(--text-soft); margin-bottom: 24px; }

/* footer */
.site-footer { background: var(--primary); color: #dfe4e8; padding: 36px 0; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.footer-sitemap {
  font-size: .85rem; font-weight: 600; color: #fff; border: 1px solid rgba(255,255,255,.35);
  padding: 8px 18px; border-radius: 999px;
}
.footer-sitemap:hover { border-color: #fff; }
.footer-info { font-size: .82rem; color: #b7c0c7; line-height: 1.8; }
.footer-brand { color: #fff; font-weight: 700; margin-bottom: 2px; }

/* floating / mobile call */
.floating-call {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 50;
  background: var(--primary); color: #fff; border-radius: 999px;
  padding: 14px 18px; display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .88rem; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.mobile-call-bar { display: none; }

@media (max-width: 899px) {
  .floating-call { display: none; }
  .mobile-call-bar {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 1rem;
    padding: 15px; padding-bottom: max(15px, env(safe-area-inset-bottom));
  }
  body { padding-bottom: 58px; }
}

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner { padding: 12px 18px; }
  .main-nav { gap: 14px; font-size: .84rem; }
  .section { padding: 52px 0; }
  .hero-box { padding: 28px 20px; }
  .point-cards { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
}
