/*
 * The blocks of the home page that come from the content, by the styles of the old site (include/index.css, critical.css):
 * the hero banners (scroll-snap instead of slick), the collections, the inspiration cards, the grid of featured products.
 * The promo line over the header is on every page: its styles are in base.css.
 */

/* Hero banners */
.main-slider {
    width: 100%;
    height: 100vh;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.main-slider::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    flex: 0 0 100%;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-picture {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

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

.hero-content .hero-title {
    font-size: 72px;
    font-weight: 300;
    margin: 0;
    letter-spacing: -1px;
    color: #fff;
    text-wrap: balance;
}

.hero-content p {
    color: #fff;
    letter-spacing: 2px;
}

.hero-content .btn {
    padding: 14px 48px;
    border: 1px solid #fff;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 3px;
    text-decoration: none;
    display: inline-block;
    margin-top: 30px;
    transition: background-color 0.3s, color 0.3s;
}

.hero-content .btn:hover,
.hero-content .btn:focus-visible {
    background: #fff;
    color: #000;
}

/* Featured products */
.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* Collections */
.collections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.collection-block {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    background: #f0f0f0;
}

.collection-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.collection-block:hover img {
    transform: scale(1.02);
}

.collection-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
}

.collection-block p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.collection-info {
    position: absolute;
    bottom: 40px;
    left: 40px;
    padding-right: 20px;
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.collection-info h3 {
    font-size: 28px;
    font-weight: 300;
}

.collection-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Inspiration */
.inspire-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.inspire-card {
    background: #fefefe;
}

.inspire-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.inspire-card h3,
.inspire-card h4 {
    font-size: 22px;
    font-weight: 400;
    margin: 20px 0 12px;
}

.inspire-card p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

@media (max-width: 1024px) {
    .grid,
    .inspire-grid,
    .collections-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-slider {
        max-height: 839px;
    }

    .hero-slide {
        height: min(100vh, 839px);
    }

    .grid,
    .inspire-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .collections-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .collection-block {
        min-height: 240px;
    }

    .hero-content .hero-title {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 16px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .collection-block img {
        transition: none;
    }
}

/* The first screen reads on any photo and leads into the catalog (stage 23, wave 23.15, У11): a dark veil under the text, a solid
   button "Catalog" next to the link of the banner. */
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.hero-content .hero-title {
    font-weight: 400;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-content .btn-solid {
    margin-left: 12px;
    background: #fff;
    color: #000;
    border-color: #fff;
}

@media (max-width: 600px) {
    .hero-content .btn {
        display: block;
        margin: 16px auto 0;
        max-width: 260px;
    }

    .hero-content .btn-solid {
        margin-left: auto;
    }
}

.home-intro {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 0;
}

.home-intro .seo-title {
    margin-bottom: 0;
}
