@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --sans: 'Pretendard', system-ui, -apple-system, sans-serif !important;
  --serif: 'Pretendard', sans-serif !important;
  --bg: #F8FAFC !important;
  --bg-soft: #F1F5F9 !important;
  --bg-dark: #0F172A !important;
  --ink: #0F172A !important;
  --ink-2: #334155 !important;
  --mute: #64748B !important;
  --rule: #E2E8F0 !important;
  --rule-2: #CBD5E1 !important;
  --brand: #1E3A8A !important;
  --brand-2: #1E40AF !important;
  --accent: #B48D3D !important;
  --accent-2: #927131 !important;
  --danger: #EF4444 !important;
  --radius: 16px !important;
  --radius-lg: 32px !important;
}

body {
  font-family: var(--sans);
  letter-spacing: -0.02em;
}

/* Header Glassmorphism */
.site-header {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
  border-bottom: none !important;
  transition: all 0.3s ease;
}

/* Premium Hero Setup */
.hero, .page-hero {
  background: linear-gradient(135deg, #0A192F 0%, #172A45 100%) !important;
  color: #fff !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}
.hero::before, .page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(180, 141, 61, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(30, 58, 138, 0.4) 0%, transparent 50%);
  pointer-events: none;
}
.hero__title, .page-hero h1 {
  color: #F8FAFC !important;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  font-family: var(--sans) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}
.hero__title span { color: #fff !important; }
.hero__title em { color: var(--accent) !important; font-style: normal; }
.hero__lead, .page-hero p { color: #94A3B8 !important; }
.hero__lead strong { color: #F1F5F9 !important; font-weight: 600; }
.page-hero p strong, .page-hero .lede strong, .page-hero strong { color: #F1F5F9 !important; font-weight: 600; }  /* 다크 page-hero 위 강조 strong 복구 (기본 strong{color:var(--ink)}가 다크배경에 묻힘) */
.hero__meta { border-top: 1px solid rgba(255,255,255,0.1) !important; }
.hero__meta strong { color: #F8FAFC !important; font-family: var(--sans) !important; }
.hero__meta span, .crumb, .crumb a { color: #CBD5E1 !important; }

/* Buttons Enhancement */
.cta {
  border-radius: 50px !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: var(--sans) !important;
  font-weight: 700 !important;
}
.cta:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 14px 20px -3px rgba(0,0,0,0.15), 0 6px 8px -2px rgba(0,0,0,0.08); 
}
.cta--primary { background: var(--brand) !important; border: none !important; color: #fff !important; }
.cta--primary:hover { background: var(--brand-2) !important; }
.cta--accent { background: var(--accent) !important; border: none !important; color: #0A192F !important; }
.cta--accent:hover { background: var(--accent-2) !important; }

.hero .cta--primary { background: #fff !important; color: #0A192F !important; }
.hero .cta--ghost { border-color: rgba(255,255,255,0.3) !important; color: #fff !important; background: transparent !important; }
.hero .cta--ghost:hover { background: #fff !important; border-color: #fff !important; color: #0A192F !important; }
.cta--ghost-light, .hero .cta--ghost-light { color: #fff !important; border-color: rgba(255,255,255,0.55) !important; background: transparent !important; }
.cta--ghost-light:hover, .hero .cta--ghost-light:hover { background: #fff !important; border-color: #fff !important; color: #0A192F !important; }

/* Grid Cards & Feature Items */
.feat, .edit-list > li, .edit-list > article, .post, .case, .profile-row {
  background: rgba(255, 255, 255, 0.95) !important;
  padding: 40px !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03), 0 2px 4px -1px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.05) !important;
  border-top: 1px solid rgba(0,0,0,0.05) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.feat:hover, .edit-list > li:hover, .edit-list > article:hover, .post:hover, .case:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  border-color: rgba(30,58,138,0.1) !important;
}
.feat__num, .post__tag, .case__tag {
  background: var(--bg-soft) !important;
  color: var(--brand) !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  display: inline-block !important;
  margin-bottom: 24px !important;
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}

/* Edit List Adjustments */
.edit-list {
  border-top: none !important;
  display: grid !important;
  gap: 20px !important;
}
.edit-list__num {
  color: #E2E8F0 !important;
  font-size: 40px !important;
  font-family: var(--sans) !important;
  font-weight: 800 !important;
  opacity: 0.6;
}

/* Contact / Consult Card */
.consult-card {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%) !important;
  box-shadow: 0 24px 48px -12px rgba(15,23,42,0.3) !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(255,255,255,0.05);
}
.consult-card h2, .consult-card p strong { color: #fff !important; font-family: var(--sans) !important; }
.consult-card p { color: #CBD5E1 !important; }

/* FAQ Styling */
.faq-list details {
  background: #fff !important;
  border-radius: var(--radius) !important;
  margin-bottom: 16px !important;
  padding: 24px 32px !important;
  border: 1px solid var(--rule) !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.faq-list details:first-of-type { border-top: 1px solid var(--rule) !important; }
.faq-list details[open] {
  border-color: rgba(30,58,138,0.3) !important;
  box-shadow: 0 12px 24px -8px rgba(30,58,138,0.1) !important;
  transform: translateY(-2px);
}
.faq-list summary { font-family: var(--sans) !important; font-weight: 700 !important; color: #1E293B !important; }

/* Channels Insights Grid */
.channels { border: none !important; margin: 0 -12px; gap: 16px !important; }
.chan {
  background: #fff !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--rule) !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02) !important;
}
.chan:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 24px -8px rgba(0,0,0,0.1);
  border-color: rgba(30,58,138,0.1) !important;
}

/* Typography Base Overrides */
h1, h2, h3, h4, h5 { font-family: var(--sans) !important; font-weight: 700 !important; color: var(--ink) !important; }
a { color: var(--brand) !important; font-weight: 600; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
a:hover { color: var(--accent) !important; }

.menu a { color: var(--ink) !important; font-weight: 600 !important; }
.menu a:hover { color: var(--brand) !important; }

a.nav__cta, .nav__cta { color: #ffffff !important; background: var(--brand) !important; border-radius: 50px !important; padding: 11px 24px !important; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important; border: none !important; }
a.nav__cta:hover, .nav__cta:hover { color: #ffffff !important; background: var(--brand-2) !important; transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15) !important; }

/* Section Overrides */
.section { padding: 100px 0 !important; }
.section--soft { background: var(--bg-soft) !important; }
.eyebrow { 
  border-bottom: none !important; 
  background: rgba(180, 141, 61, 0.1); 
  padding: 6px 16px !important; 
  border-radius: 20px; 
  letter-spacing: 0.1em; 
  color: var(--accent) !important;
}

/* Offices Section */
.office {
  background: white;
  border-radius: var(--radius);
  padding: 40px !important;
  border: 1px solid var(--rule) !important;
  margin-bottom: 24px;
}
.office address { color: #64748B !important; }
.offices { grid-gap: 24px; border: none !important; }

/* Subtle Intro Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__title, .hero__eyebrow, .hero__lead, .hero__cta, .hero__meta {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__title { animation-delay: 0.1s; }
.hero__lead { animation-delay: 0.2s; }
.hero__cta { animation-delay: 0.3s; }
.hero__meta { animation-delay: 0.5s; }

.page-hero h1 { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.1s; }
.page-hero p { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.2s; }

/* ── 다크 푸터 대비 복구 ──────────────────────────────────────────
   전역 `a{color:var(--brand)!important}`·`h1~h5{color:var(--ink)!important}`가
   다크 네이비 푸터(#0F172A) 위 링크/제목을 남색·동일색으로 묻히게 만든 것을 교정.
   (헤더 .menu a·.cta--*는 이미 복구돼 있고 푸터 인라인 링크/제목만 누락된 패턴) */
.site-footer .foot__col h3 { color: #fff !important; }                 /* 제목 17.9:1 */
.site-footer a,
.site-footer .foot__col a,
.site-footer a[href^="tel"],
.site-footer a[href^="mailto"] { color: rgba(255,255,255,.82) !important; }   /* 링크 12.2:1 */
.site-footer a:hover,
.site-footer .foot__col a:hover { color: #fff !important; }
.site-footer .foot__col a.external::after { color: rgba(255,255,255,.6) !important; }  /* ↗ 화살표 */
.foot__bottom, .foot__bottom * { color: rgba(255,255,255,.62) !important; }   /* 저작권·면책 7:1 */
