/* ==========================================================================
   SALES PAGE CSS - EXACT ORIGINAL MATCH
   Carefully extracted from styles.css with proper styling
   ========================================================================== */

/* ==========================================================================
   SALES HERO SECTION
   ========================================================================== */

   .sales-hero {
    position: relative;
    height: 40vh;
    min-height: 350px;
    margin-top: 80px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.sales-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/sale/sales.jpg');
    background-size: cover;
    background-position: center 40%;
    background-attachment: scroll;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    z-index: 1;
}

.sales-hero.animate::before {
    opacity: 1;
}

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

.sales-hero .container {
    position: relative;
    z-index: 2;
}

.sales-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   SALES CONTENT SECTION
   ========================================================================== */

.sales-content {
    padding: 80px 0;
    background: #f8fafc;
}

.sales-text {
    margin-bottom: 4rem;
}

.sales-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.sales-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   SALES CHANNELS SECTION
   ========================================================================== */

.sales-channels-section {
    margin-top: 4rem;
}

.channels-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 2.5rem;
    margin-top: 0;
}

/* Sales Channels within Sales Content */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.channel-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.channel-card i {
    font-size: 4rem;
    color: rgba(33, 124, 118, 1);
    margin-bottom: 1.5rem;
}

.channel-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.channel-card p {
    margin-bottom: 2rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Custom icon styling for channel cards */
.channel-card .custom-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: brightness(0) saturate(100%) invert(42%) sepia(21%) saturate(1317%) hue-rotate(129deg) brightness(94%) contrast(91%);
}

/* ==========================================================================
   RESALE CONTENT SECTION
   ========================================================================== */

.resale-content {
    padding: 80px 0;
    background-color: #f8fafc;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 2rem;
}

.parts-list {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.parts-list h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(33, 124, 118, 1);
    margin-bottom: 1rem;
}

.parts-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.parts-list ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

.parts-list ul li i {
    color: rgba(33, 124, 118, 1);
    width: 20px;
}

.manufacturing-info {
    background: linear-gradient(135deg, rgba(33, 124, 118, 0.1), rgba(33, 124, 118, 0.05));
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid rgba(33, 124, 118, 1);
    margin-top: 2rem;
}

.manufacturing-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(33, 124, 118, 1);
    margin-bottom: 1rem;
}

.manufacturing-info p {
    margin-bottom: 0;
    color: #374151;
}

.content-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   ANIMATIONS - EXACT ORIGINAL BEHAVIOR
   ========================================================================== */

/* Sales Page animation - immediate visibility */
.sales-content .animate-fade-in-up,
.sales-channels-section .animate-fade-in-up {
    transition: all 0.8s ease !important;
    transition-delay: 0s !important;
}

/* Staggered animations for grid items */
.stagger-animation .animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stagger-animation.animate .animate-item:nth-child(1) { 
    transition-delay: 0.1s; 
}

.stagger-animation.animate .animate-item:nth-child(2) { 
    transition-delay: 0.2s; 
}

.stagger-animation.animate .animate-item:nth-child(3) { 
    transition-delay: 0.3s; 
}

.stagger-animation.animate .animate-item:nth-child(4) { 
    transition-delay: 0.4s; 
}

.stagger-animation.animate .animate-item {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .sales-hero {
        background-attachment: scroll;
        margin-top: 70px;
        height: 35vh;
        min-height: 300px;
    }
    
    .sales-hero h1 {
        font-size: 2.2rem;
    }
    
    .sales-content {
        padding: 60px 0;
    }
    
    .sales-text {
        margin-bottom: 3rem;
    }
    
    .sales-text p {
        font-size: 1.1rem;
    }
    
    .channels-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .channels-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .channel-card {
        padding: 2rem 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .content-text h2 {
        font-size: 2rem;
    }
    
    .parts-list ul {
        grid-template-columns: 1fr;
    }
    
    .content-image img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .sales-hero {
        height: 30vh;
        min-height: 250px;
    }
    
    .sales-hero h1 {
        font-size: 2rem;
    }
    
    .sales-content {
        padding: 40px 0;
    }
    
    .sales-text p {
        font-size: 1rem;
    }
    
    .channels-title {
        font-size: 1.3rem;
    }
    
    .channel-card {
        padding: 1.5rem 1rem;
    }
    
    .channel-card i {
        font-size: 3rem;
    }
    
    .channel-card h3 {
        font-size: 1.3rem;
    }
    
    .content-text h2 {
        font-size: 1.8rem;
    }
    
    .content-text p {
        font-size: 1rem;
    }
    
    .content-image img {
        height: 250px;
    }
}