/* 계산동배수로시공 — 계양산·아라뱃길 지형 단면(등고선) 레이아웃, Song Myung, 소나무그린·운하블루 팔레트 */

:root {
  --pine: #24523B;
  --pine-dark: #16331F;
  --pine-mid: #4C7A5E;
  --canal: #1B6FA8;
  --canal-pale: #CFE8EF;
  --bg: #EEF3EC;
  --card: #FFFFFF;
  --ink: #1E2B23;
  --ink-soft: #435449;
  --rust: #B8722E;
  font-size: 17px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pine-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--pine-dark);
  color: #fff;
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: "Song Myung", serif;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}
.main-nav a[aria-current="page"] { color: var(--canal-pale); }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--pine-dark);
}
.mobile-nav a {
  color: #fff;
  display: block;
  padding: 0.6rem 0;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.15);
}

@media (max-width: 780px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  max-width: 1140px;
  margin: 0 auto;
  gap: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg), #fff);
}
.eyebrow {
  color: var(--canal);
  font-size: 1rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}
.hero-copy h1 {
  font-size: 2.35rem;
  margin: 0 0 1rem;
  color: var(--pine-dark);
}
.hero-copy .lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 2rem 1.25rem; }
  .hero-copy h1 { font-size: 1.85rem; }
}

/* ---------- Contour map (elevation-profile landmark rows) ---------- */
.contour-map {
  max-width: 980px;
  margin: 3.5rem auto;
  padding: 0 1.25rem;
}
.contour-map h2 {
  font-size: 1.65rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--pine-dark);
}
.contour-track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contour-card {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: 1.5rem;
  background: var(--card);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 20px rgba(22, 51, 31, 0.08);
  overflow: hidden;
}
/* descending elevation staircase: each row nudges further right, mountain -> canal */
.contour-track .contour-card:nth-child(1) { margin-right: 0; }
.contour-track .contour-card:nth-child(2) { margin-left: 1.5rem; }
.contour-track .contour-card:nth-child(3) { margin-left: 3rem; }
.contour-track .contour-card:nth-child(4) { margin-left: 1rem; }

.contour-badge {
  position: absolute;
  top: 0.9rem;
  right: 1.25rem;
  font-size: 0.8rem;
  color: var(--canal);
  background: var(--canal-pale);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}
.contour-figure {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      var(--pine-mid) 0, var(--pine-mid) 2px,
      transparent 2px, transparent 12px);
  opacity: 0.7;
  flex-shrink: 0;
}
.contour-card:nth-child(2) .contour-figure,
.contour-card:nth-child(3) .contour-figure {
  background:
    repeating-radial-gradient(circle at 50% 50%,
      var(--canal) 0, var(--canal) 2px,
      transparent 2px, transparent 12px);
}
.contour-text h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--pine-dark);
}
.contour-text p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .contour-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .contour-figure { width: 4rem; height: 4rem; }
  .contour-track .contour-card:nth-child(2),
  .contour-track .contour-card:nth-child(3),
  .contour-track .contour-card:nth-child(4) {
    margin-left: 0;
  }
  .contour-badge { position: static; display: inline-block; margin-bottom: 0.75rem; }
}

/* ---------- Process strip (waterway timeline) ---------- */
.process-strip {
  background: var(--pine-dark);
  color: #fff;
  padding: 3rem 1.25rem;
}
.process-strip h2 {
  max-width: 1140px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.6rem;
}
.waterway {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 1rem;
  position: relative;
  counter-reset: lock;
  background-image: repeating-linear-gradient(90deg, var(--canal) 0 10px, transparent 10px 20px);
  background-repeat: no-repeat;
  background-position: 2rem 0.9rem;
  background-size: calc(100% - 4rem) 2px;
}
.waterway li {
  counter-increment: lock;
  position: relative;
  flex: 1 1 11rem;
  padding-top: 2.5rem;
  font-size: 0.98rem;
}
.waterway li::before {
  content: counter(lock);
  position: absolute;
  top: 0;
  left: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--canal);
  border: 3px solid var(--pine-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.process-strip strong { color: var(--canal-pale); }

@media (max-width: 700px) {
  .waterway { background-image: none; flex-direction: column; }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin: 3.5rem auto;
  padding: 0 1.25rem;
}
.faq h2 {
  text-align: center;
  font-size: 1.65rem;
  margin-bottom: 2rem;
  color: var(--pine-dark);
}
.faq-item {
  background: var(--card);
  border-left: 4px solid var(--canal);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(22, 51, 31, 0.06);
}
.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.03rem;
  color: var(--pine-dark);
}
.faq-item p { margin: 0; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta-section {
  max-width: 780px;
  margin: 0 auto 3.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--pine);
  color: #fff;
  border-radius: 14px;
}
.cta-section h2 { margin: 0 0 0.75rem; font-size: 1.45rem; }
.cta-section p { margin: 0 0 1.5rem; opacity: 0.95; }
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.02rem;
}
.btn-primary { background: var(--rust); color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; }

/* ---------- Gallery ---------- */
.gallery-strip {
  max-width: 1140px;
  margin: 0 auto 3.5rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery-strip figure { margin: 0; }
.gallery-strip figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 700px) {
  .gallery-strip { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-dark);
  color: #cfe0d3;
  padding: 2.5rem 1.25rem 6rem;
  text-align: center;
  font-size: 0.95rem;
}
.site-footer nav ul {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  flex-wrap: wrap;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }

/* ---------- Mobile CTA bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.mobile-cta {
  flex: 1;
  text-align: center;
  padding: 0.9rem 0;
  text-decoration: none;
  font-size: 1rem;
  color: #fff;
}
.mobile-cta.call { background: var(--canal); }
.mobile-cta.inquiry { background: var(--pine-dark); }

@media (max-width: 780px) {
  .mobile-cta-bar { display: flex; }
}

/* ---------- 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}
