@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&family=DM+Serif+Display&display=swap');

/* ═══════════════════════════════════
   변수
═══════════════════════════════════ */
:root {
  --primary:   #1a3a6e;
  --primary-l: #2952a3;
  --accent:    #c8a96e;
  --accent-l:  #f0d898;
  --red:       #c0392b;
  --red-bg:    #fdf0ef;
  --teal:      #1a8a72;
  --teal-bg:   #eaf7f4;
  --gold-bg:   #fdf6e7;
  --bg:        #f4f6fb;
  --white:     #ffffff;
  --text:      #1a2236;
  --muted:     #6b7a99;
  --border:    #dde3ee;
  --radius:    14px;
  --shadow:    0 2px 16px rgba(26,34,54,.07);
  --shadow-lg: 0 10px 40px rgba(26,34,54,.13);
  --header-h:  68px;
}

/* ═══════════════════════════════════
   리셋 & 기본
═══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ═══════════════════════════════════
   공통
═══════════════════════════════════ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 800px; }
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--primary); line-height: 1.25; margin-bottom: 8px;
}
.section-head { text-align: center; margin-bottom: 48px; }

/* ═══════════════════════════════════
   헤더
═══════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 900;
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(26,34,54,.1); }

.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 100%;
  display: flex; align-items: center; gap: 24px;
}

/* 로고 */
.site-logo { display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }
.logo-main { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--primary); letter-spacing: -0.5px; }
.logo-sub  { font-size: 10px; color: var(--muted); letter-spacing: 0.3px; }

/* ═══════════════════════════════════
   데스크탑 NAV
═══════════════════════════════════ */
.site-nav-desktop {
  flex: 1;
}
.nav-list {
  display: flex; list-style: none; gap: 2px; align-items: center;
}
.nav-link {
  display: block; padding: 8px 14px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  border-radius: 8px; transition: all 0.2s; white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--primary); background: rgba(26,58,110,.06); }

/* 드롭다운 */
.nav-has-drop { position: relative; }
.nav-drop {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  list-style: none; min-width: 200px; overflow: hidden; z-index: 200;
}
.nav-has-drop:hover .nav-drop { display: block; }
.nav-drop li a {
  display: block; padding: 12px 18px;
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: background 0.15s;
}
.nav-drop li a:hover { background: var(--bg); color: var(--primary); }
.nav-drop li + li { border-top: 1px solid var(--border); }

/* CTA */
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cta-tel {
  font-size: 13px; font-weight: 600; color: var(--primary);
  padding: 6px 12px; border-radius: 8px; transition: background 0.2s; white-space: nowrap;
}
.cta-tel:hover { background: rgba(26,58,110,.06); }
.cta-btn {
  padding: 9px 18px; background: var(--primary); color: var(--white);
  font-size: 13px; font-weight: 700; border-radius: 100px;
  transition: all 0.2s; white-space: nowrap;
}
.cta-btn:hover { background: var(--primary-l); transform: translateY(-1px); }

/* ═══════════════════════════════════
   햄버거 버튼
   기본은 숨김(display:none) — 640px 이하에서 flex로 표시
═══════════════════════════════════ */
.hamburger {
  display: none;                 /* 데스크탑 숨김 */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: none; border: none; cursor: pointer; padding: 0;
  z-index: 1000;                 /* 모바일 nav(z-index:950)보다 위 */
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
  transform-origin: center;
}
/* X 아이콘 — gap이 6px이므로 첫선→+8px, 셋째선→-8px */
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ═══════════════════════════════════
   모바일 NAV (독립 fixed 패널)
   HTML 위치: </header> 바로 뒤
═══════════════════════════════════ */
.mobile-nav {
  /* 항상 렌더링, transform으로 숨김/표시 */
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 88vw;
  background: var(--white);
  z-index: 950;
  display: flex; flex-direction: column;
  transform: translateX(110%);           /* 오른쪽 바깥 */
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
  overflow-y: auto;
  /* 데스크탑에서는 보이지 않도록 visibility로도 제어 */
  visibility: hidden;
}
.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
}

/* 모바일 nav 헤더 */
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav-title {
  font-size: 15px; font-weight: 700; color: var(--primary);
}
.mobile-nav-close {
  width: 36px; height: 36px;
  background: var(--bg); border: none; border-radius: 50%;
  font-size: 16px; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav-close:hover { background: var(--border); color: var(--text); }

/* 메뉴 목록 */
.mobile-nav-list {
  list-style: none; flex: 1; padding: 8px 0;
}
.mobile-nav-list > li > a {
  display: block; padding: 15px 24px;
  font-size: 15px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-list > li > a:hover { background: rgba(26,58,110,.04); color: var(--primary); }

/* 서비스 그룹 */
.mobile-nav-group { border-bottom: 1px solid var(--border); }
.mobile-nav-label {
  display: block; padding: 15px 24px;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.mobile-nav-sub {
  list-style: none; background: #f8fafc;
}
.mobile-nav-sub li a {
  display: block; padding: 12px 24px 12px 42px;
  font-size: 14px; color: var(--muted);
  border-top: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-sub li a:hover { color: var(--primary); background: rgba(26,58,110,.04); }

/* 하단 연락처 */
.mobile-nav-footer {
  padding: 20px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
}
.mobile-nav-call {
  display: block; padding: 13px; text-align: center;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--primary);
  transition: background 0.2s;
}
.mobile-nav-call:hover { background: var(--border); }
.mobile-nav-consult {
  display: block; padding: 13px; text-align: center;
  background: var(--primary); border-radius: 10px;
  font-size: 14px; font-weight: 700; color: var(--white);
  transition: background 0.2s;
}
.mobile-nav-consult:hover { background: var(--primary-l); }

/* ═══════════════════════════════════
   오버레이
═══════════════════════════════════ */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 940;                   /* mobile-nav(950)보다 아래 */
  visibility: hidden; opacity: 0;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}
.nav-overlay.open { visibility: visible; opacity: 1; }

/* ═══════════════════════════════════
   히어로
═══════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding-top: var(--header-h); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f2347 0%, #1a3a6e 45%, #2058a8 100%);
}
.hero-bg::before {
  content: ''; position: absolute; top:-10%; right:-5%;
  width: 55%; height: 80%;
  background: radial-gradient(circle, rgba(200,169,110,.18) 0%, transparent 65%);
  border-radius: 50%;
}
.hero-bg::after {
  content: ''; position: absolute; bottom:-15%; left:-5%;
  width: 45%; height: 65%;
  background: radial-gradient(circle, rgba(38,198,162,.12) 0%, transparent 65%);
  border-radius: 50%;
}
.hero-content {
  position: relative; z-index: 1; text-align: center; padding: 0 24px;
  animation: fadeUp .7s ease both;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 2px;
  color: rgba(255,255,255,.65); margin-bottom: 16px;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 9vw, 80px);
  color: var(--white); line-height: 1.1; margin-bottom: 20px;
}
.hero-title span { color: var(--accent); }
.hero-desc {
  font-size: 16px; color: rgba(255,255,255,.8);
  font-weight: 300; line-height: 1.8; margin-bottom: 36px;
}
.hero-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  padding: 15px 36px; background: var(--accent);
  color: var(--primary); font-size: 15px; font-weight: 700;
  border-radius: 100px; box-shadow: 0 8px 24px rgba(200,169,110,.4);
  transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(200,169,110,.5); }
.btn-outline {
  padding: 15px 36px; border: 2px solid rgba(255,255,255,.4);
  color: var(--white); font-size: 15px; font-weight: 600;
  border-radius: 100px; transition: all 0.3s;
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: 22px;
  animation: bounce 2s ease-in-out infinite; cursor: pointer; z-index: 1;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════
   서비스
═══════════════════════════════════ */
.services { padding: 100px 0; background: var(--bg); }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card {
  display: block; background: var(--white);
  border: 2px solid var(--border); border-radius: 20px;
  padding: 36px 28px; box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card.s-gold:hover { border-color: var(--accent-l); }
.service-card.s-red:hover  { border-color: #f5c0bc; }
.service-card.s-teal:hover { border-color: #9fdfd4; }
.sc-icon { font-size: 40px; margin-bottom: 14px; }
.sc-name {
  font-family: 'DM Serif Display', serif;
  font-size: 20px; color: var(--primary); margin-bottom: 4px;
}
.sc-desc { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.sc-list { list-style: none; margin-bottom: 24px; }
.sc-list li {
  font-size: 13px; color: var(--text); padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.sc-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.service-card.s-red  .sc-list li::before { color: var(--red); }
.service-card.s-teal .sc-list li::before { color: var(--teal); }
.sc-btn { font-size: 13px; font-weight: 700; color: var(--primary); padding-top: 10px; }
.service-card.s-red  .sc-btn { color: var(--red); }
.service-card.s-teal .sc-btn { color: var(--teal); }

/* ═══════════════════════════════════
   공지사항
═══════════════════════════════════ */
.notices { padding: 80px 0; background: var(--white); }
.notice-list { display: flex; flex-direction: column; }
.notice-item {
  display: flex; gap: 24px; padding: 24px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.notice-item:first-child { border-top: 1px solid var(--border); }
.notice-date {
  flex-shrink: 0; width: 90px;
  font-size: 12px; color: var(--muted); font-weight: 500; padding-top: 3px;
}
.notice-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.notice-body  { font-size: 13px; color: var(--muted); line-height: 1.7; }
.notice-more  { text-align: center; margin-top: 36px; }
.btn-more {
  display: inline-block; padding: 12px 36px;
  border: 2px solid var(--primary); color: var(--primary);
  font-size: 14px; font-weight: 700; border-radius: 100px; transition: all 0.2s;
}
.btn-more:hover { background: var(--primary); color: var(--white); }

/* ═══════════════════════════════════
   About 섹션
═══════════════════════════════════ */
.about { padding: 100px 0; background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-desc { font-size: 15px; color: var(--muted); line-height: 1.9; margin-bottom: 28px; }
.about-points { display: flex; flex-direction: column; gap: 12px; }
.ap-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.ap-icon { font-size: 16px; }
.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px; box-shadow: var(--shadow);
}
.cc-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px; color: var(--primary); margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 2px solid var(--accent-l);
}
.cc-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.cc-icon { font-size: 24px; flex-shrink: 0; }
.cc-label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 1px; margin-bottom: 3px; }
.cc-value { font-size: 16px; font-weight: 700; color: var(--primary); }
a.cc-value:hover { text-decoration: underline; }
.cc-btns { display: flex; gap: 10px; margin-top: 24px; }
.cc-btn-call {
  flex: 1; padding: 13px; text-align: center;
  background: var(--primary); color: var(--white);
  font-size: 14px; font-weight: 700; border-radius: 10px; transition: all 0.2s;
}
.cc-btn-call:hover { background: var(--primary-l); }
.cc-btn-cafe {
  flex: 1; padding: 13px; text-align: center;
  background: #03C75A; color: var(--white);
  font-size: 14px; font-weight: 700; border-radius: 10px; transition: opacity 0.2s;
}
.cc-btn-cafe:hover { opacity: .88; }

/* ═══════════════════════════════════
   푸터
═══════════════════════════════════ */
.site-footer { background: #0f1e3a; color: rgba(255,255,255,.75); padding: 64px 0 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px; color: var(--accent); margin-bottom: 8px;
}
.footer-tagline { font-size: 13px; margin-bottom: 20px; color: rgba(255,255,255,.5); }
.footer-social { display: flex; gap: 8px; }
.social-btn {
  padding: 7px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 700; transition: opacity .2s;
}
.social-btn:hover { opacity: .8; }
.social-btn.naver { background: #03C75A; color: #fff; }
.social-btn.tel   { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.fg-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.fg-links ul { list-style: none; }
.fg-links li + li { margin-top: 10px; }
.fg-links a { font-size: 13px; color: rgba(255,255,255,.65); transition: color .2s; }
.fg-links a:hover { color: var(--white); }
.fg-contact p { font-size: 13px; margin-bottom: 8px; color: rgba(255,255,255,.7); }
.fg-contact a { color: rgba(255,255,255,.7); }
.fg-contact a:hover { color: var(--white); }
.fc-company { font-weight: 600; color: rgba(255,255,255,.9); margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  text-align: center; font-size: 12px; color: rgba(255,255,255,.35);
}

/* ═══════════════════════════════════
   내부 페이지 공통
═══════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #0f2347 0%, #1a3a6e 100%);
  padding: calc(var(--header-h) + 60px) 0 60px; text-align: center;
}
.page-hero .section-eyebrow { color: var(--accent); }
.page-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 5vw, 48px); color: var(--white);
}
.page-content { padding: 80px 0 100px; }

/* 공지사항 */
.empty-msg { text-align: center; color: var(--muted); padding: 60px 0; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--muted); border: 1px solid var(--border); background: var(--white);
  transition: all .15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 회사소개 */
.about-block { margin-bottom: 60px; }
.ab-title { font-family: 'DM Serif Display', serif; font-size: 32px; color: var(--primary); margin-bottom: 16px; line-height: 1.3; }
.ab-desc  { font-size: 15px; color: var(--muted); line-height: 1.9; }
.info-card-wrap { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 60px; }
.info-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 16px; text-align: center; box-shadow: var(--shadow);
}
.ic-icon  { font-size: 32px; margin-bottom: 10px; display: block; }
.ic-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.ic-val   { font-size: 14px; font-weight: 600; color: var(--primary); line-height: 1.5; }
.ic-val a { color: var(--primary); }
.ic-val a:hover { text-decoration: underline; }
.service-intro-list { display: flex; flex-direction: column; gap: 20px; }
.sil-title { font-family: 'DM Serif Display', serif; font-size: 24px; color: var(--primary); margin-bottom: 20px; }
.sil-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border: 2px solid var(--border);
  border-radius: 16px; padding: 28px; box-shadow: var(--shadow); transition: all 0.25s;
}
.sil-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sil-item.gold:hover { border-color: var(--accent-l); }
.sil-item.red:hover  { border-color: #f5c0bc; }
.sil-item.teal:hover { border-color: #9fdfd4; }
.sil-icon { font-size: 36px; flex-shrink: 0; }
.sil-name { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.sil-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.sil-link { font-size: 13px; font-weight: 700; color: var(--primary); }
.sil-item.red  .sil-link { color: var(--red); }
.sil-item.teal .sil-link { color: var(--teal); }

/* ═══════════════════════════════════
   애니메이션
═══════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════
   반응형 — 태블릿 (≤900px)
═══════════════════════════════════ */
@media (max-width: 900px) {
  .service-grid   { grid-template-columns: 1fr 1fr; }
  .about-grid     { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 32px; }
  .info-card-wrap { grid-template-columns: repeat(2,1fr); }
}

/* ═══════════════════════════════════
   반응형 — 모바일 (≤640px)
   핵심: 데스크탑 nav 숨기고 햄버거 표시
   모바일 nav는 .mobile-nav (독립 fixed 요소)
═══════════════════════════════════ */
@media (max-width: 640px) {
  /* 데스크탑 전용 요소 숨김 */
  .site-nav-desktop { display: none; }
  .header-cta       { display: none; }

  /* 햄버거 표시 */
  .hamburger { display: flex; }

  /* 모바일 nav — 640px 이하에서만 활성화
     (데스크탑에서는 visibility:hidden 유지) */
  .mobile-nav {
    /* 이미 기본값으로 visibility:hidden, transform:translateX(110%) 설정됨 */
  }

  /* 레이아웃 */
  .service-grid   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 24px; }
  .info-card-wrap { grid-template-columns: repeat(2,1fr); }
  .notice-item    { flex-direction: column; gap: 6px; }
  .notice-date    { width: auto; }
  .sil-item       { flex-direction: column; }
}

@media (max-width: 400px) {
  .info-card-wrap { grid-template-columns: 1fr; }
}
