/**
 * EazySoft About Page Styles
 * .ez-about-* prefix for all about-specific styles
 *
 * @since 2.0.0
 */

/* ============================================
   Section 1: Hero — Company Identity
   ============================================ */

.ez-about-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0f1f35 0%, #1e3a5f 40%, #2a4d6e 100%);
    padding: 7rem 0 5rem;
    text-align: center;
    color: #fff;
}

.ez-about-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ez-about-hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: #4a90d9;
}

.ez-about-hero__shape--1 {
    width: 500px;
    height: 500px;
    top: -200px;
    inset-inline-end: -100px;
    animation: ez-about-float 8s ease-in-out infinite;
}

.ez-about-hero__shape--2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    inset-inline-start: -50px;
    animation: ez-about-float 6s ease-in-out infinite reverse;
}

.ez-about-hero__shape--3 {
    width: 200px;
    height: 200px;
    top: 30%;
    inset-inline-start: 15%;
    animation: ez-about-float 10s ease-in-out infinite;
    opacity: 0.05;
}

@keyframes ez-about-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.ez-about-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.ez-about-hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 1.25rem;
    color: #fff;
}

.ez-about-hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 580px;
    margin-inline: auto;
}

/* ============================================
   Section 2: Company Story — Timeline
   ============================================ */

.ez-about-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-inline-start: 2.5rem;
}

/* Vertical connector line */
.ez-about-timeline::before {
    content: '';
    position: absolute;
    inset-inline-start: 0.75rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(180deg, var(--wp--preset--color--secondary, #4a90d9), var(--wp--preset--color--border, #e2e8f0));
    border-radius: 2px;
}

.ez-about-timeline__item {
    position: relative;
    padding-bottom: 2.5rem;
}

.ez-about-timeline__item:last-child {
    padding-bottom: 0;
}

.ez-about-timeline__marker {
    position: absolute;
    inset-inline-start: -2.25rem;
    top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ez-about-timeline__dot {
    display: block;
    width: 1rem;
    height: 1rem;
    background: var(--wp--preset--color--secondary, #4a90d9);
    border-radius: 50%;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px color-mix(in srgb, var(--wp--preset--color--secondary, #4a90d9) 30%, transparent);
}

.ez-about-timeline__content {
    padding-top: 0;
}

.ez-about-timeline__year {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--wp--preset--color--secondary, #4a90d9);
    background: color-mix(in srgb, var(--wp--preset--color--secondary, #4a90d9) 10%, transparent);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    margin-bottom: 0.5rem;
}

.ez-about-timeline__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--wp--preset--color--primary, #1e3a5f);
    margin: 0 0 0.25rem;
}

.ez-about-timeline__desc {
    font-size: 0.95rem;
    color: var(--wp--preset--color--text-muted, #64748b);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Section 3: Trust Bar (from product-base)
   ============================================ */

.ez-about .ez-prod-trust {
    background: var(--wp--preset--color--surface, #fff);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--wp--preset--color--border, #e2e8f0);
}

.ez-about .ez-prod-trust .ez-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ez-about .ez-prod-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.ez-about .ez-prod-trust__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ez-about .ez-prod-trust__stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--wp--preset--color--primary, #1e3a5f);
    line-height: 1.2;
}

.ez-about .ez-prod-trust__desc {
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-muted, #64748b);
}

/* ============================================
   Section 4: Product Cards Strip
   ============================================ */

.ez-about-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ez-about-product {
    position: relative;
    display: block;
    background: var(--wp--preset--color--surface, #fff);
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.ez-about-product:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.ez-about-product__border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--product-primary), var(--product-accent));
    border-radius: 16px 16px 0 0;
}

.ez-about-product__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    color: var(--product-accent);
}

.ez-about-product__icon svg {
    width: 100%;
    height: 100%;
}

.ez-about-product__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--product-primary);
    margin: 0 0 0.4rem;
}

.ez-about-product__tagline {
    font-size: 0.85rem;
    color: var(--wp--preset--color--text-muted, #64748b);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.ez-about-product__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--product-accent);
    transition: color 0.2s ease;
}

.ez-about-product:hover .ez-about-product__link {
    color: var(--product-primary);
}

/* ============================================
   Section 5: Values — 2x2 Grid
   ============================================ */

.ez-about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.ez-about-value {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: var(--wp--preset--color--surface-alt, #f8fafc);
    border: 1px solid var(--wp--preset--color--border, #e2e8f0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ez-about-value:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ez-about-value__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    color: var(--wp--preset--color--secondary, #4a90d9);
}

.ez-about-value__icon svg {
    width: 100%;
    height: 100%;
}

.ez-about-value__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--wp--preset--color--primary, #1e3a5f);
    margin: 0 0 0.5rem;
}

.ez-about-value__desc {
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-muted, #64748b);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Section 6: Partners & Certifications
   ============================================ */

.ez-about-partners {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.ez-about-partners__badge {
    width: 64px;
    height: 64px;
    margin: 1rem auto 1.5rem;
    color: #f59e0b;
}

.ez-about-partners__badge svg {
    width: 100%;
    height: 100%;
}

.ez-about-partners__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--wp--preset--color--primary, #1e3a5f);
    margin: 0 0 1rem;
}

.ez-about-partners__desc {
    font-size: 1rem;
    color: var(--wp--preset--color--text, #1e293b);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.ez-about-partners__trust {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wp--preset--color--secondary, #4a90d9);
    background: color-mix(in srgb, var(--wp--preset--color--secondary, #4a90d9) 8%, transparent);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    margin: 0;
}

/* ============================================
   Section 7: CTA — Get in Touch
   ============================================ */

.ez-about-cta {
    background: linear-gradient(160deg, #0f1f35 0%, #1e3a5f 40%, #2a4d6e 100%);
    padding: 5rem 0;
    text-align: center;
    color: #fff;
}

.ez-about-cta__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 1rem;
    color: #fff;
}

.ez-about-cta__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 2.5rem;
    max-width: 500px;
    margin-inline: auto;
    line-height: 1.7;
}

.ez-about-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   Shared Styles (scoped to .ez-about)
   ============================================ */

.ez-about .ez-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ez-about .ez-section {
    padding: 5rem 0;
}

.ez-about .ez-section--gray {
    background: var(--wp--preset--color--surface-alt, #f8fafc);
}

.ez-about .ez-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.ez-about .ez-section__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--wp--preset--color--primary, #1e3a5f);
    margin: 0.75rem 0 0;
}

.ez-about .ez-section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wp--preset--color--secondary, #4a90d9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.ez-about .ez-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ez-about .ez-btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.ez-about .ez-btn--white {
    background: #fff;
    color: var(--wp--preset--color--primary, #1e3a5f);
}

.ez-about .ez-btn--white:hover {
    background: #f0f4f8;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
    color: var(--wp--preset--color--primary, #1e3a5f);
}

.ez-about .ez-btn--outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.ez-about .ez-btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

/* ============================================
   Animations
   ============================================ */

.ez-about .ez-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ez-about .ez-fade-in.ez-visible {
    opacity: 1;
    transform: translateY(0);
}

.ez-about .ez-stagger-children > .ez-fade-in:nth-child(1) { transition-delay: 0s; }
.ez-about .ez-stagger-children > .ez-fade-in:nth-child(2) { transition-delay: 0.1s; }
.ez-about .ez-stagger-children > .ez-fade-in:nth-child(3) { transition-delay: 0.2s; }
.ez-about .ez-stagger-children > .ez-fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 992px) {
    .ez-about-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .ez-about .ez-prod-trust__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ez-about-hero {
        padding: 5rem 0 3.5rem;
    }

    .ez-about-products {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-inline: auto;
    }

    .ez-about-values {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .ez-about-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .ez-about .ez-btn--lg {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .ez-about-timeline {
        padding-inline-start: 2rem;
    }
}
