/* ============================================
   StoLift Korea - 공통 스타일
   디자인 컨셉: 귀엽고 고급스러운 캐릭터 IP 브랜드
   컬러: Black + Butter Yellow + Cream White
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --black: #111111;
  --deep-black: #000000;
  --yellow: #F5C842;
  --yellow-light: #FDE98B;
  --yellow-dark: #D4A800;
  --cream: #FAFAF6;
  --cream-2: #F5F4EE;
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #EBEBEB;
  --gray-400: #AAAAAA;
  --gray-600: #666666;
  --gray-800: #333333;

  --font-main: 'Noto Sans KR', 'Pretendard', sans-serif;
  --font-display: 'Playfair Display', 'Noto Serif KR', serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);

  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  --container: 1200px;
  --container-sm: 880px;
  --nav-height: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.text-display {
  font-family: var(--font-display);
  font-style: italic;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 56px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
}

.btn-yellow:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(245, 200, 66, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  padding: 10px 20px;
}

.btn-ghost:hover {
  background: var(--cream-2);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-logo-text span {
  color: var(--yellow-dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  background: var(--yellow);
  color: var(--black);
}

.nav-cta {
  padding: 9px 22px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--gray-800);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 24px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}

.mobile-menu.open {
  display: flex;
}

.mobile-nav-link {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: all var(--transition);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--yellow-light);
  color: var(--black);
}

/* ---------- Section Headers ---------- */
.section-header {
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--black);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-title em {
  color: var(--yellow-dark);
  font-style: normal;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 540px;
}

.section-header.center .section-subtitle {
  margin: 0 auto;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Character Cards ---------- */
.char-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.char-card:hover {
  border-color: var(--yellow);
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(245,200,66,0.25);
}

.char-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--cream);
  padding: 8px;
  margin-bottom: 16px;
  transition: transform var(--transition);
}

.char-card:hover img {
  transform: scale(1.08);
}

.char-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--black);
}

.char-desc {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ---------- News Cards ---------- */
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--cream);
}

.news-body {
  padding: 20px 24px 24px;
}

.news-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--black);
}

.news-excerpt {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 12px;
}

/* ---------- Grid Layouts ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ---------- Tags / Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-yellow {
  background: var(--yellow);
  color: var(--black);
}

.badge-black {
  background: var(--black);
  color: var(--white);
}

.badge-outline {
  border: 1.5px solid var(--gray-400);
  color: var(--gray-600);
}

/* ---------- Divider ---------- */
.divider {
  width: 48px;
  height: 4px;
  background: var(--yellow);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.divider.center {
  margin: 0 auto 20px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
}

.footer-brand-name span {
  color: var(--yellow);
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--yellow);
}

.footer-info {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer-info a {
  color: var(--yellow-light);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-policy-links {
  display: flex;
  gap: 20px;
}

.footer-policy-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-policy-links a:hover {
  color: var(--yellow);
}

/* ---------- Page Hero ---------- */
.page-hero {
  padding: 120px 0 60px;
  background: var(--cream);
  border-bottom: 1px solid var(--gray-200);
}

.page-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
}

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-yellow { color: var(--yellow-dark); }
.bg-cream { background-color: var(--cream); }
.bg-cream2 { background-color: var(--cream-2); }
.bg-black { background-color: var(--black); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* ---------- Page Top Padding ---------- */
.main-content {
  padding-top: var(--nav-height);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-menu, .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .grid-3, .grid-4, .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
}
