.fge-home-hero,
.fge-home-hero * { box-sizing: border-box; }

.fge-home-hero {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #fdfbf4;
    color: #10213e;
    overflow: hidden;
}

.fge-home-hero__inner {
    width: 84%;
    max-width: 1800px;
    margin: 0 auto;
    padding: clamp(48px, 6vw, 88px) 0 24px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(520px, 1.35fr);
    grid-template-areas:
        "eyebrow media"
        "content media"
        "trust trust";
    column-gap: clamp(50px, 7vw, 120px);
    align-items: center;
}

.fge-home-hero__eyebrow {
    grid-area: eyebrow;
    align-self: end;
    margin: 0 0 28px;
    color: #3196d1;
    font: 700 15px/1.2 "Nunito Sans", Arial, sans-serif;
    letter-spacing: .01em;
}

.fge-home-hero__content { grid-area: content; align-self: start; }
.fge-home-hero__media { grid-area: media; min-width: 0; }

.fge-home-hero__title {
    margin: 0 0 22px;
    color: #333332;
    font: 400 clamp(58px, 4.6vw, 84px)/1.02 "DM Serif Display", Georgia, serif;
    letter-spacing: -.02em;
    max-width: 640px;
}

.fge-home-hero__title sup {
    font-size: .42em;
    line-height: 0;
    vertical-align: super;
    margin-left: 2px;
}

.fge-home-hero__description {
    margin: 0;
    max-width: 650px;
    color: #1d2635;
    font: 400 clamp(17px, 1.15vw, 20px)/1.45 "Nunito Sans", Arial, sans-serif;
}

.fge-home-hero__actions {
    display: flex;
    gap: 16px;
    margin-top: 36px;
}

.fge-home-hero__button {
    min-height: 52px;
    padding: 0 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-decoration: none !important;
    font: 700 16px/1 "Nunito Sans", Arial, sans-serif;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.fge-home-hero__button:hover { transform: translateY(-1px); }
.fge-home-hero__button--primary { background: #10213e; color: #fff !important; border: 2px solid #10213e; }
.fge-home-hero__button--secondary { background: transparent; color: #10213e !important; border: 2px solid #10213e; }
.fge-home-hero__button--secondary:hover,
.fge-home-hero__button--secondary:focus-visible {
    background: #2b93cf;
    border-color: #2b93cf;
    color: #fff !important;
}
.fge-home-hero__arrow { font-size: 23px; font-weight: 400; line-height: 1; }

.fge-home-hero__proof {
    display: flex;
    align-items: center;
    gap: 88px;
    margin-top: 30px;
}

.fge-home-hero__established {
    display: inline-flex;
    padding: 3px 10px;
    border: 1px solid #10213e;
    border-radius: 999px;
    background: #eaf4f7;
    color: #10213e;
    font: 400 14px/1.1 "Nunito Sans", Arial, sans-serif;
    white-space: nowrap;
}

.fge-home-hero__rating { display: flex; flex-direction: column; align-items: flex-start; }
.fge-home-hero__stars { color: #f5a33b; letter-spacing: 2px; font-size: 19px; line-height: 1; }
.fge-home-hero__customer-text { margin-top: 4px; color: #252c36; font: 400 14px/1.2 "Nunito Sans", Arial, sans-serif; }

.fge-home-hero__trust-desktop { grid-area: trust; padding-top: 42px; }
.fge-home-hero__trust-mobile { display: none; }

.fge-home-hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 4vw, 64px);
    flex-wrap: wrap;
}

.fge-home-hero__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #252c36;
    font: 400 15px/1.2 "Nunito Sans", Arial, sans-serif;
    white-space: nowrap;
}

.fge-home-hero__trust-item svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #10213e;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.fge-hero-carousel { width: 100%; position: relative; }
.fge-hero-carousel__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--fge-hero-radius, 20px);
    background: #f2d85c;
    isolation: isolate;
}
.fge-hero-carousel__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--fge-hero-fade, 800ms) ease, visibility 0s linear var(--fge-hero-fade, 800ms);
    z-index: 0;
}
.fge-hero-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--fge-hero-fade, 800ms) ease, visibility 0s linear 0s;
    z-index: 1;
}
.fge-hero-carousel picture,
.fge-hero-carousel img { display: block; width: 100%; height: 100%; }
.fge-hero-carousel img { object-fit: cover; }

/* Keep the proven 84% desktop layout, but remove the 1800px cap on
   ultra-wide / 4K displays so the hero aligns with other 84%-wide sections. */
@media (min-width: 2560px) {
    .fge-home-hero__inner {
        width: 84%;
        max-width: none;
    }
}

@media (max-width: 1024px) {
    .fge-home-hero__inner {
        width: calc(100% - 40px);
        grid-template-columns: minmax(0, .95fr) minmax(420px, 1.15fr);
        column-gap: 44px;
    }
    .fge-home-hero__proof { gap: 40px; }
}

@media (max-width: 767px) {
    .fge-home-hero__inner {
        width: 100%;
        padding: 28px 18px 44px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .fge-home-hero__eyebrow {
        order: 1;
        margin: 0 0 28px;
        width: 100%;
        align-self: stretch;
        text-align: center !important;
        font-size: 16px;
        white-space: nowrap;
    }

    .fge-home-hero__media { order: 2; width: 100%; }
    .fge-home-hero__content { order: 3; width: 100%; }
    .fge-home-hero__trust-desktop { display: none; }
    .fge-home-hero__trust-mobile { display: block; margin: 30px 0 34px; }

    .fge-home-hero__title {
        width: 100%;
        max-width: none;
        margin: 34px 0 0;
        text-align: center;
        font-size: clamp(27px, 7.2vw, 34px);
        line-height: 1.05;
        letter-spacing: -.025em;
        white-space: nowrap;
    }

    .fge-home-hero__title sup {
        font-size: .36em;
        margin-left: 1px;
    }

    .fge-home-hero__description {
        font-size: clamp(20px, 5.7vw, 27px);
        line-height: 1.55;
        max-width: none;
    }

    .fge-home-hero__trust {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 16px 12px;
    }

    .fge-home-hero__trust-item {
        gap: 7px;
        font-size: 15px;
        white-space: normal;
    }

    .fge-home-hero__trust-item svg { width: 29px; height: 29px; }

    .fge-home-hero__actions {
        margin-top: 42px;
        gap: 16px;
        justify-content: center;
    }

    .fge-home-hero__button {
        flex: 1 1 0;
        min-width: 0;
        max-width: 225px;
        min-height: 76px;
        padding: 0 16px;
        border-radius: 14px;
        font-size: 16px;
        white-space: nowrap;
    }

    .fge-home-hero__arrow { margin-left: 2px; }

    .fge-home-hero__proof {
        margin-top: 38px;
        display: block;
    }

    .fge-home-hero__established { font-size: 18px; padding: 5px 14px; }
    .fge-home-hero__rating { margin-top: 28px; }
    .fge-home-hero__stars { font-size: 27px; letter-spacing: 3px; }
    .fge-home-hero__customer-text { margin-top: 5px; font-size: 18px; }
    .fge-hero-carousel__viewport { border-radius: 20px; }
}

@media (max-width: 390px) {
    .fge-home-hero__title { font-size: clamp(25px, 7vw, 28px); }
    .fge-home-hero__actions { gap: 10px; }
    .fge-home-hero__button { font-size: 14px; min-height: 68px; }
    .fge-home-hero__trust { gap: 16px 18px; }
    .fge-home-hero__trust-item { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .fge-hero-carousel__slide,
    .fge-home-hero__button { transition: none; }
}

/* Single-image hero mode. The carousel CSS above is intentionally retained
   so the fade feature can be restored later without rebuilding the layout. */
.fge-hero-static {
    width: 100%;
    margin: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 20px;
    background: #f2d85c;
}

.fge-hero-static img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
