/* 기본 설정 및 색상 변수 */
:root {
    --primary-color: #0f2027;   /* 깊은 네이비 */
    --secondary-color: #203a43; /* 중간 톤 */
    --accent-color: #2c5364;    /* 청록빛 포인트 */
    --highlight-color: #00b4db; /* 밝은 강조색 */
    --text-color: #333;
    --light-text: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 12px;
}

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

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

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* 유틸리티 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.center-text { text-align: center; }
.mb-4 { margin-bottom: 2rem; }

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary {
    background: linear-gradient(to right, var(--accent-color), var(--highlight-color));
    color: var(--white);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 219, 0.4);
}
.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}
.btn-outline:hover { background: var(--white); color: var(--primary-color); }
.full-width { width: 100%; }

/* 헤더 & 네비게이션 */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); display: flex; align-items: center; gap: 10px; }
/* 로고 이미지 스타일 추가 */
.header-logo-img {
    height: 45px;       /* 헤더 높이(70px)에 맞춰 적절한 크기 설정 */
    width: auto;        /* 비율 유지 */
    border-radius: 50%; /* 로고가 원형이므로 둥글게 처리 (선택사항) */
}

/* (참고) 기존 .logo-text에 이미 gap: 10px이 있어서 이미지와 글자 사이 간격은 자동으로 벌어집니다. */
.desktop-nav a { margin-left: 30px; font-weight: 500; color: var(--secondary-color); }
.desktop-nav a:hover { color: var(--highlight-color); }
.nav-cta { background: var(--primary-color); color: white !important; padding: 8px 20px; border-radius: 4px; }
.mobile-menu-btn { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer;}
.mobile-nav { 
    display: none; position: fixed; top: 70px; left: 0; width: 100%; 
    background: white; padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); 
    z-index: 999; border-top: 1px solid #eee;
}
.mobile-nav a { display: block; padding: 15px; border-bottom: 1px solid #eee; }

/* 히어로 섹션 */
.hero {
    position: relative; height: 90vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white);
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    margin-top: 70px;
}
.hero-content { position: relative; z-index: 2; }
.hero-subtitle { font-size: 1.2rem; font-weight: 300; letter-spacing: 2px; margin-bottom: 10px; opacity: 0.8; }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; font-weight: 700; }
.hero .highlight { color: var(--highlight-color); }
.hero-desc { font-size: 1.1rem; margin-bottom: 40px; opacity: 0.9; }

/* 히어로 섹션 중앙 로고 스타일 */
.hero-main-logo {
    width: 160px;
    height: auto;
    margin: 0 auto 30px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: block;
    
    /* [수정 포인트] */
    /* 1. grayscale(100%): 흑백으로 만듦 */
    /* 2. brightness(400%): 어두운 회색을 강제로 4배 밝게 하여 '흰색'처럼 보이게 함 */
    filter: grayscale(100%) brightness(400%);
    
    /* 너무 쨍한 흰색이 싫다면 투명도를 조절하세요 (선택사항) */
    opacity: 0.9;
}

/* 모바일 화면 대응 (화면 폭이 768px 이하일 때) */
@media (max-width: 768px) {
    .header-container { padding: 0 15px; }
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    
    /* 로고 이미지 크기 */
    .hero-main-logo {
        width: 80px;         /* 100px -> 80px 더 축소 */
        margin-bottom: 15px;
    }

    /* [핵심 수정] 폰트 사이즈를 훨씬 공격적으로 줄임 */
    .hero h1 { 
        /* 최소 1.2rem(약 19px)까지 작아질 수 있게 허용 */
        /* 화면 폭의 6% (기존 7%) 로 설정 */
        font-size: clamp(1.2rem, 6vw, 2rem); 
        line-height: 1.2;    /* 줄 간격도 좁혀서 더 컴팩트하게 */
        margin-bottom: 15px;
        word-break: keep-all; /* 단어 쪼개짐 방지 */
    }

    .hero-subtitle {
        /* 아주 작은 화면에서는 12px(0.75rem)까지 작아짐 */
        font-size: clamp(0.75rem, 3vw, 1rem);
        margin-bottom: 5px;
    }
    
    .hero-desc {
        /* 본문 설명도 작게 조정 */
        font-size: clamp(0.8rem, 3vw, 0.95rem);
        padding: 0 20px;
        word-break: keep-all;
        opacity: 0.9;
    }

    /* 버튼 크기도 살짝 다이어트 */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* 나머지 레이아웃 조정 (기존 유지) */
    .about-grid { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    .contact-wrapper { flex-direction: column; }
    
    .partner-logo {
        width: 110px;
        height: 60px;
    }
}

/* 공통 섹션 헤더 */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 10px; }
.section-header p { color: var(--light-text); }

/* 회사소개 */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: center; }
.about-text h3 { font-size: 1.8rem; color: var(--secondary-color); margin-bottom: 20px; }
.check-list li { margin-bottom: 10px; padding-left: 25px; position: relative; font-weight: 500; }
.check-list li::before { content: '✔'; position: absolute; left: 0; color: var(--highlight-color); }
.message-box {
    background: var(--white); padding: 30px; border-radius: var(--radius);
    box-shadow: var(--shadow); border-left: 5px solid var(--highlight-color);
}
.message-box blockquote { font-style: italic; color: #555; margin-bottom: 15px; }
.ceo-sign { text-align: right; color: var(--primary-color); }

/* 카드 스타일 (비전, 서비스) */
.cards-grid { display: grid; gap: 30px; }
.three-col { grid-template-columns: repeat(3, 1fr); }
.four-col { grid-template-columns: repeat(4, 1fr); }
.card, .service-card {
    background: var(--white); padding: 30px; border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; text-align: center;
}
.card:hover, .service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.card-icon, .icon-wrap { font-size: 3rem; margin-bottom: 20px; height: 60px; display: flex; align-items: center; justify-content: center; }
.service-card h4 { font-size: 1.2rem; margin-bottom: 15px; color: var(--primary-color); }
.service-card p { font-size: 0.95rem; color: var(--light-text); }

/* 파트너 */
.partners-grid {
    display: flex;
    justify-content: center;
    gap: 30px; /* 간격 조정 */
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 20px 0; /* 상하 여백 추가 */
}

/* 파트너 로고 이미지 스타일 */
.partner-logo {
    width: 180px;
    height: 100px;
    object-fit: contain;
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    
    /* [수정] 흑백 필터(grayscale) 제거 -> 항상 컬러로 표시 */
    opacity: 1; 
    
    /* 전환 효과 시간 */
    transition: all 0.5s ease;
    cursor: pointer;
}

/* [중요] 이미지 교체 중일 때 잠시 투명해지는 클래스 (자동 회전 필수) */
.partner-logo.hiding {
    opacity: 0;
    transform: scale(0.95);
}

/* 파트너 로고 호버 이펙트 */
.partner-logo:hover {
    /* 컬러 변경 효과는 빼고, 떠오르는 효과만 유지 */
    transform: translateY(-5px);      
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--highlight-color);
}
/* 모바일 대응 */
@media (max-width: 768px) {
    .partner-logo {
        width: 140px;
        height: 80px;
    }
}
.certification-badge { display: inline-block; background: #eef1f5; padding: 10px 20px; border-radius: 30px; color: var(--secondary-color); font-weight: 500; }

/* 연락처 */
.contact-wrapper { display: flex; gap: 50px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 50px; }
.contact-info { flex: 1; background: var(--primary-color); color: var(--white); padding: 50px; }
.contact-info h2 { font-size: 2rem; margin-bottom: 20px; }
.info-item { margin-bottom: 20px; display: flex; flex-direction: column; }
.info-item .label { font-size: 0.9rem; opacity: 0.6; margin-bottom: 5px; }
.info-item .value { font-size: 1.1rem; font-weight: 500; }
.contact-form-box { flex: 1.5; padding: 50px; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd;
    border-radius: 8px; font-family: inherit; font-size: 1rem; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--highlight-color); }
.map-container iframe { border-radius: var(--radius); }

/* Footer 스타일 추가 */
footer {
    background-color: #333; /* 어두운 배경 */
    color: #ccc; /* 연한 회색 글자 */
    padding: 60px 0 40px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #555;
    padding-bottom: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo {
    font-size: 1.2rem;
    color: #fff;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links .bold {
    font-weight: 700;
    color: #fff;
}

.footer-links .sep {
    margin: 0 10px;
    color: #555;
}

.footer-info p {
    margin: 5px 0;
}

.footer-info .bar {
    margin: 0 8px;
    color: #555;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #888;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 애니메이션 */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }
.delay-600 { transition-delay: 0.6s; }

/* 반응형 (모바일) */
@media (max-width: 768px) {
    .header-container { padding: 0 15px; }
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .about-grid { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    .contact-wrapper { flex-direction: column; }
}