@charset "utf-8";
/* ============================================================
   WESCON 홈페이지 공통 스타일
   - 이 파일 하나만 고치면 사이트 전체 색/폰트/간격이 바뀝니다.
   - 페이지별 추가 스타일은 page.css 에 작성하세요.
   ============================================================ */

/* ------------------------------------------------------------
   1. 디자인 토큰 (색상·간격·폰트)
   색을 바꾸고 싶으면 여기 값만 수정하면 전체에 반영됩니다.
   ------------------------------------------------------------ */
:root {
  /* CI 색상 — WESCON 로고에서 추출 */
  --green:        #5bb947;   /* 메인 초록 (로고 워드마크) */
  --green-dark:   #2e7d4f;   /* 진한 초록 */
  --green-light:  #8dd16f;   /* 밝은 초록 */
  --blue:         #29abe2;   /* 하늘색 (로고 심볼) */
  --blue-dark:    #1b5e96;   /* 진한 파랑 */
  --navy:         #16324a;   /* 가장 어두운 네이비 */

  /* 그레이 스케일 */
  --ink:          #1a2329;   /* 본문 글자색 */
  --ink-sub:      #5a6a73;   /* 보조 설명 글자색 */
  --ink-mute:     #8b979e;   /* 흐린 글자색 */
  --line:         #e3e8ea;   /* 구분선 */
  --bg:           #ffffff;   /* 기본 배경 */
  --bg-soft:      #f5f8f7;   /* 연한 배경 (섹션 구분용) */

  /* 그라데이션 — 로고의 초록→파랑 흐름 */
  --grad: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);

  /* 레이아웃 */
  --wrap:         1200px;    /* 콘텐츠 최대 너비 */
  --header-h:     88px;      /* 헤더 높이 */
  --radius:       14px;

  /* 폰트 */
  --font: "Pretendard", "Pretendard Variable", -apple-system,
          "Malgun Gothic", "맑은 고딕", sans-serif;
}

/* 웹폰트 — Pretendard (무료, 상업 이용 가능) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

/* ------------------------------------------------------------
   2. 리셋
   ------------------------------------------------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;   /* 한글이 단어 중간에서 끊기지 않게 */
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a   { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ------------------------------------------------------------
   3. 레이아웃 유틸
   ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}

.section { padding-block: 100px; }
.section--soft { background: var(--bg-soft); }

/* 섹션 제목 묶음 */
.sec-head { margin-bottom: 56px; text-align: center; }
.sec-head__label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sec-head__title { font-size: 40px; letter-spacing: -.02em; }
.sec-head__desc {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-sub);
}

/* 그라데이션 글자 */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(41, 171, 226, .28);
}
.btn--primary:hover { box-shadow: 0 12px 26px rgba(41, 171, 226, .38); }
.btn--line {
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn--line:hover { border-color: var(--green); color: var(--green); }

/* ------------------------------------------------------------
   4. 헤더 / GNB
   ------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.header__logo img { height: 40px; }

/* 1차 메뉴 */
.gnb { display: flex; gap: 8px; }
.gnb__item { position: relative; }
.gnb__link {
  display: block;
  padding: 0 22px;
  line-height: var(--header-h);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color .2s;
}
.gnb__item:hover > .gnb__link,
.gnb__item.is-active > .gnb__link { color: var(--green); }

/* 2차 메뉴 (드롭다운) */
.gnb__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 180px;
  padding: 12px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(22, 50, 74, .12);
  opacity: 0;
  visibility: hidden;
  /* 페이지가 뜨는 순간 메뉴가 깜빡이지 않도록, 준비가 끝난 뒤에만 애니메이션을 켭니다.
     (아래 body.is-ready 규칙에서 켜짐 — include.js 가 클래스를 붙입니다) */
  transition: none;
}
body.is-ready .gnb__sub {
  transition: opacity .22s, transform .22s, visibility .22s;
}
.gnb__item:hover .gnb__sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.gnb__sub a {
  display: block;
  padding: 9px 24px;
  font-size: 15px;
  color: var(--ink-sub);
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.gnb__sub a:hover { color: var(--green); background: var(--bg-soft); }

/* 헤더 우측 (언어 전환) */
.header__util { display: flex; align-items: center; gap: 4px; }
.lang a {
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mute);
  border-radius: 6px;
}
.lang a.is-on { color: var(--green); background: var(--bg-soft); }

/* 모바일 햄버거 버튼 */
.header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}
.header__toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.header__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 본문이 고정 헤더에 가리지 않도록 */
.page { padding-top: var(--header-h); }

/* ------------------------------------------------------------
   5. 서브페이지 공통 (비주얼 + breadcrumb)
   ------------------------------------------------------------ */
.sub-visual {
  position: relative;
  padding-block: 92px;
  background: var(--navy) var(--grad);
  color: #fff;
  text-align: center;
}
.sub-visual__title { font-size: 44px; letter-spacing: -.02em; }
.sub-visual__desc { margin-top: 14px; font-size: 17px; opacity: .88; }

.crumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 14px;
  opacity: .82;
}
.crumb li + li::before { content: "›"; margin-right: 10px; }

/* 서브 탭 (2차 메뉴) */
.sub-tab { border-bottom: 1px solid var(--line); }
.sub-tab ul { display: flex; justify-content: center; flex-wrap: wrap; }
.sub-tab a {
  display: block;
  padding: 20px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-sub);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.sub-tab a:hover { color: var(--green); }
.sub-tab a.is-on { color: var(--green); border-bottom-color: var(--green); }

/* ------------------------------------------------------------
   6. 푸터
   ------------------------------------------------------------ */
.footer {
  padding-block: 60px 50px;
  background: var(--navy);
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__logo img { height: 34px; filter: brightness(0) invert(1); opacity: .9; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { color: rgba(255, 255, 255, .78); font-weight: 500; }
.footer__links a:hover { color: #fff; }
.footer__info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  line-height: 1.9;
}
.footer__copy { margin-top: 20px; font-size: 13px; color: rgba(255, 255, 255, .42); }

/* ------------------------------------------------------------
   7. 반응형 — 태블릿/모바일
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  :root { --header-h: 68px; }

  .header__toggle { display: flex; }

  /* 모바일에서는 GNB를 전체화면 패널로 */
  .gnb {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 60px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s;
  }
  .gnb.is-open { transform: translateX(0); }

  .gnb__link { line-height: 1.6; padding: 18px 4px; font-size: 19px; border-bottom: 1px solid var(--line); }

  /* 2차 메뉴는 아코디언처럼 펼쳐두기 */
  .gnb__sub {
    position: static;
    transform: none;
    min-width: 0;
    padding: 6px 0 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }
  .gnb__sub a { padding: 9px 16px; }

  .section { padding-block: 70px; }
  .sec-head { margin-bottom: 40px; }
  .sec-head__title { font-size: 30px; }
  .sub-visual { padding-block: 64px; }
  .sub-visual__title { font-size: 32px; }
  .sub-tab ul { justify-content: flex-start; overflow-x: auto; }
  .sub-tab a { padding: 16px 20px; white-space: nowrap; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .wrap { padding-inline: 18px; }
  .sec-head__title { font-size: 26px; }
  .btn { padding: 13px 26px; font-size: 15px; }
}
