/* ===== Premium Color System ===== */
:root{
  --brand-primary:#96797C;
  --brand-secondary:#A68B8F;
  --brand-gradient:linear-gradient(135deg, #96797C 0%, #A68B8F 100%);
  --brand-weak:#F5F3F4;
  --brand-light:#F9F8F8;
  
  --ink:#0f1419;
  --ink-light:#1a202c;
  --text-primary:#2d3748;
  --text-secondary:#4a5568;
  --text-muted:#718096;
  
  --neutral-50:#f9fafb;
  --neutral-100:#f4f6f8;
  --neutral-200:#e2e8f0;
  --neutral-300:#cbd5e0;
  --neutral-800:#2d3748;
  --neutral-900:#1a202c;
  
  --surface:#ffffff;
  --surface-raised:#ffffff;
  --surface-overlay:rgba(255, 255, 255, 0.95);
  
  --shadow-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl:0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --max-width:1200px;
  --border-radius:12px;
  --border-radius-lg:16px;
}

*{box-sizing:border-box}
body{
  background:var(--neutral-50);
  color:var(--text-primary);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  line-height:1.6;
  margin:0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Base Typography */
.container{max-width:var(--max-width); margin:0 auto; padding:0 20px}
h1,h2,h3,h4,h5,h6{color:var(--ink); font-weight:700; line-height:1.3; margin:0 0 1rem}
p{margin:0 0 1rem; color:var(--text-secondary)}
.muted{color:var(--text-muted)}
a{color:var(--brand-primary); text-decoration:none; transition:color 0.2s ease}
a:hover{color:var(--brand-secondary)}

/* Premium Button System */
.btn{
  display:inline-flex;
  align-items:center;
  padding:12px 24px;
  border-radius:var(--border-radius);
  font-weight:600;
  text-decoration:none;
  transition:all 0.2s ease;
  border:1px solid var(--neutral-300);
  background:var(--surface);
  color:var(--text-primary);
  box-shadow:var(--shadow-sm);
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-md);
  border-color:var(--neutral-400);
}
.btn-primary{
  background:var(--brand-gradient);
  color:white;
  border:1px solid var(--brand-primary);
  box-shadow:var(--shadow);
}
.btn-primary:hover{
  box-shadow:var(--shadow-lg);
  transform:translateY(-2px);
}

/* ===== 상단 얇은 Topbar (우측 유틸 링크 자리) ===== */
.topbar{border-bottom:1px solid var(--line); font-size:14px; color:#8793a3}
.topbar .container{display:flex; justify-content:flex-end; gap:18px; padding:8px 20px}

/* ===== 헤더 탭 스타일 – 밑줄 포커스 (오렌지) ===== */
.mainmenu{gap:48px}
.mainmenu>li>a{height:72px; border-bottom:3px solid transparent; font-weight:800; color:#222}
.mainmenu>li:hover>a,
.mainmenu>li.active>a{border-color:var(--brand); color:#111}

/* ===== 메가메뉴 (가벼운 그림자 + 얇은 구분선) ===== */
.mega{box-shadow:0 20px 60px rgba(16,24,40,.06); border-top:1px solid var(--line)}
.mega-grid{grid-template-columns:repeat(4,1fr); gap:36px}
.mega-col a{padding:8px 0; color:#354052}
.mega-col a:hover{color:#111; text-decoration:underline}
.mega-title{font-size:16px; font-weight:900; margin:0 0 12px}
.vert{width:1px; background:var(--line)}

/* ===== 브레드크럼 ===== */
.breadcrumb{border-bottom:1px solid var(--line); background:#fafcff}
.breadcrumb .container{display:flex; align-items:center; gap:8px; padding:10px 0; font-size:14px; color:#8793a3}
.breadcrumb a{color:#6b7687}
.breadcrumb a:hover{color:#111; text-decoration:underline}
.bc-sep::before{content:"/"; color:#c7d1de}

/* ===== Premium Hero Section ===== */
.hero-cover{
  position:relative;
  overflow:hidden;
}
.hero-cover::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
  z-index:2;
}
.hero-cover .visual{
  aspect-ratio:16/5;
  background-size:cover;
  background-position:center;
  position:relative;
  z-index:1;
  filter:brightness(0.8) contrast(1.2);
}
.hero-cover .title-wrap{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10;
}
.hero-cover .title{
  font-weight:800;
  font-size:clamp(28px,4.5vw,56px);
  color:white;
  text-align:center;
  text-shadow:0 2px 8px rgba(0,0,0,0.5);
  letter-spacing:-0.02em;
  animation:heroFadeUp 0.8s ease-out;
  line-height:1.2;
}

@keyframes heroFadeUp{
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ===== Premium Sections & Layout ===== */
.section{
  padding:80px 0;
  position:relative;
  background:var(--surface);
}
.section:nth-child(even){
  background:var(--neutral-50);
}
.section::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, transparent 0%, var(--neutral-200) 50%, transparent 100%);
}

.twocol{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:48px;
  align-items:start;
}
@media (max-width:980px){.twocol{grid-template-columns:1fr; gap:32px}}

h1,h2{font-weight:800; letter-spacing:-0.025em}
h2{
  font-size:clamp(28px,3.2vw,36px);
  background:var(--brand-gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  margin-bottom:1.5rem;
}

/* ===== Premium Info Table ===== */
.info-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:15px;
  background:var(--surface);
  border-radius:var(--border-radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid var(--neutral-200);
}
.info-table th,.info-table td{
  padding:16px 20px;
  text-align:left;
  border-bottom:1px solid var(--neutral-200);
}
.info-table th{
  width:180px;
  color:var(--text-primary);
  background:var(--neutral-50);
  font-weight:600;
  letter-spacing:-0.01em;
}
.info-table td{
  color:var(--text-secondary);
  font-weight:500;
}
.info-table tr:last-child th,
.info-table tr:last-child td{
  border-bottom:none;
}

/* ===== Premium Card Grid ===== */
.card-grid{
  display:grid;
  gap:24px;
  grid-template-columns:repeat(3,1fr);
  margin-top:32px;
}

.card{
  background:var(--surface);
  border-radius:var(--border-radius-lg);
  overflow:hidden;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:var(--shadow);
  border:1px solid var(--neutral-200);
  position:relative;
  display:block;
  text-decoration:none;
  color:inherit;
}

.card:hover{
  box-shadow:var(--shadow-lg);
  border-color:rgba(150,121,124,0.25);
  text-decoration:none;
  color:inherit;
  transform:translateY(-2px);
}

.card .thumb{
  aspect-ratio:16/9;
  background:var(--neutral-100);
  background-size:cover;
  background-position:center;
  position:relative;
  overflow:hidden;
}

.card .body{
  padding:20px 24px;
  position:relative;
  z-index:2;
}

.card .body h3{
  margin:0 0 8px;
  font-size:20px;
  font-weight:700;
  color:var(--ink);
  letter-spacing:-0.02em;
}

.card .body p{
  margin:0;
  color:var(--text-muted);
  font-size:14px;
  line-height:1.5;
}

@media (max-width:980px){.card-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.card-grid{grid-template-columns:1fr; gap:20px}}
/* ===== Premium Header ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid var(--neutral-200);
  box-shadow:var(--shadow-sm);
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:center;
  height:80px;
  position:relative;
  gap:200px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  font-size:18px;
  color:var(--ink);
  text-decoration:none;
  transition:all 0.2s ease;
}

.logo:hover{
  transform:translateY(-1px);
}

.logo-img{
  height:45px;
  width:auto;
  transition:all 0.2s ease;
}

.logo:hover .logo-img{
  transform:scale(1.05);
}

/* ===== Premium Navigation ===== */
.mainmenu{
  display:flex;
  gap:60px;
  height:80px;
  align-items:center;
  margin:0;
  padding:0;
}

.mainmenu>li{
  list-style:none;
  position:relative;
}

.mainmenu>li>a{
  display:inline-flex;
  align-items:center;
  height:80px;
  padding:0 4px;
  font-weight:700;
  color:var(--text-primary);
  border-bottom:3px solid transparent;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
  font-size:16px;
}

.mainmenu>li>a::after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:0;
  height:3px;
  background:var(--brand-gradient);
  transition:width 0.3s ease;
}

.mainmenu>li:hover>a::after,
.mainmenu>li.active>a::after{
  width:100%;
}

.mainmenu>li:hover>a,
.mainmenu>li.active>a{
  color:var(--ink);
  transform:translateY(-2px);
}

/* ===== Premium Dropdown Menu ===== */
.mainmenu>li{
  position:relative;
}

.dropdown{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  background:var(--surface-overlay);
  backdrop-filter:blur(20px) saturate(180%);
  border:1px solid var(--neutral-200);
  border-radius:var(--border-radius-lg);
  box-shadow:var(--shadow-xl);
  opacity:0;
  transform:translateX(-50%) translateY(-12px);
  pointer-events:none;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width:220px;
  z-index:1000;
  margin-top:4px;
}

.mainmenu>li:hover .dropdown,
.dropdown:hover{
  opacity:1;
  transform:translateX(-50%) translateY(0);
  pointer-events:auto;
}

/* 호버 브릿지 - 메인메뉴와 드롭다운 사이 공백 */
.mainmenu>li::after{
  content:'';
  position:absolute;
  top:100%;
  left:0;
  right:0;
  height:8px;
  z-index:999;
}

.dropdown a{
  display:block;
  padding:12px 20px;
  color:var(--text-secondary);
  font-weight:500;
  transition:all 0.2s ease;
  border-radius:8px;
  margin:4px 8px;
  font-size:14px;
}

.dropdown a:hover{
  color:var(--brand-primary);
  background:var(--brand-light);
  transform:translateX(4px);
}

.dropdown a:first-child{
  margin-top:8px;
}

.dropdown a:last-child{
  margin-bottom:8px;
}

/* ===== Page Header with Background Image ===== */
.page-header{
  position:relative;
  height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--neutral-100);
  overflow:hidden;
}

.page-header::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  z-index:2;
}

.page-header-bg{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  filter:brightness(0.8) contrast(1.1);
  z-index:1;
}

.page-header-content{
  position:relative;
  z-index:3;
  text-align:center;
  color:white;
}

.page-header h1{
  font-size:clamp(32px,4vw,48px);
  font-weight:800;
  margin:0 0 16px;
  color:white;
  text-shadow:0 2px 4px rgba(0,0,0,0.5);
  letter-spacing:-0.02em;
}

.page-header .subtitle{
  font-size:18px;
  font-weight:500;
  color:rgba(255,255,255,0.75);
  text-shadow:0 1px 2px rgba(0,0,0,0.3);
  margin:0;
}

/* ===== Premium Footer ===== */
.site-footer{
  background:linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 100%);
  color:var(--neutral-200);
  padding:60px 0 20px;
  position:relative;
}

.site-footer::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, transparent 0%, var(--brand-primary) 50%, transparent 100%);
}

.foot{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:48px;
  margin-bottom:40px;
}

.foot h3{
  color:white;
  font-weight:800;
  margin-bottom:16px;
  font-size:20px;
}

.foot .muted{
  color:var(--neutral-300);
  line-height:1.6;
}

.foot .muted a{
  color:var(--brand-primary);
  transition:color 0.2s ease;
}

.foot .muted a:hover{
  color:var(--brand-secondary);
}

.legal{
  padding-top:20px;
  border-top:1px solid var(--neutral-700);
  text-align:center;
  color:var(--neutral-400);
  font-size:14px;
}

/* ===== Responsive Design ===== */
@media (max-width:980px){
  .navbar{
    height:72px;
    gap:120px;
  }
  .mainmenu{
    gap:32px;
    height:72px;
  }
  .mainmenu>li>a{
    height:72px;
    font-size:15px;
  }
  .foot{grid-template-columns:1fr; gap:32px}
  .page-header{height:250px}
  .page-header h1{font-size:clamp(28px,5vw,36px)}
}

@media (max-width:640px){
  .navbar{
    gap:60px;
    flex-direction:column;
    height:auto;
    padding:16px 0;
  }
  .mainmenu{
    gap:16px;
    height:auto;
    flex-wrap:wrap;
    justify-content:center;
  }
  .mainmenu>li>a{
    height:auto;
    padding:8px 12px;
    font-size:14px;
  }
  .hero-cover .title{font-size:clamp(24px,8vw,36px)}
  .section{padding:60px 0}
  .foot{gap:24px}
  .page-header{height:200px}
  .page-header h1{font-size:clamp(24px,7vw,32px)}
  .dropdown{
    position:fixed;
    left:50%;
    transform:translateX(-50%);
    width:calc(100vw - 40px);
    max-width:300px;
  }
}

/* ===== Scroll Animations ===== */
@media (prefers-reduced-motion: no-preference){
  .card{
    animation:fadeInUp 0.6s ease-out backwards;
  }
  
  .card:nth-child(2){animation-delay:0.1s}
  .card:nth-child(3){animation-delay:0.2s}
  .card:nth-child(4){animation-delay:0.3s}
}

@keyframes fadeInUp{
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ===== CEO 5-Column Layout with Overlapping Center ===== */
.ceo-layout{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  min-height:600px;
  border-radius:var(--border-radius-lg);
  overflow:hidden;
  position:relative;
}

.ceo-text-section{
  padding:60px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:var(--neutral-50);
  position:relative;
  z-index:2;
}

.ceo-image-section{
  position:relative;
  z-index:1;
}

.ceo-image-background{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  width:100%;
  height:100%;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.ceo-gradient-blend{
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  width:30%;
  background:linear-gradient(
    90deg,
    var(--neutral-50) 0%,
    rgba(249, 250, 251, 0.9) 40%,
    rgba(249, 250, 251, 0.6) 70%,
    rgba(249, 250, 251, 0) 100%
  );
  z-index:2;
}

@media (max-width:980px){
  .ceo-layout{
    grid-template-columns:1fr;
    min-height:auto;
  }
  
  .ceo-text-section{
    padding:50px 40px;
    background:var(--surface);
  }
  
  .ceo-image-section{
    min-height:400px;
  }
  
  .ceo-gradient-blend{
    display:none;
  }
}

@media (max-width:640px){
  .ceo-text-section{
    padding:40px 20px;
  }
  
  .ceo-image-section{
    min-height:300px;
  }
}
