/*----------------------------------------
    Home Hero Banner
        - Warm marketplace shelf hero
        - Replaces the demo intro slider on the home page
-----------------------------------------*/

.q2u-hero {
    position: relative;
    overflow: hidden;
    background-color: #faf7f0;
    font-family: Poppins, sans-serif;
}

.q2u-hero__glow {
    position: absolute;
    top: -160px;
    right: -120px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background-color: #f4eedd;
    opacity: 0.75;
    pointer-events: none;
}

.q2u-hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 80px;
    min-height: 520px;
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Copy column */

.q2u-hero__copy {
    flex: 1 1 600px;
    min-width: 0;
}

.q2u-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 7px 14px 7px 11px;
    border: 1px solid #eee;
    border-radius: 0.3rem;
    background-color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #333;
}

.q2u-hero__eyebrow svg {
    flex-shrink: 0;
    stroke: var(--q2u-primary, #cfad3c);
}

.q2u-hero__title {
    margin: 0 0 1.8rem;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.25px;
    color: #333;
}

.q2u-hero__text {
    margin: 0 0 3.2rem;
    max-width: 520px;
    font-size: 1.7rem;
    line-height: 1.7;
    color: #666;
    text-wrap: pretty;
}

.q2u-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    margin-bottom: 3.4rem;
}

.q2u-hero__actions .btn {
    margin: 0;
}

/* The primary CTA keeps white text on the darker gold, rather than picking up
   any inherited link colour on hover. */
.q2u-hero__actions .btn-primary:hover,
.q2u-hero__actions .btn-primary:focus,
.q2u-hero__actions .btn-primary:active {
    color: #fff;
    background-color: var(--q2u-primary-active, #ba992e);
    border-color: var(--q2u-primary-active, #ba992e);
}

.q2u-hero__link {
    padding-bottom: 3px;
    border-bottom: 2px solid #e3d9bb;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

.q2u-hero__link:hover {
    color: var(--q2u-primary-dark, #c09c35);
    border-bottom-color: var(--q2u-primary, #cfad3c);
}

.q2u-hero__assurances {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.q2u-hero__assurances li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 500;
    color: #666;
}

.q2u-hero__assurances svg {
    flex-shrink: 0;
    stroke: var(--q2u-primary, #cfad3c);
}

/* Product tiles */

.q2u-hero__tiles {
    display: flex;
    flex: 0 0 560px;
    align-items: flex-start;
    gap: 20px;
}

.q2u-hero__tiles-stack {
    display: flex;
    flex: 1 1 240px;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.q2u-hero-tile {
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 10px 26px rgba(51, 51, 51, 0.09);
    transition: transform 0.3s, box-shadow 0.3s;
}

.q2u-hero-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(51, 51, 51, 0.14);
}

.q2u-hero-tile--lead {
    flex: 0 0 300px;
    box-shadow: 0 12px 30px rgba(51, 51, 51, 0.1);
}

.q2u-hero-tile__media {
    position: relative;
    overflow: hidden;
    height: 140px;
    margin: 0;
    background-color: #f5f5f5;
}

.q2u-hero-tile--lead .q2u-hero-tile__media {
    height: 300px;
}

.q2u-hero-tile__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.q2u-hero-tile__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    border-radius: 0.3rem;
    background-color: var(--q2u-primary, #cfad3c);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
}

.q2u-hero-tile__body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 14px;
}

.q2u-hero-tile--lead .q2u-hero-tile__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 18px 18px;
}

.q2u-hero-tile__vendor {
    overflow: hidden;
    max-width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #666;
}

.q2u-hero-tile__name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.35;
    color: #333;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.q2u-hero-tile--lead .q2u-hero-tile__name {
    font-size: 1.4rem;
}

.q2u-hero-tile__price {
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    color: #333;
}

.q2u-hero-tile--lead .q2u-hero-tile__price {
    font-size: 1.6rem;
}

/* xxl and down: keep the tiles from crowding the copy */

@media (max-width: 1199px) {
    .q2u-hero__inner {
        gap: 40px;
        min-height: 460px;
    }

    .q2u-hero__title {
        font-size: 4rem;
    }

    .q2u-hero__text {
        margin-bottom: 2.6rem;
        font-size: 1.6rem;
    }

    .q2u-hero__tiles {
        flex-basis: 440px;
    }

    .q2u-hero-tile--lead {
        flex-basis: 230px;
    }

    .q2u-hero-tile--lead .q2u-hero-tile__media {
        height: 240px;
    }

    .q2u-hero-tile__media {
        height: 110px;
    }
}

/* Stack below the theme's lg breakpoint */

@media (max-width: 991px) {
    .q2u-hero__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        min-height: 0;
        padding-top: 36px;
        padding-bottom: 36px;
    }

    /* Once the row stacks, flex-basis is a HEIGHT — leaving the copy column
       on `flex: 1 1 600px` reserved 600px of blank space above the tiles. */

    .q2u-hero__copy {
        flex: 0 0 auto;
        width: 100%;
    }

    .q2u-hero__glow {
        top: -140px;
        right: -140px;
        width: 400px;
        height: 400px;
    }

    .q2u-hero__title {
        font-size: 3.6rem;
    }

    .q2u-hero__text {
        max-width: none;
    }

    .q2u-hero__tiles {
        display: grid;
        flex: 0 0 auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .q2u-hero__tiles-stack {
        display: contents;
    }

    .q2u-hero-tile--lead {
        flex-basis: auto;
    }

    .q2u-hero-tile--lead .q2u-hero-tile__media,
    .q2u-hero-tile__media {
        height: 150px;
    }

    .q2u-hero-tile--lead .q2u-hero-tile__body {
        padding: 12px 14px 14px;
    }

    .q2u-hero-tile--lead .q2u-hero-tile__name,
    .q2u-hero-tile--lead .q2u-hero-tile__price {
        font-size: 1.4rem;
    }
}

/* Phone: one primary action, two tiles */

@media (max-width: 767px) {
    .q2u-hero__inner {
        gap: 24px;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .q2u-hero__eyebrow {
        margin-bottom: 14px;
        padding: 6px 12px 6px 10px;
        font-size: 1.1rem;
        letter-spacing: 0.6px;
    }

    .q2u-hero__title {
        font-size: 3.2rem;
        line-height: 1.12;
    }

    .q2u-hero__text {
        margin-bottom: 2.2rem;
        font-size: 1.5rem;
        line-height: 1.65;
    }

    .q2u-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 2.4rem;
    }

    .q2u-hero__actions .btn {
        width: 100%;
    }

    .q2u-hero__link {
        align-self: center;
    }

    /* Two even columns beat a ragged wrap where the third item drops alone. */

    .q2u-hero__assurances {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 16px;
    }

    .q2u-hero__assurances li {
        font-size: 1.2rem;
    }

    .q2u-hero__assurances li:last-child {
        grid-column: 1 / -1;
    }

    .q2u-hero__tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .q2u-hero-tile--overflow {
        display: none;
    }

    .q2u-hero-tile__media,
    .q2u-hero-tile--lead .q2u-hero-tile__media {
        height: 118px;
    }

    .q2u-hero-tile__body,
    .q2u-hero-tile--lead .q2u-hero-tile__body {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding: 11px 12px 13px;
    }

    .q2u-hero-tile__vendor {
        display: none;
    }

    .q2u-hero-tile__name,
    .q2u-hero-tile--lead .q2u-hero-tile__name {
        min-height: 3.2rem;
        font-size: 1.2rem;
    }
}
