/* =========================================================
   FLEX ROCK ABOUT
   ========================================================= */


/* =========================================================
   SHARED
   ========================================================= */

.elementor-widget-fr-about-hero,
.elementor-widget-fr-about-statement {
    width: 100%;
}

.elementor-widget-fr-about-hero > .elementor-widget-container,
.elementor-widget-fr-about-statement > .elementor-widget-container {
    width: 100%;
}


/*
 * Remove Elementor's default 10px column padding only
 * when the column contains one of our About widgets.
 */
.elementor-column-gap-default
> .elementor-column
> .elementor-element-populated:has(
    :is(
        .elementor-widget-fr-about-hero,
        .elementor-widget-fr-about-statement
    )
) {
    padding: 0;
}


/*
 * Shared About typography.
 */
.fr-about-hero,
.fr-about-statement {
    font-family: 'Oxanium', sans-serif;
}


/* =========================================================
   ELEMENTOR ABOUT SECTION
   ========================================================= */

@media (min-width: 1025px) {

    .fr-about-section.elementor-section.elementor-section-boxed
    > .elementor-container {
        width: 100%;
        max-width: 1268px;
    }
}


/* =========================================================
   ABOUT HERO / SPLIT CONTENT
   ========================================================= */

.fr-about-hero {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);

    width: 100%;
    max-width: 1268px;
    min-height: 620px;
    min-width: 0;

    margin: 0 auto;
    padding: 0;

    background: #fff;

    overflow: visible;
}


/* =========================================================
   HERO IMAGE POSITION
   ========================================================= */

/* Text left / image right */

.fr-about-hero--image-right .fr-about-hero__content {
    grid-column: 1;
    grid-row: 1;
}

.fr-about-hero--image-right .fr-about-hero__image {
    grid-column: 2;
    grid-row: 1;
}


/* Image left / text right */

.fr-about-hero--image-left .fr-about-hero__image {
    grid-column: 1;
    grid-row: 1;
}

.fr-about-hero--image-left .fr-about-hero__content {
    grid-column: 2;
    grid-row: 1;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.fr-about-hero__content {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #fff;
    min-width: 0;
}


.fr-about-hero__content h1 {
    margin: 0;

    font-family: inherit;
    font-size: clamp(5rem, 8vw, 7.5rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.05em;

    text-transform: uppercase;

    color: #000;
}


.fr-about-hero__rule {
    display: block;

    width: 42px;
    height: 4px;

    margin: 2.25rem 0 2rem;

    background: #ed1c24;
}


.fr-about-hero__text {
    width: 100%;

    font-family: inherit;
    font-size: 1.25rem;
    line-height: 1.65;

    color: black;
}


.fr-about-hero__text p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}


.fr-about-hero__text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.fr-about-hero__image {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 620px;
    min-width: 0;
    max-width: 100%;

    overflow: hidden;
}


.fr-about-hero__image img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   HERO DESKTOP
   ========================================================= */

@media (min-width: 1025px) {

    /* Text spacing */

    .fr-about-hero--image-right .fr-about-hero__content {
        padding-right: clamp(3rem, 5vw, 6rem);
    }

    .fr-about-hero--image-left .fr-about-hero__content {
        padding-left: clamp(3rem, 5vw, 6rem);
    }


    /* Keep both image variants within their assigned grid tracks. */
    .fr-about-hero--image-right .fr-about-hero__image,
    .fr-about-hero--image-left .fr-about-hero__image {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0;
    }

}


/* =========================================================
   HERO TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .fr-about-hero {
        grid-template-columns: minmax(0, 48%) minmax(0, 52%);

        min-height: 560px;

        overflow: hidden;
    }


    .fr-about-hero__content {
        padding: 4rem 3rem;
    }


    .fr-about-hero__content h1 {
        font-size: clamp(4.5rem, 8vw, 6rem);
        line-height: 0.84;
    }


    .fr-about-hero__rule {
        margin: 2rem 0;
    }


    .fr-about-hero__image {
        width: 100%;
        min-height: 560px;

        margin-left: 0;
    }
}


/* =========================================================
   HERO MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .fr-about-hero {
        display: flex;
        flex-direction: column;

        width: 100%;
        min-height: auto;

        overflow: hidden;
    }


    /*
     * Always keep content above the image on mobile,
     * regardless of desktop image position.
     */
    .fr-about-hero__content {
        order: 1;

        width: 100%;

        padding: 4rem 1.5rem;
    }


    .fr-about-hero__image {
        order: 2;

        width: 100%;
        height: 500px;
        min-height: 500px;

        margin-left: 0;
    }


    .fr-about-hero__content h1 {
        font-size: clamp(4rem, 20vw, 6rem);
        line-height: 0.84;
    }


    .fr-about-hero__rule {
        margin: 1.75rem 0;
    }


    .fr-about-hero__text {
        width: 100%;

        font-size: 1.25rem;
    }


    .fr-about-hero__image img {
        object-position: center;
    }
}


/* =========================================================
   HERO SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .fr-about-hero__content {
        padding: 3.5rem 1.25rem;
    }


    .fr-about-hero__content h1 {
        font-size: clamp(3.75rem, 21vw, 5rem);
    }


    .fr-about-hero__text {
        font-size: 1rem;
    }


    .fr-about-hero__image {
        height: 420px;
        min-height: 420px;
    }
}


/* =========================================================
   ABOUT STATEMENT
   ========================================================= */

/*
 * Black background goes full width.
 * The quote/content inside stays aligned to our
 * 1268px About page width.
 */
.fr-about-statement {
    width: 100%;

    padding: clamp(4rem, 6vw, 6rem) 2rem;

    background: #000;
}


/* =========================================================
   STATEMENT QUOTE
   ========================================================= */

.fr-about-statement__quote {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(1.5rem, 3vw, 3rem);

    width: 100%;
    max-width: 1268px;

    margin: 0 auto;
    padding: 0;

    border: 0;
}


/* =========================================================
   STATEMENT QUOTE MARK
   ========================================================= */

/*
 * Explicitly place the quote in the first grid column,
 * so it always stays to the LEFT of the statement.
 */
.fr-about-statement__mark {
    grid-column: 1;
    grid-row: 1;

    display: block;

    margin: 0;

    font-family: inherit;
    font-size: 5rem;
    font-weight: 800;
    line-height: 0.75;

    color: #ed1c24;
}


/* =========================================================
   STATEMENT TEXT
   ========================================================= */

.fr-about-statement__text {
    grid-column: 2;
    grid-row: 1;

    width: 100%;

    margin: 0;
    padding: 0;

    font-family: inherit;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.25;

    color: #fff;
}


/* =========================================================
   STATEMENT MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .fr-about-statement {
        padding: 3rem 1.5rem;
    }


    .fr-about-statement__quote {
        grid-template-columns: 45px minmax(0, 1fr);

        column-gap: 1rem;
    }


    .fr-about-statement__mark {
        font-size: 4rem;
    }


    .fr-about-statement__text {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.3;
    }
}

/* =========================================================
   ABOUT REVIEWS
   ========================================================= */

.fr-about-reviews {
    width: 100%;

    padding:
        clamp(4rem, 6vw, 6rem)
        2rem;

    background: #f5f5f5;

    font-family: 'Oxanium', sans-serif;
}


.fr-about-reviews__inner {
    width: 100%;
    max-width: 1268px;

    margin: 0 auto;
}


/* =========================================================
   REVIEWS HEADER
   ========================================================= */

.fr-about-reviews__header {
    display: flex;
    align-items: center;

    gap: 2rem;

    margin-bottom: 2.5rem;
}


.fr-about-reviews__header h2 {
    margin: 0;

    font-family: inherit;
    font-size: clamp(
        2rem,
        3vw,
        2.75rem
    );
    font-weight: 800;
    line-height: 1;

    color: #000;
}


.fr-about-reviews__header-rule {
    flex: 1;

    height: 2px;

    background: #d9d9d9;
}


/* =========================================================
   REVIEWS SLIDER
   ========================================================= */

.fr-about-reviews__slider {
    position: relative;

    width: 100%;
}


/*
 * Splide handles overflow here.
 */
.fr-about-reviews__slider
.splide__track {
    overflow: hidden;
}


/*
 * Allow cards to stretch to equal height.
 */
.fr-about-reviews__slider
.splide__list {
    align-items: stretch;
}


/*
 * Each Splide slide becomes a flex container so the
 * card can stretch to the full available height.
 */
.fr-about-reviews__slider
.splide__slide {
    display: flex;

    height: auto;
}


/* =========================================================
   REVIEW CARD
   ========================================================= */

.fr-about-review {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-height: 290px;

    padding: 2rem;

    background: #fff;

    border-top:
        3px solid
        #ed1c24;

    box-shadow:
        0 2px 6px
        rgba(0, 0, 0, 0.08);
}


/* =========================================================
   REVIEW QUOTE MARK
   ========================================================= */

.fr-about-review__mark {
    display: block;

    margin-bottom: 1.5rem;

    font-family: inherit;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 0.6;

    color: #ed1c24;
}


/* =========================================================
   REVIEW TEXT
   ========================================================= */

.fr-about-review__text {
    flex: 1;

    margin: 0;

    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;

    color: black;
}


/* =========================================================
   REVIEW NAME
   ========================================================= */

.fr-about-review__name {
    margin: 2rem 0 0;

    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: #111;
}


.fr-about-review__name::before {
    content: '— ';
}


/* =========================================================
   ASTRA OVERRIDES
   ========================================================= */

.fr-about-review
.fr-about-review__text,
.fr-about-review
.fr-about-review__name {
    margin-bottom: 0;
}


/* =========================================================
   SPLIDE ARROWS
   ========================================================= */

.fr-about-reviews__slider
.splide__arrow {
    width: 42px;
    height: 42px;

    opacity: 1;

    background: #000;
}


.fr-about-reviews__slider
.splide__arrow:hover {
    opacity: 0.85;
}


.fr-about-reviews__slider
.splide__arrow svg {
    fill: #fff;
}


/*
 * Keep arrows just outside the cards on large screens.
 */
.fr-about-reviews__slider
.splide__arrow--prev {
    left: -1.25rem;
}


.fr-about-reviews__slider
.splide__arrow--next {
    right: -1.25rem;
}


/* =========================================================
   SPLIDE PAGINATION
   ========================================================= */

.fr-about-reviews__slider
.splide__pagination {
    position: relative;
    bottom: auto;

    display: flex;

    margin: 2rem 0 0;
    padding: 0;
}


.fr-about-reviews__slider
.splide__pagination__page {
    width: 9px;
    height: 9px;

    margin: 4px;

    opacity: 0.3;

    background: #000;
}


.fr-about-reviews__slider
.splide__pagination__page.is-active {
    transform: scale(1.25);

    opacity: 1;

    background: #ed1c24;
}


/* =========================================================
   REMOVE ELEMENTOR COLUMN PADDING
   ========================================================= */

.elementor-column-gap-default
> .elementor-column
> .elementor-element-populated:has(
    .elementor-widget-fr-about-reviews
) {
    padding: 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .fr-about-reviews__header {
        gap: 1.5rem;
    }


    /*
     * Keep arrows inside the slider at tablet sizes.
     */
    .fr-about-reviews__slider
    .splide__arrow--prev {
        left: 0.5rem;
    }


    .fr-about-reviews__slider
    .splide__arrow--next {
        right: 0.5rem;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .fr-about-reviews {
        padding:
            3rem
            1.5rem;
    }


    .fr-about-reviews__header {
        gap: 1rem;

        margin-bottom: 2rem;
    }


    .fr-about-reviews__header h2 {
        font-size: 2rem;
    }


    /*
     * JavaScript sets Splide to perPage: 1 here.
     * CSS simply makes the individual card fit naturally.
     */
    .fr-about-review {
        min-height: 300px;

        padding: 1.75rem;
    }


    .fr-about-review__text {
        font-size: 1rem;
    }


    /*
     * On mobile keep navigation buttons comfortably
     * inside the slider.
     */
    .fr-about-reviews__slider
    .splide__arrow {
        width: 38px;
        height: 38px;
    }


    .fr-about-reviews__slider
    .splide__arrow--prev {
        left: 0.5rem;
    }


    .fr-about-reviews__slider
    .splide__arrow--next {
        right: 0.5rem;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .fr-about-reviews {
        padding:
            2.5rem
            1.25rem;
    }


    .fr-about-review {
        min-height: 280px;
    }
}

/* Overrides */
.entry-content .fr-about-statement__text {
    margin: 0;
}

/* Debug safeguard:
   if Elementor fails to initialize Splide,
   don't leave the entire reviews area invisible. */
.elementor-editor-active
.fr-about-reviews__slider:not(.is-initialized) {
    visibility: visible;
}