/* 광명배수로시공 — Song Myung serif, deep indigo timeline theme */

:root {
  --ink: #21295C;
  --ink-soft: #3a4478;
  --accent: #8AA9C4;
  --accent-light: #e7edf3;
  --paper: #fbfaf7;
  --line: #c9d3e0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Song Myung", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
}

h1, h2, h3 { font-family: "Song Myung", serif; color: var(--ink); line-height: 1.4; }

a { color: var(--ink); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  background: var(--ink);
  color: #fff;
  position: relative;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.9em 1.2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 1.6em; margin: 0; padding: 0; }
.main-nav a { color: #fff; text-decoration: none; opacity: 0.9; }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); opacity: 1; }

.hamburger {
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  width: 42px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
}

.mobile-nav { background: var(--ink-soft); border-top: 1px solid rgba(255,255,255,0.15); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5em 1.2em; }
.mobile-nav a { display: block; padding: 0.7em 0; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.1); }

@media (min-width: 800px) {
  .main-nav { display: block; }
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
}
.hero picture, .hero img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.hero-text {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33,41,92,0.35), rgba(33,41,92,0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6em;
}
.hero-text h1 {
  color: #fff;
  font-size: 1.9rem;
  margin: 0 0 0.35em;
}
.hero-text .lead {
  margin: 0;
  max-width: 46em;
  color: #eef1f7;
  font-size: 1.02rem;
}

@media (min-width: 700px) {
  .hero picture, .hero img { height: 420px; }
  .hero-text h1 { font-size: 2.6rem; }
}

/* Timeline */
.timeline {
  max-width: 780px;
  margin: 0 auto;
  padding: 3em 1.2em 1em;
  position: relative;
}

.tl-item {
  position: relative;
  padding-left: 3.2em;
  padding-bottom: 2.6em;
}
.tl-item::before {
  /* spine line */
  content: "";
  position: absolute;
  left: 1.05em;
  top: 2.6em;
  bottom: -0.2em;
  width: 2px;
  background: var(--line);
}
.tl-item:last-child::before { display: none; }

.tl-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 4px var(--accent-light);
}

.tl-content h2 {
  margin: 0 0 0.5em;
  font-size: 1.25rem;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.15em;
}
.tl-content p { margin: 0; color: #333a5c; }

@media (min-width: 700px) {
  .timeline { padding: 4em 1.2em 1.5em; }
  .tl-item { padding-left: 4.5em; padding-bottom: 3.4em; }
  .tl-item::before { left: 1.45em; top: 3em; }
  .tl-marker { width: 3em; height: 3em; font-size: 1.1rem; }
  .tl-content h2 { font-size: 1.45rem; }
}

/* Inline photos */
.inline-photos {
  max-width: 1000px;
  margin: 1em auto 2.5em;
  padding: 0 1.2em;
  display: grid;
  gap: 1.2em;
}
.inline-photos figure { margin: 0; }
.inline-photos img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.inline-photos figcaption {
  margin-top: 0.5em;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}
@media (min-width: 700px) {
  .inline-photos { grid-template-columns: 1fr 1fr; }
}

/* Checkpoints */
.checkpoints {
  max-width: 780px;
  margin: 0 auto 2.5em;
  padding: 1.6em 1.4em;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
}
.checkpoints h2 { margin-top: 0; font-size: 1.3rem; }
.checkpoints ul { margin: 0; padding-left: 1.3em; }
.checkpoints li { margin-bottom: 0.6em; }

/* FAQ */
.faq {
  max-width: 780px;
  margin: 0 auto 2.5em;
  padding: 0 1.2em;
}
.faq h2 { font-size: 1.3rem; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 1em 0;
}
.faq-item h3 { font-size: 1.02rem; margin: 0 0 0.4em; color: var(--ink-soft); }
.faq-item p { margin: 0; }

/* CTA */
.cta {
  text-align: center;
  background: var(--ink);
  color: #fff;
  padding: 2.6em 1.2em;
}
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: #e2e6f2; }
.cta-buttons { display: flex; gap: 0.9em; justify-content: center; flex-wrap: wrap; margin-top: 1.2em; }

.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 2px;
  text-decoration: none;
  font-family: "Song Myung", serif;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-outline { border-color: #fff; color: #fff; }

/* Footer */
.site-footer {
  background: #171d42;
  color: #cfd6e8;
  padding: 2em 1.2em 6em;
  font-size: 0.92rem;
}
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2em; padding: 0; margin: 0 0 1.2em; }
.site-footer a { color: #cfd6e8; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer p { color: #8b93b3; }

/* Mobile CTA bar */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  z-index: 50;
}
.mobile-cta {
  flex: 1;
  text-align: center;
  padding: 0.95em 0;
  text-decoration: none;
  font-family: "Song Myung", serif;
  color: #fff;
}
.mobile-cta.call { background: var(--ink); }
.mobile-cta.inquiry { background: var(--accent); color: var(--ink); }

@media (min-width: 800px) {
  .mobile-cta-bar { display: none; }
  .site-footer { padding-bottom: 2em; }
}

/* ---------- Related links ---------- */
.related-links {
  max-width: 1140px;
  margin: 0 auto 3.5rem;
  padding: 2rem 1.25rem 0;
  border-top: 1px solid var(--ink);
}
.related-links h2 {
  font-size: 1.4rem;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.related-links-group { margin-bottom: 1.25rem; }
.related-links-group:last-child { margin-bottom: 0; }
.related-links-group h3 {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
  opacity: 0.75;
}
.related-links-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
}
.related-links-group a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}
.related-links-group a:hover { border-bottom-color: var(--ink); }

.site-footer nav{display:none}
.site-footer{padding-top:20px}
.site-footer address{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 10px;line-height:1.5}
