/* ===============================================
   KARDERA - SECTIONS LAYOUT
   =============================================== */

/* SECTION BASE */
section {
    padding: 4rem 0;
    position: relative;
}

section:first-of-type {
    padding-top: 2rem;
}

section.hero {
    padding: 6rem 0;
}

/* SECTION BACKGROUNDS */
.section-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.section-secondary {
    background: var(--gradient);
}

.section-light {
    background: var(--background);
}

.section-white {
    background: var(--white);
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--white);
}

/* SECTION SPACING */
.section-sm {
    padding: 2rem 0;
}

.section-lg {
    padding: 6rem 0;
}

.section-xl {
    padding: 8rem 0;
}

/* CLIENT TRUST SECTION */
.client-trust-section {
    background: var(--gradient) !important;
    border-radius: var(--border-radius);
    padding: 3rem 0;
}

.trust-content {
    text-align: center;
}

.trust-icon i {
    color: var(--primary) !important;
}

/* CLIENT SECTION */
.client-section .bg-light {
    background: var(--secondary) !important;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
}

/* PROMOTIONAL STATS */
.promotional-stats {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--secondary);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--gradient);
    transition: var(--transition);
    border: 1px solid rgba(234, 38, 65, 0.2);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* SECTION OVERLAYS */
.section-overlay {
    position: relative;
}

.section-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.section-overlay .container {
    position: relative;
    z-index: 2;
}

/* SECTION DIVIDERS */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    margin: 2rem 0;
}

.section-divider.primary {
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* CONTENT SECTIONS */
.content-section {
    max-width: 800px;
    margin: 0 auto;
}

.content-section h2 {
    margin-bottom: var(--space-lg);
}

.content-section p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

/* TWO COLUMN LAYOUT */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .two-column.reverse {
        direction: ltr;
    }
}

/* FEATURE GRID */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* RESPONSIVE SECTIONS */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    section.hero {
        padding: 4rem 0;
    }
    
    .section-lg {
        padding: 4rem 0;
    }
    
    .section-xl {
        padding: 5rem 0;
    }
}
