/* =========================================================
   SEARCH PAGE
========================================================= */

.search-page {
    --search-navy: #071d33;
    --search-dark: #060b11;
    --search-text: #151d25;
    --search-muted: #727b83;
    --search-line: rgba(7, 29, 51, .11);

    width: 100%;
    overflow: hidden;
    background: #fff;
    color: var(--search-text);
}


/* =========================================================
   HERO
========================================================= */

.search-hero {
    position: relative;
    overflow: hidden;
    padding: 175px 0 115px;
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(26, 63, 96, .42),
            transparent 31%
        ),
        linear-gradient(
            125deg,
            #05080c 0%,
            #07111b 55%,
            #0a1825 100%
        );
    color: #fff;
}


.search-hero-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 82px 82px;

    pointer-events: none;
}


.search-hero .container {
    position: relative;
    z-index: 2;
}


.search-hero-inner {
    max-width: 1080px;
    margin: 0 auto;
}


.search-kicker {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 27px;

    color: rgba(255,255,255,.42);

    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 700;

    letter-spacing: .18em;
}


.search-kicker::before {
    content: "";

    width: 34px;
    height: 1px;

    background: rgba(255,255,255,.3);
}


.search-hero h1 {
    margin: 0;

    color: #fff;

    font-family: "Manrope", sans-serif;
    font-size: clamp(58px, 6.2vw, 92px);
    font-weight: 450;

    line-height: .96;
    letter-spacing: -.065em;
}


.search-hero h1 em {
    display: block;

    color: #8fa8bd;

    font: inherit;
    font-style: normal;
}


/* =========================================================
   SEARCH FORM
========================================================= */

.search-main-form {
    width: 100%;
    margin-top: 52px;
}


.search-input-wrap {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;

    min-height: 78px;

    border-bottom: 1px solid rgba(255,255,255,.25);

    transition:
        border-color .25s ease;
}


.search-input-wrap:focus-within {
    border-color: rgba(255,255,255,.75);
}


.search-input-wrap > i {
    color: rgba(255,255,255,.42);
    font-size: 19px;
}


.search-input-wrap input {
    width: 100%;

    padding: 0 20px 0 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #fff;

    font-family: "DM Sans", sans-serif;
    font-size: 19px;
    font-weight: 400;
}


.search-input-wrap input::placeholder {
    color: rgba(255,255,255,.3);
}


.search-input-wrap button {
    min-width: 135px;
    height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 0 18px;

    border: 1px solid rgba(255,255,255,.2);

    background: #fff;
    color: var(--search-dark);

    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;

    letter-spacing: .07em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color .25s ease,
        color .25s ease,
        transform .25s ease;
}


.search-input-wrap button:hover {
    background: var(--search-navy);
    color: #fff;
    transform: translateY(-2px);
}


/* =========================================================
   RESULTS
========================================================= */

.search-results-section {
    padding: 105px 0 130px;
    background: #fff;
}


.search-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    padding-bottom: 34px;

    border-bottom: 1px solid var(--search-line);
}


.search-results-head span {
    display: block;

    margin-bottom: 13px;

    color: rgba(7,29,51,.42);

    font-family: "DM Sans", sans-serif;
    font-size: 8px;
    font-weight: 700;

    letter-spacing: .18em;
}


.search-results-head h2 {
    margin: 0;

    color: var(--search-navy);

    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 500;

    line-height: 1;
    letter-spacing: -.045em;
}


.search-results-head > strong {
    flex: 0 0 auto;

    color: rgba(7,29,51,.42);

    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}


/* =========================================================
   RESULT GRID
========================================================= */

.search-results-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    margin-top: 45px;
}


.search-result-card {
    overflow: hidden;

    border: 1px solid var(--search-line);

    background: #fff;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.search-result-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 22px 55px rgba(7,29,51,.09);
}


/* =========================================================
   RESULT IMAGE
========================================================= */

.search-result-image {
    position: relative;

    display: block;

    aspect-ratio: 1.25 / 1;

    overflow: hidden;

    background: #f2f4f5;
}


.search-result-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .55s cubic-bezier(.2,.7,.2,1);
}


.search-result-card:hover
.search-result-image img {
    transform: scale(1.045);
}


.search-result-image-empty {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: rgba(7,29,51,.25);

    font-size: 42px;
}


.search-result-arrow {
    position: absolute;

    right: 17px;
    bottom: 17px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: #fff;
    color: var(--search-navy);

    font-size: 14px;

    transition:
        background-color .25s ease,
        color .25s ease;
}


.search-result-card:hover
.search-result-arrow {
    background: var(--search-navy);
    color: #fff;
}


/* =========================================================
   RESULT CONTENT
========================================================= */

.search-result-content {
    padding: 27px 27px 29px;
}


.search-result-category {
    display: block;

    margin-bottom: 11px;

    color: rgba(7,29,51,.4);

    font-family: "DM Sans", sans-serif;
    font-size: 8px;
    font-weight: 700;

    letter-spacing: .14em;
    text-transform: uppercase;
}


.search-result-content h3 {
    margin: 0;
}


.search-result-content h3 a {
    color: var(--search-navy);

    font-family: "Manrope", sans-serif;
    font-size: 22px;
    font-weight: 600;

    line-height: 1.2;
    letter-spacing: -.025em;

    text-decoration: none;
}


.search-result-content p {
    margin: 14px 0 0;

    color: var(--search-muted);

    font-family: "DM Sans", sans-serif;
    font-size: 12px;

    line-height: 1.7;
}


.search-result-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: 22px;

    color: var(--search-navy);

    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;

    text-decoration: none;
}


.search-result-link i {
    transition: transform .25s ease;
}


.search-result-link:hover i {
    transform: translateX(4px);
}


/* =========================================================
   EMPTY
========================================================= */

.search-empty {
    min-height: 420px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 60px 20px;

    text-align: center;

    border-top: 1px solid var(--search-line);
}


.search-empty-start {
    border-top: 0;
}


.search-empty-icon {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    margin-bottom: 27px;

    border: 1px solid var(--search-line);
    border-radius: 50%;

    color: var(--search-navy);

    font-size: 18px;
}


.search-empty > span {
    color: rgba(7,29,51,.4);

    font-family: "DM Sans", sans-serif;
    font-size: 8px;
    font-weight: 700;

    letter-spacing: .18em;
}


.search-empty h2 {
    margin: 15px 0 0;

    color: var(--search-navy);

    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 500;

    line-height: 1;
    letter-spacing: -.045em;
}


.search-empty p {
    max-width: 520px;

    margin: 20px auto 0;

    color: var(--search-muted);

    font-family: "DM Sans", sans-serif;
    font-size: 13px;

    line-height: 1.8;
}


.search-empty > a {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    margin-top: 30px;

    min-height: 52px;
    padding: 0 20px;

    background: var(--search-navy);
    color: #fff;

    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;

    letter-spacing: .06em;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        transform .25s ease,
        background-color .25s ease;
}


.search-empty > a:hover {
    background: #0b2b4a;
    transform: translateY(-2px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .search-hero {
        padding: 150px 0 90px;
    }

    .search-results-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .search-hero {
        padding: 125px 0 70px;
    }

    .search-hero h1 {
        font-size: clamp(45px, 12vw, 62px);
    }

    .search-main-form {
        margin-top: 38px;
    }

    .search-input-wrap {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 0;

        min-height: 64px;
    }

    .search-input-wrap input {
        font-size: 15px;
    }

    .search-input-wrap button {
        grid-column: 1 / -1;

        width: 100%;

        margin-top: 15px;
    }

    .search-input-wrap {
        padding-bottom: 15px;
    }

    .search-results-section {
        padding: 75px 0 90px;
    }

    .search-results-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .search-result-content {
        padding: 24px;
    }

}