/* ==========================================================================
   ViciaBloom Front Page
   Loaded only on the homepage.
   ========================================================================== */

.vb-front .alignfull,
.vb-hero,
.vb-editorial,
.vb-values {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

body:has(.vb-front) {
    overflow-x: hidden;
    background: var(--wp--preset--color--bone);
}

body.home .wp-block-template-part[class*="header"],
body.home .site-header,
body.home .wp-block-site-header,
body.home header.wp-block-template-part {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent !important;
}

body.home .wp-block-navigation a,
body.home .menu-item a,
body.home .nav-menu a,
body.home .site-title a,
body.home .wp-block-site-title a {
    color: var(--wp--preset--color--bone) !important;
}

.vb-hero {
    position: relative;
    min-height: 92vh;
    min-height: 92svh;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 78%, rgba(128, 91, 68, 0.28), transparent 36rem),
        var(--wp--preset--color--ash-brown);
    display: flex;
}

.vb-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.vb-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(25, 24, 22, 0.24) 0%, rgba(25, 24, 22, 0.2) 45%, rgba(25, 24, 22, 0.62) 100%),
        linear-gradient(105deg, rgba(25, 24, 22, 0.68) 0%, rgba(25, 24, 22, 0.3) 46%, rgba(25, 24, 22, 0.12) 100%);
    pointer-events: none;
    z-index: 1;
}

.vb-hero__overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: min(100% - 2.5rem, 760px);
    min-height: 92vh;
    min-height: 92svh;
    padding: 8rem 0 4rem;
    margin: 0 auto;
}

.vb-hero__title {
    font-family: var(--wp--preset--font-family--serif-display);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: 0;
}

.vb-hero__title {
    max-width: 620px;
    margin: 0 0 0.75rem;
    color: var(--wp--preset--color--bone);
    font-size: 4.5rem;
}

.vb-hero__tagline {
    margin: 0;
    color: rgba(255, 252, 246, 0.92);
    font-family: var(--wp--preset--font-family--serif-body);
    font-size: 1.35rem;
}

.vb-hero__rule {
    width: 2.75rem;
    border: none;
    border-top: 1px solid rgba(255, 252, 246, 0.5);
    margin: 1.5rem 0;
}

.vb-hero__body {
    max-width: 440px;
    margin: 0 0 2.25rem;
    color: rgba(255, 252, 246, 0.86);
    font-family: var(--wp--preset--font-family--sans-meta);
    font-size: 1rem;
    line-height: 1.75;
}

.vb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.9rem 1.65rem;
    border: 1px solid currentColor;
    font-family: var(--wp--preset--font-family--sans-meta);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    line-height: 1.1;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.vb-button--outline {
    color: var(--wp--preset--color--bone);
    background: transparent;
}

.vb-button--outline:hover,
.vb-button--outline:focus-visible {
    background: var(--wp--preset--color--bone);
    color: var(--wp--preset--color--charcoal);
    border-color: var(--wp--preset--color--bone);
}

.vb-button--earth {
    color: var(--wp--preset--color--charcoal);
    background: transparent;
}

.vb-button--earth:hover,
.vb-button--earth:focus-visible {
    color: var(--wp--preset--color--bone);
    background: var(--wp--preset--color--charcoal);
    border-color: var(--wp--preset--color--charcoal);
}

.vb-editorial {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: var(--wp--preset--color--bone);
    border-top: 1px solid rgba(255, 252, 246, 0.75);
}

.vb-editorial-card,
.vb-editorial-detail {
    position: relative;
    min-height: clamp(30rem, 46vw, 42rem);
    margin: 0;
    overflow: hidden;
    background: var(--wp--preset--color--cream);
    border-right: 1px solid rgba(255, 252, 246, 0.82);
    border-bottom: 1px solid rgba(255, 252, 246, 0.82);
}

.vb-editorial-card--collections,
.vb-editorial-card--stories,
.vb-editorial-card--space {
    grid-column: span 2;
}

.vb-editorial-detail {
    grid-column: 2 / span 4;
    min-height: clamp(20rem, 32vw, 32rem);
}

.vb-editorial-card__image,
.vb-editorial-detail__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vb-editorial-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    min-height: 13rem;
    padding: clamp(2rem, 4vw, 3.75rem) clamp(1.5rem, 3vw, 3rem);
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.88), rgba(244, 239, 230, 0.98));
    border-top: 1px solid rgba(38, 37, 34, 0.12);
}

.vb-editorial-card--stories .vb-editorial-card__content {
    background: linear-gradient(180deg, rgba(38, 37, 34, 0), rgba(24, 23, 20, 0.78));
    color: var(--wp--preset--color--bone);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.34);
}

.vb-editorial-card__content h3,
.vb-value h3 {
    margin: 0;
    font-family: var(--wp--preset--font-family--serif-display);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0;
}

.vb-editorial-card__content h3 {
    font-size: 2.8rem;
}

.vb-editorial-card__content p {
    max-width: 21rem;
    margin: 1rem auto 1.65rem;
    font-family: var(--wp--preset--font-family--sans-meta);
    font-size: 0.92rem;
    line-height: 1.7;
}

.vb-editorial-card__content a {
    font-family: var(--wp--preset--font-family--sans-meta);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.24rem;
}

.vb-editorial-card__content a::after {
    content: ' ->';
}

.vb-values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: clamp(3rem, 6vw, 5rem) max(1.5rem, calc((100vw - 1280px) / 2));
    background: var(--wp--preset--color--cream);
    border-top: 1px solid rgba(38, 37, 34, 0.1);
}

.vb-value {
    min-width: 0;
    padding: 0 clamp(1.25rem, 3vw, 2.75rem);
    text-align: center;
    border-right: 1px solid rgba(38, 37, 34, 0.1);
}

.vb-value:last-child {
    border-right: 0;
}

.vb-value span {
    display: block;
    min-height: 2.5rem;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--ash-brown);
    font-family: var(--wp--preset--font-family--serif-display);
    font-size: 2.1rem;
    line-height: 1;
}

.vb-value h3 {
    color: var(--wp--preset--color--charcoal);
    font-size: 1.55rem;
}

.vb-value p {
    max-width: 14rem;
    margin: 0.75rem auto 0;
    color: rgba(38, 37, 34, 0.78);
    font-family: var(--wp--preset--font-family--sans-meta);
    font-size: 0.88rem;
    line-height: 1.65;
}

@media (max-width: 1000px) {
    .vb-editorial {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vb-editorial-card--collections,
    .vb-editorial-card--stories,
    .vb-editorial-card--space,
    .vb-editorial-detail {
        grid-column: span 1;
    }

    .vb-editorial-card,
    .vb-editorial-detail {
        min-height: 34rem;
    }

    .vb-editorial-card__content h3 {
        font-size: 2.35rem;
    }

    .vb-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2.5rem;
    }

    .vb-value:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 720px) {
    .vb-hero__overlay {
        width: min(100% - 2rem, 760px);
        padding-bottom: 3rem;
    }

    .vb-hero__title {
        font-size: 3.35rem;
    }

    .vb-hero__tagline {
        font-size: 1.18rem;
    }

    .vb-editorial {
        grid-template-columns: 1fr;
    }

    .vb-editorial-card,
    .vb-editorial-detail {
        min-height: 34rem;
        border-right: 0;
    }

    .vb-editorial-detail {
        min-height: 25rem;
    }

    .vb-editorial-card__content {
        min-height: auto;
    }

    .vb-editorial-card__content h3 {
        font-size: 2.15rem;
    }

    .vb-values {
        grid-template-columns: 1fr;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .vb-value,
    .vb-value:nth-child(2) {
        padding: 0;
        border-right: 0;
    }
}

@media (max-width: 420px) {
    .vb-hero__title {
        font-size: 2.85rem;
    }

    .vb-button {
        width: 100%;
        max-width: 19rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vb-button,
    .vb-editorial-card__content a {
        transition: none;
    }
}
