/* ==========================================
   ALL WHEEL DRIVE MOTORS - HERO SLIDER (FULL WIDTH VERSION)
   Adapted for banner-style layout matching image height
   ========================================== */

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-color: #186d4e;
    --secondary-color: #0066cc;
    --accent-color: #186d4e;
    --dark-blue: #001f3f;
    --light-blue: #4a90e2;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #888888;
    --dark-gray: #333333;
    --black: #000000;
    
    /* Gradients */
    --gradient-overlay: linear-gradient(135deg, rgba(0, 61, 130, 0.85) 0%, rgba(0, 102, 204, 0.7) 100%);
    --gradient-dark: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.6s ease;
    --transition-slow: 1s ease;
    
    /* Z-index */
    --z-background: 1;
    --z-overlay: 2;
    --z-content: 3;
    --z-controls: 4;
    --z-progress: 5;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--dark-gray);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   HERO SLIDER CONTAINER - FULL WIDTH BANNER
   ========================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 315px; /* 70% of original 450px */
    overflow: hidden;
    background-color: var(--black);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ==========================================
   INDIVIDUAL SLIDES
   ========================================== */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity var(--transition-medium), 
                transform var(--transition-medium),
                visibility var(--transition-medium);
    will-change: opacity, transform;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: var(--z-content);
}

.slide.prev {
    transform: translateX(-100%);
}

/* ==========================================
   SLIDE BACKGROUNDS
   ========================================== */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    overflow: hidden;
}

.background-overlay {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay);
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 10s ease-out;
    will-change: transform;
}

.slide.active .animated-bg {
    transform: scale(1.05);
    animation: subtleZoom 20s ease-out infinite alternate;
}

/* Slide-specific backgrounds */
.slide-1-bg {
    background: url('../low-monthly-payments-awdm.jpg') center/cover no-repeat;
    position: relative;
}

.slide-1-bg::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: rgba(0, 0, 0, 0.4);
    animation: pulse 8s ease-in-out infinite;
}

.slide-2-bg {
    background: #000;
    position: relative;
}

.slide-2-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.slide-2-bg::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    animation: none;
}

.slide-3-bg {
    background: #000;
    position: relative;
}

.slide-3-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.slide-3-bg::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    animation: none;
}

/* ==========================================
   SLIDE CONTENT - HORIZONTAL LAYOUT
   ========================================== */
.slide-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: var(--z-content);
    padding: 1.5rem 3rem;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), 
                transform var(--transition-slow);
    transition-delay: 0.3s;
}

.slide.active .content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   TYPOGRAPHY - COMPACT FOR BANNER
   ========================================== */
.slide-label {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    border-radius: 50px;
    animation: fadeInDown 0.6s ease-out;
}

.slide-title {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-highlight {
    color: var(--white);
}

.slide-description {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    font-weight: 400;
    line-height: 1.5;
    max-width: 550px;
    margin: 0 auto 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeIn 1s ease-out 0.4s both;
}

/* ==========================================
   PAYMENT HIGHLIGHT (SLIDE 1) - HORIZONTAL
   ========================================== */
.payment-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.75rem auto;
    padding: 0.85rem 1.5rem;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    animation: scaleIn 0.8s ease-out 0.6s both;
}

.payment-prefix {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

.payment-amount {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.payment-amount sup {
    font-size: 0.5em;
    vertical-align: super;
    margin-left: 0.2rem;
}

.payment-suffix {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   FEATURE LIST (SLIDE 2) - HORIZONTAL
   ========================================== */
.feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.75rem auto;
    max-width: 700px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    animation: fadeInUp 0.8s ease-out both;
}

.feature-item:nth-child(1) { animation-delay: 0.5s; }
.feature-item:nth-child(2) { animation-delay: 0.6s; }
.feature-item:nth-child(3) { animation-delay: 0.7s; }

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.feature-icon {
    width: 18px;
    height: 18px;
    color: var(--white);
}

/* ==========================================
   NEWSLETTER FORM (SLIDE 3) - HORIZONTAL
   ========================================== */
.newsletter-form {
    max-width: 450px;
    margin: 0.75rem auto;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.form-group {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.form-input {
    flex: 1;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    font-family: var(--font-secondary);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    outline: none;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    text-align: left;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(24, 109, 78, 0.3);
}

.form-note {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.newsletter-benefits {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.75rem;
    animation: fadeIn 1s ease-out 0.8s both;
}

.benefit-item {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   BUTTONS & CTAs - HORIZONTAL
   ========================================== */
.slide-cta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(24, 109, 78, 0.3);
}

.btn-primary:hover {
    background: #20886a;
    border-color: #20886a;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(24, 109, 78, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==========================================
   SLIDER CONTROLS
   ========================================== */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

/* ==========================================
   PAGINATION DOTS
   ========================================== */
.slider-pagination {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: var(--z-controls);
    display: none; /* Hidden to avoid overlap with content */
}

.pagination-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.pagination-dot.active {
    width: 35px;
    background: var(--accent-color);
    border-color: var(--white);
    border-radius: 10px;
}

/* ==========================================
   PROGRESS BAR
   ========================================== */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: var(--z-progress);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent-color);
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(24, 109, 78, 0.5);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes subtleZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(20px, -20px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .hero-slider {
        height: 280px;
    }
    
    .slide-content {
        padding: 1.5rem 2.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-slider {
        height: 265px;
    }
    
    .slide-title {
        font-size: clamp(1.35rem, 3vw, 2rem);
    }
    
    .payment-amount {
        font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    }
    
    .payment-highlight {
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 550px;
    }
    
    .slide-content {
        padding: 3.5rem 2rem;
        justify-content: center;
    }
    
    .content-wrapper {
        text-align: center;
    }
    
    .slide-title {
        font-size: clamp(1.5rem, 3vw, 2rem);
        margin-bottom: 1rem;
    }
    
    .slide-description {
        font-size: 0.95rem;
        margin: 0 auto 1.5rem;
    }
    
    .payment-highlight {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        margin: 1.5rem auto;
    }
    
    .payment-amount {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    .feature-list {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        width: 100%;
        max-width: 280px;
    }
    
    .newsletter-form {
        margin: 1.5rem auto;
    }
    
    .form-group {
        flex-direction: column;
        margin-bottom: 1rem;
        padding: 0 3rem;
    }
    
    .newsletter-benefits {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        margin-top: 1.25rem;
    }
    
    .slide-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .slider-pagination {
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 520px;
    }
    
    .slide-content {
        padding: 3rem 1.5rem;
    }
    
    .slide-label {
        font-size: 0.7rem;
        padding: 0.35rem 0.85rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .control-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.control-btn:focus,
.pagination-dot:focus,
.btn:focus,
.form-input:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .slider-controls,
    .slider-pagination,
    .slider-progress {
        display: none;
    }
}
