/* 공장배수로시공 — industrial concept, self-contained styles */

:root {
  --slate: #2F3E46;
  --slate-deep: #1F2A30;
  --yellow: #FFD60A;
  --bg: #EDEFF0;
  --ink: #22292C;
  --line: #CBD1D3;
  --white: #FFFFFF;
  --font-main: "NanumSquare Neo", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  font-display: swap;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* room for mobile CTA */
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

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

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; }

/* Header */
.site-header {
  background: var(--slate);
  color: var(--white);
  border-bottom: 6px solid var(--yellow);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo-mark { color: var(--yellow); display: inline-flex; }
.logo-text { font-weight: 700; font-size: 1.05rem; }
.brand-link { text-decoration: none; color: inherit; }

/* Hero */
.hero {
  background: var(--slate);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,42,48,.35) 0%, rgba(31,42,48,.72) 100%);
}
.hero-inner { padding: 44px 20px 40px; position: relative; z-index: 1; }
.hero h1 {
  font-size: 1.7rem;
  color: var(--white);
  border-left: 8px solid var(--yellow);
  padding-left: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.hero-lead {
  font-size: 1rem;
  color: #E7E9EA;
  max-width: 640px;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

/* Section bands */
.section { padding: 48px 0; }
.band-light { background: #F5F6F6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 {
  font-size: 1.35rem;
  color: var(--slate);
  position: relative;
  padding-bottom: 10px;
}
h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 5px;
  background: var(--yellow);
}
h3 { font-size: 1.1rem; color: var(--slate); }

/* Zigzag */
.zigzag { display: flex; flex-direction: column; gap: 0; }
.zig-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 4px solid var(--yellow);
}
.zig-block:last-child { border-bottom: none; }
.zig-media picture, .zig-media img { border: 3px solid var(--slate); }
.zig-text p { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 20px 0 10px; border: 2px solid var(--slate); }
table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--white); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
thead th { background: var(--slate); color: var(--white); white-space: nowrap; }
tbody tr:nth-child(even) { background: #F5F6F6; }
.table-note { font-size: .9rem; color: #495157; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img { border: 3px solid var(--slate); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery-grid figcaption {
  margin-top: 8px;
  font-size: .9rem;
  color: var(--slate);
  font-weight: 700;
}

/* Checklist */
.check-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  background: var(--white);
  border-left: 5px solid var(--yellow);
  padding: 12px 14px 12px 32px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 12px; top: 18px;
  width: 8px; height: 8px;
  background: var(--slate);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 2px solid var(--slate); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  min-height: 44px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  text-align: left;
}
.faq-icon { flex: none; transition: transform .2s ease; color: var(--slate); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .2s ease;
  padding: 0 18px;
}
.faq-item.open .faq-a { max-height: 240px; padding-bottom: 16px; }
.faq-a p { margin: 0; color: #3A4448; }

/* CTA */
.cta { background: var(--slate); color: var(--white); text-align: center; }
.cta h2 { color: var(--white); }
.cta h2::after { left: 50%; transform: translateX(-50%); }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta p { max-width: 560px; color: #E7E9EA; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 2px;
  border: 3px solid transparent;
}
.btn-primary { background: var(--yellow); color: var(--slate-deep); border-color: var(--yellow); }
.btn-outline { background: transparent; color: var(--yellow); border-color: var(--yellow); }

/* Footer */
.site-footer {
  background: var(--slate-deep);
  color: #C9CDCE;
  padding: 36px 20px 28px;
  border-top: 6px solid var(--yellow);
  font-size: .9rem;
}
.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  margin: 0 0 20px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.site-footer nav a { color: #D8DADB; text-decoration: none; }
.site-footer nav a:hover { color: var(--yellow); }
.site-footer address {
  font-style: normal;
  max-width: 1080px;
  margin: 0 auto;
  line-height: 1.8;
  border-top: 1px solid #3A454A;
  padding-top: 16px;
}
.site-footer address a { color: var(--yellow); text-decoration: none; }
.site-footer p { max-width: 1080px; margin: 16px auto 0; color: #8B9296; }

/* Mobile fixed CTA */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  background: var(--slate-deep);
  border-top: 3px solid var(--yellow);
  z-index: 40;
}
.mobile-cta .btn { flex: 1; min-height: 44px; }

/* ===== Breakpoints ===== */
@media (min-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  .zig-block { flex-direction: row; align-items: center; gap: 32px; }
  .zig-block.reverse { flex-direction: row-reverse; }
  .zig-media, .zig-text { flex: 1 1 50%; min-width: 0; }
}

@media (min-width: 1024px) {
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .cta-buttons { margin-top: 4px; }
}

@media (min-width: 1280px) {
  .hero-inner { padding: 60px 20px 54px; }
  .section { padding: 64px 0; }
}
