﻿/* Ensure the section itself is visible */
.section-padding {
    padding: 80px 0;
}

.container-custom {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
}

/* Background blobs */
.bg-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(60px);
    pointer-events: none;
}

.blob-1 {
    top: 0;
    right: 0;
    width: 384px;
    height: 384px;
    transform: translate(50%,-50%);
    background: rgba(214,177,94,.12);
}

.blob-2 {
    bottom: 0;
    left: 0;
    width: 256px;
    height: 256px;
    transform: translate(-50%,50%);
    background: rgba(11,18,32,.10);
}

/* Grid layout */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

/* Cards */
.service-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    transition: transform .35s ease, box-shadow .35s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 34px rgba(0,0,0,.12);
    }

    /* Media area */
    .service-card .media {
        height: 192px;
        position: relative;
        overflow: hidden;
    }

        .service-card .media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform .7s ease;
        }

    .service-card:hover .media img {
        transform: scale(1.08);
    }

    .service-card .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(11,18,32,.75), rgba(11,18,32,0));
    }

    .service-card .badge {
        position: absolute;
        left: 24px;
        bottom: 16px;
        width: 56px;
        height: 56px;
        background: #d6b15e;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 18px rgba(0,0,0,.18);
        transition: transform .5s ease;
    }

    .service-card:hover .badge {
        transform: rotate(10deg) scale(1.06);
    }

/* Text */
.services-headline {
    margin: 0 0 12px;
    color: #0b1220;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
}

.services-subheadline {
    color: #4b5563;
    font-size: 18px;
    margin: 0;
}

.section-label {
    display: inline-block;
    color: #b58a2a;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 12px;
}

.service-card .body {
    padding: 22px;
}

.service-card h3 {
    margin: 0 0 10px;
    color: #0b1220;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

.service-card p {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

.service-card .cta {
    color: #b58a2a;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


/* Floating particle animation (CTA dots) */
@keyframes floatDot {
    0% {
        transform: translate(0, 0);
        opacity: .2;
    }

    50% {
        transform: translate(-12px, -22px);
        opacity: .7;
    }

    100% {
        transform: translate(0, 0);
        opacity: .2;
    }
}

.animate-float {
    animation-name: floatDot;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
    .animate-float {
        animation: none !important;
    }
}