/* SERVICII PAGE DEDICATED STYLES - Namespaced .servicii- */

.servicii-wrapper {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    background-color: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

/* Hero Section */
.servicii-hero {
    position: relative;
    width: 100%;
    padding: 120px 160px 0 160px;
    /* Balanced top padding for text alignment */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* The exact 1440x576px background from Figma */
.servicii-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 576px;
    /* Explicit cutoff exactly as requested */
    background: url('../Imagini/servicii/servicii-col1.png') center / cover no-repeat;
    z-index: 1;
}

.servicii-hero-content {
    flex: 1;
    max-width: 450px;
    position: relative;
    z-index: 10;
    margin-top: 40px;
    /* Keeps text aligned naturally when everything moves */
}

.servicii-h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
    line-height: 1.2;
}

.servicii-hero-sub {
    font-size: 19px;
    line-height: 1.6;
    color: #a1aeb7;
}

/* Mask Group (Right Photo) */
.servicii-hero-img-box {
    position: relative;
    flex: 1;
    max-width: 640px;
    display: flex;
    justify-content: flex-end;
    z-index: 9;
}

.servicii-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    /* Ensure softness if mask is missing it */
}

/* Floating Testimonial Card */
.servicii-hero-card {
    position: absolute;
    bottom: 40px;
    /* Elevated more above image edge */
    left: -240px;
    /* Deep overlap into the left content area */
    width: 414px;
    background: linear-gradient(180deg, #ed2390 0%, #f00 100%);
    border-radius: 24px;
    padding: 24px 24px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #fff;
    z-index: 20;
    box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.4);
}

.servicii-card-img {
    width: 120px;
}

.servicii-card-text {
    font-size: 16px;
    line-height: 1.6;
}

.servicii-card-text b {
    font-weight: 700;
}

/* Intro list section */
.servicii-intro {
    padding: 80px 160px 40px 160px;
    /* Reduced bottom padding */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.servicii-intro-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
    /* Exactly 32px gap as per Figma inspector */
    width: 640px;
    /* Exactly 640px width as per Figma inspector */
}

.servicii-intro-right {
    display: flex;
    align-items: flex-start;
    /* Keep button at the top */
}

.servicii-label-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.servicii-label-icon {
    width: 47px;
}

.servicii-label-text {
    font-size: 19px;
    font-weight: 700;
    color: #f00;
}

.servicii-h2 {
    font-family: 'Montserrat', sans-serif;
    /* Explicit Montserrat */
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    /* Gap handles spacing */
}

.servicii-btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, #f00 0%, #c80000 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}

.servicii-btn-contact:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.servicii-btn-icon {
    width: 15px;
}

/* Mid Text */
.servicii-mid-text {
    padding: 0 160px 60px 160px;
    font-size: 16px;
    color: #a1aeb7;
    line-height: 1.6;
}

/* Services Grid */
.servicii-grid {
    padding: 0 160px 120px 160px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 60px;
    column-gap: 40px;
}

.servicii-item {
    position: relative;
    padding: 40px 32px 48px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none !important;
    /* Remove link underline */
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicii-item:hover {
    transform: translateY(-5px);
}

/* Background overlay per service - the grey glass box */
.servicii-item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../Imagini/servicii/group/group-bg.png') center / 100% 100% no-repeat;
    /* Fill item shape perfectly */
    border-radius: 20px;
    /* Force soft corners just in case */
    z-index: 1;
    pointer-events: none;
}

/* Floating circle arrow overlay */
.servicii-item-circle {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(180deg, #f00 0%, rgba(255, 0, 0, 0.7) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transform: translate(-5%, 10%);
    /* Exact position from DevTools tested by user, perfectly aligns with cutout */
}

.servicii-item-circle img {
    width: 14px;
    transform: rotate(5deg);
    /* Fine-tuned rotation to perfectly point dreapta sus */
    margin-bottom: 2px;
}

/* Content wrapper ensuring it sits above the gray bg */
.servicii-item-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.servicii-icon-layer {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.servicii-icon-layer img {
    max-height: 70px;
    max-width: 90px;
    object-fit: contain;
}

.servicii-item-title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.servicii-item-desc {
    font-size: 16px;
    color: #a1aeb7;
    line-height: 1.6;
}

/* Outro / Price section */
.servicii-outro {
    padding: 80px 160px;
    background: url('../Imagini/servicii/servicii-col2.png') center / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    position: relative;
}

.servicii-outro-p {
    font-size: 16px;
    color: #a1aeb7;
    max-width: 550px;
    line-height: 1.6;
}

/* Responsive */
@media screen and (max-width: 1100px) {

    .servicii-hero,
    .servicii-intro,
    .servicii-grid,
    .servicii-mid-text,
    .servicii-outro {
        padding-left: 40px;
        padding-right: 40px;
    }

    .servicii-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .servicii-hero-img-box {
        position: relative;
        width: 100%;
        top: 0;
        margin-top: 40px;
    }

    .servicii-hero {
        flex-direction: column;
        padding-bottom: 80px;
    }

    .servicii-hero-card {
        bottom: -100px;
        left: 40px;
    }

    .servicii-intro {
        margin-top: 40px;
    }
}

@media screen and (max-width: 768px) {
    .servicii-grid {
        grid-template-columns: 1fr;
    }

    .servicii-hero-card {
        width: calc(100% - 80px);
    }

    .servicii-h1 {
        font-size: 40px;
    }

    .servicii-h2 {
        font-size: 32px;
    }

    .servicii-intro {
        flex-direction: column;
        align-items: flex-start;
    }
}