/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

/* PC 전용 네비게이션 (기본: 숨김 — 데스크탑 미디어쿼리에서 표시) */
.pg-nav, .pg-dots { display: none; }

:root {
  --bg:       #EDF2FB;
  --bg-white: #FFFFFF;
  --bg-light: #F4F7FD;
  --navy:     #1B2D6B;
  --navy-dk:  #111E4A;
  --blue:     #4A90D9;
  --blue-md:  #2B5CE6;
  --text-h:   #0D1B4B;
  --text-b:   #3A4A6B;
  --text-m:   #7A88A8;
}

body { font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif; color: var(--text-b); background: var(--bg); overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }

/* ===== BACKGROUND TEXTURE ===== */
.pg, .pg-white, .pg-light {
  background-image: repeating-linear-gradient(
    80deg, transparent 0px, transparent 24px,
    rgba(255,255,255,0.55) 24px, rgba(255,255,255,0.55) 26px
  );
}
.pg       { background-color: var(--bg); }
.pg-white { background-color: var(--bg-white); }
.pg-light { background-color: var(--bg-light); }

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  height: 64px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo span { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 20px; color: #fff; letter-spacing: 1px; }
.nav-links { list-style: none; display: flex; gap: 48px; }
.nav-links a { font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 13px; color: rgba(255,255,255,0.65); letter-spacing: 1px; transition: color 0.2s; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: var(--blue); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: rgba(255,255,255,0.7); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mob-drawer {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 999;
  background: var(--navy-dk); border-top: 1px solid rgba(255,255,255,0.1);
}
.mob-drawer.open { display: block; }
.mob-drawer ul { list-style: none; }
.mob-drawer ul li a { display: block; padding: 16px 40px; color: rgba(255,255,255,0.75); font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.06); transition: background 0.2s, color 0.2s; }
.mob-drawer ul li a:hover { color: #fff; background: rgba(74,144,217,0.12); }

/* ===== DECORATIVE CORNER ELEMENTS ===== */
.deco { position: absolute; pointer-events: none; overflow: hidden; }

.deco-tr { top: 0; right: 0; width: 130px; height: 90px; }
.deco-tr::before, .deco-tr::after { content: ''; position: absolute; height: 120%; }
.deco-tr::before { width: 48px; background: rgba(27,45,107,0.75); right: 48px; top: -10px; transform: skewX(-16deg); }
.deco-tr::after  { width: 38px; background: var(--blue); opacity: 0.85; right: 4px; top: -10px; transform: skewX(-16deg); }
.deco-tr.light::before { background: rgba(74,144,217,0.25); }
.deco-tr.light::after  { background: rgba(74,144,217,0.45); }

.deco-bl { bottom: 0; left: 0; width: 130px; height: 90px; }
.deco-bl::before, .deco-bl::after { content: ''; position: absolute; height: 120%; bottom: -10px; }
.deco-bl::before { width: 48px; background: rgba(27,45,107,0.75); left: 48px; transform: skewX(-16deg); }
.deco-bl::after  { width: 38px; background: var(--blue); opacity: 0.85; left: 4px; transform: skewX(-16deg); }

/* Section positioning context */
section { position: relative; scroll-margin-top: 64px; }

/* ===== SECTION COMMON ===== */
.sec-h {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 68px);
  color: var(--text-h);
  line-height: 1.1;
  margin-bottom: 20px;
}
.sec-h.center { text-align: center; }
.sec-h.white  { color: #fff; }
.sec-body { font-size: 16px; color: var(--text-b); line-height: 1.85; margin-bottom: 24px; }
.eyebrow { font-family: 'Raleway', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 3px; color: var(--blue); margin-bottom: 14px; }
.eyebrow.white { color: rgba(255,255,255,0.7); }

/* ===== HERO ===== */
#hero { min-height: 100vh; padding-top: 64px; display: flex; align-items: center; overflow: hidden; }
.hero-wrap { max-width: 1100px; margin: 0 auto; width: 100%; padding: 60px 40px; display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 0 0 44%; z-index: 1; }
.hero-h {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(60px, 8vw, 110px);
  color: var(--text-h);
  line-height: 0.95;
  margin-bottom: 20px;
  letter-spacing: -2px;
}
.hero-sub { font-size: 17px; color: var(--text-b); line-height: 1.7; margin-bottom: 32px; }
.cta-btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 13px 32px;
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.2s;
}
.cta-btn:hover { background: var(--blue-md); transform: translateY(-2px); }

.hero-img-wrap { flex: 1; min-height: 480px; border-radius: 12px; overflow: hidden; position: relative; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; min-height: 480px; }

/* ===== TWO-COLUMN LAYOUT ===== */
.two-col { max-width: 1100px; margin: 0 auto; width: 100%; padding: 80px 40px; display: flex; gap: 48px; align-items: center; }
.col-rev  { flex-direction: row-reverse; }
.col-text { flex: 1; }
.col-img  { flex: 0 0 42%; }

/* Circular crop image */
.circle-img {
  width: 100%; padding-top: 100%;
  position: relative; border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(27,45,107,0.18);
}
.circle-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Rect image for profile */
.rect-img { width: 100%; border-radius: 16px; object-fit: cover; max-height: 440px; box-shadow: 0 12px 40px rgba(27,45,107,0.18); }

/* Double-image layout */
.col-2img { flex: 0 0 44%; display: flex; gap: 16px; align-items: flex-end; }
.dbl-img { flex: 1; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 32px rgba(27,45,107,0.16); }
.dbl-img-1 { height: 360px; }
.dbl-img-2 { height: 280px; }

/* Info table */
.info-tbl { width: 100%; border-collapse: collapse; margin-top: 8px; }
.info-tbl tr { border-bottom: 1px solid #E0E8F4; }
.info-tbl tr:last-child { border-bottom: none; }
.info-tbl th { text-align: left; padding: 10px 16px 10px 0; font-size: 13px; color: var(--text-m); font-weight: 600; white-space: nowrap; width: 100px; }
.info-tbl td { padding: 10px 0; font-size: 14px; color: var(--text-h); font-weight: 500; }

/* ===== SPLIT SECTION (사업 영역) ===== */
.pg-split { background: none; min-height: 100vh; display: flex; flex-direction: column; }
.split-top { background-color: var(--bg); background-image: repeating-linear-gradient(80deg, transparent 0px, transparent 24px, rgba(255,255,255,0.55) 24px, rgba(255,255,255,0.55) 26px); padding: 72px 40px 32px; }
.split-top .sec-h { max-width: 1000px; margin: 0 auto; }

.split-icons {
  position: relative; z-index: 2;
  width: 100%; max-width: 1300px; margin: 0 auto;
  display: flex; gap: 48px;
  padding: 0 40px;
  box-sizing: border-box;
  justify-content: center;
}
.svc-item { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.svc-circle {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--navy); border: 4px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(27,45,107,0.35);
  margin-bottom: 0; position: relative; z-index: 3;
  transition: transform 0.3s, box-shadow 0.3s;
}
.svc-item:hover .svc-circle { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(27,45,107,0.45); }
.svc-info { background: var(--navy); color: #fff; padding: 70px 20px 36px; border-radius: 0 0 14px 14px; margin-top: -56px; width: 100%; }
.svc-info strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.svc-info p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.8; }

.split-bottom {
  flex: 1;
  background: var(--navy);
  text-align: center; padding: 40px 40px 56px;
}
.split-bottom p { color: rgba(255,255,255,0.75); font-size: 15px; line-height: 1.9; max-width: 800px; margin: 0 auto; }

/* ===== NUMBERED CARDS (대표 프로필) ===== */
.num-card {
  display: flex; gap: 0;
  background: var(--navy);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27,45,107,0.14);
  transition: transform 0.2s, box-shadow 0.2s;
}
.num-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(27,45,107,0.22); }
.nc-num {
  display: flex; align-items: center; justify-content: center;
  width: 56px; flex-shrink: 0;
  background: rgba(0,0,0,0.2);
  color: var(--blue); font-family: 'Raleway', sans-serif;
  font-weight: 700; font-size: 16px;
}
.nc-body { padding: 12px 18px; }
.nc-body strong { display: block; color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.nc-body p { color: rgba(255,255,255,0.7); font-size: 12px; line-height: 1.6; }

/* ===== STATS ===== */
.pg-stats { background: var(--navy); padding: 80px 40px; }
.stats-wrap { max-width: 900px; margin: 0 auto; display: flex; gap: 0; }
.stat { flex: 1; text-align: center; padding: 20px 16px; border-right: 1px solid rgba(255,255,255,0.12); }
.stat:last-child { border-right: none; }
.sn { display: block; font-family: 'Raleway', sans-serif; font-weight: 300; font-size: clamp(42px, 5vw, 64px); color: #fff; line-height: 1; margin-bottom: 12px; }
.sl { display: block; font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ===== PROGRAM ===== */
#program .sec-body { font-size: 24px; }
.prog-label {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 20px; font-weight: 700;
  margin-bottom: 16px;
}
.prog-list { display: flex; flex-direction: column; gap: 10px; }
.prog-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 21px; color: var(--text-b); line-height: 1.5;
}
.pm {
  flex-shrink: 0;
  background: var(--navy); color: var(--blue);
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 17px;
  padding: 4px 10px; border-radius: 4px;
  letter-spacing: 1px;
}

/* ===== CONTACT ===== */
.pg-contact { background: linear-gradient(135deg, #0E1C3E 0%, var(--navy) 100%); padding: 100px 40px; }
#contact .eyebrow { font-size: 18px; }
.contact-wrap { max-width: 1300px; margin: 0 auto; text-align: center; }
.contact-tagline { color: rgba(255,255,255,0.65); font-size: 24px; line-height: 1.8; margin: 0 auto 48px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 800px; margin: 0 auto; }
.cbox {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 3px solid var(--blue);
  border-radius: 8px; padding: 20px 24px;
  text-align: left;
  transition: background 0.2s;
}
.cbox:hover { background: rgba(255,255,255,0.1); }
.cl { display: block; font-size: 17px; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.cv { display: block; font-size: 24px; font-weight: 700; color: #fff; }

/* ===== FOOTER ===== */
footer { background: #060E1E; padding: 24px 40px; text-align: center; }
footer p { color: #4A5A7B; font-size: 11px; line-height: 1.8; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

/* ===== PC: 가로 페이지 전환 ===== */
@media (min-width: 769px) {
  html, body { overflow: hidden; height: 100%; }
  footer { display: none; }

  #pages {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  #pages::-webkit-scrollbar { display: none; }

  #pages > section {
    flex: 0 0 100vw;
    min-width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  #pages > section::-webkit-scrollbar { display: none; }

  /* 히어로 섹션: 수직 중앙 정렬 */
  #hero { display: flex; align-items: center; padding-top: 64px; }

  /* 2~5페이지: 상단 네비바 + 여백 */
  #services, #profile, #program { padding-top: 64px; }
  #about { padding-top: 44px; }

  /* 2페이지: 원형 이미지 0.8× */
  #about .col-img { flex: 0 0 34%; }

  /* 3페이지: 하단 바 고정 높이로, 서비스 카드 위로 공간 확보 */
  #services .split-icons { flex: 1; display: flex; align-items: center; }
  #services .split-bottom { flex: none; margin-top: auto; padding: 24px 40px 28px; }

  /* 프로필 + 통계 통합 섹션 */
  #profile { display: flex; flex-direction: column; }
  #profile .two-col { flex: 1; min-height: 0; padding-top: 24px; padding-bottom: 8px; }
  #profile .sec-h { font-size: 42px; margin-bottom: 16px; }
  #profile .pg-stats { padding: 24px 40px 28px; flex-shrink: 0; }

  /* 연락처 섹션: 수직 중앙 */
  .pg-contact { display: flex; align-items: center; justify-content: center; }
  .pg-contact .contact-wrap { width: 100%; }

  /* ── 페이지 이동 버튼 ── */
  .pg-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 600;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(27,45,107,0.55);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
  }
  .pg-nav:hover { background: var(--navy); transform: translateY(-50%) scale(1.1); }
  .pg-nav:disabled { opacity: 0.2; pointer-events: none; }
  .pg-prev { left: 20px; }
  .pg-next { right: 20px; }

  /* ── 페이지 점 표시 ── */
  .pg-dots {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 600;
  }
  .pg-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(27,45,107,0.25);
    border: 1px solid rgba(27,45,107,0.4);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    padding: 0;
  }
  .pg-dot.active {
    background: var(--navy);
    transform: scale(1.5);
    border-color: var(--navy);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .two-col, .col-rev { flex-direction: column; gap: 40px; }
  .col-rev { flex-direction: column-reverse; }
  .col-img, .col-2img { max-width: 460px; margin: 0 auto; width: 100%; }
  .circle-img { max-width: 340px; margin: 0 auto; }
  .split-icons { flex-direction: column; align-items: center; }
  .svc-item { max-width: none; }
  .stats-wrap { flex-wrap: wrap; }
  .stat { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 24px; }
  .stat:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.12); }
  .stat:last-child      { border-bottom: none; }
  .hero-wrap { flex-direction: column; padding-top: 40px; }
  .hero-img-wrap { width: 100%; min-height: 300px; }
  .hero-h { font-size: 64px; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 0 20px; }
  .two-col, .split-top, .split-bottom { padding-left: 20px; padding-right: 20px; }
  .hero-wrap { padding: 40px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-wrap .stat { min-width: 100%; border-right: none; }
  .pg-contact { padding: 80px 20px; }
  .pg-stats { padding: 60px 20px; }
  .hero-h { font-size: 52px; }
  .sec-h { font-size: 38px; }
  .dbl-img-1 { height: 240px; }
  .dbl-img-2 { height: 180px; }
}
