/* 고양배수로시공 — editorial magazine style
   font: Noto Serif KR / ink #202A44 / accent #EF8354 */

:root {
  --ink: #202A44;
  --ink-soft: #4A5470;
  --accent: #EF8354;
  --paper: #FAF7F2;
  --paper-alt: #F1ECE3;
  --rule: #D8D1C4;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 3px double var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.main-nav { display: none; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.hamburger {
  width: 40px;
  height: 34px;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  display: block;
}

.mobile-nav {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
}
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  font-size: 1.02rem;
}

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

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 900;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.hero .lead {
  max-width: 640px;
  margin: 0 auto 2.25rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.9;
}
.hero-media {
  margin: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 1.5rem 0;
}
.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- magazine grid ---------- */
.magazine-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.grid-card {
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
}
.magazine-grid > .grid-card:first-child { border-top: none; }

.card-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.grid-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.grid-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}
.grid-card p:last-child { margin-bottom: 0; }

.card-media {
  margin: 0 0 1.25rem;
}
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
}

@media (min-width: 860px) {
  .magazine-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
  }
  .grid-card { border-top: 1px solid var(--rule); }
  .magazine-grid > .grid-card:nth-child(-n+2) { border-top: none; }
  .span-2 { grid-column: 1 / -1; }
}

/* ---------- checkpoint card ---------- */
.checkpoint-card {
  background: var(--paper-alt);
  border-top: 1px solid var(--rule) !important;
  padding: 2.25rem 2rem;
  margin-top: 0.5rem;
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.75rem;
  border-bottom: 1px dashed var(--rule);
  color: var(--ink);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.6rem;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- faq card ---------- */
.faq-card { padding: 2.25rem 0; }
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  padding: 1rem 1.75rem 1rem 0;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 0.1rem;
  top: 1rem;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}
.faq-q[aria-expanded="true"]::after { content: "\2212"; }
.faq-a {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  padding-right: 1.75rem;
}
.faq-item h3 { margin: 0; }

/* ---------- CTA ---------- */
.cta-block {
  max-width: var(--max);
  margin: 1rem auto 3rem;
  padding: 3rem 1.25rem;
  text-align: center;
  background: var(--ink);
  color: #F4EFE6;
  border-radius: 4px;
}
.cta-block h2 {
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}
.cta-block p {
  margin: 0 0 1.75rem;
  color: #C9CFDE;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 2px;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #202A44;
}
.btn-outline {
  border-color: #F4EFE6;
  color: #F4EFE6;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 3px double var(--ink);
  padding: 2.5rem 1.25rem 6rem;
  max-width: var(--max);
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
}
.site-footer nav a { text-decoration: none; color: var(--ink); }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer address a { color: var(--accent); text-decoration: none; }

@media (min-width: 860px) {
  .site-footer { padding-bottom: 2.5rem; }
}

/* ---------- mobile CTA bar ---------- */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  z-index: 150;
  box-shadow: 0 -2px 10px rgba(32, 42, 68, 0.15);
}
.mobile-cta {
  flex: 1;
  text-align: center;
  padding: 0.95rem 0;
  text-decoration: none;
  font-weight: 700;
}
.mobile-cta.call { background: var(--ink); color: #fff; }
.mobile-cta.inquiry { background: var(--accent); color: #202A44; }

@media (min-width: 860px) {
  .mobile-cta-bar { display: none; }
}
