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

/* ━━━ CSS 변수 (금색 테마: 전문성과 신뢰감을 주는 Deep Gold) ━━━ */
:root {
  --primary: #af8f42;        /* 품격 있는 골드 */
  --primary-dark: #8e7035;   /* 깊이 있는 골드 */
  --secondary: #2c3e50;      /* 신뢰감을 주는 네이비 그레이 */
  --accent: #d4af37;         /* 강조용 밝은 골드 */
  --text: #2c3e50;
  --bg: #ffffff;
  --header-h: 70px;
  --transition: all 0.3s ease;
}

/* ━━━ 리셋 ━━━ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
  font-family: 'Inter', 'Noto Sans KR', sans-serif; 
  color: var(--text); 
  line-height: 1.6;
  word-break: keep-all;
}

/* ━━━ 헤더 ━━━ */
header {
  position: fixed; top:0; left:0; width:100%;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 1000;
  transition: background 0.3s;
}
header.scrolled { background:#fff; box-shadow:0 2px 20px rgba(0,0,0,0.12); }

.logo {
  font-size:1.4rem; font-weight:700; color:var(--primary);
  text-decoration:none; white-space:nowrap; flex-shrink:0;
  letter-spacing: -0.5px;
}

nav { display:flex; align-items:center; }
.nav-menu {
  display:flex; align-items:center; gap:2rem;
  list-style:none; margin:0; padding:0;
}
.nav-menu a {
  font-size:0.95rem; font-weight:500; color:var(--text);
  text-decoration:none; transition:color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color:var(--primary); }

.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:var(--text); transition:transform 0.3s; }

@media(max-width:768px){
  .hamburger { display:flex; }
  .nav-menu {
    display:none; position:fixed; top:var(--header-h); left:0; right:0;
    background:#fff; flex-direction:column; gap:0; padding:1rem 0;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-menu.open { display:flex; }
  .nav-menu li { width:100%; text-align:center; padding:0.75rem 0; }
}

/* ━━━ 히어로 슬라이더 ━━━ */
.hero {
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  min-height: 800px;
  max-height: 1000px;
  height: 90vh;
  overflow: hidden;
}
.hero-slider { position:relative; width:100%; height:100%; }
.hero-slide {
  position:absolute; inset:0;
  opacity:0; transition:opacity 0.8s ease;
  background-size:cover; background-position:center;
  display:flex; align-items:center; justify-content:center;
}
.hero-slide.active { opacity:1; z-index:1; }
.hero-slide::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}
.hero-content {
  position:relative; z-index:2;
  text-align:center; color:#fff;
  padding:calc(var(--header-h) + 1rem) 1.5rem 1.5rem; max-width:800px;
}
.hero-content h2 {
  font-size:clamp(1.8rem,5vw,3.2rem); font-weight:800;
  margin-bottom:1rem; line-height:1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size:clamp(1rem,2.5vw,1.2rem);
  margin-bottom:2rem; opacity:0.9;
  font-weight: 300;
}
.hero-prev, .hero-next {
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:10; background:rgba(255,255,255,0.15);
  border:1px solid rgba(255,255,255,0.4);
  color:#fff; font-size:2rem; line-height:1;
  width:52px; height:52px; border-radius:50%;
  cursor:pointer; transition:all 0.25s;
  display:flex; align-items:center; justify-content:center;
  backdrop-filter: blur(4px);
}
.hero-prev:empty::before { content:'‹'; margin-right: 2px; }
.hero-next:empty::before { content:'›'; margin-left: 2px; }
.hero-prev { left:1.5rem; }
.hero-next { right:1.5rem; }
.hero-prev:hover, .hero-next:hover {
  background:var(--primary);
  border-color:var(--primary);
  transform:translateY(-50%) scale(1.1);
}
.hero-dots {
  position:absolute; bottom:2rem;
  left:50%; transform:translateX(-50%);
  z-index:10; display:flex; gap:12px;
}
.hero-dot {
  width:10px; height:10px; border-radius:50%;
  background:rgba(255,255,255,0.4);
  border:none; cursor:pointer;
  transition:all 0.3s;
}
.hero-dot.active { background:var(--primary); transform:scale(1.3); width: 24px; border-radius: 5px; }

/* ━━━ 섹션 공통 ━━━ */
section { padding:100px 0; width:100%; }
section:nth-of-type(even) { background:#fcfaf5; }
.container { max-width:1200px; width:92%; margin:0 auto; }
.section-header { text-align:center; margin-bottom:4rem; }
.section-header h2 {
  font-size:clamp(1.6rem,3vw,2.4rem); font-weight:700;
  margin-bottom:1rem; color:var(--primary);
  position: relative; display: inline-block;
}
.section-header h2::after {
  content: ''; display: block; width: 40px; height: 3px; 
  background: var(--primary); margin: 15px auto 0;
}
.section-header p { font-size:1.05rem; color:#666; max-width:640px; margin:0 auto; line-height:1.7; }

/* ━━━ 카드 ━━━ */
.card-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  width:100%;
}
.card-grid:has(.card:first-child:nth-last-child(2)) {
  grid-template-columns:repeat(2,1fr);
  max-width: 800px; margin-left: auto; margin-right: auto;
}
@media(max-width:900px)  { .card-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:580px)  { .card-grid { grid-template-columns:1fr; } }

.card {
  background:#fff; border-radius:16px;
  box-shadow:0 4px 20px rgba(0,0,0,0.05);
  overflow:hidden; transition:transform 0.3s, box-shadow 0.3s;
  display:flex; flex-direction:column; text-align:center;
  border: 1px solid rgba(175, 143, 66, 0.1);
}
.card:hover { transform:translateY(-10px); box-shadow:0 15px 40px rgba(175, 143, 66, 0.15); }
.card-img { width:100%; aspect-ratio:16/9; object-fit:cover; }
.card-icon-wrap { padding:2.5rem 2rem 0.5rem; font-size:3rem; display:flex; justify-content:center; color: var(--primary); }
.card-icon-wrap img { width:64px; height:64px; object-fit:contain; margin:0 auto; }
.card-body { padding:1.25rem 1.75rem 2.5rem; flex:1; display:flex; flex-direction:column; align-items:center; }
.card-body h3 { font-size:1.2rem; font-weight:700; margin-bottom:0.8rem; color:var(--secondary); }
.card-body p { font-size:0.95rem; color:#666; line-height:1.7; flex:1; text-align:center; }

/* ━━━ 통계 ━━━ */
.stats-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:2.5rem; text-align:center; width:100%;
}
.stat-item { padding:2rem 1rem; border-bottom: 3px solid transparent; transition: var(--transition); }
.stat-item:hover { border-bottom-color: var(--primary); }
.stat-number { display:block; font-size:clamp(2.5rem,5vw,4rem); font-weight:800; color:var(--primary); line-height:1; margin-bottom: 0.5rem; }
.stat-label { font-size:1rem; color:#444; font-weight: 500; display:block; }

/* ━━━ 프로세스 ━━━ */
.process-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:2rem; width:100%; text-align:center;
}
.process-step { text-align:center; padding:2rem 1.5rem; position: relative; }
.process-num {
  width:65px; height:65px; border-radius:50%;
  background: var(--primary); color:#fff;
  font-size:1.4rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(175, 143, 66, 0.3);
}
.process-step h3 { font-size:1.1rem; font-weight:700; margin-bottom:0.7rem; color: var(--secondary); }
.process-step p { font-size:0.9rem; color:#666; line-height:1.7; }

/* ━━━ 텍스트+이미지 ━━━ */
.text-image-wrap { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; width:100%; }
.text-image-wrap .text-content { display:flex; flex-direction:column; gap:1.2rem; }
.text-image-wrap .text-content h3 { font-size:1.6rem; font-weight:700; color:var(--primary); }
.text-image-wrap .text-content p { font-size:1.05rem; color:#555; line-height:1.8; }
.text-image-wrap img { width:100%; border-radius:16px; box-shadow:0 10px 30px rgba(0,0,0,0.1); object-fit:cover; }
@media(max-width:768px) { .text-image-wrap { grid-template-columns:1fr; gap:3rem; } }

/* ━━━ 버튼 ━━━ */
.btn-primary, .btn-secondary, .btn-outline {
  display:inline-block; padding:0.9rem 2.2rem;
  border-radius:6px; font-size:1rem; font-weight:600;
  text-decoration:none; cursor:pointer; border:2px solid transparent;
  transition:all 0.3s; text-align: center;
}
.btn-primary { background:var(--primary); color:#fff; border-color:var(--primary); }
.btn-primary:hover { background:var(--primary-dark); border-color:var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background:var(--secondary); color:#fff; }
.btn-secondary:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-outline { background:transparent; color:#fff; border-color:#fff; }
.btn-outline:hover { background:#fff; color:var(--primary); }

/* ━━━ 애니메이션 ━━━ */
.fade-in-up { opacity:0; transform:translateY(30px); transition:opacity 0.8s ease, transform 0.8s ease; }
.fade-in-up.visible { opacity:1; transform:translateY(0); }

/* ━━━ 푸터 ━━━ */
footer {
  background:#1a1a1a; color:rgba(255,255,255,0.6);
  padding:4rem 0 2rem; text-align:center; width:100%;
}
footer * { text-align:center !important; }
.footer-tagline { font-size:1.2rem; color:var(--primary); font-weight:700; margin-bottom:1.2rem; }
.footer-info { font-size:0.9rem; line-height:2; margin-bottom:2rem; opacity:0.8; }
.footer-copy {
  font-size:0.85rem; opacity:0.4;
  border-top:1px solid rgba(255,255,255,0.08);
  padding-top:2rem; margin-top:2rem;
  letter-spacing: 0.5px;
}

/* ━━━ 프린트 설정 ━━━ */
@media print {
  header, .hero-prev, .hero-next, .hero-dots, .btn-primary, .btn-secondary { display:none !important; }
  .hero { max-height:400px; min-height:auto; height: 400px; }
  body { color: #000; }
  section { padding: 40px 0; }
}