/* ══════════════════════════════════════════
   Free Services Page - irfollower v4
   ══════════════════════════════════════════ */

/* ── Hero ── */
.free-hero {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 30%, #2563eb 60%, #1d4ed8 100%);
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.free-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96,165,250,0.25) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    pointer-events: none;
}

.free-hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
    pointer-events: none;
}

/* hero grid pattern */
.free-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* hero floating shapes */
.free-hero-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.free-hero-shape-1 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    top: 10%;
    left: 5%;
    animation: hero-rotate 20s linear infinite;
}

.free-hero-shape-2 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255,255,255,0.04);
    border-radius: 30px;
    bottom: 15%;
    right: 8%;
    transform: rotate(45deg);
    animation: hero-rotate 15s linear infinite reverse;
}

.free-hero-shape-3 {
    width: 80px;
    height: 80px;
    background: rgba(96,165,250,0.08);
    border-radius: 20px;
    top: 25%;
    right: 12%;
    transform: rotate(20deg);
    animation: hero-float 6s ease-in-out infinite;
}

.free-hero-shape-4 {
    width: 50px;
    height: 50px;
    background: rgba(59,130,246,0.1);
    border-radius: 50%;
    bottom: 30%;
    left: 15%;
    animation: hero-float 8s ease-in-out infinite reverse;
}

@keyframes hero-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0) rotate(20deg); }
    50% { transform: translateY(-25px) rotate(25deg); }
}

.free-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: #bfdbfe;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    animation: fadeInDown 0.6s ease;
}

.free-hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(52,211,153,0.6);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(52,211,153,0.6); }
    50% { opacity: 0.7; box-shadow: 0 0 16px rgba(52,211,153,0.8); }
}

.free-hero-title {
    color: #fff;
    font-family: IRANSansX, sans-serif;
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.free-hero-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 17px;
    line-height: 1.9;
    max-width: 560px;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.free-hero-stats {
    display: inline-flex;
    gap: 0;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.free-hero-stat {
    text-align: center;
    padding: 18px 36px;
    position: relative;
}

.free-hero-stat + .free-hero-stat::before {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.12);
}

.free-hero-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    font-family: IRANSansX, sans-serif;
}

.free-hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Section titles ── */
.free-section-title {
    font-family: IRANSansX, sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}

.free-section-subtitle {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.8;
}

/* ── Steps ── */
.free-steps {
    background: transparent;
    position: relative;
    z-index: 3;
    margin-top: -90px;
    padding-bottom: 60px;
}

.free-steps-row {
    position: relative;
}

.free-step-card {
    text-align: center;
    padding: 40px 28px 32px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    position: relative;
    transition: all 0.35s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.free-step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(37,99,235,0.12);
    border-color: rgba(37,99,235,0.12);
}

.free-step-num {
    position: absolute;
    top: -18px;
    right: 24px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(37,99,235,0.35);
}

.free-step-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    margin: 0 auto 20px;
    transition: all 0.35s;
}

.free-step-card:hover .free-step-icon {
    transform: scale(1.1) rotate(-3deg);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
}

.free-step-card h3 {
    font-family: IRANSansX, sans-serif;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #0f172a;
}

.free-step-card p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    line-height: 1.8;
}

/* connector arrows */
.free-step-connector {
    display: none;
}

@media (min-width: 768px) {
    .free-step-connector {
        display: block;
        position: absolute;
        top: 50%;
        height: 3px;
        background: linear-gradient(90deg, #93c5fd, #2563eb);
        z-index: 0;
        opacity: 0.2;
        border-radius: 2px;
    }

    .free-step-connector-1 {
        right: 66%;
        width: 14%;
    }

    .free-step-connector-2 {
        right: 33%;
        width: 14%;
    }
}

/* ── Service Cards ── */
.free-services {
    background: #fff;
    position: relative;
}

.free-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37,99,235,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.free-service-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 36px 24px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.free-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981, #059669);
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: center;
}

.free-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16,185,129,0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    border-radius: 24px;
}

.free-service-card:hover::before {
    transform: scaleX(1);
}

.free-service-card:hover::after {
    opacity: 1;
}

.free-service-card:hover {
    border-color: #34d399;
    box-shadow: 0 20px 60px rgba(5,150,105,0.12);
    transform: translateY(-8px);
}

.free-service-icon {
    width: 88px;
    height: 88px;
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    margin-bottom: 20px;
    transition: all 0.4s;
    position: relative;
    z-index: 1;
}

.free-service-card:hover .free-service-icon {
    background: linear-gradient(145deg, #059669, #10b981);
    color: #fff;
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 8px 24px rgba(5,150,105,0.3);
}

.free-service-title {
    font-family: IRANSansX, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.free-service-desc {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.free-service-qty {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 14px;
    padding: 12px 24px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #374151;
    border: 1px solid #6ee7b7;
    position: relative;
    z-index: 1;
}

.free-service-qty span {
    font-weight: 900;
    color: #047857;
    font-size: 24px;
}

.btn-claim {
    border-radius: 14px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 15px;
    margin-top: auto;
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
    transition: all 0.35s;
    box-shadow: 0 6px 20px rgba(5,150,105,0.3);
    position: relative;
    z-index: 1;
}

.btn-claim:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(5,150,105,0.4);
    background: linear-gradient(135deg, #047857, #059669);
}

a.btn-claim {
    color: #fff;
    text-decoration: none;
}

a.btn-claim:hover {
    color: #fff;
}

/* ── Trust badges ── */
.free-trust {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    position: relative;
}

.free-trust::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #93c5fd, transparent);
}

.free-trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(37,99,235,0.06);
    transition: all 0.35s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.free-trust-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 28px rgba(37,99,235,0.08);
    transform: translateY(-4px);
}

.free-trust-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
    transition: all 0.3s;
}

.free-trust-item:hover .free-trust-icon {
    background: linear-gradient(145deg, #2563eb, #3b82f6);
    color: #fff;
}

.free-trust-text h4 {
    font-family: IRANSansX, sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.free-trust-text p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ── SEO Content ── */
.free-seo-content {
    background: #f8fafc;
    position: relative;
}

.free-seo-text {
    font-size: 15px;
    line-height: 2;
    color: #374151;
}

.free-seo-text h3 {
    font-family: IRANSansX, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 28px;
    margin-bottom: 12px;
    padding-right: 16px;
    border-right: 4px solid #2563eb;
}

.free-seo-text ul {
    list-style: none;
    padding: 0;
}

.free-seo-text ul li {
    position: relative;
    padding-right: 28px;
    margin-bottom: 10px;
}

.free-seo-text ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    box-shadow: 0 2px 6px rgba(37,99,235,0.2);
}

/* ── CTA ── */
.free-cta {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 30%, #2563eb 60%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.free-cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(96,165,250,0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.free-cta h2 {
    color: #fff;
}

.free-cta p {
    color: rgba(255,255,255,0.5);
}

.free-cta .btn-light {
    border-radius: 14px;
    font-weight: 700;
    padding: 14px 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.free-cta .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .free-hero {
        padding: 80px 0 100px;
    }

    .free-hero-title {
        font-size: 28px;
    }

    .free-hero-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .free-hero-stats {
        border-radius: 16px;
    }

    .free-hero-stat {
        padding: 14px 20px;
    }

    .free-hero-stat-num {
        font-size: 22px;
    }

    .free-hero-shape {
        display: none;
    }

    .free-section-title {
        font-size: 22px;
    }

    .free-steps {
        margin-top: -60px;
        padding-bottom: 30px;
    }

    .free-steps-row .col-md-4 + .col-md-4 {
        margin-top: -8px;
    }

    .free-step-card {
        display: flex;
        align-items: center;
        text-align: right;
        padding: 16px 18px 16px 14px;
        gap: 14px;
        border-radius: 16px;
    }

    .free-step-num {
        position: static;
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 13px;
        border-radius: 8px;
        order: -1;
    }

    .free-step-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 14px;
        margin: 0;
    }

    .free-step-icon i {
        font-size: 22px !important;
    }

    .free-step-card h3 {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .free-step-card p {
        font-size: 12px;
        line-height: 1.6;
        display: none;
    }

    .free-services {
        padding: 40px 0;
    }

    .free-services .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    #free-services-grid {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
        align-items: stretch;
    }

    #free-services-grid > div {
        flex: 0 0 50%;
        max-width: 50%;
        display: flex;
    }

    .free-service-card {
        padding: 18px 12px 16px;
        border-radius: 16px;
        width: 100%;
    }

    .free-service-title {
        font-size: 13px;
        margin-bottom: 6px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .free-service-card::before,
    .free-service-card::after {
        display: none;
    }

    .free-service-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        margin-bottom: 10px;
    }

    .free-service-icon i {
        font-size: 24px !important;
    }

    .free-service-desc {
        display: none;
    }

    .free-service-qty {
        padding: 6px 12px;
        border-radius: 10px;
        margin-bottom: 10px;
        font-size: 12px;
    }

    .free-service-qty span {
        font-size: 16px;
    }

    .btn-claim {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 10px;
        box-shadow: 0 3px 12px rgba(5,150,105,0.2);
        margin-top: 0;
    }

    .free-trust-item {
        padding: 16px;
    }
}
