/* --- APAC Common Styles V2.2 (Footer Height Adjusted) --- */

:root {
    --color-primary: #5A7D9A;
    --color-primary-dark: #4a6a8a;
    --color-background: #f8f9fa;
    --color-surface: #ffffff;
    --color-text: #343a40;
    --color-text-light: #6c757d;
    --color-border: #e2e8f0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Noto Sans KR', sans-serif;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius-md: 8px;
}

/* --- 기본 스타일 리셋 --- */
body {
    font-family: var(--font-body);
    margin: 0;
    background-color: var(--color-background);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- 공용 레이아웃 --- */
.gnb-container,
.content-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}


/* --- 헤더 (GNB) --- */
.gnb {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gnb-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.gnb-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
}

.gnb-menu {
    display: flex;
    gap: 40px;
}

.gnb-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-light);
    padding: 10px 0;
    position: relative;
}

.gnb-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.gnb-menu a:hover::after,
.gnb-menu a.active::after {
    width: 100%;
}

.gnb-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.gnb-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- 히어로 섹션 --- */
.hero {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 80px 24px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0.5em;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* --- 메인 콘텐츠 (카드) --- */
main {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.card-content p {
    color: var(--color-text-light);
    flex-grow: 1;
    margin-bottom: 1.5em;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    transition: background-color 0.2s, opacity 0.2s;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    color: white;
    opacity: 1 !important; /* 다른 스타일에 의해 투명해지는 현상 방지 */
}

/* --- 푸터 --- */
footer {
    background-color: #333;
    color: #a0a0a0;
    padding: 25px 0; /* 상하 여백 축소 */
    font-size: 0.9rem;
}

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* 간격 축소 */
    border-bottom: 1px solid #444;
    padding-bottom: 15px; /* 간격 축소 */
}

.footer-header p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.footer-toggle {
    display: none;
    background: none;
    border: 1px solid #666;
    color: #ccc;
    padding: 8px 12px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
}

.footer-toggle::after {
    content: ' ▼';
}

.footer-toggle.active::after {
    content: ' ▲';
}

.footer-info {
    line-height: 1.7; /* 줄간격 축소 */
}

.footer-info p {
    margin: 4px 0; /* 문단 간격 축소 */
}

.footer-link {
    color: #a0a0a0;
}
.footer-link:hover {
    color: white;
}

.copyright {
    margin-top: 20px; /* 상단 여백 축소 */
    padding-top: 15px; /* 상단 여백 축소 */
    border-top: 1px solid #444;
    text-align: center;
    font-size: 0.8rem;
}


/* --- 반응형 디자인 (모바일) --- */
@media (max-width: 768px) {
    body { font-size: 15px; }

    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }

    main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }

    /* 햄버거 메뉴 */
    .gnb-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-surface);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .gnb-nav.is-active {
        display: block;
    }

    .gnb-menu {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .gnb-menu li {
        border-bottom: 1px solid var(--color-border);
    }

    .gnb-menu a {
        display: block;
        padding: 15px 10px;
        font-size: 1.1rem;
    }
    .gnb-menu a::after {
        display: none;
    }

    .gnb-toggle {
        display: block;
    }

    .gnb-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .gnb-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .gnb-toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    /* 푸터 아코디언 */
    footer {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .footer-header {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    .footer-header p {
        font-size: 1rem;
        line-height: 1.4;
    }
    .footer-toggle {
        display: block;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .footer-info {
        display: none;
        font-size: 0.85rem;
        padding-bottom: 10px;
    }
    .footer-info.is-active {
        display: block;
    }
    .copyright {
        margin-top: 10px;
        padding-top: 10px;
        font-size: 0.75rem;
    }
}
/* ===== APAC 최종 수정 v4 ===== */

/* [해결] 견적문의 제출하기 버튼 색상 및 투명도 */
.submit-btn:hover {
    background-color: #4a6a8a !important;
    opacity: 1 !important;
    transform: none !important;
}

/* [해결] 필수 항목 경고창 스타일 (선택자 수정) */
#notification.error {
    display: block !important;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8d7da !important; /* 붉은 배경색 */
    color: #721c24 !important; /* 붉은 계열 글자색 */
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    opacity: 1 !important;
}

/* [추가] 정밀가공·지그 메뉴 숨기기 (li 요소 숨기기로 변경) */
li:has(a[href="jg.html"]) {
    display: none !important;
}

/* ===== APAC 최종 수정 끝 ===== */
