/* --- BANNER STYLES --- */
.main-banner-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0 0 0;
    overflow: hidden; /* Prevents car image from spilling scrollbar */
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Text takes slightly more space */
    align-items: center;
}

/* Typography */
.banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin: 1rem 0;
}

.banner-title .highlight {
    color: red;
    white-space: nowrap;
}

/* Subtitle Row with Icon */
.banner-subtitle-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.icon-box img {
    width: 60%;  /* Leaves 20% whitespace on sides so it breathes */
    height: 60%; /* Leaves 20% whitespace top/bottom */
    object-fit: contain; /* Ensures the image aspect ratio stays correct */
}

.subtitle-text {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

/* Footer / Links Area */
.banner-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1.5rem;
}

.cta-text {
    font-size: 0.95rem;
    color: var(--color-text-gray);
    margin-bottom: 1rem;
    text-align: center;
}

.banner-tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    max-width: fit-content;
    margin: auto;
}

.flags-icon {
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* --- UPDATED: Footer & Buttons (Fixes the Spill) --- */
.banner-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1.5rem;
    padding-bottom: 0.5rem; /* Added padding at bottom for safety */
    width: 100%;
}

.banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* CRITICAL: Allows buttons to stack if space runs out */
    width: 100%;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Centers text inside button */
    gap: 0.5rem;
    transition: transform 0.2s;
    flex: 1; /* Makes buttons equal width */
    min-width: 140px; /* Prevents them from becoming unreadably small */
    white-space: nowrap; /* Prevents text inside button from wrapping awkwardly */
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-max { background: linear-gradient(to top right, #44ccff, #9933dd); }
.btn-telegram { background-color: #0088cc; }

/* Image Styling */
.banner-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-car {
    width: 100%;
    max-width: 500px;
    height: auto;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15)); /* Nice shadow for the car */
}

/* Decorative background behind car */
.blob-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .banner-grid {
        grid-template-columns: 1fr; /* Stack vertically */
        text-align: center;
    }

    .banner-image-wrapper {
        order: -1; /* Move image to top on mobile */
    }
    .banner-image-wrapper::before {
        content: "";
        position: absolute;
        top: 25%; /* adjust vertically */
        left: -10%;
        width: 120%;
        height: 150px;

        background: linear-gradient(
            90deg,
            transparent 0%,
            #0000004b 30%,
            #0000004b 70%,
            transparent 100%
        );

        z-index: 1;
    }

    .hero-car {
        position: relative;
        z-index: 2; /* car stays above the line */
    }

    .banner-subtitle-row {
        justify-content: center;
        text-align: left; /* Keep the small text aligned to icon */
    }

    .banner-buttons {
        justify-content: center;
    }

    .main-banner-section{
        padding: 0;
    }
}

@media (max-width: 576px) {
    .banner-title {
        font-size: 1.8rem;
    }
    
    .btn {
        justify-content: center;
    }
    
    .banner-buttons {
        flex-direction: column;
    }

}

/* --- Catalog Button Styles --- */
.banner-main-action {
    margin-bottom: 1.5rem;
    justify-content: center;
    display: flex;
}

@keyframes shine-move {
    0% {
        left: -100px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    60% {
        left: 120%; /* Takes much longer to cross */
        opacity: 1;
    }

    75% {
        opacity: 0;
    }

    100% {
        left: 120%;
        opacity: 0;
    }
}

/* 2. The Button (Adding a 'plastic' top highlight) */
.btn-primary-catalog {
    position: relative; 
    overflow: hidden; 
    
    background-color: black;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    z-index: 10;
    
    /* NEW: 'Plastic' Surface Effect (Top white edge + Shadow) */
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.4), /* Top inner highlight */
        0 10px 20px rgba(0, 0, 0, 0.15);     /* Drop shadow */
}

/* 3. The "Hard Light" Beam Pseudo-element */
.btn-primary-catalog::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 30px; /* Fixed width for a sharp "band" */
    height: 100%;
    
    /* SHARP GRADIENT: Hard white center with slight fade at edges */
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 30%, 
        rgba(255, 255, 255, 1) 50%,   /* Pure white center */
        rgba(255, 255, 255, 0.8) 70%, 
        rgba(255, 255, 255, 0) 100%
    );
    
    /* More extreme skew for speed look */
    transform: skewX(-30deg); 
    pointer-events: none;
    
    /* Faster animation cycle (3s) */
    animation: shine-move 4s infinite cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hover Effects */
.btn-primary-catalog:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.4),
        0 15px 25px rgba(59, 130, 246, 0.2);
}

.btn-primary-catalog:hover .fa-arrow-right-long {
    transform: translateX(5px);
}

.btn-primary-catalog .fa-arrow-right-long
 {
    color: var(--color-primary);
    font-size: large;
 }

.btn-primary-catalog:hover i,
.btn-primary-catalog:hover
 {
     color: grey;
 }


.btn-primary-catalog.i {
    color: white;
}

.fa-arrow-right-long {
    transition: transform 0.3s ease;
}

/* Text Layering */
.btn-primary-catalog i, 
.btn-primary-catalog span,
.btn-primary-catalog {
    z-index: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .btn-primary-catalog {
        font-size: 1rem;
    }
}

/* --- Payment Methods Badges --- */
.payment-methods-wrapper {
    margin-bottom: 1.5rem; /* Space between title and this section */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pm-label {
    font-size: 0.9rem;
    color: #6c757d; /* Muted gray for the label */
    font-weight: 600;
    margin-left: 2px;
}

.pm-badges {
    display: flex;
    flex-wrap: wrap; /* Allows tags to stack on mobile */
    gap: 10px;
}

.pm-tag {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: 1px solid transparent; /* Keeps sizing consistent */
}

/* Color Schemes for each badge */

/* Credit: Blue (Trust) */
.tag-credit {
    background-color: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

/* Leasing: Orange/Gold (Business/Premium) */
.tag-leasing {
    background-color: #fff3e0;
    color: #ef6c00;
    border-color: #ffe0b2;
}

/* Cashless: Green (Money) */
.tag-cashless {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

/* VAT (NDS): Purple or Dark Grey (Official/Tax) */
.tag-vat {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border-color: #e1bee7;
}

/* Hover effect for interactivity */
.pm-tag:hover {
    filter: brightness(0.95);
    cursor: default;
}

/* Mobile Alignment Fix */
@media (max-width: 992px) {
    .payment-methods-wrapper {
        align-items: center; /* Center align on mobile */
    }
    
    .pm-badges {
        justify-content: center;
    }
}