/* home-ultra.css - Premium Corporate Homepage Design */
/* Updated: 2026-01-19 - Premium Royal Blue Theme */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* PREMIUM BLUE PALETTE - Royal & Corporate */
    --premium-blue: #0056b3;
    /* Royal Blue - Official Corporate Color */
    --premium-blue-light: #3378c2;
    /* Lighter shade */
    --premium-blue-dark: #003d80;
    /* Darker shade */

    --premium-accent: #E63946;
    /* Secondary Accent (Red) */

    --premium-black: #0D0D0D;
    --premium-dark: #121212;
    --premium-gray: #1A1A1A;
    --premium-card: #1E1E1E;
    --premium-text: #F5F5F5;
    --premium-text-muted: #9A9A9A;
    --premium-border: rgba(255, 255, 255, 0.08);

    /* Theme Mappings */
    --theme-color: var(--premium-blue);
    --theme-color-light: var(--premium-blue-light);
    --theme-color-dark: var(--premium-blue-dark);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: var(--premium-border);
}

body.home-page {
    background-color: var(--premium-black);
    color: var(--premium-text);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- TRUST BAR --- */
.trust-bar {
    background: linear-gradient(135deg, var(--premium-dark) 0%, var(--premium-gray) 100%);
    border-bottom: 1px solid var(--premium-border);
    padding: 25px 0;
    position: relative;
    overflow: hidden;
}

.trust-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--theme-color), transparent);
    opacity: 0.5;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--premium-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.trust-item:hover {
    color: var(--premium-text);
}

.trust-item i {
    font-size: 1.4rem;
    color: var(--theme-color);
    transition: transform 0.3s ease;
}

.trust-item:hover i {
    transform: scale(1.1);
}

.trust-divider {
    width: 1px;
    height: 30px;
    background: var(--premium-border);
}

/* --- IMMERSIVE HERO SLIDER --- */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
    overflow: hidden;
    background: #000;
}

.splide__slide {
    position: relative;
    width: 100%;
    height: auto;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 10;
    text-align: left;
    pointer-events: none;
    padding: 60px;
}

.slide-text-box {
    max-width: 450px;
    padding: 30px;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.slide-tag {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--theme-color-light);
    /* Lighter for visibility on dark */
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 86, 179, 0.15);
    /* Blue tint */
    border: 1px solid rgba(0, 86, 179, 0.3);
    border-radius: 50px;
    opacity: 0;
    transform: translateY(20px);
}

.slide-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--premium-text);
    text-shadow: none;
    opacity: 0;
    transform: translateY(20px);
    text-transform: none;
}

.is-active .slide-tag {
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.is-active .slide-title {
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.is-active .btn-premium {
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

.slide-media {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}

.slide-media img,
.slide-media video {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: brightness(0.85);
    display: block;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(13, 13, 13, 0.1) 0%,
            rgba(13, 13, 13, 0.0) 40%,
            rgba(13, 13, 13, 0.3) 80%,
            rgba(13, 13, 13, 0.7) 100%);
    z-index: 2;
}

/* --- PREMIUM BUTTONS --- */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    opacity: 1;
    transform: none;
}

.btn-premium-primary {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-dark) 100%);
    color: #fff;
    /* White text on blue */
    box-shadow: 0 4px 20px rgba(0, 86, 179, 0.3);
}

.btn-premium-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 86, 179, 0.5);
    background: linear-gradient(135deg, var(--theme-color-light) 0%, var(--theme-color) 100%);
    color: #fff;
}

.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
    font-weight: 600;
}

.btn-premium-outline:hover {
    background: var(--theme-color);
    color: #fff;
    transform: translateY(-3px);
}

/* --- SECTION STYLING --- */
.section-showcase {
    padding: 60px 0 20px 0;
    background: var(--premium-black);
}

.section-label {
    margin-bottom: 50px;
}

.section-label span {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--theme-color);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-label h2 {
    font-size: 2.5rem;
    font-weight: 800;
    /* Extra Bold for impact */
    color: var(--premium-text);
    margin: 0;
    text-transform: uppercase;
}

/* --- DEALER LOCATOR --- */
.dealer-locator-section {
    padding: 40px 0 10px 0;
    background: linear-gradient(180deg, var(--premium-black) 0%, var(--premium-dark) 50%, var(--premium-gray) 100%);
    position: relative;
}

.dealer-locator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--premium-border), transparent);
}

.locator-info-box h2 {
    color: var(--premium-text);
}

/* Locator Results - Improved Readability */
.dealer-mini-card {
    background: rgba(255, 255, 255, 0.05);
    /* Slightly lighter background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.dealer-mini-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.dealer-mini-card .text-white-50 {
    color: rgba(255, 255, 255, 0.85) !important;
    /* Make text brighter/readable */
}

.dealer-mini-card h4 {
    color: #fff !important;
}

/* Radio Button Customization */
input[type="radio"] {
    accent-color: var(--theme-color);
    /* Changed to theme-color for consistency */
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.locator-card {
    background: var(--premium-card);
    border: 1px solid var(--premium-border);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 35px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.locator-card:hover {
    border-color: var(--theme-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.locator-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 86, 179, 0.1);
    color: var(--theme-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

#nearest-dealers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dealer-mini-card {
    background: var(--premium-card);
    border-radius: 16px;
    padding: 24px;
    border-left: 3px solid var(--theme-color);
    transition: all 0.3s ease;
}

.dealer-mini-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(8px);
}

/* --- MOTO SHOWCASE CARDS --- */
.moto-card-premium {
    background: var(--premium-card);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--premium-border);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.moto-card-premium:hover {
    border-color: rgba(0, 86, 179, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(-10px);
}

.moto-card-img {
    height: 200px;
    padding: 25px;
    background: linear-gradient(180deg, var(--premium-gray) 0%, var(--premium-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.moto-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--premium-card), transparent);
    pointer-events: none;
}

.product-card figure {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 12px;
    /* Added radius */
    background: #fff;
    /* White background for product images */
    padding: 20px;
    /* Spacing around image */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.product-card img {
    height: 220px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    /* Changed from cover to contain to fit in white box */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover img {
    transform: scale(1.08);
    /* Reduced scaling slightly */
}

.moto-card-img img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

.moto-card-premium:hover .moto-card-img img {
    transform: scale(1.08);
}

.moto-card-body {
    padding: 25px;
}

.moto-cat-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--theme-color);
    /* Blue badge */
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

.moto-title-link {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--premium-text);
    text-decoration: none;
    margin-bottom: 12px;
    display: block;
    transition: color 0.3s ease;
}

.moto-title-link:hover {
    color: var(--theme-color);
}

.moto-price-tag {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--theme-color-light);
    /* Lighter blue for price visibility */
}

/* --- CATEGORY SECTION --- */
.category-strip {
    padding: 50px 0;
    background: var(--premium-black);
}

.cat-tile {
    height: 350px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--premium-border);
    transition: all 0.5s ease;
}

.cat-tile:hover {
    border-color: rgba(0, 86, 179, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cat-tile .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(0.6);
}

.cat-tile:hover .bg {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.cat-tile .slide-content {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
}

.cat-tile .slide-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--premium-text);
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.cat-tile .slide-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--theme-color);
    border-radius: 3px;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SPLIDE CUSTOMIZATION --- */
.splide__pagination__page {
    background: rgba(255, 255, 255, 0.3);
    width: 10px;
    height: 10px;
}

.splide__pagination__page.is-active {
    background: var(--theme-color);
    transform: scale(1.3);
}

.splide__arrow {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border: 1px solid var(--premium-border);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.splide__arrow:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    opacity: 1;
}

.splide__arrow svg {
    fill: var(--premium-text);
}

.splide__arrow:hover svg {
    fill: #fff;
}

/* --- UTILITY CLASSES --- */
.text-theme-color {
    color: var(--theme-color) !important;
}

.text-justify {
    text-align: justify;
}

.letter-spacing-5 {
    letter-spacing: 0.15em;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .trust-items {
        gap: 25px;
    }

    .trust-divider {
        display: none;
    }

    .section-showcase {
        padding: 70px 0;
    }

    .slide-content {
        padding: 40px;
    }

    .slide-text-box {
        max-width: 380px;
        padding: 24px;
    }

    .slide-tag {
        display: none !important;
    }

    .moto-slogan {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .slide-content {
        padding: 20px;
        align-items: flex-end;
        justify-content: center;
    }

    .slide-text-box {
        max-width: 100%;
        text-align: center;
    }

    .slide-title {
        font-size: 1.3rem;
    }

    .moto-slogan {
        display: none !important;
    }

    .hero-slider-wrapper {
        min-height: 200px !important;
    }

    .trust-bar {
        padding: 15px 0 !important;
    }

    .trust-item {
        font-size: 0.8rem;
    }

    .trust-item i {
        font-size: 1.2rem;
    }

    .section-label h2 {
        font-size: 1.8rem;
    }

    .cat-tile {
        height: 280px;
    }

    .moto-card-img {
        height: 180px;
    }

    .category-strip,
    .section-showcase {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .trust-items {
        flex-direction: column;
        gap: 15px;
    }

    .btn-premium {
        padding: 12px 24px;
        font-size: 0.8rem;
    }

    .slide-content {
        padding: 15px;
    }

    .slide-text-box {
        padding: 20px;
    }
}

/* --- COMPACT DEALER BAR --- */
.dealer-compact-bar {
    background: linear-gradient(135deg, var(--premium-gray) 0%, var(--premium-dark) 100%);
    padding: 25px 0;
    border-top: 1px solid var(--premium-border);
    border-bottom: 1px solid var(--premium-border);
}

.dealer-compact-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.dealer-compact-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dealer-compact-info i {
    font-size: 1.8rem;
    color: var(--theme-color);
}

.dealer-compact-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--premium-text);
    font-weight: 600;
}

.dealer-compact-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--premium-text-muted);
}

.dealer-compact-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dealer-compact-buttons .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dealer-compact-buttons .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--premium-text-muted);
}

.dealer-compact-buttons .btn-outline-light:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

/* --- DEALER MODAL --- */
.dealer-modal .modal-content {
    background: var(--premium-dark);
    border: 1px solid var(--premium-border);
    border-radius: 20px;
}

.dealer-modal .modal-header {
    border-bottom: 1px solid var(--premium-border);
    padding: 20px 30px;
}

.dealer-modal .modal-title {
    color: var(--premium-text);
    font-weight: 700;
}

.dealer-modal .btn-close {
    filter: invert(1);
}

.dealer-modal .modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.dealer-modal .btn-group .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.dealer-modal .btn-check:checked+.btn-outline-light {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

@media (max-width: 768px) {
    .dealer-compact-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .dealer-compact-info {
        flex-direction: column;
    }

    .dealer-compact-buttons {
        width: 100%;
        justify-content: center;
    }
}