﻿/* =========================
   HERO CAROUSEL
   ========================= */

.home-hero-carousel {
    height: 550px;
}

    .home-hero-carousel .mud-carousel,
    .home-hero-carousel .mud-carousel-item {
        height: 550px;
    }

/* MudSwipeArea sets touch-action: none, which blocks vertical page scroll on touch devices */
.home-hero-carousel .mud-swipearea {
    touch-action: pan-y;
}

.home-hero {
    height: 550px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 6rem;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Background images */
.hero-1 {
    background-image: url('/images/advertiseHome.webp');
}

.hero-2 {
    background-image: url('/images/advertiseHome.webp');
}

.hero-3 {
    background-image: url('/images/advertiseHome.webp');
}

/* Content */
.home-hero {
    position: relative;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(233, 229, 225, 0.85) 0%, rgba(233, 229, 225, 0.55) 35%, rgba(233, 229, 225, 0) 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 520px;
    color: #423936;
}

.hero-title {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.15;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero-subtitle {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.hero-button {
    margin-top: 0.5rem;
}


/* =========================
   HOME SECTION
   ========================= */

.home-section {
    margin-top: 3rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

/* =========================================================
   HOME - CATEGORY SLIDER
   ========================================================= */

.home-category-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 4rem 4rem;
    background: var(--mud-palette-background) !important;
}

.category-slider-left {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.category-slider-title {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.category-swipe-area.mud-swipearea {
    width: 100%;
    touch-action: pan-y; /* MudSwipeArea defaults to none, which would block page scroll */
}

.category-carousel {
    width: 100%;
    overflow: hidden;
    height: auto;
}

.category-track {
    display: flex;
    transition: transform 0.5s ease;
    align-items: stretch;
}

.category-slide-item {
    min-width: calc(100% / 4);
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.category-card {
    cursor: pointer;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--mud-palette-background) !important;
}

.category-card-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    display: block;
}

    .category-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.category-card-title {
    margin-top: 0.75rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.category-card:hover .category-card-title {
    color: var(--mud-palette-secondary);
}

/* =========================================================
   HOME - ABOUT SECTION
   ========================================================= */

.home-about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 1rem 4rem;
    background: var(--mud-palette-background);
}

.home-about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 550px;
}

.home-about-image-wrapper {
    overflow: hidden;
}

.home-about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

    .home-about-image:hover {
        transform: scale(1.03);
    }

.home-about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 480px;
}

.home-about-overline {
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mud-palette-secondary);
}

.home-about-title {
    line-height: 1.2;
}

.home-about-text {
    line-height: 1.8;
    color: var(--mud-palette-text-secondary);
}

.home-about-button {
    align-self: flex-start;
    padding: 0.75rem 2rem !important;
    border-color: var(--mud-palette-primary) !important;
    letter-spacing: 0.1em;
}

    .home-about-button:hover {
        background: var(--mud-palette-primary) !important;
        color: var(--mud-palette-surface) !important;
    }


/* =========================================================
   HOME - HOW IT WORKS
   ========================================================= */

.home-how-it-works {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 6rem 4rem;
    background: var(--mud-palette-surface);
}

.home-how-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    max-width: 600px;
}

.home-how-overline {
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mud-palette-secondary);
}

.home-how-title {
    line-height: 1.2;
}

.home-how-subtitle {
    color: var(--mud-palette-text-secondary);
}

.home-how-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 1100px;
}

.home-how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    flex: 1;
    max-width: 220px;
}

.home-how-step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--mud-palette-background);
    border: 2px solid var(--mud-palette-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

    .home-how-step-icon:hover {
        background: var(--mud-palette-secondary);
    }

        .home-how-step-icon:hover .home-how-icon {
            color: var(--mud-palette-surface) !important;
        }

.home-how-icon {
    font-size: 2rem !important;
    color: var(--mud-palette-secondary) !important;
    transition: color 0.3s ease;
}

.home-how-step-number {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--mud-palette-secondary);
}

.home-how-step-title {
    margin: 0;
}

.home-how-step-text {
    color: var(--mud-palette-text-secondary);
    line-height: 1.7;
}

.home-how-connector {
    flex: 0 0 60px;
    height: 1px;
    background: var(--mud-palette-divider);
    margin-bottom: 80px;
}

.home-how-footer {
    display: flex;
    justify-content: center;
}

.home-how-button {
    padding: 0.75rem 3rem !important;
    letter-spacing: 0.1em;
}

/* =========================================================
   HOME - MEET OUR MAKERS
   ========================================================= */

.home-makers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 6rem 4rem;
    background: var(--mud-palette-background);
}

.home-makers-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    max-width: 600px;
}

.home-makers-overline {
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mud-palette-secondary);
}

.home-makers-title {
    line-height: 1.2;
}

.home-makers-subtitle {
    color: var(--mud-palette-text-secondary);
}

.home-makers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.home-maker-card {
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .home-maker-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    }

.home-maker-image-wrapper {
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.home-maker-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.home-maker-card:hover .home-maker-image {
    transform: scale(1.04);
}

.home-maker-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.home-maker-name {
    margin: 0;
}

.home-maker-specialty {
    color: var(--mud-palette-text-secondary);
    font-style: italic;
}

.home-maker-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-maker-rating-text {
    color: var(--mud-palette-text-secondary);
}

.home-maker-button {
    margin-top: 0.5rem;
    border-color: var(--mud-palette-primary) !important;
    letter-spacing: 0.08em;
}

    .home-maker-button:hover {
        background: var(--mud-palette-primary) !important;
        color: var(--mud-palette-surface) !important;
    }

.home-makers-all-button {
    letter-spacing: 0.08em;
    color: var(--mud-palette-secondary) !important;
}

.home-maker-fullname {
    color: var(--mud-palette-text-secondary) !important;
    font-size: 0.85rem !important;
}

.home-maker-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.home-maker-location-icon {
    font-size: 0.9rem !important;
    color: var(--mud-palette-secondary) !important;
}

.home-maker-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.home-maker-orders {
    color: var(--mud-palette-text-secondary) !important;
    font-size: 0.85rem !important;
}

.home-maker-accepting {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.home-maker-accepting-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 5px #4caf50;
}

.home-maker-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--mud-palette-primary) 0%, var(--mud-palette-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-maker-initials {
    color: white !important;
    font-weight: 700;
}

/* =========================================================
   HOME - SPLIT CTA
   ========================================================= */

.home-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.home-cta-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
}

.home-cta-customer {
    background-color: var(--mud-palette-secondary);
}

    .home-cta-customer::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--mud-palette-primary);
    }

.home-cta-maker {
    background-color: var(--mud-palette-background);
}

    .home-cta-maker::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(233, 229, 225, 0.85);
    }

.home-cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 420px;
}

.home-cta-customer .home-cta-overline,
.home-cta-customer .home-cta-title,
.home-cta-customer .home-cta-text {
    color: #FFFFFF !important;
}

.home-cta-maker .home-cta-overline {
    color: var(--mud-palette-secondary) !important;
}

.home-cta-maker .home-cta-title,
.home-cta-maker .home-cta-text {
    color: var(--mud-palette-text-primary) !important;
}

.home-cta-overline {
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.home-cta-title {
    line-height: 1.2;
}

.home-cta-text {
    line-height: 1.8;
    opacity: 0.9;
}

.home-cta-button {
    align-self: flex-start;
    padding: 0.75rem 2.5rem !important;
    letter-spacing: 0.1em;
}

.home-cta-button-light {
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
}

    .home-cta-button-light:hover {
        background: #FFFFFF !important;
        color: var(--mud-palette-primary) !important;
    }

.home-cta-button-dark {
    border-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-primary) !important;
}

    .home-cta-button-dark:hover {
        background: var(--mud-palette-primary) !important;
        color: #FFFFFF !important;
    }

/* =========================================================
   RESPONSIVE — HOME PAGE
   ========================================================= */

/* ===================== TABLET & BELOW ===================== */
@media (max-width: 960px) {

    /* Hero */
    .home-hero-carousel,
    .home-hero-carousel .mud-carousel,
    .home-hero-carousel .mud-carousel-item,
    .home-hero {
        height: 480px;
    }

    .home-hero {
        padding: 0 2rem 2.5rem;
        align-items: flex-end;
    }

    .hero-scrim {
        background: linear-gradient(0deg, rgba(233, 229, 225, 0.92) 0%, rgba(233, 229, 225, 0.7) 45%, rgba(233, 229, 225, 0) 80%);
    }

    /* Category slider */
    .home-category-slider {
        padding: 3rem 2rem;
        gap: 1.5rem;
    }

    .category-carousel {
        height: auto;
    }

    .category-slide-item {
        min-width: calc(100% / 2);
    }


    /* About section stacks */
    .home-about-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 2rem;
    }

    .home-about-images {
        height: 360px;
    }

    .home-about-content {
        max-width: 100%;
    }

    /* How it works — stack steps vertically */
    .home-how-it-works {
        padding: 4rem 2rem;
        gap: 2rem;
    }

    .home-how-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .home-how-step {
        max-width: 400px;
    }

    /* Hide horizontal connectors when stacked */
    .home-how-connector {
        display: none;
    }

    /* Makers grid — 2 columns */
    .home-makers {
        padding: 4rem 2rem;
        gap: 2rem;
    }

    .home-makers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .home-maker-image-wrapper {
        height: 240px;
    }

    /* CTA panels stack */
    .home-cta {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-cta-panel {
        padding: 4rem 2rem;
    }

    .home-cta-content {
        max-width: 100%;
    }
}

/* ===================== MOBILE ===================== */
@media (max-width: 600px) {

    /* Hero smaller */
    .home-hero-carousel,
    .home-hero-carousel .mud-carousel,
    .home-hero-carousel .mud-carousel-item,
    .home-hero {
        height: 440px;
    }

    .home-hero {
        padding: 0 1.5rem 2.5rem;
    }

    .hero-subtitle {
        display: none;
    }

    .home-hero .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .home-hero .hero-button {
        font-size: 0.8125rem;
        padding: 6px 16px;
        margin-top: 0;
    }

    /* Category slider — 2 at a time, as on tablet */
    .home-category-slider {
        padding: 2.5rem 1rem;
    }

    .category-slide-item {
        padding: 0 0.375rem;
    }

    .category-carousel {
        height: auto;
    }

    .category-slider-title {
        font-size: 1.1rem !important;
    }

    .category-card-title {
        font-size: 0.85rem !important;
        letter-spacing: 0.05em;
        margin-top: 0.5rem;
    }

    /* About */
    .home-about-section {
        padding: 2.5rem 1rem;
    }

    .home-about-images {
        height: 280px;
        gap: 0.5rem;
    }

    /* How it works */
    .home-how-it-works {
        padding: 3rem 1rem;
    }

    /* Makers — 2 columns of compact cards */
    .home-makers {
        padding: 3rem 1rem;
    }

    .home-makers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .home-maker-image-wrapper {
        height: 160px;
    }

    .home-maker-info {
        gap: 0.35rem;
        padding: 0.75rem;
    }

    .home-maker-name {
        font-size: 0.95rem !important;
        overflow-wrap: anywhere;
    }

    .home-maker-fullname,
    .home-maker-specialty,
    .home-maker-location .mud-typography,
    .home-maker-orders {
        font-size: 0.75rem !important;
    }

    .home-maker-stats {
        flex-wrap: wrap;
        gap: 0.25rem 0.5rem;
        margin-top: 0.25rem;
    }

    .home-maker-button {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }

    /* CTA */
    .home-cta-panel {
        padding: 3rem 1.5rem;
    }
}