:root {
  --ink: #18212b;
  --muted: #5f6b76;
  --line: #dce3e8;
  --paper: #f7f9fa;
  --white: #ffffff;
  --blue: #126a8f;
  --blue-dark: #0b4058;
  --green: #2f7a54;
  --warm: #f0a23a;
  --shadow: 0 16px 40px rgba(24, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.72;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 227, 232, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.nav-call {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #dfe7eb;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 21, 31, 0.8), rgba(8, 21, 31, 0.42) 42%, rgba(8, 21, 31, 0.05) 78%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  margin-left: max(24px, calc((100vw - 1180px) / 2));
  padding: 120px 0 100px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.mobile-title-break {
  display: none;
}

.hero p:not(.eyebrow) {
  width: min(620px, 100%);
  margin: 22px 0 0;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--warm);
  color: #1b1b1b;
}

.button.secondary {
  background: var(--blue);
  color: var(--white);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--white);
}

.quick-stats {
  width: min(1180px, calc(100% - 40px));
  margin: -54px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quick-stats div {
  padding: 22px 28px;
  border-right: 1px solid var(--line);
}

.quick-stats div:last-child {
  border-right: 0;
}

.quick-stats strong {
  display: block;
  font-size: 34px;
  color: var(--blue);
}

.quick-stats span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.section.alt {
  width: 100%;
  padding: 86px max(20px, calc((100vw - 1180px) / 2));
  background: var(--paper);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.section-head p:not(.eyebrow),
.two-col p:not(.eyebrow),
.local-summary p:not(.eyebrow) {
  color: var(--muted);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.district-grid,
.link-grid,
.service-grid,
.case-grid {
  display: grid;
  gap: 14px;
}

.district-grid {
  grid-template-columns: repeat(4, 1fr);
}

.link-grid {
  grid-template-columns: repeat(3, 1fr);
}

.link-grid.compact {
  grid-template-columns: repeat(2, 1fr);
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.district-tile,
.link-grid a,
.service-card,
.case-grid article,
.local-summary aside {
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  min-height: 230px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--blue);
}

.service-card small {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 800;
}

.service-card-image {
  display: block;
  width: calc(100% + 44px);
  height: 132px;
  margin: -22px -22px 18px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.service-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.service-green::before {
  background: var(--green);
}

.service-teal::before {
  background: #0d7b76;
}

.service-slate::before {
  background: #536271;
}

.service-warm::before {
  background: var(--warm);
}

.service-detail {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.district-tile span,
.link-grid span,
.case-grid h3,
.local-summary strong {
  display: block;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}

.district-tile small,
.link-grid small,
.case-grid p {
  color: var(--muted);
  line-height: 1.62;
}

.two-col,
.local-summary,
.visual-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: start;
}

.visual-feature {
  align-items: center;
}

.visual-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--paper);
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.keyword-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 800;
}

.keyword-section {
  padding-top: 20px;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list p {
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.nearby-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nearby-links a,
.nearby-links span {
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
}

.faq p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 80px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 8px;
  background: var(--blue-dark);
  color: var(--white);
}

.contact-band h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.contact-band p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 40px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
  color: var(--blue-dark);
}

.sticky-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  gap: 8px;
}

.sticky-call a {
  padding: 13px 15px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow);
  font-weight: 850;
}

.sticky-call a:last-child {
  background: var(--blue);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
    padding: 14px 20px;
  }

  .site-nav {
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(8, 21, 31, 0.82), rgba(8, 21, 31, 0.5));
  }

  .hero-content {
    padding: 80px 0 86px;
  }

  .quick-stats,
  .district-grid,
  .link-grid,
  .link-grid.compact,
    .service-grid,
    .two-col,
    .local-summary,
    .visual-feature,
    .contact-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    margin-top: 0;
  }

  .quick-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-stats div:last-child {
    border-bottom: 0;
  }

  .contact-band,
  .site-footer {
    display: grid;
  }
}

@media (max-width: 560px) {
  .hero-content {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.16;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .mobile-title-break {
    display: block;
  }

  .hero p:not(.eyebrow) {
    width: calc(100vw - 64px);
    max-width: calc(100vw - 64px);
    font-size: 16px;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .section,
  .section.alt {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .sticky-call {
    display: none;
  }
}
