/**
 * Company Story Component Styles
 * Company history and milestones
 * 
 * @package ApexTheme
 * @subpackage Components/CompanyStory
 */

/* ========================================
   Section Container
   ======================================== */
.apex-company-story {
    padding: 6rem 1.5rem;
    background: #ffffff;
    position: relative;
}

.apex-company-story__container {
    max-width: 1280px;
    margin: 0 auto;
}

/* ========================================
   Header
   ======================================== */
.apex-company-story__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.apex-company-story__header.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.apex-company-story__badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(234, 88, 12, 0.1) 100%);
    color: #f97316;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.apex-company-story__heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}

/* ========================================
   Grid Layout
   ======================================== */
.apex-company-story__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .apex-company-story__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }
}

/* ========================================
   Content
   ======================================== */
.apex-company-story__content {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.apex-company-story__content.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.apex-company-story__content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #475569;
    margin: 0 0 1.5rem 0;
}

.apex-company-story__content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Timeline
   ======================================== */
.apex-company-story__timeline {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.apex-company-story__timeline.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.apex-company-story__milestone {
    display: flex;
    gap: 1.25rem;
    position: relative;
}

.apex-company-story__milestone-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.apex-company-story__milestone-dot {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
    position: relative;
    z-index: 1;
}

.apex-company-story__milestone-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, #f97316 0%, #e2e8f0 100%);
    margin-top: 0.5rem;
}

.apex-company-story__milestone-content {
    padding-bottom: 2rem;
}

.apex-company-story__milestone:last-child .apex-company-story__milestone-content {
    padding-bottom: 0;
}

.apex-company-story__milestone-year {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    color: #f97316;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.apex-company-story__milestone-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.apex-company-story__milestone-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .apex-company-story {
        padding: 4rem 1rem;
    }
    
    .apex-company-story__header {
        margin-bottom: 3rem;
    }
    
    .apex-company-story__content p {
        font-size: 1rem;
    }
    
    .apex-company-story__milestone-title {
        font-size: 1rem;
    }
    
    .apex-company-story__milestone-desc {
        font-size: 0.875rem;
    }
}
