/* Chefs Finder 3.5.7 — canonical homepage hero layout. */
body.home .cf-hero,
body.front-page .cf-hero {
    position: relative;
    min-height: var(--cf-hero-height, 620px);
    height: var(--cf-hero-height, 620px);
    display: block;
    overflow: visible;
    isolation: isolate;
    background: #071a3a;
    color: #fff;
}

body.home .cf-hero-media,
body.front-page .cf-hero-media {
    position: absolute;
    inset: 0 0 0 48%;
    overflow: hidden;
    z-index: 0;
}

body.home .cf-hero-media img,
body.front-page .cf-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

body.home .cf-hero-overlay,
body.front-page .cf-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(7,26,58,1) 0%,
            rgba(7,26,58,.98) 30%,
            rgba(7,26,58,.92) 44%,
            rgba(7,26,58,.62) 58%,
            rgba(7,26,58,.16) 78%,
            rgba(7,26,58,0) 100%);
}

body.home .cf-hero-inner,
body.front-page .cf-hero-inner {
    position: relative;
    z-index: 3;
    width: min(var(--cf-hero-content-width, 900px), calc(100% - 40px));
    min-height: 100%;
    margin: 0;
    margin-left: max(20px, calc((100% - 1440px) / 2));
    padding: 120px 0 120px;
    display: flex;
    align-items: flex-start;
}

body.home .cf-hero-copy,
body.front-page .cf-hero-copy {
    max-width: var(--cf-hero-content-width, 900px);
    width: 100%;
}

body.home .cf-hero-kicker,
body.front-page .cf-hero-kicker {
    display: inline-block;
    color: #e1ba59;
    margin-bottom: 8px;
}

body.home .cf-hero h1,
body.front-page .cf-hero h1 {
    max-width: 820px;
    margin: 10px 0 20px;
    color: #fff;
    font-size: clamp(44px, 4.3vw, var(--cf-hero-title-size, 60px));
    line-height: 1.04;
    letter-spacing: -.035em;
}

body.home .cf-hero p,
body.front-page .cf-hero p {
    max-width: 680px;
    margin: 0;
    color: #e5edf9;
    font-size: 20px;
    line-height: 1.6;
}

body.home .cf-hero-actions,
body.front-page .cf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

body.home .cf-home-search,
body.front-page .cf-home-search {
    position: absolute;
    left: 50%;
    bottom: calc(var(--cf-hero-search-overlap, 55px) * -1);
    transform: translateX(-50%);
    z-index: 20;
    width: min(var(--cf-hero-search-width, 1475px), calc(100% - 48px));
    height: var(--cf-hero-search-height, 110px);
    padding: 10px;
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(7,26,58,.20);
}

body.home .cf-home-search form,
body.front-page .cf-home-search form {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr) 180px;
    align-items: stretch;
    gap: 0;
}

body.home .cf-home-search label,
body.front-page .cf-home-search label {
    min-width: 0;
    padding: 12px 18px 8px;
    border-right: 1px solid #e1e7f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.home .cf-home-search label span,
body.front-page .cf-home-search label span {
    margin-bottom: 5px;
    color: #5f6d83;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.home .cf-home-search input,
body.home .cf-home-search select,
body.front-page .cf-home-search input,
body.front-page .cf-home-search select {
    width: 100%;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border: 0 !important;
    outline: 0;
    background: #fff !important;
    color: #18243d;
    font-size: 17px;
}

body.home .cf-home-search button,
body.front-page .cf-home-search button {
    align-self: center;
    width: 100%;
    height: 88px;
    min-height: 88px;
    border: 0;
    border-radius: 12px;
    background: #244da6;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease;
}

body.home .cf-home-search button:hover,
body.front-page .cf-home-search button:hover {
    background: #071a3a;
    transform: translateY(-1px);
}

body.home .cf-stats,
body.front-page .cf-stats {
    position: relative;
    z-index: 5;
    width: min(1440px, calc(100% - 48px));
    min-height: 155px;
    margin: calc(var(--cf-hero-search-overlap, 55px) + 1px) auto 0;
    padding: 30px 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    background: #1c4498;
    color: #fff;
    border-radius: 0 0 16px 16px;
}

body.home .cf-stats div,
body.front-page .cf-stats div {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.22);
}

body.home .cf-stats div:last-child,
body.front-page .cf-stats div:last-child {
    border-right: 0;
}

body.home .cf-stats strong,
body.front-page .cf-stats strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    font-weight: 850;
}

body.home .cf-stats span,
body.front-page .cf-stats span {
    color: #fff;
    font-size: 15px;
    font-weight: 750;
}

body.home .cf-home-section:first-of-type,
body.front-page .cf-home-section:first-of-type {
    padding-top: 75px;
}

@media (max-width: 1200px) {
    body.home .cf-hero-inner,
    body.front-page .cf-hero-inner {
        margin-left: 28px;
    }

    body.home .cf-home-search,
    body.front-page .cf-home-search {
        width: calc(100% - 40px);
    }

    body.home .cf-home-search form,
    body.front-page .cf-home-search form {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 165px;
    }
}

@media (max-width: 900px) {
    body.home .cf-hero,
    body.front-page .cf-hero {
        height: auto;
        min-height: 620px;
    }

    body.home .cf-hero-media,
    body.front-page .cf-hero-media {
        inset: 0;
    }

    body.home .cf-hero-overlay,
    body.front-page .cf-hero-overlay {
        background: linear-gradient(90deg, rgba(7,26,58,.96), rgba(7,26,58,.76));
    }

    body.home .cf-hero-inner,
    body.front-page .cf-hero-inner {
        min-height: 620px;
        width: calc(100% - 40px);
        margin: 0 auto;
        padding: 95px 0 150px;
    }

    body.home .cf-home-search,
    body.front-page .cf-home-search {
        height: auto;
        min-height: 110px;
    }

    body.home .cf-home-search form,
    body.front-page .cf-home-search form {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }

    body.home .cf-home-search label:nth-child(2),
    body.front-page .cf-home-search label:nth-child(2) {
        border-right: 0;
    }

    body.home .cf-home-search button,
    body.front-page .cf-home-search button {
        grid-column: 1 / -1;
        height: 58px;
        min-height: 58px;
        margin-top: 8px;
    }

    body.home .cf-stats,
    body.front-page .cf-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 120px;
    }

    body.home .cf-stats div:nth-child(2),
    body.front-page .cf-stats div:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 600px) {
    body.home .cf-hero,
    body.front-page .cf-hero {
        min-height: 560px;
    }

    body.home .cf-hero-inner,
    body.front-page .cf-hero-inner {
        min-height: 560px;
        width: calc(100% - 30px);
        padding: 70px 0 140px;
    }

    body.home .cf-hero h1,
    body.front-page .cf-hero h1 {
        font-size: 38px;
    }

    body.home .cf-hero p,
    body.front-page .cf-hero p {
        font-size: 16px;
    }

    body.home .cf-home-search,
    body.front-page .cf-home-search {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: calc(100% - 30px);
        height: auto;
        margin: -35px auto 0;
        padding: 8px;
    }

    body.home .cf-home-search form,
    body.front-page .cf-home-search form {
        grid-template-columns: 1fr;
    }

    body.home .cf-home-search label,
    body.front-page .cf-home-search label {
        border-right: 0;
        border-bottom: 1px solid #e1e7f0;
        padding: 10px 12px;
    }

    body.home .cf-home-search button,
    body.front-page .cf-home-search button {
        grid-column: auto;
        height: 58px;
        min-height: 58px;
        margin-top: 8px;
    }

    body.home .cf-stats,
    body.front-page .cf-stats {
        width: calc(100% - 30px);
        margin-top: 25px;
        padding: 20px 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 0 0 14px 14px;
    }

    body.home .cf-stats div,
    body.front-page .cf-stats div {
        min-height: 75px;
    }

    body.home .cf-stats strong,
    body.front-page .cf-stats strong {
        font-size: 30px;
    }

    body.home .cf-stats span,
    body.front-page .cf-stats span {
        font-size: 12px;
    }

    body.home .cf-home-section:first-of-type,
    body.front-page .cf-home-section:first-of-type {
        padding-top: 55px;
    }
}
