/* Home Page Styles */

/* Button Styles */
.btn-primary {
    position: relative;
    width: 324px;
    height: 65px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3BA7D9;
    -webkit-mask: url('assets/assets/button-shape.svg') no-repeat center center;
    mask: url('assets/assets/button-shape.svg') no-repeat center center;
    -webkit-mask-size: contain;
    mask-size: contain;
    /* transition: all 0.3s ease; */
}

.btn-primary span {
    position: relative;
    z-index: 2;
    color: #EBE715;
    /* transition: all 0.3s ease; */
}

.btn-primary:hover {
    /* transform: scale(1.05); */
    background-color: #9BCC96;
}

.btn-primary:hover span {
    color: #EBE715;
}

/* Community & Believe Card Base */

/* Community & Believe Card Base */
.community-card,
.believe-card {
    width: 100%;
    height: 100%;
}

/* City Badge Styles */
.city-badge {
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
    width: 191px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Section Spacing */
section {
    position: relative;
}

/* Hero Section */
/* .hero-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
} */

.summer-section {
    background-image: url('assets/assets/summer-home-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.image-stack {
    /* Dimensions are handled by utility classes in HTML */
}

.image-stack img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.image-stack img.active {
    opacity: 1;
    transform: scale(1);
}

.believe-slide:nth-child(2) .card-blob h3 {
    margin-left: 2rem !important;
}

.believe-slide:nth-child(2) .card-blob p {
    margin-left: 3rem !important;
}

.believe-slide:nth-child(4) .card-blob h3 {
    margin-left: 4rem !important;
}

.believe-slide:nth-child(4) .card-blob p {
    margin-left: 0.5rem !important;
}

.believe-slide:nth-child(4) .card-blob {
    padding-left: 0 !important;
}

@media (min-width: 1024px) {
    .summer-section {
        background-size: 100% 100%;
    }
}

/* Responsive Images - Desktop by default */
.shared-belief-desktop,
.community-mapmakers-desktop {
    display: block;
}

.shared-belief-tablet,
.community-mapmakers-tablet {
    display: none;
}

.card-blob h3 {
    color: #DFAAC7 !important;
    max-width: 260px;
    margin: 0 auto;
    line-height: 1.1;
}



/* Responsive - Tablet */
@media (max-width: 1024px) {
    .community-grid .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .believe-section .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .community-card .w-\[282px\],
    .believe-card .w-\[282px\] {
        width: 220px;
        height: 320px;
    }

    h1 {
        font-size: 64px;
        line-height: 64px;
    }

    h2 {
        font-size: 48px;
        line-height: 48px;
    }

    h3 {
        font-size: 24px;
        line-height: 28px;
    }

    /* 
    .city-badge {
        padding: 16px 24px;
    } */

    .city-badge span {
        font-size: 20px;
    }

    .summer-section {
        background-position: center;
    }

    /* Switch to tablet images */
    .shared-belief-desktop,
    .community-mapmakers-desktop {
        display: none;
    }

    .shared-belief-tablet,
    .community-mapmakers-tablet {
        display: block;
        width: auto;
        height: auto;
        /* padding-bottom: 96px; */
    }

    .hero-container {
        display: flex;
        justify-content: space-evenly;
        align-items: flex-end;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 0;
    }

    h1 {
        font-size: 40px;
        line-height: 44px;
    }

    h2 {
        font-size: 32px;
        line-height: 36px;
    }

    h3 {
        font-size: 20px;
        line-height: 24px;
    }

    p {
        font-size: 16px;
        line-height: 22px;
    }

    .community-grid .grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .believe-section .grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .community-card .w-\[282px\],
    .believe-card .w-\[282px\] {
        width: 100%;
        max-width: 320px;
        height: 280px;
    }

    .btn-primary {
        width: 280px;
        height: 56px;
    }

    /* .city-badge {
        padding: 12px 16px;
        font-size: 14px;
    } */

    .summer-section .flex {
        /* flex-direction: column; */
        gap: 32px 16px;
    }

    /* Adjust decorative images for mobile */
    /* .summer-section img {
        display: none !important;
    } */

    .community-mapmakers {
        padding-top: 0;
    }
}


/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.section-spacing {
    padding: 160px 0;
}

@media (max-width: 1023px) {
    .section-spacing {
        padding: 80px 0;
    }


}

@media (max-width: 767px) {
    .section-spacing {
        padding: 60px 0;
    }

    .believe-slide:nth-child(4) .card-blob {
        padding-left: 30px !important;
    }

    .believe-slide:nth-child(2) .card-blob h3 {
        margin-left: 14rem !important;
    }

    .believe-slide:nth-child(2) .card-blob p {
        margin-left: 15rem !important;
    }

    .believe-slide:nth-child(4) .card-blob h3 {
        margin-left: 15rem !important;
    }

    .believe-slide:nth-child(4) .card-blob p {
        margin-left: 13rem !important;
    }



}

@media (max-width: 580px) {

    .believe-slide:nth-child(2) .card-blob h3 {
        margin-left: 4rem !important;
    }

    .believe-slide:nth-child(2) .card-blob p {
        margin-left: 5rem !important;
    }

    .believe-slide:nth-child(4) .card-blob h3 {
        margin-left: 5rem !important;
    }

    .believe-slide:nth-child(4) .card-blob p {
        margin-left: 3rem !important;
    }
}