/* =============================================================
   Surfix Services Section — Home Page
   Exact match for design with upper and lower diagonal/curved cutouts
   ============================================================= */

/* ── Section Wrapper ── */
.surfix-services-section {
    background-color: #02162e;
    position: relative;
    padding: 60px 0 65px;
    margin-top: -2px;
    z-index: 3;
    overflow: hidden;
}

/* ── Upper Cutout (Top) ── */
.surfix-services-cutout-top {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 62px;
    z-index: 5;
    pointer-events: none;
}

.surfix-services-cutout-top svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Lower Cutout (Bottom) ── */
.surfix-services-cutout-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 57px;
    z-index: 5;
    pointer-events: none;
}

.surfix-services-cutout-bottom svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Inner container */
.surfix-services-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 3;
}

/* ── Section Header ── */
.surfix-services-header {
    margin-bottom: 22px;
}

.surfix-services-eyebrow {
    margin-bottom: 12px;
}

.surfix-services-eyebrow-text {
    font-family: var(--surfix-font-heading, 'Montserrat', sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fe8302;
    text-transform: uppercase;
}

.surfix-services-heading {
    font-family: var(--surfix-font-heading, 'Montserrat', sans-serif);
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}

/* ── Services Grid ── */
.surfix-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

/* ── Individual Service Card ── */
.surfix-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #02162e;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.surfix-service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(254, 131, 2, 0.6);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    text-decoration: none !important;
}

/* Media area: Top Image */
.surfix-service-media {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #0b223d;
}

.surfix-service-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.surfix-service-card:hover .surfix-service-bg {
    transform: scale(1.06);
}

.surfix-service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 22, 46, 0.05) 0%, rgba(2, 22, 46, 0.55) 100%);
}

/* Floating White Circular Badge - 100% On Top of Both Media & Bottom Bar */
.surfix-service-icon-badge {
    position: absolute;
    top: -22px;
    left: 18px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 10;
    transition: transform 0.3s ease;
}

.surfix-service-card:hover .surfix-service-icon-badge {
    transform: scale(1.1);
}

.surfix-service-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* Bottom bar: Title + Arrow */
.surfix-service-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 18px 18px;
    background: #02162e;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.surfix-service-name {
    font-family: var(--surfix-font-heading, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    flex: 1;
    padding-right: 10px;
}

.surfix-service-arrow {
    color: #fe8302;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.surfix-service-card:hover .surfix-service-arrow {
    transform: translateX(4px);
}

/* ── CTA Button ── */
.surfix-services-cta {
    display: flex;
    justify-content: center;
}

.surfix-services-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fe8302;
    color: #ffffff !important;
    font-family: var(--surfix-font-heading, 'Montserrat', sans-serif);
    font-size: 14.5px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(254, 131, 2, 0.35);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.surfix-services-btn:hover {
    background: #e57200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 131, 2, 0.45);
    text-decoration: none !important;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .surfix-services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .surfix-service-name {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .surfix-services-section {
        padding: 50px 0 52px;
    }
    .surfix-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .surfix-services-heading {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .surfix-services-section {
        padding: 45px 0 45px;
    }
    .surfix-services-inner {
        padding: 0 16px;
    }
    .surfix-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 10px;
    }
    .surfix-service-media {
        height: auto;
        aspect-ratio: 1 / 1;
        width: 100%;
    }
    .surfix-service-bg {
        background-size: cover;
        background-position: center;
    }
    .surfix-service-icon-badge {
        width: 36px;
        height: 36px;
        top: -18px;
        left: 12px;
    }
    .surfix-service-icon {
        width: 18px;
        height: 18px;
    }
    .surfix-service-bottom {
        padding: 24px 12px 14px;
    }
    .surfix-service-name {
        font-size: 12.5px;
        line-height: 1.3;
        padding-right: 6px;
    }
    .surfix-service-arrow {
        font-size: 14px;
    }
    .surfix-services-heading {
        font-size: 24px;
    }
}

@media (max-width: 360px) {
    .surfix-services-inner {
        padding: 0 10px;
    }
    .surfix-services-grid {
        gap: 12px 8px;
    }
    .surfix-service-icon-badge {
        width: 32px;
        height: 32px;
        top: -16px;
        left: 10px;
    }
    .surfix-service-icon {
        width: 16px;
        height: 16px;
    }
    .surfix-service-bottom {
        padding: 20px 8px 12px;
    }
    .surfix-service-name {
        font-size: 11.5px;
    }
}
