/* =========================================================
   Homepage
   ========================================================= */

.rz-home {
    overflow: hidden;
}

.rz-eyebrow {
    margin: 0 0 14px;
    color: var(--rz-brand-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}


/* Hero */

.rz-home-hero {
    padding: 42px 0 30px;
    background: #fff;
}

.rz-home-hero__panel {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    min-height: 480px;
    overflow: hidden;
    border-radius: var(--rz-radius-lg);
    background: var(--rz-bg-soft);
}

.rz-home-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(42px, 5vw, 76px);
}

.rz-home-hero h1 {
    max-width: 720px;
    margin-bottom: 22px;
    font-size: clamp(2.8rem, 5vw, 4.7rem);
}

.rz-home-hero__intro {
    max-width: 590px;
    margin-bottom: 30px;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.65;
}

.rz-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rz-home-hero__media {
    position: relative;
    min-height: 430px;
    background:
        linear-gradient(135deg, #eceef1, #f8f8f9);
}

.rz-home-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Trust */

.rz-trust-strip {
    padding: 28px 0;
    background: #fff;
}

.rz-trust-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rz-border);
    border-bottom: 1px solid var(--rz-border);
}

.rz-trust-item {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 18px;
    border-right: 1px solid var(--rz-border);
}

.rz-trust-item:last-child {
    border-right: 0;
}

.rz-trust-item__icon {
    display: inline-flex;
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    color: var(--rz-brand-red);
}

.rz-trust-item__icon svg {
    width: 100%;
    height: 100%;
}

.rz-trust-item strong {
    color: var(--rz-charcoal);
    font-size: 14px;
}


/* Departments */

.rz-departments {
    background: #fff;
}

.rz-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 36px;
}

.rz-section-heading h2 {
    max-width: 760px;
    margin: 0;
}

.rz-section-heading__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 5px;
    color: var(--rz-charcoal);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.rz-section-heading__link:hover {
    color: var(--rz-brand-red);
}

.rz-departments__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
}

.rz-department-card {
    min-height: 360px;
}

.rz-department-card--1,
.rz-department-card--4,
.rz-department-card--5 {
    grid-column: span 7;
}

.rz-department-card--2,
.rz-department-card--3,
.rz-department-card--6 {
    grid-column: span 5;
}

.rz-department-card__link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    overflow: hidden;
    border-radius: var(--rz-radius-lg);
    background: #eceef1;
}

.rz-department-card__media {
    position: absolute;
    inset: 0;
}

.rz-department-card__media::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 25%,
            rgba(0, 0, 0, 0.68) 100%
        );
    content: "";
}

.rz-department-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.rz-department-card__content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 32px;
}

.rz-department-card h3 {
    margin: 0 0 9px;
    color: #fff;
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
}

.rz-department-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.rz-department-card__link:hover .rz-department-card__image {
    transform: scale(1.035);
}


/* Responsive */

@media (max-width: 900px) {
    .rz-home-hero {
        padding-top: 24px;
    }

    .rz-home-hero__panel {
        grid-template-columns: 1fr;
    }

    .rz-home-hero__content {
        padding: 48px 36px;
    }

    .rz-home-hero__media {
        min-height: 370px;
    }

    .rz-trust-strip__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rz-trust-item:nth-child(2) {
        border-right: 0;
    }

    .rz-trust-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--rz-border);
    }

    .rz-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .rz-department-card--1,
    .rz-department-card--2,
    .rz-department-card--3,
    .rz-department-card--4,
    .rz-department-card--5,
    .rz-department-card--6 {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .rz-home-hero__content {
        padding: 38px 25px;
    }

    .rz-home-hero__media {
        min-height: 285px;
    }

    .rz-home-hero__actions {
        width: 100%;
    }

    .rz-home-hero__actions .rz-button {
        flex: 1 1 auto;
    }

    .rz-trust-strip {
        padding-block: 20px;
    }

    .rz-trust-item {
        min-height: 76px;
        justify-content: flex-start;
        padding: 14px 10px;
    }

    .rz-trust-item__icon {
        width: 25px;
        height: 25px;
    }

    .rz-trust-item strong {
        font-size: 12px;
    }

    .rz-departments__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rz-department-card--1,
    .rz-department-card--2,
    .rz-department-card--3,
    .rz-department-card--4,
    .rz-department-card--5,
    .rz-department-card--6 {
        grid-column: auto;
        min-height: 270px;
    }

    .rz-department-card__link {
        min-height: 270px;
    }

    .rz-department-card__content {
        padding: 24px;
    }
}


/* =========================================================
   Refined department proportions
   ========================================================= */

.rz-section-heading__title {
    margin: 0 0 10px;
    font-family: "Montserrat Alternates", "Montserrat", sans-serif;
    font-size: clamp(2.25rem, 3.5vw, 3.15rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.rz-section-heading__subtitle {
    margin: 0;
    color: var(--rz-text-soft);
    font-size: 16px;
}

.rz-department-card {
    min-height: 310px;
}

.rz-department-card__link {
    min-height: 310px;
}

@media (max-width: 900px) {
    .rz-department-card {
        min-height: 285px;
    }

    .rz-department-card__link {
        min-height: 285px;
    }
}

@media (max-width: 640px) {
    .rz-section-heading__title {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .rz-department-card,
    .rz-department-card__link {
        min-height: 245px;
    }
}
