/* Home / landing page styles */

/* ════════ STATS STRIP ════════ */
.home-stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 92rem;
}
@media (min-width: 760px) {
    .home-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}
.hstat {
    border-radius: 1.8rem;
}
.hstat:hover {
    border-color: rgba(194, 98, 42, 0.3);
    transform: translateY(-0.3rem);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.07);
}

.hstat-num {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hstat-label {
    color: #7a6050;
    letter-spacing: 0.14rem;
}

/* ════════ FEATURE CARDS — hover lift ════════ */
.home-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-0.5rem);
    box-shadow: 0 1.4rem 3.6rem rgba(194, 98, 42, 0.16);
}
.home-card-arrow {
    transform: translateX(-0.4rem);
}
.home-card:hover .home-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* "What you can do" — horizontal slider: the cards scroll in one row */
.home-cards-slider {
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* top room so the card's hover-lift isn't clipped by overflow */
}
/* thin, subtle scrollbar so the slider is draggable on desktop too */
.home-cards-slider::-webkit-scrollbar {
    height: 0.7rem;
}
.home-cards-slider::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.16);
    border-radius: 10rem;
}
.home-cards-slider::-webkit-scrollbar-track {
    background: transparent;
}
.home-card-slide {
    flex: 0 0 auto;
    width: 24rem;
    scroll-snap-align: start;
}

/* ════════ FEATURED PETS ════════ */
.home-pets {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.home-pets::-webkit-scrollbar {
    height: 0.7rem;
}
.home-pets::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.16);
    border-radius: 10rem;
}
.home-pets::-webkit-scrollbar-track {
    background: transparent;
}
.pet-card {
    flex: 0 0 auto;
    width: 23rem;
    scroll-snap-align: start;
    border-radius: 2rem;
}
.pet-card:hover {
    border-color: var(--primary);
    transform: translateY(-0.5rem);
    box-shadow: 0 1.4rem 3.6rem rgba(194, 98, 42, 0.15);
}
.pet-thumb {
    height: 19rem;
    background: #f0ece6;
}
.pet-thumb img {
    transition: transform 0.4s ease;
}
.pet-card:hover .pet-thumb img {
    transform: scale(1.05);
}
.pet-badges {
    top: 1rem;
    left: 1rem;
}
.pet-badge {
    border-radius: 10rem;
    backdrop-filter: blur(6px);
}
.pet-badge-new {
    background: rgba(45, 106, 79, 0.92);
}
.pet-badge-urgent {
    background: rgba(192, 57, 43, 0.92);
}
.pet-name {
    color: #1a0e06;
    line-height: 1.15;
}
.pet-meta {
    color: #7a6050;
    line-height: 1.4;
}
.pet-loc {
    color: #b09070;
}
.pet-cta {
    margin-top: auto;
}

/* ════════ URGENT DONATE ════════ */
.home-donate {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.home-donate::-webkit-scrollbar {
    height: 0.7rem;
}
.home-donate::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.16);
    border-radius: 10rem;
}
.home-donate::-webkit-scrollbar-track {
    background: transparent;
}
.dnt-card {
    flex: 0 0 auto;
    width: 28rem;
    scroll-snap-align: start;
    border-radius: 2rem;
}
.dnt-card:hover {
    border-color: var(--primary);
    transform: translateY(-0.4rem);
    box-shadow: 0 1.4rem 3.6rem rgba(194, 98, 42, 0.14);
}
.dnt-thumb {
    height: 18rem;
    background: #f0ece6;
}

.dnt-scrim {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent 55%);
}
.dnt-tag {
    top: 1rem;
    left: 1rem;
    background: rgba(192, 57, 43, 0.92);
    border-radius: 10rem;
    backdrop-filter: blur(6px);
}
.dnt-emoji {
    bottom: -2.2rem;
    right: 1.6rem;
    width: 5.2rem;
    height: 5.2rem;
    border: 0.2rem solid var(--border);
    box-shadow: 0 0.4rem 1.4rem rgba(0, 0, 0, 0.1);
}

.dnt-name {
    color: #1a0e06;
    line-height: 1.15;
}
.dnt-cond {
    color: #7a6050;
    line-height: 1.5;
}

.dnt-track {
    height: 0.8rem;
    border-radius: 10rem;
}
.dnt-fill {
    border-radius: 10rem;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.6s ease;
}
.dnt-row {
    align-items: baseline;
}
.dnt-goal {
    color: #b09070;
}
.dnt-shelter {
    color: #b09070;
}
.dnt-cta {
    margin-top: auto;
}

/* ════════ SHOP (home) — horizontal slider ════════ */
.home-shop {
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
}
.shop-card {
    border-radius: 1.8rem;
    text-decoration: none;
    color: inherit;
}
.shop-card:hover {
    border-color: var(--primary);
    transform: translateY(-0.4rem);
    box-shadow: 0 1.4rem 3.6rem rgba(194, 98, 42, 0.14);
}
.shop-thumb {
    height: 16rem;
    background: #f0ece6;
}

.shop-card:hover .shop-thumb img {
    transform: scale(1.05);
}
.shop-badge {
    top: 1rem;
    left: 1rem;
    background: rgba(194, 98, 42, 0.92);
    border-radius: 10rem;
    backdrop-filter: blur(6px);
}

.shop-name {
    line-height: 1.3;
}
.shop-price-row {
    align-items: baseline;
}

.shop-old {
    color: #b09070;
    text-decoration: line-through;
}
.shop-add {
    margin-top: auto;
}
.shop-rating {
    font-size: 1.2rem;
    color: #b09070;
}

/* hide the slider scrollbars (they still scroll by drag / trackpad / swipe) */
.home-cards-slider,
.home-pets,
.home-donate {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.home-cards-slider::-webkit-scrollbar,
.home-pets::-webkit-scrollbar,
.home-donate::-webkit-scrollbar {
    display: none;
}
