﻿@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap");

:root {
    --rj-red: #BF2034;
    --rj-red-dark: #9E1A2B;
    --rj-grey-mid: #6B6064;
    --rj-grey-beige: #9B9692;
    --rj-gold: #CEAF80;
    --rj-gold-dark: #B8955F;
    --rj-charcoal: #3C4142;
    --rj-grey-light: #D7D9D6;
    --rj-paper: #F5F4F2;
    --white: #FFFFFF;

    /* old names kept so existing inline styles still work */
    --rj-dark: var(--rj-charcoal);
    --rj-grey: var(--rj-grey-beige);
    --rj-light: var(--rj-paper);

    --rj-font: "Navigo", "Jost", "Segoe UI", Arial, sans-serif;
    --rj-radius: 8px;
    --rj-shadow: 0 1px 2px rgba(60,65,66,.06), 0 4px 14px rgba(60,65,66,.08);
    --rj-shadow-hover: 0 2px 4px rgba(60,65,66,.08), 0 16px 36px rgba(60,65,66,.18);
    --page-gutter: 5%;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--rj-font);
    margin: 0;
    padding: 0;
    color: var(--rj-charcoal);
    background-color: var(--white);
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--rj-red);
    outline-offset: 3px;
}

.nav-bar {
    background-color: var(--white);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 var(--page-gutter);
    border-bottom: 1px solid var(--rj-grey-light);
    box-shadow: inset 0 -3px 0 var(--rj-red);
}

.logo {
    flex: 0 1 auto;
    min-width: 0;
    font-weight: 700;
    font-size: 24px;
    color: var(--rj-red);
    letter-spacing: 1px;
    text-transform: uppercase;
}

    .logo a {
        display: block;
    }

    .logo img {
        display: block;
        width: 100%;
        max-width: 350px;
        height: auto;
    }

.nav-links {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 28px;
}

    .nav-links a {
        position: relative;
        padding: 6px 0;
        text-decoration: none;
        color: var(--rj-charcoal);
        font-weight: 600;
        font-size: 15px;
        white-space: nowrap;
        transition: color .2s;
    }

        .nav-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: var(--rj-red);
            transition: width .25s ease;
        }

        .nav-links a:hover {
            color: var(--rj-red);
        }

            .nav-links a:hover::after {
                width: 100%;
            }

.hero {
    position: relative;
    min-height: clamp(520px, 75vh, 780px);
    padding: 80px 0 130px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(60,65,66,.92) 0%, rgba(60,65,66,.6) 50%, rgba(60,65,66,.2) 100%);
    }

    /* brand diagonal band from the Brand Facelift deck */
    .hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 70px;
        background:
            linear-gradient(to top right, var(--rj-red) 50%, transparent 50.5%) left bottom / 45% 100% no-repeat,
            linear-gradient(to top left, rgba(215,217,214,.6) 50%, transparent 50.5%) right bottom / 75% 100% no-repeat;
        pointer-events: none;
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: calc(8% + 760px);
    padding: 0 5% 0 8%;
    color: var(--white);
}

.hero h1 {
    position: relative;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin: 0 0 24px 0;
    padding-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--white);
    overflow-wrap: break-word;
}

    .hero h1::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 64px;
        height: 4px;
        background: var(--rj-red);
    }

.hero p {
    max-width: 620px;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 36px 0;
    color: rgba(255,255,255,.92);
}

.btn-gold,
.btn-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 16px 40px;
    border: 0;
    border-radius: 999px;
    font-family: var(--rj-font);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .3px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, transform .2s, box-shadow .2s;
}

.btn-gold {
    background-color: var(--rj-gold);
    color: var(--rj-charcoal);
}

    .btn-gold:hover {
        background-color: var(--rj-gold-dark);
        color: var(--rj-charcoal);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,.25);
    }

.btn-red {
    background-color: var(--rj-red);
    color: var(--white);
}

    .btn-red:hover {
        background-color: var(--rj-red-dark);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(191,32,52,.3);
    }

.content-section {
    padding: 88px 8%;
    background-color: var(--rj-paper);
}

.section-title {
    color: var(--rj-charcoal);
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-align: center;
}

.divider {
    height: 4px;
    width: 64px;
    background-color: var(--rj-red);
    margin: 0 auto 40px auto;
}

/* editor content: alignment is left to the WYSIWYG */
.content-section h3,
.content-section h4 {
    margin: 36px 0 14px;
    color: var(--rj-charcoal);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 600;
    line-height: 1.3;
}

.content-section h4 {
    font-size: 1.15rem;
}

.content-section p {
    color: var(--rj-grey-mid);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 16px;
}

.content-section ul,
.content-section ol {
    margin: 0 0 20px;
    padding-left: 22px;
    color: var(--rj-grey-mid);
    font-size: 1.05rem;
    line-height: 1.75;
}

.content-section li {
    margin-bottom: 8px;
    padding-left: 4px;
}

    .content-section li::marker {
        color: var(--rj-red);
    }

.content-section a:not(.btn-red):not(.btn-gold):not(.card-link) {
    color: var(--rj-red);
}

.content-section img {
    height: auto;
    border-radius: var(--rj-radius);
}

.content-section table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.content-section .content-intro {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--rj-grey-mid);
    max-width: 700px;
    margin: 0 auto 56px auto;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    border-radius: var(--rj-radius);
}

.card {
    position: relative;
    height: 320px;
    padding: 0;
    overflow: hidden;
    border-radius: var(--rj-radius);
    background-color: var(--rj-charcoal);
    box-shadow: var(--rj-shadow);
    cursor: pointer;
    transition: transform .4s ease, box-shadow .4s ease;
}

    .card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(60,65,66,.95) 0%, rgba(60,65,66,.25) 45%, rgba(60,65,66,.1) 100%);
        transition: background .4s ease;
        z-index: 1;
    }

    .card.job-card::before {
        background: linear-gradient(to top, rgba(60,65,66,.65) 0%, rgba(60,65,66,.25) 45%, rgba(60,65,66,0) 100%);
    }


    .card::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 4px;
        background-color: var(--rj-red);
        transition: width .4s ease;
        z-index: 3;
    }

/* title sits at the bottom; the description grows in above the bar and pushes it up */
.card-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.card h3 {
    margin: 0;
    padding-bottom: 12px;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: .3px;
    line-height: 1.3;
    background: linear-gradient(var(--rj-gold), var(--rj-gold)) left bottom / 36px 3px no-repeat;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card p {
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: .92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .4s ease, opacity .4s ease, margin .4s ease;
}

.card-link:hover .card,
.card-link:focus-visible .card {
    transform: translateY(-6px);
    box-shadow: var(--rj-shadow-hover);
}

    .card-link:hover .card::before,
    .card-link:focus-visible .card::before {
        background: linear-gradient(to top, rgba(60,65,66,.97) 0%, rgba(60,65,66,.85) 55%, rgba(60,65,66,.6) 100%);
    }

    .card-link:hover .card::after,
    .card-link:focus-visible .card::after {
        width: 100%;
    }

    .card-link:hover .card p,
    .card-link:focus-visible .card p {
        max-height: 10em;
        margin-top: 14px;
        opacity: 1;
    }

/* touch screens can't hover, so show a short description all the time */
@media (hover: none) {
    .card p {
        max-height: 4.7em;
        margin-top: 12px;
        opacity: 1;
        -webkit-line-clamp: 3;
    }

    .card::before {
        background: linear-gradient(to top, rgba(60,65,66,.96) 0%, rgba(60,65,66,.7) 55%, rgba(60,65,66,.25) 100%);
    }

    .card-link:hover .card {
        transform: none;
    }
}

.site-footer {
    position: relative;
    overflow: hidden;
    background-color: var(--rj-charcoal);
    border-top: 4px solid var(--rj-red);
    color: var(--rj-grey-light);
}

    /* brand diagonal accent in the top-right corner */
    .site-footer::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 42%;
        height: 90px;
        background:
            linear-gradient(to bottom left, rgba(191,32,52,.9) 50%, transparent 50.5%) right top / 55% 100% no-repeat,
            linear-gradient(to bottom left, rgba(155,150,146,.25) 50%, transparent 50.5%) right top / 100% 100% no-repeat;
        pointer-events: none;
    }

.footer-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 72px 8% 56px;
}

.footer-brand .footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

    .footer-brand .footer-logo img {
        display: block;
        width: 100%;
        max-width: 280px;
        height: auto;
    }

.footer-tagline {
    max-width: 360px;
    margin: 0 0 24px;
    color: var(--rj-grey-light);
    font-size: .95rem;
    line-height: 1.7;
}

.footer-cta {
    padding: 12px 26px;
    font-size: .92rem;
}

.footer-heading {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .3px;
}

    .footer-heading::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 28px;
        height: 3px;
        background: var(--rj-red);
    }

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: var(--rj-grey-light);
        font-size: .95rem;
        text-decoration: none;
        transition: color .2s, padding .2s;
    }

        .footer-links a:hover {
            color: var(--rj-gold);
            padding-left: 4px;
        }

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .footer-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255,255,255,.25);
        border-radius: 50%;
        color: var(--white);
        transition: background-color .2s, border-color .2s, transform .2s;
    }

        .footer-social a:hover {
            background-color: var(--rj-red);
            border-color: var(--rj-red);
            transform: translateY(-2px);
        }

    .footer-social svg {
        width: 18px;
        height: 18px;
    }

.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255,255,255,.12);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 8%;
}

.footer-copyright {
    margin: 0;
    color: var(--rj-grey-beige);
    font-size: .88rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .footer-legal a {
        color: var(--rj-grey-beige);
        font-size: .88rem;
        text-decoration: none;
        transition: color .2s;
    }

        .footer-legal a:hover {
            color: var(--white);
        }

.site-footer a:focus-visible {
    outline: 2px solid var(--rj-gold);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 32px;
        padding: 64px 6% 48px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom-inner {
        padding: 20px 6%;
    }
}

@media (max-width: 768px) {
    .site-footer::before {
        width: 60%;
        height: 56px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 24px;
        padding: 56px var(--page-gutter) 40px;
    }

    .footer-follow {
        grid-column: 1 / -1;
    }

    .footer-brand .footer-logo img {
        max-width: 240px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px var(--page-gutter) 24px;
    }
}

@media (max-width: 360px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

.categories-btn-all {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 48px;
    padding: 0 var(--page-gutter);
}

    .categories-btn-all a {
        min-width: 320px;
        margin: auto;
    }

@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

@media (max-width: 1024px) {
    .hero {
        min-height: 0;
        padding: 72px 0 120px;
    }

    .hero-content {
        padding: 0 6%;
        max-width: calc(6% + 720px);
    }

    .content-section {
        padding: 64px 6%;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card {
        height: 280px;
    }

    .card-content {
        padding: 24px;
    }

    .card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --page-gutter: 20px;
    }

    .nav-bar {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        min-height: 0;
        padding: 18px var(--page-gutter);
    }

    .logo img {
        max-width: 260px;
        margin: 0 auto;
    }

    .nav-links {
        gap: 24px;
    }

    .hero {
        padding: 48px 0 80px;
        text-align: left;
    }

        .hero::before {
            background: linear-gradient(180deg, rgba(60,65,66,.9) 0%, rgba(60,65,66,.65) 100%);
        }

        .hero::after {
            height: 40px;
        }

    .hero-content {
        max-width: 100%;
        padding: 0 var(--page-gutter);
    }

    .hero h1 {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

        .hero h1::after {
            width: 52px;
        }

    .hero p {
        margin-bottom: 28px;
    }

    .hero .btn-gold {
        width: 100%;
    }

    .content-section {
        padding: 56px var(--page-gutter);
    }

        .content-section .content-intro {
            font-size: 1.05rem;
            margin-bottom: 40px;
        }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        height: 240px;
    }

    .categories-btn-all {
        margin-top: 36px;
    }

        .categories-btn-all a {
            width: 100%;
            min-width: 0;
        }
}

@media (max-width: 480px) {
    .content-section {
        padding: 48px var(--page-gutter);
    }

    .card {
        height: 220px;
    }

    .card-content {
        padding: 20px;
    }

    .card h3 {
        font-size: 1.1rem;
        letter-spacing: 0;
    }

    .card p {
        font-size: .85rem;
    }

    .categories-btn-all a {
        padding: 14px 24px !important;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .nav-links {
        gap: 18px;
    }

        .nav-links a {
            font-size: 14px;
        }

    .card {
        height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .card::before,
    .card::after,
    .card p,
    .btn-gold,
    .btn-red,
    .nav-links a::after,
    .footer-links a,
    .footer-social a {
        transition: none;
    }

    .card-link:hover .card {
        transform: none;
    }
}
[class^="btn-"] {
    text-transform: uppercase;
}