/* ============================================
   회사소개 페이지
   공통 리셋 / 폰트 / 헤더 / 네비게이션 / 푸터는 global.css 참조
   ============================================ */

.company-page {
    background-color: #ffffff;
    color: #111111;
}

/* 회사소개 현재 메뉴 표시 */
@media (min-width: 1024px) {
    .company-page .desktop-nav-link[aria-current="page"] {
        color: var(--primary-color) !important;
    }

    .company-page .desktop-nav-link[aria-current="page"]::after {
        width: 100% !important;
    }
}

/* ============================================
   Hero
   ============================================ */
.company-hero {
    width: 100%;
    padding-top: 100px;
    background-color: #ffffff;
}

.company-hero-frame {
    position: relative;
    width: 100%;
    max-width: 1800px;
    aspect-ratio: 18 / 7;
    margin: 0 auto;
    overflow: hidden;
    background-color: #d9dde0;
}

.company-hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(1) saturate(0.97);
}

.company-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 23, 38, 0.48) 0%, rgba(10, 23, 38, 0.27) 31%, rgba(10, 23, 38, 0.03) 66%, rgba(10, 23, 38, 0.04) 100%),
        rgba(26, 47, 68, 0.03);
}

.company-hero-caption {
    position: absolute;
    top: auto;
    bottom: 8rem;
    left: max(7%, calc((100% - 1600px) / 2 + 20px));
    width: min(670px, 48%);
    color: #ffffff;
}

.company-hero-caption h1 {
    margin: 0;
    font-family: 'GmarketSansMedium', sans-serif;
    font-size: clamp(1.5rem, 1.85vw, 2rem);
    font-weight: 500;
    line-height: 1.42;
    letter-spacing: 0.5px;
    color: #f3f5f7;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Shared content structure
   ============================================ */
.company-article {
    background-color: #ffffff;
}

.company-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.company-section {
    padding: 120px 0;
    background-color: #ffffff;
}

.company-section + .company-section {
    border-top: 1px solid #e2e5e8;
}

.company-section-heading {
    max-width: 480px;
}

.company-section-heading-wide {
    max-width: 760px;
    margin-bottom: 72px;
}

.company-eyebrow {
    margin: 0 0 16px;
    font-family: 'GmarketSansMedium', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    color: #0d4681;
}

.company-section-heading h2,
.company-experience h2,
.company-inquiry h2 {
    margin: 0;
    font-family: 'GmarketSansMedium', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.5px;
    color: #111111;
    word-break: keep-all;
}

.company-body-copy p {
    margin: 0;
    font-family: 'GmarketSansLight', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: #222222;
    word-break: keep-all;
}

.company-body-copy p + p {
    margin-top: 18px;
}

/* Intro */
.company-intro-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 9%;
    align-items: start;
}

.company-intro-copy {
    max-width: 850px;
    padding-left: 22px;
    border-left: 4px solid #8ba4c3;
}

/* Core values */
.company-values {
    background-color: #fafbfc;
}

.company-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #bfc6ce;
    border-bottom: 1px solid #bfc6ce;
}

.company-value-item {
    padding: 54px 6% 64px;
}

.company-value-item:nth-child(odd) {
    border-right: 1px solid #d3d8dd;
}

.company-value-item:nth-child(n + 3) {
    border-top: 1px solid #d3d8dd;
}

.company-value-number,
.company-capability-number,
.company-professional-label {
    margin: 0 0 22px;
    font-family: 'GmarketSansMedium', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: #0d4681;
}

.company-value-item h3,
.company-capability-item h3,
.company-professional-item h3 {
    margin: 0 0 24px;
    font-family: 'GmarketSansMedium', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5;
    color: #111111;
    word-break: keep-all;
}

.company-value-item .company-body-copy p {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Numbers */
.company-stats {
    padding: 68px 0;
    background-color: #0d4681;
    color: #ffffff;
}

.company-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.company-stat-item {
    min-height: 105px;
    padding: 10px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.company-stat-item:last-child {
    border-right: 0;
}

.company-stat-item strong {
    font-family: 'GmarketSansMedium', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.company-stat-item span {
    margin-top: 10px;
    font-family: 'GmarketSansLight', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    letter-spacing: 0.11em;
    color: rgba(255, 255, 255, 0.78);
}

.company-stat-item-text strong {
    font-size: 1.25rem;
}

/* Engineering capability */
.company-capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #bfc6ce;
    border-bottom: 1px solid #bfc6ce;
}

.company-capability-item {
    min-height: 300px;
    padding: 48px 32px;
    border-right: 1px solid #d3d8dd;
}

.company-capability-item:last-child {
    border-right: 0;
}

.company-capability-item p:last-child,
.company-professional-copy {
    margin: 0;
    font-family: 'GmarketSansLight', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #222222;
    word-break: keep-all;
}

/* Professional capability */
.company-professional {
    background-color: #f5f7f9;
}

.company-professional-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #bfc6ce;
    border-bottom: 1px solid #bfc6ce;
}

.company-professional-item {
    padding: 48px 7%;
    border-right: 1px solid #d3d8dd;
}

.company-professional-item:last-child {
    border-right: 0;
}

.company-expert-list {
    margin: 0;
    padding: 0;
}

.company-expert-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #d7dce1;
    font-family: 'GmarketSansLight', sans-serif;
    font-size: 0.9rem;
    color: #222222;
}

.company-expert-list strong {
    font-family: 'GmarketSansMedium', sans-serif;
    font-weight: 400;
    white-space: nowrap;
}

.history-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    margin-top: 28px;
    padding: 8px 24px;
    background-color: transparent;
    color: #0d4681;
    font-family: 'GmarketSansMedium', sans-serif;
    font-size: 0.85rem;
    border: 1.5px solid #0d4681;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.history-btn:hover,
.history-btn:focus-visible {
    background-color: #0d4681;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Process */
.company-process-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #bfc6ce;
    border-bottom: 1px solid #bfc6ce;
}

.company-process-list li {
    position: relative;
    min-height: 210px;
    padding: 42px 28px;
    border-right: 1px solid #d3d8dd;
}

.company-process-list li:last-child {
    border-right: 0;
}

.company-process-list li:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -12px;
    z-index: 1;
    width: 24px;
    transform: translateY(-50%);
    background-color: #ffffff;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #7a8794;
}

.company-process-number {
    display: block;
    margin-bottom: 26px;
    font-family: 'GmarketSansMedium', sans-serif;
    font-size: 0.78rem;
    color: #0d4681;
}

.company-process-list strong {
    display: block;
    font-family: 'GmarketSansMedium', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #111111;
}

.company-process-list p {
    margin: 14px 0 0;
    font-family: 'GmarketSansLight', sans-serif;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #333333;
    word-break: keep-all;
}

/* Experience and inquiry */
.company-experience,
.company-inquiry {
    padding: 90px 0;
}

.company-experience {
    border-top: 1px solid #e2e5e8;
    background-color: #f5f7f9;
}

.company-experience-layout,
.company-inquiry-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 9%;
    align-items: center;
}

.company-experience-copy p,
.company-inquiry-copy > p {
    margin: 0;
    font-family: 'GmarketSansLight', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #222222;
    word-break: keep-all;
}

.company-inquiry {
    background-color: #eef3f8;
}

.company-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
    margin-top: 24px;
}

.company-contact-links a {
    padding-bottom: 4px;
    border-bottom: 1px solid #0d4681;
    font-family: 'GmarketSansMedium', sans-serif;
    font-size: 0.9rem;
    color: #0d4681;
}

.company-contact-links a:focus-visible,
.history-btn:focus-visible {
    outline: 2px solid #0d4681;
    outline-offset: 3px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
    .company-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .company-stat-item:nth-child(3) {
        border-right: 0;
    }

    .company-stat-item:nth-child(n + 4) {
        margin-top: 25px;
    }

    .company-capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-capability-item:nth-child(2) {
        border-right: 0;
    }

    .company-capability-item:nth-child(n + 3) {
        border-top: 1px solid #d3d8dd;
    }
}

@media (max-width: 991.98px) {
    .company-container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .company-section {
        padding: 90px 0;
    }

    .company-section-heading-wide {
        margin-bottom: 52px;
    }

    .company-intro-layout,
    .company-experience-layout,
    .company-inquiry-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .company-intro-copy {
        max-width: none;
    }

    .company-professional-grid {
        grid-template-columns: 1fr;
    }

    .company-professional-item {
        padding: 42px 25px;
        border-right: 0;
        border-bottom: 1px solid #d3d8dd;
    }

    .company-professional-item:last-child {
        border-bottom: 0;
    }

    .company-process-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .company-process-list li:nth-child(3) {
        border-right: 0;
    }

    .company-process-list li:nth-child(n + 4) {
        border-top: 1px solid #d3d8dd;
    }

    .company-process-list li:nth-child(3)::after {
        content: none;
    }
}

@media (max-width: 767.98px) {
    .company-hero-frame {
        height: 280px;
        aspect-ratio: auto;
    }

    .company-hero-overlay {
        background: linear-gradient(0deg, rgba(15, 28, 42, 0.38) 0%, rgba(20, 38, 55, 0.03) 55%);
    }

    .company-hero-caption {
        display: block;
        right: 20px;
        top: 50%;
        bottom: auto;
        left: 20px;
        width: auto;
        transform: translateY(-50%);
        text-align: center;
    }

    .company-hero-caption h1 {
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.45;
        letter-spacing: 0;
    }

    .company-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .company-section {
        padding: 72px 0;
    }

    .company-section-heading-wide {
        margin-bottom: 38px;
    }

    .company-section-heading h2,
    .company-experience h2,
    .company-inquiry h2 {
        font-size: 1.25rem;
    }

    .company-eyebrow {
        margin-bottom: 12px;
        font-size: 0.74rem;
    }

    .company-body-copy p,
    .company-experience-copy p,
    .company-inquiry-copy > p {
        font-size: 0.9rem;
        line-height: 1.75;
    }

    .company-intro-copy {
        padding-left: 16px;
    }

    .company-values-grid,
    .company-capability-grid {
        grid-template-columns: 1fr;
    }

    .company-value-item,
    .company-capability-item {
        min-height: 0;
        padding: 38px 4px;
        border-right: 0 !important;
        border-top: 1px solid #d3d8dd;
    }

    .company-value-item:first-child,
    .company-capability-item:first-child {
        border-top: 0;
    }

    .company-value-item h3,
    .company-capability-item h3,
    .company-professional-item h3 {
        margin-bottom: 18px;
        font-size: 1.05rem;
    }

    .company-value-item .company-body-copy p,
    .company-capability-item p:last-child,
    .company-professional-copy {
        font-size: 0.88rem;
    }

    .company-stats {
        padding: 48px 0;
    }

    .company-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-stat-item {
        min-height: 100px;
        padding: 14px 8px;
        border-right: 1px solid rgba(255, 255, 255, 0.25);
    }

    .company-stat-item:nth-child(even) {
        border-right: 0;
    }

    .company-stat-item:nth-child(n + 3) {
        margin-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .company-stat-item:last-child {
        grid-column: 1 / -1;
        border-right: 0;
    }

    .company-stat-item strong {
        font-size: 1.55rem;
    }

    .company-stat-item-text strong {
        font-size: 1rem;
    }

    .company-stat-item span {
        font-size: 0.62rem;
    }

    .company-professional-item {
        padding: 34px 4px;
    }

    .company-process-list {
        grid-template-columns: 1fr;
    }

    .company-process-list li {
        min-height: 0;
        padding: 30px 4px;
        border-right: 0;
        border-top: 1px solid #d3d8dd;
    }

    .company-process-list li:first-child {
        border-top: 0;
    }

    .company-process-list li:not(:last-child)::after {
        content: '↓';
        top: auto;
        right: 50%;
        bottom: -12px;
        transform: translateX(50%);
    }

    .company-process-number {
        margin-bottom: 16px;
    }

    .company-experience,
    .company-inquiry {
        padding: 66px 0;
    }

    .history-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .company-contact-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

@media (min-width: 600px) and (max-width: 767.98px) {
    .company-container {
        padding-left: 60px;
        padding-right: 60px;
    }

    .company-values-grid,
    .company-capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-value-item,
    .company-capability-item {
        padding: 40px 24px;
    }

    .company-value-item:nth-child(odd),
    .company-capability-item:nth-child(odd) {
        border-right: 1px solid #d3d8dd !important;
    }

    .company-value-item:nth-child(2),
    .company-capability-item:nth-child(2) {
        border-top: 0;
    }
}
