/* brand_playmobil.html — PLAYMOBIL B2B 브랜드 페이지 */

/* intro 섹션 없는 페이지: 스크롤 최상단에서도 GNB 배경 유지 */
.pm-brand-page-body #header {
    background: linear-gradient(45deg, #475C59, #2F3938);
    padding: 20px 0;
    height: 72px;
}

.pm-brand-page {
    padding-top: 72px;
    background: #fff;
    color: #111;
    font-family: "Pretendard", "Montserrat", Arial, sans-serif;
}

.pm-brand-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Hero / Intro ── */
.pm-brand-hero {
    text-align: center;
    padding: 64px 24px 48px;
}

.pm-brand-hero h1 {
    font-size: 60px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 28px;
    color: #111;
}

.pm-brand-hero-thin {
    font-weight: 100;
}

.pm-brand-withtmise {
    display: block;
    width: 287px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 40px;
}

.pm-brand-intro {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.pm-brand-intro p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #333;
    margin: 0 0 18px;
}

.pm-brand-intro p:last-child {
    margin-bottom: 0;
}

.pm-brand-intro-lead {
    font-weight: 700;
    color: #111;
}

/* ── History ── */
.pm-history {
    padding: 48px 24px 80px;
}

.pm-history h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 56px;
    color: #111;
}

.pm-history .pm-brand-inner {
    max-width: 1180px;
}

.pm-timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.pm-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #FFD55C;
    transform: translateX(-50%);
}

.pm-timeline-item {
    position: relative;
    margin-bottom: 112px;
}

.pm-timeline-item:last-child {
    margin-bottom: 0;
}

.pm-timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid #FFD55C;
    background: #fff;
    box-sizing: border-box;
    z-index: 2;
}

.pm-timeline-marker::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFD55C;
}

.pm-timeline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 72px;
    align-items: start;
}

.pm-timeline-item--reverse .pm-timeline-text {
    grid-column: 2;
    grid-row: 1;
}

.pm-timeline-item--reverse .pm-timeline-media {
    grid-column: 1;
    grid-row: 1;
}

.pm-timeline-text {
    padding: 8px 0;
}

.pm-timeline-item:not(.pm-timeline-item--reverse) .pm-timeline-text {
    text-align: right;
    padding-right: 12px;
}

.pm-timeline-item--reverse .pm-timeline-text {
    text-align: left;
    padding-left: 12px;
}

.pm-timeline-date {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
}

.pm-timeline-title {
    font-size: 16px;
    font-weight: 400;
    color: #222;
    margin: 0 0 6px;
}

.pm-timeline-desc {
    font-size: 20px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.pm-timeline-media {
    border-radius: 12px;
    overflow: hidden;
    width: 510px;
    max-width: 100%;
    height: 340px;
}

.pm-timeline-item:not(.pm-timeline-item--reverse) .pm-timeline-media {
    justify-self: end;
    align-self: start;
}

.pm-timeline-item--reverse .pm-timeline-media {
    justify-self: start;
    align-self: start;
}

.pm-timeline-media img {
    display: block;
    width: 510px;
    max-width: 100%;
    height: 340px;
    object-fit: cover;
    cursor: pointer;
}

.pm-timeline-media img:focus {
    outline: 3px solid #2f8f74;
    outline-offset: 4px;
}

/* ── Project Popup ── */
.pm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pm-project-modal[hidden] {
    display: none;
}

.pm-project-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.48);
}

.pm-project-modal__dialog {
    position: relative;
    width: 934px;
    height: 600px;
    max-width: calc(100vw - 48px);
    max-height: calc(100dvh - 48px);
    padding: 48px;
    background: #fff;
    border-radius: 18px;
    box-sizing: border-box;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.pm-project-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 1;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 48px;
    font-weight: 100;
    line-height: 1;
    cursor: pointer;
}

.pm-project-modal__close:hover,
.pm-project-modal__close:focus {
    color: #111;
    outline: none;
}

.pm-project-modal__layout {
    display: grid;
    grid-template-columns: 124px minmax(0, 654px);
    gap: 18px;
    height: 100%;
    align-items: start;
}

.pm-project-modal__thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 124px;
    height: 490px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    scrollbar-color: #9a9a9a transparent;
    scrollbar-width: thin;
    box-sizing: border-box;
}

.pm-project-modal__thumbs::-webkit-scrollbar {
    width: 8px;
}

.pm-project-modal__thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.pm-project-modal__thumbs::-webkit-scrollbar-thumb {
    background: #9a9a9a;
    border-radius: 8px;
}

.pm-project-modal__thumb {
    position: relative;
    flex: 0 0 auto;
    width: 106px;
    height: 82px;
    padding: 0;
    border: 0;
    background: #e6e6e6;
    cursor: pointer;
    overflow: hidden;
}

.pm-project-modal__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    pointer-events: none;
}

.pm-project-modal__thumb.is-active::after {
    border: 5px solid #2f8f74;
}

.pm-project-modal__thumb:focus {
    outline: none;
}

.pm-project-modal__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-project-modal__content {
    width: 654px;
    height: 490px;
    margin: 0;
    background: #e6e6e6;
    overflow: hidden;
}

.pm-project-modal__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .pm-project-modal {
        align-items: center;
        padding: 16px;
    }

    .pm-project-modal__dialog {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: calc(100dvh - 32px);
        padding: 36px 18px 24px;
        border-radius: 16px;
        overflow: auto;
    }

    .pm-project-modal__close {
        top: 6px;
        right: 8px;
    }

    .pm-project-modal__layout {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 10px;
    }

    .pm-project-modal__thumbs {
        width: 84px;
    }

    .pm-project-modal__thumb {
        width: 72px;
    }

    .pm-project-modal__thumbs {
        height: min(360px, calc(100dvh - 92px));
        gap: 8px;
    }

    .pm-project-modal__thumb {
        height: 56px;
    }

    .pm-project-modal__content {
        width: 100%;
        height: auto;
        aspect-ratio: 654 / 490;
    }
}

/* ── CTA ── */
.pm-brand-cta {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 72px 24px;
}

.pm-brand-cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.pm-brand-cta p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0 0 24px;
}

.pm-brand-cta a {
    display: inline-block;
    padding: 14px 36px;
    background: #fff;
    color: #111;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.pm-brand-cta a:hover {
    opacity: 0.9;
    color: #111;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .pm-brand-page {
        padding-top: 72px;
    }

    .pm-brand-hero {
        padding: 40px 16px 32px;
    }

    .pm-history {
        padding: 32px 16px 56px;
    }

    .pm-history h2 {
        margin-bottom: 32px;
    }

    .pm-timeline::before {
        left: 20px;
        transform: none;
    }

    .pm-timeline-marker {
        left: 20px;
        top: 0;
        transform: translate(-50%, 0);
    }

    .pm-timeline-item {
        margin-bottom: 80px;
        padding-left: 48px;
    }

    .pm-timeline-row,
    .pm-timeline-item--reverse .pm-timeline-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
        direction: ltr;
    }

    .pm-timeline-text {
        padding: 0;
        order: 2;
    }

    .pm-timeline-item--reverse .pm-timeline-text,
    .pm-timeline-item--reverse .pm-timeline-media {
        grid-column: auto;
        grid-row: auto;
    }

    .pm-timeline-item:not(.pm-timeline-item--reverse) .pm-timeline-text,
    .pm-timeline-item--reverse .pm-timeline-text {
        text-align: left;
        padding-right: 0;
        padding-left: 0;
    }

    .pm-timeline-item:not(.pm-timeline-item--reverse) .pm-timeline-media,
    .pm-timeline-item--reverse .pm-timeline-media {
        justify-self: stretch;
    }

    .pm-timeline-media {
        order: 1;
        width: 100%;
        height: auto;
        aspect-ratio: 510 / 340;
    }

    .pm-timeline-media img {
        width: 100%;
        height: auto;
        aspect-ratio: 510 / 340;
    }
}
