﻿/* =====================================================================
   CAREERS PAGE  -  /wwwroot/css/careers.css
   Same palette as before (teal / emerald). New layout & structure.
   Every class starts with "cr-".
   ===================================================================== */
.cr-page {
    --cr-blue: #0e7c66;
    --cr-blue-d: #0a5e4d;
    --cr-sky: #6ccfb9;
    --cr-ink: #0a1230;
    --cr-muted: #4d5a72;
    --cr-bg: #f5faf8;
    --cr-tint: #e3f5ef;
    --cr-pink: #ff7a9c;
    --cr-amber: #ffb547;
    --cr-line: rgba(10,18,48,.12);
    --cr-offset: calc(var(--nav2-h,42px) + var(--nav-h,100px));
    --cr-head: 'Bricolage Grotesque',system-ui,sans-serif;
    --cr-body: 'Instrument Sans',system-ui,sans-serif;
    font-family: var(--cr-body);
    color: var(--cr-ink);
    background: var(--cr-bg);
    line-height: 1.65;
    overflow-x: hidden;
}

    .cr-page *, .cr-page *::before, .cr-page *::after {
        box-sizing: border-box;
    }

    .cr-page img {
        max-width: 100%;
        display: block;
    }

    .cr-page a {
        text-decoration: none;
        color: inherit;
    }

    .cr-page h1, .cr-page h2, .cr-page h3 {
        font-family: var(--cr-head);
        font-weight: 800;
        letter-spacing: -.03em;
        line-height: 1.1;
        margin: 0;
        color: var(--cr-ink);
    }

    .cr-page p {
        margin: 0;
    }

    .cr-page :focus-visible {
        outline: 2px solid var(--cr-blue);
        outline-offset: 3px;
    }

.cr-wrap {
    width: min(1180px,100% - 2.5rem);
    margin-inline: auto;
}

.cr-section {
    padding: clamp(3.5rem,9vw,7rem) 0;
}

.cr-alt {
    background: var(--cr-tint);
}

.cr-white {
    background: #fff;
}

.cr-title {
    font-size: clamp(1.8rem,4.2vw,3.1rem);
    max-width: 22ch;
}

.cr-lead {
    color: var(--cr-muted);
    font-size: clamp(1rem,1.4vw,1.15rem);
    max-width: 58ch;
    margin-top: 1rem;
}

.cr-head {
    margin-bottom: clamp(2rem,5vw,3.5rem);
}

.cr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .95rem 1.7rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    border: 1px solid var(--cr-blue);
    transition: transform .3s,background .3s,color .3s,box-shadow .3s;
    cursor: pointer;
}

.cr-btn-fill {
    background: var(--cr-blue);
    color: #fff;
}

    .cr-btn-fill:hover {
        background: #fff;
        color: var(--cr-blue);
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(14,124,102,.25);
    }

.cr-btn-line {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.55);
}

    .cr-btn-line:hover {
        background: #fff;
        color: var(--cr-ink);
        transform: translateY(-3px);
    }

/* ================= HERO (asymmetric split) ================= */
.cr-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    padding: calc(var(--cr-offset) + clamp(2.5rem,6vw,5rem)) 0 clamp(3.5rem,8vw,6rem);
    background: radial-gradient(800px 480px at 10% 90%,rgba(255,181,71,.14),transparent 60%), radial-gradient(900px 500px at 88% 15%,rgba(108,207,185,.35),transparent 60%), linear-gradient(160deg,#061a2c 0%,#0e3b4e 100%);
}

.cr-hero-split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(2rem,5vw,4.5rem);
    align-items: center;
}

.cr-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cr-sky);
    border: 1px solid rgba(108,207,185,.4);
    padding: .3rem .8rem;
    border-radius: 99px;
    margin-bottom: 1.2rem;
}

.cr-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem,5.4vw,4.4rem);
    line-height: 1.05;
}

    .cr-hero h1 em {
        font-style: normal;
        color: var(--cr-sky);
    }

.cr-hero-p {
    margin-top: 1.4rem;
    max-width: 52ch;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem,1.5vw,1.15rem);
}

.cr-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem;
}

.cr-hero-meta {
    display: flex;
    gap: 2rem;
    margin-top: 2.4rem;
    flex-wrap: wrap;
}

    .cr-hero-meta b {
        display: block;
        font-family: var(--cr-head);
        font-size: 1.6rem;
        color: #fff;
        line-height: 1.1;
    }

    .cr-hero-meta span {
        font-size: .82rem;
        color: rgba(255,255,255,.65);
    }

/* hero image stack */
.cr-hero-stack {
    position: relative;
    height: clamp(320px, 42vw, 480px);
}

.cr-stack-img {
    position: absolute;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,.35);
    border: 4px solid rgba(255,255,255,.12);
}

    .cr-stack-img.big {
        top: 0;
        right: 0;
        width: 78%;
        height: 82%;
        z-index: 1;
    }

        .cr-stack-img.big img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .cr-stack-img.small {
        bottom: 0;
        left: 0;
        width: 52%;
        height: 52%;
        z-index: 2;
        animation: crFloat 6s ease-in-out infinite;
    }

        .cr-stack-img.small img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.cr-stack-badge {
    position: absolute;
    bottom: 12%;
    right: 8%;
    z-index: 3;
    background: #fff;
    color: var(--cr-ink);
    font-size: .82rem;
    font-weight: 700;
    padding: .65rem 1.1rem;
    border-radius: 99px;
    box-shadow: 0 14px 34px rgba(10,18,48,.3);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.cr-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cr-sky);
    animation: crPulse 1.6s ease-in-out infinite;
}

@keyframes crFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes crPulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(108,207,185,.5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(108,207,185,0);
    }
}

/* ================= MARQUEE STRIP ================= */
.cr-marquee {
    background: var(--cr-blue);
    color: #fff;
    overflow: hidden;
    padding: 1rem 0;
}

.cr-marquee-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: crMarquee 30s linear infinite;
    font-family: var(--cr-head);
    font-size: clamp(.95rem,1.4vw,1.15rem);
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
}

    .cr-marquee-track i {
        color: var(--cr-sky);
        font-style: normal;
    }

.cr-marquee:hover .cr-marquee-track {
    animation-play-state: paused;
}

@keyframes crMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ================= BENTO CULTURE GRID ================= */
.cr-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
}

.cr-bento-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--cr-line);
    background: #fff;
    transition: transform .35s ease, box-shadow .35s ease;
}

    .cr-bento-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 22px 44px rgba(14,124,102,.16);
    }

    .cr-bento-item.tall {
        grid-row: span 2;
        grid-column: span 2;
    }

    .cr-bento-item.wide {
        grid-column: span 2;
    }

    .cr-bento-item img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cr-bento-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(6,26,44,.85), rgba(6,26,44,.05));
    color: #fff;
}

    .cr-bento-overlay h3 {
        color: #fff;
        font-size: 1.25rem;
        margin-bottom: .35rem;
    }

    .cr-bento-overlay p {
        color: rgba(255,255,255,.82);
        font-size: .9rem;
        max-width: 38ch;
    }

.cr-bento-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cr-bento-num {
    font-family: var(--cr-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cr-blue);
    line-height: 1;
    margin-bottom: .5rem;
}

.cr-bento-content h3 {
    font-size: 1.15rem;
    margin-bottom: .35rem;
}

.cr-bento-content p {
    color: var(--cr-muted);
    font-size: .9rem;
}

/* ================= TIMELINE ================= */
.cr-timeline {
    position: relative;
}

.cr-timeline-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 27px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--cr-blue) 0 8px, transparent 8px 16px);
    opacity: .35;
}

.cr-timeline-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    position: relative;
}

    .cr-timeline-steps li {
        text-align: center;
        padding: 0 .4rem;
    }

.cr-tl-num {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: var(--cr-blue);
    color: #fff;
    font-family: var(--cr-head);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 0 8px var(--cr-tint);
}

.cr-timeline-steps h3 {
    font-size: 1.05rem;
    margin-bottom: .35rem;
}

.cr-timeline-steps p {
    color: var(--cr-muted);
    font-size: .9rem;
}

/* ================= JOB ACCORDIONS ================= */
.cr-jobs {
    display: grid;
    gap: 1rem;
}

.cr-job {
    background: #fff;
    border: 1px solid var(--cr-line);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}

    .cr-job:hover {
        border-color: rgba(14,124,102,.4);
        box-shadow: 0 18px 34px rgba(14,124,102,.12);
    }

    .cr-job summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 1.4rem 1.6rem;
    }

        .cr-job summary::-webkit-details-marker {
            display: none;
        }

.cr-job-head {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
}

    .cr-job-head h3 {
        font-size: 1.12rem;
        margin: 0;
    }

.cr-job-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .7rem;
    border-radius: 99px;
    background: var(--cr-tint);
    color: var(--cr-blue-d);
    white-space: nowrap;
}

.cr-job-loc {
    font-size: .82rem;
    color: var(--cr-muted);
    white-space: nowrap;
}

.cr-job-plus {
    position: relative;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

    .cr-job-plus::before,
    .cr-job-plus::after {
        content: "";
        position: absolute;
        inset: 10px 0 auto;
        height: 2px;
        background: var(--cr-blue);
        transition: transform .3s;
    }

    .cr-job-plus::after {
        transform: rotate(90deg);
    }

.cr-job[open] .cr-job-plus::after {
    transform: rotate(0);
}

.cr-job-body {
    padding: 0 1.6rem 1.6rem;
}

    .cr-job-body p {
        color: var(--cr-muted);
        font-size: .95rem;
        margin: 0 0 1.2rem;
        max-width: 68ch;
    }

/* ================= TESTIMONIAL PHOTO STRIP ================= */
.cr-voice-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.cr-voice {
    margin: 0;
    background: var(--cr-bg);
    border: 1px solid var(--cr-line);
    border-radius: 16px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform .35s, box-shadow .35s;
}

    .cr-voice:hover {
        transform: translateY(-5px);
        box-shadow: 0 22px 44px rgba(14,124,102,.14);
    }

.cr-voice-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--cr-tint);
}

    .cr-voice-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cr-voice blockquote {
    margin: 0;
    font-size: 1rem;
    color: var(--cr-ink);
    line-height: 1.7;
    font-style: italic;
}

.cr-voice figcaption b {
    display: block;
    font-size: .92rem;
    color: var(--cr-ink);
}

.cr-voice figcaption span {
    font-size: .8rem;
    color: var(--cr-muted);
}

/* ================= FAQ + CTA SIDE-BY-SIDE ================= */
.cr-faq-cta {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(2rem,5vw,4rem);
    align-items: start;
}

.cr-faq {
    max-width: none;
    margin: 0;
}

    .cr-faq details {
        border-bottom: 1px solid var(--cr-line);
    }

    .cr-faq summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 1.2rem 0;
        font-family: var(--cr-head);
        font-weight: 800;
        font-size: clamp(1rem,1.6vw,1.15rem);
    }

        .cr-faq summary::-webkit-details-marker {
            display: none;
        }

        .cr-faq summary::after {
            content: "+";
            font-size: 1.5rem;
            line-height: 1;
            color: var(--cr-blue);
            transition: transform .3s;
        }

    .cr-faq details[open] summary::after {
        transform: rotate(45deg);
    }

    .cr-faq details p {
        padding: 0 0 1.2rem;
        color: var(--cr-muted);
        max-width: 68ch;
        font-size: .95rem;
    }

/* CTA card */
.cr-cta-card {
    background: #fff;
    border: 1px solid var(--cr-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(14,124,102,.1);
    position: sticky;
    top: calc(var(--cr-offset) + 1rem);
}

.cr-cta-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

    .cr-cta-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cr-cta-card-body {
    padding: 1.6rem;
}

    .cr-cta-card-body h2 {
        font-size: clamp(1.3rem,2.4vw,1.7rem);
        margin-bottom: .7rem;
    }

    .cr-cta-card-body p {
        color: var(--cr-muted);
        font-size: .95rem;
        margin-bottom: 1.4rem;
    }

    .cr-cta-card-body .cr-btn {
        width: 100%;
    }

.cr-cta-mail {
    display: block;
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--cr-muted);
}

    .cr-cta-mail a {
        color: var(--cr-blue);
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

/* reveal */
.cr-js .cr-rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease,transform .8s ease;
}

    .cr-js .cr-rv.cr-in {
        opacity: 1;
        transform: none;
    }

/* ================= RESPONSIVE ================= */
@media (max-width:1100px) {
    .cr-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .cr-bento-item.tall {
        grid-column: span 2;
        grid-row: span 2;
    }

    .cr-bento-item.wide {
        grid-column: span 2;
    }

    .cr-timeline-steps {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 2rem;
    }

    .cr-timeline-line {
        display: none;
    }

    .cr-voice-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .cr-faq-cta {
        grid-template-columns: 1fr;
    }

    .cr-cta-card {
        position: relative;
        top: auto;
    }
}

@media (max-width:900px) {
    .cr-hero-split {
        grid-template-columns: 1fr;
    }

    .cr-hero-stack {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .cr-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .cr-timeline-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .cr-voice-strip {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:767px) {
    .cr-page {
        --cr-offset: calc(var(--nav2-h,38px) + var(--nav-h,64px));
    }

    .cr-hero-cta .cr-btn {
        flex: 1 1 100%;
    }

    .cr-hero-meta {
        gap: 1.4rem;
    }

    .cr-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .cr-bento-item.tall,
    .cr-bento-item.wide,
    .cr-bento-item {
        grid-column: auto;
        grid-row: auto;
        min-height: 240px;
    }

    .cr-timeline-steps {
        grid-template-columns: 1fr;
        row-gap: 1.6rem;
    }

        .cr-timeline-steps li {
            text-align: left;
            display: flex;
            gap: 1rem;
            align-items: flex-start;
        }

    .cr-tl-num {
        margin: 0;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

        .cr-tl-num + h3 {
            margin-top: .3rem;
        }

    .cr-voice-strip {
        grid-template-columns: 1fr;
    }

    .cr-job summary {
        flex-wrap: wrap;
    }

    .cr-job-loc {
        width: 100%;
    }

    .cr-job-head {
        width: 100%;
    }
}

@media (max-width:480px) {
    .cr-wrap {
        width: min(1180px,100% - 1.6rem);
    }

    .cr-stack-badge {
        font-size: .72rem;
        padding: .5rem .85rem;
        bottom: 6%;
        right: 4%;
    }

    .cr-bento-item {
        min-height: 220px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .cr-page * {
        animation: none !important;
        transition: none !important;
    }

    .cr-js .cr-rv {
        opacity: 1;
        transform: none;
    }
}
