/**
 * Home page
 *
 * @package WEB99
 * @version 2.0.0
 */

.home-section {
    padding: clamp(2rem, 3.5vw, 3.25rem) 0;
}

.home-section .section-heading {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.home-section .section-tabs {
    margin-bottom: 1.75rem;
}

/* ========================================
   Hero
   ======================================== */
.home-hero {
    padding: 1rem 0 0;
}

@media (min-width: 992px) {
    .home-hero {
        padding-top: 1.5rem;
    }
}

.hero-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 1rem;
    }

    .hero-grid--single {
        grid-template-columns: 1fr;
    }
}

.hero-feature {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    background: var(--sand);
    display: flex;
    align-items: flex-end;
}

@media (min-width: 992px) {
    .hero-feature {
        min-height: 620px;
    }
}

.hero-feature__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: web99-hero-zoom 14s var(--ease) both;
}

.hero-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0) 25%, rgba(20, 20, 20, 0.72) 100%);
}

.hero-feature__content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    padding: 2rem 1.5rem;
    color: #fff;
}

@media (min-width: 992px) {
    .hero-feature__content {
        padding: 3.5rem;
    }
}

.hero-feature__content .eyebrow {
    color: #fff;
    opacity: 0.9;
}

.hero-feature__title {
    color: #fff;
    font-size: clamp(1.95rem, 4.1vw, 3.3rem);
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-feature__text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.75rem;
}

@keyframes web99-hero-zoom {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1);
    }
}

.hero-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .hero-tiles {
        grid-template-rows: repeat(2, 1fr);
        gap: 1rem;
    }
}

.hero-tile {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--sand);
    color: #fff;
}

@media (min-width: 992px) {
    .hero-tile {
        aspect-ratio: auto;
    }
}

.hero-tile__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.hero-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0) 45%, rgba(20, 20, 20, 0.55) 100%);
    transition: background 0.4s var(--ease);
}

.hero-tile:hover .hero-tile__img {
    transform: scale(1.06);
}

.hero-tile__label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1rem 1.1rem;
}

@media (min-width: 992px) {
    .hero-tile__label {
        padding: 1.5rem;
    }
}

.hero-tile__title {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.65vw, 1.3rem);
    line-height: 1.15;
}

.hero-tile__more {
    display: inline-flex;
    gap: 0.4rem;
    margin-top: 0.4rem;
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.85;
}

.hero-tile:hover .hero-tile__more i {
    transform: translateX(3px);
}

.hero-tile__more i {
    transition: transform 0.25s var(--ease);
}

/* ========================================
   USP strip
   ======================================== */
.home-usp {
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--line-soft);
}

/* The USP strip already separates it from the hero: less space above the first section */
.home-usp + .home-section {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* ========================================
   Featured category
   ======================================== */
.home-feature {
    background: var(--ivory);
}

.feature-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 100%;
    min-height: 460px;
    overflow: hidden;
    background: var(--sand);
    color: #fff;
}

.feature-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.feature-banner:hover .feature-banner__img {
    transform: scale(1.04);
}

.feature-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.05) 30%, rgba(20, 20, 20, 0.7) 100%);
}

.feature-banner__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
}

.feature-banner__content .eyebrow {
    color: var(--gold-soft);
}

.feature-banner__title {
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 2.85vw, 2.25rem);
    line-height: 1.1;
}

.feature-banner__text {
    margin: 0.85rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    max-width: 360px;
}

.home-feature ul.products {
    margin: 0;
}

/* ========================================
   Gifts
   ======================================== */
.home-gifts {
    border-top: 1px solid var(--line-soft);
}

/* ========================================
   Bespoke
   ======================================== */
.home-bespoke {
    padding-bottom: clamp(2rem, 3.5vw, 3.25rem);
}

.bespoke {
    display: grid;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 992px) {
    .bespoke {
        grid-template-columns: 1fr 1fr;
    }

    .bespoke--no-image {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bespoke--no-image .bespoke__content {
        max-width: 760px;
        margin: 0 auto;
    }
}

.bespoke__media {
    position: relative;
    min-height: 320px;
}

.bespoke__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bespoke__content {
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
}

.bespoke__content .eyebrow {
    color: var(--gold);
}

.bespoke__content .section-title {
    color: #fff;
}

.bespoke__text {
    margin: 1.25rem 0 2rem;
}

/* Request form on the dark panel */
.bespoke-form--dark .form-control {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.bespoke-form--dark .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.bespoke-form--dark .form-control:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.03);
}

.bespoke-form--dark .btn {
    min-width: 220px;
}

.bespoke-form--dark .contact-form__message {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.bespoke-form--dark .contact-form__message.is-error {
    color: #f0b4b4;
}

.bespoke-form--dark .contact-form__message.is-success {
    color: #b9dcc8;
}

.bespoke .bespoke__alt {
    margin: 1.25rem 0 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.bespoke .bespoke__alt a {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.bespoke .bespoke__alt a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.bespoke .bespoke__alt span {
    margin: 0 0.35rem;
}

@media (max-width: 575.98px) {
    .bespoke-form--dark .btn {
        width: 100%;
    }
}

/* ========================================
   Testimonials
   ======================================== */
.home-testimonials {
    background: var(--ivory);
}

.js-carousel .swiper-slide {
    height: auto;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2.25rem;
}

.js-carousel.is-static .carousel-nav {
    display: none;
}

.carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    transition: all 0.25s var(--ease);
}

.carousel-btn:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.carousel-btn.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Arrows float at the vertical middle of the slides (JS sets --arrow-top); dots stay below */
.js-carousel {
    position: relative;
}

.js-carousel .carousel-btn {
    position: absolute;
    top: var(--arrow-top, 40%);
    z-index: 3;
    transform: translateY(-50%);
    border-color: transparent;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.js-carousel .carousel-btn:hover {
    background: var(--ink);
    color: #fff;
}

/* Posts: arrows sit over the images */
.post-carousel .carousel-btn {
    width: 40px;
    height: 40px;
}

.post-carousel .js-carousel-prev {
    left: 0.75rem;
}

.post-carousel .js-carousel-next {
    right: 0.75rem;
}

.post-carousel .carousel-nav {
    margin: 0;
}

/* Testimonials: arrows straddle the outer edges so they never cover the quote */
.testimonial-carousel .js-carousel-prev {
    left: -22px;
}

.testimonial-carousel .js-carousel-next {
    right: -22px;
}

@media (max-width: 767.98px) {
    .testimonial-carousel .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .testimonial-carousel .js-carousel-prev {
        left: -6px;
    }

    .testimonial-carousel .js-carousel-next {
        right: -6px;
    }
}

.carousel-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: auto !important;
}

.carousel-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0 !important;
    border-radius: 3px;
    background: var(--muted);
    opacity: 0.35;
    transition: width 0.3s var(--ease), opacity 0.3s var(--ease);
}

.carousel-pagination .swiper-pagination-bullet-active {
    width: 22px;
    background: var(--ink);
    opacity: 1;
}

.testimonial {
    height: 100%;
    margin: 0;
    padding: 2.5rem 2rem;
    background: #fff;
    border: 1px solid var(--line-soft);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.testimonial__stars {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    margin-bottom: 1.25rem;
}

.testimonial__quote {
    flex: 1;
    margin: 0 0 1.75rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink);
}

.testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: left;
}

.testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__author strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
}

.testimonial__author small {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
}

@media (max-width: 767.98px) {
    .home-usp {
        padding: 0.75rem 0;
    }
}

@media (max-width: 767.98px) {
    .testimonial {
        padding: 2rem 2.25rem;
    }

    .testimonial__quote {
        font-size: 1.15rem;
    }
}
