/* --- 기본 & 변수 설정 --- */
:root {
    --main-color: #30ccb3;
    --dark-color: #111111;
    --light-color: #ffffff;
    --text-dark: #cccccc;
    --text-light: #333333;
    --font-family: 'Noto Sans KR', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-color);
    color: var(--text-light);
    line-height: 1.6;
}

footer p {
    font-size: 1rem !important;
}

/* --- 공통 컴포넌트 --- */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    padding: 7rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.full-height {
    min-height: 100vh;
}

.bg-dark-no-pattern {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.bg-dark {
    background: repeating-linear-gradient(45deg, #1f1f1f, #1f1f1f 1px, #000 0, #000 10px);
    color: var(--light-color);
}

.bg-dark h1 {
    color: var(--light-color);
}

.bg-dark h2 {
    color: var(--light-color);
}

.bg-dark p {
    color: var(--text-dark);
}

h1, h2, h3 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.bg-dark .subtitle {
    color: #aaa;
}

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

.btn {
    display: inline-block;
    background-color: var(--main-color);
    color: var(--dark-color);
    padding: 0.8rem 2rem;
    text-decoration: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #4dd9c2;
    transform: translateY(-3px);
}

/* --- 헤더 --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header .logo {
    color: var(--light-color);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

#header .logo span {
    line-height: 25px;
    margin-left: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    vertical-align: bottom;
}

#header .logo img {
    height: 27px;
    width: auto;
    vertical-align: middle;
    margin-bottom: 5px;
}

#main-nav {
    list-style: none;
    display: flex;
}

#main-nav li a {
    color: var(--light-color);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

#main-nav li a:hover {
    color: var(--main-color);
}

.menu-toggle {
    display: none;
}


/* --- 섹션별 스타일 --- */
#home {
    /* background: url('../images/background.png') no-repeat center center/cover; */
    background: repeating-linear-gradient(
        45deg,
        /* rgba(255, 255, 255, 0.07),
        rgba(255, 255, 255, 0.07) 1px, */
        rgba(31, 31, 31, 0.12),
        rgba(31, 31, 31, 0.12) 1px,
        transparent 1px,
        transparent 10px
    ),
    url('../images/background.png') no-repeat center center / cover;
}
#home h1 {
    color: var(--light-color);
}

section .split {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 3rem;
}

section .split > div {
    flex: 1;
}

.img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.temp-img-box {
    width: 100%;
    /* height: 200px; */
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #eee;
}

.card .only-title {
    font-size: 1.2rem;
    font-weight: 700;
    padding-top: 0.15rem;
    margin: 0;
}

.process-wrapper {
    display: flex;
    justify-content: space-around;
    margin-top: 4rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.process-item {
    width: 200px;
}
.process-item .step {
    width: 50px;
    height: 50px;
    background-color: var(--main-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
}
.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--main-color);
    margin: 0;
}
.stat-item .stat-title {
    font-size: 1.2rem;
    color: #666;
}
.client-logos-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding-bottom: 100px; /* 그라데이션 효과를 위한 여백 */
}

.client-logos-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px; /* 그라데이션의 높이 */
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 1) 100%);
    pointer-events: none; /* 오버레이가 이미지 클릭을 방해하지 않도록 */
}
.client-logos span {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 56px;
    width: 130px;
    padding: 6px;
    background-color: white; 
    border-radius: 8px;
    box-sizing: border-box;
}
.client-logos img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 이미지 비율을 유지하면서 컨테이너 안에 맞춤 */
}

.faq-item {
    padding: 1rem 0 0; 
    border-top: 2px solid #555;
}

.faq-item.last {
    border-bottom: 2px solid #555;
}

.faq-item p {
    font-size: 1rem;
}

.testimonial-card {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-left: 5px solid var(--main-color);
}
.testimonial-card p {
    font-style: italic;
    font-size: 1.2rem;
}
.testimonial-card cite {
    display: block;
    margin-top: 1rem;
    font-weight: 700;
}
.contact-info {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
}
.contact-info p {
    margin-bottom: 0.5rem;
}

/* --- 견적문의 --- */
.partnership-form-container {
    padding: 2.5rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    /* color: #333; */
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: #f1f1f1;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="radio"] {
    width: auto; 
    padding: 0;
    background: transparent; 
    border: none;
    border-radius: 50%;
    cursor: pointer;
    accent-color: var(--main-color);
}

.form-group textarea {
    height: 300px;
}

.form-group span {
    margin-right: 0px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a1a1a;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Success Message */
.success-message {
    background: #111111;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

.error-message {
    background: #111111;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

.grecaptcha-info {
    font-size: 0.7em;
    color: #aaa;
    /* text-align: center; */
    margin-top: 1rem;
}

.grecaptcha-info a {
    color: #30ccb3;
    text-decoration: none;
}

.grecaptcha-badge {
    visibility: hidden;
}

.privacy-link {
    color: #1a1a1a;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* --- 푸터 --- */
#footer {
    background-color: var(--dark-color);
    color: #888;
    text-align: center;
    padding: 2rem 0;
}

/* --- 스크롤 애니메이션 --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- 반응형 미디어 쿼리 --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    section {
        padding: 4rem 0;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }

    .client-logos span {
        height: 45px;
        width: 100px;
        padding: 6px;
    }

    /* 헤더 & 모바일 네비게이션 */
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--light-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    #main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(17, 17, 17, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    #main-nav.active {
        display: flex;
    }
    #main-nav li {
        margin: 1.5rem 0;
    }
    #main-nav li a {
        font-size: 1.5rem;
    }

    /* 섹션별 레이아웃 변경 */
    section .split {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }

    .partnership-form-container {
        padding: 1rem;
    }

    .form-group textarea {
        height: auto
    }

    .card {
        padding: 1.5rem;
    }

    .card .only-title {
        font-size: 1rem;
    }

    .grid-2 {
        gap: 1rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .process-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .process-item {
        margin-bottom: 2rem;
    }
    .client-logos {
        gap: 1rem;
    }

}
