/* ===== Company profile brochure (/ve-chung-toi/) ===== */
.rn-brochure {
    --rn-brochure-bg: var(--gray-100);
    --rn-brochure-accent: var(--primary);

    background: var(--rn-brochure-bg);
    padding: var(--space-6) var(--space-4) var(--space-10);
}

.rn-brochure__intro {
    max-width: 760px;
    margin: 0 auto var(--space-6);
    text-align: center;
}

.rn-brochure__title {
    color: var(--rn-brochure-accent);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.rn-brochure__stage {
    /* A two-page spread is ~1.41:1; cap the width so a whole spread fits under the navbar. */
    max-width: min(1100px, calc((100vh - 140px) * 1.41));
    margin: 0 auto;
}

/* Fallback (no JS): a vertical list of pages */
.rn-brochure__page img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 700px;
    margin: 0 auto var(--space-4);
    box-shadow: var(--shadow-lg);
}

/* Flipbook mode: StPageFlip sizes the pages itself */
.rn-brochure__book.is-ready .rn-brochure__page {
    background: #fff;
}

.rn-brochure__book.is-ready .rn-brochure__page img {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: contain;
    box-shadow: none;
}

.rn-brochure__book.is-ready {
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.15));
    transition: transform 0.6s ease;
    /* PageFlip swaps page elements during a flip; don't let the browser anchor scrolling to them */
    overflow-anchor: none;
}

/* Closed book in a two-page spread: the cover sits on one half, so shift it to the centre */
.rn-brochure__book.is-closed-front {
    transform: translateX(-25%);
}

.rn-brochure__book.is-closed-back {
    transform: translateX(25%);
}

@media (prefers-reduced-motion: reduce) {
    .rn-brochure__book.is-ready {
        transition: none;
    }
}

.rn-brochure__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.rn-brochure__controls[hidden] {
    display: none;
}

.rn-brochure__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--gray-300, #cbd5e1);
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--rn-brochure-accent);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.rn-brochure__btn:hover,
.rn-brochure__btn:focus-visible {
    background: var(--rn-brochure-accent);
    color: #fff;
}

.rn-brochure__counter {
    min-width: 80px;
    text-align: center;
    color: var(--gray-600);
    font-size: var(--text-sm);
    font-variant-numeric: tabular-nums;
}

@media (min-width: 992px) {
    .rn-brochure {
        padding: var(--space-10) var(--space-8) var(--space-16);
    }

    .rn-brochure__title {
        font-size: var(--text-4xl);
    }
}
