/*
 * PAGE: Homepage
 */

/* HERO */
/* HERO (Premium) */
.section-hero {
    position: relative;
    height: 80vh;
    /* USER REQUEST: 80% height to reduce page length */
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-ink-primary);
    /* Placeholder for actual image */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)), url('https://placehold.co/1920x1080/3B2A1E/FFF?text=Calm');
    background-size: cover;
    background-position: center;
    margin-bottom: 0;
    padding: 0 20px;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: var(--text-display);
    /* AUDIT FIX: 4.5rem (72px) - Was clamp() */
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    /* AUDIT FIX: Luxury serif spacing */
    margin-bottom: 16px;
    color: #FFFFFF;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    font-style: italic;
    /* Design vibe */
}

.btn-hero {
    display: inline-block;
    padding: 14px 34px;
    background-color: #B57A3C;
    /* Gold */
    color: #FFF;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color var(--motion-fast) var(--ease-calm),
        box-shadow var(--motion-fast) var(--ease-calm),
        transform var(--motion-fast) var(--ease-calm);
}

.btn-hero:hover {
    background-color: #A06833;
    box-shadow: 0 4px 12px rgba(181, 122, 60, 0.2);
    transform: translateY(-1px);
    /* Subtle lift */
}

/* CATEGORIES */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-m);
}

.cat-card {
    text-decoration: none;
    color: var(--color-ink-primary);
}

.cat-image {
    background-color: var(--color-surface-base);
    border-radius: var(--radius-md);
    transition: transform var(--duration-normal) var(--ease-out);
}

.cat-card:hover .cat-image {
    transform: scale(0.98);
}

/* HORIZONTAL SCROLL SNAP */
.product-scroll-snap {
    display: flex;
    gap: var(--space-m);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-s);
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.product-scroll-snap::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome */
}

.product-card-dummy {
    flex: 0 0 280px;
    height: 400px;
    background-color: var(--color-surface-base);
    border-radius: var(--radius-md);
    scroll-snap-align: start;
}

/* SOCIAL PROOF */
.container-narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* REASSURANCE */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* UTILITIES */
.container-full {
    width: 100%;
    padding: 0;
}

.ratio-square {
    aspect-ratio: 1;
}

.bg-surface-base {
    background-color: var(--color-surface-base);
}

.radius-lg {
    border-radius: var(--radius-lg);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-prose {
    max-width: 65ch;
}

.block {
    display: block;
}

.flex-1 {
    flex: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .section-hero {
        height: 60vh;
        min-height: 400px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-s);
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: var(--space-l);
    }

}

/* End of max-width: 768px */

/* PRODUCT CAROUSEL (Premium Row) */
.product-carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    /* Breathable spacing */
    background-color: var(--color-surface-base);
    /* Cream Background */
}

.product-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 40px 40px 40px;
    /* Padding for shadows */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.product-carousel-track::-webkit-scrollbar {
    display: none;
}

.product-carousel-track .product-card {
    flex: 0 0 calc(25% - 15px);
    width: calc(25% - 15px);
    scroll-snap-align: start;
}

.product-carousel-track .product-card .card-image-wrapper {
    aspect-ratio: 3/4;
    /* Enforce container ratio */
}

.product-carousel-track .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FIXED SPLIT SECTION (Internal Scroll Window) */
.fixed-split-section {
    position: relative;
    height: 80vh;
    /* Fixed height to reduce page length */
    display: flex;
    justify-content: center;
    overflow: hidden;
    /* Constrain content */
    padding: 0;
    max-width: 1200px;
    margin: 80px auto;
}

.fixed-split-inner {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: stretch;
    gap: 60px;
}

.fixed-split-left {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    /* Internal Scrolling */
    padding: 20px 20px 20px 0;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
}

.fixed-split-left::-webkit-scrollbar {
    display: none;
}

.fixed-split-right {
    flex: 1;
    position: relative;
    /* No need for sticky in fixed height container */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 10;
}

/* Inner Styles (Preserved) */
/* Inner Styles (Preserved) */
.fixed-split-right .ritual-title {
    font-size: var(--text-h2);
    font-family: var(--font-serif);
    margin-bottom: var(--space-m);
    line-height: 1.2;
}

.fixed-split-right .ritual-description {
    font-size: var(--text-body);
    color: var(--color-ink-secondary);
    margin-bottom: var(--space-l);
    max-width: 45ch;
    margin-left: auto;
    margin-right: auto;
}

/* NEW RITUAL CARD STYLING */
.ritual-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 24px;
    /* More rounded matches ref */
    /* Optional: box-shadow: 0 4px 12px rgba(0,0,0,0.03); */
}

.fixed-split-item .ritual-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/10;
    /* Landscape, slightly taller than Video */
    object-fit: cover;
    border-radius: 16px;
}

.ritual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    /* Safety for mobile */
    gap: 12px;
}

.ritual-card-title {
    font-size: 1.4rem;
    font-family: var(--font-serif);
    color: var(--color-ink-primary);
    margin: 0;
    line-height: 1.1;
}

.ritual-tags-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #E5E5E5;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--color-ink-secondary);
    white-space: nowrap;
    background-color: #fff;
}

.ritual-tags-pill .x {
    color: #999;
    font-size: 0.7rem;
}

.ritual-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-ink-secondary);
    margin: 0;
    max-width: 95%;
    /* Keep it readable */
}

/* RESPONSIVE OVERRIDES */
@media (max-width: 1024px) {
    .product-carousel-track .product-card {
        flex: 0 0 calc(33.333% - 14px);
        width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .product-carousel-track .product-card {
        flex: 0 0 calc(50% - 10px);
        width: calc(50% - 10px);
    }

    /* Disable Sticky on Mobile */
    .fixed-split-inner {
        flex-direction: column-reverse;
    }

    .fixed-split-right {
        position: static;
        height: auto;
        display: block;
        width: 100%;
        margin-bottom: 40px;
    }
}