/* ===================================================================
   주차장배수로시공 — 아스팔트 매거진 콘셉트
   Self-contained styles for this page only. Not shared with siblings.
=================================================================== */

:root {
  --primary: #22223B;
  --accent: #F2E9E4;
  --highlight: #C9ADA7;
  --bg: #FAF7F3;
  --ink: #22223B;
  --ink-soft: #4a4a5e;
  --line: #dcd5cd;
  --radius: 2px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-display: swap;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--primary); line-height: 1.3; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section h2 { position: relative; padding-bottom: 14px; }
.section h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 4px;
  background: var(--highlight);
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--primary);
  color: var(--accent);
  padding: 14px 0;
}
.masthead-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--highlight);
}
.brand {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--accent);
  border-bottom: 6px solid var(--primary);
  padding: 48px 0 40px;
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hero .lede {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  max-width: 46em;
  border-left: 4px solid var(--primary);
  padding-left: 18px;
  color: var(--ink);
}

/* ---------- Two column editorial block ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.section-intro {
  max-width: 46em;
  color: var(--ink-soft);
}

/* ---------- Oversized numeral checkpoint list ---------- */
.numbered-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.num-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.num-item:last-child { border-bottom: 1px solid var(--line); }
.num {
  font-weight: 800;
  font-size: clamp(3rem, 16vw, 4.5rem);
  line-height: 1;
  color: var(--highlight);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.num-body h3 { margin-top: 0; }
.num-body p { color: var(--ink-soft); max-width: 52em; }

/* ---------- Spec table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  margin-top: 20px;
  -webkit-overflow-scrolling: touch;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 0.95rem;
}
caption {
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  background: var(--accent);
  color: var(--primary);
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
thead th {
  background: var(--primary);
  color: var(--accent);
  white-space: nowrap;
}
tbody th[scope="row"] { background: #f2ede7; font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}
.gallery-grid figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Notes ---------- */
.note-list {
  margin: 20px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.note-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}
.note-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 10px;
  background: var(--highlight);
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 20px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 4px;
  font: inherit;
  font-weight: 700;
  color: var(--primary);
  text-align: left;
}
.faq-icon { flex-shrink: 0; transition: transform 0.2s ease; color: var(--primary); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}
.faq-a > p { overflow: hidden; margin: 0; }
.faq-item:has(.faq-q[aria-expanded="true"]) .faq-a {
  grid-template-rows: 1fr;
}
.faq-item:has(.faq-q[aria-expanded="true"]) .faq-a > p {
  padding-bottom: 16px;
  color: var(--ink-soft);
}
/* fallback for browsers without :has() -- JS toggles inline max-height */
.faq-a.js-open { grid-template-rows: 1fr; }
.faq-a.js-open > p { padding-bottom: 16px; color: var(--ink-soft); }

/* ---------- Related ---------- */
.related p { color: var(--ink-soft); max-width: 62em; }
.related a { text-decoration: underline; font-weight: 600; }

/* ---------- CTA ---------- */
.cta { background: var(--primary); }
.cta h2 { color: var(--accent); }
.cta h2::after { background: var(--highlight); }
.cta p { color: var(--accent); opacity: 0.85; }
.cta-inner { text-align: left; }
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
}
.btn-solid:hover { background: transparent; color: var(--accent); }

.btn-underline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #16162a;
  color: #cfcadb;
  padding: 40px 0 24px;
}
.site-footer nav { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site-footer ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.site-footer a { color: #cfcadb; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #a9a3bb;
}
.site-footer address a { color: var(--highlight); }
.site-footer p { max-width: 1080px; margin: 16px auto 0; padding: 0 20px; font-size: 0.8rem; color: #857f99; }

/* ---------- Mobile fixed CTA bar ---------- */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.12);
}
.mobile-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  font-weight: 700;
  text-decoration: none;
}
.mobile-cta-tel { background: var(--accent); color: var(--primary); }
.mobile-cta-contact { background: var(--primary); color: var(--accent); }

body { padding-bottom: 56px; }

/* =================== Breakpoints =================== */

@media (min-width: 480px) {
  .section { padding: 64px 0; }
}

@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 40px; }
  .num-item {
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: start;
  }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  .cta-inner h2, .cta-inner p { grid-column: 1; }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .mobile-cta-bar { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 72px 0 60px; }
}

@media (min-width: 1280px) {
  .wrap { padding: 0 32px; }
  .num { font-size: 4.8rem; }
}
