/*
 * New header and hero (redesign 2026).
 * Loaded after the theme styles and only when the new design is enabled.
 * All classes use the fc- prefix. Hero rules are scoped under .fc-hero-area: the theme has
 * ".sect-1 form select / input / button" and ".sect-1 p", which have to be beaten by specificity.
 */

.fc-header,
.fc-hero-area {
    --fc-green: #7fc220;
    --fc-green-hover: #70ae17;
    --fc-teal: #1a4b5c;
    --fc-navy: #0a1200;
    --fc-ink: #243b53;
    --fc-label: #334e68;
    --fc-muted: #7b8794;
    --fc-field: #f4f8fb;
    /* Graphik is loaded from static/fonts/graphik/ (see fc_graphik_font_face); without the files Manrope is used. */
    --fc-font-accent: "Graphik", "Manrope", sans-serif;
    font-family: "Manrope", sans-serif;
}

/* ---------- Header ---------- */

.fc-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 66px;
}

.fc-header__logo {
    flex-shrink: 0;
    padding-right: 2px;
    font-family: var(--fc-font-accent);
    font-size: 21px;
    font-weight: 500;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.02em;
    text-decoration: none;
    background: linear-gradient(84.76deg, #2f4858 6.7%, #006274 16.04%, #42ae60 45.46%, #8fc03c 91.44%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.fc-header__menu {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.fc-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 56px;
}

.fc-header__link {
    font-family: var(--fc-font-accent);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--fc-navy);
    text-decoration: none;
    transition: color 0.2s;
}

.fc-header__link:hover {
    color: var(--fc-green);
}

.fc-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 32px;
    border-radius: 10px;
    background: var(--fc-green);
    font-family: var(--fc-font-accent);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.fc-header__btn:hover {
    background: var(--fc-green-hover);
    color: #fff;
}

.fc-header__burger,
.fc-header__menu-top {
    display: none;
}

/* ---------- Hero ---------- */

.fc-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 418px;
    padding: 96px 20px;
    overflow: hidden;
    background: #2b6a5c;
}

.fc-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.fc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        2.28deg,
        rgba(23, 39, 50, 0.4) 2.07%,
        rgba(0, 98, 116, 0.4) 32.13%,
        rgba(66, 174, 96, 0.4) 51.54%,
        rgba(143, 192, 60, 0.4) 81.66%,
        rgba(66, 174, 96, 0.4) 97.52%
    );
}

.fc-hero__content {
    max-width: 900px;
    text-align: center;
    color: #fff;
}

.fc-hero-area .fc-hero__title {
    max-width: 860px;
    margin: 0 auto;
    font-family: var(--fc-font-accent);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}

.fc-hero-area .fc-hero__text {
    max-width: 880px;
    margin: 30px auto 0;
}

.fc-hero-area .fc-hero__text,
.fc-hero-area .fc-hero__text p {
    font-family: var(--fc-font-accent);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
    color: #fff;
}

.fc-hero-area .fc-hero__text p {
    margin: 0;
}

/* ---------- Quick loan form ---------- */

.fc-hero-area .fc-quick-form {
    max-width: 900px;
    margin: 64px auto 0;
    padding: 16px 32px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0px 4px 28px 0px #00000012;
    backdrop-filter: blur(50px);
}

.fc-hero-area .fc-quick-form__title {
    margin: 0 0 16px;
    font-family: var(--fc-font-accent);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    color: #2f4858;
}

.fc-hero-area .fc-quick-form__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.fc-hero-area .fc-quick-form__label {
    display: block;
    margin: 0 0 4px;
    font-family: var(--fc-font-accent);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #3a5c60;
}

.fc-quick-form__select {
    position: relative;
}

.fc-hero-area .fc-quick-form__select select {
    display: block;
    flex: none;
    width: 100%;
    max-width: none;
    height: 60px !important;
    margin: 0;
    padding: 0 56px 0 24px;
    border: 0;
    border-radius: 12px;
    background: #f8fcff;
    font-family: var(--fc-font-accent);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    color: #2f4858;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
}

.fc-hero-area .fc-quick-form__select select:focus-visible {
    box-shadow: 0 0 0 2px var(--fc-green);
}

.fc-quick-form__select .fc-icon {
    position: absolute;
    top: 50%;
    right: 24px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    color: #2f4858;
    pointer-events: none;
}

.fc-hero-area .fc-quick-form__btn {
    display: block;
    width: 100%;
    max-width: none;
    height: 60px !important;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-radius: 15px;
    background: #7fc220;
    box-shadow: 0px 4px 12px 0px #00000014;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.fc-hero-area .fc-quick-form__btn:hover {
    background: var(--fc-green-hover);
}

.fc-hero-area .fc-quick-form__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0 0;
    list-style: none;
    padding-left: 0;
}

.fc-hero-area .fc-quick-form__badges li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    color: #81929e;
}

.fc-quick-form__badges .fc-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    stroke-width: 1.8;
}

/* ---------- Loan type buttons ---------- */

.fc-hero-area .fc-loan-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 64px 0 0;
    padding: 0;
    list-style: none;
}

.fc-hero-area .fc-loan-links li {
    margin: 0;
}

.fc-loan-links__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
    padding: 8px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(100deg, var(--fc-teal) 0%, var(--fc-teal) 25%, var(--fc-green) 100%) border-box;
    font-family: var(--fc-font-accent);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.1;
    color: #1f3347;
    text-decoration: none;
    transition: box-shadow 0.2s;
}

.fc-loan-links__item:hover {
    box-shadow: 0 6px 18px rgba(16, 42, 67, 0.1);
}

.fc-loan-links__item .fc-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
    color: #8fc03c;
}

.fc-hero-area .sponsor-wraps {
    margin-top: 56px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
    .fc-hero-area .fc-hero__title {
        font-size: 48px;
    }
}

@media (max-width: 991px) {
    .fc-header {
        min-height: 56px;
    }

    .fc-header__burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6.5px;
        width: 40px;
        height: 40px;
        margin-right: -8px;
        padding: 8px;
        border: 0;
        background: none;
        cursor: pointer;
    }

    .fc-header__burger span {
        display: block;
        width: 24px;
        height: 1.5px;
        border-radius: 2px;
        background: var(--fc-navy);
        transition:
            transform 0.25s,
            opacity 0.25s;
    }

    /* Full-screen menu overlay; starts below the WP admin bar when it is shown. */
    .fc-header__menu {
        position: fixed;
        inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0;
        z-index: 1000;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 24px 32px 32px;
        overflow-y: auto;
        background: #fff;
        visibility: hidden;
        opacity: 0;
        /* Hide only after the fade-out... */
        transition:
            opacity 0.2s,
            visibility 0s 0.2s;
    }

    /* ...but show at once, so the close button can take focus right away. */
    .fc-header.is-open .fc-header__menu {
        visibility: visible;
        opacity: 1;
        transition:
            opacity 0.2s,
            visibility 0s;
    }

    /* Page scroll is locked while the menu is open (class set in fc-header-hero.js). */
    html.fc-menu-open,
    html.fc-menu-open body {
        overflow: hidden;
    }

    .fc-header__menu-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 40px;
    }

    .fc-header__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-right: -10px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--fc-navy);
        cursor: pointer;
    }

    .fc-header__close .fc-icon {
        width: 20px;
        height: 20px;
        stroke-width: 1.5;
    }

    .fc-header__nav {
        flex: none;
        flex-direction: column;
        justify-content: flex-start;
        gap: 26px;
        margin-top: 115px;
        padding-bottom: 32px;
    }

    .fc-header__link {
        padding: 12px 0;
    }

    .fc-header__btn {
        width: 100%;
        height: 48px;
        margin-top: auto;
    }

    .fc-hero-area .fc-hero__title {
        font-size: 44px;
    }

    .fc-hero-area .fc-loan-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .fc-hero {
        min-height: 320px;
        padding: 44px 16px 41px;
    }

    .fc-hero-area .fc-hero__title {
        font-size: 34px;
        line-height: 1.12;
    }

    .fc-hero-area .fc-hero__text {
        margin-top: 24px;
    }

    .fc-hero-area .fc-hero__text,
    .fc-hero-area .fc-hero__text p {
        font-size: 15px;
        line-height: 1.15;
    }

    .fc-hero-area .fc-quick-form {
        margin-top: 40px;
        padding: 16px;
    }

    .fc-hero-area .fc-quick-form__form {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fc-hero-area .fc-quick-form__badges {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: start;
        gap: 16px;
        margin-top: 16px;
        padding-left: 0;
    }

    .fc-hero-area .fc-quick-form__badges li {
        padding: 0;
        color: #94a3b8;
    }

    .fc-hero-area .fc-loan-links {
        margin-top: 56px;
    }

    .fc-loan-links__item {
        gap: 1px;
        padding: 14px;
        font-size: 15px;
    }

    .fc-loan-links__item .fc-icon {
        width: 16px;
        height: 16px;
        margin-left: -4px;
    }
}
