/* --- 기본 설정 --- */
:root {
    --primary-color: #1A3E5C;
    --secondary-color: #2F9C7F;
    --text-color: #333;
    --bg-color: #FFFFFF;
    --light-gray-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
}

/* --- 헤더 & 네비게이션 --- */
header {
    background-color: rgba(255, 255, 255, 0.9);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

nav .logo img {
    height: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a.store-link {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a.store-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- 메뉴 토글 버튼 (모바일용) --- */
.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- 메인 & 섹션 공통 --- */
main {
    padding-top: 70px;
}

section {
    padding: 80px 20px;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* --- 홈 섹션 --- */
#home {
    background-image: linear-gradient(rgba(26, 62, 92, 0.7), rgba(26, 62, 92, 0.7)), url('./bg.png?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-top: 10px;
    font-weight: 300;
}

/* --- 회사소개 --- */
#about {
    background-color: var(--light-gray-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- 제품소개 --- */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-item h3 {
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* --- 문의하기 --- */
#contact {
    background-color: var(--primary-color);
    color: white;
}

#contact h2,
#contact .section-description {
    color: white;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* --- 푸터 --- */
footer {
    background-color: #222;
    color: #aaa;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- 반응형 디자인 --- */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    body.menu-open nav ul {
        display: flex;
        background-color: white;
        position: absolute;
        top: 60px;
        left: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    #home {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
    }
}
/* 태블릿 대응 */
@media (max-width: 1024px) and (min-width: 769px) {
    #home {
        height: 60vh;
    }
}

/* 모바일 대응 */
@media (max-width: 768px) {
    ...
    #home {
        height: 50vh;
    }
}
