/* ============================================================
   KAMVA DIGITAL SYSTEMS - SERVICES PAGE
   Loaded only on services.php via $extraStyles = ['services']
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.services-hero {
    min-height: auto;
    padding: 160px 0 80px;
    text-align: center;
}

.services-hero .hero-actions {
    margin-bottom: 0;
}

/* ============================================================
   SERVICE ROWS
   ============================================================ */
.services-list {
    padding: 40px 0 80px;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 100px;
    align-items: center;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-row.reverse {
    direction: rtl;
}
.service-row.reverse .service-info,
.service-row.reverse .service-visual {
    direction: ltr;
}

/* Service info */
.service-info h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.15;
}

.service-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 16px;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 22px;
    transition: transform 0.4s var(--ease-out),
                background 0.3s var(--ease),
                color 0.3s var(--ease);
}

.service-row:hover .service-icon-circle {
    background: #1d1d1f;
    color: #fff;
    transform: scale(1.08) rotate(-5deg);
}

.service-description {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* Features list */
.service-features {
    list-style: none;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
    transition: color 0.2s var(--ease), transform 0.25s var(--ease);
}

.service-features li:hover {
    color: var(--text);
    transform: translateX(6px);
}

.service-features li i {
    color: var(--success);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Tech tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    transition: all 0.2s var(--ease);
}

.tech-tags span:hover {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
    transform: translateY(-2px);
}

/* Learn more link */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1.5px solid transparent;
    transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-link:hover {
    gap: 12px;
    border-bottom-color: var(--text);
}

.service-link i {
    font-size: 12px;
}

/* Service visual box */
.service-visual {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    padding: 40px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 100%);
    border: 1px solid var(--border);
    border-radius: 32px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service-visual:hover {
    border-color: var(--border-strong);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.12);
}

.visual-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    color: var(--text);
    font-size: 32px;
    animation: floatIcon 5s infinite alternate ease-in-out;
    transition: transform 0.4s var(--ease-out),
                background 0.3s var(--ease),
                color 0.3s var(--ease);
}

.visual-icon:nth-child(2) { animation-delay: 0.3s; }
.visual-icon:nth-child(3) { animation-delay: 0.6s; }

.visual-icon:hover {
    background: #1d1d1f;
    color: #fff;
    transform: scale(1.12) translateY(-8px);
    animation-play-state: paused;
}

@keyframes floatIcon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.section-process {
    background: linear-gradient(180deg, transparent 0%, rgba(74,106,255,0.03) 50%, transparent 100%);
    padding: 100px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.process-step {
    position: relative;
    padding: 32px 26px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out),
                border-color 0.3s var(--ease),
                box-shadow 0.3s var(--ease);
}

.process-step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1d1d1f, #6e6e73);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.process-step:hover::after {
    transform: scaleX(1);
}

.process-step:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    transition: all 0.3s var(--ease);
}

.process-step:hover .step-number {
    background: #1d1d1f;
    color: #fff;
    transform: scale(1.08) rotate(5deg);
    border-color: #1d1d1f;
}

.process-step h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.process-step p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-dim);
}

/* ============================================================
   BENEFITS SECTION
   ============================================================ */
.section-benefits {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.benefit-card {
    padding: 32px 26px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    text-align: center;
    transition: transform 0.4s var(--ease-out),
                border-color 0.3s var(--ease),
                box-shadow 0.3s var(--ease);
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
}

.benefit-card i {
    display: inline-block;
    font-size: 36px;
    color: var(--text);
    margin-bottom: 16px;
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.benefit-card:hover i {
    transform: scale(1.15);
    color: #1d1d1f;
}

.benefit-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.benefit-card p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.benefit-metric {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #1d1d1f 0%, #6e6e73 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.benefit-metric small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-mute);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    -webkit-text-fill-color: var(--text-mute);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
    .service-row,
    .service-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 32px;
        margin-bottom: 60px;
    }
    .service-visual {
        min-height: 220px;
        padding: 32px;
        order: -1;
    }
    .visual-icon {
        width: 68px;
        height: 68px;
        border-radius: 18px;
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 130px 0 50px;
    }
    .service-info h2 {
        font-size: 22px;
        gap: 12px;
    }
    .service-icon-circle {
        width: 48px;
        height: 48px;
        font-size: 18px;
        border-radius: 14px;
    }
    .service-description {
        font-size: 14px;
    }
    .process-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .section-process,
    .section-benefits {
        padding: 70px 0;
    }
    .process-step,
    .benefit-card {
        padding: 26px 22px;
    }
    .benefit-metric {
        font-size: 26px;
    }
}

@media (max-width: 500px) {
    .service-visual {
        padding: 24px;
        gap: 14px;
        min-height: 180px;
    }
    .visual-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
        border-radius: 16px;
    }
}