/* ============================================================
   Company Overview — Page Specific
   ============================================================ */

/* --- 공통 섹션 래퍼 --- */
.wd-co-section {
  padding: 120px 0;
}

.wd-co-section--gray {
  background: var(--wd-surface-light);
}

.wd-co-section__inner {
  max-width: var(--wd-container-content);
  margin: 0 auto;
  padding: 0 var(--wd-container-padding);
}


/* ============================================================
   섹션 1: 회사개요 인트로
   ============================================================ */
.wd-overview__intro {
  font-size: 18px;
  color: var(--wd-text-secondary);
  line-height: 1.85;
  word-break: keep-all;
  max-width: 800px;
}

.wd-overview__intro strong {
  color: var(--wd-text-primary);
  font-weight: 700;
}


/* ============================================================
   패럴랙스 이미지
   ============================================================ */
.wd-co-parallax {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.wd-co-parallax__bg {
  position: absolute;
  inset: 0;
  background: url('../images/about-1.webp') center center / cover no-repeat;
}

/* 좌우 커튼 오버레이 */
.wd-co-parallax::before,
.wd-co-parallax::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #fff;
  z-index: 1;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wd-co-parallax::before {
  left: 0;
  transform-origin: left center;
}

.wd-co-parallax::after {
  right: 0;
  transform-origin: right center;
}

.wd-co-parallax.is-revealed::before {
  transform: translateX(-100%);
}

.wd-co-parallax.is-revealed::after {
  transform: translateX(100%);
}


/* ============================================================
   기업정보 섹션
   ============================================================ */
.wd-co-info {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.wd-co-info__left {
  flex: 0 0 auto;
  min-width: 280px;
}

.wd-co-info__title {
  font-size: 40px;
  font-weight: 800;
  color: var(--wd-text-primary);
  line-height: 1.4;
  letter-spacing: -0.04em;
  margin-top: 0;
}

.wd-co-info__right {
  flex: 1;
}

.wd-overview__table {
  width: 100%;
  border-top: 2px solid var(--wd-text-primary);
}

.wd-overview__row {
  display: flex;
  border-bottom: 1px solid var(--wd-border-light);
}

.wd-overview__label {
  flex: 0 0 180px;
  padding: 22px 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--wd-text-primary);
}

.wd-overview__value {
  flex: 1;
  padding: 22px 24px;
  font-size: 18px;
  color: var(--wd-text-secondary);
  line-height: 1.7;
  word-break: keep-all;
}


/* ============================================================
   섹션 2: 조직도
   ============================================================ */
.wd-orgchart {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  --oc-line: var(--wd-border-default);
  --oc-accent: #4a5fd7;
  --oc-accent-gradient: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 50%, #3a7bd5 100%);
}

/* ── CEO 원형 노드 ── */
.wd-orgchart__ceo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--oc-accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 8px 32px rgba(74,95,215,0.25);
}

.wd-orgchart__ceo span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 4px;
}

/* ── 수직 연결선 ── */
.wd-orgchart__vline {
  width: 1px;
  background: var(--oc-line);
}

.wd-orgchart__vline--lg { height: 56px; }
.wd-orgchart__vline--md { height: 36px; }
.wd-orgchart__vline--sm { height: 24px; }

/* ── CEO → 경영지원 가로 분기 ── */
.wd-orgchart__branch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wd-orgchart__branch-side {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
}

.wd-orgchart__hline {
  width: 80px;
  height: 1px;
  background: var(--oc-line);
}

/* ── 부서 노드 (파란 배경) ── */
.wd-orgchart__dept {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--oc-accent);
  white-space: nowrap;
  text-align: center;
}

/* 팀 컬럼 안의 dept는 전체 너비 */
.wd-orgchart__col > .wd-orgchart__dept {
  width: calc(100% - 16px);
  margin: 0 8px;
}

/* ── 일반 노드 (하위 팀) ── */
.wd-orgchart__box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wd-text-primary);
  border: 1px solid var(--wd-border-default);
  background: var(--wd-surface-white);
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

/* ── 사업부문장 노드 ── */
.wd-orgchart__mid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 700;
  color: var(--wd-text-primary);
  background: var(--wd-surface-white);
  border: 2px solid var(--oc-line);
  white-space: nowrap;
}

/* ── 팀 가로 배치 ── */
.wd-orgchart__row {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 1000px;
  position: relative;
}

/* 가로 연결선 (팀 상단) */
.wd-orgchart__row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--oc-line);
}

/* 연결점 도트 */
.wd-orgchart__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--oc-line);
  background: var(--wd-surface-white);
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* ── 개별 팀 컬럼 ── */
.wd-orgchart__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 0;
}

.wd-orgchart__col-subs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: calc(100% - 16px);
  margin: 0 8px;
}

.wd-orgchart__col-subs .wd-orgchart__box + .wd-orgchart__box {
  margin-top: 6px;
}


/* ============================================================
   섹션 3: 사업영역
   ============================================================ */
.wd-biz-area {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.wd-biz-area__card {
  display: flex;
  flex-direction: column;
}

.wd-biz-area__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--wd-surface-subtle);
  overflow: hidden;
  border-radius: 0;
}

.wd-biz-area__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd-biz-area__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--wd-text-primary);
  margin-top: 20px;
  letter-spacing: -0.02em;
}

.wd-biz-area__desc {
  font-size: 16px;
  color: var(--wd-text-secondary);
  line-height: 1.7;
  margin-top: 8px;
  word-break: keep-all;
}


/* ============================================================
   Responsive — Tablet (<=1080px)
   ============================================================ */
@media (max-width: 1080px) {
  .wd-co-section { padding: 80px 0; }

  .wd-co-parallax { height: 50vh; min-height: 320px; }

  .wd-co-info { gap: 48px; }
  .wd-co-info__left { min-width: 220px; }
  .wd-co-info__title { font-size: 32px; }

  .wd-overview__label { flex: 0 0 130px; }

  /* 조직도: 가로 스크롤 */
  .wd-orgchart { overflow-x: auto; min-width: 0; padding-bottom: 20px; }
  .wd-orgchart__ceo { width: 130px; height: 130px; font-size: 17px; }
  .wd-orgchart__row { min-width: 700px; }

  /* 사업영역: 2x2 */
  .wd-biz-area {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}


/* ============================================================
   Responsive — Mobile (<=640px)
   ============================================================ */
@media (max-width: 640px) {
  .wd-co-section { padding: 56px 0; }
  .wd-co-section__inner { padding: 0 20px; }

  .wd-co-parallax { height: 40vh; min-height: 260px; }
  .wd-co-parallax__bg { background-attachment: scroll; }

  .wd-co-info { flex-direction: column; gap: 36px; }
  .wd-co-info__left { min-width: auto; }
  .wd-co-info__title { font-size: 26px; }

  .wd-overview__label {
    flex: 0 0 100px;
    font-size: 14px;
    padding: 16px 14px;
  }

  .wd-overview__value {
    font-size: 14px;
    padding: 16px;
  }

  .wd-overview__intro {
    font-size: 15px;
  }

  /* 사업영역: 2열 유지 */
  .wd-biz-area {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .wd-biz-area__title { font-size: 18px; }
}
