/**
 * EazySoft Service Pages Styles
 *
 * Consistent with landing page design system.
 *
 * @since 1.2.0
 */

/* ============================================
   CSS Custom Properties
   ============================================ */

.ez-service {
    --ez-primary: #1e3a5f;
    --ez-primary-dark: #152a47;
    --ez-secondary: #4a90d9;
    --ez-accent: #ff6f61;
    --ez-accent-hover: #e5574d;
    --ez-surface: #ffffff;
    --ez-surface-alt: #f8fafc;
    --ez-text: #1e293b;
    --ez-text-muted: #64748b;
    --ez-text-light: rgba(255, 255, 255, 0.85);
    --ez-border: #e2e8f0;
    --ez-success: #34d399;
    --ez-radius: 12px;
    --ez-radius-lg: 20px;
    --ez-transition: 0.3s ease;
    --ez-container: 1200px;
    --ez-hero-gradient: linear-gradient(160deg, #0f1f35 0%, #1e3a5f 40%, #2a4d6e 100%);
    --ez-cta-gradient: linear-gradient(135deg, #4a90d9 0%, #357abd 50%, #2a6bb5 100%);
    overflow-x: hidden;
    line-height: 1.7;
}

.ez-service *,
.ez-service *::before,
.ez-service *::after {
    box-sizing: border-box;
}

/* ============================================
   Shared Components (mirrored from landing)
   ============================================ */

.ez-service .ez-container {
    max-width: var(--ez-container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* Buttons */
.ez-service .ez-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background var(--ez-transition), color var(--ez-transition), box-shadow var(--ez-transition), transform var(--ez-transition);
    white-space: nowrap;
}

.ez-service .ez-btn--primary {
    background: var(--ez-accent);
    color: #fff;
}

.ez-service .ez-btn--primary:hover {
    background: var(--ez-accent-hover);
    box-shadow: 0 4px 14px rgba(255, 111, 97, 0.4);
    transform: translateY(-1px);
}

.ez-service .ez-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.ez-service .ez-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.ez-service .ez-btn--white {
    background: #fff;
    color: var(--ez-secondary);
}

.ez-service .ez-btn--white:hover {
    background: var(--ez-surface-alt);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ez-service .ez-btn--lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

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

@keyframes svc-glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    50% { box-shadow: 0 0 20px 4px rgba(255, 255, 255, 0.3); }
}

/* Section label */
.ez-service .ez-section-label {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(74, 144, 217, 0.1);
    color: var(--ez-secondary);
    letter-spacing: 0.02em;
}

.ez-service .ez-section-label--light {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

/* Sections */
.ez-service .ez-section {
    padding: 5rem 0;
}

.ez-service .ez-section--gray {
    background: var(--ez-surface-alt);
}

.ez-service .ez-section__header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.ez-service .ez-section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--ez-primary);
    margin: 0.75rem 0 0;
    line-height: 1.3;
}

/* Scroll animations */
.ez-service .ez-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ez-service.ez-animate-ready .ez-fade-in.ez-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.no-js .ez-service .ez-fade-in {
    opacity: 1;
    transform: none;
}

/* ============================================
   Hero shape animations (from landing)
   ============================================ */

.ez-service .ez-hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    background: #fff;
}

.ez-service .ez-hero__shape--1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    animation: svc-float-1 8s ease-in-out infinite;
}

.ez-service .ez-hero__shape--2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation: svc-float-2 10s ease-in-out infinite;
}

@keyframes svc-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.05); }
}

@keyframes svc-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -25px) scale(1.08); }
}

/* ============================================
   Service Hero
   ============================================ */

.ez-svc-hero {
    position: relative;
    background: var(--ez-hero-gradient);
    padding: 7rem 0 5rem;
    overflow: hidden;
    text-align: center;
}

.ez-svc-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ez-svc-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 750px;
    margin-inline: auto;
}

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

.ez-svc-hero__subtitle {
    font-size: 1.125rem;
    color: var(--ez-text-light);
    line-height: 1.8;
    margin: 0;
    max-width: 620px;
}

.ez-svc-hero__ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ============================================
   Benefits Grid
   ============================================ */

.ez-svc-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.ez-svc-benefit {
    background: var(--ez-surface);
    border: 1px solid var(--ez-border);
    border-radius: var(--ez-radius-lg);
    padding: 2rem;
    transition: transform var(--ez-transition), box-shadow var(--ez-transition);
}

.ez-svc-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.08);
}

.ez-svc-benefit__icon {
    width: 48px;
    height: 48px;
    color: var(--ez-secondary);
    margin-bottom: 1rem;
}

.ez-svc-benefit__icon svg {
    width: 100%;
    height: 100%;
}

.ez-svc-benefit__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ez-primary);
    margin: 0 0 0.5rem;
}

.ez-svc-benefit__desc {
    font-size: 0.95rem;
    color: var(--ez-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Process Steps
   ============================================ */

.ez-svc-steps {
    max-width: 700px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ez-svc-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    position: relative;
}

.ez-svc-step:not(:last-child)::after {
    content: '';
    position: absolute;
    inset-inline-start: 22px;
    top: calc(1.5rem + 44px);
    bottom: 0;
    width: 2px;
    background: var(--ez-border);
}

.ez-svc-step__num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ez-secondary);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ez-svc-step__body {
    flex: 1;
    padding-top: 0.25rem;
}

.ez-svc-step__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ez-primary);
    margin: 0 0 0.35rem;
}

.ez-svc-step__desc {
    font-size: 0.95rem;
    color: var(--ez-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Includes / Features checklist
   ============================================ */

.ez-svc-includes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin-inline: auto;
}

.ez-svc-include {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--ez-surface-alt);
    border-radius: var(--ez-radius);
    border: 1px solid var(--ez-border);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ez-text);
}

.ez-svc-include svg {
    color: var(--ez-success);
    flex-shrink: 0;
}

/* ============================================
   CTA Section
   ============================================ */

.ez-svc-cta {
    background: var(--ez-cta-gradient);
    padding: 5rem 0;
    text-align: center;
}

.ez-svc-cta__content {
    max-width: 600px;
    margin-inline: auto;
}

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

.ez-svc-cta__text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 2rem;
}

/* ============================================
   Services Grid Cards
   ============================================ */

.ez-svc-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ez-svc-card {
    display: flex;
    flex-direction: column;
    background: var(--ez-surface);
    border: 1px solid var(--ez-border);
    border-radius: var(--ez-radius-lg);
    padding: 2.25rem 2rem;
    text-decoration: none;
    transition: transform var(--ez-transition), box-shadow var(--ez-transition), border-color var(--ez-transition);
    cursor: pointer;
}

.ez-svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(30, 58, 95, 0.12);
    border-color: var(--ez-secondary);
}

.ez-svc-card__icon {
    width: 52px;
    height: 52px;
    color: var(--ez-secondary);
    margin-bottom: 1.25rem;
}

.ez-svc-card__icon svg {
    width: 100%;
    height: 100%;
}

.ez-svc-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ez-primary);
    margin: 0 0 0.75rem;
}

.ez-svc-card__desc {
    font-size: 0.95rem;
    color: var(--ez-text-muted);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.ez-svc-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ez-secondary);
    transition: gap var(--ez-transition);
}

.ez-svc-card:hover .ez-svc-card__link {
    gap: 0.75rem;
}

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

@media (max-width: 992px) {
    .ez-svc-benefits {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

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

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

    .ez-svc-benefits {
        grid-template-columns: 1fr;
    }

    .ez-svc-includes {
        grid-template-columns: 1fr;
    }

    .ez-service .ez-section {
        padding: 3.5rem 0;
    }

    .ez-svc-cta {
        padding: 3.5rem 0;
    }
}

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

    .ez-svc-cards {
        grid-template-columns: 1fr;
    }

    .ez-svc-hero__ctas {
        flex-direction: column;
        width: 100%;
    }

    .ez-svc-hero__ctas .ez-btn {
        width: 100%;
    }

    .ez-svc-step {
        gap: 1rem;
    }

    .ez-svc-step__num {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .ez-svc-step:not(:last-child)::after {
        inset-inline-start: 18px;
    }
}

/* ============================================
   RTL Adjustments
   ============================================ */

[dir="rtl"] .ez-svc-step:not(:last-child)::after {
    right: 22px;
    left: auto;
}

@media (max-width: 576px) {
    [dir="rtl"] .ez-svc-step:not(:last-child)::after {
        right: 18px;
        left: auto;
    }
}
