/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #4A685A;
    --color-text: #FAEAD2;
    --color-accent: rgb(218, 121, 73);
    --color-bg: #2a3740;
    --color-surface: #3a4e45;
    --color-muted: rgba(250, 234, 210, 0.85);
    --color-border: rgba(250, 234, 210, 0.3);
    --color-overlay: rgba(74, 104, 90, 0.75);
}

body {
    font-family: 'Inter', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Helvetica Neue', Arial, system-ui, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
}

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

/* 헤더 스타일 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-overlay);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

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

/* 이미지 로고 스타일 */
.logo-link { display: inline-flex; align-items: center; height: 70px; }
.logo-link img { height: 38px; width: auto; display: block; filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }

/* 이미지 로고 대응 제거 (텍스트 로고 복원) */

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    margin: 3px 0;
    transition: 0.3s;
}

/* 히어로 섹션 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(1200px 600px at 10% 20%, rgba(255,255,255,0.06), transparent 60%),
                radial-gradient(900px 500px at 90% 80%, rgba(0,0,0,0.15), transparent 60%),
                linear-gradient(135deg, var(--color-primary) 0%, #5a7a6a 100%);
    color: var(--color-text);
    padding-top: 70px;
}

/* 상단 신규 히어로(이미지 시안) */
.hero-alt {
    min-height: calc(100vh - 0px);
    display: flex;
    align-items: center;
    background: radial-gradient(1200px 600px at 10% 20%, rgba(255,255,255,0.06), transparent 60%),
                radial-gradient(900px 500px at 90% 80%, rgba(0,0,0,0.15), transparent 60%),
                linear-gradient(135deg, var(--color-primary) 0%, #5a7a6a 100%);
    color: var(--color-text);
    padding-top: 70px;
}

.hero-alt-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2rem;
    align-items: center;
}

.hero-alt .hero-title { text-align: left; }
.hero-alt-desc {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    line-height: 1.9;
    color: var(--color-text);
    opacity: 0.95;
    word-break: keep-all;
    text-wrap: pretty;
}

/* 데스크톱에서만 강제 줄바꿈 유지, 작은 화면은 자동 줄바꿈 */
.br-desktop { display: inline; }
@media (max-width: 1024px) { .br-desktop { display: none; } }

.hero-alt-visual { display: flex; align-items: center; justify-content: center; }
.hero-alt-visual img {
    width: clamp(146px, 19.1vw, 270px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}

@media (max-width: 1024px) {
    .hero-alt-inner { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
    .hero-alt-visual img { width: clamp(124px, 19.5vw, 214px); }
}

@media (max-width: 768px) {
    .hero-alt-inner { grid-template-columns: 1fr; grid-template-areas: "visual" "content"; gap: 2.6rem; text-align: center; }
    .hero-alt-visual { grid-area: visual; }
    .hero-alt .hero-content { grid-area: content; }
    .hero-alt .hero-title { text-align: center; }
    .hero-alt-visual img { width: clamp(112px, 24.75vw, 180px); margin: 0 auto; }
}

@media (max-width: 480px) {
    .hero-alt-desc { font-size: clamp(0.98rem, 4.6vw, 1.12rem); line-height: 1.85; }
    .hero-alt-visual img { width: clamp(90px, 30.75vw, 158px); }
    .hero-alt-inner { gap: 2.2rem; }
}

/* 데스크톱에서 시각적 정렬 미세 조정: 이미지 약간 위, 텍스트 약간 아래 */
@media (min-width: 1025px) {
    .hero-alt .hero-content { padding-top: 200px; }
    .hero-alt .hero-title { font-size: clamp(2.2rem, 3.2vw, 3.1rem); text-wrap: balance; }
    .hero-alt-visual img { transform: translateY(-44px); width: clamp(169px, 18vw, 259px); }
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.25;
}

.hero-description {
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    margin-bottom: 0;
    opacity: 0.98;
    line-height: 2;
    letter-spacing: 0.2px;
    max-width: 820px;
    word-break: keep-all;
    text-wrap: balance;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}
.btn-sm { padding: 9px 18px; font-size: 0.95rem; border-radius: 10px; }
.btn-quiet { background: rgba(255,255,255,0.06); color: var(--color-text); border-color: var(--color-border); }
.btn-quiet:hover { background: rgba(255,255,255,0.12); color: var(--color-text); border-color: rgba(250,234,210,0.5); transform: translateY(-1px); }

.btn-primary {
    background: var(--color-accent);
    color: #1b2722;
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-text);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* 로고 박스를 제거했으므로 관련 클래스 제거 */

.hero-graphic i {
    font-size: 8rem;
    opacity: 0.8;
}

/* 섹션 공통 스타일 */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-muted);
}

/* 연락처 리드 문구 가변 크기 */
.contact-lead {
    font-size: clamp(1.1rem, 3.9vw, 1.7rem);
    color: var(--color-text);
    font-weight: 600;
    text-align: center;
}

/* 회사 소개 섹션 */
.about {
    /* 더 밝은 배경으로 전환 */
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* 회사 소개 인트로 중앙 정렬 */
.about-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.about-intro p {
    max-width: 980px;
    margin: 0.35rem auto;
    font-size: 1.06rem;
    line-height: 1.9;
    word-break: keep-all;
    text-wrap: pretty;
}

.about-intro-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-wrap: balance;
    margin-bottom: 0.75rem;
}

/* 클라이언트 섹션 제목을 회사소개 인트로 타이틀과 동일 크기/무게로 맞춤 */
.clients-header h2,
.clients-header h3,
.services .section-header h2,
.services .section-header h3 {
    font-size: 2rem;
    font-weight: 700;
}

/* 인트로 텍스트를 메인 컬러로 전환 */
.about .about-intro-title,
.about .about-lead,
.about .about-body {
    color: #2a3740;
}

/* 팀 섹션 */
.team { background: #ffffff; }
.team .section-header h3 { color: #19313a; font-size: clamp(1.4rem, 4.5vw, 2.2rem); }
.team .section-header p { color: #35514a; }

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }

.team-card { position: relative; background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: visible; box-shadow: 0 8px 24px rgba(0,0,0,0.12); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.18); border-color: rgba(0,0,0,0.15); }
.team-card:hover, .team-card:focus-within { z-index: 10001; }

/* 카드 상단: 아바타 + 기본 정보 */
.team-summary { display: flex; align-items: center; gap: 0.95rem; padding: 1rem 1rem 1.05rem; }
.team-media { width: 84px; height: 84px; flex: none; }
.team-media img { width: 84px; height: 84px; object-fit: cover; display: block; border-radius: 50%; }
.team-body { padding: 0; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.team-name, .team-meta { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.team-name { font-size: 1rem; font-weight: 800; color: #0f1a16; letter-spacing: 0.1px; }
.team-role { font-weight: 700; color: var(--color-primary); margin-left: 2px; }
.team-meta { color: #35514a; font-size: 0.9rem; margin-top: 0.25rem; }

/* 오버레이: 상세 인용 */
.team-overlay { position: absolute; left: 50%; top: -12px; width: clamp(300px, 37vw, 426px); max-height: min(72vh, 560px);
    background:
        radial-gradient(900px 500px at 90% 80%, rgba(0,0,0,0.15), transparent 60%),
        linear-gradient(135deg, rgba(74, 104, 90, 0.58) 0%, rgba(90, 122, 106, 0.58) 100%);
    color: var(--color-text);
    padding: 1.2rem 1.25rem 1.25rem; display: flex; align-items: center; justify-content: center; opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.98); transition: opacity 0.22s ease, transform 0.22s ease;
    overflow: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; z-index: 2147483647; border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6); border: 1px solid rgba(250,234,210,0.28); pointer-events: none; mix-blend-mode: normal;
    backdrop-filter: blur(3px) saturate(120%);
    -webkit-backdrop-filter: blur(1px) saturate(120%);
}
.team-quote { color: var(--color-text); border-left: none; background: transparent; border-radius: 0; line-height: 1.95; font-size: 1.06rem; font-weight: 600; max-width: 100%; text-align: left; text-wrap: pretty; text-shadow: 0 1px 1px rgba(0,0,0,0.35); }
.team-card:hover .team-overlay, .team-card:focus-within .team-overlay, .team-card.is-open .team-overlay { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.04); pointer-events: auto; }
.team-card:focus-within { outline: 2px solid rgba(218,121,73,0.7); outline-offset: 2px; }

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    border-color: rgba(0,0,0,0.15);
}

.team-media { width: 110px; height: 110px; }
.team-media img {
    width: 110px; height: 110px; object-fit: cover; display: block; border-radius: 50%;
}

.team-body { color: #0f1a16; }
.team-name { font-size: 1.05rem; font-weight: 800; color: #0f1a16; letter-spacing: 0.1px; }
.team-role { font-weight: 700; color: var(--color-primary); margin-left: 2px; }
.team-meta { color: #35514a; font-size: 0.92rem; margin: 0.25rem 0 0.6rem; }
.team-inline-quote { color: #24322d; background: rgba(218,121,73,0.07); border-left: 3px solid var(--color-accent); padding: 0.75rem 0.9rem; border-radius: 12px; line-height: 1.7; font-size: 0.96rem; }

@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) { .team-media, .team-media img { width: 72px; height: 72px; } .team-summary { gap: 0.85rem; } .team-overlay .team-quote { font-size: 0.94rem; line-height: 1.7; } .team-overlay { left: 50%; top: -8px; width: 92vw; max-height: 76vh; border-radius: 14px; } .team-card:hover .team-overlay, .team-card:focus-within .team-overlay { transform: translateX(-50%) translateY(0) scale(1); } }
@media (max-width: 560px) {
    .team-grid { grid-template-columns: 1fr; }
}


.about-lead {
    color: var(--color-text);
    font-size: 1.14rem;
    line-height: 1.95;
    font-weight: 600;
}

.about-body {
    color: var(--color-muted);
    font-size: 1.04rem;
    line-height: 1.85;
}

/* 큰 화면에서 과도한 폭 방지 및 안정감 향상 */
@media (min-width: 1024px) {
    .about-intro p {
        max-width: 1040px;
        font-size: 1.06rem;
        line-height: 1.9;
    }
}

@media (max-width: 480px) {
    .about-intro p {
        font-size: 0.98rem;
        line-height: 1.8;
        padding: 0 4px;
    }
}

.values-list {
    list-style: none;
    margin-top: 1rem;
}

.values-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--color-muted);
}

.values-list i {
    color: var(--color-accent);
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.about-stats {
    display: none;
}

.stat-item {
    display: none;
}
.about-reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.reason-card {
    background: var(--color-surface);
    padding: 2rem 1.5rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.reason-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2e4139 100%);
}

.reason-icon i {
    color: #fff;
    font-size: 1.4rem;
}

.reason-card h4 {
    color: var(--color-text);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.reason-card p {
    color: var(--color-muted);
    line-height: 1.6;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-muted);
    font-weight: 500;
}

/* 고객사 리스트 섹션 (services 대체) */
.services { background: #ffffff; color: #0f1a16; }
.services .section-header h2 { color: #19313a; font-size: clamp(1.4rem, 4.5vw, 2.2rem); }
.services .section-header p { color: #35514a; }

.clients-header { margin-bottom: 2rem; }

.clients-carousel { position: relative; display: flex; align-items: center; }
.clients-carousel::before,
.clients-carousel::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    pointer-events: none;
    z-index: 1;
}
.clients-carousel::before { left: 0; background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0)); }
.clients-carousel::after { right: 0; background: linear-gradient(-90deg, rgba(255,255,255,1), rgba(255,255,255,0)); }

.clients-hit { position: absolute; top: 0; bottom: 0; width: 16%; z-index: 2; }
.clients-hit.prev { left: 0; }
.clients-hit.next { right: 0; }
.clients-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.96); color: var(--color-primary); border: 1px solid rgba(0,0,0,0.15); width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,0.16); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.clients-nav.prev { left: -12px; }
.clients-nav.next { right: -12px; }
.clients-nav:hover { transform: translateY(-50%) scale(1.05); box-shadow: 0 14px 36px rgba(0,0,0,0.2); }
.clients-nav i { pointer-events: none; font-size: 1.25rem; }

.clients-grid { display: flex; gap: 1.2rem; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding: 0.25rem 0 0.5rem; scroll-behavior: smooth; scrollbar-width: none; }
.clients-grid::-webkit-scrollbar { display: none; }
.client-card { flex: 0 0 30%; min-width: 280px; max-width: 340px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; text-align: center; background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; padding: 1.4rem 1.2rem 1.1rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.client-card:focus-within,
.client-card:active { outline: none; border-color: rgba(0,0,0,0.18); box-shadow: 0 18px 42px rgba(0,0,0,0.2); }
.client-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); border-color: rgba(0,0,0,0.15); }

.client-logo { height: 110px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.client-logo img { max-height: 96px; max-width: 100%; object-fit: contain; filter: saturate(0.98); }

.client-desc { color: #0f1a16; font-weight: 700; line-height: 1.5; margin-bottom: 0.65rem; letter-spacing: 0.1px; }
.client-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.tag { display: inline-block; font-size: 0.82rem; color: #19313a; background: rgba(218, 121, 73, 0.12); border: 1px solid rgba(218, 121, 73, 0.35); border-radius: 999px; padding: 4px 10px; font-weight: 600; }

/* 신규: 고객사 타일 그리드 (3열, 모바일/태블릿 2열) */
.clients-tiles-section { background: #ffffff; }
.clients-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.clients-tiles-grid .client-card {
    flex: initial;
    min-width: 0;
    max-width: none;
    scroll-snap-align: initial;
}

@media (max-width: 1024px) {
    .clients-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .clients-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 연락처 섹션 */
.contact {
    background: #3a4a43;
    padding: clamp(44px, 8vw, 64px) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* 연락처 단일 컬럼 변형 */
.contact-content.single {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

/* 연락처 CTA */
.contact-cta {
    display: flex;
    justify-content: center;
}
.contact-cta .btn { font-size: clamp(1rem, 2.8vw, 1.16rem); padding: 10px 22px; }

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--color-muted);
    line-height: 1.6;
}

.contact-form {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 푸터 */
.footer {
    background: var(--color-bg);
    color: var(--color-text);
    padding: 3rem 0 1rem;
}

/* 기존 복합 푸터 레이아웃은 사용하지 않음 */
.footer-content { display: none; }

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.footer-section h3 {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.footer-section p {
    color: var(--color-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #2b3643;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--color-accent);
}

/* 기존 카피라이트 라인 제거 */
.footer-bottom { display: none; }

/* 슬림 푸터: 좌측 회사명, 우측 주소 */
.footer-slim {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
}
.footer-left { font-weight: 700; color: var(--color-accent); }
.footer-right { color: var(--color-muted); }

@media (max-width: 768px) {
    .footer-slim { flex-direction: column; text-align: center; gap: 0.4rem; }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-overlay);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.2);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-title { font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 1.3; }
    .hero-description { font-size: clamp(1.15rem, 4.5vw, 1.8rem); line-height: 1.95; }
    
    
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .clients-grid { grid-auto-columns: 88%; }
}

@media (max-width: 480px) {
    .hero-title { font-size: clamp(2.2rem, 9.5vw, 3.2rem); line-height: 1.35; }
    .hero-description { font-size: clamp(1.1rem, 5.5vw, 1.6rem); line-height: 1.9; }
    
    
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn { width: 100%; max-width: 250px; }
    .btn.btn-sm { width: auto; max-width: none; }
    
    /* enlarge client cards on small phones */
    .client-card { min-width: 92%; }
}

/* 과거 고객사: 로고 일렬 배치 */
.logos-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 2rem;
}
.logos-row img {
    width: 100%;
    height: 80px; /* 데스크톱에서 더 크게 */
    object-fit: contain;
    filter: grayscale(0.05) saturate(0.95);
}
@media (max-width: 1024px) {
    .logos-row { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .logos-row img { height: 72px; }
}
@media (max-width: 768px) {
    .logos-row { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
    .logos-row img { height: 64px; }
}
@media (max-width: 480px) {
    .logos-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .logos-row img { height: 56px; }
}

/* 스크롤 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* JS 활성 시: 애니메이션 대상 초기 숨김으로 FOUC 방지 */
.js .hero-content {
    opacity: 0;
    transform: translateY(30px);
}

.js .service-card,
.js .client-card,
.js .stat-item,
.js .contact-item,
.js .about-text,
.js .team-card {
    opacity: 0;
    transform: translateY(30px);
}

/* 접근성: 모션 축소 설정 시 즉시 표시 */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up { animation: none; }
    .js .hero-content,
    .js .service-card,
    .js .client-card,
    .js .stat-item,
    .js .contact-item,
    .js .about-text,
    .js .team-card {
        opacity: 1;
        transform: none;
    }
}

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
}

/* 작은 화면에서는 강제 줄바꿈 <br>을 숨겨 자연스러운 줄바꿈 유도 */
@media (max-width: 480px) {
    .hero-description br { display: none; }
}

/* 은은한 배경 애니메이션 */
.hero {
    position: relative;
    overflow: hidden;
}

/* 도형 애니메이션: 둥근 글로우들이 천천히 이동 */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero::before {
    background: 
        radial-gradient(364px 364px at 20% 30%, rgba(250, 234, 210, 0.55), transparent 64%),
        radial-gradient(294px 294px at 80% 72%, rgba(250, 234, 210, 0.4), transparent 64%);
    filter: blur(4px);
    animation: floatGlow 7s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

.hero::after {
    background: 
        radial-gradient(224px 224px at 78% 24%, rgba(218, 121, 73, 0.4), transparent 64%);
    mix-blend-mode: screen;
    filter: blur(1.5px);
    animation: floatGlow2 9s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes floatGlow {
    0% { transform: translate3d(-10%, -8%, 0) scale(1); }
    100% { transform: translate3d(10%, 8%, 0) scale(1.06); }
}

@keyframes floatGlow2 {
    0% { transform: translate3d(8%, -6%, 0) scale(1); }
    100% { transform: translate3d(-8%, 6%, 0) scale(1.07); }
}

/* Modal: fixed overlay with centered dialog */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 2000; }
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-dialog { position: relative; background: #ffffff; color: #0f1a16; width: min(880px, 92vw); max-height: 88vh; overflow: auto; border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,0.25); transform: translateY(0); }
.modal[aria-hidden="false"] .modal-dialog { animation: modalIn 180ms ease-out; }
@keyframes modalIn { from { transform: translateY(10px); opacity: 0.98; } to { transform: translateY(0); opacity: 1; } }
.modal-close { position: absolute; top: 10px; right: 12px; font-size: 1.6rem; background: transparent; border: none; cursor: pointer; color: #26323a; }
.modal-header { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-bottom: 1px solid rgba(0,0,0,0.08); }
.modal-logo { width: 56px; height: 56px; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.modal-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.modal-desc { color: #24322d; }
.modal-body { padding: 1rem 1.4rem 1.4rem; }
.modal-subtitle { font-size: 1rem; margin-bottom: 0.6rem; color: #19313a; }
.articles-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; }
.article-card { border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; overflow: hidden; background: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.article-link { display: block; color: inherit; text-decoration: none; }
.article-thumb { aspect-ratio: 16/9; background: #eef3f1; overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transform: translateZ(0); }
/* 썸네일이 너무 작은 경우 확대되어 보이는 현상 보정 */
.article-thumb img { image-rendering: auto; }
.article-content { padding: 0.7rem 0.8rem 0.9rem; }
.article-title { font-size: 0.95rem; color: #0f1a16; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 모바일 모달 크기 최적화 */
@media (max-width: 768px) {
    .modal-dialog { width: 94vw; max-height: 86vh; border-radius: 12px; }
    .modal-header { padding: 1rem 1rem; }
    .modal-body { padding: 0.8rem 1rem 1.1rem; }
    .articles-list { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
}
@media (max-width: 480px) {
    .articles-list { grid-template-columns: 1fr; }
}
