/* ===================================
   TRUCK SPARE PARTS PAGE - IMAGE ORIENTED STYLES
   Modern, visual-first design approach
   =================================== */

/* Inner Page Header - same behavior as other inner pages (blur, turns white on scroll) */
.inner-page .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.inner-page .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.inner-page .header .top-bar {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

.inner-page .header .navbar {
    background: transparent;
}

.inner-page .top-bar-left a,
.inner-page .top-bar-right a {
    color: var(--dark-bg);
}

.inner-page .top-bar-left a:hover {
    color: var(--primary-red);
}

.inner-page .top-bar-right a:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* Page Hero Section */
.page-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
}

.page-hero .hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.8);
}

.page-hero .hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Breadcrumb Section */
.breadcrumb-section {
    background: var(--grey-light);
    padding: 1.2rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--grey-mid);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a:hover {
    color: var(--primary-red);
}

.breadcrumb .separator {
    color: var(--grey-mid);
}

.breadcrumb .current {
    color: var(--primary-red);
    font-weight: 600;
}

/* ===================================
   FEATURED BANNER SECTIONS
   Image-oriented layouts with transparent PNGs
   =================================== */

.featured-banner-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.featured-banner-section.alt-layout {
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.featured-banner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
    position: relative;
}

.featured-banner.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.featured-content {
    z-index: 2;
    padding: 2rem;
}

.featured-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark-bg);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-red), var(--red-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-subtitle {
    font-size: 1.2rem;
    color: var(--grey-mid);
    line-height: 1.7;
    max-width: 500px;
}

.featured-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.featured-main-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
    z-index: 1;
}

.featured-banner:hover .featured-main-image {
    transform: scale(1.05);
}

/* Brand Badges Positioning */
.brand-badge {
    position: absolute;
    max-width: 180px;
    width: 25%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    z-index: 2;
}

.brand-badge:hover {
    transform: scale(1.1);
}

.brand-badge.badge-top {
    top: 10%;
    right: 5%;
}

.brand-badge.badge-bottom {
    bottom: 10%;
    right: 5%;
}

.brand-badge.badge-left {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.brand-badge.badge-right {
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.brand-badge.badge-left:hover,
.brand-badge.badge-right:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ===================================
   BRANDS SHOWCASE SECTION
   =================================== */

.brands-showcase {
    padding: 6rem 0;
    background: #050608; /* dark background for the whole section */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
}

.brands-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.brand-box {
    position: relative;
    background: #ffffff; /* white background only for the logo container */
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-box:hover {
    border-color: var(--primary-red);
    transform: translateY(-4px);
    box-shadow: none; /* remove dark glow/shadow around logo card */
}

.brand-logo-img {
    max-width: 70%;
    width: 70%;
    height: auto;
    object-fit: contain;
    filter: none; /* remove black drop shadow behind logos */
    transition: transform 0.3s ease;
}

.brand-box:hover .brand-logo-img {
    transform: translateY(-2px);
}

/* ===================================
   PARTS CATEGORIES GRID
   =================================== */

.parts-categories-section {
    padding: 6rem 0;
    background: var(--white);
}

.parts-categories-section .section-tag {
    color: var(--primary-red);
}

.parts-categories-section .section-title {
    color: var(--dark-bg);
}

.parts-categories-section .section-subtitle {
    color: var(--grey-mid);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.category-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.category-image-box {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.category-image-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-image-box::after {
    opacity: 1;
}

.category-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image-box img {
    transform: scale(1.1);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin: 1.5rem 1.5rem 0.8rem;
}

.category-desc {
    color: var(--grey-mid);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 1.5rem 1.5rem;
}

/* ===================================
   VISUAL GALLERY SECTION
   =================================== */

.visual-gallery-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f2f5 0%, #ffffff 100%);
}

.visual-gallery-section .section-tag {
    color: var(--primary-red);
}

.visual-gallery-section .section-title {
    color: var(--dark-bg);
}

.visual-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    grid-auto-flow: dense;
}

.visual-item {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.visual-item.large {
    grid-column: span 2;
}

.visual-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.visual-item:hover .visual-overlay {
    transform: translateY(0);
}

.visual-item:hover img {
    transform: scale(1.1);
}

.visual-overlay h3 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--grey-dark) 100%);
    padding: 6rem 0;
    position: relative;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary.large,
.btn-secondary.large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary.large {
    background: var(--primary-red);
    color: var(--white);
    border: none;
}

.btn-primary.large:hover {
    background: var(--red-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.4);
}

.btn-secondary.large {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary.large:hover {
    background: var(--white);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* ===================================
   EQUIPMENT PARTS BANNER
   =================================== */

.equipment-parts-banner {
    width: 100%;
    background: var(--dark-bg);
}

.equipment-parts-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .featured-banner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .featured-banner.reverse {
        grid-template-columns: 1fr;
    }

    .featured-subtitle {
        margin: 0 auto;
    }

    .visual-item.large {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    .featured-title {
        font-size: 2.5rem;
    }

    .featured-image-wrapper {
        min-height: 400px;
    }

    .brand-badge {
        max-width: 140px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .brands-grid-large {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 100vh;
        min-height: 500px;
    }

    .page-hero .hero-title {
        font-size: 2.5rem;
    }

    .page-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .featured-banner-section {
        padding: 3rem 0;
    }

    .featured-title {
        font-size: 2rem;
    }

    .featured-subtitle {
        font-size: 1rem;
    }

    .featured-image-wrapper {
        min-height: 300px;
    }

    .featured-main-image {
        max-width: 100%;
    }

    .brand-badge {
        max-width: 100px;
    }

    .brands-showcase {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .brands-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .brand-box {
        padding: 2rem 1.5rem;
    }

    .parts-categories-section {
        padding: 4rem 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-image-box {
        height: 250px;
    }

    .visual-gallery-section {
        padding: 4rem 0;
    }

    .visual-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .visual-item {
        height: 300px;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        padding: 0 2rem;
    }

    .btn-primary.large,
    .btn-secondary.large {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 100vh;
        min-height: 450px;
    }

    .page-hero .hero-title {
        font-size: 2rem;
    }

    .page-hero .hero-subtitle {
        font-size: 0.95rem;
    }

    .featured-banner-section {
        padding: 2rem 0;
    }

    .featured-title {
        font-size: 1.6rem;
    }

    .featured-subtitle {
        font-size: 0.9rem;
    }

    .featured-image-wrapper {
        min-height: 250px;
    }

    .brand-badge {
        max-width: 80px;
    }

    .brands-grid-large {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .category-image-box {
        height: 200px;
    }

    .category-title {
        font-size: 1.3rem;
    }

    .category-desc {
        font-size: 0.9rem;
    }

    .visual-item {
        height: 250px;
    }

    .visual-overlay h3 {
        font-size: 1.4rem;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-text {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.category-card,
.brand-box,
.visual-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}