/* =========================================================
   PRPAGE COMMON.CSS
   공통 스타일
========================================================= */

/* =========================================================
   CSS 변수
========================================================= */

:root {
  /* 기본 색상 */
  --bg: #ffffff;
  --ink: #0b1020;
  --muted: #667085;

  /* 메인 컬러 */
  --p1: #1d4ed8;
  --p2: #2563eb;
  --p3: #38bdf8;
  --b1: #60a5fa;

  /* 공통 스타일 */
  --radius: 18px;

  /* 그림자 */
  --shadow: 0 18px 50px rgba(18, 23, 39, 0.1);
  --shadow2: 0 10px 30px rgba(18, 23, 39, 0.12);

  /* 헤더 높이 */
  --header-h: 74px;
}

/* =========================================================
   Reset
========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;

  font-family:
    "Noto Sans KR",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;

  color: var(--ink);
  background: var(--bg);

  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================================
   공통 레이아웃
========================================================= */

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   헤더 높이 보정
========================================================= */

/* 헤더가 본문 가리는 문제 방지 */
.site-main {
  padding-top: var(--header-h);
}

/* 앵커 이동 위치 보정 */
section,
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* =========================================================
   공통 버튼
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  height: 44px;
  padding: 0 16px;

  border-radius: 12px;

  font-weight: 900;

  border: 1px solid transparent;

  transition: 0.2s ease;

  white-space: nowrap;
}

/* 메인 버튼 */
.btn-primary {
  background: linear-gradient(135deg, var(--p2), var(--p3));

  color: #fff;

  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

/* 보조 버튼 */
.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(15, 23, 42, 0.12);
}

.btn-ghost:hover {
  transform: translateY(-1px);
}

/* 흐린 텍스트 */
.muted {
  color: var(--muted);
}

/* =========================================================
   헤더
========================================================= */

.site-header {
  position: fixed;

  left: 0;
  right: 0;
  top: 0;

  height: var(--header-h);

  z-index: 99999;

  background: rgba(255, 255, 255, 0.72);

  backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* 스크롤시 헤더 그림자 */
.site-header.is-scrolled {
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   헤더 내부
========================================================= */

.header-inner {
  height: var(--header-h);

  display: flex;
  align-items: center;

  gap: 18px;
}

/* =========================================================
   로고
========================================================= */

.brand {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 210px;
}

/* 로고 아이콘 */
.brand-badge {
  width: 40px;
  height: 40px;

  border-radius: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 900;

  color: #fff;

  background: linear-gradient(135deg, var(--p1), var(--b1));

  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

/* 로고 텍스트 */
.brand-text strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.brand-text small {
  display: block;
  font-size: 12px;

  color: var(--muted);

  margin-top: 2px;
}

/* =========================================================
   PC 메뉴
========================================================= */

.nav {
  display: flex;

  gap: 16px;

  margin-left: auto;
  margin-right: 10px;
}

.nav a {
  font-weight: 900;
  font-size: 14px;

  color: rgba(11, 16, 32, 0.8);

  padding: 10px 10px;

  border-radius: 12px;

  transition: 0.2s ease;
}

.nav a:hover {
  background: rgba(37, 99, 235, 0.08);

  color: #1e3a8a;
}

/* =========================================================
   헤더 우측 버튼
========================================================= */

.header-cta {
  display: flex;
  gap: 700px;
}

/* =========================================================
   모바일 햄버거 버튼
========================================================= */

.nav-toggle {
  display: none;

  margin-left: auto;

  width: 44px;
  height: 44px;

  border-radius: 12px;

  border: 1px solid rgba(15, 23, 42, 0.12);

  background: rgba(255, 255, 255, 0.75);

  align-items: center;
  justify-content: center;

  gap: 5px;

  flex-direction: column;
}

/* 햄버거 선 */
.nav-toggle span {
  width: 18px;
  height: 2px;

  background: rgba(15, 23, 42, 0.78);

  border-radius: 3px;
}

/* =========================================================
   모바일 메뉴 - PRPAGE 스타일
========================================================= */

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;

  width: 82%;
  max-width: 340px;
  height: 100vh;

  display: block;

  background:
    radial-gradient(
      circle at top right,
      rgba(56, 189, 248, 0.16),
      transparent 36%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #eef5ff 100%);

  z-index: 9999;

  transform: translateX(100%);
  transition: transform 0.32s ease;

  box-shadow: -18px 0 45px rgba(15, 23, 42, 0.16);

  overflow-y: auto;
}

/* 메뉴 열림 */
.site-header.is-open .mobile-nav {
  transform: translateX(0);
}

/* 메뉴 내부 */
.mobile-nav-inner {
  position: relative;
  min-height: 100%;
  padding: 58px 20px 38px;
}

/* CLOSE 버튼 */
.mobile-close {
  position: absolute;
  top: 18px;
  right: 18px;

  height: 24px;
  padding: 0 12px;

  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 20px;

  background: #fff;

  color: #1e40af;

  font-size: 10px;
  font-weight: 900;

  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);

  cursor: pointer;
}

/* 메뉴 그룹 */
.mobile-menu-group {
  margin-bottom: 24px;
  padding-bottom: 18px;

  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

/* 대메뉴 타이틀 - 왼쪽 정렬 */
.mobile-menu-title {
  margin: 0 0 12px;

  color: #2563eb;

  font-size: 14px;
  font-weight: 900;

  text-align: left;

  letter-spacing: -0.3px;
}

/* 서브메뉴 - 중앙 정렬 */
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 42px;

  margin-bottom: 10px;

  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.74);

  color: #1f2937;

  font-size: 14px;
  font-weight: 800;

  text-align: center;
  text-decoration: none;

  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);

  transition: 0.2s ease;
}

/* 서브메뉴 hover */
.mobile-nav a:hover {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #2563eb;
}

/* 서브메뉴 터치 */
.mobile-nav a:active {
  transform: scale(0.98);
}

/* 온라인 문의 버튼 */
.mobile-online-btn {
  margin-top: 20px !important;

  background: linear-gradient(135deg, var(--p2), var(--p3)) !important;
  border-color: transparent !important;

  color: #fff !important;

  font-weight: 1000 !important;

  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.26) !important;
}

/* 모바일 메뉴 열림 시 본문 스크롤 방지 */
body.is-menu-open {
  overflow: hidden;
}

/* =========================================================
   공통 섹션
========================================================= */

.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 16px;

  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
}

.section-head p {
  margin: 0;
  max-width: 520px;
  font-weight: 700;
}

/* =========================================================
   Footer
========================================================= */

.footer {
  padding: 34px 0;

  background: #0b0f1c;

  color: #fff;
}

/* 푸터 그리드 */
.footer-grid {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  gap: 20px;

  align-items: start;
}

/* 푸터 로고 */
.brand-mini {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* 푸터 흐린글자 */
.footer .muted {
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   반응형
========================================================= */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  /* PC 메뉴 숨김 */
  .nav {
    display: none;
  }

  /* 우측 버튼 숨김 */
  .header-cta {
    display: none;
  }

  /* 모바일 버튼 표시 */
  .nav-toggle {
    display: flex;
  }

  /* 모바일 메뉴 표시 */
  .site-header.is-open .mobile-nav {
    display: block;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 28px);
  }
}

/* =========================================================
   PRPAGE COMMON BLUE TRUST FINAL OVERRIDE
   - 헤더 / 버튼 / 모바일메뉴 블루톤 최종 정리
========================================================= */

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.brand-badge {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.nav a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.mobile-nav {
  background:
    radial-gradient(
      circle at top right,
      rgba(37, 99, 235, 0.14),
      transparent 36%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #eef6ff 100%);
}

.mobile-close {
  border-color: rgba(37, 99, 235, 0.16);
  color: #1d4ed8;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.mobile-menu-group {
  border-bottom-color: rgba(37, 99, 235, 0.12);
}

.mobile-menu-title {
  color: #2563eb;
}

.mobile-nav a {
  border-color: rgba(37, 99, 235, 0.16);
}

.mobile-nav a:hover {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
}

.mobile-online-btn {
  background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24) !important;
}

/* =========================================================
   Mobile Hamburger Menu - Blue Trust Fix
========================================================= */

.mobile-nav {
  background:
    radial-gradient(
      circle at top right,
      rgba(37, 99, 235, 0.14),
      transparent 36%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #eef6ff 100%) !important;
}

.mobile-close {
  border-color: rgba(37, 99, 235, 0.16) !important;
  color: #1d4ed8 !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1) !important;
}

.mobile-menu-group {
  border-bottom-color: rgba(37, 99, 235, 0.12) !important;
}

.mobile-menu-title {
  color: #2563eb !important;
}

.mobile-nav a {
  border-color: rgba(37, 99, 235, 0.16) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: #1f2937 !important;
}

.mobile-nav a:hover {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.24) !important;
  color: #1d4ed8 !important;
}

.mobile-online-btn {
  background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24) !important;
}
