/* ══════════════════════════════════════════
   표쌤코딩 회사소개 페이지
   ══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  background: #f5f7ff;
  color: #0f172a;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 5% 0%, rgba(37,99,235,0.15) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 0%, rgba(124,58,237,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 105%, rgba(37,99,235,0.07) 0%, transparent 55%);
}

.page-wrap { position: relative; z-index: 1; min-height: 100vh; }

/* ── 네비게이션 (메인과 동일) ── */
.navbar {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: min(calc(100% - 40px), 960px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px; border-radius: 20px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(200,215,255,0.6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 24px rgba(99,120,220,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3); flex-shrink: 0;
}
.nav-title strong { display: block; font-size: 0.95rem; font-weight: 800; color: #1e293b; letter-spacing: -0.02em; }
.nav-title small { display: block; font-size: 0.72rem; color: #94a3b8; margin-top: 1px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px;
  border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #64748b;
  text-decoration: none; border: 1px solid rgba(200,215,255,0.7);
  background: rgba(240,245,255,0.6); transition: all 180ms ease;
}
.nav-pill:hover { background: rgba(255,255,255,0.9); color: #2563eb; border-color: rgba(99,130,246,0.3); }
.nav-pill.active { background: rgba(37,99,235,0.08); color: #2563eb; border-color: rgba(37,99,235,0.2); }
.tab-bar-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 20px 0;
  position: relative;
  z-index: 1;
}
.tab-bar {
  display: flex; gap: 6px; margin-bottom: 24px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(210,225,255,0.8);
  border-radius: 16px; padding: 5px;
  width: fit-content;
  backdrop-filter: blur(12px);
}
.tab-btn {
  padding: 9px 22px; border-radius: 12px; font-size: 0.85rem;
  font-weight: 700; border: none; background: transparent;
  color: #94a3b8; cursor: pointer; transition: all 200ms ease;
  letter-spacing: -0.01em; white-space: nowrap;
  font-family: "Noto Sans KR", sans-serif;
}
.tab-btn:hover {
  background: rgba(37,99,235,0.07); color: #2563eb;
}
.tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; box-shadow: 0 3px 12px rgba(37,99,235,0.28);
  pointer-events: none;
}

/* ── 레이아웃 ── */
.layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 60px;
  gap: 32px;
  min-height: 100vh;
}

/* ── 사이드바 ── */
.sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 200ms ease;
  text-align: left;
}

.sidebar-btn:hover {
  background: rgba(37,99,235,0.06);
  color: #2563eb;
}

.sidebar-btn.active {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.08));
  border-color: rgba(37,99,235,0.2);
  color: #2563eb;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}

.sidebar-btn .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}


/* 모바일 하단 통합 내비 */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(215,228,255,0.5);
  box-shadow: 0 -4px 24px rgba(99,120,220,0.08);
  font-family: "Noto Sans KR", sans-serif;
}
/* 페이지 탭 행 */
.mobile-bottom-nav .page-tabs {
  display: flex;
  border-bottom: 1px solid rgba(215,228,255,0.4);
  padding: 6px 8px;
  gap: 2px;
  overflow-x: auto;
}
.mobile-bottom-nav .page-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 600;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
  transition: all 180ms ease;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}
.mobile-bottom-nav .page-tab .tab-icon { font-size: 1.15rem; line-height: 1; }
.mobile-bottom-nav .page-tab.active {
  color: #2563eb;
  font-weight: 700;
  background: rgba(37,99,235,0.06);
}
.mobile-bottom-nav .page-tab:not(.active):active {
  background: rgba(37,99,235,0.05);
}
/* 섹션 전환 행 */
.mobile-bottom-nav .section-tabs {
  display: flex;
  padding: 6px 8px 8px;
  gap: 4px;
  overflow-x: auto;
}
.mobile-bottom-nav .section-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(241,245,249,0.8);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.mobile-bottom-nav .section-tab.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.mobile-bottom-nav .section-tab:not(.active):active {
  background: rgba(226,232,240,0.9);
}

/* ── 메인 콘텐츠 ── */
.main-content {
  flex: 1;
  min-width: 0;
}

/* 섹션 기본 */
.content-section {
  display: none;
  animation: fadeIn 400ms ease;
}
.content-section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 히어로 배너 ── */
.hero-banner {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 24px;
  padding: 48px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.hero-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-banner .company-name {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.hero-banner .slogan {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.03em;
  margin: 0;
}

/* ── 공통 카드 ── */
.card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(215,228,255,0.9);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(99,120,220,0.06);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(99,120,220,0.12); }

.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.card-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }

/* ── 섹션 타이틀 ── */
.section-header {
  margin-bottom: 24px;
}
.section-header .label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 6px;
}
.section-header h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}
.section-header p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

/* ── 미션/비전 카드 ── */
.mv-card {
  text-align: center;
  padding: 32px 24px;
}
.mv-card .mv-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.mv-card .mv-icon.blue { background: rgba(37,99,235,0.1); }
.mv-card .mv-icon.purple { background: rgba(124,58,237,0.1); }
.mv-card .mv-icon.green { background: rgba(16,185,129,0.1); }
.mv-card h3 {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em;
  color: #2563eb; margin: 0 0 10px; text-transform: uppercase;
}
.mv-card p {
  font-size: 0.9rem; color: #475569; line-height: 1.7; margin: 0;
}

/* 핵심가치 태그 */
.values-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px;
}
.value-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: rgba(124,58,237,0.08); color: #6d28d9;
  border: 1px solid rgba(124,58,237,0.18);
}

/* ── 주요 수치 ── */
.metric-card {
  text-align: center;
  padding: 24px 16px;
}
.metric-card .metric-num {
  font-size: 1.6rem; font-weight: 900; color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.metric-card .metric-label {
  font-size: 0.8rem; color: #64748b; margin-top: 6px; font-weight: 600;
}

/* ── 대표 인사말 ── */
.greeting-section {
  display: flex; gap: 32px; align-items: flex-start;
}
.ceo-photo {
  width: 200px; height: 260px; flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
}
.ceo-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.greeting-text {
  flex: 1;
}
.greeting-text .ceo-name {
  font-size: 1.1rem; font-weight: 900; color: #0f172a; margin: 0 0 4px;
}
.greeting-text .ceo-title {
  font-size: 0.8rem; color: #2563eb; font-weight: 700; margin-bottom: 20px;
}
.greeting-text p {
  font-size: 0.92rem; color: #475569; line-height: 1.9; margin: 0;
}

/* ── 연혁 타임라인 ── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #2563eb, #7c3aed, rgba(124,58,237,0.2));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: 3px solid #f5f7ff;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.3);
}
.timeline-year {
  font-size: 1.1rem; font-weight: 900; color: #2563eb; margin-bottom: 8px;
}
.timeline-events {
  list-style: none; padding: 0; margin: 0;
}
.timeline-events li {
  font-size: 0.86rem; color: #475569; line-height: 1.8; padding-left: 16px;
  position: relative;
}
.timeline-events li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%;
  background: #94a3b8;
}
.timeline-placeholder {
  font-size: 0.82rem; color: #94a3b8; font-style: italic;
  padding-left: 16px; margin-top: 8px;
}

/* ── 사업분야 카드 ── */
.biz-card { padding: 28px 24px; }
.biz-card .biz-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.08));
}
.biz-card h3 {
  font-size: 1rem; font-weight: 800; color: #0f172a; margin: 0 0 8px; letter-spacing: -0.02em;
}
.biz-card p {
  font-size: 0.82rem; color: #64748b; line-height: 1.7; margin: 0;
}

/* ── 운영 실적 ── */
.stats-banner {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 20px; padding: 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 28px;
}
.stat-item { text-align: center; color: #fff; }
.stat-num { font-size: 1.8rem; font-weight: 900; }
.stat-label { font-size: 0.78rem; opacity: 0.85; margin-top: 4px; font-weight: 600; }

.placeholder-area {
  background: rgba(255,255,255,0.7);
  border: 2px dashed rgba(148,163,184,0.3);
  border-radius: 16px; padding: 40px;
  text-align: center; color: #94a3b8;
  font-size: 0.85rem; margin-bottom: 28px;
}

/* ── 오시는 길 ── */
.address-card {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 28px; margin-bottom: 20px;
}
.address-card .addr-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.address-card .addr-text h3 { margin: 0 0 2px; font-size: 1rem; font-weight: 800; color: #0f172a; }
.address-card .addr-text p { margin: 0; font-size: 0.85rem; color: #64748b; }

.map-placeholder {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  background: rgba(215,228,255,0.3);
  border: 2px dashed rgba(148,163,184,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 0.85rem; margin-bottom: 24px;
}

.transport-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.transport-card { padding: 22px 20px; }
.transport-card h4 {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em;
  color: #2563eb; margin: 0 0 10px; text-transform: uppercase;
}
.transport-card p {
  font-size: 0.82rem; color: #475569; line-height: 1.7; margin: 0;
}

/* ── 협력기관 로고 흐르기 ── */
.partner-marquee {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  margin-bottom: 28px;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.partner-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: partnerScroll 60s linear infinite;
}
.partner-track:hover { animation-play-state: paused; }
.partner-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0; width: 110px;
}
.partner-item img {
  height: 48px; width: auto; max-width: 100px;
  object-fit: contain;
  padding: 8px;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 300ms;
}
.partner-item:hover img { background: #fff; border-color: #2563eb; box-shadow: 0 2px 12px rgba(37,99,235,0.1); }
.partner-item span {
  font-size: 0.68rem; font-weight: 600; color: #94a3b8;
  text-align: center; white-space: nowrap;
}
@keyframes partnerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── 문의하기 ── */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.contact-item {
  text-align: center; padding: 24px 16px;
}
.contact-item .ci-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.08));
}
.contact-item h4 { font-size: 0.75rem; font-weight: 800; color: #94a3b8; margin: 0 0 4px; letter-spacing: 0.04em; }
.contact-item p { font-size: 0.88rem; font-weight: 700; color: #0f172a; margin: 0; word-break: break-all; }

.contact-form {
  padding: 32px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.78rem; font-weight: 700; color: #475569;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid rgba(215,228,255,0.9);
  border-radius: 12px;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.88rem;
  color: #0f172a;
  background: rgba(255,255,255,0.9);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(37,99,235,0.4);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 36px;
  border: none; border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-family: "Noto Sans KR", sans-serif;
  font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: all 200ms ease;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  margin-top: 8px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.4); }

.form-note {
  font-size: 0.78rem; color: #94a3b8; margin-top: 12px; font-style: italic;
}

/* ── 푸터 ── */
.site-footer {
  margin-top: 60px;
  padding: 32px 0;
  border-top: 1px solid rgba(215,228,255,0.6);
  text-align: center;
}
.footer-info {
  font-size: 0.75rem; color: #94a3b8; line-height: 1.9;
}
.footer-info strong { color: #64748b; font-weight: 700; }

/* ── 반응형 ── */
@media (max-width: 900px) {
  .card-grid-4, .contact-grid, .stats-banner { grid-template-columns: 1fr 1fr; }
  .card-grid-3, .transport-grid { grid-template-columns: 1fr; }
  .greeting-section { flex-direction: column; align-items: center; }
  .ceo-photo { width: 160px; height: 200px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    padding: 16px 16px 40px;
    gap: 0;
  }
  .sidebar { display: none !important; }
  .tab-bar-wrap { display: none; }
  .nav-title { display: none; }
  .mobile-bottom-nav { display: block; }
  .main-content { padding-bottom: 120px; }
  .hero-banner { padding: 32px 24px; }
  .card-grid-2 { grid-template-columns: 1fr; }
}
