/* 현장타설배수로시공 — 어스톤(earth-tone) 테마, 자체 완결형 스타일시트 */

:root{
  --brown: #5C4033;
  --brown-dark: #40291F;
  --sage: #A3B18A;
  --sage-dark: #7E8F65;
  --bg: #FAF6F0;
  --card: #FFFFFF;
  --ink: #2E2420;
  --ink-soft: #5B4E47;
  --border: #E4DACB;
  --radius: 8px;
  --font: "Spoqa Han Sans Neo", "Noto Sans KR", -apple-system, sans-serif;
}

*{ box-sizing: border-box; }

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

body{
  margin: 0;
  font-family: var(--font);
  font-display: swap;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

h1, h2, h3{
  color: var(--brown-dark);
  line-height: 1.35;
  font-weight: 700;
}

h1{ font-size: 1.75rem; margin: 0 0 .6em; }
h2{ font-size: 1.4rem; margin: 0 0 .6em; }
h3{ font-size: 1.1rem; margin: 0 0 .4em; }

a{ color: var(--brown); }
a:hover{ color: var(--sage-dark); }

p{ margin: 0 0 1em; }

ul{ padding-left: 1.2em; }

/* Header */
.site-header{
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand-mark{
  margin: 0;
  font-weight: 700;
  color: var(--brown-dark);
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-block;
}
.main-nav ul{
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.main-nav a{
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Hero */
.hero{
  background: linear-gradient(180deg, #EFE7D8 0%, var(--bg) 100%);
  padding: 48px 0 36px;
  border-bottom: 1px dashed var(--sage-dark);
}
.hero .lead{
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Sections */
.section{ padding: 40px 0; }
.section-intro{ max-width: 68ch; color: var(--ink-soft); }

.divider{
  border: none;
  border-top: 1px dashed var(--sage-dark);
  margin: 0;
}

.fit-list{ list-style: none; padding: 0; display: grid; gap: 16px; }
.fit-list li{
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.fit-list strong{ color: var(--brown-dark); }

/* Timeline */
.timeline{
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  position: relative;
}
.timeline::before{
  content: "";
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--sage-dark) 0 8px,
    transparent 8px 16px
  );
}
.tl-item{
  position: relative;
  padding-left: 56px;
  margin-bottom: 32px;
}
.tl-item:last-child{ margin-bottom: 0; }
.tl-node{
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border);
}
.tl-content{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.tl-step{
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--sage-dark);
  background: #EEF1E7;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.tl-content p{ color: var(--ink-soft); margin-bottom: 0; }

/* Spec table */
.table-wrap{
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
table{
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
}
th, td{
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
thead th{
  background: var(--brown);
  color: #fff;
  font-weight: 700;
}
tbody tr:nth-child(even){ background: #F5EFE4; }
.spec-note{ color: var(--ink-soft); font-size: .92rem; margin-top: 12px; }

/* Gallery */
.gallery-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.gallery-grid figure{
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-grid img{
  display: block;
  width: 100%;
  height: auto;
}
.gallery-grid figcaption{
  padding: 10px 14px;
  font-size: .88rem;
  color: var(--ink-soft);
}

/* Checkpoints */
.check-list{ list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li{
  position: relative;
  padding: 12px 16px 12px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.check-list li::before{
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--sage);
}

/* FAQ */
.faq-item{
  border-bottom: 1px dashed var(--border);
}
.faq-item:last-child{ border-bottom: none; }
.faq-q{
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown-dark);
  padding: 16px 32px 16px 0;
  min-height: 44px;
  position: relative;
}
.faq-q::after{
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--sage-dark);
}
.faq-q[aria-expanded="true"]::after{ content: "\2212"; }
.faq-a{
  padding: 0 0 16px;
  color: var(--ink-soft);
}
.faq-a p{ margin: 0; }

/* Related */
.related p{ max-width: 70ch; color: var(--ink-soft); }

/* CTA */
.cta{
  background: var(--brown);
  color: #fff;
  border-radius: var(--radius);
  margin: 0 20px;
  padding: 40px 24px;
}
.cta .wrap{ max-width: 720px; padding: 0; text-align: center; }
.cta h2{ color: #fff; }
.cta p{ color: #EFE7D8; }
.cta-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 20px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
}
.btn-primary{
  background: var(--sage);
  color: var(--brown-dark);
}
.btn-primary:hover{ background: var(--sage-dark); color: #fff; }
.btn-outline{
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover{ background: rgba(255,255,255,.12); }

/* Footer */
.site-footer{
  background: #EFE7D8;
  border-top: 1px solid var(--border);
  padding: 32px 20px 24px;
  margin-top: 40px;
}
.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{
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .92rem;
}
.site-footer address{
  max-width: 1080px;
  margin: 0 auto 12px;
  font-style: normal;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.8;
}
.site-footer p{
  max-width: 1080px;
  margin: 0 auto;
  color: #8A7B6E;
  font-size: .82rem;
}

/* Mobile fixed CTA bar */
.mobile-cta-bar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0,0,0,.06);
}
.mobile-cta-bar .btn{ flex: 1; }
.mobile-cta-bar .btn-outline{
  background: transparent;
  border-color: var(--brown);
  color: var(--brown);
}

/* Push content above fixed bar on mobile */
main{ padding-bottom: 76px; }

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

@media (min-width: 768px){
  h1{ font-size: 2.1rem; }
  h2{ font-size: 1.65rem; }
  .hero{ padding: 64px 0 48px; }
}

@media (min-width: 1024px){
  main{ padding-bottom: 0; }
  .mobile-cta-bar{ display: none; }

  /* alternating left/right timeline */
  .timeline::before{ left: 50%; margin-left: -1px; }
  .tl-item{ padding-left: 0; width: 50%; }
  .tl-item:nth-child(odd){
    padding-right: 48px;
    text-align: right;
  }
  .tl-item:nth-child(even){
    margin-left: 50%;
    padding-left: 48px;
  }
  .tl-node{
    left: auto;
    right: -22px;
  }
  .tl-item:nth-child(even) .tl-node{
    left: -22px;
    right: auto;
  }
  .tl-item:nth-child(odd) .tl-step{ }
}

@media (min-width: 1280px){
  .wrap{ padding-left: 32px; padding-right: 32px; }
}
