/* ================================================================
   Brochure Page — Digital PDF Flipbook
   Figma: node 414:1295
   ================================================================ */

/* ─── Page Layout ─── */
.lc-brochure {
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* ─── Decorative Background Effects ─── */
.lc-brochure__effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.lc-brochure__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(103px);
    opacity: 0.5;
}

/* Figma layout_LIVT59: x:-580, y:3061, 838x638, #EFE6D9 */
.lc-brochure__blob--1 {
    width: 838px;
    height: 638px;
    bottom: 0;
    left: -40%;
    background: #EFE6D9;
}

/* Figma layout_SY6P6X: x:260, y:5141, 838x455, #CFCFCF */
.lc-brochure__blob--2 {
    width: 838px;
    height: 455px;
    bottom: -10%;
    left: 18%;
    background: #CFCFCF;
}

/* Figma layout_TZBAE8: x:1268, y:3822, 365x278, #EFE6D9 */
.lc-brochure__blob--3 {
    width: 365px;
    height: 278px;
    bottom: 15%;
    right: -5%;
    background: #EFE6D9;
}

/* ─── Content Container (Figma: 414:1312) ─── */
/* layout_UR9PUZ: column, center, fill, gap:32px, padding:100px 0 0 */
.lc-brochure__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* max-width: 1440px; */
    margin: 0 auto;
    padding: 100px 0 0;
    gap: 32px;
}

/* ─── White Gradient Overlay (Figma: 414:1313) ─── */
/* layout_1UN3HV: absolute, y:-255, 1440x453 */
/* fill_5K8QXD: linear-gradient(180deg, transparent 0%, #fff 51%) */
.lc-brochure__whiteGradient {
    position: absolute;
    top: -155px;
    /* 100px padding - 255px offset */
    left: 0;
    right: 0;
    height: 453px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 51%);
    pointer-events: none;
    z-index: -1;
}

/* ─── Title Block (Figma: 455:1652) ─── */
/* layout_807YVR: mode:row, gap:10px, hug/hug */
.lc-brochure__titleBlock {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
}

/* Figma style_43UZAH: Encode Sans Expanded 400, 32px, line-height 1.78, letter-spacing -5%, capitalize */
/* fill_JCKI7L: linear-gradient(95deg, rgba(116,125,154,0.79) 0%, rgba(39,42,52,1) 100%) */
.lc-brochure__subtitle {
    font-family: 'Encode Sans Expanded', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.78;
    letter-spacing: -0.05em;
    text-transform: capitalize;
    background: linear-gradient(95deg, rgba(116, 125, 154, 0.79) 0%, rgba(39, 42, 52, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Figma style_YWN50V: Red Rose 700, 48px, line-height 1.19, capitalize */
/* fill_I4MBHC: linear-gradient(93deg, rgba(32,42,77,1) 0%, rgba(116,124,154,1) 100%) */
.lc-brochure__title {
    font-family: 'Red Rose', serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.19;
    text-transform: capitalize;
    margin: 0;
    background: linear-gradient(93deg, rgba(32, 42, 77, 1) 0%, rgba(116, 124, 154, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Figma layout_WZ6407: absolute, y:55, 72x2, #FBD784 */
.lc-brochure__titleBar {
    position: absolute;
    bottom: -6px;
    left: 0;
    display: block;
    width: 72px;
    height: 2px;
    background: #FBD784;
}

/* ─── Brochure Card (Figma: 455:1683) ─── */
/* layout_5847U3: column, center, fill, gap:24px, padding:20px 50px 50px, border-radius:24px */
/* fill_Y88NYV: background image, cover, dark overlay */
.lc-brochure__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    align-self: stretch;
    gap: 24px;
    padding: 20px 50px 50px;
    border-radius: 24px;
    background-color: #0c1229;
    background-image: url('../../img/brochure/bg-brochure.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 0 30px;
}

/* ─── Card Header ─── */
.lc-brochure__cardHeader {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    width: 100%;
    gap: 24px;
}

.lc-brochure__cardLogo {
    width: 206px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.lc-brochure__cardTitle {
    font-family: 'Red Rose', serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.54;
    text-transform: capitalize;
    color: #FFFFFE;
    opacity: 0.8;
    white-space: nowrap;
}

/* ─── Flipbook Container ─── */
.lc-brochure__flipbook {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    min-height: min(78vh, 880px);
    box-sizing: border-box;
}

/* DearFlip: fill card width — avoid tiny book stuck top-left */
.lc-brochure__flipbook>* {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.lc-brochure__flipbook .dflip-wrapper,
.lc-brochure__flipbook ._df_book-wrapper,
.lc-brochure__flipbook #df_book_full {
    width: 100% !important;
    max-width: 100% !important;
    min-height: min(72vh, 800px) !important;
    box-sizing: border-box;
}

.lc-brochure__flipbook .dflip-wrapper-book {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Remove DearFlip default gray gutters around pages */
.lc-brochure__flipbook ._df_book,
.lc-brochure__flipbook .dflip-wrapper,
.lc-brochure__flipbook ._df_book-wrapper,
.lc-brochure__flipbook .df-container,
.lc-brochure__flipbook .df-book-stage,
.lc-brochure__flipbook .df-book-bg,
.lc-brochure__flipbook .df-loading,
.lc-brochure__flipbook canvas {
    background: transparent !important;
}

/* DearFlip runtime often injects inline gray background + top offset */
.lc-brochure__flipbook ._df_book [style*="background"],
.lc-brochure__flipbook ._df_book [style*="background-color"] {
    background: transparent !important;
    background-color: transparent !important;
}

.lc-brochure__flipbook ._df_book,
.lc-brochure__flipbook ._df_book-wrapper,
.lc-brochure__flipbook .dflip-wrapper,
.lc-brochure__flipbook .df-container,
.lc-brochure__flipbook .df-book-stage,
.lc-brochure__flipbook .df-page-stage {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
}

/* ─── DearFlip Toolbar overrides (Figma: 457:1717) ─── */
/* layout_9JN77J: 538x69, rgba(0,0,0,0.7), stroke rgba(255,255,255,0.1) 1px, */
/* border-radius: rounded pill, shadow, padding:15px 22px 1px */
.lc-brochure__card .df-ui-controls {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 9999px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(10px) !important;
    padding: 15px 22px !important;
}

.lc-brochure__card .df-ui-controls .df-ui-btn {
    color: #fff !important;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lc-brochure__card .df-ui-controls .df-ui-btn:hover {
    opacity: 1;
}

/* Figma style_14TYAD: Encode Sans Expanded 400 12px, white */
.lc-brochure__card .df-ui-controls .df-ui-page {
    font-family: 'Encode Sans Expanded', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #fff !important;
}

/* Figma fill_YN9GH6: rgba(255,255,255,0.2) separators */
.lc-brochure__card .df-ui-controls .df-ui-separator {
    background: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 1366px) and (min-width: 769px) {
    .lc-brochure__card {
        padding: 16px 28px 34px;
        margin: 0 16px;
    }

    .lc-brochure__flipbook {
        min-height: min(84vh, 940px);
    }

    .lc-brochure__flipbook .dflip-wrapper,
    .lc-brochure__flipbook ._df_book-wrapper,
    .lc-brochure__flipbook #df_book_full {
        min-height: min(78vh, 880px) !important;
    }

    .lc-brochure__flipbook .lc-pdf-embed-wrap {
        height: min(88vh, 1020px);
        min-height: 660px;
    }

    .lc-brochure__flipbook .lc-pdf-embed {
        min-height: 620px;
    }

    .lc-brochure__flipbook .dflip-wrapper iframe,
    .lc-brochure__flipbook ._df_book-wrapper iframe,
    .lc-brochure__flipbook #df_book_full iframe {
        min-height: 80vh !important;
    }
}

/* ─── Placeholder (when no shortcode is set) ─── */
.lc-brochure__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 600px;
    padding: 80px 40px;
}

.lc-brochure__placeholderInner {
    text-align: center;
    max-width: 500px;
}

.lc-brochure__placeholderIcon {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 24px;
}

.lc-brochure__placeholderTitle {
    font-family: 'Red Rose', serif;
    font-weight: 700;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px;
}

.lc-brochure__placeholderText {
    font-family: 'Encode Sans Expanded', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.lc-brochure__placeholderText code {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: #FBD784;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .lc-brochure__container {
        padding: 60px 0 0;
        gap: 24px;
    }

    .lc-brochure__subtitle {
        font-size: 22px;
    }

    .lc-brochure__title {
        font-size: 32px;
    }

    .lc-brochure__card {
        border-radius: 16px;
        padding: 16px 20px 30px;
        margin: 0 16px;
    }

    .lc-brochure__cardLogo {
        width: 140px;
        height: auto;
    }

    .lc-brochure__cardTitle {
        font-size: 16px;
    }

    .lc-brochure__flipbook {
        min-height: 400px;
    }

    .lc-brochure__flipbook .dflip-wrapper,
    .lc-brochure__flipbook ._df_book-wrapper {
        min-height: 50vh;
    }

    .lc-brochure__placeholder {
        min-height: 400px;
        padding: 40px 20px;
    }

    .lc-brochure__blob {
        display: none;
    }
}

@media (max-width: 480px) {
    .lc-brochure__subtitle {
        font-size: 18px;
    }

    .lc-brochure__title {
        font-size: 26px;
    }

    .lc-brochure__card {
        padding: 12px 12px 20px;
        margin: 0 10px;
    }

    .lc-brochure__cardLogo {
        width: 120px;
    }

    .lc-brochure__cardTitle {
        font-size: 14px;
    }

    .lc-brochure__flipbook {
        min-height: 300px;
    }
}

/* Native PDF iframe — parent must have explicit height for iframe height:100% */
.lc-brochure__flipbook .lc-pdf-embed-wrap {
    width: 100%;
    height: min(82vh, 940px);
    min-height: 520px;
    max-width: 100%;
    flex: 1 1 auto;
}

.lc-brochure__flipbook .lc-pdf-embed {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 0;
    border-radius: 12px;
    background: #e8e8ea;
}

/* DearFlip by ID: inner iframe/canvas often stays small — stretch */
.lc-brochure__flipbook .dflip-wrapper iframe,
.lc-brochure__flipbook ._df_book-wrapper iframe,
.lc-brochure__flipbook #df_book_full iframe {
    width: 100% !important;
    min-height: 70vh !important;
}
