/* =========================================
   INFRAWIZ - 공통 CSS (common.css)
   모든 페이지에서 공통으로 사용하는 스타일
   ========================================= */

:root {
  --navy:  #1A237E;
  --navy2: #283593;
  --blue:  #1565C0;
  --cyan:  #0288D1;
  --light: #E3F2FD;
  --white: #ffffff;
  --gray1: #f5f7fa;
  --gray2: #eceff1;
  --gray3: #90a4ae;
  --text:  #263238;
  --text2: #546e7a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body { font-family: 'Noto Sans KR', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

/* ── 상단 바 ── */
.topbar {
  background: #080e1d;
  color: rgba(160,190,255,0.7);
  font-size: 11.5px;
  padding: 6px 60px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  border-bottom: 1px solid rgba(100,160,255,0.1);
  letter-spacing: 0.3px;
}
.topbar a { color: rgba(160,190,255,0.7); text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: rgba(255,255,255,0.9); }

/* ── 헤더 ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--gray2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 38px; height: 38px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; color: var(--white); font-size: 18px; letter-spacing: -1px;
}
.logo-text { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 22px; color: var(--navy); letter-spacing: -0.5px; }
.logo-text span { color: var(--cyan); }

nav { display: flex; }
.nav-item { position: relative; }
.nav-item > a {
  display: block; padding: 0 22px; height: 72px; line-height: 72px;
  font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; transition: color 0.2s;
}
.nav-item:hover > a { color: var(--navy); font-weight: 700; }
.nav-item::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 3px; background: var(--navy); transition: left 0.2s, right 0.2s;
}
.nav-item:hover::after { left: 0; right: 0; }
.nav-item.active::after { left: 0; right: 0; }
.nav-item.active > a { color: var(--navy); font-weight: 700; }

.dropdown {
  display: none; position: absolute; top: 72px; left: 0;
  background: var(--white); border: 1px solid var(--gray2);
  border-top: 3px solid var(--navy); min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 200;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 11px 20px; font-size: 14px; color: var(--text2);
  text-decoration: none; border-bottom: 1px solid var(--gray2); transition: background 0.15s, color 0.15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--light); color: var(--navy); font-weight: 500; }

/* ── 공통 섹션 ── */
section { padding: 90px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; background: var(--light); color: var(--navy);
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 14px;
}
.section-title { font-size: 34px; font-weight: 800; color: var(--text); margin-bottom: 14px; letter-spacing: -0.5px; }
.section-desc { color: var(--text2); font-size: 16px; font-weight: 300; line-height: 1.7; }

/* ── 페이지 히어로 (서브페이지용) ── */
.page-hero {
  background-color: #080e1d;
  background-image:
      linear-gradient(rgba(100, 160, 255, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(100, 160, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
  color: var(--white);
  padding: 88px 40px;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% -10%, rgba(21, 101, 192, 0.3) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #f5f7fa);
  pointer-events: none;
}
.page-hero h1, .page-hero p {
  position: relative;
  z-index: 1;
}
.page-hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.page-hero p { font-size: 15px; color: rgba(255,255,255,0.7); font-weight: 300; }
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px;
  background: var(--gray1);
  border-bottom: 1px solid var(--gray2);
  font-size: 13px;
  color: var(--text2);
}
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── 버튼 ── */
.btn-primary {
  background: rgba(255,255,255,0.95);
  color: #0d1b4b;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  letter-spacing: 0.2px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,255,255,0.2); background: #fff; }
.btn-outline {
  border: 1.5px solid rgba(100,160,255,0.5);
  color: rgba(255,255,255,0.85);
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 400;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(100,160,255,0.12); border-color: rgba(100,160,255,0.8); }
.btn-navy {
  background: var(--navy); color: var(--white);
  padding: 12px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-navy:hover { background: var(--navy2); transform: translateY(-1px); }

/* ── 푸터 ── */
footer { background: #0d1b4b; color: rgba(255,255,255,0.6); padding: 50px 40px 30px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.footer-logo span { color: #80deea; }
.footer-info { font-size: 13px; line-height: 2; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); font-size: 13px; text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px; margin: 24px auto 0;
  font-size: 12px; display: flex; justify-content: space-between; align-items: center;
}
/* ==========================
   햄버거 메뉴 버튼 (모바일 전용)
   ========================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
  z-index: 300;
}
.hamburger:hover { background: var(--gray2); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 네비게이션 오버레이 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  z-index: 250;
  overflow-y: auto;
  padding: 16px 0 40px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav.open {
  display: block;
  transform: translateX(0);
  animation: slideIn 0.3s ease forwards;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0.8; }
  to   { transform: translateX(0);    opacity: 1; }
}
.mobile-nav-item {
  border-bottom: 1px solid var(--gray2);
}
.mobile-nav-item > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav-item > a:hover { color: var(--navy); }
.mobile-nav-item > a .arrow {
  font-size: 12px;
  color: var(--gray3);
  transition: transform 0.25s;
}
.mobile-nav-item.sub-open > a .arrow { transform: rotate(90deg); }
.mobile-sub {
  display: none;
  background: var(--gray1);
  padding: 8px 0;
}
.mobile-nav-item.sub-open .mobile-sub { display: block; }
.mobile-sub a {
  display: block;
  padding: 11px 36px;
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.mobile-sub a:hover {
  color: var(--navy);
  border-left-color: var(--navy);
  background: var(--light);
}
.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  margin-top: 8px;
}

/* ==========================
   Mobile Responsive
   ========================== */
@media (max-width: 768px) {

  .topbar {
    display: none !important;
  }

  .header-inner {
    padding: 0 16px;
    height: 60px;
  }

  .logo-text {
    font-size: 18px;
  }

  /* PC 네비게이션 숨김 */
  header nav {
    display: none !important;
  }

  /* 햄버거 버튼 표시 */
  .hamburger {
    display: flex;
  }

  /* 공통 섹션 패딩 */
  section {
    padding: 56px 20px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-desc {
    font-size: 14px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  /* page-hero (서브페이지) */
  .page-hero {
    padding: 60px 20px;
  }
  .page-hero h1 { font-size: 26px; }
  .page-hero p  { font-size: 14px; }

  .breadcrumb { padding: 12px 20px; }

  /* 푸터 */
  footer {
    padding: 40px 20px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
