/* Stats Section Styles */
.block-stats {
    position: relative;
    padding: 8rem 0;
    background-color: #FEF9ED;
    color: #5D524B;
    overflow: hidden;
    z-index: 10;
}

.max-w-max {
    max-width: 1728px;
    margin: 0 auto;
    padding: 0 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    border-top: 1px solid rgba(93, 82, 75, 0.2);
    border-bottom: 1px solid rgba(93, 82, 75, 0.2);
    padding: 4rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Vertical dividers */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background-color: rgba(93, 82, 75, 0.2);
}

.stat-number-wrapper {
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
}

.stat-number {
    font-family: inherit;
    /* Uses site's default serif */
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1;
    display: block;
    color: #A67C52;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

.stat-suffix {
    font-size: 0.5em;
    vertical-align: super;
    margin-left: 0.1em;
}

.stat-label {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 1s ease 0.2s;
}

/* Animation Trigger State */
.block-stats.in-view .stat-number {
    transform: translateY(0);
    opacity: 1;
}

.block-stats.in-view .stat-label {
    transform: translateY(0);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        border: none;
        padding: 2rem 0;
    }

    .stat-item {
        padding: 2rem 0;
        border-bottom: 1px solid rgba(93, 82, 75, 0.1);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }
}