/* ==========================================================================
   TRUCK SOON LEE - PREMIUM TESLA-STYLE CSS
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --color-primary: #171a20;      /* Tesla Dark Black */
    --color-secondary: #393c41;    /* Tesla Muted Grey */
    --color-light-bg: #f4f4f4;     /* Tesla Light Grey */
    --color-white: #ffffff;
    --color-success: #3e8e41;
    --color-line-green: #06C755;   /* LINE Branded Green */
    --font-heading: 'Lexend', 'Noto Sans Thai', sans-serif;
    --font-body: 'Inter', 'Noto Sans Thai', sans-serif;
    --transition-tesla: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --header-height: 64px;
    --border-radius-pill: 9999px;
    --border-radius-card: 16px;
}

/* --- Global Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-primary);
    background-color: var(--color-white);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height);
}

body.home-layout {
    overflow-x: hidden;
    overflow-y: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-tesla);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
}

/* --- Layout & Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --- Tesla-style Navigation Header --- */
.nav-backdrop {
    position: absolute;
    background: rgba(0, 0, 0, 0.06);
    border-radius: var(--border-radius-pill);
    transition: var(--transition-tesla);
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    height: 32px;
}

body.header-dark .nav-backdrop {
    background: rgba(255, 255, 255, 0.12);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 100;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-tesla);
}

body.sub-layout .site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Scroll state is just for a slightly stronger shadow now */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.site-header .logo-img {
    filter: none !important;
}

.site-header .logo-text,
.site-header .nav-link,
.site-header .menu-toggle-btn {
    color: var(--color-primary) !important;
}

.site-header .nav-backdrop {
    background: rgba(0, 0, 0, 0.05) !important;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

@media (max-width: 1024px) {
    .header-container {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
}

.logo {
    z-index: 20;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--color-primary);
    transition: var(--transition-tesla);
}

body.header-dark .logo-text {
    color: var(--color-white);
}

.logo-img {
    height: 46px;
    width: auto;
    display: block;
    transition: var(--transition-tesla);
}
.logo-hino {
    height: 48px !important;
}
@media (max-width: 768px) {
    .logo-img {
        height: 38px;
    }
    .logo-hino {
        height: 38px !important;
    }
}

body.header-dark .logo-img {
    filter: brightness(0) invert(1);
}

.site-header.mega-menu-open .logo-img {
    filter: none !important;
}

/* Main Nav (Desktop) */
.main-nav {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav ul {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    color: var(--color-primary);
    display: inline-block;
    position: relative;
    z-index: 20;
    transition: color 0.3s;
}

.nav-link.active {
    color: #ce2026 !important;
    font-weight: 600 !important;
}

body.header-dark .nav-link {
    color: var(--color-white);
}

body.header-dark .nav-link.active {
    color: #ff4d52 !important;
}

/* Right Nav Actions (Desktop) */
.right-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-toggle-btn {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    color: var(--color-primary);
    cursor: pointer;
    z-index: 20;
    transition: color 0.3s;
    font-family: var(--font-body);
}

body.header-dark .menu-toggle-btn {
    color: var(--color-white);
}

/* --- Mobile Side Drawer Menu --- */
.side-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.side-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: -340px;
    width: 340px;
    height: 100vh;
    background: var(--color-white);
    z-index: 201;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: right 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
  }

@media (max-width: 480px) {
    .side-drawer {
        width: 100%;
        right: -100%;
    }
}

.side-drawer.active {
    right: 0;
}

/* Tesla-style Drawer Panels */
.drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(100%);
}

@media (max-width: 480px) {
    .drawer-panel {
        padding: 40px 20px;
    }
}

.drawer-panel.active {
    transform: translateX(0);
}

.drawer-panel.slide-left {
    transform: translateX(-100%);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    min-height: 40px;
}

.drawer-panel-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 17px;
    color: var(--color-primary);
    text-align: center;
    flex: 1;
}

.drawer-back-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--color-primary);
    padding: 8px;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-back-btn:hover {
    transform: translateX(-3px);
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-primary);
    padding: 8px;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close-btn:hover {
    transform: scale(1.1);
}

.drawer-content {
    overflow-y: auto;
    flex: 1;
    margin-right: -8px;
    padding-right: 8px;
}

/* Submenu trigger styling (chevron pointing right) */
.drawer-submenu-trigger {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 12px 16px !important;
}

.drawer-submenu-trigger span {
    font-size: 15px;
    font-weight: 500;
}

.icon-chevron-right {
    font-size: 12px;
    color: #a0aec0;
    transition: transform 0.25s ease;
}

.drawer-submenu-trigger:hover .icon-chevron-right {
    transform: translateX(3px);
    color: var(--color-primary);
}

/* Tesla Style Sub-menu Models List */
.drawer-models-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
}

.drawer-model-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.drawer-model-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.drawer-model-img {
    width: 115px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: transparent;
}

.drawer-model-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.drawer-model-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-model-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #ce2026;
    margin-bottom: -1px;
}

.drawer-model-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.drawer-model-links {
    display: flex;
    gap: 12px;
}

.drawer-model-links a {
    font-size: 13px !important;
    color: var(--color-secondary) !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
    padding: 0 !important;
    background: none !important;
}

.drawer-model-links a:hover {
    color: #ce2026 !important;
    background: none !important;
}

.drawer-model-item.active {
    background-color: rgba(206, 32, 38, 0.04) !important;
    border-left: 4px solid #ce2026 !important;
    padding-left: 14px !important;
}

.drawer-nav ul li a.active {
    background-color: rgba(206, 32, 38, 0.05) !important;
    color: #ce2026 !important;
    font-weight: 700 !important;
    border-left: 4px solid #ce2026 !important;
    padding-left: 12px !important;
}

.drawer-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    margin-bottom: 16px;
    margin-top: 8px;
    font-weight: 700;
    opacity: 0.6;
}

.drawer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-nav ul li a {
    display: block;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary);
    border-radius: 8px;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.drawer-nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    padding-left: 20px;
}

.drawer-divider {
    border: 0;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.mobile-menu-btn {
    display: none;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-primary);
    padding: 8px 18px;
    border-radius: var(--border-radius-pill);
    transition: background-color 0.2s ease, transform 0.1s ease;
    z-index: 20;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Hide navigation sections on mobile */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    .right-nav .nav-link {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}


/* --- Homepage Horizontal Slider --- */
.hero-slider-container {
    width: 100vw;
    height: 45vh; /* Proportional compact height on mobile to display landscape truck images perfectly */
    overflow: hidden;
    position: relative;
}

@media (min-width: 481px) and (max-width: 1024px) {
    .hero-slider-container {
        height: 58vh; /* Balanced height for iPads and tablets */
    }
}

@media (min-width: 1025px) {
    .hero-slider-container {
        height: 82vh; /* Premium cinematic look on desktop */
    }
}

.slider-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-slide {
    min-width: 100vw;
    flex-shrink: 0;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 24px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Background image overlay to darken slightly and read text clearly */
.slider-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.slide-full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* Per-slide content overlay - bottom-left positioned */
.slide-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 60px 60px 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    pointer-events: none;
}

.slide-model-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 3px 15px rgba(0,0,0,0.5);
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.2;
}

.slide-model-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin: 0 0 12px 0;
    max-width: 600px;
    line-height: 1.6;
}

.slide-cta-group {
    display: flex;
    gap: 14px;
    pointer-events: auto;
}

.slide-btn-primary {
    background-color: #ce2026 !important;
    border-color: #ce2026 !important;
    color: #fff !important;
    padding: 12px 32px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(206, 32, 38, 0.4);
    transition: all 0.3s ease;
    width: auto !important;
}

.slide-btn-primary:hover {
    background-color: #b51a20 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(206, 32, 38, 0.5);
}

.slide-btn-secondary {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #111 !important;
    padding: 12px 32px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    width: auto !important;
}

.slide-btn-secondary:hover {
    background: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    .slide-content-overlay {
        position: absolute !important;
        bottom: 24px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        border-radius: 20px !important;
        padding: 24px 20px !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        pointer-events: auto !important;
        z-index: 10 !important;
    }
    .slide-model-title {
        color: #171a20 !important;
        font-size: 24px !important;
        font-weight: 700 !important;
        text-shadow: none !important;
        margin-bottom: 6px !important;
        letter-spacing: 0.5px !important;
    }
    .slide-model-subtitle {
        color: #4a4e54 !important;
        font-size: 13px !important;
        text-shadow: none !important;
        margin-bottom: 20px !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
    }
    .slide-cta-group {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .slide-btn-primary,
    .slide-btn-secondary {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }
    .slide-btn-secondary {
        background: #f4f4f4 !important;
        border: 1px solid #eaeaea !important;
        color: #171a20 !important;
        box-shadow: none !important;
    }
    .slide-btn-secondary:hover {
        background: #e2e2e2 !important;
    }
}

.slide-content-hero {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 20px;
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-content-hero.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2px;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.theme-light-dots .section-title {
    color: var(--color-primary);
    text-shadow: none;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-white);
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

body.theme-light-dots .section-subtitle {
    color: var(--color-secondary);
    text-shadow: none;
}

.slide-test-drive-link,
.cta-group {
    pointer-events: auto;
    position: relative;
    z-index: 4;
}

.slide-test-drive-link {
    font-size: 14px;
    color: var(--color-white);
    text-decoration: underline;
    margin-bottom: 12px;
    font-weight: 500;
    transition: color 0.3s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

body.theme-light-dots .slide-test-drive-link {
    color: var(--color-primary);
    text-shadow: none;
}

.slide-test-drive-link:hover {
    color: #ce2026;
}

.cta-group {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* Premium Rounded Tesla Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    padding: 0 40px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    border: none;
    transition: var(--transition-tesla);
    width: 230px;
    white-space: nowrap;
}

.btn-primary {
    background-color: #ce2026; /* Hino Red */
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #b51a20;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: #ffffff;
    transform: scale(1.02);
}

/* Navigation Arrows (Tesla style rounded square cards) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 48px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition-tesla);
}

.slider-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.prev-arrow { left: 16px; }
.next-arrow { right: 16px; }

/* Dot Indicators */
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-tesla);
}

.dot-indicator.active {
    background-color: var(--color-white);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

body.theme-light-dots .dot-indicator {
    background-color: rgba(0, 0, 0, 0.3);
}

body.theme-light-dots .dot-indicator.active {
    background-color: var(--color-primary);
}

/* --- Bottom Cards Section (Tesla-style) --- */
.home-bottom-cards {
    background-color: var(--color-white);
    padding: 48px 12px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bottom-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

.bottom-card {
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.bottom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.bottom-card:hover {
    transform: scale(1.012);
}

.bottom-card.card-large {
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 40px;
}

.bottom-card-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    width: 100%;
}

.bottom-card-content h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.bottom-card-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

/* Row 2: Card Split Light (Charging & Shop style) */
.bottom-card.card-split-light {
    background-color: var(--color-light-bg);
    height: 200px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.bottom-card.card-split-light::before {
    display: none; /* No dark gradient on light cards */
}

.split-text-content {
    flex: 1.2;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}

.split-text-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-primary);
}

.split-text-content p {
    font-size: 14px;
    color: var(--color-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.split-image-container {
    flex: 0.8;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}

.split-image-container img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.bottom-card.card-split-light:hover .split-image-container img {
    transform: scale(1.05);
}

/* Card Button Group */
.card-btn-group {
    display: flex;
    gap: 16px;
}

.btn-sm {
    height: 36px;
    padding: 0 24px;
    font-size: 13px;
    width: auto;
    min-width: 140px;
}

/* Floating bottom schedule drive button */
.bottom-schedule-container {
    margin-top: 10px;
    text-align: center;
}

.btn-schedule-drive {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 32px;
    background-color: var(--color-light-bg);
    color: var(--color-primary);
    border-radius: var(--border-radius-pill);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-tesla);
    border: 1px solid rgba(0,0,0,0.08);
}

.btn-schedule-drive:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.02);
}

/* Home Page Minimalist Footer placed inside home bottom cards section */
.home-bottom-cards .home-fixed-footer {
    position: static;
    transform: none;
    margin-top: 48px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    z-index: 10;
}

.home-bottom-cards .home-fixed-footer .footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.home-bottom-cards .home-fixed-footer .footer-links a {
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 500;
    text-shadow: none;
}

.home-bottom-cards .home-fixed-footer .footer-links a:hover {
    color: var(--color-primary);
}

.home-bottom-cards .home-fixed-footer p {
    color: #999;
    font-size: 11px;
    text-shadow: none;
}

/* Responsive styles for Bottom Cards & CTA */
@media (max-width: 1024px) {
    .bottom-cards-container {
        grid-template-columns: 1fr;
    }
    .bottom-card.card-large {
        height: 380px;
        padding: 24px;
    }
    .bottom-card.card-split-light {
        height: auto !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 32px 24px !important;
        gap: 20px !important;
    }
    .bottom-card.card-split-light .split-text-content {
        flex: none !important;
        width: 100% !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
    }
    .bottom-card.card-split-light .split-text-content p {
        margin-bottom: 12px !important;
        text-align: center !important;
    }
    .bottom-card.card-split-light .split-text-content .btn {
        align-self: center !important;
        margin: 0 auto !important;
    }
    .bottom-card.card-split-light .split-image-container {
        flex: none !important;
        width: 100% !important;
        height: 160px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .bottom-card.card-split-light .split-image-container img {
        max-height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }
    .bottom-card-content h3 {
        font-size: 24px;
    }
    .bottom-card-content p {
        font-size: 14px;
    }
    .card-btn-group {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    .btn-sm {
        width: 100%;
    }
    .cta-group {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 290px;
    }
    .section-title {
        font-size: 32px;
    }
    .slider-arrow {
        width: 28px;
        height: 40px;
        font-size: 12px;
    }
    .prev-arrow { left: 8px; }
    .next-arrow { right: 8px; }
}


/* --- Subpages Layout (General) --- */
/* padding-top is now globally applied to body */

body.sub-layout .site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-title-section {
    padding: 80px 0 40px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--color-secondary);
    font-weight: 300;
}

/* --- Models Page --- */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    padding-bottom: 80px;
}

.model-card {
    background: var(--color-white);
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-tesla);
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.model-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.model-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.06));
    transition: var(--transition-tesla);
}

.model-card:hover .model-card-image img {
    transform: scale(1.05);
}

.model-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.model-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.model-card-desc {
    color: var(--color-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    height: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.model-card-price {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.model-card-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-secondary);
}

.model-card-footer {
    display: flex;
    gap: 12px;
}

.model-card-footer .btn {
    width: 100%;
    padding: 0;
    height: 36px;
    font-size: 13px;
}


/* --- Model Detail Page --- */
.detail-hero-clean {
    background: radial-gradient(circle at center, #fbfbfb 0%, #ececec 100%);
    padding: 80px 0 60px 0;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.detail-hero-clean-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #171a20;
    margin-bottom: 16px;
}

.detail-hero-subtitle {
    font-size: 16px;
    color: #5c5e62;
    max-width: 700px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    margin-top: 20px;
}

.detail-hero-image-wrap {
    width: 100%;
    max-width: 800px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Gallery Navigation Arrows */
.gallery-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.15); /* Light grey/translucent as requested */
    font-size: 40px;
    transition: all 0.2s ease;
    user-select: none;
    padding: 0;
}

.gallery-nav-arrow:hover {
    color: rgba(0, 0, 0, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-arrow:active {
    transform: translateY(-50%) scale(0.9);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-nav-arrow.hidden {
    display: none !important;
}

.detail-hero-specs-wrap {
    text-align: left;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.detail-hero-specs-wrap .specs-table {
    margin-bottom: 0;
}

.detail-hero-specs-wrap .specs-table td {
    padding: 10px 8px;
    font-size: 14px;
}

.hero-specs-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #171a20;
    border-left: 4px solid var(--color-primary);
    padding-left: 10px;
}

@media (max-width: 1024px) {
    .detail-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .detail-hero-image-wrap {
        height: auto;
        max-height: 320px;
    }
}

.detail-hero-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 1;
}

.detail-hero-img.swapping {
    opacity: 0;
    transform: scale(0.95);
}

.detail-hero-img:hover {
    transform: scale(1.03);
}

.detail-main-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    padding: 60px 0;
}

@media (max-width: 1024px) {
    .detail-main-layout {
        grid-template-columns: 1fr;
    }
}

.detail-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-secondary);
    margin-bottom: 40px;
}

/* Specs Table */
.detail-section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    border-left: 4px solid var(--color-primary);
    padding-left: 12px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 48px;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table td {
    padding: 16px 8px;
    font-size: 15px;
}

.specs-table td.label {
    font-weight: 600;
    width: 40%;
    color: var(--color-secondary);
}

/* Sub Models List */
.submodels-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.submodel-item {
    background: var(--color-light-bg);
    border-radius: var(--border-radius-card);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: var(--transition-tesla);
    cursor: pointer;
    border: 2px solid transparent;
}

.submodel-item:hover {
    background: #ebebeb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.submodel-item.active-submodel {
    background: var(--color-white);
    border-color: #ce2026; /* Hino Red */
    box-shadow: 0 8px 24px rgba(206, 32, 38, 0.15);
}

.submodel-info {
    flex: 1;
}

.submodel-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.submodel-desc {
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.submodel-price {
    font-size: 18px;
    font-weight: 700;
}

.submodel-specs-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.spec-badge {
    background: var(--color-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--color-secondary);
    border: 1px solid rgba(0,0,0,0.05);
}

.detail-sidebar {
    position: sticky;
    top: 100px;
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--border-radius-card);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    height: fit-content;
}

.sidebar-price-label {
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 4px;
}

.sidebar-price {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-actions .btn {
    width: 100%;
}

.sidebar-phone-link:hover {
    color: #b51a20 !important;
    text-decoration: underline !important;
}


/* --- Maintenance Page --- */
.maintenance-hero {
    height: 45vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 60px;
}

.maintenance-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 26, 32, 0.6);
    z-index: 1;
}

.maintenance-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.maintenance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .maintenance-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

.maintenance-card {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--border-radius-card);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition-tesla);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

@media (max-width: 768px) {
    .maintenance-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 24px 20px !important;
        border-radius: 16px !important;
    }
}

.maintenance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.07);
}

#warranty {
    scroll-margin-top: 110px;
}

.maintenance-icon {
    font-size: 22px;
    color: #ce2026;
    margin-bottom: 0;
    width: 50px;
    height: 50px;
    background: rgba(206, 32, 38, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .maintenance-icon {
        font-size: 20px !important;
        margin-bottom: 0 !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(206, 32, 38, 0.08) !important;
        color: #ce2026 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
}

.maintenance-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    flex: 1;
}

.maintenance-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.4;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .maintenance-title {
        font-size: 16px !important;
        margin-bottom: 0 !important;
        line-height: 1.4 !important;
        font-weight: 700 !important;
        text-align: left !important;
    }
}

.maintenance-desc {
    font-size: 14px;
    color: var(--color-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .maintenance-desc {
        font-size: 13.5px !important;
        line-height: 1.6 !important;
        color: var(--color-secondary) !important;
        text-align: left !important;
    }
}


/* --- Contact Us Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-list {
    margin-bottom: 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    font-size: 20px;
    color: var(--color-secondary);
    margin-top: 2px;
    width: 24px;
    text-align: center;
}

.contact-info-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 15px;
    color: var(--color-secondary);
    line-height: 1.5;
}

.line-connect-box {
    background: #f0faf3;
    border: 1px solid #d1f2dd;
    border-radius: var(--border-radius-card);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.line-connect-icon {
    font-size: 40px;
    color: var(--color-line-green);
}

.line-connect-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.line-connect-text p {
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 12px;
}

.btn-line {
    background-color: var(--color-line-green);
    color: var(--color-white);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 24px;
    border-radius: var(--border-radius-pill);
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
}

.btn-line:hover {
    background-color: #05b04b;
    transform: translateY(-2px);
}

.fb-connect-box {
    background: #eef5ff;
    border: 1px solid #d0e3ff;
    border-radius: var(--border-radius-card);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.fb-connect-icon {
    font-size: 40px;
    color: #1877f2;
}

.fb-connect-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.fb-connect-text p {
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 12px;
}

.btn-fb {
    background-color: #1877f2;
    color: var(--color-white);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 24px;
    border-radius: var(--border-radius-pill);
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
}

.btn-fb:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
}

/* Contact Form Panel */
.contact-form-panel {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--border-radius-card);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-body);
    transition: var(--transition-tesla);
    background-color: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(23, 26, 32, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-submit-btn {
    width: 100%;
    height: 44px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius-pill);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-tesla);
}

.form-submit-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.form-submit-btn:disabled {
    background-color: var(--color-secondary);
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

/* Feedback message styling */
.alert-feedback {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.alert-feedback.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-feedback.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Map Section */
.map-section {
    width: 100%;
    margin-bottom: -40px; /* Pulls footer clean contact spacing */
    position: relative;
    z-index: 5;
}

.map-container {
    height: 450px;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}


/* --- Global Footer --- */
.site-footer {
    background: #fafafa;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

body.home-layout .site-footer {
    display: none; /* Footer links are embedded inside the last section on homepage */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--color-secondary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    font-size: 13px;
    color: var(--color-secondary);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--color-primary);
}


/* --- Embedded Footer inside Homepage last section --- */
.home-embedded-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.home-embedded-footer .footer-links a {
    color: var(--color-white);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.home-embedded-footer p {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Traditional Dropdown Menu for Services */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu-list {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    margin: 0;
}

.nav-item-dropdown:hover .dropdown-menu-list {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu-list li {
    text-align: left;
    white-space: nowrap;
}

.dropdown-menu-list li a {
    font-size: 15px;
    font-weight: 500;
    color: #4a5568 !important; /* matches user's screenshot */
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 4px 8px;
    border-radius: 6px;
}

.dropdown-menu-list li a:hover {
    color: #ce2026 !important; /* Hino Red on hover */
    background-color: rgba(206, 32, 38, 0.04);
}

/* ==========================================================================
   MEGA MENU STYLING (TESLA-STYLE)
   ========================================================================== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, visibility 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 50px 0 60px;
    box-sizing: border-box;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-backdrop {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    z-index: 85;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mega-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Solid white background header when mega menu is active */
.site-header.mega-menu-open {
    background-color: var(--color-white) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.site-header.mega-menu-open .logo-text,
.site-header.mega-menu-open .nav-link,
.site-header.mega-menu-open .menu-toggle-btn {
    color: var(--color-primary) !important;
}

.site-header.mega-menu-open .nav-backdrop {
    background: rgba(0, 0, 0, 0.05) !important;
}

.mega-menu-panel {
    display: none;
    width: 100%;
}

.mega-menu-panel.active {
    display: block;
    animation: megaMenuFadeIn 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.mega-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    gap: 64px;
}

.mega-menu-left {
    flex: 3.3;
}

.mega-menu-right {
    flex: 0.7;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Models Dropdown Grid */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 40px;
}

.mega-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mega-menu-item > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.menu-item-subtitle {
    font-size: 17px !important; /* Force red text to be significantly larger than black text */
    font-weight: 700 !important;
    color: #ce2026 !important;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
    line-height: 1.4;
    text-align: center;
}

.menu-item-img {
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-item-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.menu-item-img img.scale-fc {
    transform: scale(1.04) translateY(-1px) !important; /* Slightly scale up (4%) to perfectly align with other models */
}

.menu-item-img img.flip-x {
    transform: scaleX(-1) !important; /* Flip the UM truck horizontally to face left like all other models */
}

.mega-menu-item:hover .menu-item-img {
    transform: translateY(-4px) scale(1.04);
}

.menu-item-title {
    font-size: 13px !important; /* Force black text to be smaller than red text */
    font-weight: 600 !important;
    color: var(--color-primary) !important;
    margin-bottom: 8px;
}

.menu-item-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.menu-item-links a {
    font-size: 12px;
    color: var(--color-secondary);
    text-decoration: underline;
    font-weight: 500;
}

.menu-item-links a:hover {
    color: #ce2026;
}

/* Service / Info cards layout */
.mega-menu-grid-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    height: 100%;
    align-content: center;
}

#panel-maintenance .mega-menu-grid-horizontal {
    grid-template-columns: 1fr 1fr 1fr;
}

.mega-menu-service-card {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.service-card-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer !important;
}

.service-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.mega-menu-service-card:hover {
    transform: none;
    box-shadow: none;
}

.mega-menu-service-card:hover .menu-item-img {
    transform: translateY(-4px) scale(1.04);
}

.mega-menu-service-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 4px;
}

.mega-menu-service-card p {
    font-size: 13px;
    color: var(--color-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

.mega-menu-service-card a {
    font-size: 13px;
    color: var(--color-secondary);
    text-decoration: underline;
    font-weight: 500;
    display: inline-block;
    margin-top: 4px;
    transition: color 0.3s;
}

.mega-menu-service-card a:hover {
    color: #ce2026;
}

/* Quick List */
.mega-menu-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mega-menu-list li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary);
    transition: var(--transition-tesla);
    display: inline-block;
}

.mega-menu-list li a:hover {
    color: #ce2026;
    transform: translateX(4px);
}

/* Enforce custom cursor: pointer on interactive and hover items */
.site-header .nav-link,
.site-header .menu-toggle-btn,
.mega-menu-item,
.mega-menu-item a,
.mega-menu-list li a,
.mega-menu-service-card,
.mega-menu-service-card a,
.model-card,
.model-card a,
.submodel-item,
.dot-indicator,
.slider-arrow,
.btn,
.btn-schedule-drive,
.btn-line,
.split-text-content a,
.drawer-nav ul li a,
.drawer-close-btn {
    cursor: pointer !important;
}


/* Floating Contact Stack (Vertical) */
.floating-contact-stack {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    -webkit-tap-highlight-color: transparent;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    outline: none !important;
}
.floating-btn:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.btn-phone {
    background: #0066b2; /* Premium Blue for Call */
    color: #ffffff !important;
    font-size: 26px;
}

.btn-line {
    background: #06c755; /* LINE Green */
}
.btn-line svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .floating-contact-stack {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    .floating-btn {
        width: 52px;
        height: 52px;
        border: 2px solid #ffffff;
    }
    .btn-phone {
        font-size: 22px;
    }
}


/* Auto remove white background for product images */
.remove-bg { background-color: transparent; }

/* Hero Slide Truck Overlay Styles */
.slide-truck-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end; /* Align to the right side of the screen */
    align-items: flex-end; /* Align to the bottom of the screen */
    padding-bottom: 25px; /* Padding from bottom */
    padding-right: 12%; /* Padding from right */
    z-index: 2;
    pointer-events: none; /* Make sure click goes through to the slide link */
}

.slide-truck-image {
    height: 55%; /* Perfect size on desktop */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4)); /* Adds a premium soft shadow under the truck */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(20px); /* Start slightly lower for entering animation */
    opacity: 0;
    animation: slideUpTruck 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.3s;
}


/* Animations for premium feel */
@keyframes slideUpTruck {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .slide-truck-image {
        height: 48%;
        padding-right: 5%;
    }
}

@media (max-width: 768px) {
    .slide-truck-container {
        justify-content: center; /* Center the truck on mobile */
        padding-right: 0;
        padding-bottom: 45px;
    }
    .slide-truck-image {
        height: 35%; /* Smaller on mobile to fit the screen */
    }
}

/* --- Warranty Page Redesign --- */
.warranty-badge-card {
    background: linear-gradient(135deg, #ce2026 0%, #9c1519 100%);
    border-radius: 20px;
    padding: 60px 48px;
    color: var(--color-white);
    margin-bottom: 60px;
    box-shadow: 0 20px 45px rgba(206, 32, 38, 0.18);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 48px;
}

.warranty-badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 80%);
    pointer-events: none;
}

.warranty-badge-num-wrap {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    padding-right: 48px;
    min-width: 180px;
    flex-shrink: 0;
}

.warranty-badge-num {
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--color-white);
    text-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.warranty-badge-desc h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-white);
    line-height: 1.3;
}

.warranty-badge-desc p {
    font-size: 15.5px;
    line-height: 1.8;
    opacity: 0.95;
    margin: 0;
}

.warranty-section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.warranty-section-subtitle {
    color: var(--color-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
    font-size: 15px;
    line-height: 1.6;
}

/* Component Grid */
.warranty-components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.warranty-component-card {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 36px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.warranty-component-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.warranty-component-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(206, 32, 38, 0.15);
}

.warranty-component-card:hover::before {
    background: #ce2026;
}

.warranty-component-icon-box {
    width: 72px;
    height: 72px;
    background-color: rgba(206, 32, 38, 0.05);
    color: #ce2026;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px auto;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.warranty-component-card:hover .warranty-component-icon-box {
    background-color: #ce2026;
    color: var(--color-white);
    transform: scale(1.1);
}

.warranty-component-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--color-primary);
    transition: color 0.3s;
}

.warranty-component-card:hover h3 {
    color: #ce2026;
}

.warranty-component-card p {
    color: var(--color-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Conditions Section */
.warranty-conditions-card {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 48px;
    margin-bottom: 80px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}

.warranty-conditions-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--color-primary);
    border-left: 5px solid #ce2026;
    padding-left: 16px;
    line-height: 1.2;
}

.warranty-conditions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .warranty-conditions-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .warranty-badge-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
        gap: 24px;
    }
    .warranty-badge-num-wrap {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-right: 0;
        padding-bottom: 24px;
        width: 100%;
        min-width: unset;
    }
}

.warranty-condition-item {
    position: relative;
    padding-left: 48px;
}

.warranty-condition-num {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    background-color: rgba(206, 32, 38, 0.08);
    color: #ce2026;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.warranty-condition-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
    line-height: 1.4;
}

.warranty-condition-item p {
    color: var(--color-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Brochure Download Button styling */
.brochure-download-btn:hover {
    background-color: #fdfdfd !important;
    border-color: #ce2026 !important;
    color: #ce2026 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(206, 32, 38, 0.08) !important;
}

