/**
 * EazySoft Homepage Styles — Multi-Product Hub
 * .ez-home-* prefix for all homepage-specific styles
 *
 * @since 2.0.0
 */

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

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

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

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

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

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

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

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

.ez-home-hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto 3rem;
}

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

.ez-home-hero__title-accent {
    background: linear-gradient(135deg, #4a90d9, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Product logo strip */
.ez-home-hero__logos {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.ez-home-hero__logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: default;
}

.ez-home-hero__logo-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

.ez-home-hero__logo-icon {
    width: 32px;
    height: 32px;
    color: var(--product-color);
}

.ez-home-hero__logo-icon svg {
    width: 100%;
    height: 100%;
}

.ez-home-hero__logo-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Section 2: Trust Bar
   ============================================ */

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

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

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

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

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

/* ============================================
   Section 3: Products Showcase
   ============================================ */

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

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

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

.ez-home-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-home-product__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--product-accent);
}

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

.ez-home-product__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--product-primary);
    margin: 0 0 0.5rem;
}

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

.ez-home-product__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ez-home-product__chip {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--product-accent) 10%, transparent);
    color: var(--product-primary);
}

.ez-home-product__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.ez-btn--product {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--product-accent);
    color: #fff;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    text-align: center;
}

.ez-btn--product:hover {
    opacity: 0.9;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--product-accent) 35%, transparent);
    color: #fff;
}

.ez-home-product__learn-more {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--product-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ez-home-product__learn-more:hover {
    color: var(--product-accent);
}

/* ============================================
   Section 4: Why EazySoft
   ============================================ */

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

.ez-home-why__card {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 12px;
    background: var(--wp--preset--color--surface-alt, #f8fafc);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.ez-home-why__icon svg {
    width: 100%;
    height: 100%;
}

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

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

/* ============================================
   Section 5: Social Proof
   ============================================ */

.ez-home-proof__placeholder {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--wp--preset--color--surface, #fff);
    border-radius: 12px;
    border: 2px dashed var(--wp--preset--color--border, #e2e8f0);
}

.ez-home-proof__placeholder p {
    font-size: 1rem;
    color: var(--wp--preset--color--text-muted, #64748b);
    margin: 0;
}

/* ============================================
   Section 6: Final CTA
   ============================================ */

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

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

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

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

.ez-btn--product-cta {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--product-accent);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ez-btn--product-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--product-accent) 40%, transparent);
    color: #fff;
}

/* ============================================
   Shared Section Styles (reused from landing)
   ============================================ */

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

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

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

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

.ez-home .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-home .ez-btn--primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--wp--preset--color--accent, #ff6f61);
    color: #fff;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ez-home .ez-btn--primary:hover {
    background: #e5574d;
    box-shadow: 0 4px 14px rgba(255, 111, 97, 0.35);
    color: #fff;
}

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

.ez-home .ez-btn--glow {
    animation: ez-btn-glow 2.5s ease-in-out infinite;
}

@keyframes ez-btn-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 111, 97, 0); }
    50% { box-shadow: 0 0 16px 3px rgba(255, 111, 97, 0.25); }
}

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

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

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

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

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

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

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

    .ez-home-trust__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .ez-home-hero__logos {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .ez-home-hero {
        padding: 4rem 0 3rem;
    }

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

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

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

    .ez-btn--product-cta {
        width: 100%;
        max-width: 280px;
    }

    .ez-home-hero__logos {
        gap: 0.75rem;
    }

    .ez-home-hero__logo-item {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .ez-home-trust__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ez-home-hero__title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
}
