:root {
  --navy: #14243a;
  --navy-soft: #223a59;
  --burgundy: #6b2233;
  --ink: #17202b;
  --muted: #5c6673;
  --line: #dce2e8;
  --surface: #f5f7f9;
  --white: #ffffff;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
}

a { color: var(--navy-soft); text-underline-offset: 0.2em; }
a:hover { color: var(--burgundy); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--navy);
}
.skip-link:focus { top: 1rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner,
.page-width {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 2rem;
}

.brand {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a[aria-current="page"] { color: var(--burgundy); }

main { min-height: 65vh; }

.hero {
  padding: 5.5rem 0 4.5rem;
  color: var(--white);
  background: var(--navy);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: #c9d5e4;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { color: var(--navy); line-height: 1.3; letter-spacing: -0.035em; }
.hero h1 { max-width: 760px; margin: 0; color: var(--white); font-size: clamp(2rem, 5vw, 3.8rem); }
.hero-copy { max-width: 720px; margin: 1.5rem 0 0; color: #e4eaf1; font-size: 1.08rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--navy);
  border-radius: 4px;
  color: var(--white);
  background: var(--navy);
  font-weight: 750;
  text-decoration: none;
}
.button:hover { color: var(--white); background: var(--burgundy); border-color: var(--burgundy); }
.button-secondary { color: var(--navy); background: var(--white); }

.section { padding: 4rem 0; }
.section-alt { background: var(--surface); }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading h1, .section-heading h2 { margin: 0 0 0.8rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.section-heading p { margin: 0; color: var(--muted); }

.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.card h2, .card h3 { margin: 0.45rem 0 0.65rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid #c8d2dd;
  border-radius: 999px;
  color: var(--navy-soft);
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
}

.process-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.process-list li { position: relative; padding: 1rem 0 1rem 3.4rem; border-top: 1px solid var(--line); }
.process-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-weight: 800;
}

.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.filters label { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 750; }
.filters select { width: 100%; min-height: 44px; padding: 0.45rem; border: 1px solid #aeb9c5; background: var(--white); font: inherit; }
.case-card[hidden] { display: none; }
.case-meta { margin-top: 0.9rem; font-size: 0.9rem; }

.breadcrumb { margin: 0 0 2rem; color: var(--muted); font-size: 0.9rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: #9aa3ad; }

.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.case-body h2 { margin-top: 2.5rem; }
.case-summary { padding: 1.2rem; border-top: 4px solid var(--burgundy); background: var(--surface); }
.case-summary h2 { margin-top: 0; font-size: 1.15rem; }
.case-summary dl { display: grid; grid-template-columns: 90px 1fr; gap: 0.55rem 0.8rem; margin: 0; }
.case-summary dt { color: var(--muted); font-weight: 700; }
.case-summary dd { margin: 0; }

.placeholder {
  display: grid;
  min-height: 240px;
  place-items: center;
  margin: 1.5rem 0;
  border: 1px dashed #aeb9c5;
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.case-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.case-gallery img {
  display: block;
  width: 100%;
  height: auto;
  background: #f2f3f5;
}

.case-gallery figcaption {
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.notice { padding: 1rem 1.1rem; border-left: 4px solid var(--burgundy); background: #fbf4f6; }
.phone { font-size: 1.35rem; font-weight: 850; letter-spacing: 0.02em; }

.site-footer { padding: 2.2rem 0; border-top: 1px solid var(--line); color: var(--muted); background: var(--surface); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; }
.footer-inner p { margin: 0; }

@media (max-width: 800px) {
  body { font-size: 16px; word-break: normal; }
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
  .grid-3, .grid-2, .case-layout { grid-template-columns: 1fr; }
  .case-gallery { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3.5rem; }
  .filters { grid-template-columns: 1fr; }
  .case-summary { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
