/* Farmketing Clone CSS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #4CAF50;
    /* Green */
    --text-color: #333;
    --light-gray: #f9f9f9;
    --border-color: #e0e0e0;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

/* Header */
#header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 20px;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.gnb>ul {
    display: flex;
    gap: 40px;
}

.gnb .depth1 {
    position: relative;
    padding-bottom: 20px;
    /* Slight buffer for hover area */
    margin-bottom: -20px;
}

.gnb .depth1>a {
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 10px 0;
}

.gnb .depth1:hover>a {
    color: var(--primary-color);
}

/* Submenu Styling */
.gnb .depth2 {
    display: none;
    /* Handled by jQuery slideDown/Up */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    padding: 10px 0;
    border-radius: 4px;
    z-index: 9999;
}

/* Remove CSS hover triggering since JS will handle it */
/* .gnb .depth1:hover .depth2 { opacity: 1; visibility: visible; ... } */

.gnb .depth2 li {
    display: block;
    text-align: center;
}

.gnb .depth2 li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.gnb .depth2 li a:hover {
    background: #f9f9f9;
    color: var(--primary-color);
}

/* Footer */
#footer {
    background: #333;
    color: #fff;
    padding: 50px 0;
    font-size: 14px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info p {
    margin-bottom: 10px;
    color: #aaa;
}

/* Homepage Hero */
.hero {
    height: 600px;
    background: #f4f4f4;
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
    margin-top: 80px;
    position: relative;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: #666;
}

/* Page Header */
.page-header {
    margin-top: 80px;
    background: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 36px;
    font-weight: 700;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    font-weight: 700;
}

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

.service-item {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Mobile Menu Button - Default Hidden */
.mobile-menu-btn {
    display: none;
    margin-left: auto;
    /* Push to right */
    padding: 10px;
}

/* Animation Utilities */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .mobile-menu-btn {
        display: block !important;
        font-size: 24px;
        cursor: pointer;
        z-index: 1001;
        color: #333;
        /* Explicit color */
    }

    .gnb {
        display: none;
        /* Initially hidden */
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #eee;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .gnb>ul {
        flex-direction: column;
        gap: 0;
    }

    .gnb .depth1 {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f9f9f9;
    }

    .gnb .depth1>a {
        padding: 15px 20px;
        font-weight: 700;
    }

    .gnb .depth2 {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: #fdfdfd;
        transform: none;
        padding: 0;
        width: 100%;
    }

    .gnb .depth2 li a {
        padding: 12px 30px;
        text-align: left;
        font-size: 13px;
    }

    .hero {
        height: 400px;
    }

    .hero h2 {
        font-size: 32px;
    }

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

    .section-inner>div>div[style*="flex"] {
        flex-direction: column;
    }

    .section-inner img {
        width: 100% !important;
        margin-top: 20px;
    }
}