/* ============================================
   (주)열음스퀘어 — opensquare.co.kr
   브랜드 컬러: #106171 (명함·로고 실측값)
   ============================================ */
:root {
  --teal: #106171;
  --teal-dark: #0b4653;
  --teal-tint: #e9f2f4;
  --ink: #1c2b2f;
  --gray: #5c6b70;
  --line: #dfe8ea;
  --bg-soft: #f6f9fa;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  word-break: keep-all;
}

img { max-width: 100%; }
a { color: var(--teal); text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 헤더 ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 6px; }
.brand .brand-name { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.brand .brand-name small { display: block; font-size: 11px; font-weight: 500; color: var(--gray); letter-spacing: 0.06em; }

.gnb { display: flex; flex-wrap: wrap; gap: 4px; }
.gnb a {
  display: block; padding: 8px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.gnb a:hover { background: var(--teal-tint); color: var(--teal-dark); }
.gnb a.active { background: var(--teal); color: #fff; font-weight: 600; }

/* ---------- 히어로 ---------- */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 70%);
  color: #fff;
  padding: 72px 0 64px;
}
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  background: rgba(255,255,255,0.14); border-radius: 100px; padding: 6px 14px; margin-bottom: 20px;
}
.hero h1 { font-size: 34px; line-height: 1.4; font-weight: 700; letter-spacing: -0.02em; max-width: 720px; }
.hero p.sub { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,0.85); max-width: 640px; }
.hero .cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600; transition: opacity .15s;
}
.btn:hover { opacity: 0.88; }
.btn-white { background: #fff; color: var(--teal-dark); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }

/* 서브페이지 헤더 */
.page-head {
  background: var(--teal-tint);
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--teal-dark); }
.page-head p { margin-top: 8px; color: var(--gray); font-size: 16px; max-width: 700px; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.section h2 { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.section .lede { color: var(--gray); margin-bottom: 28px; font-size: 16px; max-width: 720px; }
.sec-label { font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: 0.08em; margin-bottom: 6px; }

/* ---------- 숫자 스탯 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px;
}
.stat .num { font-size: 26px; font-weight: 700; color: var(--teal-dark); letter-spacing: -0.02em; }
.stat .label { margin-top: 4px; font-size: 14px; color: var(--gray); }
.stat .note { margin-top: 2px; font-size: 12px; color: #8fa1a6; }

/* ---------- 카드 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px;
}
.card .card-no { font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 14px; color: var(--gray); }
.card .eg { margin-top: 12px; font-size: 13px; color: var(--teal-dark); background: var(--teal-tint); border-radius: 8px; padding: 8px 10px; }

/* ---------- 배지 ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-size: 14px; font-weight: 600; color: var(--teal-dark);
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 16px;
}
.badge::before { content: "✓ "; color: var(--teal); }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th {
  background: var(--teal-tint); color: var(--teal-dark);
  font-weight: 600; text-align: left; padding: 12px 16px; white-space: nowrap;
}
td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
td .tag {
  display: inline-block; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 2px 8px; white-space: nowrap;
}
.tag.done { background: var(--teal-tint); color: var(--teal-dark); }
.tag.ing  { background: #fef3e2; color: #9a6b1a; }

/* 개요표 (2열 정의형) */
.spec-table table { min-width: 0; }
.spec-table th { width: 160px; white-space: nowrap; }

/* ---------- 기관 리스트 ---------- */
.clients { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.client {
  font-size: 15px; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 18px;
}

/* ---------- 연혁 ---------- */
.timeline { list-style: none; border-left: 2px solid var(--teal-tint); padding-left: 24px; }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--teal-tint);
}
.timeline .tl-date { font-size: 13px; font-weight: 700; color: var(--teal); }
.timeline .tl-title { font-size: 16px; font-weight: 600; margin-top: 2px; }
.timeline .tl-desc { font-size: 14px; color: var(--gray); margin-top: 2px; }

/* ---------- 사례 심화 ---------- */
.case {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 26px; margin-bottom: 18px;
}
.case .case-client { font-size: 13px; font-weight: 700; color: var(--teal); }
.case h3 { font-size: 19px; font-weight: 700; margin: 4px 0 10px; letter-spacing: -0.01em; }
.case p { font-size: 15px; color: var(--gray); }
.case ul { margin: 12px 0 0 18px; font-size: 14.5px; color: var(--ink); }
.case ul li { margin-bottom: 5px; }

/* ---------- 강조 배너 ---------- */
.banner {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: 16px; color: #fff; padding: 34px 30px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.banner .banner-text { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.banner .banner-sub { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* ---------- 문의 폼 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.info-block { font-size: 15px; }
.info-block dt { font-size: 13px; font-weight: 700; color: var(--teal); margin-top: 18px; }
.info-block dd { margin: 2px 0 0; color: var(--ink); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; }
.form-card label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 5px; }
.form-card label:first-of-type { margin-top: 0; }
.form-card input[type="text"], .form-card input[type="email"], .form-card textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; font-size: 15px; font-family: inherit; color: var(--ink); background: #fff;
}
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form-card .agree { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--gray); }
.form-card .agree input { margin-top: 3px; }
.form-card button { margin-top: 18px; width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.form-note { margin-top: 10px; font-size: 12px; color: #8fa1a6; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--teal-dark); color: rgba(255,255,255,0.75);
  padding: 36px 0; margin-top: 40px; font-size: 13.5px;
}
.site-footer .f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-footer .f-brand img { width: 30px; height: 30px; border-radius: 6px; }
.site-footer .f-brand strong { color: #fff; font-size: 15px; }
.site-footer p { margin-bottom: 3px; }
.site-footer .copy { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,0.45); }

/* ---------- 일러스트·사진 ---------- */
.hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-art { width: 320px; flex: none; }
.ph-flex { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ph-art { width: 140px; flex: none; }
.card .icon { width: 52px; height: 52px; margin-bottom: 14px; display: block; }
.card { transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,97,113,0.10); }
.case-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; }
.case-head img { width: 46px; height: 46px; flex: none; }
.case-head h3 { margin: 0; }
.case-photo { width: 100%; border-radius: 10px; margin-top: 16px; border: 1px solid var(--line); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.photo-grid figcaption { font-size: 13px; color: var(--gray); margin-top: 7px; }

/* ---------- 반응형 ---------- */
@media (max-width: 760px) {
  .hero-art, .ph-art { display: none; }
  br.opt { display: none; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 26px; }
  .hero { padding: 52px 0 44px; }
  .page-head h1 { font-size: 24px; }
  .section { padding: 40px 0; }
  .gnb a { padding: 7px 10px; font-size: 14px; }
}
