/* =========================================
   WEB SOLUTIONS PAGE
========================================= */
/* GENERAL */
.ws-eyebrow {
    display: inline-block;
    color: var(--color-red);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.ws-section-heading {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.ws-section-heading h2 {
    margin-bottom: 18px;
}

.ws-section-heading h2 span,
.ws-hero-content h1 span,
.ws-cta-content h2 span {
    color: var(--color-red);
}

.ws-section-heading p {
    margin-bottom: 0;
}


/* HERO */
.ws-hero {
    position: relative;
    overflow: hidden;
    padding-top: 45px;
    padding-bottom: 0px;
}

.ws-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5px;
}

.ws-hero-content h1 {
    max-width: 650px;
    margin-bottom: 25px;
}

.ws-hero-content>p {
    max-width: 590px;
    margin-bottom: 30px;
}

.ws-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 35px;
}

.ws-hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ws-hero-benefits span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-weight: 600;
}

.ws-hero-benefits i {
    color: var(--color-red);
}

.ws-hero-visual {
    position: relative;
    height: 458px;
}

.ws-hero-visual img {
    display: block;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* INTRO */
.ws-intro {
    padding-top: 80px;
    padding-bottom: 0px;
}


/* SERVICES */
.ws-services {
    padding: 80px 0 0;

}

.ws-service-row {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    padding: 65px 0;
}

/* FUNDAL ALTERNATIV */
.ws-service-row:nth-child(odd)::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: linear-gradient(115deg, var(--color-white) 55%, #f3f3f3 100%);
}

.ws-service-row:first-child {
    padding-top: 20px;

}

.ws-service-reverse .ws-service-content {
    order: 2;
}

.ws-service-reverse .ws-service-visual {
    order: 1;
}

.ws-service-content>p {
    margin-bottom: 25px;
}

.ws-service-list {
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.ws-service-list li {
    position: relative;
    padding-left: 27px;
}

.ws-service-list li::before {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    color: var(--color-white);
    background: var(--color-red);
    content: "✓";
    font-size: 12px;
}

.ws-service-content .service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

#mentenanta {
    padding-bottom: 0;
}

.ws-service-visual {
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f3f3;
}

.ws-service-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease;
}

.ws-service-visual:hover img {
    transform: scale(1.035);
}


/* PROCESS */
.ws-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.ws-process-card {
    position: relative;
    text-align: center;
    padding: 20px 10px;
}

/* LINIE DE LEGĂTURĂ */
.ws-process-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50px;
    left: calc(50% + 45px);
    width: calc(100% - 60px);
    border-top: 2px dotted var(--color-gray);
}

/* NUMĂR */
.ws-process-number {
    position: absolute;
    top: 0;
    left: calc(50% - 48px);
    z-index: 2;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: var(--color-white);
    background: var(--color-red);
    font-size: 16px;
    font-weight: 800;
}

/* PICTOGRAMĂ */
.ws-process-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.ws-process-icon i {
    color: var(--color-red);
    font-size: 23px;
}

/* TITLU */
.ws-process-card h3 {
    margin-bottom: 12px;
}


/* PORTFOLIO */
.ws-portfolio {
    color: var(--color-white);
    background: linear-gradient(125deg, var(--color-black), var(--color-dark-surface));
}

.ws-portfolio .portfolio-grid {
    margin-top: 0;
}


/* PORTFOLIO HEADING */
.ws-portfolio-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    margin-bottom: 35px;
}

.ws-portfolio-heading h2 {
    margin: 0;
}

.ws-portfolio-heading h2 span {
    color: var(--color-red);
}


/* CTA */
.ws-cta {
    padding: 45px 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    background: linear-gradient(115deg, var(--color-white) 55%, #f3f3f3 100%);
}

.ws-cta-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    align-items: center;
    gap: 35px;
}

.ws-cta-content h2 {
    margin-bottom: 0px;
}

.ws-cta-content h2 span {
    color: var(--color-red);
}

.ws-cta-content .button {
    white-space: nowrap;
}



/* ========================================
   RESPONSIVE - TABLETA
   Ecrane de maximum 1200px
======================================== */
@media (max-width: 1200px) {
    .ws-hero {
        padding: 45px 0 35px;
    }

    .ws-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ws-intro {
        padding: 55px 0 0;
    }

    .ws-services {
        padding-top: 55px;
    }

    .ws-service-row {
        align-items: stretch;
        gap: 10px;
    }

    .ws-service-visual {
        height: 100%;
    }

    .ws-service-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .ws-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ws-process-card::after {
        display: none;
    }
}



/* ========================================
   WEBX - MENIU TABLETĂ ȘI MOBIL
   Ecrane de maximum 900px
======================================== */
@media (max-width: 900px) {

    .ws-hero {
        padding: 50px 0;
    }

    .ws-hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .ws-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ws-hero-actions .button {
        justify-content: center;
        text-align: center;
    }

    .ws-hero-benefits {
        gap: 14px;
    }

    .ws-hero-visual {
        height: auto;
    }

    .ws-hero-visual img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 650 / 407;
        object-fit: cover;
        object-position: center;
    }

    .ws-section-heading {
        margin-bottom: 35px;
    }

    .ws-services,
    .ws-intro {
        padding: 50px 0 0;

    }

    .ws-service-row {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 45px 0;
    }

    .ws-service-reverse .ws-service-content,
    .ws-service-reverse .ws-service-visual {
        order: initial;
    }

    .ws-service-visual {
        width: 100%;
        height: auto;
    }

    .ws-service-visual img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .ws-service-row .ws-service-visual {
        order: -1;
        width: 100%;
    }

    .ws-service-row .ws-service-content {
        order: 0;
        width: 100%;
    }

    .ws-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .ws-process-card::after {
        display: none;
    }

    .ws-process-card {
        padding: 25px;
    }

    /* CTA - TABLETĂ */
    .ws-cta {
        padding: 45px 0;
    }

    .ws-cta-content {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .ws-cta-content h2,
    .ws-cta-content p {
        grid-column: 1;
    }

    .ws-cta-content .button {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
    }
}



/* ========================================
   RESPONSIVE - TELEFON MIC
   Ecrane de maximum 600px
======================================== */
@media (max-width: 600px) {
    .ws-hero {
        padding: 40px 0;
    }

    .ws-intro {
        padding: 40px 0 20px;
    }

    .ws-services {
        padding: 0;
    }

    .ws-service-row {
        padding: 35px 0;
    }

    .ws-cta {
        padding: 40px 0;
    }

    .ws-hero-benefits {
        flex-direction: column;
        gap: 12px;
    }

    .ws-process-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* PORTOFOLIU - TITLU MOBIL */
    .ws-portfolio-heading {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: left;
    }

    .ws-portfolio-heading h2 {
        margin: 0;
    }

    .ws-portfolio-heading p {
        margin: 0;
    }

    /* CTA - MOBIL */
    .ws-cta {
        padding: 45px 0;
    }

    .ws-cta-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .ws-cta-content p {
        grid-column: auto;
        padding: 0;
        border: 0;
    }

    .ws-cta-content .button {
        grid-column: auto;
        grid-row: auto;
        justify-self: center;
    }
}