/*
Theme Name: Goldi Heritage Divi Child
Theme URI: https://goldiheritage.com/
Description: Secure and minimal Divi child theme for Goldi Heritage.
Author: Marga Bagus
Template: Divi
Version: 1.0.0
Text Domain: divi-secure-child-goldi
*/

/* Goldi Heritage 404 */
.goldi-404 {
    --goldi-ink: #241d18;
    --goldi-cream: #f5efe6;
    --goldi-sand: #d7c1a5;
    --goldi-copper: #9c6644;
    color: var(--goldi-ink);
    background: #fffdf9;
}

.goldi-404__hero {
    position: relative;
    display: flex;
    min-height: 68vh;
    align-items: flex-end;
    padding: clamp(5rem, 10vw, 9rem) 6vw clamp(4rem, 8vw, 7rem);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(28, 21, 16, .92) 0%, rgba(28, 21, 16, .72) 48%, rgba(28, 21, 16, .18) 100%),
        url('/wp-content/uploads/2018/02/gondang3.jpg') center 42% / cover no-repeat;
    color: #fff;
}

.goldi-404__hero::after {
    content: '404';
    position: absolute;
    right: -1vw;
    bottom: -8vw;
    color: rgba(255, 255, 255, .08);
    font-size: clamp(12rem, 34vw, 34rem);
    font-weight: 700;
    line-height: .75;
    letter-spacing: -.08em;
    pointer-events: none;
}

.goldi-404__hero-inner {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
}

.goldi-404__eyebrow,
.goldi-404__section-heading p,
.goldi-404__search > div > p {
    margin: 0 0 1rem;
    color: var(--goldi-sand);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.goldi-404 h1 {
    margin: 0;
    max-width: 720px;
    color: #fff;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: .96;
    letter-spacing: -.055em;
}

.goldi-404__intro {
    max-width: 580px;
    margin: 1.8rem 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.75;
}

.goldi-404__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
    margin-top: 2.2rem;
}

.goldi-404__button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    padding: .9rem 1.5rem;
    background: #fff;
    color: var(--goldi-ink) !important;
    font-weight: 700;
    transition: transform .2s ease, background-color .2s ease;
}

.goldi-404__button:hover {
    background: var(--goldi-cream);
    transform: translateY(-2px);
}

.goldi-404__text-link {
    color: #fff !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .35rem;
}

.goldi-404__discover {
    padding: clamp(4.5rem, 8vw, 8rem) 6vw;
}

.goldi-404__section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #d8cec2;
    padding-bottom: 1.5rem;
}

.goldi-404__section-heading p {
    color: var(--goldi-copper);
}

.goldi-404__section-heading h2,
.goldi-404__search h2 {
    margin: 0;
    color: var(--goldi-ink);
    font-size: clamp(2rem, 4vw, 4rem);
    letter-spacing: -.045em;
}

.goldi-404__products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: #d8cec2;
}

.goldi-404__product {
    position: relative;
    display: block;
    overflow: hidden;
    background: #fffdf9;
    color: var(--goldi-ink) !important;
}

.goldi-404__product-image {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.goldi-404__product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.goldi-404__product-copy {
    position: relative;
    display: block;
    padding: 1.4rem 3rem 1.5rem 1.3rem;
}

.goldi-404__product-kicker {
    display: block;
    margin-bottom: .3rem;
    color: #806f62;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.goldi-404__product strong {
    font-size: 1.35rem;
}

.goldi-404__product-arrow {
    position: absolute;
    right: 1.3rem;
    bottom: 1.45rem;
    transition: transform .2s ease;
}

.goldi-404__product:hover img {
    transform: scale(1.045);
}

.goldi-404__product:hover .goldi-404__product-arrow {
    transform: translate(3px, -3px);
}

.goldi-404__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    align-items: end;
    gap: 3rem;
    padding: clamp(4rem, 7vw, 7rem) 6vw;
    background: var(--goldi-cream);
}

.goldi-404__search > div > p {
    color: var(--goldi-copper);
}

.goldi-404__search .searchform {
    display: flex;
    gap: .6rem;
}

.goldi-404__search .searchform input[type='text'] {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-bottom: 1px solid var(--goldi-ink);
    border-radius: 0;
    padding: .75rem .2rem;
    background: transparent;
    color: var(--goldi-ink);
    font-size: 1rem;
}

.goldi-404__search .searchform input[type='submit'] {
    min-height: 52px;
    border: 0;
    padding: .75rem 1.3rem;
    background: var(--goldi-ink);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 980px) {
    .goldi-404__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .goldi-404__search {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 600px) {
    .goldi-404__hero {
        min-height: 72vh;
        padding-inline: 1.5rem;
    }

    .goldi-404__discover,
    .goldi-404__search {
        padding-inline: 1.5rem;
    }

    .goldi-404__section-heading {
        display: block;
    }

    .goldi-404__products {
        grid-template-columns: 1fr;
    }

    .goldi-404__product-image {
        aspect-ratio: 16 / 10;
    }

    .goldi-404__search .searchform {
        display: block;
    }

    .goldi-404__search .searchform input[type='submit'] {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .goldi-404__button,
    .goldi-404__product img,
    .goldi-404__product-arrow {
        transition: none;
    }
}
