/* ==========================================================================
   Home Page
   ========================================================================== */

/* Hero
   ========================================================================== */

.hero { position: relative; height: 92vh; min-height: 560px; }

.hero-swiper, .hero-swiper .swiper-wrapper, .hero-slide { height: 100%; }

.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--color-maroon);
    display: flex;
    align-items: center;
}

.hero-slide--default {
    background: linear-gradient(135deg, #5c0f22 0%, #7a1230 45%, #3d0a17 100%);
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 10, 20, 0.35) 0%, rgba(42, 10, 20, 0.6) 100%);
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
    color: var(--color-ivory);
}

.hero-slide__eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin-bottom: 20px;
}

.hero-slide__title {
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 68px);
    color: var(--color-ivory);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-slide__subtitle {
    font-size: 16px;
    color: rgba(255, 253, 248, 0.85);
    margin-bottom: 32px;
}

.hero-slide__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-swiper__pagination {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-swiper__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    border-radius: 50%;
}

.hero-swiper__pagination .swiper-pagination-bullet-active { background: var(--color-gold); width: 24px; border-radius: 4px; }

.hero-swiper__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.15);
    color: var(--color-ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
}

.hero-swiper__nav:hover { background: rgba(255, 253, 248, 0.3); }
.hero-swiper__nav--prev { left: 32px; }
.hero-swiper__nav--next { right: 32px; }

.hero-scroll-cue {
    position: absolute;
    bottom: 28px;
    right: 40px;
    z-index: 3;
    color: var(--color-ivory);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    writing-mode: vertical-rl;
}

.hero-scroll-cue span {
    display: block;
    width: 1px;
    height: 40px;
    background: var(--color-gold-light);
    animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Categories
   ========================================================================== */

.categories { padding: 100px 0; background: var(--color-ivory); }

.categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img { transform: scale(1.08); }

.category-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-cream), var(--color-gold-light));
    font-size: 42px;
    color: var(--color-maroon);
}

.category-card__label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    background: linear-gradient(0deg, rgba(42, 10, 20, 0.75), transparent);
    color: var(--color-ivory);
}

.category-card__label h3 { color: var(--color-ivory); font-size: 22px; margin-bottom: 6px; }
.category-card__label span { font-size: 13px; color: var(--color-gold-light); display: inline-flex; align-items: center; gap: 6px; }

/* Product Sections & Cards
   ========================================================================== */

.product-section { padding: 90px 0; }
.product-section--tinted { background: var(--color-cream); }
.product-section--luxury { background: linear-gradient(135deg, var(--color-maroon), var(--color-burgundy)); }
.product-section--luxury .section-heading h2 { color: var(--color-ivory); }
.product-section--luxury .section-heading p { color: rgba(250, 246, 239, 0.75); }
.product-section--luxury .section-heading__eyebrow { color: var(--color-gold-light); }

/* .product-grid / .product-card now live in product-grid.css (loaded from
   base.html) so every page sharing the product grid — home, product detail,
   category/shop/collection/search listings — draws from one definition. */

/* Flash Sale
   ========================================================================== */

.flash-sale { padding: 90px 0; background: var(--color-cream); }

.flash-sale__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

.flash-sale__timer { display: flex; gap: 12px; }

.timer-block {
    background: var(--color-maroon);
    color: var(--color-ivory);
    width: 64px;
    padding: 10px 0;
    border-radius: 4px;
    text-align: center;
}

.timer-block span { display: block; font-family: var(--font-display); font-size: 24px; }
.timer-block small { font-size: 10px; text-transform: uppercase; color: var(--color-gold-light); }

/* Brand Story
   ========================================================================== */

.brand-story { padding: 100px 0; }

.brand-story__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.brand-story__media { position: relative; border-radius: 6px; overflow: hidden; }
.brand-story__media img { width: 100%; height: 100%; object-fit: cover; }

.brand-story__media--placeholder {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--color-cream), var(--color-gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--color-maroon);
}

.brand-story__counter {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--color-gold);
    color: var(--color-maroon);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.brand-story__content h2 { font-size: clamp(28px, 4vw, 40px); margin: 12px 0 20px; }
.brand-story__content p { color: var(--color-text-muted); margin-bottom: 32px; }

.brand-story__stats { display: flex; gap: 40px; margin-bottom: 32px; }
.stat__number { display: block; font-family: var(--font-display); font-size: 34px; color: var(--color-maroon); }
.stat small { font-size: 12px; color: var(--color-text-muted); }

/* Testimonials
   ========================================================================== */

.testimonials { padding: 90px 0; background: var(--color-cream); }

.testimonial-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 6px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.testimonial-card__stars { color: var(--color-gold); font-size: 14px; margin-bottom: 20px; }
.testimonial-card p { font-family: var(--font-display); font-size: 19px; font-style: italic; color: var(--color-text); margin-bottom: 24px; }

.testimonial-card__author { display: flex; align-items: center; justify-content: center; gap: 12px; }

.testimonial-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-maroon);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
}

.testimonial-card__author div { text-align: left; }
.testimonial-card__author small { display: block; color: var(--color-text-muted); font-size: 12px; }

/* Instagram Gallery
   ========================================================================== */

.instagram-gallery { padding: 90px 0 100px; }

.instagram-gallery__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.instagram-gallery__item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.instagram-gallery__item:hover img { transform: scale(1.1); }

.instagram-gallery__item--placeholder { background: linear-gradient(135deg, var(--color-cream), var(--color-gold-light)); }

.instagram-gallery__item span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(92, 15, 34, 0.4);
    color: var(--color-ivory);
    font-size: 20px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.instagram-gallery__item--placeholder span { opacity: 1; background: transparent; color: var(--color-maroon); font-size: 22px; }
.instagram-gallery__item:hover span { opacity: 1; }

/* Newsletter CTA
   ========================================================================== */

.newsletter-cta {
    padding: 90px 24px;
    background: linear-gradient(135deg, var(--color-maroon), var(--color-burgundy));
    text-align: center;
}

.newsletter-cta__inner h2 { color: var(--color-ivory); font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.newsletter-cta__inner p { color: rgba(250, 246, 239, 0.75); margin-bottom: 32px; }

.newsletter-cta__form { display: flex; justify-content: center; gap: 0; max-width: 460px; margin: 0 auto; }

.newsletter-cta__form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid rgba(230, 205, 138, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-ivory);
    font-size: 14px;
}

.newsletter-cta__form input::placeholder { color: rgba(250, 246, 239, 0.5); }

/* Responsive
   ========================================================================== */

@media (max-width: 1080px) {
    .categories__grid { grid-template-columns: repeat(2, 1fr); }
    .brand-story__grid { grid-template-columns: 1fr; gap: 40px; }
    .instagram-gallery__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
    .hero { height: 80vh; }
    .categories__grid { grid-template-columns: 1fr 1fr; }
    .brand-story__stats { flex-wrap: wrap; gap: 24px; }
    .instagram-gallery__grid { grid-template-columns: repeat(3, 1fr); }
    .newsletter-cta__form { flex-direction: column; }
}
