/* 빌라전체수리 — 디자인 시스템 */

:root {
  --ink:     #241F26;
  --ink-2:   #4B4350;
  --muted:   #7C7382;
  --line:    #DEDAE1;
  --surface: #F5F3F6;
  --paper:   #FFFFFF;
  --accent:  #6B3A5B;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, white);
  --warn:    #A8542A;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 1rem;
}

h1, h2, h3 {
  font-family: "Gothic A1", sans-serif;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: 2.9rem; line-height: 1.16; letter-spacing: -0.02em; }
h2 { font-size: 1.85rem; line-height: 1.28; }
h3 { font-size: 1.28rem; line-height: 1.35; }
@media (max-width: 600px) {
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.12rem; }
}

p { margin: 0 0 1em; }
a { color: var(--accent); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 700px; }

.section { padding: 100px 0; }
@media (max-width: 768px) { .section { padding: 58px 0; } }
.section-alt { background: var(--surface); }

.eyebrow {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 0.6em;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  transition: border-color 0.15s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-family: "Gothic A1", sans-serif; }
.logo svg { color: var(--accent); flex-shrink: 0; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.header-call {
  flex-shrink: 0;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.9rem;
  padding: 10px 18px; border-radius: var(--radius);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .site-header { padding: 12px 16px; gap: 8px; }
  .site-nav { gap: 12px; font-size: 0.88rem; }
  .header-call { padding: 8px 12px; font-size: 0.82rem; }
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* hero */
.hero { padding: 72px 0 64px; }
.hero .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 640px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 26px; border-radius: var(--radius); font-size: 0.98rem;
}
.btn-call { background: var(--accent); color: #fff; }
.btn-sms { background: var(--paper); color: var(--accent); border: 1px solid var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* planline divider */
.planline { display: block; width: 100%; height: auto; margin: 0 auto; }

/* carousel */
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 0 12px;
  list-style: none; margin: 0;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > li { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
@media (max-width: 900px) { .carousel > li { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .carousel > li { flex-basis: 87%; } }

.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: 100%;
}
.card-media { aspect-ratio: 16/10; background: var(--surface); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 1.08rem; margin-bottom: 0.4em; }
.card-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.8em; }
.card-more { color: var(--accent); font-weight: 700; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 4px; }

.carousel-nav { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 12px; }
.carousel-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.carousel-nav button:hover { border-color: var(--accent); color: var(--accent); }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.6em 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 480px; }
caption { text-align: left; font-family: "IBM Plex Sans KR", sans-serif; font-weight: 600; margin-bottom: 0.6em; color: var(--ink-2); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: "IBM Plex Sans KR", sans-serif; font-weight: 600; color: var(--muted); font-size: 0.85rem; border-bottom: 2px solid var(--ink); }

/* svg diagram */
.diagram { margin: 1.8em 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram-caption { font-size: 0.85rem; color: var(--muted); margin-top: 0.6em; }

/* checklist */
.checklist { list-style: none; margin: 1.4em 0; padding: 0; display: grid; gap: 10px; }
.checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; font-size: 0.95rem;
}
.checklist svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

/* figure */
.fig { margin: 1.8em 0; }
.fig picture, .fig img { width: 100%; height: auto; display: block; border-radius: var(--radius); background: var(--surface); }
.fig figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.6em; }

/* faq */
.faq dt { font-weight: 700; margin-top: 1.2em; color: var(--ink); }
.faq dd { margin: 0.4em 0 0; color: var(--ink-2); }

/* cta block */
.cta-block {
  background: var(--surface); border-radius: var(--radius); padding: 48px 40px;
  text-align: center;
}
.cta-block h2 { margin-bottom: 0.4em; }
.cta-block p { color: var(--ink-2); margin-bottom: 0; }

/* hub grid */
.hub-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.hub-empty { color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; }

/* sitemap */
.sitemap-tree ul { list-style: none; padding-left: 22px; }
.sitemap-tree > ul { padding-left: 0; }
.sitemap-tree li { margin: 6px 0; }
.sitemap-tree a { color: var(--ink-2); text-decoration: none; }
.sitemap-tree a:hover { color: var(--accent); text-decoration: underline; }

/* footer */
.site-footer { background: var(--ink); color: #E9E6EB; padding: 56px 0 40px; margin-top: 40px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.footer-nav a { color: #E9E6EB; text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer address {
  font-style: normal; font-size: 0.85rem; color: #B3ADB9; line-height: 1.9;
  border-top: 1px solid #3A343C; padding-top: 24px;
}
.site-footer address p { margin: 0; }

.related-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.related-links a {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-2); text-decoration: none; font-size: 0.9rem;
}
.related-links a:hover { border-color: var(--accent); color: var(--accent); }

.notice {
  border-left: 3px solid var(--warn); background: var(--surface);
  padding: 16px 20px; font-size: 0.92rem; color: var(--ink-2); margin: 1.8em 0;
}
