:root {
  --navy: #3d5568;
  --navy-deep: #22323f;
  --green: #657c2e;
  --green-soft: #eef2e4;
  --ink: #1d252c;
  --muted: #5d6973;
  --line: #dde2e6;
  --bg: #ffffff;
  --bg-alt: #f4f6f7;
  --radius: 10px;
  --header-h: 68px;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; color: var(--navy-deep); letter-spacing: -0.01em; }
.brand-text small { font-size: 0.66rem; color: var(--muted); letter-spacing: 0.14em; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.site-nav a:hover, .site-nav a.is-current { color: var(--navy); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-deep); border-radius: 2px; }

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { border: 1px solid var(--line); color: var(--navy-deep); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }

/* 메인 */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #f1f4f6 0%, #fff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.03em; color: var(--navy-deep); }
.hero h1 em { font-style: normal; color: var(--navy); box-shadow: inset 0 -0.32em 0 rgba(101, 124, 46, 0.22); }
.hero-visual { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.lead { margin: 20px 0 30px; font-size: 1.08rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 56px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.hero-stats > div { padding: 20px 24px; border-left: 1px solid var(--line); }
.hero-stats > div:first-child { border-left: 0; }
.hero-stats dt { font-size: 0.85rem; color: var(--muted); }
.hero-stats dd { margin: 4px 0 0; font-size: 1.6rem; font-weight: 700; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.hero-stats dd span + span, .hero-stats dd > span:last-child:not([data-count]) { margin-left: 3px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }

/* 섹션 공통 */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 40px; }
.section-num { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; color: var(--green); letter-spacing: 0.1em; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.02em; color: var(--navy-deep); }
.section-head > p:last-child:not(.section-num) { margin: 8px 0 0; color: var(--muted); }

.sub-title { margin: 56px 0 16px; font-size: 1.2rem; color: var(--navy-deep); }
.sub-title small { margin-left: 8px; font-size: 0.85rem; font-weight: 400; color: #c0392b; }
.note { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }

/* 회사소개 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-text { margin: 0; font-size: 1.08rem; }

.info-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); }
.info-table th, .info-table td { padding: 13px 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.95rem; }
.info-table th { width: 34%; color: var(--muted); font-weight: 500; }

.clients { margin-top: 56px; }
.clients h3 { margin-bottom: 16px; font-size: 1.05rem; color: var(--navy-deep); }
.clients ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.clients li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; background: #fff; }

/* 제품 */
.product-intro { margin: 0 0 40px; max-width: 52em; font-size: 1.05rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.features li { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.features h3 { margin: 16px 0 8px; font-size: 1.12rem; color: var(--navy-deep); }
.features p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--green-soft);
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 표 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.spec-table td { font-size: 1.05rem; font-weight: 600; color: var(--navy-deep); }

.pass {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
}

/* 시공 디테일 */
.detail-grid { display: grid; grid-template-columns: 0.55fr 1fr; gap: 24px; align-items: start; }
.detail-side { display: grid; gap: 24px; }
.detail-card, .case-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.detail-card img { margin: 0 auto; max-height: 560px; width: auto; }
.detail-card figcaption, .case-card figcaption { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }

.caution { padding: 20px 22px; border-left: 4px solid #d98c1f; border-radius: 0 var(--radius) var(--radius) 0; background: #fdf6ea; }
.caution strong { display: block; margin-bottom: 6px; color: #8a5410; }
.caution p { margin: 0; }

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-card img { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; }

/* 인증 */
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cert-card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); }
.cert-card p { margin: 0; }
.cert-type { font-size: 0.85rem; font-weight: 700; color: var(--green); }
.cert-card h3 { margin: 6px 0 8px; font-size: 1.4rem; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.cert-date { margin-top: 12px !important; font-size: 0.88rem; color: var(--muted); }

/* 납품실적 */
.records-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.records-table td:first-child { width: 90px; color: var(--muted); }
.records-table td:nth-child(2) { width: 200px; font-weight: 600; }

/* 오시는 길 */
.section-dark { background: var(--navy-deep); color: #fff; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-num { color: #a9c26a; }
.contact-list { display: grid; gap: 14px; margin: 0 0 32px; }
.contact-list > div { display: flex; gap: 24px; align-items: baseline; }
.contact-list dt { width: 3em; flex-shrink: 0; color: rgba(255, 255, 255, 0.55); font-size: 0.95rem; }
.contact-list dd { margin: 0; font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.site-nav .nav-call {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.site-nav .nav-call:hover { background: var(--navy-deep); color: #fff; }
.section-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.section-dark .btn-ghost:hover { border-color: #fff; }
.section-dark .btn-primary { background: #fff; color: var(--navy-deep); }
.section-dark .btn-primary:hover { background: #e7ecef; }

/* 푸터 */
.site-footer { padding: 32px 0 40px; background: #172229; color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; }
.site-footer p { margin: 4px 0; }
.site-footer strong { color: #fff; }
.site-footer .copy { margin-top: 14px; font-size: 0.8rem; }

/* 반응형 */
@media (max-width: 960px) {
  .hero-inner, .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 520px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div:nth-child(3) { border-left: 0; }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav .nav-call { margin-top: 12px; padding: 12px; border-radius: 8px; text-align: center; }

  .section { padding: 64px 0; }
  .hero { padding: 44px 0 40px; }
  .hero-stats > div { padding: 16px; }
  .hero-stats dd { font-size: 1.3rem; }
  .case-grid, .cert-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
