/* =========================================================
   buttons
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 50px;
    padding: 0 28px;

    border: 1px solid transparent;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all .25s ease;
}

.btn-primary {
    background: #111;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-light {
    background: #fff;
    color: #111;
    border-color: #ddd;
}

.btn-light:hover {
    background: #f5f5f5;
}

.btn-outline {
    background: transparent;
    color: #111;
    border-color: #111;
}

.btn-outline:hover {
    background: #111;
    color: #fff;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #b02a37;
}

.btn-sm {
    min-height: 40px;
    padding: 0 18px;
    font-size: 13px;
}

.btn-lg {
    min-height: 58px;
    padding: 0 35px;
    font-size: 15px;
}


/* =========================================================
   cards
========================================================= */

.card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
}

.card-body {
    padding: 28px;
}

.card-title {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.card-text {
    color: #666;
    font-size: 15px;
}


/* =========================================================
   badges
========================================================= */

.badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    border-radius: 30px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.badge-dark {
    background: #111;
    color: #fff;
}

.badge-light {
    background: #f1f1f1;
    color: #333;
}

.badge-success {
    background: #e8f7ee;
    color: #198754;
}

.badge-warning {
    background: #fff4d6;
    color: #9a6700;
}

.badge-danger {
    background: #fdeaea;
    color: #dc3545;
}


/* =========================================================
   forms
========================================================= */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.form-control,
.form-select {
    width: 100%;
    min-height: 50px;

    padding: 12px 15px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;
    color: #111;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition: border-color .2s ease,
                box-shadow .2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}


/* =========================================================
   gallery
========================================================= */

.gallery {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;

    border-radius: 12px;

    width: 100%;
    height: 350px;

    background: #eee;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;

    padding: 20px;

    background: linear-gradient(
        transparent,
        rgba(0,0,0,.7)
    );

    opacity: 0;

    transition: opacity .3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   modal
========================================================= */

.modal {
    position: fixed;
    inset: 0;

    z-index: 5000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(0,0,0,.75);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;

    width: 100%;
    max-width: 700px;
    max-height: 90vh;

    overflow-y: auto;

    background: #fff;
    border-radius: 16px;

    padding: 35px;
}

.modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #111;
    color: #fff;

    font-size: 20px;

    cursor: pointer;
}


/* =========================================================
   alerts
========================================================= */

.alert {
    padding: 15px 18px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #e8f7ee;
    color: #146c43;
}

.alert-error {
    background: #fdeaea;
    color: #b02a37;
}

.alert-warning {
    background: #fff4d6;
    color: #856404;
}

.alert-info {
    background: #e7f1ff;
    color: #084298;
}


/* =========================================================
   pagination
========================================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 40px;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #ddd;
    border-radius: 8px;

    color: #333;
    font-size: 14px;
}

.pagination a:hover,
.pagination .active {
    background: #111;
    color: #fff;
    border-color: #111;
}


/* =========================================================
   loading
========================================================= */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;
}

.spinner {
    width: 35px;
    height: 35px;

    border: 3px solid #ddd;
    border-top-color: #111;

    border-radius: 50%;

    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   empty state
========================================================= */

.empty-state {
    padding: 70px 30px;

    text-align: center;

    border: 1px dashed #ddd;
    border-radius: 14px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #222;
}

.empty-state p {
    color: #777;
}


/* =========================================================
   divider
========================================================= */

.divider {
    width: 100%;
    height: 1px;

    margin: 40px 0;

    background: #e8e8e8;
}


/* =========================================================
   responsive
========================================================= */

@media (max-width: 750px) {

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        padding: 25px;
    }

}


@media (max-width: 500px) {

    .gallery {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

}




















/* =========================================================
   javascript ui states
========================================================= */

body.menu-open,
body.modal-open {
    overflow: hidden;
}

.navbar {
    transition:
        background .3s ease,
        box-shadow .3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 5px 25px rgba(0, 0, 0, .08);
}

.nav-menu a.active {
    font-weight: 700;
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity .7s ease,
        transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}