/* Filab 홈페이지 공통 스타일 */
:root {
  --primary: #1b3a6b;
  --accent: #2f7de1;
  --text: #222;
  --muted: #666;
  --bg: #fff;
  --bg-soft: #f5f7fa;
  --border: #e3e6ea;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand .title { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: .02em; }
.brand .tagline { font-size: .8rem; color: var(--muted); margin-top: -4px; }

.nav ul { list-style: none; display: flex; gap: 32px; }
.nav a { font-weight: 600; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); }

/* 히어로 */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2444 100%);
  color: #fff; text-align: center; padding: 110px 20px;
}
.hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; opacity: .9; max-width: 640px; margin: 0 auto; }

/* 섹션 공통 */
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 2rem; color: var(--primary); margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px 28px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.card h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 12px; }
.card p { color: var(--muted); }

/* 페이지 타이틀 */
.page-title { background: var(--bg-soft); padding: 60px 0; text-align: center; }
.page-title h1 { font-size: 2.2rem; color: var(--primary); }

/* About */
.intro { text-align: center; max-width: 720px; margin: 0 auto 48px; font-size: 1.15rem; }
.intro strong { color: var(--primary); }
.banner { border-radius: 12px; overflow: hidden; margin: 0 auto 64px; }

.capabilities { margin-bottom: 80px; }
.capabilities-head {
  display: flex; align-items: center; gap: 18px; padding-bottom: 16px;
  border-bottom: 4px solid #e4e9f0; margin-bottom: 24px;
}
.capabilities-number {
  display: inline-flex; align-items: center; height: 58px; padding: 0 18px;
  border-left: 10px solid var(--accent); color: var(--primary); font-size: 1.8rem; font-weight: 800;
}
.capabilities-head h2 { color: var(--primary); font-size: 2rem; }
.capabilities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 52px; }
.capability-card {
  min-height: 280px; padding: 34px 26px 28px; border: 1px solid #dce3eb;
  border-left: 10px solid var(--accent); background: #fff; box-shadow: 0 4px 12px rgba(20, 45, 80, .08);
}
.capability-card.featured { background: var(--primary); color: #fff; }
.capability-number { display: block; margin-bottom: 18px; color: var(--accent); font-size: 1.25rem; font-weight: 800; }
.featured .capability-number { color: #bdd2f1; }
.capability-card h3 { margin-bottom: 14px; color: var(--primary); font-size: 1.45rem; line-height: 1.35; }
.capability-card p { color: #71829c; font-size: 1.08rem; line-height: 1.75; }
.capability-card.featured h3 { color: #fff; }
.capability-card.featured p { color: #b8c7dc; }

.timeline { list-style: none; max-width: 720px; margin: 0 auto; border-left: 2px solid var(--border); padding-left: 32px; }
.timeline li { position: relative; padding: 10px 0 10px 8px; }
.timeline li::before {
  content: ""; position: absolute; left: -40px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff;
}
.timeline .year { display: inline-block; min-width: 56px; font-weight: 700; color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info dl { display: grid; grid-template-columns: 90px 1fr; row-gap: 18px; }
.contact-info dt { font-weight: 700; color: var(--primary); }
.contact-info dd a:hover { color: var(--accent); text-decoration: underline; }
.map { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.map-link { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: .9rem; color: var(--muted); text-align: center; }

/* 맨 위로 */
.go-top {
  position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; border: 0; cursor: pointer; font-size: 1.2rem;
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.go-top.show { opacity: 1; visibility: visible; }

/* 반응형 */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-top: 1px solid var(--border); }
  .nav a { display: block; padding: 14px 20px; border-bottom: 0; }
  .hero { padding: 70px 20px; }
  .hero h1 { font-size: 1.9rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; gap: 20px; }
  .capabilities-head h2 { font-size: 1.7rem; }
  .capability-card { min-height: 0; }
}
