/* Custom styles and overrides */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* Swiper Pagination Customization */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #8A8A8A;
    opacity: 0.5;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 5px;
    background: #D4AF37;
    opacity: 1;
}

/* Fix for swipe on mobile */
.swiper {
    width: 100%;
    padding-bottom: 50px !important; /* Space for pagination */
    padding-left: 0;
    padding-right: 0;
}

.swiper-slide {
    height: auto; /* Ensure cards have equal height */
    transition: transform 0.3s;
}

/* Navigation Arrows Customization */
.swiper-button-next,
.swiper-button-prev {
    color: #D4AF37 !important; /* Brand Gold */
    background: rgba(255, 255, 255, 0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b5952f;
}

/* Animation utilities */
.hover-scale {
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}

.lots-carousel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow-x: clip;
}

.lot-card {
    width: 100%;
}

.mobile-quick-cta {
    display: none;
}

.lot-ribbon {
    position: absolute;
    top: 32px;
    right: -56px;
    width: 180px;
    padding: 8px 0;
    text-align: center;
    background: linear-gradient(135deg, #D4AF37, #b78f1f);
    color: white;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.25;
    transform: rotate(34deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

@media (min-width: 768px) {
    .lots-carousel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .lot-ribbon {
        top: 28px;
        right: -64px;
        width: 220px;
        font-size: 8px;
    }
}

.lead-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 100;
}

body.lead-modal-open .lead-modal {
    display: flex;
}

body.lead-modal-open {
    overflow: hidden;
}

.lead-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 19, 19, 0.56);
    backdrop-filter: blur(4px);
}

.lead-modal__dialog {
    position: relative;
    width: min(100%, 460px);
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
}

.lead-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #2C2C2C;
    font-size: 22px;
    line-height: 1;
}

.lead-modal__note {
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.lead-selected-lot {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(212, 175, 55, 0.1);
    color: #8a6a12;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 767px) {
    #catalog {
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 28px;
    }

    #catalog h1 {
        font-size: 31px !important;
        line-height: 1.12;
        letter-spacing: -0.01em;
        margin-top: 8px;
        margin-bottom: 10px;
    }

    #catalog .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    #catalog .text-brand-dark.text-lg {
        font-size: 17px !important;
        line-height: 1.35;
    }

    #catalog .text-brand-grey.text-base {
        font-size: 15px !important;
        line-height: 1.45;
        margin-top: 10px;
    }

    .lots-carousel {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .lot-card {
        border-radius: 18px;
    }

    .lot-card img {
        height: 190px !important;
    }

    .lot-card h2 {
        font-size: 27px !important;
        line-height: 1.05;
    }

    .lot-card p {
        font-size: 14px;
        line-height: 1.45;
    }

    .lot-card button {
        min-height: 46px;
        font-size: 13px !important;
        border-radius: 12px;
    }

    .consultation-cta {
        margin-top: 20px !important;
    }

    .consultation-cta button {
        width: 100%;
        min-height: 48px;
    }

    #founder {
        padding-top: 34px;
        padding-bottom: 36px;
    }

    #founder .grid.grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #footer {
        padding-bottom: 100px;
    }

    .mobile-quick-cta {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
        z-index: 70;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 50px;
        border-radius: 14px;
        background: linear-gradient(135deg, #D4AF37, #b48a18);
        color: #fff;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0.01em;
        box-shadow: 0 10px 30px rgba(39, 33, 10, 0.28);
    }
}
