/* ========================================
   진성종합무역 웹사이트 - 메인 스타일시트
   ======================================== */

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

/* 리셋 & 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 컬러 팔레트 */
    --primary-black: #1a1a1a;
    --secondary-gray: #666666;
    --light-gray: #999999;
    --bg-gray: #f8f8f8;
    --bg-light: #fafafa;
    --border-gray: #e5e5e5;
    --white: #ffffff;
    
    /* 간격 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* 폰트 크기 */
    --font-xs: 0.875rem;
    --font-sm: 1rem;
    --font-md: 1.125rem;
    --font-lg: 1.5rem;
    --font-xl: 2rem;
    --font-xxl: 3rem;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    font-weight: 400;
    color: var(--primary-black);
    line-height: 1.7;
    letter-spacing: -0.02em;
    background: var(--white);
}

html {
    scroll-behavior: smooth;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   헤더 & 네비게이션
   ======================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-gray);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: var(--font-lg);
    font-weight: 200;
    letter-spacing: 0.1em;
    color: var(--primary-black);
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    color: var(--secondary-gray);
    text-decoration: none;
    font-size: var(--font-sm);
    font-weight: 300;
    letter-spacing: -0.01em;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-black);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 드롭다운 메뉴 */
.nav-links .dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    padding: var(--spacing-sm);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 0;
    font-size: var(--font-xs);
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-black);
}

/* ========================================
   히어로 섹션
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: var(--font-xxl);
    font-weight: 200;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-md);
    color: var(--primary-black);
}

.hero-content p {
    font-size: var(--font-md);
    font-weight: 300;
    color: var(--secondary-gray);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.01em;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: var(--font-sm);
    font-weight: 400;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    cursor: pointer;
    border: none;
    font-family: 'Pretendard', sans-serif;
}

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

.btn-primary:hover {
    background: var(--secondary-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-black);
    border: 1px solid var(--border-gray);
}

.btn-secondary:hover {
    background: var(--bg-gray);
    border-color: var(--primary-black);
}

/* ========================================
   섹션 공통 스타일
   ======================================== */

section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: var(--font-xl);
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
}

.section-header p {
    font-size: var(--font-md);
    font-weight: 300;
    color: var(--secondary-gray);
    letter-spacing: -0.01em;
}

/* ========================================
   특징 그리드
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-box {
    padding: var(--spacing-lg);
    background: var(--bg-gray);
    border-left: 2px solid var(--border-gray);
    border-radius: 0 2px 2px 0;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-left-color: var(--primary-black);
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-box h3 {
    font-size: var(--font-md);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
    letter-spacing: -0.01em;
}

.feature-box p {
    font-size: var(--font-xs);
    font-weight: 300;
    color: var(--secondary-gray);
    line-height: 1.8;
    letter-spacing: -0.01em;
}

/* ========================================
   제품 카드
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 220px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.product-image.placeholder {
    font-size: var(--font-xs);
    color: var(--light-gray);
    font-weight: 300;
}

.product-info {
    padding: var(--spacing-md);
}

.product-info h3 {
    font-size: var(--font-md);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-black);
    letter-spacing: -0.01em;
}

.product-info p {
    font-size: var(--font-xs);
    color: var(--secondary-gray);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* ========================================
   푸터
   ======================================== */

footer {
    background: var(--primary-black);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    font-size: var(--font-md);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.footer-section p,
.footer-section a {
    font-size: var(--font-xs);
    color: rgba(255, 255, 255, 0.7);
    line-height: 2;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-links {
    list-style: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: var(--font-xs);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* ========================================
   반응형 디자인
   ======================================== */

@media (max-width: 768px) {
    :root {
        --font-xxl: 2rem;
        --font-xl: 1.5rem;
        --font-lg: 1.25rem;
        --spacing-xl: 3rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-xl) var(--spacing-md);
        gap: var(--spacing-md);
        align-items: flex-start;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        padding-left: var(--spacing-md);
        box-shadow: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   유틸리티 클래스
   ======================================== */

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

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.hidden {
    display: none;
}
