/* ============================================================
   HOMEPAGE STYLES
   ============================================================ */

/* ============================================================
   SPLIT HERO — Image carousel + text content side by side
   ============================================================ */

.split-hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

/* Left side — image carousel */
.split-carousel-side {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.split-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.split-carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.split-carousel-slide.active { opacity: 1; }
.split-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Right side — text content */
.split-content-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-12);
    background: var(--color-bg-body);
    position: relative;
}
.split-content-side::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(27, 42, 74, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Eyebrow text above the heading */
.hero-eyebrow {
    font-family: var(--font-alt);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
    font-weight: 500;
}

/* Main hero title */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

/* Carousel navigation dots */
.split-carousel-side .carousel-dots {
    position: absolute; bottom: var(--space-6); left: 50%;
    transform: translateX(-50%); display: flex; gap: var(--space-2); z-index: 10;
}
.split-carousel-side .carousel-dots .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.3s ease;
}
.split-carousel-side .carousel-dots .dot.active {
    background: var(--color-secondary); width: 28px; border-radius: 6px;
}

/* ============================================================
   CATEGORY CARDS — Large clickable cards for collections
   ============================================================ */

.category-card-large {
    position: relative; height: 500px; border-radius: var(--radius-2xl);
    overflow: hidden; cursor: pointer; transition: transform 0.4s ease;
}
.category-card-large:hover { transform: translateY(-8px); }
.category-card-large img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.category-card-large:hover img { transform: scale(1.1); }

/* Gradient overlay with text on top of the image */
.category-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(27, 42, 74, 0.50) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: var(--space-8); color: white; border-radius: var(--radius-2xl);
}
.category-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: var(--space-2);
}

/* ============================================================
   TRENDING CAROUSEL — Cards with peek edges
   ============================================================ */

.trending-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: var(--space-6) 0;
}

/* Horizontal track of cards */
.trending-track {
    display: flex;
    gap: var(--space-4);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Each card in the carousel */
.trending-card {
    flex-shrink: 0;
    min-width: 0;
}

/* Left/right navigation arrows */
.trending-carousel-wrapper .carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 100%; display: flex; justify-content: space-between;
    pointer-events: none; padding: 0 var(--space-2); z-index: 5;
}

.trending-carousel-wrapper .nav-btn {
    pointer-events: all; width: 44px; height: 44px;
    border-radius: 50%; background: var(--color-bg-surface);
    border: 2px solid var(--color-primary); color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: var(--shadow-md); font-size: 0.9rem;
}
.trending-carousel-wrapper .nav-btn:hover {
    background: var(--color-primary); color: white; transform: scale(1.1);
}

/* ============================================================
   BENEFIT CARDS — Icon + heading + description
   ============================================================ */

.benefit-card {
    text-align: center; padding: var(--space-6);
    background: var(--color-bg-surface); border-radius: var(--radius-xl);
    border: 2px solid var(--color-border); transition: all 0.3s ease;
}
.benefit-card:hover {
    border-color: var(--color-secondary); transform: translateY(-6px); box-shadow: var(--shadow-lg);
}

/* Circular icon container */
.benefit-icon {
    width: 70px; height: 70px; margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.6rem;
}

/* ============================================================
   JOURNEY TIMELINE — 1-2-3-4 steps with connecting line
   ============================================================ */

.journey-timeline {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6); position: relative;
}

/* Horizontal connecting line */
.journey-timeline::before {
    content: ''; position: absolute; top: 35px; left: 10%; right: 10%;
    height: 2px; background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

.journey-step { text-align: center; position: relative; }

/* Numbered circle for each step */
.journey-number {
    width: 70px; height: 70px; margin: 0 auto var(--space-3);
    background: var(--color-bg-surface); border: 3px solid var(--color-primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: bold; color: var(--color-primary);
    position: relative; z-index: 1;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials-container { position: relative; overflow: hidden; padding: var(--spacing-sm) 0; }
.testimonials-track {
    display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: var(--spacing-md);
}
.testimonial-card {
    flex: 0 0 calc(33.333% - (var(--spacing-md) * 2 / 3));
    min-width: 280px;
}
.testimonial-float {
    padding: var(--space-6); background: var(--color-bg-surface);
    border-radius: var(--radius-lg); border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}
.testimonial-float:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ============================================================
   HOMEPAGE RESPONSIVE
   Breakpoints: 320, 375, 425, 768, 1024, 1440, 2560
   ============================================================ */

/* ---- 320px: Mobile S ---- */
@media screen and (max-width: 374px) {
    .split-hero { grid-template-columns: 1fr; height: auto; }
    .split-carousel-side { height: 40vh; min-height: 250px; }
    .split-content-side { padding: var(--space-5); }
    .hero-title { font-size: 1.5rem; }
    .hero-eyebrow { font-size: 0.68rem; }

    .category-card-large { height: 250px; }
    .category-overlay { padding: var(--space-4); }
    .category-title { font-size: 1.2rem; }

    /* Trending — 1 card visible */
    .trending-track { gap: var(--space-3); }
    .trending-card { width: 100%; }
    .trending-carousel-wrapper .carousel-nav { display: flex; }

    /* Journey — stacked, no line */
    .journey-timeline { grid-template-columns: 1fr; gap: var(--space-4); }
    .journey-timeline::before { display: none; }
}

/* ---- 375px: Mobile M ---- */
@media screen and (min-width: 375px) and (max-width: 424px) {
    .split-hero { grid-template-columns: 1fr; height: auto; }
    .split-carousel-side { height: 42vh; min-height: 280px; }
    .split-content-side { padding: var(--space-6); }
    .hero-title { font-size: 1.6rem; }

    .category-card-large { height: 280px; }

    /* Trending — 1 card visible */
    .trending-track { gap: var(--space-3); }
    .trending-card { width: 100%; }
    .trending-carousel-wrapper .carousel-nav { display: flex; }

    /* Journey — stacked, no line */
    .journey-timeline { grid-template-columns: 1fr; gap: var(--space-4); }
    .journey-timeline::before { display: none; }
}

/* ---- 425px: Mobile L ---- */
@media screen and (min-width: 425px) and (max-width: 767px) {
    .split-hero { grid-template-columns: 1fr; height: auto; }
    .split-carousel-side { height: 48vh; min-height: 320px; }
    .split-content-side { padding: var(--space-8); }
    .hero-title { font-size: 2rem; }

    .category-card-large { height: 320px; }

    /* Trending — 1 card visible */
    .trending-track { gap: var(--space-4); }
    .trending-card { width: 100%; }
    .trending-carousel-wrapper .carousel-nav { display: flex; }

    /* Journey — stacked, no line */
    .journey-timeline { grid-template-columns: 1fr; gap: var(--space-4); }
    .journey-timeline::before { display: none; }

    /* Landscape — split hero side by side */
    @media (orientation: landscape) {
        .split-hero { grid-template-columns: 1fr 1fr; height: 100vh; }
        .split-carousel-side { height: 100%; min-height: 0; }
        .split-content-side { padding: var(--space-6); }
        .hero-title { font-size: 1.5rem; }
    }
}

/* ---- 768px: Tablet ---- */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .split-hero { grid-template-columns: 1fr; height: auto; }
    .split-carousel-side { height: 52vh; }
    .split-content-side { padding: var(--space-10); }
    .hero-title { font-size: 2.6rem; }

    .category-card-large { height: 380px; }

    /* Trending — 3 cards visible */
    .trending-track { gap: var(--space-4); }
    .trending-card { width: calc((100% - (var(--space-4) * 2)) / 3); }
    .trending-carousel-wrapper .carousel-nav { display: flex; }

    /* Journey — 4 columns with line */
    .journey-timeline { grid-template-columns: repeat(4, 1fr); }
    .journey-timeline::before { display: block; }

    /* Landscape — split hero side by side */
    @media (orientation: landscape) {
        .split-hero { grid-template-columns: 1fr 1fr; height: 100vh; }
        .split-carousel-side { height: 100%; }
    }
}

/* ---- 1024px: Laptop ---- */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
    .split-hero { grid-template-columns: 1fr 1fr; height: 100vh; }
    .split-carousel-side { height: 100%; }

    /* Trending — 5 cards visible */
    .trending-track { gap: var(--space-4); }
    .trending-card { width: calc((100% - (var(--space-4) * 4)) / 5); }
    .trending-carousel-wrapper .carousel-nav { display: flex; }

    /* Journey — 4 columns with line */
    .journey-timeline { grid-template-columns: repeat(4, 1fr); }
    .journey-timeline::before { display: block; }

    /* Portrait — hero stacks */
    @media (orientation: portrait) {
        .split-hero { grid-template-columns: 1fr; height: auto; }
        .split-carousel-side { height: 50vh; }
    }
}

/* ---- 1440px: Laptop L ---- */
@media screen and (min-width: 1440px) and (max-width: 2559px) {
    .split-hero { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 4.2rem; }

    .category-card-large { height: 520px; }

    /* Trending — 5 cards visible */
    .trending-track { gap: var(--space-5); }
    .trending-card { width: calc((100% - (var(--space-5) * 4)) / 5); }
    .trending-carousel-wrapper .carousel-nav { display: flex; }

    /* Journey — 4 columns with line */
    .journey-timeline { grid-template-columns: repeat(4, 1fr); }
    .journey-timeline::before { display: block; }
}

/* ---- 2560px: 4K ---- */
@media screen and (min-width: 2560px) {
    .split-hero { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 5.5rem; }

    .category-card-large { height: 650px; }

    /* Trending — 7 cards visible */
    .trending-track { gap: var(--space-5); }
    .trending-card { width: calc((100% - (var(--space-5) * 6)) / 7); }
    .trending-carousel-wrapper .carousel-nav { display: flex; }

    /* Journey — 4 columns with line */
    .journey-timeline { grid-template-columns: repeat(4, 1fr); }
    .journey-timeline::before { display: block; }
}
