/**
 * Azarias Books - Homepage Styles
 */

/* --- HERO SECTION --- */
.hero-section {
    background-color: var(--az-cream); 
    padding: clamp(2rem, 4vh, 4rem) 0 clamp(3rem, 6vh, 6rem) 0; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    border-bottom: 1px solid #e0dcd0;
    position: relative;
    overflow: hidden; 
}

/* --- TOP VISUALS CONTAINER --- */
.hero-top-visuals {
    position: relative;
    width: 100%;
    min-height: 60vh; 
    display: flex;
    flex-direction: column;
}

/* --- LOGO WATERMARK --- */
.hero-logo-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2.25);
    width: 100%;
    height: 100%; 
    object-fit: contain; 
    opacity: 0.08; 
    pointer-events: none;
    mix-blend-mode: multiply; 
    z-index: 0;
}

/* --- SELL SIDE WRAPPER --- */
.sell-side-content-wrapper {
    position: relative;
    z-index: 10; 
    width: 100%;
    margin-top: 1rem; 
}

/* --- CAROUSEL CONTAINER --- */
.carousel-registry-hero {
    padding: 1.5rem 0;
    /* CHANGED: Applied the margin concept here to push the 3D carousel lower */
    margin-top: 8rem; 
    margin-bottom: 0; 
    overflow: hidden;
    
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2; 
    
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* --- MOVING TRACK --- */
.carousel-3d-track {
    display: flex;
    visibility: hidden;
    width: max-content; 
    gap: 2.5rem; 
    animation: scrollCarousel 300s linear infinite;
    padding-right: 2.5rem; 
    pointer-events: auto;
}

.carousel-3d-track.covers-ready { visibility: visible; }
.carousel-empty-message { margin: 2rem; color: var(--az-navy); text-align: center; }

/* --- BOOK NODE (CARD) --- */
.book-node {
    width: 13.75rem; 
    height: 21.25rem; 
    position: relative;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    padding: 0;
}

.book-node-image-wrapper {
    width: 100%;
    height: 15rem; 
    overflow: hidden;
    background-color: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
}

.book-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.book-node-details {
    padding: 0.75rem 0.9375rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.book-node-title {
    font-family: 'Merriweather', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--az-navy);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-node-author {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-node:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.carousel-3d-track:hover {
    animation-play-state: paused;
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* --- SELL-SIDE TYPOGRAPHY --- */
.sell-side-title {
    color: var(--az-navy);
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.sell-side-subtitle {
    color: #5d6d7e;
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 40.625rem;
    margin-left: auto;
    margin-right: auto;
}

/* --- STATS STRIP --- */
.stats-strip {
    background-color: white;
    padding: 5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 5;
}
.stat-number {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: var(--az-bronze);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--az-navy);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.stat-desc {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    max-width: 80%;
    margin: 0 auto;
}

/* --- MISSION CARDS --- */
.mission-card {
    padding: 2.5rem;
    height: 100%;
    border-left: 3px solid #eee;
    transition: 0.4s ease;
    background: white;
}
.mission-card:hover {
    border-left: 3px solid var(--az-bronze);
    background-color: #faf9f6;
    transform: translateY(-5px);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    .sell-side-title {
        font-size: 2.2rem;
    }
}

/* --- FOOTER COPYRIGHT COLOR FIX --- */
/* Bootstrap's .text-muted uses !important, so we need it here to override it */
.footer-bottom.text-muted,
.footer-bottom small {
    color: var(--az-white) !important;
}
