﻿/* =========================================================
   CULTURE PAGE   styled to match SOLUTIONS page look/spacing
   ========================================================= */

:root {
    --max: 1120px;
    --pad: 28px;
    --gap: 26px;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 45px rgba(0,0,0,0.22);
    --panel-bg: rgba(255,255,255,0.72);
    --panel-border: rgba(70,70,90,0.18);
    --beamy: #7D85D0;
    --text: #111;
    --muted: rgba(0,0,0,0.62);
}

html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    margin: 0;
    font-family: 'Times New Roman', sans-serif;
    font-size: 15px;
    background: url("../../Images/registerBackground2.png");
    background-repeat: repeat;
    overflow-x: hidden;
}


/* =========================================================
   PAGE LAYOUT (Solutions spacing + wrap panel)
   ========================================================= */

.culturePage {
    padding: clamp(140px, 18vh, 190px) 16px 60px; /* push below fixed nav */
}

.cultureWrap {
    max-width: var(--max);
    margin: 0 auto;
    border-radius: var(--radius);
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

    .cultureWrap::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(248, 248, 255, 0.50);
        pointer-events: none;
    }

    .cultureWrap > * {
        position: relative;
        z-index: 1;
    }

/* =========================================================
   HERO (Solutions style)
   ========================================================= */

.cultureHero {
    padding: 42px var(--pad) 26px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.cultureHero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .35em;
    text-transform: uppercase;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(125,133,208,0.35);
    background: rgba(125,133,208,0.14);
    color: rgba(0,0,0,0.78);
    font-weight: 700;
    margin-bottom: 14px;
}

.cultureHero__title {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3.2vw, 3rem);
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--beamy) 0%, #777B7E 70%, var(--beamy) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'New Machiato';
    text-shadow: 0 2px 6px rgba(125,133,208,0.25);
}

.cultureHero__subtitle {
    margin: 0 auto 16px;
    max-width: 86ch;
    line-height: 1.65;
    opacity: 0.9;
    color: rgba(0,0,0,0.78);
    font-size: 1.08rem;
}

.cultureHero__note {
    margin: 12px auto 0;
    max-width: 86ch;
    color: rgba(0,0,0,0.70);
}

.cultureChips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 0;
}

/* reuse Solutions chip style */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    background: rgba(125,133,208,0.14);
    border: 1px solid rgba(125,133,208,0.45);
    color: rgba(0,0,0,0.78);
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

    .chip:hover {
        transform: translateY(-2px);
        background: rgba(125,133,208,0.20);
        box-shadow: 0 18px 40px rgba(0,0,0,0.16);
        text-decoration: none;
    }

/* =========================================================
   PANELS / GRID
   ========================================================= */

.culture-panel {
    padding: var(--pad);
}

    .culture-panel + .culture-panel {
        border-top: 1px solid rgba(0,0,0,0.10);
    }

.culture-grid {
    display: grid;
    gap: var(--gap);
    align-items: center;
}

    .culture-grid.two-col {
        grid-template-columns: 1.05fr 0.95fr;
    }

@media (max-width: 980px) {
    .culture-grid.two-col {
        grid-template-columns: 1fr;
    }
}

.culture-content h2,
.cultureSectionTitle {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 2.3vw, 2.2rem);
    color: var(--beamy);
    letter-spacing: 0.2px;
    text-align: center;
}

/* Paragraph styling (match Solutions vibe) */
.culture-paragraph,
.logoParagraph,
.fluxParagraph {
    margin: 18px auto 0;
    max-width: 1050px;
    line-height: 1.65;
    font-size: clamp(1.02rem, 1.1vw, 1.18rem);
    letter-spacing: 0.2px;
    font-family: "Times New Roman", serif;
    background: linear-gradient(90deg, #7D85D0 0%, #777B7E 70%, #7D85D0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
    padding: 30px;
    margin-bottom: 25px;
}

    .culture-paragraph .textPop,
    .logoParagraph .textPop {
        color: #e7e9ef;
        background: rgba(16, 18, 26, 0.28);
        padding: 0.08em 0.42em;
        border-radius: 999px;
        white-space: nowrap;
        -webkit-text-fill-color: #e7e9ef;
    }

/* Images */
.culture-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.10);
    cursor: pointer;
}

/* Values list */
.values-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

    .values-list li {
        padding: 10px 12px;
        border-radius: 12px;
        background: rgba(255,255,255,0.75);
        border: 1px solid rgba(0,0,0,0.08);
        color: rgba(0,0,0,0.75);
    }

.values-key {
    font-weight: 700;
}

/* =========================================================
   Logo stage (no magic negative margins)
   ========================================================= */
.logoStage {
    position: relative;
    display: grid;
    place-items: center;
    padding: 10px 0 18px;
}

.logo-img-bg {
    width: min(980px, 96%);
    height: auto;
    display: block;
}

.logo-img {
    position: absolute;
    width: min(780px, 86%);
    height: auto;
    display: block;
    border: none !important;
    background: transparent;
}

/* =========================================================
   TEXT ANIMATION (same as Solutions)
   ========================================================= */
.textFadeUp {
    opacity: 0;
    transform: translateY(10px);
    animation: textFadeUp 700ms cubic-bezier(.2,.8,.2,1) forwards;
}

.textDelay0 {
    animation-delay: 0ms;
}

.textDelay1 {
    animation-delay: 120ms;
}

.textDelay2 {
    animation-delay: 240ms;
}

.textDelay3 {
    animation-delay: 360ms;
}

.textDelay4 {
    animation-delay: 480ms;
}

@keyframes textFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .textFadeUp {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* =========================================================
   Shared beamyModal (Solutions-style lightbox look)
   ========================================================= */
/* Shared beamyModal (Beamy-blue overlay + centered panel) */
.beamyModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

    .beamyModal.is-open {
        display: block;
    }

/* ✅ overlay: Beamy blue @ 0.85 */
.beamyModal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(125,133,208,0.85); /* #7D85D0 @ .85 */
    backdrop-filter: blur(10px);
}

/* ✅ center panel perfectly on all screens */
.beamyModal__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1100px, 92vw);
    max-height: 88vh;
    border-radius: 22px;
    padding: 14px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 28px 90px rgba(0,0,0,0.55);
    overflow: hidden;
}


.beamyModal__img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    background: rgba(0,0,0,0.14);
}

.beamyModal__caption {
    margin-top: 10px;
    text-align: center;
    width: 100%;
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
    font-family: 'New Machiato';
}

.beamyModal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
    cursor: pointer;
    font-size: 18px;
}

    .beamyModal__close:hover {
        background: rgba(255,255,255,0.18);
    }

/* =========================================================
   Culture Gallery (your existing styles kept)
   ========================================================= */

.cultureGallery {
    padding: 64px 18px;
}

.cultureGallery__inner {
    max-width: 1120px;
    margin: 0 auto;
}

.cultureGallery__header {
    margin-bottom: 18px;
}

.cultureGallery__title {
    margin-top: -50px;
    font-family: "Times New Roman", serif;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    letter-spacing: 0.6px;
    background: linear-gradient( 90deg, #7D85D0 0%, #777B7E 70%, #7D85D0 100% );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 6px rgba(125,133,208,0.25);
    text-align: center;
}

.cultureGallery__grid {
    margin-top: -22px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    justify-content: center; /* centers the grid tracks */
    grid-template-columns: repeat(12, minmax(0, 72px)); /* keeps 12-col system but gives tracks a real width */
}

.cultureGallery__item {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    grid-column: span 4;
    position: relative;
    outline: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
    transform: translateZ(0);
}

    .cultureGallery__item img {
        width: 100%;
        display: block;
        object-fit: cover;
        aspect-ratio: 4 / 3;
        transition: transform 240ms ease, filter 240ms ease;
    }

    .cultureGallery__item::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(transparent 30%, rgba(0,0,0,0.35));
        opacity: 0;
        transition: opacity 240ms ease;
    }

    .cultureGallery__item:hover img,
    .cultureGallery__item:focus-visible img {
        transform: scale(1.04);
        filter: saturate(1.05);
    }

    .cultureGallery__item:hover::after,
    .cultureGallery__item:focus-visible::after {
        opacity: 1;
    }

@media (max-width: 980px) {
    .cultureGallery__item {
        grid-column: span 6;
    }
}

@media (max-width: 560px) {
    .cultureGallery__item {
        grid-column: span 12;
    }
}

/* Modal / lightbox for culture gallery */
.cultureModal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

    .cultureModal.is-open {
        display: block;
    }

.cultureModal__backdrop {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    background: rgba(125,133,208,0.85); /* #7D85D0 @ .85 */
}

.cultureModal__dialog {
    position: absolute; /* ✅ not relative */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1100px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.cultureModal__figure {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    box-shadow: 0 30px 70px rgba(0,0,0,0.45);
    position: relative;
}

.cultureModal__img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 140px);
    display: block;
    object-fit: contain;
    background: rgba(0,0,0,0.2);
}

.cultureModal__caption {
    padding: 10px 12px 12px;
    font-size: 0.95rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.88);
}

.cultureModal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
    font-size: 18px;
    z-index: 2;
}

    .cultureModal__close:hover {
        background: rgba(255,255,255,0.18);
    }

.cultureModal__nav {
    border: 0;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
    font-size: 34px;
    line-height: 1;
    display: grid;
    place-items: center;
}

    .cultureModal__nav:hover {
        background: rgba(255,255,255,0.18);
    }

@media (max-width: 640px) {
    .cultureModal__dialog {
        grid-template-columns: 44px 1fr 44px;
    }

    .cultureModal__nav {
        width: 44px;
        height: 44px;
        font-size: 30px;
    }
}

/* =========================================================
   Promise / Mission / Vision section (your existing styles, adjusted)
   ========================================================= */
.cultureVisual {
    padding: clamp(4rem, 6vw, 7rem) 1.5rem;
}

.cultureVisual__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cultureVisual__title {
    margin-top: -40px;
    font-family: "Times New Roman", serif;
    font-size: clamp(1.6rem, 4.2vw, 2.8rem);
    letter-spacing: 0.6px;
    background: linear-gradient( 90deg, #7D85D0 0%, #777B7E 70%, #7D85D0 100% );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 6px rgba(125,133,208,0.25);
    text-align: center;
}

.cultureVisual__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

    .cultureVisual__grid img {
        width: 100%;
        object-fit: cover;
        border-radius: 18px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        cursor: pointer;
    }

/* =========================================================
   Flux (your existing styles kept, with tiny alignment tweaks)
   ========================================================= */

.fluxTitle {
    margin-top: 50px;
    font-family: "Times New Roman", serif;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    letter-spacing: 0.6px;
    background: linear-gradient( 90deg, #7D85D0 0%, #777B7E 70%, #7D85D0 100% );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 6px rgba(125,133,208,0.25);
    text-align: center;
}

.flux-gallery {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.flux-main {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.75);
    overflow: hidden;
}

.flux-mainBtn {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: block;
}

    .flux-mainBtn img {
        width: 100%;
        height: 420px;
        object-fit: contain;
        display: block;
        background: rgba(255,255,255,0.65);
    }

@media (max-width: 700px) {
    .flux-mainBtn img {
        height: 320px;
    }
}

.flux-mainNav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.92);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: rgba(0,0,0,0.6);
    z-index: 5;
}

    .flux-mainNav.prev {
        left: 12px;
    }

    .flux-mainNav.next {
        right: 12px;
    }

.flux-thumbs {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
    align-items: center;
}

.flux-thumbViewport {
    overflow: hidden;
}

.flux-thumbTrack {
    display: flex;
    gap: 12px;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px;
}

    .flux-thumbTrack::-webkit-scrollbar {
        display: none;
    }

.flux-thumb {
    flex: 0 0 calc((100% - (12px * 3)) / 4);
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.9);
    border-radius: 14px;
    padding: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .flux-thumb img {
        width: 100%;
        height: 90px;
        object-fit: contain;
        display: block;
    }

@media (max-width: 820px) {
    .flux-thumb {
        flex-basis: calc((100% - 12px) / 2);
    }

        .flux-thumb img {
            height: 100px;
        }
}

@media (max-width: 520px) {
    .flux-thumb {
        flex-basis: 100%;
    }
}

.flux-thumb.is-active {
    outline: 2px solid rgba(0,0,0,0.55);
    outline-offset: 2px;
}

.flux-thumbNav {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.92);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: rgba(0,0,0,0.6);
}

    .flux-thumbNav:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

/* Flux Lightbox */
/* Flux Lightbox */
.flux-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
}

    .flux-lightbox.is-open {
        display: block;
    }

.flux-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

/* ✅ UPDATED: dialog becomes a container with a reserved top row */
.flux-lightbox__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1100px, 92vw);
    max-height: 86vh; /* ✅ use max-height, not fixed height */
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    padding: 18px;
    display: grid;
    grid-template-rows: auto 1fr; /* ✅ top controls + image area */
    align-items: start;
    box-shadow: 0 24px 90px rgba(0,0,0,0.35);
    overflow: hidden; /* ✅ prevents image overflow */
}

/* ✅ UPDATED: image is constrained to the dialog’s available space */
.flux-lightbox__img {
    width: 100%;
    height: 100%;
    max-height: 70vh; /* ✅ keeps it from getting huge on desktop */
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
}

/* ✅ keep close button always visible */
.flux-lightbox__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.95);
    cursor: pointer;
    font-size: 22px;
    z-index: 5;
}

/* nav buttons stay the same, but ensure they sit above */
.flux-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.95);
    cursor: pointer;
    font-size: 26px;
    z-index: 5;
}


    .flux-lightbox__nav.prev {
        left: 12px;
    }

    .flux-lightbox__nav.next {
        right: 12px;
    }

/* Footer */
.BeamyCoFooter {
    font-family: 'Times New Roman';
    color: #7D85D0;
}



/* =========================================================
   RESPONSIVE TUNING (mobile + small tablets)
   No copy changes — layout only.
   ========================================================= */

@media (max-width: 900px) {
    :root {
        --pad: 20px;
        --gap: 18px;
    }

    .cultureHero {
        padding: 34px var(--pad) 22px;
    }

    .culture-panel {
        padding: var(--pad);
    }

    .cultureVisual {
        padding: clamp(3rem, 6vw, 5rem) 1.1rem;
    }

    .cultureVisual__grid {
        grid-template-columns: 1fr;
    }

    .flux-mainBtn img {
        height: 340px;
    }
}

@media (max-width: 640px) {
    .culturePage {
        padding: clamp(125px, 16vh, 175px) 12px 46px;
    }

    .cultureHero__badge {
        letter-spacing: .25em;
    }

    .cultureHero__subtitle {
        font-size: 1.02rem;
    }

    .culture-paragraph,
    .logoParagraph,
    .fluxParagraph {
        font-size: 1.02rem;
        line-height: 1.7;
    }

    .cultureModal__dialog {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cultureModal__nav {
        display: none;
    }

    .flux-thumbs {
        grid-template-columns: 1fr;
    }

    .flux-thumbNav {
        display: none;
    }

    .flux-lightbox__dialog {
        width: min(1100px, 94vw);
        height: auto;
        max-height: 88vh;
        padding: 12px;
    }
}

/* ✅ Make each tile a grid container so its image can center */
.cultureGallery__item {
    display: grid;
    place-items: center; /* centers contents both ways */
}

    /* ✅ Prevent image from stretching to fill tall tile */
    .cultureGallery__item img {
        height: auto; /* stop 100% height stretching */
        width: 100%;
        aspect-ratio: 4 / 3; /* keep your shape */
        object-fit: cover;
        display: block;
    }

.cultureGallery__grid {
    justify-content: center;
    grid-auto-rows: auto; /* ensure rows hug content */
}

/* Each photo + caption wrapper */
.cultureGallery__card {
    margin: 0;
    padding: 0;
    grid-column: span 4; /* matches your old .cultureGallery__item span */
    display: grid;
    gap: 10px;
}

    /* Let the button fill the card width */
    .cultureGallery__card .cultureGallery__item {
        grid-column: auto;
    }

/* Caption shown under each photo (grid + modal friendly style) */
.cultureGallery__gridCaption {
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    color: rgba(0,0,0,0.74);
    font-size: 0.98rem;
    line-height: 1.45;
    text-align: center;
    font-family: 'New Machiato';
}

/* Responsive column spans (mirror your existing breakpoints) */
@media (max-width: 980px) {
    .cultureGallery__card {
        grid-column: span 6;
    }
}

@media (max-width: 560px) {
    .cultureGallery__card {
        grid-column: span 12;
    }
}
