/*
Theme Name: Storefront Child
Template: storefront
Version: 1.0
*/

/* Custom WebByDiane styles go below this line */
/* =====================================================
   WebByDiane Homepage
   ===================================================== */

.wbd-home {
    max-width: 1250px;
    margin: 0 auto;
    padding: 50px 25px 80px;
}


/* -----------------------------
   FLOWER DIRECTORY
   ----------------------------- */

.wbd-flower-directory {
    display: grid;

    grid-template-columns:
        minmax(250px, 1fr)
        minmax(380px, 1.3fr)
        minmax(250px, 1fr);

    grid-template-areas:
        "projects center build"
        "domains  center about";

    gap: 45px 55px;

    align-items: center;
    justify-items: center;
}


/* -----------------------------
   BASIC FLOWER
   ----------------------------- */

.wbd-flower {
    position: relative;

    width: 330px;
    aspect-ratio: 1 / 1;

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

    text-align: center;
    text-decoration: none;

    color: #4b3428;
}


/* ==============================
   FLOWER SHAPE FIX
   ============================== */

.wbd-flower {
    position: relative;
    width: 330px;
    aspect-ratio: 1 / 1;

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

    text-align: center;
    text-decoration: none;

    color: #4b3428;

    /* IMPORTANT: no solid square background */
    background: transparent;
}


/* TWO OVERLAPPING PETAL LAYERS */

.wbd-flower::before,
.wbd-flower::after {
    content: "";
    position: absolute;

    width: 76%;
    height: 76%;

    top: 12%;
    left: 12%;

    background: var(--flower-color);

    border-radius:
        50% 50% 50% 50% /
        50% 50% 50% 50%;

    z-index: 0;
}

.wbd-flower::before {
    transform: rotate(45deg);
    border-radius: 45% 55% 45% 55%;
}

.wbd-flower::after {
    transform: rotate(-45deg);
    border-radius: 55% 45% 55% 45%;
}


/* CREAM CENTER */

.wbd-flower-inner {
    position: relative;
    z-index: 2;

    width: 66%;
    aspect-ratio: 1 / 1;

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

    padding: 30px;

    background: #fff6e3;
    border-radius: 50%;

    box-sizing: border-box;
}


/* CENTER FLOWER */

.wbd-center-flower {
    grid-area: center;

    width: 470px;

    --flower-color: #f4c94f;

    cursor: default;
}

.wbd-center-flower .wbd-flower-inner {
    width: 67%;
    padding: 42px;
}


/* FOUR NAV FLOWERS */

.wbd-projects-flower {
    grid-area: projects;
    --flower-color: #ef7a43;
}

.wbd-build-flower {
    grid-area: build;
    --flower-color: #60b8bc;
}

.wbd-domains-flower {
    grid-area: domains;
    --flower-color: #9aaa45;
}

.wbd-about-flower {
    grid-area: about;
    --flower-color: #e56782;
}
/* -----------------------------
   CENTER FLOWER
   ----------------------------- */

.wbd-center-flower {
    grid-area: center;

    width: 470px;
    aspect-ratio: 1 / 1;

    background: #f4c94f;

    cursor: default;
}

.wbd-center-flower .wbd-flower-inner {
    width: 70%;
    padding: 45px;
}


/* -----------------------------
   NAVIGATION FLOWERS
   ----------------------------- */

.wbd-projects-flower {
    grid-area: projects;
    background: #ef7a43;
}

.wbd-build-flower {
    grid-area: build;
    background: #60b8bc;
}

.wbd-domains-flower {
    grid-area: domains;
    background: #8eaa55;
}

.wbd-about-flower {
    grid-area: about;
    background: #c96d82;
}


/* -----------------------------
   TYPE
   ----------------------------- */

.wbd-flower h1,
.wbd-flower h2 {
    margin: 0 0 12px;

    color: #4b3428;

    line-height: 1.05;
}

.wbd-center-flower h1 {
    font-size: 2.6rem;
}

.wbd-flower h2 {
    font-size: 1.8rem;
}

.wbd-flower p {
    margin: 5px 0;

    font-size: 1rem;
    line-height: 1.45;
}

.wbd-arrow {
    display: block;

    margin-top: 10px;

    font-size: 2rem;
    line-height: 1;
}


/* -----------------------------
   HOVER
   ----------------------------- */

a.wbd-flower {
    transition:
        transform .18s ease,
        filter .18s ease;
}

a.wbd-flower:hover {
    transform: scale(1.04);
    filter: brightness(1.04);

    color: #4b3428;
    text-decoration: none;
}


/* -----------------------------
   TABLET / MOBILE
   ----------------------------- */

@media (max-width: 1050px) {

    .wbd-flower-directory {
        grid-template-columns: 1fr 1fr;

        grid-template-areas:
            "center center"
            "projects build"
            "domains about";
    }

}


@media (max-width: 700px) {

    .wbd-home {
        padding: 30px 15px 50px;
    }

    .wbd-flower-directory {
        display: flex;
        flex-direction: column;

        gap: 30px;
    }

    .wbd-center-flower {
        width: min(430px, 92vw);
    }

    .wbd-flower:not(.wbd-center-flower) {
        width: min(320px, 82vw);
    }

}