/* =========================================
   INDUSTRIES.CSS - Industries Page
   ========================================= */

/* =========================================
   1. SECTION HEADER LAYOUTS
   ========================================= */
/* Left-aligned header with right-aligned CTA */
.section-header-left {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.section-header-content {
    flex: 1;
    max-width: 800px;
}

.section-header-content .cs-topper {
    margin-bottom: 0.25rem;
    text-align: left;
}

.section-header-content .cs-title {
    margin-bottom: 0;
    text-align: left;
}

/* Remove cs-text from left headers - only for centered sections */

.section-header-cta {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 0.5rem;
}

/* Centered intro */
.section-intro {
    max-width: 800px;
    margin-bottom: 3rem;
}

.section-intro--centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-intro--centered .cs-title {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-intro--centered .cs-text {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-intro .cs-title {
    margin-bottom: 1rem;
}

.section-intro .cs-text {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .section-header-left {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header-cta {
        padding-top: 0;
        width: 100%;
    }
    
    .section-header-cta .cs-button-solid {
        width: 100%;
        max-width: 320px;
    }
}

/* =========================================
   2. AUDIENCE SEGMENTS - 6 CARD GRID
   ========================================= */
.audience-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Cards inherit cs-card-v2 styles, just add icon-specific styling */
.audience-card-icon {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.audience-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
    background: var(--bg-offset);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.audience-icon svg {
    width: 2rem;
    height: 2rem;
}

.audience-card-icon h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 1;
}

.audience-card-icon p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .audience-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .audience-grid-6 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   3. STATS LAYOUT (Content Left, Stats Right)
   ========================================= */
.stats-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-features li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.stats-features h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--headerColor);
    margin: 0 0 0.25rem;
}

.stats-features p {
    font-size: 0.9rem;
    color: var(--bodyTextColor);
    line-height: 1.5;
    margin: 0;
}

.stats-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Stat cards inherit cs-card-v2 styles */
.stat-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    font-family: var(--headerFont);
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--headerColor);
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bodyTextColor);
    font-weight: 600;
}

@media (max-width: 1023px) {
    .stats-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats-display {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-display {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   4. SPLIT CONTENT LAYOUTS
   ========================================= */
.cs-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.cs-split--reverse {
    direction: rtl;
}

.cs-split--reverse > * {
    direction: ltr;
}

.split-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.split-content .cs-text {
    margin: 0;
    text-align: left;
    color: var(--bodyTextColor);
}

.split-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--headerColor);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.split-content .benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.split-content .benefit-list li {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.split-content .benefit-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
}

.split-content .benefit-list li strong {
    color: var(--headerColor);
}

.split-media {
    border-radius: 16px;
    overflow: hidden;
}

.split-media img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section CTA below split content */
.section-cta {
    margin-top: 3rem;
    text-align: center;
}

@media (max-width: 1023px) {
    .cs-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cs-split--reverse {
        direction: ltr;
    }
    
    .split-media {
        order: -1;
    }
    
    .section-cta {
        margin-top: 2rem;
    }
}

/* =========================================
   5. DARK SECTION TEXT COLORS
   ========================================= */
.cs-section.cs-dark .split-content .cs-text,
.cs-section.cs-dark .split-content h4,
.cs-section.cs-dark .split-content .benefit-list li,
.cs-section.cs-dark .split-content .benefit-list li strong {
    color: #f8fafc;
}

.cs-section.cs-dark .cs-card-v2 h3 {
    color: var(--headerColor);
}

.cs-section.cs-dark .cs-card-v2 p {
    color: var(--bodyTextColor);
}

/* =========================================
   6. 3-COLUMN GRID
   ========================================= */
.cs-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .cs-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cs-grid-3 {
        grid-template-columns: 1fr;
    }
}
