/*
 * Services Page Responsive Refinements
 * Loaded only by services.php.
 */

.hero .hero-content {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(2rem, 4vw, 4rem);
}

.hero-services-grid {
    align-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-service-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 0.9rem;
    padding: 1rem;
}

.hero-service-icon {
    margin: 0;
}

.hero-service-title,
.hero-service-description {
    margin: 0;
}

.hero-service-description {
    grid-column: 2 / 4;
    margin-top: 0.25rem;
}

.services-grid.services-grid-3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card-grid {
    min-width: 0;
}

.service-card-header {
    align-items: center;
    gap: 0.85rem;
}

.service-title {
    overflow-wrap: anywhere;
}

.service-features-compact {
    display: grid;
    gap: 0.55rem;
}

.feature-item {
    align-items: flex-start;
}

.service-tech-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.service-actions .btn {
    justify-content: center;
    min-height: 2.9rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 1180px) {
    .hero .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        max-width: 820px;
    }

    .services-grid.services-grid-3col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .floating-cta {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 7.75rem 0 6.75rem;
        overflow: visible;
    }

    .hero .hero-content {
        width: min(100% - 1.25rem, 680px);
        text-align: left;
        gap: 1.35rem;
        position: relative;
        z-index: 2;
    }

    .hero-text {
        position: relative;
        z-index: 3;
    }

    .hero-title {
        font-size: clamp(2.35rem, 13vw, 3.7rem);
        margin-top: 0.75rem;
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 0.98rem;
    }

    .hero-services-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
        margin-top: 0.25rem;
    }

    .hero-service-item {
        min-height: auto;
        grid-template-columns: 2.5rem minmax(0, 1fr) 1.6rem;
        padding: 0.7rem;
        border-radius: 16px;
    }

    .hero-service-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 12px;
        font-size: 1rem;
    }

    .hero-service-title {
        font-size: 0.95rem;
        line-height: 1.15;
    }

    .hero-service-description {
        grid-column: 2 / 3;
        display: -webkit-box;
        margin-top: 0.2rem;
        overflow: hidden;
        color: rgba(255, 255, 255, 0.62);
        font-size: 0.78rem;
        line-height: 1.35;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .hero-service-arrow {
        grid-column: 3;
        grid-row: 1 / 3;
        width: 1.6rem;
        height: 1.6rem;
        align-self: center;
    }

    .scroll-indicator {
        display: none;
    }

    .services-overview,
    .process,
    .cta {
        padding: 2.75rem 0;
        scroll-margin-top: 5rem;
        scroll-margin-bottom: 7rem;
    }

    .process {
        padding-top: 3.5rem;
    }

    .process .section-header {
        position: relative;
        z-index: 2;
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    .process .section-tag {
        margin-bottom: 0.8rem;
    }

    .process .section-title {
        max-width: 16rem;
        font-size: clamp(1.65rem, 8vw, 2.2rem);
        line-height: 1.08;
    }

    .process .section-subtitle {
        max-width: 20rem;
        margin-left: 0;
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .services-overview .container,
    .process .container,
    .cta .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .section-title {
        font-size: clamp(1.8rem, 9vw, 2.45rem);
    }

    .services-grid.services-grid-3col {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .service-card-grid {
        padding: 0.9rem;
        border-radius: 18px;
    }

    .service-card-header {
        display: grid;
        grid-template-columns: 2.65rem minmax(0, 1fr);
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .service-icon {
        width: 2.65rem;
        height: 2.65rem;
        border-radius: 13px;
        font-size: 1rem;
    }

    .service-title {
        margin: 0;
        font-size: 1.08rem;
        line-height: 1.15;
    }

    .service-description {
        margin-bottom: 0.85rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .service-features-compact {
        gap: 0.45rem;
        margin-bottom: 0.85rem;
    }

    .feature-item {
        gap: 0.45rem;
        font-size: 0.82rem;
    }

    .service-tech-compact {
        margin-bottom: 0.95rem;
    }

    .tech-tag {
        padding: 0.32rem 0.55rem;
        font-size: 0.72rem;
    }

    .service-actions {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .service-actions .btn {
        width: 100%;
        min-height: 2.75rem;
        padding: 0.72rem 0.75rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .process-timeline {
        display: grid;
        gap: 0.7rem;
        max-width: 100%;
        margin: 0;
        padding: 0 0 1rem 2.2rem;
    }

    .process-timeline::before,
    .process-step::before {
        display: none;
    }

    .process-step,
    .process-step.left,
    .process-step.right {
        display: block;
        width: 100%;
        margin: 0;
        transform: none;
        opacity: 1;
        position: relative;
        left: auto;
        right: auto;
    }

    .step-number {
        position: absolute;
        top: 50%;
        left: -2.2rem;
        right: auto;
        transform: translateY(-50%);
        width: 2rem;
        height: 2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        background: rgba(0, 212, 255, 0.15);
        border: 1px solid rgba(0, 212, 255, 0.28);
        color: #ffffff;
        font-size: 0.72rem;
        font-weight: 800;
        z-index: 2;
    }

    .step-content,
    .process-step.left .step-content,
    .process-step.right .step-content {
        width: 100%;
        max-width: none;
        margin: 0;
        left: auto;
        right: auto;
        transform: none;
        padding: 0.78rem 0.82rem;
        border-radius: 16px;
        text-align: left;
        min-height: auto;
        box-sizing: border-box;
    }

    .step-icon {
        display: none;
    }

    .step-content h3 {
        margin-bottom: 0.22rem;
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .step-content p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.76rem;
        line-height: 1.42;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .cta-content {
        width: min(100% - 1rem, 680px);
        padding: 1.25rem;
        text-align: left;
        margin-bottom: 1.5rem;
        box-sizing: border-box;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .hero .hero-content {
        width: calc(100% - 1rem);
    }

    .hero-services-grid {
        gap: 0.45rem;
    }

    .hero-service-item {
        grid-template-columns: 2.25rem minmax(0, 1fr) 1.35rem;
        padding: 0.58rem;
    }

    .hero-service-icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    .hero-service-title {
        font-size: 0.86rem;
    }

    .hero-service-description {
        display: none;
    }

    .hero-service-arrow {
        width: 1.35rem;
        height: 1.35rem;
    }

    .service-card-grid {
        padding: 0.8rem;
    }

    .service-card-header {
        grid-template-columns: 2.35rem minmax(0, 1fr);
    }

    .service-icon {
        width: 2.35rem;
        height: 2.35rem;
    }

    .service-title {
        font-size: 1rem;
    }

    .service-description,
    .feature-item,
    .step-content p {
        font-size: 0.78rem;
    }

    .process .section-title {
        max-width: 14rem;
    }

    .process .section-subtitle {
        max-width: 18rem;
    }

    .step-content,
    .process-step.left .step-content,
    .process-step.right .step-content {
        padding-left: 0.82rem;
    }

    .step-content p {
        -webkit-line-clamp: 3;
    }
}
