/* (주)블랙피그 홈페이지 스타일시트 */
/* 다크 프리미엄 톤앤매너 - 블랙 #2C2420, 화이트, 골드 포인트 */

:root {
  --bg-dark: #2C2420;
  --bg-darker: #1A1512;
  --bg-light: #F5F0ED;
  --text-main: #2C2420;
  --text-light: #F5F0ED;
  --text-muted: #8B7355;
  --gold: #C9A962;
  --gold-light: #E5D4A1;
  --border: #E0D5CC;
  --shadow: rgba(44, 36, 32, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 폰트 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif KR', serif;
  font-weight: 600;
  line-height: 1.3;
}

/* 로딩 스크린 */
.fade-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.fade-screen.loaded {
  opacity: 0;
  pointer-events: none;
}

.loader-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.3em;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* 내비게이션 */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(44, 36, 32, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--gold);
  transition: all 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 4px 20px var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo .logo-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--bg-dark) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
}

/* 모바일 내비게이션 */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--gold);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav .nav-links {
  flex-direction: column;
  padding: 1rem 2rem;
  gap: 1rem;
}

/* 히어로 섹션 */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 36, 32, 0.9) 0%, rgba(44, 36, 32, 0.7) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245, 240, 237, 0.9);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201, 169, 98, 0.3);
}

/* 통계 섹션 */
.stats {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 2rem;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-num {
  font-family: 'Noto Serif KR', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-suffix {
  font-size: 1.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 공통 섹션 */
.section {
  padding: 6rem 2rem;
}

.section-label {
  display: inline-block;
  background: var(--bg-dark);
  color: var(--gold);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--bg-dark);
  margin-bottom: 1.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  line-height: 1.8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 스크롤 리빌 애니메이션 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* About 카드 */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card-img {
  height: 250px;
  overflow: hidden;
}

.about-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-card-body {
  padding: 2rem;
}

.about-card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--bg-dark);
}

.about-card-body p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Trust 섹션 */
.trust {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 6rem 2rem;
}

.trust .section-label {
  background: var(--gold);
  color: var(--bg-dark);
}

.trust .section-title {
  color: var(--text-light);
}

.trust-grid {
  max-width: 1200px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
}

.trust-item {
  padding: 2rem;
}

.trust-icon {
  width: 80px;
  height: 80px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0 auto 1.5rem;
}

.trust-item h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.trust-item p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Products 그리드 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  position: relative;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img {
  height: 220px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
  position: relative;
}

.product-info h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--bg-dark);
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.product-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA 섹션 */
.cta-section {
  background: var(--bg-darker);
  color: var(--text-light);
  padding: 6rem 2rem;
  text-align: center;
}

.cta-btn-solid,
.cta-btn-outline {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn-solid {
  background: var(--gold);
  color: var(--bg-dark);
}

.cta-btn-solid:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
}

.cta-btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
}

.cta-btn-outline:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

/* 플로팅 CTA */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
}

.floating-cta a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(201, 169, 98, 0.4);
  transition: all 0.3s ease;
}

.floating-cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(201, 169, 98, 0.5);
}

.floating-cta svg {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  color: var(--text-light);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-nav h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 240, 237, 0.1);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 링크 버튼 */
.link-btn {
  display: inline-block;
  color: var(--bg-dark);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.3rem;
  transition: all 0.3s ease;
}

.link-btn:hover {
  color: var(--gold);
  border-color: var(--bg-dark);
}

/* 반응형 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-nav .nav-links {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .about-grid,
  .products-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .floating-cta {
    bottom: 1rem;
    right: 1rem;
  }

  .floating-cta span {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 1rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .stats {
    padding: 3rem 1rem;
  }
}
