/* ============================================
   Commerzy - Homepage Specific Styles
   ============================================ */

/* ========== HERO SLIDER ========== */
.hero-slider {
    position: relative;
    overflow: hidden;
}
.slides-container {
    display: flex;
    transition: transform 0.5s ease;
}
.slide {
    min-width: 100%;
    padding: 60px 0 80px;
    position: relative;
}

/* Slide Backgrounds - Green Gradients */
.slide-1 { background: var(--gradient-1); }
.slide-2 { background: var(--gradient-2); }
.slide-3 { background: var(--gradient-3); }
.slide-4 { background: var(--gradient-4); }
.slide-5 { background: var(--gradient-5); }

.slide .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.slide-content {
    flex: 1;
    color: #fff;
    max-width: 550px;
}
.slide-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}
.slide-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.slide-desc {
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 30px;
    opacity: 0.95;
}
.slide-buttons {
    display: flex;
    gap: 15px;
}
.slide-image {
    flex: 1;
    max-width: 500px;
}
.slide-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Slider Controls */
.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}
.slider-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.slider-arrow:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active,
.slider-dot:hover {
    background: #fff;
    transform: scale(1.2);
}

/* ========== MOBILE STICKY BUTTONS (Homepage) ========== */
.mobile-sticky-buttons {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    gap: 10px;
}
.mobile-sticky-buttons.active {
    display: flex;
}
.mobile-sticky-buttons a {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
}
.mobile-sticky-buttons .btn-trial {
    background: var(--color-primary-gradient);
    color: #fff;
}
.mobile-sticky-buttons .btn-login {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

/* ========== SECTION STYLES ========== */
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-primary);
}
.section-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

/* Feature Row */
.feature-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 120px;
}
.feature-row:last-child {
    margin-bottom: 0;
}
.feature-row .feature-image {
    flex: 0 0 45%;
}
.feature-row .feature-content {
    flex: 0 0 50%;
}
.feature-row .feature-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}
.feature-row .feature-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}
.feature-row.reverse {
    flex-direction: row-reverse;
}

/* Agent Row */
.agent-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
}

.agent-item {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    background-color: #F0F0F0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
}

.agent-item .agent-content {
    padding: 20px;
}

/* Feature Row in Dark Section */
.section-dark .feature-row .feature-content h3 {
    color: #fff;
}
.section-dark .feature-row .feature-content p {
    color: rgba(255,255,255,0.85);
}

/* Icon Grid */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.icon-item {
    text-align: center;
    padding: 20px;
}
.icon-item .press {
    width: 200px;
    margin-bottom: 15px;
}
.icon-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}
.icon-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.icon-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Payment Grid */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.payment-item {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.payment-item img {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}
.payment-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.payment-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.review-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background: #fff;
    border-radius: 8px;
}

/* Logos Grid */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}
.logo-item img {
    width: 100%;
}

/* CTA Section */
.section-cta {
    background: var(--color-primary-gradient);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}
.section-cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}
.section-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ========== RESPONSIVE - HOMEPAGE ========== */
@media (max-width: 992px) {
    /* Mobile Hero */
    .slide { padding: 40px 0 60px; }
    .slide .container { flex-direction: column; text-align: center; }
    .slide-content { max-width: 100%; order: 1; }
    .slide-image { max-width: 100%; order: 2; margin-top: 30px; }
    .slide-title { font-size: 28px; }
    .slide-desc { font-size: 16px; }
    .slide-buttons { justify-content: center; flex-wrap: wrap; }
    .slider-arrows { display: none; }

    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-row {
        flex-direction: column;
        gap: 30px;
    }
    .feature-row.reverse {
        flex-direction: column;
    }
    .feature-row .feature-image,
    .feature-row .feature-content {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Image above content on mobile */
    .feature-row {
        flex-direction: column;
    }
    .feature-row .feature-image {
        order: 1;
    }
    .feature-row .feature-content {
        order: 2;
        text-align: center;
    }

    .agent-row {
        flex-direction: column;
    }

    .agent-item {
        flex: none;
    }

    .section-title {
        font-size: 26px;
    }
    .section-subtitle {
        font-size: 16px;
    }

    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-cta {
        padding: 60px 0;
    }
    .section-cta h2 {
        font-size: 28px;
    }
    .section-cta p {
        font-size: 16px;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .slide { padding: 30px 0 50px; }
    .slide-title { font-size: 24px; }
    .slide-desc { font-size: 15px; }
    .slide-buttons .btn { padding: 10px 20px; font-size: 14px; }

    .icon-grid {
        grid-template-columns: 1fr;
    }

    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .hero-slider, .mobile-sticky-buttons, .slider-arrows, .slider-dots { display: none !important; }
}
