/* =============================
containers
============================= */
.container{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================
flex utilities
============================= */
.flex{
    display: flex;
}

.flex-center{
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column{
    display: flex;
    flex-direction: column;
}

/* =============================
grid utilities
============================= */
.grid{
    display: grid;
}

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

.grid-3{
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 24px;
}

.grid-4{
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 24px;
}

/* =============================
spacing utilities
============================= */
.mt-1{
    margin-top: 10px;
}

.mt-2{
    margin-top: 20px;
}

.mt-3{
    margin-top: 30px;
}

.mt-4{
    margin-top: 40px;
}

.mb-1{
    margin-bottom: 10px;
}

.mb-2{
    margin-bottom: 20px;
}

.mb-3{
    margin-bottom: 30px;
}

.mb-4{
    margin-bottom: 40px;
}

.py-1{
    padding-top: 10px;
    padding-bottom: 10px;
}

.py-2{
    padding-top: 20px;
    padding-bottom: 20px;
}

.py-3{
    padding-top: 30px;
    padding-bottom: 30px;
}

.py-4{
    padding-top: 40px;
    padding-bottom: 40px;
}

/* =============================
card utilities
============================= */
.card{
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.card-padding{
    padding: 20px;
}

/* =============================
section helpers
============================= */
.section-title{
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2{
    margin-bottom: 12px;
}

.section-title p{
    max-width: 700px;
    margin: 0 auto;
}

/* =============================
page wrappers
============================= */
.page-wrapper{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content{
    flex: 1;
}

/* =============================
utility helpers
============================= */
.hidden{
    display: none !important;
}

.text-center{
    text-align: center;
}

.text-left{
    text-align: left;
}

.text-right{
    text-align: right;
}

.w-100{
    width: 100%;
}

.rounded{
    border-radius: 12px;
}

.shadow{
    box-shadow: var(--shadow-soft);
}

/* =============================
animations
============================= */
.fade-in{
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn{

    from{
        opacity: 0;
        transform: translateY(10px);
    }

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

/* =============================
responsive layout
============================= */
@media(max-width:1024px){
    .grid-4{
        grid-template-columns: repeat(3, 1fr);
    }
    
    .container{
        padding: 0 40px;
    }
}

@media(max-width:799px){
    .grid-4{
        grid-template-columns:
            repeat(2, 1fr);
    }

    .grid-3{
        grid-template-columns:
            repeat(2, 1fr);
    }

    .section-title{
        margin-bottom: 30px;
    }
}

@media(max-width:477px){
    .grid-2,
    .grid-3,
    .grid-4{
        grid-template-columns: 1fr;
    }

    .container{
        padding: 0 15px;
    }

    .card-padding{
        padding: 16px;
    }
}