/* SUNCART® Indonesia - Official Premium Commercial EV Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --suncart-orange: #ff5000;
    --suncart-orange-hover: #e04600;
    --suncart-navy: #17315f;
    --suncart-deep: #102344;
    --suncart-dark: #0d1e3a;
    --suncart-charcoal: #102344;
    --suncart-grey-bg: #f6f6f7;
    --suncart-card-bg: #f5f5f7;
    --suncart-border: #e5e5e7;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    overscroll-behavior-x: none;
}

body {
    font-family: var(--font-sans);
    color: #111111;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    overscroll-behavior-x: none;
}

img, svg, video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

input, select, textarea, button {
    max-width: 100%;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #102344;
}
::-webkit-scrollbar-thumb {
    background: #17315f;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--suncart-orange);
}

/* Suncart Signature Buttons */
.suncart-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.suncart-btn-outline:hover {
    background-color: var(--suncart-orange);
    border-color: var(--suncart-orange);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 80, 0, 0.4);
}

.suncart-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--suncart-orange);
    border: 1.5px solid var(--suncart-orange);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.suncart-btn-primary:hover {
    background-color: var(--suncart-orange-hover);
    border-color: var(--suncart-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 80, 0, 0.5);
}

.suncart-btn-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--suncart-orange);
    color: var(--suncart-orange);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.65rem 1.25rem;
    border-radius: 9999px;
    background: transparent;
    transition: all 0.25s ease;
}
.suncart-btn-order:hover {
    background-color: var(--suncart-orange);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px -3px rgba(255, 80, 0, 0.35);
}

/* Suncart Product Cards */
.suncart-product-box {
    background-color: var(--suncart-card-bg);
    border-radius: 1.25rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}
.suncart-product-box:hover {
    border-color: var(--suncart-border);
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.07);
}

/* Suncart Category Tab Active State */
.suncart-tab {
    position: relative;
    padding-bottom: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}
.suncart-tab:hover {
    color: #000000;
}
.suncart-tab.active {
    color: #000000;
    font-weight: 800;
}
.suncart-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--suncart-orange);
    border-radius: 9999px;
}

/* Swatch Color Circles */
.suncart-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.suncart-color-dot:hover, .suncart-color-dot.active {
    transform: scale(1.3);
    box-shadow: 0 0 0 1.5px var(--suncart-orange);
}

/* Hero Slide Transition Effects */
.hero-slide {
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-slide.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Full Viewport Mobile Hero Image */
@media (max-width: 639px) {
    #home {
        min-height: calc(100vh - 64px);
        min-height: calc(100dvh - 64px);
        width: 100%;
    }
    #hero-slider {
        height: calc(100vh - 64px) !important;
        height: calc(100dvh - 64px) !important;
        min-height: 520px !important;
        aspect-ratio: auto !important;
    }
    #hero-slider .hero-slide,
    #hero-slider .hero-slide a,
    #hero-slider .hero-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* Suncart Hero Number Slide Indicator */
.suncart-slide-num {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.suncart-slide-num.active {
    color: #ffffff;
    background-color: rgba(255, 80, 0, 0.9);
}

/* Floating Utility Widget (Suncart Signature) */
.suncart-floating-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 5.5rem;
    z-index: 50;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
    padding: 0.5rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #eeeeee;
}
.suncart-widget-item {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444444;
    transition: all 0.25s ease;
    position: relative;
}
.suncart-widget-item:hover {
    background-color: var(--suncart-orange);
    color: #ffffff;
    transform: scale(1.1);
}

/* Interactive Vehicle Hotspot Pins */
.hotspot-pin {
    animation: suncart-hotspot-pulse 2s infinite;
}
@keyframes suncart-hotspot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 80, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(255, 80, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 80, 0, 0);
    }
}
.hotspot-card.active {
    border-color: var(--suncart-orange) !important;
    box-shadow: 0 10px 25px -5px rgba(255, 80, 0, 0.15) !important;
    background-color: #ffffff !important;
}

/* Toast Message */
.toast-msg {
    animation: slide-up-toast 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slide-up-toast {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide scrollbar helper & horizontal slider track */
.no-scrollbar::-webkit-scrollbar,
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.no-scrollbar,
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Product Slider Wrapper & Track */
.product-slider-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.product-slider-track {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    cursor: grab;
    width: 100%;
    max-width: 100%;
}
/* Dynamic Header: Transparent at Top -> Solid White on Scroll */
header#main-header {
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                backdrop-filter 0.3s ease;
}

/* State 1: Transparent Header (Top of Page) */
header#main-header.is-transparent {
    background: linear-gradient(180deg, rgba(16, 35, 68, 0.75) 0%, rgba(16, 35, 68, 0.25) 60%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}
header#main-header.is-transparent .header-top-bar {
    background: rgba(16, 35, 68, 0.55);
    border-color: rgba(255, 255, 255, 0.15);
}
header#main-header.is-transparent .nav-link-item {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
header#main-header.is-transparent .nav-link-item:hover {
    color: var(--suncart-orange) !important;
}
header#main-header.is-transparent .nav-link-chevron {
    color: rgba(255, 255, 255, 0.75) !important;
}
header#main-header.is-transparent .header-btn-search,
header#main-header.is-transparent .header-btn-mobile {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
}
header#main-header.is-transparent .header-btn-search:hover,
header#main-header.is-transparent .header-btn-mobile:hover {
    background-color: rgba(255, 255, 255, 0.35) !important;
}
header#main-header.is-transparent .header-btn-testdrive {
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
}
header#main-header.is-transparent .header-btn-testdrive:hover {
    background-color: var(--suncart-orange) !important;
    border-color: var(--suncart-orange) !important;
    color: #ffffff !important;
}
header#main-header.is-transparent .header-btn-cart {
    background-color: rgba(255, 255, 255, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px);
}

/* State 2: Scrolled Header (Solid White / Glassmorphic) */
header#main-header.is-scrolled,
header#main-header.menu-open {
    background-color: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid #e5e5e7 !important;
    box-shadow: 0 4px 25px -4px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(14px);
}
header#main-header.is-scrolled .header-top-bar {
    background: #17315f;
    border-color: rgba(255, 255, 255, 0.1);
}
header#main-header.is-scrolled .nav-link-item,
header#main-header.menu-open .nav-link-item {
    color: #111111 !important;
    text-shadow: none;
}
header#main-header.is-scrolled .nav-link-item:hover,
header#main-header.menu-open .nav-link-item:hover {
    color: var(--suncart-orange) !important;
}
header#main-header.is-scrolled .nav-link-chevron,
header#main-header.menu-open .nav-link-chevron {
    color: #94a3b8 !important;
}
header#main-header.is-scrolled .header-btn-search,
header#main-header.is-scrolled .header-btn-mobile,
header#main-header.menu-open .header-btn-search,
header#main-header.menu-open .header-btn-mobile {
    background-color: #f6f6f7 !important;
    color: #111111 !important;
    border: 1px solid transparent !important;
    backdrop-filter: none;
}
header#main-header.is-scrolled .header-btn-search:hover,
header#main-header.is-scrolled .header-btn-mobile:hover {
    background-color: #e2e8f0 !important;
}
header#main-header.is-scrolled .header-btn-testdrive,
header#main-header.menu-open .header-btn-testdrive {
    border-color: var(--suncart-orange) !important;
    color: var(--suncart-orange) !important;
    background-color: transparent !important;
    backdrop-filter: none;
}
header#main-header.is-scrolled .header-btn-testdrive:hover {
    background-color: var(--suncart-orange) !important;
    color: #ffffff !important;
}
header#main-header.is-scrolled .header-btn-cart,
header#main-header.menu-open .header-btn-cart {
    background-color: #17315f !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    backdrop-filter: none;
}

/* Header Dropdown & Mega Menu Styling - Strictly Scoped to Desktop */
@media (max-width: 1023px) {
    .nav-item-dropdown,
    .mega-menu-container,
    .nav-dropdown-menu {
        max-width: 100vw;
    }
    .mega-menu-container,
    .nav-dropdown-menu {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (min-width: 1024px) {
    .nav-item-dropdown {
        position: static;
    }
    .nav-item-dropdown.relative-dropdown {
        position: relative;
    }

    /* Standard Dropdown Menu (Scooter, Spareparts, Service) */
    .nav-dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 60;
        background: #ffffff;
        box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
        border-radius: 1rem;
        animation: dropdownFade 0.2s ease forwards;
        pointer-events: auto;
    }

    .relative-dropdown:hover > .nav-dropdown-menu,
    .relative-dropdown:focus-within > .nav-dropdown-menu {
        display: block !important;
    }

    /* Full Width Mega Menu Dropdown (Golf Carts, Solutions) */
    .mega-menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin-left: 0;
        z-index: 60;
        background: #ffffff;
        border-top: 1px solid #f1f1f4;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.16), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        animation: dropdownFade 0.22s ease forwards;
        pointer-events: auto;
    }

    .nav-item-dropdown:hover > .mega-menu-container,
    .nav-item-dropdown:focus-within > .mega-menu-container {
        display: block !important;
    }

    .nav-item-dropdown {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .nav-link-item {
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .nav-link-chevron {
        margin-left: 0.25rem;
        flex-shrink: 0;
    }
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Dropdown Item Hover */
.nav-menu-card {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0.75rem;
    border: 1px solid transparent;
}
.nav-menu-card:hover {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.06);
}
.nav-menu-card:hover .nav-card-title {
    color: var(--suncart-orange);
}
.nav-menu-card:hover .nav-card-icon {
    background-color: #fff0e8;
    color: var(--suncart-orange);
    border-color: #ffd8c7;
}

.nav-simple-item {
    transition: all 0.18s ease;
    border-radius: 0.625rem;
}
.nav-simple-item:hover {
    background-color: #f6f6f7;
    color: var(--suncart-orange);
    padding-left: 0.875rem;
}

/* Mobile Accordion Submenu - Clean Collapse & Expansion */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
}
.mobile-submenu.open {
    max-height: 850px;
    padding-top: 0.25rem !important;
    padding-bottom: 0.5rem !important;
    transition: max-height 0.35s ease-in, padding 0.25s ease;
}

/* SUNCART-AI™ Floating & Glowing Keyframes */
@keyframes aiFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

@keyframes aiPulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@keyframes aiGlowText {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 80, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.3);
    }
    50% {
        text-shadow: 0 0 18px rgba(255, 80, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.6);
    }
}

.ai-avatar-float {
    animation: aiFloat 3.5s ease-in-out infinite;
}

.ai-pulse-ring {
    animation: aiPulseRing 3s ease-in-out infinite;
}

.ai-glow-text {
    animation: aiGlowText 2.5s ease-in-out infinite;
}

/* Interactive Chair Variant Selector */
.chair-option-btn {
    border-color: #e2e8f0;
    background-color: #f8fafc;
    color: #334155;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chair-option-btn:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
    transform: translateY(-1px);
}
.chair-option-btn.active-chair-btn {
    border-color: #ff5000 !important;
    background-color: #fff7ed !important;
    color: #111111 !important;
    box-shadow: 0 4px 14px -2px rgba(255, 80, 0, 0.2);
}

/* Visual Advantage Cards Hover Effects */
.visual-adv-card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.visual-adv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}


/* ======================================================== */
/* ULTRA-CLEAN SCROLL FADE-IN ANIMATION SYSTEM (AOS COMPATIBLE) */
/* ======================================================== */
/* Enhanced clean cards */
.clean-card {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.clean-card:hover {
    border-color: rgba(255, 80, 0, 0.35);
    box-shadow: 0 12px 36px rgba(16, 35, 68, 0.08);
    transform: translateY(-3px);
}


/* ======================================================== */
/* ANIMATED MOVING ROUNDED ORANGE BORDER BEAM               */
/* Tracing along the rounded corners and edges of tiles     */
/* ======================================================== */
.orange-border-beam {
    position: relative;
    border-radius: 1.5rem; /* rounded-3xl */
    overflow: hidden;
    padding: 2px;
    background: #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.orange-border-beam:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(255, 80, 0, 0.15), 0 4px 12px rgba(16, 35, 68, 0.06);
}

.orange-border-beam::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 65deg,
        #ff5000 95deg,
        #ff8533 115deg,
        rgba(255, 80, 0, 0.4) 130deg,
        transparent 150deg,
        transparent 360deg
    );
    animation: rotate-border-beam 4s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes rotate-border-beam {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.orange-border-beam > .beam-inner {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: calc(1.5rem - 2px);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* ======================================================== */
/* MOBILE WEB OPTIMIZATION & READABLE TYPOGRAPHY            */
/* ======================================================== */
@media (max-width: 639px) {
    /* Prevent any horizontal page overflow on small screens */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Comfortable base reading font on smartphones */
    body {
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
    }

    /* Balanced headings on mobile screens */
    h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: clamp(1.35rem, 5.5vw, 1.85rem) !important;
        line-height: 1.25 !important;
    }

    h3 {
        font-size: clamp(1.1rem, 4.5vw, 1.35rem) !important;
        line-height: 1.3 !important;
    }

    /* Paragraph readability: optimal line-height for mobile eyes */
    p {
        line-height: 1.62 !important;
    }

    /* Minimum touch target size for buttons & mobile CTAs */
    a, button {
        min-height: 44px;
    }

    /* Ensure card padding and border beams fit neatly on mobile */
    .orange-border-beam {
        width: 100% !important;
        max-width: 100% !important;
    }

    .orange-border-beam > .beam-inner {
        width: 100% !important;
    }

    /* Single column cards have comfortable spacing */
    .stat-card {
        padding: 1.5rem !important;
    }
}
